Treat Dragonfly BSD like FreeBSD.
[libsigsegv/ericb.git] / configure
blobbc63976ae3985cd078ad532b67fc6f2aa5ca2754
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
750 ac_unique_file="src/sigsegv.h.in"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 ac_subst_vars='SHELL
788 PATH_SEPARATOR
789 PACKAGE_NAME
790 PACKAGE_TARNAME
791 PACKAGE_VERSION
792 PACKAGE_STRING
793 PACKAGE_BUGREPORT
794 exec_prefix
795 prefix
796 program_transform_name
797 bindir
798 sbindir
799 libexecdir
800 datarootdir
801 datadir
802 sysconfdir
803 sharedstatedir
804 localstatedir
805 includedir
806 oldincludedir
807 docdir
808 infodir
809 htmldir
810 dvidir
811 pdfdir
812 psdir
813 libdir
814 localedir
815 mandir
816 DEFS
817 ECHO_C
818 ECHO_N
819 ECHO_T
820 LIBS
821 build_alias
822 host_alias
823 target_alias
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 am__isrc
828 CYGPATH_W
829 PACKAGE
830 VERSION
831 ACLOCAL
832 AUTOCONF
833 AUTOMAKE
834 AUTOHEADER
835 MAKEINFO
836 install_sh
837 STRIP
838 INSTALL_STRIP_PROGRAM
839 MKDIR_P
840 mkdir_p
842 SET_MAKE
843 am__leading_dot
844 AMTAR
845 am__tar
846 am__untar
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
854 DEPDIR
855 am__include
856 am__quote
857 AMDEP_TRUE
858 AMDEP_FALSE
859 AMDEPBACKSLASH
860 CCDEPMODE
861 am__fastdepCC_TRUE
862 am__fastdepCC_FALSE
864 build
865 build_cpu
866 build_vendor
867 build_os
868 host
869 host_cpu
870 host_vendor
871 host_os
872 PLATFORM
873 LIBTOOL
875 GREP
876 EGREP
877 FGREP
879 DUMPBIN
880 ac_ct_DUMPBIN
882 LN_S
884 RANLIB
885 lt_ECHO
886 DSYMUTIL
887 NMEDIT
888 LIPO
889 OTOOL
890 OTOOL64
891 FAULT_CONTEXT
892 FAULT_CONTEXT_INCLUDE
893 HAVE_SIGSEGV_RECOVERY
894 CFG_STACKVMA
895 HAVE_STACK_OVERFLOW_RECOVERY
896 CFG_LEAVE
897 CFG_HANDLER
898 RELOCATABLE
899 LIBOBJS
900 LTLIBOBJS'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 enable_dependency_tracking
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_relocatable
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
972 ac_prev=
973 ac_dashdash=
974 for ac_option
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
983 case $ac_option in
984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *) ac_optarg=yes ;;
986 esac
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
992 ac_dashdash=yes ;;
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1258 -with-* | --with-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1268 "with_$ac_useropt"
1269 "*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=no ;;
1292 --x)
1293 # Obsolete; use --with-x.
1294 with_x=yes ;;
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 esac
1333 done
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1345 { (exit 1); exit 1; }; } ;;
1346 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
1368 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1370 done
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1424 /^X\(\/\/\)$/{
1425 s//\1/
1428 /^X\(\/\).*/{
1429 s//\1/
1432 s/.*/./; q'`
1433 srcdir=$ac_confdir
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 srcdir=..
1437 else
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1449 pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 srcdir=.
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1473 cat <<_ACEOF
1474 \`configure' configures this package to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1483 Configuration:
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 [PREFIX]
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1527 _ACEOF
1529 cat <<\_ACEOF
1531 Program names:
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 _ACEOF
1542 if test -n "$ac_init_help"; then
1544 cat <<\_ACEOF
1546 Optional Features:
1547 --disable-option-checking ignore unrecognized --enable/--with options
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --disable-dependency-tracking speeds up one-time build
1551 --enable-dependency-tracking do not reject slow dependency extractors
1552 --enable-shared[=PKGS] build shared libraries [default=no]
1553 --enable-static[=PKGS] build static libraries [default=yes]
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation [default=yes]
1556 --disable-libtool-lock avoid locking (might break parallel builds)
1557 --enable-relocatable install a package that can be moved in the filesystem
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1563 both]
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 _ACEOF
1580 ac_status=$?
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 configure
1642 generated by GNU Autoconf 2.62
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.62. Invocation command line was
1658 $ $0 $@
1660 _ACEOF
1661 exec 5>>config.log
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 _ASUNAME
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 $as_echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 esac
1751 done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1764 echo
1766 cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771 echo
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in #(
1777 *${as_nl}*)
1778 case $ac_var in #(
1779 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 esac
1782 case $ac_var in #(
1783 _ | IFS | as_nl) ;; #(
1784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785 *) $as_unset $ac_var ;;
1786 esac ;;
1787 esac
1788 done
1789 (set) 2>&1 |
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1792 sed -n \
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 ;; #(
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 esac |
1800 sort
1802 echo
1804 cat <<\_ASBOX
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1808 _ASBOX
1809 echo
1810 for ac_var in $ac_subst_vars
1812 eval ac_val=\$$ac_var
1813 case $ac_val in
1814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 esac
1816 $as_echo "$ac_var='\''$ac_val'\''"
1817 done | sort
1818 echo
1820 if test -n "$ac_subst_files"; then
1821 cat <<\_ASBOX
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1825 _ASBOX
1826 echo
1827 for ac_var in $ac_subst_files
1829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 $as_echo "$ac_var='\''$ac_val'\''"
1834 done | sort
1835 echo
1838 if test -s confdefs.h; then
1839 cat <<\_ASBOX
1840 ## ----------- ##
1841 ## confdefs.h. ##
1842 ## ----------- ##
1843 _ASBOX
1844 echo
1845 cat confdefs.h
1846 echo
1848 test "$ac_signal" != 0 &&
1849 $as_echo "$as_me: caught signal $ac_signal"
1850 $as_echo "$as_me: exit $exit_status"
1851 } >&5
1852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854 exit $exit_status
1856 for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 done
1859 ac_signal=0
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1864 # Predefined preprocessor variables.
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 _ACEOF
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 _ACEOF
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 _ACEOF
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 _ACEOF
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer an explicitly selected file to automatically selected ones.
1893 ac_site_file1=NONE
1894 ac_site_file2=NONE
1895 if test -n "$CONFIG_SITE"; then
1896 ac_site_file1=$CONFIG_SITE
1897 elif test "x$prefix" != xNONE; then
1898 ac_site_file1=$prefix/share/config.site
1899 ac_site_file2=$prefix/etc/config.site
1900 else
1901 ac_site_file1=$ac_default_prefix/share/config.site
1902 ac_site_file2=$ac_default_prefix/etc/config.site
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 test "x$ac_site_file" = xNONE && continue
1907 if test -r "$ac_site_file"; then
1908 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1911 . "$ac_site_file"
1913 done
1915 if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920 $as_echo "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
1922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
1924 esac
1926 else
1927 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928 $as_echo "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1932 # Check that the precious variables saved in the cache have kept the same
1933 # value.
1934 ac_cache_corrupted=false
1935 for ac_var in $ac_precious_vars; do
1936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
1938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
1940 case $ac_old_set,$ac_new_set in
1941 set,)
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,set)
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,);;
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
1952 # differences in whitespace do not lead to failure.
1953 ac_old_val_w=`echo x $ac_old_val`
1954 ac_new_val_w=`echo x $ac_new_val`
1955 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1958 ac_cache_corrupted=:
1959 else
1960 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1962 eval $ac_var=\$ac_old_val
1964 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1965 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1966 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1967 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1968 fi;;
1969 esac
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1972 case $ac_new_val in
1973 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1975 esac
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979 esac
1981 done
1982 if $ac_cache_corrupted; then
1983 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 ac_aux_dir=
2015 for ac_dir in build-aux "$srcdir"/build-aux; do
2016 if test -f "$ac_dir/install-sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 break
2020 elif test -f "$ac_dir/install.sh"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 break
2024 elif test -f "$ac_dir/shtool"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 break
2029 done
2030 if test -z "$ac_aux_dir"; then
2031 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2048 case $TERM in
2049 # for the most important terminal types we directly know the sequences
2050 xterm*|vt220*)
2051 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2052 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2054 vt100*)
2055 term_bold=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2056 term_norm=`${AWK:-awk} 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2058 # for all others, we try to use a possibly existing `tput' or `tcout' utility
2060 paths=`echo "$PATH" | sed -e 's/:/ /g'`
2061 for tool in tput tcout; do
2062 for dir in $paths; do
2063 if test -r "$dir/$tool"; then
2064 for seq in bold md smso; do # 'smso' is last
2065 bold="`$dir/$tool $seq 2>/dev/null`"
2066 if test -n "$bold"; then
2067 term_bold="$bold"
2068 break
2070 done
2071 if test -n "$term_bold"; then
2072 for seq in sgr0 me rmso reset; do # 'reset' is last
2073 norm="`$dir/$tool $seq 2>/dev/null`"
2074 if test -n "$norm"; then
2075 term_norm="$norm"
2076 break
2078 done
2080 break
2082 done
2083 if test -n "$term_bold" && test -n "$term_norm"; then
2084 break
2086 done
2088 esac
2089 echo "$term_bold" | tr -d '\n' > termbold
2090 echo "$term_norm" | tr -d '\n' > termnorm
2093 { echo; echo "${term_bold}Build Tools:${term_norm}"; } >& 6
2095 am__api_version='1.10'
2097 # Find a good install program. We prefer a C program (faster),
2098 # so one script is as good as another. But avoid the broken or
2099 # incompatible versions:
2100 # SysV /etc/install, /usr/sbin/install
2101 # SunOS /usr/etc/install
2102 # IRIX /sbin/install
2103 # AIX /bin/install
2104 # AmigaOS /C/install, which installs bootblocks on floppy discs
2105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2108 # OS/2's system install, which has a completely different semantic
2109 # ./install, which can be erroneously created by make from ./install.sh.
2110 # Reject install programs that cannot install multiple files.
2111 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2112 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2113 if test -z "$INSTALL"; then
2114 if test "${ac_cv_path_install+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 # Account for people who put trailing slashes in PATH elements.
2123 case $as_dir/ in
2124 ./ | .// | /cC/* | \
2125 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2126 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2127 /usr/ucb/* ) ;;
2129 # OSF1 and SCO ODT 3.0 have their own names for install.
2130 # Don't use installbsd from OSF since it installs stuff as root
2131 # by default.
2132 for ac_prog in ginstall scoinst install; do
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135 if test $ac_prog = install &&
2136 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137 # AIX install. It has an incompatible calling convention.
2139 elif test $ac_prog = install &&
2140 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141 # program-specific install script used by HP pwplus--don't use.
2143 else
2144 rm -rf conftest.one conftest.two conftest.dir
2145 echo one > conftest.one
2146 echo two > conftest.two
2147 mkdir conftest.dir
2148 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2149 test -s conftest.one && test -s conftest.two &&
2150 test -s conftest.dir/conftest.one &&
2151 test -s conftest.dir/conftest.two
2152 then
2153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2154 break 3
2158 done
2159 done
2161 esac
2163 done
2164 IFS=$as_save_IFS
2166 rm -rf conftest.one conftest.two conftest.dir
2169 if test "${ac_cv_path_install+set}" = set; then
2170 INSTALL=$ac_cv_path_install
2171 else
2172 # As a last resort, use the slow shell script. Don't cache a
2173 # value for INSTALL within a source directory, because that will
2174 # break other packages using the cache if that directory is
2175 # removed, or if the value is a relative name.
2176 INSTALL=$ac_install_sh
2179 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2180 $as_echo "$INSTALL" >&6; }
2182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2183 # It thinks the first close brace ends the variable substitution.
2184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2190 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2191 $as_echo_n "checking whether build environment is sane... " >&6; }
2192 # Just in case
2193 sleep 1
2194 echo timestamp > conftest.file
2195 # Do `set' in a subshell so we don't clobber the current shell's
2196 # arguments. Must try -L first in case configure is actually a
2197 # symlink; some systems play weird games with the mod time of symlinks
2198 # (eg FreeBSD returns the mod time of the symlink's containing
2199 # directory).
2200 if (
2201 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2202 if test "$*" = "X"; then
2203 # -L didn't work.
2204 set X `ls -t $srcdir/configure conftest.file`
2206 rm -f conftest.file
2207 if test "$*" != "X $srcdir/configure conftest.file" \
2208 && test "$*" != "X conftest.file $srcdir/configure"; then
2210 # If neither matched, then we have a broken ls. This can happen
2211 # if, for instance, CONFIG_SHELL is bash and it inherits a
2212 # broken ls alias from the environment. This has actually
2213 # happened. Such a system could not be considered "sane".
2214 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2215 alias in your environment" >&5
2216 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2217 alias in your environment" >&2;}
2218 { (exit 1); exit 1; }; }
2221 test "$2" = conftest.file
2223 then
2224 # Ok.
2226 else
2227 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2228 Check your system clock" >&5
2229 $as_echo "$as_me: error: newly created file is older than distributed files!
2230 Check your system clock" >&2;}
2231 { (exit 1); exit 1; }; }
2233 { $as_echo "$as_me:$LINENO: result: yes" >&5
2234 $as_echo "yes" >&6; }
2235 test "$program_prefix" != NONE &&
2236 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2237 # Use a double $ so make ignores it.
2238 test "$program_suffix" != NONE &&
2239 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2240 # Double any \ or $.
2241 # By default was `s,x,x', remove it if useless.
2242 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2243 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2245 # expand $ac_aux_dir to an absolute path
2246 am_aux_dir=`cd $ac_aux_dir && pwd`
2248 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2249 # Use eval to expand $SHELL
2250 if eval "$MISSING --run true"; then
2251 am_missing_run="$MISSING --run "
2252 else
2253 am_missing_run=
2254 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2255 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2258 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2259 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2260 if test -z "$MKDIR_P"; then
2261 if test "${ac_cv_path_mkdir+set}" = set; then
2262 $as_echo_n "(cached) " >&6
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_prog in mkdir gmkdir; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2272 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2273 'mkdir (GNU coreutils) '* | \
2274 'mkdir (coreutils) '* | \
2275 'mkdir (fileutils) '4.1*)
2276 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2277 break 3;;
2278 esac
2279 done
2280 done
2281 done
2282 IFS=$as_save_IFS
2286 if test "${ac_cv_path_mkdir+set}" = set; then
2287 MKDIR_P="$ac_cv_path_mkdir -p"
2288 else
2289 # As a last resort, use the slow shell script. Don't cache a
2290 # value for MKDIR_P within a source directory, because that will
2291 # break other packages using the cache if that directory is
2292 # removed, or if the value is a relative name.
2293 test -d ./--version && rmdir ./--version
2294 MKDIR_P="$ac_install_sh -d"
2297 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2298 $as_echo "$MKDIR_P" >&6; }
2300 mkdir_p="$MKDIR_P"
2301 case $mkdir_p in
2302 [\\/$]* | ?:[\\/]*) ;;
2303 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2304 esac
2306 for ac_prog in gawk mawk nawk awk
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if test "${ac_cv_prog_AWK+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test -n "$AWK"; then
2316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_AWK="$ac_prog"
2326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 AWK=$ac_cv_prog_AWK
2336 if test -n "$AWK"; then
2337 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2338 $as_echo "$AWK" >&6; }
2339 else
2340 { $as_echo "$as_me:$LINENO: result: no" >&5
2341 $as_echo "no" >&6; }
2345 test -n "$AWK" && break
2346 done
2348 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2350 set x ${MAKE-make}
2351 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2352 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 cat >conftest.make <<\_ACEOF
2356 SHELL = /bin/sh
2357 all:
2358 @echo '@@@%%%=$(MAKE)=@@@%%%'
2359 _ACEOF
2360 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2362 *@@@%%%=?*=@@@%%%*)
2363 eval ac_cv_prog_make_${ac_make}_set=yes;;
2365 eval ac_cv_prog_make_${ac_make}_set=no;;
2366 esac
2367 rm -f conftest.make
2369 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2370 { $as_echo "$as_me:$LINENO: result: yes" >&5
2371 $as_echo "yes" >&6; }
2372 SET_MAKE=
2373 else
2374 { $as_echo "$as_me:$LINENO: result: no" >&5
2375 $as_echo "no" >&6; }
2376 SET_MAKE="MAKE=${MAKE-make}"
2379 rm -rf .tst 2>/dev/null
2380 mkdir .tst 2>/dev/null
2381 if test -d .tst; then
2382 am__leading_dot=.
2383 else
2384 am__leading_dot=_
2386 rmdir .tst 2>/dev/null
2388 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2389 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2390 # is not polluted with repeated "-I."
2391 am__isrc=' -I$(srcdir)'
2392 # test to see if srcdir already configured
2393 if test -f $srcdir/config.status; then
2394 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2395 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2396 { (exit 1); exit 1; }; }
2400 # test whether we have cygpath
2401 if test -z "$CYGPATH_W"; then
2402 if (cygpath --version) >/dev/null 2>/dev/null; then
2403 CYGPATH_W='cygpath -w'
2404 else
2405 CYGPATH_W=echo
2410 # Define the identity of the package.
2411 PACKAGE=libsigsegv
2412 VERSION=2.6
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE "$PACKAGE"
2417 _ACEOF
2420 cat >>confdefs.h <<_ACEOF
2421 #define VERSION "$VERSION"
2422 _ACEOF
2424 # Some tools Automake needs.
2426 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2429 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2432 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2435 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2438 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2440 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2442 # Installed binaries are usually stripped using `strip' when the user
2443 # run `make install-strip'. However `strip' might not be the right
2444 # tool to use in cross-compilation environments, therefore Automake
2445 # will honor the `STRIP' environment variable to overrule this program.
2446 if test "$cross_compiling" != no; then
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}strip; ac_word=$2
2450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if test "${ac_cv_prog_STRIP+set}" = set; then
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$STRIP"; then
2456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2469 done
2470 done
2471 IFS=$as_save_IFS
2475 STRIP=$ac_cv_prog_STRIP
2476 if test -n "$STRIP"; then
2477 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2478 $as_echo "$STRIP" >&6; }
2479 else
2480 { $as_echo "$as_me:$LINENO: result: no" >&5
2481 $as_echo "no" >&6; }
2486 if test -z "$ac_cv_prog_STRIP"; then
2487 ac_ct_STRIP=$STRIP
2488 # Extract the first word of "strip", so it can be a program name with args.
2489 set dummy strip; ac_word=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test -n "$ac_ct_STRIP"; then
2496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_ac_ct_STRIP="strip"
2506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2509 done
2510 done
2511 IFS=$as_save_IFS
2515 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2516 if test -n "$ac_ct_STRIP"; then
2517 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2518 $as_echo "$ac_ct_STRIP" >&6; }
2519 else
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2524 if test "x$ac_ct_STRIP" = x; then
2525 STRIP=":"
2526 else
2527 case $cross_compiling:$ac_tool_warned in
2528 yes:)
2529 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&5
2532 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet. If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537 STRIP=$ac_ct_STRIP
2539 else
2540 STRIP="$ac_cv_prog_STRIP"
2544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2546 # We need awk for the "check" target. The system "awk" is bad on
2547 # some platforms.
2548 # Always define AMTAR for backward compatibility.
2550 AMTAR=${AMTAR-"${am_missing_run}tar"}
2552 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2558 ac_config_headers="$ac_config_headers config.h"
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2597 $as_echo "$CC" >&6; }
2598 else
2599 { $as_echo "$as_me:$LINENO: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_CC"; then
2606 ac_ct_CC=$CC
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608 set dummy gcc; ac_word=$2
2609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_ac_ct_CC="gcc"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_CC" >&6; }
2638 else
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 CC=$ac_ct_CC
2658 else
2659 CC="$ac_cv_prog_CC"
2662 if test -z "$CC"; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}cc; ac_word=$2
2666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="${ac_tool_prefix}cc"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2685 done
2686 done
2687 IFS=$as_save_IFS
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2695 else
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 else
2714 ac_prog_rejected=no
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723 ac_prog_rejected=yes
2724 continue
2726 ac_cv_prog_CC="cc"
2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2734 if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy $ac_cv_prog_CC
2737 shift
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2742 shift
2743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$CC"; then
2760 if test -n "$ac_tool_prefix"; then
2761 for ac_prog in cl.exe
2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:$LINENO: result: no" >&5
2796 $as_echo "no" >&6; }
2800 test -n "$CC" && break
2801 done
2803 if test -z "$CC"; then
2804 ac_ct_CC=$CC
2805 for ac_prog in cl.exe
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_CC="$ac_prog"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837 $as_echo "$ac_ct_CC" >&6; }
2838 else
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$ac_ct_CC" && break
2845 done
2847 if test "x$ac_ct_CC" = x; then
2848 CC=""
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&5
2855 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 CC=$ac_ct_CC
2867 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2868 See \`config.log' for more details." >&5
2869 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2873 # Provide some information about the compiler.
2874 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2875 set X $ac_compile
2876 ac_compiler=$2
2877 { (ac_try="$ac_compiler --version >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler --version >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -v >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler -v >&5") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905 $as_echo "$ac_try_echo") >&5
2906 (eval "$ac_compiler -V >&5") 2>&5
2907 ac_status=$?
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2919 main ()
2923 return 0;
2925 _ACEOF
2926 ac_clean_files_save=$ac_clean_files
2927 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2928 # Try to create an executable without -o first, disregard a.out.
2929 # It will help us diagnose broken compilers, and finding out an intuition
2930 # of exeext.
2931 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2932 $as_echo_n "checking for C compiler default output file name... " >&6; }
2933 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2935 # The possible output files:
2936 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2938 ac_rmfiles=
2939 for ac_file in $ac_files
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 esac
2945 done
2946 rm -f $ac_rmfiles
2948 if { (ac_try="$ac_link_default"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_link_default") 2>&5
2956 ac_status=$?
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2960 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2961 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2962 # so that the user can short-circuit this test for compilers unknown to
2963 # Autoconf.
2964 for ac_file in $ac_files ''
2966 test -f "$ac_file" || continue
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2970 [ab].out )
2971 # We found the default executable, but exeext='' is most
2972 # certainly right.
2973 break;;
2974 *.* )
2975 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2976 then :; else
2977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # We set ac_cv_exeext here because the later test for it is not
2980 # safe: cross compilers may not add the suffix if given an `-o'
2981 # argument, so we may need to know it at that point already.
2982 # Even if this section looks crufty: it has the advantage of
2983 # actually working.
2984 break;;
2986 break;;
2987 esac
2988 done
2989 test "$ac_cv_exeext" = no && ac_cv_exeext=
2991 else
2992 ac_file=''
2995 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2996 $as_echo "$ac_file" >&6; }
2997 if test -z "$ac_file"; then
2998 $as_echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3002 See \`config.log' for more details." >&5
3003 $as_echo "$as_me: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&2;}
3005 { (exit 77); exit 77; }; }
3008 ac_exeext=$ac_cv_exeext
3010 # Check that the compiler produces executables we can run. If not, either
3011 # the compiler is broken, or we cross compile.
3012 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3013 $as_echo_n "checking whether the C compiler works... " >&6; }
3014 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3015 # If not cross compiling, check that we can run a simple program.
3016 if test "$cross_compiling" != yes; then
3017 if { ac_try='./$ac_file'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 cross_compiling=no
3029 else
3030 if test "$cross_compiling" = maybe; then
3031 cross_compiling=yes
3032 else
3033 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&5
3036 $as_echo "$as_me: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3043 { $as_echo "$as_me:$LINENO: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3051 $as_echo_n "checking whether we are cross compiling... " >&6; }
3052 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3053 $as_echo "$cross_compiling" >&6; }
3055 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { (ac_try="$ac_link"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_link") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3071 # `rm'.
3072 for ac_file in conftest.exe conftest conftest.*; do
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 break;;
3078 * ) break;;
3079 esac
3080 done
3081 else
3082 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details." >&5
3084 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3089 rm -f conftest$ac_cv_exeext
3090 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3091 $as_echo "$ac_cv_exeext" >&6; }
3093 rm -f conftest.$ac_ext
3094 EXEEXT=$ac_cv_exeext
3095 ac_exeext=$EXEEXT
3096 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if test "${ac_cv_objext+set}" = set; then
3099 $as_echo_n "(cached) " >&6
3100 else
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 break;;
3134 esac
3135 done
3136 else
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144 { (exit 1); exit 1; }; }
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 $as_echo "$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 main ()
3168 #ifndef __GNUC__
3169 choke me
3170 #endif
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183 $as_echo "$ac_try_echo") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3194 ac_compiler_gnu=yes
3195 else
3196 $as_echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_compiler_gnu=no
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208 if test $ac_compiler_gnu = yes; then
3209 GCC=yes
3210 else
3211 GCC=
3213 ac_test_CFLAGS=${CFLAGS+set}
3214 ac_save_CFLAGS=$CFLAGS
3215 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3217 if test "${ac_cv_prog_cc_g+set}" = set; then
3218 $as_echo_n "(cached) " >&6
3219 else
3220 ac_save_c_werror_flag=$ac_c_werror_flag
3221 ac_c_werror_flag=yes
3222 ac_cv_prog_cc_g=no
3223 CFLAGS="-g"
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compile") 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } && {
3254 test -z "$ac_c_werror_flag" ||
3255 test ! -s conftest.err
3256 } && test -s conftest.$ac_objext; then
3257 ac_cv_prog_cc_g=yes
3258 else
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 CFLAGS=""
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3285 $as_echo "$ac_try_echo") >&5
3286 (eval "$ac_compile") 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.$ac_objext; then
3297 else
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3302 CFLAGS="-g"
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3336 ac_cv_prog_cc_g=yes
3337 else
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3353 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3354 $as_echo "$ac_cv_prog_cc_g" >&6; }
3355 if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357 elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3359 CFLAGS="-g -O2"
3360 else
3361 CFLAGS="-g"
3363 else
3364 if test "$GCC" = yes; then
3365 CFLAGS="-O2"
3366 else
3367 CFLAGS=
3370 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3371 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372 if test "${ac_cv_prog_cc_c89+set}" = set; then
3373 $as_echo_n "(cached) " >&6
3374 else
3375 ac_cv_prog_cc_c89=no
3376 ac_save_CC=$CC
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include <stdarg.h>
3384 #include <stdio.h>
3385 #include <sys/types.h>
3386 #include <sys/stat.h>
3387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3388 struct buf { int x; };
3389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3390 static char *e (p, i)
3391 char **p;
3392 int i;
3394 return p[i];
3396 static char *f (char * (*g) (char **, int), char **p, ...)
3398 char *s;
3399 va_list v;
3400 va_start (v,p);
3401 s = g (p, va_arg (v,int));
3402 va_end (v);
3403 return s;
3406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3407 function prototypes and stuff, but not '\xHH' hex character constants.
3408 These don't provoke an error unfortunately, instead are silently treated
3409 as 'x'. The following induces an error, until -std is added to get
3410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3411 array size at least. It's necessary to write '\x00'==0 to get something
3412 that's true only with -std. */
3413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3416 inside strings and character constants. */
3417 #define FOO(x) 'x'
3418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3420 int test (int i, double x);
3421 struct s1 {int (*f) (int a);};
3422 struct s2 {int (*f) (double a);};
3423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 int argc;
3425 char **argv;
3427 main ()
3429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3431 return 0;
3433 _ACEOF
3434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 CC="$ac_save_CC $ac_arg"
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 ac_cv_prog_cc_c89=$ac_arg
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f core conftest.err conftest.$ac_objext
3465 test "x$ac_cv_prog_cc_c89" != "xno" && break
3466 done
3467 rm -f conftest.$ac_ext
3468 CC=$ac_save_CC
3471 # AC_CACHE_VAL
3472 case "x$ac_cv_prog_cc_c89" in
3474 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3475 $as_echo "none needed" >&6; } ;;
3476 xno)
3477 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3478 $as_echo "unsupported" >&6; } ;;
3480 CC="$CC $ac_cv_prog_cc_c89"
3481 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3482 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483 esac
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 DEPDIR="${am__leading_dot}deps"
3493 ac_config_commands="$ac_config_commands depfiles"
3496 am_make=${MAKE-make}
3497 cat > confinc << 'END'
3498 am__doit:
3499 @echo done
3500 .PHONY: am__doit
3502 # If we don't find an include directive, just comment out the code.
3503 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3504 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3505 am__include="#"
3506 am__quote=
3507 _am_result=none
3508 # First try GNU make style include.
3509 echo "include confinc" > confmf
3510 # We grep out `Entering directory' and `Leaving directory'
3511 # messages which can occur if `w' ends up in MAKEFLAGS.
3512 # In particular we don't look at `^make:' because GNU make might
3513 # be invoked under some other name (usually "gmake"), in which
3514 # case it prints its new name instead of `make'.
3515 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3516 am__include=include
3517 am__quote=
3518 _am_result=GNU
3520 # Now try BSD make style include.
3521 if test "$am__include" = "#"; then
3522 echo '.include "confinc"' > confmf
3523 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3524 am__include=.include
3525 am__quote="\""
3526 _am_result=BSD
3531 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3532 $as_echo "$_am_result" >&6; }
3533 rm -f confinc confmf
3535 # Check whether --enable-dependency-tracking was given.
3536 if test "${enable_dependency_tracking+set}" = set; then
3537 enableval=$enable_dependency_tracking;
3540 if test "x$enable_dependency_tracking" != xno; then
3541 am_depcomp="$ac_aux_dir/depcomp"
3542 AMDEPBACKSLASH='\'
3544 if test "x$enable_dependency_tracking" != xno; then
3545 AMDEP_TRUE=
3546 AMDEP_FALSE='#'
3547 else
3548 AMDEP_TRUE='#'
3549 AMDEP_FALSE=
3554 depcc="$CC" am_compiler_list=
3556 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 $as_echo_n "checking dependency style of $depcc... " >&6; }
3558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # in D'.
3567 mkdir conftest.dir
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3571 cd conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3577 # directory.
3578 mkdir sub
3580 am_cv_CC_dependencies_compiler_type=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode in $am_compiler_list; do
3585 # Setup a source with many dependencies, because some compilers
3586 # like to wrap large dependency lists on column 80 (with \), and
3587 # we should not choose a depcomp mode which is confused by this.
3589 # We need to recreate these files for each test, as the compiler may
3590 # overwrite some of them when testing with obscure command lines.
3591 # This happens at least with the AIX C compiler.
3592 : > sub/conftest.c
3593 for i in 1 2 3 4 5 6; do
3594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3596 # Solaris 8's {/usr,}/bin/sh.
3597 touch sub/conftst$i.h
3598 done
3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601 case $depmode in
3602 nosideeffect)
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes; then
3606 continue
3607 else
3608 break
3611 none) break ;;
3612 esac
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this.
3616 if depmode=$depmode \
3617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3620 >/dev/null 2>conftest.err &&
3621 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3623 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3624 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3625 # icc doesn't choke on unknown options, it will just issue warnings
3626 # or remarks (even with -Werror). So we grep stderr for any message
3627 # that says an option was ignored or not supported.
3628 # When given -MP, icc 7.0 and 7.1 complain thusly:
3629 # icc: Command line warning: ignoring option '-M'; no argument required
3630 # The diagnosis changed in icc 8.0:
3631 # icc: Command line remark: option '-MP' not supported
3632 if (grep 'ignoring option' conftest.err ||
3633 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3634 am_cv_CC_dependencies_compiler_type=$depmode
3635 break
3638 done
3640 cd ..
3641 rm -rf conftest.dir
3642 else
3643 am_cv_CC_dependencies_compiler_type=none
3647 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3648 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3649 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3652 test "x$enable_dependency_tracking" != xno \
3653 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3654 am__fastdepCC_TRUE=
3655 am__fastdepCC_FALSE='#'
3656 else
3657 am__fastdepCC_TRUE='#'
3658 am__fastdepCC_FALSE=
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3669 # On Suns, sometimes $CPP names a directory.
3670 if test -n "$CPP" && test -d "$CPP"; then
3671 CPP=
3673 if test -z "$CPP"; then
3674 if test "${ac_cv_prog_CPP+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3676 else
3677 # Double quotes because CPP needs to be expanded
3678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 ac_preproc_ok=false
3681 for ac_c_preproc_warn_flag in '' yes
3683 # Use a header file that comes with gcc, so configuring glibc
3684 # with a fresh cross-compiler works.
3685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686 # <limits.h> exists even on freestanding compilers.
3687 # On the NeXT, cc -E runs the code through the compiler's parser,
3688 # not just through cpp. "Syntax error" is here to catch this case.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #ifdef __STDC__
3696 # include <limits.h>
3697 #else
3698 # include <assert.h>
3699 #endif
3700 Syntax error
3701 _ACEOF
3702 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null && {
3716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 }; then
3720 else
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Broken: fails on valid input.
3725 continue
3728 rm -f conftest.err conftest.$ac_ext
3730 # OK, works on sane cases. Now check whether nonexistent headers
3731 # can be detected and how.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3741 case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null && {
3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 }; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3768 rm -f conftest.err conftest.$ac_ext
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then
3774 break
3777 done
3778 ac_cv_prog_CPP=$CPP
3781 CPP=$ac_cv_prog_CPP
3782 else
3783 ac_cv_prog_CPP=$CPP
3785 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3786 $as_echo "$CPP" >&6; }
3787 ac_preproc_ok=false
3788 for ac_c_preproc_warn_flag in '' yes
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #ifdef __STDC__
3803 # include <limits.h>
3804 #else
3805 # include <assert.h>
3806 #endif
3807 Syntax error
3808 _ACEOF
3809 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 }; then
3827 else
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 # Broken: fails on valid input.
3832 continue
3835 rm -f conftest.err conftest.$ac_ext
3837 # OK, works on sane cases. Now check whether nonexistent headers
3838 # can be detected and how.
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #include <ac_nonexistent.h>
3846 _ACEOF
3847 if { (ac_try="$ac_cpp conftest.$ac_ext"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev/null && {
3861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 }; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3875 rm -f conftest.err conftest.$ac_ext
3877 done
3878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3879 rm -f conftest.err conftest.$ac_ext
3880 if $ac_preproc_ok; then
3882 else
3883 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details." >&5
3885 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&2;}
3887 { (exit 1); exit 1; }; }
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 # Make sure we can run config.sub.
3898 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3899 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3900 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3901 { (exit 1); exit 1; }; }
3903 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3904 $as_echo_n "checking build system type... " >&6; }
3905 if test "${ac_cv_build+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_build_alias=$build_alias
3909 test "x$ac_build_alias" = x &&
3910 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3911 test "x$ac_build_alias" = x &&
3912 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3913 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3914 { (exit 1); exit 1; }; }
3915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3916 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3917 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3918 { (exit 1); exit 1; }; }
3921 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3922 $as_echo "$ac_cv_build" >&6; }
3923 case $ac_cv_build in
3924 *-*-*) ;;
3925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3926 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3927 { (exit 1); exit 1; }; };;
3928 esac
3929 build=$ac_cv_build
3930 ac_save_IFS=$IFS; IFS='-'
3931 set x $ac_cv_build
3932 shift
3933 build_cpu=$1
3934 build_vendor=$2
3935 shift; shift
3936 # Remember, the first character of IFS is used to create $*,
3937 # except with old shells:
3938 build_os=$*
3939 IFS=$ac_save_IFS
3940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3943 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3944 $as_echo_n "checking host system type... " >&6; }
3945 if test "${ac_cv_host+set}" = set; then
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test "x$host_alias" = x; then
3949 ac_cv_host=$ac_cv_build
3950 else
3951 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3952 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3953 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3954 { (exit 1); exit 1; }; }
3958 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3959 $as_echo "$ac_cv_host" >&6; }
3960 case $ac_cv_host in
3961 *-*-*) ;;
3962 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3963 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3964 { (exit 1); exit 1; }; };;
3965 esac
3966 host=$ac_cv_host
3967 ac_save_IFS=$IFS; IFS='-'
3968 set x $ac_cv_host
3969 shift
3970 host_cpu=$1
3971 host_vendor=$2
3972 shift; shift
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3975 host_os=$*
3976 IFS=$ac_save_IFS
3977 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3980 { $as_echo "$as_me:$LINENO: checking host platform" >&5
3981 $as_echo_n "checking host platform... " >&6; }
3982 sv_cv_host="$host"
3983 case "$host_os" in
3984 linux | linux-*)
3985 kernelversion=`uname -r | sed -e 's/^\([0-9.]*\).*/\1/'`
3986 sv_cv_host=`echo $sv_cv_host | sed -e "s/linux/linux$kernelversion/"`
3988 esac
3989 cat > conftest.c << EOF
3990 #include <features.h>
3991 #ifdef __GNU_LIBRARY__
3992 Version __GLIBC__ . __GLIBC_MINOR__
3993 #endif
3995 glibcversion=`$CPP $CPPFLAGS conftest.c 2>/dev/null | grep Version | sed -e 's/Version//' -e 's/ //g'`
3996 if test -n "$glibcversion"; then
3997 sv_cv_host="$sv_cv_host-glibc$glibcversion"
3999 { $as_echo "$as_me:$LINENO: result: $sv_cv_host" >&5
4000 $as_echo "$sv_cv_host" >&6; }
4001 PLATFORM="$sv_cv_host"
4004 # Find a good install program. We prefer a C program (faster),
4005 # so one script is as good as another. But avoid the broken or
4006 # incompatible versions:
4007 # SysV /etc/install, /usr/sbin/install
4008 # SunOS /usr/etc/install
4009 # IRIX /sbin/install
4010 # AIX /bin/install
4011 # AmigaOS /C/install, which installs bootblocks on floppy discs
4012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4015 # OS/2's system install, which has a completely different semantic
4016 # ./install, which can be erroneously created by make from ./install.sh.
4017 # Reject install programs that cannot install multiple files.
4018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4020 if test -z "$INSTALL"; then
4021 if test "${ac_cv_path_install+set}" = set; then
4022 $as_echo_n "(cached) " >&6
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 # Account for people who put trailing slashes in PATH elements.
4030 case $as_dir/ in
4031 ./ | .// | /cC/* | \
4032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4034 /usr/ucb/* ) ;;
4036 # OSF1 and SCO ODT 3.0 have their own names for install.
4037 # Don't use installbsd from OSF since it installs stuff as root
4038 # by default.
4039 for ac_prog in ginstall scoinst install; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4042 if test $ac_prog = install &&
4043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4044 # AIX install. It has an incompatible calling convention.
4046 elif test $ac_prog = install &&
4047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4048 # program-specific install script used by HP pwplus--don't use.
4050 else
4051 rm -rf conftest.one conftest.two conftest.dir
4052 echo one > conftest.one
4053 echo two > conftest.two
4054 mkdir conftest.dir
4055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4056 test -s conftest.one && test -s conftest.two &&
4057 test -s conftest.dir/conftest.one &&
4058 test -s conftest.dir/conftest.two
4059 then
4060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4061 break 3
4065 done
4066 done
4068 esac
4070 done
4071 IFS=$as_save_IFS
4073 rm -rf conftest.one conftest.two conftest.dir
4076 if test "${ac_cv_path_install+set}" = set; then
4077 INSTALL=$ac_cv_path_install
4078 else
4079 # As a last resort, use the slow shell script. Don't cache a
4080 # value for INSTALL within a source directory, because that will
4081 # break other packages using the cache if that directory is
4082 # removed, or if the value is a relative name.
4083 INSTALL=$ac_install_sh
4086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4087 $as_echo "$INSTALL" >&6; }
4089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090 # It thinks the first close brace ends the variable substitution.
4091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098 case `pwd` in
4099 *\ * | *\ *)
4100 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4101 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4102 esac
4106 macro_version='2.2.4'
4107 macro_revision='1.2976'
4121 ltmain="$ac_aux_dir/ltmain.sh"
4123 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4125 if test "${ac_cv_path_SED+set}" = set; then
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4129 for ac_i in 1 2 3 4 5 6 7; do
4130 ac_script="$ac_script$as_nl$ac_script"
4131 done
4132 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4133 $as_unset ac_script || ac_script=
4134 if test -z "$SED"; then
4135 ac_path_SED_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in sed gsed; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4146 # Check for GNU ac_path_SED and select it if it is found.
4147 # Check for GNU $ac_path_SED
4148 case `"$ac_path_SED" --version 2>&1` in
4149 *GNU*)
4150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152 ac_count=0
4153 $as_echo_n 0123456789 >"conftest.in"
4154 while :
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo '' >> "conftest.nl"
4160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 ac_count=`expr $ac_count + 1`
4163 if test $ac_count -gt ${ac_path_SED_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_SED="$ac_path_SED"
4166 ac_path_SED_max=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4174 $ac_path_SED_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
4179 if test -z "$ac_cv_path_SED"; then
4180 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4181 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4182 { (exit 1); exit 1; }; }
4184 else
4185 ac_cv_path_SED=$SED
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4190 $as_echo "$ac_cv_path_SED" >&6; }
4191 SED="$ac_cv_path_SED"
4192 rm -f conftest.sed
4194 test -z "$SED" && SED=sed
4195 Xsed="$SED -e 1s/^X//"
4207 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4209 if test "${ac_cv_path_GREP+set}" = set; then
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -z "$GREP"; then
4213 ac_path_GREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in grep ggrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4224 # Check for GNU ac_path_GREP and select it if it is found.
4225 # Check for GNU $ac_path_GREP
4226 case `"$ac_path_GREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'GREP' >> "conftest.nl"
4238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 ac_count=`expr $ac_count + 1`
4241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_GREP="$ac_path_GREP"
4244 ac_path_GREP_max=$ac_count
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4252 $ac_path_GREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_GREP"; then
4258 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4259 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4260 { (exit 1); exit 1; }; }
4262 else
4263 ac_cv_path_GREP=$GREP
4267 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4268 $as_echo "$ac_cv_path_GREP" >&6; }
4269 GREP="$ac_cv_path_GREP"
4272 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4273 $as_echo_n "checking for egrep... " >&6; }
4274 if test "${ac_cv_path_EGREP+set}" = set; then
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4278 then ac_cv_path_EGREP="$GREP -E"
4279 else
4280 if test -z "$EGREP"; then
4281 ac_path_EGREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in egrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293 # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4295 *GNU*)
4296 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 ac_count=0
4299 $as_echo_n 0123456789 >"conftest.in"
4300 while :
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'EGREP' >> "conftest.nl"
4306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 ac_count=`expr $ac_count + 1`
4309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_EGREP="$ac_path_EGREP"
4312 ac_path_EGREP_max=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4316 done
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4320 $ac_path_EGREP_found && break 3
4321 done
4322 done
4323 done
4324 IFS=$as_save_IFS
4325 if test -z "$ac_cv_path_EGREP"; then
4326 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328 { (exit 1); exit 1; }; }
4330 else
4331 ac_cv_path_EGREP=$EGREP
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4337 $as_echo "$ac_cv_path_EGREP" >&6; }
4338 EGREP="$ac_cv_path_EGREP"
4341 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4342 $as_echo_n "checking for fgrep... " >&6; }
4343 if test "${ac_cv_path_FGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4347 then ac_cv_path_FGREP="$GREP -F"
4348 else
4349 if test -z "$FGREP"; then
4350 ac_path_FGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in fgrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4361 # Check for GNU ac_path_FGREP and select it if it is found.
4362 # Check for GNU $ac_path_FGREP
4363 case `"$ac_path_FGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'FGREP' >> "conftest.nl"
4375 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_FGREP="$ac_path_FGREP"
4381 ac_path_FGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4389 $ac_path_FGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_FGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4399 else
4400 ac_cv_path_FGREP=$FGREP
4405 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4406 $as_echo "$ac_cv_path_FGREP" >&6; }
4407 FGREP="$ac_cv_path_FGREP"
4410 test -z "$GREP" && GREP=grep
4430 # Check whether --with-gnu-ld was given.
4431 if test "${with_gnu_ld+set}" = set; then
4432 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4433 else
4434 with_gnu_ld=no
4437 ac_prog=ld
4438 if test "$GCC" = yes; then
4439 # Check if gcc -print-prog-name=ld gives a path.
4440 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4441 $as_echo_n "checking for ld used by $CC... " >&6; }
4442 case $host in
4443 *-*-mingw*)
4444 # gcc leaves a trailing carriage return which upsets mingw
4445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4448 esac
4449 case $ac_prog in
4450 # Accept absolute paths.
4451 [\\/]* | ?:[\\/]*)
4452 re_direlt='/[^/][^/]*/\.\./'
4453 # Canonicalize the pathname of ld
4454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4457 done
4458 test -z "$LD" && LD="$ac_prog"
4461 # If it fails, then pretend we aren't using GCC.
4462 ac_prog=ld
4465 # If it is relative, then search for the first ld in PATH.
4466 with_gnu_ld=unknown
4468 esac
4469 elif test "$with_gnu_ld" = yes; then
4470 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4471 $as_echo_n "checking for GNU ld... " >&6; }
4472 else
4473 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4474 $as_echo_n "checking for non-GNU ld... " >&6; }
4476 if test "${lt_cv_path_LD+set}" = set; then
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -z "$LD"; then
4480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4481 for ac_dir in $PATH; do
4482 IFS="$lt_save_ifs"
4483 test -z "$ac_dir" && ac_dir=.
4484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4485 lt_cv_path_LD="$ac_dir/$ac_prog"
4486 # Check to see if the program is GNU ld. I'd rather use --version,
4487 # but apparently some variants of GNU ld only accept -v.
4488 # Break only if it was the GNU/non-GNU ld that we prefer.
4489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4490 *GNU* | *'with BFD'*)
4491 test "$with_gnu_ld" != no && break
4494 test "$with_gnu_ld" != yes && break
4496 esac
4498 done
4499 IFS="$lt_save_ifs"
4500 else
4501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4505 LD="$lt_cv_path_LD"
4506 if test -n "$LD"; then
4507 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4508 $as_echo "$LD" >&6; }
4509 else
4510 { $as_echo "$as_me:$LINENO: result: no" >&5
4511 $as_echo "no" >&6; }
4513 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4514 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4515 { (exit 1); exit 1; }; }
4516 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4517 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4518 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4519 $as_echo_n "(cached) " >&6
4520 else
4521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4522 case `$LD -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524 lt_cv_prog_gnu_ld=yes
4527 lt_cv_prog_gnu_ld=no
4529 esac
4531 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4532 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4533 with_gnu_ld=$lt_cv_prog_gnu_ld
4543 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4544 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4545 if test "${lt_cv_path_NM+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$NM"; then
4549 # Let the user override the test.
4550 lt_cv_path_NM="$NM"
4551 else
4552 lt_nm_to_check="${ac_tool_prefix}nm"
4553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4554 lt_nm_to_check="$lt_nm_to_check nm"
4556 for lt_tmp_nm in $lt_nm_to_check; do
4557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4559 IFS="$lt_save_ifs"
4560 test -z "$ac_dir" && ac_dir=.
4561 tmp_nm="$ac_dir/$lt_tmp_nm"
4562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4563 # Check to see if the nm accepts a BSD-compat flag.
4564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4565 # nm: unknown option "B" ignored
4566 # Tru64's nm complains that /dev/null is an invalid object file
4567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4568 */dev/null* | *'Invalid file or object type'*)
4569 lt_cv_path_NM="$tmp_nm -B"
4570 break
4573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4574 */dev/null*)
4575 lt_cv_path_NM="$tmp_nm -p"
4576 break
4579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4580 continue # so that we can try to find one that supports BSD flags
4582 esac
4584 esac
4586 done
4587 IFS="$lt_save_ifs"
4588 done
4589 : ${lt_cv_path_NM=no}
4592 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4593 $as_echo "$lt_cv_path_NM" >&6; }
4594 if test "$lt_cv_path_NM" != "no"; then
4595 NM="$lt_cv_path_NM"
4596 else
4597 # Didn't find any BSD compatible name lister, look for dumpbin.
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$DUMPBIN"; then
4609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 DUMPBIN=$ac_cv_prog_DUMPBIN
4629 if test -n "$DUMPBIN"; then
4630 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4631 $as_echo "$DUMPBIN" >&6; }
4632 else
4633 { $as_echo "$as_me:$LINENO: result: no" >&5
4634 $as_echo "no" >&6; }
4638 test -n "$DUMPBIN" && break
4639 done
4641 if test -z "$DUMPBIN"; then
4642 ac_ct_DUMPBIN=$DUMPBIN
4643 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_DUMPBIN"; then
4653 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4673 if test -n "$ac_ct_DUMPBIN"; then
4674 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4675 $as_echo "$ac_ct_DUMPBIN" >&6; }
4676 else
4677 { $as_echo "$as_me:$LINENO: result: no" >&5
4678 $as_echo "no" >&6; }
4682 test -n "$ac_ct_DUMPBIN" && break
4683 done
4685 if test "x$ac_ct_DUMPBIN" = x; then
4686 DUMPBIN=":"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet. If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&5
4693 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4694 whose name does not start with the host triplet. If you think this
4695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4696 ac_tool_warned=yes ;;
4697 esac
4698 DUMPBIN=$ac_ct_DUMPBIN
4703 if test "$DUMPBIN" != ":"; then
4704 NM="$DUMPBIN"
4707 test -z "$NM" && NM=nm
4714 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4715 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4716 if test "${lt_cv_nm_interface+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4718 else
4719 lt_cv_nm_interface="BSD nm"
4720 echo "int some_variable = 0;" > conftest.$ac_ext
4721 (eval echo "\"\$as_me:4721: $ac_compile\"" >&5)
4722 (eval "$ac_compile" 2>conftest.err)
4723 cat conftest.err >&5
4724 (eval echo "\"\$as_me:4724: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4725 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4726 cat conftest.err >&5
4727 (eval echo "\"\$as_me:4727: output\"" >&5)
4728 cat conftest.out >&5
4729 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4730 lt_cv_nm_interface="MS dumpbin"
4732 rm -f conftest*
4734 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4735 $as_echo "$lt_cv_nm_interface" >&6; }
4737 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4738 $as_echo_n "checking whether ln -s works... " >&6; }
4739 LN_S=$as_ln_s
4740 if test "$LN_S" = "ln -s"; then
4741 { $as_echo "$as_me:$LINENO: result: yes" >&5
4742 $as_echo "yes" >&6; }
4743 else
4744 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4745 $as_echo "no, using $LN_S" >&6; }
4748 # find the maximum length of command line arguments
4749 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4750 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4751 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4752 $as_echo_n "(cached) " >&6
4753 else
4755 teststring="ABCD"
4757 case $build_os in
4758 msdosdjgpp*)
4759 # On DJGPP, this test can blow up pretty badly due to problems in libc
4760 # (any single argument exceeding 2000 bytes causes a buffer overrun
4761 # during glob expansion). Even if it were fixed, the result of this
4762 # check would be larger than it should be.
4763 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4766 gnu*)
4767 # Under GNU Hurd, this test is not required because there is
4768 # no limit to the length of command line arguments.
4769 # Libtool will interpret -1 as no limit whatsoever
4770 lt_cv_sys_max_cmd_len=-1;
4773 cygwin* | mingw*)
4774 # On Win9x/ME, this test blows up -- it succeeds, but takes
4775 # about 5 minutes as the teststring grows exponentially.
4776 # Worse, since 9x/ME are not pre-emptively multitasking,
4777 # you end up with a "frozen" computer, even though with patience
4778 # the test eventually succeeds (with a max line length of 256k).
4779 # Instead, let's just punt: use the minimum linelength reported by
4780 # all of the supported platforms: 8192 (on NT/2K/XP).
4781 lt_cv_sys_max_cmd_len=8192;
4784 amigaos*)
4785 # On AmigaOS with pdksh, this test takes hours, literally.
4786 # So we just punt and use a minimum line length of 8192.
4787 lt_cv_sys_max_cmd_len=8192;
4790 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4791 # This has been around since 386BSD, at least. Likely further.
4792 if test -x /sbin/sysctl; then
4793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4794 elif test -x /usr/sbin/sysctl; then
4795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4796 else
4797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4799 # And add a safety zone
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4804 interix*)
4805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4806 lt_cv_sys_max_cmd_len=196608
4809 osf*)
4810 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4811 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4812 # nice to cause kernel panics so lets avoid the loop below.
4813 # First set a reasonable default.
4814 lt_cv_sys_max_cmd_len=16384
4816 if test -x /sbin/sysconfig; then
4817 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4818 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4819 esac
4822 sco3.2v5*)
4823 lt_cv_sys_max_cmd_len=102400
4825 sysv5* | sco5v6* | sysv4.2uw2*)
4826 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4827 if test -n "$kargmax"; then
4828 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4829 else
4830 lt_cv_sys_max_cmd_len=32768
4834 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4835 if test -n "$lt_cv_sys_max_cmd_len"; then
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838 else
4839 # Make teststring a little bigger before we do anything with it.
4840 # a 1K string should be a reasonable start.
4841 for i in 1 2 3 4 5 6 7 8 ; do
4842 teststring=$teststring$teststring
4843 done
4844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4845 # If test is not a shell built-in, we'll probably end up computing a
4846 # maximum length that is only half of the actual maximum length, but
4847 # we can't tell.
4848 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4849 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4850 test $i != 17 # 1/2 MB should be enough
4852 i=`expr $i + 1`
4853 teststring=$teststring$teststring
4854 done
4855 # Only check the string length outside the loop.
4856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4857 teststring=
4858 # Add a significant safety factor because C++ compilers can tack on
4859 # massive amounts of additional arguments before passing them to the
4860 # linker. It appears as though 1/2 is a usable value.
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4864 esac
4868 if test -n $lt_cv_sys_max_cmd_len ; then
4869 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4870 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4871 else
4872 { $as_echo "$as_me:$LINENO: result: none" >&5
4873 $as_echo "none" >&6; }
4875 max_cmd_len=$lt_cv_sys_max_cmd_len
4882 : ${CP="cp -f"}
4883 : ${MV="mv -f"}
4884 : ${RM="rm -f"}
4886 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4887 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4888 # Try some XSI features
4889 xsi_shell=no
4890 ( _lt_dummy="a/b/c"
4891 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4892 = c,a/b,, \
4893 && eval 'test $(( 1 + 1 )) -eq 2 \
4894 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4895 && xsi_shell=yes
4896 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4897 $as_echo "$xsi_shell" >&6; }
4900 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4901 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4902 lt_shell_append=no
4903 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4904 >/dev/null 2>&1 \
4905 && lt_shell_append=yes
4906 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4907 $as_echo "$lt_shell_append" >&6; }
4910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4911 lt_unset=unset
4912 else
4913 lt_unset=false
4920 # test EBCDIC or ASCII
4921 case `echo X|tr X '\101'` in
4922 A) # ASCII based system
4923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4924 lt_SP2NL='tr \040 \012'
4925 lt_NL2SP='tr \015\012 \040\040'
4927 *) # EBCDIC based system
4928 lt_SP2NL='tr \100 \n'
4929 lt_NL2SP='tr \r\n \100\100'
4931 esac
4941 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4942 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4943 if test "${lt_cv_ld_reload_flag+set}" = set; then
4944 $as_echo_n "(cached) " >&6
4945 else
4946 lt_cv_ld_reload_flag='-r'
4948 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4949 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4950 reload_flag=$lt_cv_ld_reload_flag
4951 case $reload_flag in
4952 "" | " "*) ;;
4953 *) reload_flag=" $reload_flag" ;;
4954 esac
4955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4956 case $host_os in
4957 darwin*)
4958 if test "$GCC" = yes; then
4959 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4960 else
4961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4964 esac
4975 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4977 if test "${lt_cv_deplibs_check_method+set}" = set; then
4978 $as_echo_n "(cached) " >&6
4979 else
4980 lt_cv_file_magic_cmd='$MAGIC_CMD'
4981 lt_cv_file_magic_test_file=
4982 lt_cv_deplibs_check_method='unknown'
4983 # Need to set the preceding variable on all platforms that support
4984 # interlibrary dependencies.
4985 # 'none' -- dependencies not supported.
4986 # `unknown' -- same as none, but documents that we really don't know.
4987 # 'pass_all' -- all dependencies passed with no checks.
4988 # 'test_compile' -- check by making test program.
4989 # 'file_magic [[regex]]' -- check by looking for files in library path
4990 # which responds to the $file_magic_cmd with a given extended regex.
4991 # If you have `file' or equivalent on your system and you're not sure
4992 # whether `pass_all' will *always* work, you probably want this one.
4994 case $host_os in
4995 aix[4-9]*)
4996 lt_cv_deplibs_check_method=pass_all
4999 beos*)
5000 lt_cv_deplibs_check_method=pass_all
5003 bsdi[45]*)
5004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5005 lt_cv_file_magic_cmd='/usr/bin/file -L'
5006 lt_cv_file_magic_test_file=/shlib/libc.so
5009 cygwin*)
5010 # func_win32_libid is a shell function defined in ltmain.sh
5011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5012 lt_cv_file_magic_cmd='func_win32_libid'
5015 mingw* | pw32*)
5016 # Base MSYS/MinGW do not provide the 'file' command needed by
5017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5018 # unless we find 'file', for example because we are cross-compiling.
5019 if ( file / ) >/dev/null 2>&1; then
5020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021 lt_cv_file_magic_cmd='func_win32_libid'
5022 else
5023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5024 lt_cv_file_magic_cmd='$OBJDUMP -f'
5028 darwin* | rhapsody*)
5029 lt_cv_deplibs_check_method=pass_all
5032 freebsd* | dragonfly*)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034 case $host_cpu in
5035 i*86 )
5036 # Not sure whether the presence of OpenBSD here was a mistake.
5037 # Let's accept both of them until this is cleared up.
5038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5039 lt_cv_file_magic_cmd=/usr/bin/file
5040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5042 esac
5043 else
5044 lt_cv_deplibs_check_method=pass_all
5048 gnu*)
5049 lt_cv_deplibs_check_method=pass_all
5052 hpux10.20* | hpux11*)
5053 lt_cv_file_magic_cmd=/usr/bin/file
5054 case $host_cpu in
5055 ia64*)
5056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5059 hppa*64*)
5060 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]'
5061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5067 esac
5070 interix[3-9]*)
5071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075 irix5* | irix6* | nonstopux*)
5076 case $LD in
5077 *-32|*"-32 ") libmagic=32-bit;;
5078 *-n32|*"-n32 ") libmagic=N32;;
5079 *-64|*"-64 ") libmagic=64-bit;;
5080 *) libmagic=never-match;;
5081 esac
5082 lt_cv_deplibs_check_method=pass_all
5085 # This must be Linux ELF.
5086 linux* | k*bsd*-gnu)
5087 lt_cv_deplibs_check_method=pass_all
5090 netbsd*)
5091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5093 else
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5098 newos6*)
5099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5100 lt_cv_file_magic_cmd=/usr/bin/file
5101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5104 *nto* | *qnx*)
5105 lt_cv_deplibs_check_method=pass_all
5108 openbsd*)
5109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5111 else
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 osf3* | osf4* | osf5*)
5117 lt_cv_deplibs_check_method=pass_all
5120 rdos*)
5121 lt_cv_deplibs_check_method=pass_all
5124 solaris*)
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5129 lt_cv_deplibs_check_method=pass_all
5132 sysv4 | sysv4.3*)
5133 case $host_vendor in
5134 motorola)
5135 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]'
5136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5138 ncr)
5139 lt_cv_deplibs_check_method=pass_all
5141 sequent)
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5145 sni)
5146 lt_cv_file_magic_cmd='/bin/file'
5147 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5148 lt_cv_file_magic_test_file=/lib/libc.so
5150 siemens)
5151 lt_cv_deplibs_check_method=pass_all
5154 lt_cv_deplibs_check_method=pass_all
5156 esac
5159 tpf*)
5160 lt_cv_deplibs_check_method=pass_all
5162 esac
5165 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5167 file_magic_cmd=$lt_cv_file_magic_cmd
5168 deplibs_check_method=$lt_cv_deplibs_check_method
5169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182 if test -n "$ac_tool_prefix"; then
5183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5184 set dummy ${ac_tool_prefix}ar; ac_word=$2
5185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_AR+set}" = set; then
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$AR"; then
5191 ac_cv_prog_AR="$AR" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_AR="${ac_tool_prefix}ar"
5201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 AR=$ac_cv_prog_AR
5211 if test -n "$AR"; then
5212 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5213 $as_echo "$AR" >&6; }
5214 else
5215 { $as_echo "$as_me:$LINENO: result: no" >&5
5216 $as_echo "no" >&6; }
5221 if test -z "$ac_cv_prog_AR"; then
5222 ac_ct_AR=$AR
5223 # Extract the first word of "ar", so it can be a program name with args.
5224 set dummy ar; ac_word=$2
5225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$ac_ct_AR"; then
5231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_AR="ar"
5241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5253 $as_echo "$ac_ct_AR" >&6; }
5254 else
5255 { $as_echo "$as_me:$LINENO: result: no" >&5
5256 $as_echo "no" >&6; }
5259 if test "x$ac_ct_AR" = x; then
5260 AR="false"
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265 whose name does not start with the host triplet. If you think this
5266 configuration is useful to you, please write to autoconf@gnu.org." >&5
5267 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272 AR=$ac_ct_AR
5274 else
5275 AR="$ac_cv_prog_AR"
5278 test -z "$AR" && AR=ar
5279 test -z "$AR_FLAGS" && AR_FLAGS=cru
5291 if test -n "$ac_tool_prefix"; then
5292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5293 set dummy ${ac_tool_prefix}strip; ac_word=$2
5294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_STRIP+set}" = set; then
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$STRIP"; then
5300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 STRIP=$ac_cv_prog_STRIP
5320 if test -n "$STRIP"; then
5321 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5322 $as_echo "$STRIP" >&6; }
5323 else
5324 { $as_echo "$as_me:$LINENO: result: no" >&5
5325 $as_echo "no" >&6; }
5330 if test -z "$ac_cv_prog_STRIP"; then
5331 ac_ct_STRIP=$STRIP
5332 # Extract the first word of "strip", so it can be a program name with args.
5333 set dummy strip; ac_word=$2
5334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$ac_ct_STRIP"; then
5340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_ac_ct_STRIP="strip"
5350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5360 if test -n "$ac_ct_STRIP"; then
5361 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5362 $as_echo "$ac_ct_STRIP" >&6; }
5363 else
5364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5368 if test "x$ac_ct_STRIP" = x; then
5369 STRIP=":"
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5374 whose name does not start with the host triplet. If you think this
5375 configuration is useful to you, please write to autoconf@gnu.org." >&5
5376 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5377 whose name does not start with the host triplet. If you think this
5378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5379 ac_tool_warned=yes ;;
5380 esac
5381 STRIP=$ac_ct_STRIP
5383 else
5384 STRIP="$ac_cv_prog_STRIP"
5387 test -z "$STRIP" && STRIP=:
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_RANLIB+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$RANLIB"; then
5403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5422 RANLIB=$ac_cv_prog_RANLIB
5423 if test -n "$RANLIB"; then
5424 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5425 $as_echo "$RANLIB" >&6; }
5426 else
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5433 if test -z "$ac_cv_prog_RANLIB"; then
5434 ac_ct_RANLIB=$RANLIB
5435 # Extract the first word of "ranlib", so it can be a program name with args.
5436 set dummy ranlib; ac_word=$2
5437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5440 $as_echo_n "(cached) " >&6
5441 else
5442 if test -n "$ac_ct_RANLIB"; then
5443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_ac_ct_RANLIB="ranlib"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5456 done
5457 done
5458 IFS=$as_save_IFS
5462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5463 if test -n "$ac_ct_RANLIB"; then
5464 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5465 $as_echo "$ac_ct_RANLIB" >&6; }
5466 else
5467 { $as_echo "$as_me:$LINENO: result: no" >&5
5468 $as_echo "no" >&6; }
5471 if test "x$ac_ct_RANLIB" = x; then
5472 RANLIB=":"
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5477 whose name does not start with the host triplet. If you think this
5478 configuration is useful to you, please write to autoconf@gnu.org." >&5
5479 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5480 whose name does not start with the host triplet. If you think this
5481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5482 ac_tool_warned=yes ;;
5483 esac
5484 RANLIB=$ac_ct_RANLIB
5486 else
5487 RANLIB="$ac_cv_prog_RANLIB"
5490 test -z "$RANLIB" && RANLIB=:
5497 # Determine commands to create old-style static archives.
5498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5499 old_postinstall_cmds='chmod 644 $oldlib'
5500 old_postuninstall_cmds=
5502 if test -n "$RANLIB"; then
5503 case $host_os in
5504 openbsd*)
5505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5510 esac
5511 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5547 # If no C compiler was specified, use CC.
5548 LTCC=${LTCC-"$CC"}
5550 # If no C compiler flags were specified, use CFLAGS.
5551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5553 # Allow CC to be a program name with arguments.
5554 compiler=$CC
5557 # Check for command to grab the raw symbol name followed by C symbol from nm.
5558 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5559 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5560 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5562 else
5564 # These are sane defaults that work on at least a few old systems.
5565 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5567 # Character class describing NM global symbol codes.
5568 symcode='[BCDEGRST]'
5570 # Regexp to match symbols that can be accessed directly from C.
5571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5573 # Define system-specific variables.
5574 case $host_os in
5575 aix*)
5576 symcode='[BCDT]'
5578 cygwin* | mingw* | pw32*)
5579 symcode='[ABCDGISTW]'
5581 hpux*)
5582 if test "$host_cpu" = ia64; then
5583 symcode='[ABCDEGRST]'
5586 irix* | nonstopux*)
5587 symcode='[BCDEGRST]'
5589 osf*)
5590 symcode='[BCDEGQRST]'
5592 solaris*)
5593 symcode='[BDRT]'
5595 sco3.2v5*)
5596 symcode='[DT]'
5598 sysv4.2uw2*)
5599 symcode='[DT]'
5601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5602 symcode='[ABDT]'
5604 sysv4)
5605 symcode='[DFNSTU]'
5607 esac
5609 # If we're using GNU nm, then use its standard symbol codes.
5610 case `$NM -V 2>&1` in
5611 *GNU* | *'with BFD'*)
5612 symcode='[ABCDGIRSTW]' ;;
5613 esac
5615 # Transform an extracted symbol line into a proper C declaration.
5616 # Some systems (esp. on ia64) link data and code symbols differently,
5617 # so use this general approach.
5618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5620 # Transform an extracted symbol line into symbol name and symbol address
5621 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5624 # Handle CRLF in mingw tool chain
5625 opt_cr=
5626 case $build_os in
5627 mingw*)
5628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5630 esac
5632 # Try without a prefix underscore, then with it.
5633 for ac_symprfx in "" "_"; do
5635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636 symxfrm="\\1 $ac_symprfx\\2 \\2"
5638 # Write the raw and C identifiers.
5639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5640 # Fake it for dumpbin and say T for any non-static function
5641 # and D for any global variable.
5642 # Also find C++ and __fastcall symbols from MSVC++,
5643 # which start with @ or ?.
5644 lt_cv_sys_global_symbol_pipe="$AWK '"\
5645 " {last_section=section; section=\$ 3};"\
5646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5647 " \$ 0!~/External *\|/{next};"\
5648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5649 " {if(hide[section]) next};"\
5650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5654 " ' prfx=^$ac_symprfx"
5655 else
5656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5659 # Check to see that the pipe works correctly.
5660 pipe_works=no
5662 rm -f conftest*
5663 cat > conftest.$ac_ext <<_LT_EOF
5664 #ifdef __cplusplus
5665 extern "C" {
5666 #endif
5667 char nm_test_var;
5668 void nm_test_func(void);
5669 void nm_test_func(void){}
5670 #ifdef __cplusplus
5672 #endif
5673 int main(){nm_test_var='a';nm_test_func();return(0);}
5674 _LT_EOF
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; then
5681 # Now try to grab the symbols.
5682 nlist=conftest.nm
5683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && test -s "$nlist"; then
5688 # Try sorting and uniquifying the output.
5689 if sort "$nlist" | uniq > "$nlist"T; then
5690 mv -f "$nlist"T "$nlist"
5691 else
5692 rm -f "$nlist"T
5695 # Make sure that we snagged all the symbols we need.
5696 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5697 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5698 cat <<_LT_EOF > conftest.$ac_ext
5699 #ifdef __cplusplus
5700 extern "C" {
5701 #endif
5703 _LT_EOF
5704 # Now generate the symbol file.
5705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5707 cat <<_LT_EOF >> conftest.$ac_ext
5709 /* The mapping between symbol names and symbols. */
5710 const struct {
5711 const char *name;
5712 void *address;
5714 lt__PROGRAM__LTX_preloaded_symbols[] =
5716 { "@PROGRAM@", (void *) 0 },
5717 _LT_EOF
5718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5719 cat <<\_LT_EOF >> conftest.$ac_ext
5720 {0, (void *) 0}
5723 /* This works around a problem in FreeBSD linker */
5724 #ifdef FREEBSD_WORKAROUND
5725 static const void *lt_preloaded_setup() {
5726 return lt__PROGRAM__LTX_preloaded_symbols;
5728 #endif
5730 #ifdef __cplusplus
5732 #endif
5733 _LT_EOF
5734 # Now try linking the two files.
5735 mv conftest.$ac_objext conftstm.$ac_objext
5736 lt_save_LIBS="$LIBS"
5737 lt_save_CFLAGS="$CFLAGS"
5738 LIBS="conftstm.$ac_objext"
5739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5745 pipe_works=yes
5747 LIBS="$lt_save_LIBS"
5748 CFLAGS="$lt_save_CFLAGS"
5749 else
5750 echo "cannot find nm_test_func in $nlist" >&5
5752 else
5753 echo "cannot find nm_test_var in $nlist" >&5
5755 else
5756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5758 else
5759 echo "$progname: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5762 rm -rf conftest* conftst*
5764 # Do not use the global_symbol_pipe unless it works.
5765 if test "$pipe_works" = yes; then
5766 break
5767 else
5768 lt_cv_sys_global_symbol_pipe=
5770 done
5774 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5775 lt_cv_sys_global_symbol_to_cdecl=
5777 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5778 { $as_echo "$as_me:$LINENO: result: failed" >&5
5779 $as_echo "failed" >&6; }
5780 else
5781 { $as_echo "$as_me:$LINENO: result: ok" >&5
5782 $as_echo "ok" >&6; }
5807 # Check whether --enable-libtool-lock was given.
5808 if test "${enable_libtool_lock+set}" = set; then
5809 enableval=$enable_libtool_lock;
5812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5814 # Some flags need to be propagated to the compiler or linker for good
5815 # libtool support.
5816 case $host in
5817 ia64-*-hpux*)
5818 # Find out which ABI we are using.
5819 echo 'int i;' > conftest.$ac_ext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5822 ac_status=$?
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; then
5825 case `/usr/bin/file conftest.$ac_objext` in
5826 *ELF-32*)
5827 HPUX_IA64_MODE="32"
5829 *ELF-64*)
5830 HPUX_IA64_MODE="64"
5832 esac
5834 rm -rf conftest*
5836 *-*-irix6*)
5837 # Find out which ABI we are using.
5838 echo '#line 5838 "configure"' > conftest.$ac_ext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5841 ac_status=$?
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; then
5844 if test "$lt_cv_prog_gnu_ld" = yes; then
5845 case `/usr/bin/file conftest.$ac_objext` in
5846 *32-bit*)
5847 LD="${LD-ld} -melf32bsmip"
5849 *N32*)
5850 LD="${LD-ld} -melf32bmipn32"
5852 *64-bit*)
5853 LD="${LD-ld} -melf64bmip"
5855 esac
5856 else
5857 case `/usr/bin/file conftest.$ac_objext` in
5858 *32-bit*)
5859 LD="${LD-ld} -32"
5861 *N32*)
5862 LD="${LD-ld} -n32"
5864 *64-bit*)
5865 LD="${LD-ld} -64"
5867 esac
5870 rm -rf conftest*
5873 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5874 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5875 # Find out which ABI we are using.
5876 echo 'int i;' > conftest.$ac_ext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; then
5882 case `/usr/bin/file conftest.o` in
5883 *32-bit*)
5884 case $host in
5885 x86_64-*kfreebsd*-gnu)
5886 LD="${LD-ld} -m elf_i386_fbsd"
5888 x86_64-*linux*)
5889 LD="${LD-ld} -m elf_i386"
5891 ppc64-*linux*|powerpc64-*linux*)
5892 LD="${LD-ld} -m elf32ppclinux"
5894 s390x-*linux*)
5895 LD="${LD-ld} -m elf_s390"
5897 sparc64-*linux*)
5898 LD="${LD-ld} -m elf32_sparc"
5900 esac
5902 *64-bit*)
5903 case $host in
5904 x86_64-*kfreebsd*-gnu)
5905 LD="${LD-ld} -m elf_x86_64_fbsd"
5907 x86_64-*linux*)
5908 LD="${LD-ld} -m elf_x86_64"
5910 ppc*-*linux*|powerpc*-*linux*)
5911 LD="${LD-ld} -m elf64ppc"
5913 s390*-*linux*|s390*-*tpf*)
5914 LD="${LD-ld} -m elf64_s390"
5916 sparc*-*linux*)
5917 LD="${LD-ld} -m elf64_sparc"
5919 esac
5921 esac
5923 rm -rf conftest*
5926 *-*-sco3.2v5*)
5927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5928 SAVE_CFLAGS="$CFLAGS"
5929 CFLAGS="$CFLAGS -belf"
5930 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5931 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5932 if test "${lt_cv_cc_needs_belf+set}" = set; then
5933 $as_echo_n "(cached) " >&6
5934 else
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5949 main ()
5953 return 0;
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (ac_try="$ac_link"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5963 $as_echo "$ac_try_echo") >&5
5964 (eval "$ac_link") 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest$ac_exeext && {
5974 test "$cross_compiling" = yes ||
5975 $as_test_x conftest$ac_exeext
5976 }; then
5977 lt_cv_cc_needs_belf=yes
5978 else
5979 $as_echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 lt_cv_cc_needs_belf=no
5985 rm -rf conftest.dSYM
5986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5987 conftest$ac_exeext conftest.$ac_ext
5988 ac_ext=c
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5996 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5999 CFLAGS="$SAVE_CFLAGS"
6002 sparc*-*solaris*)
6003 # Find out which ABI we are using.
6004 echo 'int i;' > conftest.$ac_ext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; then
6010 case `/usr/bin/file conftest.o` in
6011 *64-bit*)
6012 case $lt_cv_prog_gnu_ld in
6013 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6016 LD="${LD-ld} -64"
6019 esac
6021 esac
6023 rm -rf conftest*
6025 esac
6027 need_locks="$enable_libtool_lock"
6030 case $host_os in
6031 rhapsody* | darwin*)
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$DSYMUTIL"; then
6041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6061 if test -n "$DSYMUTIL"; then
6062 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6063 $as_echo "$DSYMUTIL" >&6; }
6064 else
6065 { $as_echo "$as_me:$LINENO: result: no" >&5
6066 $as_echo "no" >&6; }
6071 if test -z "$ac_cv_prog_DSYMUTIL"; then
6072 ac_ct_DSYMUTIL=$DSYMUTIL
6073 # Extract the first word of "dsymutil", so it can be a program name with args.
6074 set dummy dsymutil; ac_word=$2
6075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$ac_ct_DSYMUTIL"; then
6081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6094 done
6095 done
6096 IFS=$as_save_IFS
6100 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6101 if test -n "$ac_ct_DSYMUTIL"; then
6102 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6103 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6104 else
6105 { $as_echo "$as_me:$LINENO: result: no" >&5
6106 $as_echo "no" >&6; }
6109 if test "x$ac_ct_DSYMUTIL" = x; then
6110 DSYMUTIL=":"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet. If you think this
6116 configuration is useful to you, please write to autoconf@gnu.org." >&5
6117 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet. If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122 DSYMUTIL=$ac_ct_DSYMUTIL
6124 else
6125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test -n "$NMEDIT"; then
6137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6150 done
6151 done
6152 IFS=$as_save_IFS
6156 NMEDIT=$ac_cv_prog_NMEDIT
6157 if test -n "$NMEDIT"; then
6158 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6159 $as_echo "$NMEDIT" >&6; }
6160 else
6161 { $as_echo "$as_me:$LINENO: result: no" >&5
6162 $as_echo "no" >&6; }
6167 if test -z "$ac_cv_prog_NMEDIT"; then
6168 ac_ct_NMEDIT=$NMEDIT
6169 # Extract the first word of "nmedit", so it can be a program name with args.
6170 set dummy nmedit; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$ac_ct_NMEDIT"; then
6177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6190 done
6191 done
6192 IFS=$as_save_IFS
6196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6197 if test -n "$ac_ct_NMEDIT"; then
6198 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6199 $as_echo "$ac_ct_NMEDIT" >&6; }
6200 else
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6205 if test "x$ac_ct_NMEDIT" = x; then
6206 NMEDIT=":"
6207 else
6208 case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet. If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&5
6213 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet. If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218 NMEDIT=$ac_ct_NMEDIT
6220 else
6221 NMEDIT="$ac_cv_prog_NMEDIT"
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_LIPO+set}" = set; then
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$LIPO"; then
6233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6246 done
6247 done
6248 IFS=$as_save_IFS
6252 LIPO=$ac_cv_prog_LIPO
6253 if test -n "$LIPO"; then
6254 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6255 $as_echo "$LIPO" >&6; }
6256 else
6257 { $as_echo "$as_me:$LINENO: result: no" >&5
6258 $as_echo "no" >&6; }
6263 if test -z "$ac_cv_prog_LIPO"; then
6264 ac_ct_LIPO=$LIPO
6265 # Extract the first word of "lipo", so it can be a program name with args.
6266 set dummy lipo; ac_word=$2
6267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test -n "$ac_ct_LIPO"; then
6273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_LIPO="lipo"
6283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6286 done
6287 done
6288 IFS=$as_save_IFS
6292 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6293 if test -n "$ac_ct_LIPO"; then
6294 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6295 $as_echo "$ac_ct_LIPO" >&6; }
6296 else
6297 { $as_echo "$as_me:$LINENO: result: no" >&5
6298 $as_echo "no" >&6; }
6301 if test "x$ac_ct_LIPO" = x; then
6302 LIPO=":"
6303 else
6304 case $cross_compiling:$ac_tool_warned in
6305 yes:)
6306 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6307 whose name does not start with the host triplet. If you think this
6308 configuration is useful to you, please write to autoconf@gnu.org." >&5
6309 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314 LIPO=$ac_ct_LIPO
6316 else
6317 LIPO="$ac_cv_prog_LIPO"
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}otool; ac_word=$2
6323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_OTOOL+set}" = set; then
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$OTOOL"; then
6329 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6342 done
6343 done
6344 IFS=$as_save_IFS
6348 OTOOL=$ac_cv_prog_OTOOL
6349 if test -n "$OTOOL"; then
6350 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6351 $as_echo "$OTOOL" >&6; }
6352 else
6353 { $as_echo "$as_me:$LINENO: result: no" >&5
6354 $as_echo "no" >&6; }
6359 if test -z "$ac_cv_prog_OTOOL"; then
6360 ac_ct_OTOOL=$OTOOL
6361 # Extract the first word of "otool", so it can be a program name with args.
6362 set dummy otool; ac_word=$2
6363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$ac_ct_OTOOL"; then
6369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_OTOOL="otool"
6379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6382 done
6383 done
6384 IFS=$as_save_IFS
6388 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6389 if test -n "$ac_ct_OTOOL"; then
6390 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6391 $as_echo "$ac_ct_OTOOL" >&6; }
6392 else
6393 { $as_echo "$as_me:$LINENO: result: no" >&5
6394 $as_echo "no" >&6; }
6397 if test "x$ac_ct_OTOOL" = x; then
6398 OTOOL=":"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6403 whose name does not start with the host triplet. If you think this
6404 configuration is useful to you, please write to autoconf@gnu.org." >&5
6405 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6406 whose name does not start with the host triplet. If you think this
6407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 OTOOL=$ac_ct_OTOOL
6412 else
6413 OTOOL="$ac_cv_prog_OTOOL"
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$OTOOL64"; then
6425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6440 IFS=$as_save_IFS
6444 OTOOL64=$ac_cv_prog_OTOOL64
6445 if test -n "$OTOOL64"; then
6446 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6447 $as_echo "$OTOOL64" >&6; }
6448 else
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450 $as_echo "no" >&6; }
6455 if test -z "$ac_cv_prog_OTOOL64"; then
6456 ac_ct_OTOOL64=$OTOOL64
6457 # Extract the first word of "otool64", so it can be a program name with args.
6458 set dummy otool64; ac_word=$2
6459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_OTOOL64"; then
6465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_OTOOL64="otool64"
6475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6480 IFS=$as_save_IFS
6484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6485 if test -n "$ac_ct_OTOOL64"; then
6486 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6487 $as_echo "$ac_ct_OTOOL64" >&6; }
6488 else
6489 { $as_echo "$as_me:$LINENO: result: no" >&5
6490 $as_echo "no" >&6; }
6493 if test "x$ac_ct_OTOOL64" = x; then
6494 OTOOL64=":"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6499 whose name does not start with the host triplet. If you think this
6500 configuration is useful to you, please write to autoconf@gnu.org." >&5
6501 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6502 whose name does not start with the host triplet. If you think this
6503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 OTOOL64=$ac_ct_OTOOL64
6508 else
6509 OTOOL64="$ac_cv_prog_OTOOL64"
6538 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6539 $as_echo_n "checking for -single_module linker flag... " >&6; }
6540 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6541 $as_echo_n "(cached) " >&6
6542 else
6543 lt_cv_apple_cc_single_mod=no
6544 if test -z "${LT_MULTI_MODULE}"; then
6545 # By default we will add the -single_module flag. You can override
6546 # by either setting the environment variable LT_MULTI_MODULE
6547 # non-empty at configure time, or by adding -multi_module to the
6548 # link flags.
6549 rm -rf libconftest.dylib*
6550 echo "int foo(void){return 1;}" > conftest.c
6551 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6552 -dynamiclib -Wl,-single_module conftest.c" >&5
6553 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6554 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6555 _lt_result=$?
6556 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6557 lt_cv_apple_cc_single_mod=yes
6558 else
6559 cat conftest.err >&5
6561 rm -rf libconftest.dylib*
6562 rm -f conftest.*
6565 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6567 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6568 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6569 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6570 $as_echo_n "(cached) " >&6
6571 else
6572 lt_cv_ld_exported_symbols_list=no
6573 save_LDFLAGS=$LDFLAGS
6574 echo "_main" > conftest.sym
6575 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6584 main ()
6588 return 0;
6590 _ACEOF
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (ac_try="$ac_link"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_link") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest$ac_exeext && {
6609 test "$cross_compiling" = yes ||
6610 $as_test_x conftest$ac_exeext
6611 }; then
6612 lt_cv_ld_exported_symbols_list=yes
6613 else
6614 $as_echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 lt_cv_ld_exported_symbols_list=no
6620 rm -rf conftest.dSYM
6621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6622 conftest$ac_exeext conftest.$ac_ext
6623 LDFLAGS="$save_LDFLAGS"
6626 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6628 case $host_os in
6629 rhapsody* | darwin1.[012])
6630 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6631 darwin1.*)
6632 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6633 darwin*) # darwin 5.x on
6634 # if running on 10.5 or later, the deployment target defaults
6635 # to the OS version, if on x86, and 10.4, the deployment
6636 # target defaults to 10.4. Don't you love it?
6637 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6638 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6640 10.[012]*)
6641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6642 10.*)
6643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6644 esac
6646 esac
6647 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6648 _lt_dar_single_mod='$single_module'
6650 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6651 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6652 else
6653 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6655 if test "$DSYMUTIL" != ":"; then
6656 _lt_dsymutil='~$DSYMUTIL $lib || :'
6657 else
6658 _lt_dsymutil=
6661 esac
6664 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6665 $as_echo_n "checking for ANSI C header files... " >&6; }
6666 if test "${ac_cv_header_stdc+set}" = set; then
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <stdlib.h>
6676 #include <stdarg.h>
6677 #include <string.h>
6678 #include <float.h>
6681 main ()
6685 return 0;
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6695 $as_echo "$ac_try_echo") >&5
6696 (eval "$ac_compile") 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } && {
6703 test -z "$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6705 } && test -s conftest.$ac_objext; then
6706 ac_cv_header_stdc=yes
6707 else
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ac_cv_header_stdc=no
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 if test $ac_cv_header_stdc = yes; then
6717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <string.h>
6726 _ACEOF
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 $EGREP "memchr" >/dev/null 2>&1; then
6730 else
6731 ac_cv_header_stdc=no
6733 rm -f conftest*
6737 if test $ac_cv_header_stdc = yes; then
6738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <stdlib.h>
6747 _ACEOF
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "free" >/dev/null 2>&1; then
6751 else
6752 ac_cv_header_stdc=no
6754 rm -f conftest*
6758 if test $ac_cv_header_stdc = yes; then
6759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6760 if test "$cross_compiling" = yes; then
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <ctype.h>
6770 #include <stdlib.h>
6771 #if ((' ' & 0x0FF) == 0x020)
6772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6774 #else
6775 # define ISLOWER(c) \
6776 (('a' <= (c) && (c) <= 'i') \
6777 || ('j' <= (c) && (c) <= 'r') \
6778 || ('s' <= (c) && (c) <= 'z'))
6779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6780 #endif
6782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6784 main ()
6786 int i;
6787 for (i = 0; i < 256; i++)
6788 if (XOR (islower (i), ISLOWER (i))
6789 || toupper (i) != TOUPPER (i))
6790 return 2;
6791 return 0;
6793 _ACEOF
6794 rm -f conftest$ac_exeext
6795 if { (ac_try="$ac_link"
6796 case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_link") 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6811 $as_echo "$ac_try_echo") >&5
6812 (eval "$ac_try") 2>&5
6813 ac_status=$?
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6817 else
6818 $as_echo "$as_me: program exited with status $ac_status" >&5
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ( exit $ac_status )
6823 ac_cv_header_stdc=no
6825 rm -rf conftest.dSYM
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6833 $as_echo "$ac_cv_header_stdc" >&6; }
6834 if test $ac_cv_header_stdc = yes; then
6836 cat >>confdefs.h <<\_ACEOF
6837 #define STDC_HEADERS 1
6838 _ACEOF
6842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6852 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6853 inttypes.h stdint.h unistd.h
6855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 $as_echo_n "checking for $ac_header... " >&6; }
6858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6859 $as_echo_n "(cached) " >&6
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6869 #include <$ac_header>
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 eval "$as_ac_Header=yes"
6890 else
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 eval "$as_ac_Header=no"
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 ac_res=`eval 'as_val=${'$as_ac_Header'}
6900 $as_echo "$as_val"'`
6901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6902 $as_echo "$ac_res" >&6; }
6903 if test `eval 'as_val=${'$as_ac_Header'}
6904 $as_echo "$as_val"'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907 _ACEOF
6911 done
6915 for ac_header in dlfcn.h
6917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6919 $as_echo_n "checking for $ac_header... " >&6; }
6920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 $ac_includes_default
6931 #include <$ac_header>
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6935 case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 eval "$as_ac_Header=yes"
6952 else
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 eval "$as_ac_Header=no"
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 ac_res=`eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'`
6963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6964 $as_echo "$ac_res" >&6; }
6965 if test `eval 'as_val=${'$as_ac_Header'}
6966 $as_echo "$as_val"'` = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 _ACEOF
6973 done
6977 # Set options
6978 # Check whether --enable-shared was given.
6979 if test "${enable_shared+set}" = set; then
6980 enableval=$enable_shared; p=${PACKAGE-default}
6981 case $enableval in
6982 yes) enable_shared=yes ;;
6983 no) enable_shared=no ;;
6985 enable_shared=no
6986 # Look at the argument we got. We use all the common list separators.
6987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6988 for pkg in $enableval; do
6989 IFS="$lt_save_ifs"
6990 if test "X$pkg" = "X$p"; then
6991 enable_shared=yes
6993 done
6994 IFS="$lt_save_ifs"
6996 esac
6997 else
6998 enable_shared=no
7010 enable_dlopen=no
7013 enable_win32_dll=no
7017 # Check whether --enable-static was given.
7018 if test "${enable_static+set}" = set; then
7019 enableval=$enable_static; p=${PACKAGE-default}
7020 case $enableval in
7021 yes) enable_static=yes ;;
7022 no) enable_static=no ;;
7024 enable_static=no
7025 # Look at the argument we got. We use all the common list separators.
7026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7027 for pkg in $enableval; do
7028 IFS="$lt_save_ifs"
7029 if test "X$pkg" = "X$p"; then
7030 enable_static=yes
7032 done
7033 IFS="$lt_save_ifs"
7035 esac
7036 else
7037 enable_static=yes
7049 # Check whether --with-pic was given.
7050 if test "${with_pic+set}" = set; then
7051 withval=$with_pic; pic_mode="$withval"
7052 else
7053 pic_mode=default
7057 test -z "$pic_mode" && pic_mode=default
7065 # Check whether --enable-fast-install was given.
7066 if test "${enable_fast_install+set}" = set; then
7067 enableval=$enable_fast_install; p=${PACKAGE-default}
7068 case $enableval in
7069 yes) enable_fast_install=yes ;;
7070 no) enable_fast_install=no ;;
7072 enable_fast_install=no
7073 # Look at the argument we got. We use all the common list separators.
7074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7075 for pkg in $enableval; do
7076 IFS="$lt_save_ifs"
7077 if test "X$pkg" = "X$p"; then
7078 enable_fast_install=yes
7080 done
7081 IFS="$lt_save_ifs"
7083 esac
7084 else
7085 enable_fast_install=yes
7098 # This can be used to rebuild libtool when needed
7099 LIBTOOL_DEPS="$ltmain"
7101 # Always use our own libtool.
7102 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7128 test -z "$LN_S" && LN_S="ln -s"
7143 if test -n "${ZSH_VERSION+set}" ; then
7144 setopt NO_GLOB_SUBST
7147 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7148 $as_echo_n "checking for objdir... " >&6; }
7149 if test "${lt_cv_objdir+set}" = set; then
7150 $as_echo_n "(cached) " >&6
7151 else
7152 rm -f .libs 2>/dev/null
7153 mkdir .libs 2>/dev/null
7154 if test -d .libs; then
7155 lt_cv_objdir=.libs
7156 else
7157 # MS-DOS does not allow filenames that begin with a dot.
7158 lt_cv_objdir=_libs
7160 rmdir .libs 2>/dev/null
7162 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7163 $as_echo "$lt_cv_objdir" >&6; }
7164 objdir=$lt_cv_objdir
7170 cat >>confdefs.h <<_ACEOF
7171 #define LT_OBJDIR "$lt_cv_objdir/"
7172 _ACEOF
7190 case $host_os in
7191 aix3*)
7192 # AIX sometimes has problems with the GCC collect2 program. For some
7193 # reason, if we set the COLLECT_NAMES environment variable, the problems
7194 # vanish in a puff of smoke.
7195 if test "X${COLLECT_NAMES+set}" != Xset; then
7196 COLLECT_NAMES=
7197 export COLLECT_NAMES
7200 esac
7202 # Sed substitution that helps us do robust quoting. It backslashifies
7203 # metacharacters that are still active within double-quoted strings.
7204 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7206 # Same as above, but do not quote variable references.
7207 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7209 # Sed substitution to delay expansion of an escaped shell variable in a
7210 # double_quote_subst'ed string.
7211 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7213 # Sed substitution to delay expansion of an escaped single quote.
7214 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7216 # Sed substitution to avoid accidental globbing in evaled expressions
7217 no_glob_subst='s/\*/\\\*/g'
7219 # Global variables:
7220 ofile=libtool
7221 can_build_shared=yes
7223 # All known linkers require a `.a' archive for static linking (except MSVC,
7224 # which needs '.lib').
7225 libext=a
7227 with_gnu_ld="$lt_cv_prog_gnu_ld"
7229 old_CC="$CC"
7230 old_CFLAGS="$CFLAGS"
7232 # Set sane defaults for various variables
7233 test -z "$CC" && CC=cc
7234 test -z "$LTCC" && LTCC=$CC
7235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7236 test -z "$LD" && LD=ld
7237 test -z "$ac_objext" && ac_objext=o
7239 for cc_temp in $compiler""; do
7240 case $cc_temp in
7241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7243 \-*) ;;
7244 *) break;;
7245 esac
7246 done
7247 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250 # Only perform the check for file, if the check method requires it
7251 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7252 case $deplibs_check_method in
7253 file_magic*)
7254 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7255 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7256 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7259 else
7260 case $MAGIC_CMD in
7261 [\\/*] | ?:[\\/]*)
7262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7265 lt_save_MAGIC_CMD="$MAGIC_CMD"
7266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7268 for ac_dir in $ac_dummy; do
7269 IFS="$lt_save_ifs"
7270 test -z "$ac_dir" && ac_dir=.
7271 if test -f $ac_dir/${ac_tool_prefix}file; then
7272 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7273 if test -n "$file_magic_test_file"; then
7274 case $deplibs_check_method in
7275 "file_magic "*)
7276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7279 $EGREP "$file_magic_regex" > /dev/null; then
7281 else
7282 cat <<_LT_EOF 1>&2
7284 *** Warning: the command libtool uses to detect shared libraries,
7285 *** $file_magic_cmd, produces output that libtool cannot recognize.
7286 *** The result is that libtool may fail to recognize shared libraries
7287 *** as such. This will affect the creation of libtool libraries that
7288 *** depend on shared libraries, but programs linked with such libtool
7289 *** libraries will work regardless of this problem. Nevertheless, you
7290 *** may want to report the problem to your system manager and/or to
7291 *** bug-libtool@gnu.org
7293 _LT_EOF
7294 fi ;;
7295 esac
7297 break
7299 done
7300 IFS="$lt_save_ifs"
7301 MAGIC_CMD="$lt_save_MAGIC_CMD"
7303 esac
7306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7307 if test -n "$MAGIC_CMD"; then
7308 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7309 $as_echo "$MAGIC_CMD" >&6; }
7310 else
7311 { $as_echo "$as_me:$LINENO: result: no" >&5
7312 $as_echo "no" >&6; }
7319 if test -z "$lt_cv_path_MAGIC_CMD"; then
7320 if test -n "$ac_tool_prefix"; then
7321 { $as_echo "$as_me:$LINENO: checking for file" >&5
7322 $as_echo_n "checking for file... " >&6; }
7323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7325 else
7326 case $MAGIC_CMD in
7327 [\\/*] | ?:[\\/]*)
7328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331 lt_save_MAGIC_CMD="$MAGIC_CMD"
7332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir in $ac_dummy; do
7335 IFS="$lt_save_ifs"
7336 test -z "$ac_dir" && ac_dir=.
7337 if test -f $ac_dir/file; then
7338 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7341 "file_magic "*)
7342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7345 $EGREP "$file_magic_regex" > /dev/null; then
7347 else
7348 cat <<_LT_EOF 1>&2
7350 *** Warning: the command libtool uses to detect shared libraries,
7351 *** $file_magic_cmd, produces output that libtool cannot recognize.
7352 *** The result is that libtool may fail to recognize shared libraries
7353 *** as such. This will affect the creation of libtool libraries that
7354 *** depend on shared libraries, but programs linked with such libtool
7355 *** libraries will work regardless of this problem. Nevertheless, you
7356 *** may want to report the problem to your system manager and/or to
7357 *** bug-libtool@gnu.org
7359 _LT_EOF
7360 fi ;;
7361 esac
7363 break
7365 done
7366 IFS="$lt_save_ifs"
7367 MAGIC_CMD="$lt_save_MAGIC_CMD"
7369 esac
7372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373 if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7375 $as_echo "$MAGIC_CMD" >&6; }
7376 else
7377 { $as_echo "$as_me:$LINENO: result: no" >&5
7378 $as_echo "no" >&6; }
7382 else
7383 MAGIC_CMD=:
7389 esac
7391 # Use C for the default configuration in the libtool script
7393 lt_save_CC="$CC"
7394 ac_ext=c
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401 # Source file extension for C test sources.
7402 ac_ext=c
7404 # Object file extension for compiled C test sources.
7405 objext=o
7406 objext=$objext
7408 # Code to be used in simple compile tests
7409 lt_simple_compile_test_code="int some_variable = 0;"
7411 # Code to be used in simple link tests
7412 lt_simple_link_test_code='int main(){return(0);}'
7420 # If no C compiler was specified, use CC.
7421 LTCC=${LTCC-"$CC"}
7423 # If no C compiler flags were specified, use CFLAGS.
7424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7426 # Allow CC to be a program name with arguments.
7427 compiler=$CC
7429 # Save the default compiler, since it gets overwritten when the other
7430 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7431 compiler_DEFAULT=$CC
7433 # save warnings/boilerplate of simple test code
7434 ac_outfile=conftest.$ac_objext
7435 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7437 _lt_compiler_boilerplate=`cat conftest.err`
7438 $RM conftest*
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_linker_boilerplate=`cat conftest.err`
7444 $RM -r conftest*
7447 ## CAVEAT EMPTOR:
7448 ## There is no encapsulation within the following macros, do not change
7449 ## the running order or otherwise move them around unless you know exactly
7450 ## what you are doing...
7451 if test -n "$compiler"; then
7453 lt_prog_compiler_no_builtin_flag=
7455 if test "$GCC" = yes; then
7456 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7458 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7460 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7461 $as_echo_n "(cached) " >&6
7462 else
7463 lt_cv_prog_compiler_rtti_exceptions=no
7464 ac_outfile=conftest.$ac_objext
7465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466 lt_compiler_flag="-fno-rtti -fno-exceptions"
7467 # Insert the option either (1) after the last *FLAGS variable, or
7468 # (2) before a word containing "conftest.", or (3) at the end.
7469 # Note that $ac_compile itself does not contain backslashes and begins
7470 # with a dollar sign (not a hyphen), so the echo should work correctly.
7471 # The option is referenced via a variable to avoid confusing sed.
7472 lt_compile=`echo "$ac_compile" | $SED \
7473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475 -e 's:$: $lt_compiler_flag:'`
7476 (eval echo "\"\$as_me:7476: $lt_compile\"" >&5)
7477 (eval "$lt_compile" 2>conftest.err)
7478 ac_status=$?
7479 cat conftest.err >&5
7480 echo "$as_me:7480: \$? = $ac_status" >&5
7481 if (exit $ac_status) && test -s "$ac_outfile"; then
7482 # The compiler can only warn and ignore the option if not recognized
7483 # So say no if there are warnings other than the usual output.
7484 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487 lt_cv_prog_compiler_rtti_exceptions=yes
7490 $RM conftest*
7493 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7496 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7498 else
7509 lt_prog_compiler_wl=
7510 lt_prog_compiler_pic=
7511 lt_prog_compiler_static=
7513 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7514 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7516 if test "$GCC" = yes; then
7517 lt_prog_compiler_wl='-Wl,'
7518 lt_prog_compiler_static='-static'
7520 case $host_os in
7521 aix*)
7522 # All AIX code is PIC.
7523 if test "$host_cpu" = ia64; then
7524 # AIX 5 now supports IA64 processor
7525 lt_prog_compiler_static='-Bstatic'
7529 amigaos*)
7530 case $host_cpu in
7531 powerpc)
7532 # see comment about AmigaOS4 .so support
7533 lt_prog_compiler_pic='-fPIC'
7535 m68k)
7536 # FIXME: we need at least 68020 code to build shared libraries, but
7537 # adding the `-m68020' flag to GCC prevents building anything better,
7538 # like `-m68040'.
7539 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7541 esac
7544 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7545 # PIC is the default for these OSes.
7548 mingw* | cygwin* | pw32* | os2*)
7549 # This hack is so that the source file can tell whether it is being
7550 # built for inclusion in a dll (and should export symbols for example).
7551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7552 # (--disable-auto-import) libraries
7553 lt_prog_compiler_pic='-DDLL_EXPORT'
7556 darwin* | rhapsody*)
7557 # PIC is the default on this platform
7558 # Common symbols not allowed in MH_DYLIB files
7559 lt_prog_compiler_pic='-fno-common'
7562 hpux*)
7563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7564 # not for PA HP-UX.
7565 case $host_cpu in
7566 hppa*64*|ia64*)
7567 # +Z the default
7570 lt_prog_compiler_pic='-fPIC'
7572 esac
7575 interix[3-9]*)
7576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7577 # Instead, we relocate shared libraries at runtime.
7580 msdosdjgpp*)
7581 # Just because we use GCC doesn't mean we suddenly get shared libraries
7582 # on systems that don't support them.
7583 lt_prog_compiler_can_build_shared=no
7584 enable_shared=no
7587 *nto* | *qnx*)
7588 # QNX uses GNU C++, but need to define -shared option too, otherwise
7589 # it will coredump.
7590 lt_prog_compiler_pic='-fPIC -shared'
7593 sysv4*MP*)
7594 if test -d /usr/nec; then
7595 lt_prog_compiler_pic=-Kconform_pic
7600 lt_prog_compiler_pic='-fPIC'
7602 esac
7603 else
7604 # PORTME Check for flag to pass linker flags through the system compiler.
7605 case $host_os in
7606 aix*)
7607 lt_prog_compiler_wl='-Wl,'
7608 if test "$host_cpu" = ia64; then
7609 # AIX 5 now supports IA64 processor
7610 lt_prog_compiler_static='-Bstatic'
7611 else
7612 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7616 mingw* | cygwin* | pw32* | os2*)
7617 # This hack is so that the source file can tell whether it is being
7618 # built for inclusion in a dll (and should export symbols for example).
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 hpux9* | hpux10* | hpux11*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7625 # not for PA HP-UX.
7626 case $host_cpu in
7627 hppa*64*|ia64*)
7628 # +Z the default
7631 lt_prog_compiler_pic='+Z'
7633 esac
7634 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7635 lt_prog_compiler_static='${wl}-a ${wl}archive'
7638 irix5* | irix6* | nonstopux*)
7639 lt_prog_compiler_wl='-Wl,'
7640 # PIC (with -KPIC) is the default.
7641 lt_prog_compiler_static='-non_shared'
7644 linux* | k*bsd*-gnu)
7645 case $cc_basename in
7646 icc* | ecc* | ifort*)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-KPIC'
7649 lt_prog_compiler_static='-static'
7651 pgcc* | pgf77* | pgf90* | pgf95*)
7652 # Portland Group compilers (*not* the Pentium gcc compiler,
7653 # which looks to be a dead project)
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_pic='-fpic'
7656 lt_prog_compiler_static='-Bstatic'
7658 ccc*)
7659 lt_prog_compiler_wl='-Wl,'
7660 # All Alpha code is PIC.
7661 lt_prog_compiler_static='-non_shared'
7663 xl*)
7664 # IBM XL C 8.0/Fortran 10.1 on PPC
7665 lt_prog_compiler_wl='-Wl,'
7666 lt_prog_compiler_pic='-qpic'
7667 lt_prog_compiler_static='-qstaticlink'
7670 case `$CC -V 2>&1 | sed 5q` in
7671 *Sun\ C*)
7672 # Sun C 5.9
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7675 lt_prog_compiler_wl='-Wl,'
7677 *Sun\ F*)
7678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7679 lt_prog_compiler_pic='-KPIC'
7680 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl=''
7683 esac
7685 esac
7688 newsos6)
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7693 *nto* | *qnx*)
7694 # QNX uses GNU C++, but need to define -shared option too, otherwise
7695 # it will coredump.
7696 lt_prog_compiler_pic='-fPIC -shared'
7699 osf3* | osf4* | osf5*)
7700 lt_prog_compiler_wl='-Wl,'
7701 # All OSF/1 code is PIC.
7702 lt_prog_compiler_static='-non_shared'
7705 rdos*)
7706 lt_prog_compiler_static='-non_shared'
7709 solaris*)
7710 lt_prog_compiler_pic='-KPIC'
7711 lt_prog_compiler_static='-Bstatic'
7712 case $cc_basename in
7713 f77* | f90* | f95*)
7714 lt_prog_compiler_wl='-Qoption ld ';;
7716 lt_prog_compiler_wl='-Wl,';;
7717 esac
7720 sunos4*)
7721 lt_prog_compiler_wl='-Qoption ld '
7722 lt_prog_compiler_pic='-PIC'
7723 lt_prog_compiler_static='-Bstatic'
7726 sysv4 | sysv4.2uw2* | sysv4.3*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7732 sysv4*MP*)
7733 if test -d /usr/nec ;then
7734 lt_prog_compiler_pic='-Kconform_pic'
7735 lt_prog_compiler_static='-Bstatic'
7739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7745 unicos*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_can_build_shared=no
7750 uts4*)
7751 lt_prog_compiler_pic='-pic'
7752 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_can_build_shared=no
7758 esac
7761 case $host_os in
7762 # For platforms which do not support PIC, -DPIC is meaningless:
7763 *djgpp*)
7764 lt_prog_compiler_pic=
7767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7769 esac
7770 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7771 $as_echo "$lt_prog_compiler_pic" >&6; }
7779 # Check to make sure the PIC flag actually works.
7781 if test -n "$lt_prog_compiler_pic"; then
7782 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7783 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7784 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7786 else
7787 lt_cv_prog_compiler_pic_works=no
7788 ac_outfile=conftest.$ac_objext
7789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7791 # Insert the option either (1) after the last *FLAGS variable, or
7792 # (2) before a word containing "conftest.", or (3) at the end.
7793 # Note that $ac_compile itself does not contain backslashes and begins
7794 # with a dollar sign (not a hyphen), so the echo should work correctly.
7795 # The option is referenced via a variable to avoid confusing sed.
7796 lt_compile=`echo "$ac_compile" | $SED \
7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7799 -e 's:$: $lt_compiler_flag:'`
7800 (eval echo "\"\$as_me:7800: $lt_compile\"" >&5)
7801 (eval "$lt_compile" 2>conftest.err)
7802 ac_status=$?
7803 cat conftest.err >&5
7804 echo "$as_me:7804: \$? = $ac_status" >&5
7805 if (exit $ac_status) && test -s "$ac_outfile"; then
7806 # The compiler can only warn and ignore the option if not recognized
7807 # So say no if there are warnings other than the usual output.
7808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7811 lt_cv_prog_compiler_pic_works=yes
7814 $RM conftest*
7817 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7818 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7820 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7821 case $lt_prog_compiler_pic in
7822 "" | " "*) ;;
7823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7824 esac
7825 else
7826 lt_prog_compiler_pic=
7827 lt_prog_compiler_can_build_shared=no
7838 # Check to make sure the static flag actually works.
7840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7841 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7843 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_prog_compiler_static_works=no
7847 save_LDFLAGS="$LDFLAGS"
7848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7851 # The linker can only warn and ignore the option if not recognized
7852 # So say no if there are warnings
7853 if test -s conftest.err; then
7854 # Append any errors to the config.log.
7855 cat conftest.err 1>&5
7856 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_cv_prog_compiler_static_works=yes
7861 else
7862 lt_cv_prog_compiler_static_works=yes
7865 $RM -r conftest*
7866 LDFLAGS="$save_LDFLAGS"
7869 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7872 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7874 else
7875 lt_prog_compiler_static=
7884 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7886 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7888 else
7889 lt_cv_prog_compiler_c_o=no
7890 $RM -r conftest 2>/dev/null
7891 mkdir conftest
7892 cd conftest
7893 mkdir out
7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="-o out/conftest2.$ac_objext"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 lt_compile=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
7905 (eval echo "\"\$as_me:7905: $lt_compile\"" >&5)
7906 (eval "$lt_compile" 2>out/conftest.err)
7907 ac_status=$?
7908 cat out/conftest.err >&5
7909 echo "$as_me:7909: \$? = $ac_status" >&5
7910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7911 then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_c_o=yes
7920 chmod u+w . 2>&5
7921 $RM conftest*
7922 # SGI C++ compiler will create directory out/ii_files/ for
7923 # template instantiation
7924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7925 $RM out/* && rmdir out
7926 cd ..
7927 $RM -r conftest
7928 $RM conftest*
7931 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7939 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_c_o=no
7945 $RM -r conftest 2>/dev/null
7946 mkdir conftest
7947 cd conftest
7948 mkdir out
7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7951 lt_compiler_flag="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7960 (eval echo "\"\$as_me:7960: $lt_compile\"" >&5)
7961 (eval "$lt_compile" 2>out/conftest.err)
7962 ac_status=$?
7963 cat out/conftest.err >&5
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966 then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_c_o=yes
7975 chmod u+w . 2>&5
7976 $RM conftest*
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7980 $RM out/* && rmdir out
7981 cd ..
7982 $RM -r conftest
7983 $RM conftest*
7986 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7992 hard_links="nottested"
7993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7994 # do not overwrite the value of need_locks provided by the user
7995 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996 $as_echo_n "checking if we can lock with hard links... " >&6; }
7997 hard_links=yes
7998 $RM conftest*
7999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000 touch conftest.a
8001 ln conftest.a conftest.b 2>&5 || hard_links=no
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8003 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8004 $as_echo "$hard_links" >&6; }
8005 if test "$hard_links" = no; then
8006 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8008 need_locks=warn
8010 else
8011 need_locks=no
8019 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8022 runpath_var=
8023 allow_undefined_flag=
8024 always_export_symbols=no
8025 archive_cmds=
8026 archive_expsym_cmds=
8027 compiler_needs_object=no
8028 enable_shared_with_static_runtimes=no
8029 export_dynamic_flag_spec=
8030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8031 hardcode_automatic=no
8032 hardcode_direct=no
8033 hardcode_direct_absolute=no
8034 hardcode_libdir_flag_spec=
8035 hardcode_libdir_flag_spec_ld=
8036 hardcode_libdir_separator=
8037 hardcode_minus_L=no
8038 hardcode_shlibpath_var=unsupported
8039 inherit_rpath=no
8040 link_all_deplibs=unknown
8041 module_cmds=
8042 module_expsym_cmds=
8043 old_archive_from_new_cmds=
8044 old_archive_from_expsyms_cmds=
8045 thread_safe_flag_spec=
8046 whole_archive_flag_spec=
8047 # include_expsyms should be a list of space-separated symbols to be *always*
8048 # included in the symbol list
8049 include_expsyms=
8050 # exclude_expsyms can be an extended regexp of symbols to exclude
8051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8053 # as well as any symbol that contains `d'.
8054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8056 # platforms (ab)use it in PIC code, but their linkers get confused if
8057 # the symbol is explicitly referenced. Since portable code cannot
8058 # rely on this symbol name, it's probably fine to never include it in
8059 # preloaded symbol tables.
8060 # Exclude shared library initialization/finalization symbols.
8061 extract_expsyms_cmds=
8063 case $host_os in
8064 cygwin* | mingw* | pw32*)
8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 if test "$GCC" != yes; then
8069 with_gnu_ld=no
8072 interix*)
8073 # we just hope/assume this is gcc and not c89 (= MSVC++)
8074 with_gnu_ld=yes
8076 openbsd*)
8077 with_gnu_ld=no
8079 esac
8081 ld_shlibs=yes
8082 if test "$with_gnu_ld" = yes; then
8083 # If archive_cmds runs LD, not CC, wlarc should be empty
8084 wlarc='${wl}'
8086 # Set some defaults for GNU ld with shared library support. These
8087 # are reset later if shared libraries are not supported. Putting them
8088 # here allows them to be overridden if necessary.
8089 runpath_var=LD_RUN_PATH
8090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8091 export_dynamic_flag_spec='${wl}--export-dynamic'
8092 # ancient GNU ld didn't support --whole-archive et. al.
8093 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8095 else
8096 whole_archive_flag_spec=
8098 supports_anon_versioning=no
8099 case `$LD -v 2>&1` in
8100 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8103 *\ 2.11.*) ;; # other 2.11 versions
8104 *) supports_anon_versioning=yes ;;
8105 esac
8107 # See if GNU ld supports shared libraries.
8108 case $host_os in
8109 aix[3-9]*)
8110 # On AIX/PPC, the GNU linker is very broken
8111 if test "$host_cpu" != ia64; then
8112 ld_shlibs=no
8113 cat <<_LT_EOF 1>&2
8115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8116 *** to be unable to reliably create shared libraries on AIX.
8117 *** Therefore, libtool is disabling shared libraries support. If you
8118 *** really care for shared libraries, you may want to modify your PATH
8119 *** so that a non-GNU linker is found, and then restart.
8121 _LT_EOF
8125 amigaos*)
8126 case $host_cpu in
8127 powerpc)
8128 # see comment about AmigaOS4 .so support
8129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130 archive_expsym_cmds=''
8132 m68k)
8133 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)'
8134 hardcode_libdir_flag_spec='-L$libdir'
8135 hardcode_minus_L=yes
8137 esac
8140 beos*)
8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8142 allow_undefined_flag=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 else
8147 ld_shlibs=no
8151 cygwin* | mingw* | pw32*)
8152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 allow_undefined_flag=unsupported
8156 always_export_symbols=no
8157 enable_shared_with_static_runtimes=yes
8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8166 else
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8171 else
8172 ld_shlibs=no
8176 interix[3-9]*)
8177 hardcode_direct=no
8178 hardcode_shlibpath_var=no
8179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 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'
8191 gnu* | linux* | tpf* | k*bsd*-gnu)
8192 tmp_diet=no
8193 if test "$host_os" = linux-dietlibc; then
8194 case $cc_basename in
8195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8196 esac
8198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8199 && test "$tmp_diet" = no
8200 then
8201 tmp_addflag=
8202 tmp_sharedflag='-shared'
8203 case $cc_basename,$host_cpu in
8204 pgcc*) # Portland Group C compiler
8205 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'
8206 tmp_addflag=' $pic_flag'
8208 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8209 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'
8210 tmp_addflag=' $pic_flag -Mnomain' ;;
8211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8212 tmp_addflag=' -i_dynamic' ;;
8213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8214 tmp_addflag=' -i_dynamic -nofor_main' ;;
8215 ifc* | ifort*) # Intel Fortran compiler
8216 tmp_addflag=' -nofor_main' ;;
8217 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8218 tmp_sharedflag='-qmkshrobj'
8219 tmp_addflag= ;;
8220 esac
8221 case `$CC -V 2>&1 | sed 5q` in
8222 *Sun\ C*) # Sun C 5.9
8223 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8224 compiler_needs_object=yes
8225 tmp_sharedflag='-G' ;;
8226 *Sun\ F*) # Sun Fortran 8.3
8227 tmp_sharedflag='-G' ;;
8228 esac
8229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 if test "x$supports_anon_versioning" = xyes; then
8232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8234 echo "local: *; };" >> $output_objdir/$libname.ver~
8235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8238 case $cc_basename in
8239 xlf*)
8240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8241 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8242 hardcode_libdir_flag_spec=
8243 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8244 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8245 if test "x$supports_anon_versioning" = xyes; then
8246 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8248 echo "local: *; };" >> $output_objdir/$libname.ver~
8249 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8252 esac
8253 else
8254 ld_shlibs=no
8258 netbsd*)
8259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8261 wlarc=
8262 else
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268 solaris*)
8269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8270 ld_shlibs=no
8271 cat <<_LT_EOF 1>&2
8273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8274 *** create shared libraries on Solaris systems. Therefore, libtool
8275 *** is disabling shared libraries support. We urge you to upgrade GNU
8276 *** binutils to release 2.9.1 or newer. Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8280 _LT_EOF
8281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284 else
8285 ld_shlibs=no
8289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8290 case `$LD -v 2>&1` in
8291 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8292 ld_shlibs=no
8293 cat <<_LT_EOF 1>&2
8295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8296 *** reliably create shared libraries on SCO systems. Therefore, libtool
8297 *** is disabling shared libraries support. We urge you to upgrade GNU
8298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8299 *** your PATH or compiler configuration so that the native linker is
8300 *** used, and then restart.
8302 _LT_EOF
8305 # For security reasons, it is highly recommended that you always
8306 # use absolute paths for naming shared libraries, and exclude the
8307 # DT_RUNPATH tag from executables and libraries. But doing so
8308 # requires that you compile everything twice, which is a pain.
8309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8317 esac
8320 sunos4*)
8321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322 wlarc=
8323 hardcode_direct=yes
8324 hardcode_shlibpath_var=no
8328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8331 else
8332 ld_shlibs=no
8335 esac
8337 if test "$ld_shlibs" = no; then
8338 runpath_var=
8339 hardcode_libdir_flag_spec=
8340 export_dynamic_flag_spec=
8341 whole_archive_flag_spec=
8343 else
8344 # PORTME fill in a description of your system's linker (not GNU ld)
8345 case $host_os in
8346 aix3*)
8347 allow_undefined_flag=unsupported
8348 always_export_symbols=yes
8349 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'
8350 # Note: this linker hardcodes the directories in LIBPATH if there
8351 # are no directories specified by -L.
8352 hardcode_minus_L=yes
8353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8354 # Neither direct hardcoding nor static linking is supported with a
8355 # broken collect2.
8356 hardcode_direct=unsupported
8360 aix[4-9]*)
8361 if test "$host_cpu" = ia64; then
8362 # On IA64, the linker does run time linking by default, so we don't
8363 # have to do anything special.
8364 aix_use_runtimelinking=no
8365 exp_sym_flag='-Bexport'
8366 no_entry_flag=""
8367 else
8368 # If we're using GNU nm, then we don't want the "-C" option.
8369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8371 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'
8372 else
8373 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'
8375 aix_use_runtimelinking=no
8377 # Test if we are trying to use run time linking or normal
8378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8379 # need to do runtime linking.
8380 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8381 for ld_flag in $LDFLAGS; do
8382 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8383 aix_use_runtimelinking=yes
8384 break
8386 done
8388 esac
8390 exp_sym_flag='-bexport'
8391 no_entry_flag='-bnoentry'
8394 # When large executables or shared objects are built, AIX ld can
8395 # have problems creating the table of contents. If linking a library
8396 # or program results in "error TOC overflow" add -mminimal-toc to
8397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8400 archive_cmds=''
8401 hardcode_direct=yes
8402 hardcode_direct_absolute=yes
8403 hardcode_libdir_separator=':'
8404 link_all_deplibs=yes
8405 file_list_spec='${wl}-f,'
8407 if test "$GCC" = yes; then
8408 case $host_os in aix4.[012]|aix4.[012].*)
8409 # We only want to do this on AIX 4.2 and lower, the check
8410 # below for broken collect2 doesn't work under 4.3+
8411 collect2name=`${CC} -print-prog-name=collect2`
8412 if test -f "$collect2name" &&
8413 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8414 then
8415 # We have reworked collect2
8417 else
8418 # We have old collect2
8419 hardcode_direct=unsupported
8420 # It fails to find uninstalled libraries when the uninstalled
8421 # path is not listed in the libpath. Setting hardcode_minus_L
8422 # to unsupported forces relinking
8423 hardcode_minus_L=yes
8424 hardcode_libdir_flag_spec='-L$libdir'
8425 hardcode_libdir_separator=
8428 esac
8429 shared_flag='-shared'
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag="$shared_flag "'${wl}-G'
8433 else
8434 # not using gcc
8435 if test "$host_cpu" = ia64; then
8436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437 # chokes on -Wl,-G. The following line is correct:
8438 shared_flag='-G'
8439 else
8440 if test "$aix_use_runtimelinking" = yes; then
8441 shared_flag='${wl}-G'
8442 else
8443 shared_flag='${wl}-bM:SRE'
8448 # It seems that -bexpall does not export symbols beginning with
8449 # underscore (_), so it is better to generate a list of symbols to export.
8450 always_export_symbols=yes
8451 if test "$aix_use_runtimelinking" = yes; then
8452 # Warning - without using the other runtime loading flags (-brtl),
8453 # -berok will link without error, but may produce a broken library.
8454 allow_undefined_flag='-berok'
8455 # Determine the default libpath from the value encoded in an
8456 # empty executable.
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8465 main ()
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_link") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext && {
8490 test "$cross_compiling" = yes ||
8491 $as_test_x conftest$ac_exeext
8492 }; then
8494 lt_aix_libpath_sed='
8495 /Import File Strings/,/^$/ {
8496 /^0/ {
8497 s/^0 *\(.*\)$/\1/
8501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8502 # Check for a 64-bit object if we didn't find anything.
8503 if test -z "$aix_libpath"; then
8504 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 else
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8513 rm -rf conftest.dSYM
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515 conftest$ac_exeext conftest.$ac_ext
8516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8520 else
8521 if test "$host_cpu" = ia64; then
8522 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8523 allow_undefined_flag="-z nodefs"
8524 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"
8525 else
8526 # Determine the default libpath from the value encoded in an
8527 # empty executable.
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8536 main ()
8540 return 0;
8542 _ACEOF
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (ac_try="$ac_link"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_link") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest$ac_exeext && {
8561 test "$cross_compiling" = yes ||
8562 $as_test_x conftest$ac_exeext
8563 }; then
8565 lt_aix_libpath_sed='
8566 /Import File Strings/,/^$/ {
8567 /^0/ {
8568 s/^0 *\(.*\)$/\1/
8572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573 # Check for a 64-bit object if we didn't find anything.
8574 if test -z "$aix_libpath"; then
8575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8577 else
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8584 rm -rf conftest.dSYM
8585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8586 conftest$ac_exeext conftest.$ac_ext
8587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8590 # Warning - without using the other run time loading flags,
8591 # -berok will link without error, but may produce a broken library.
8592 no_undefined_flag=' ${wl}-bernotok'
8593 allow_undefined_flag=' ${wl}-berok'
8594 # Exported symbols can be pulled into shared objects from archives
8595 whole_archive_flag_spec='$convenience'
8596 archive_cmds_need_lc=yes
8597 # This is similar to how AIX traditionally builds its shared libraries.
8598 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'
8603 amigaos*)
8604 case $host_cpu in
8605 powerpc)
8606 # see comment about AmigaOS4 .so support
8607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 archive_expsym_cmds=''
8610 m68k)
8611 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)'
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 hardcode_minus_L=yes
8615 esac
8618 bsdi[45]*)
8619 export_dynamic_flag_spec=-rdynamic
8622 cygwin* | mingw* | pw32*)
8623 # When not using gcc, we currently assume that we are using
8624 # Microsoft Visual C++.
8625 # hardcode_libdir_flag_spec is actually meaningless, as there is
8626 # no search path for DLLs.
8627 hardcode_libdir_flag_spec=' '
8628 allow_undefined_flag=unsupported
8629 # Tell ltmain to make .lib files, not .a files.
8630 libext=lib
8631 # Tell ltmain to make .dll files, not .so files.
8632 shrext_cmds=".dll"
8633 # FIXME: Setting linknames here is a bad hack.
8634 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8635 # The linker will automatically build a .lib file if we build a DLL.
8636 old_archive_from_new_cmds='true'
8637 # FIXME: Should let the user specify the lib program.
8638 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8639 fix_srcfile_path='`cygpath -w "$srcfile"`'
8640 enable_shared_with_static_runtimes=yes
8643 darwin* | rhapsody*)
8646 archive_cmds_need_lc=no
8647 hardcode_direct=no
8648 hardcode_automatic=yes
8649 hardcode_shlibpath_var=unsupported
8650 whole_archive_flag_spec=''
8651 link_all_deplibs=yes
8652 allow_undefined_flag="$_lt_dar_allow_undefined"
8653 if test "$GCC" = "yes"; then
8654 output_verbose_link_cmd=echo
8655 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8656 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8657 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8658 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8660 else
8661 ld_shlibs=no
8666 dgux*)
8667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_libdir_flag_spec='-L$libdir'
8669 hardcode_shlibpath_var=no
8672 freebsd1*)
8673 ld_shlibs=no
8676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8677 # support. Future versions do this automatically, but an explicit c++rt0.o
8678 # does not break anything, and helps significantly (at the cost of a little
8679 # extra space).
8680 freebsd2.2*)
8681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8682 hardcode_libdir_flag_spec='-R$libdir'
8683 hardcode_direct=yes
8684 hardcode_shlibpath_var=no
8687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8688 freebsd2*)
8689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8690 hardcode_direct=yes
8691 hardcode_minus_L=yes
8692 hardcode_shlibpath_var=no
8695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8696 freebsd* | dragonfly*)
8697 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8698 hardcode_libdir_flag_spec='-R$libdir'
8699 hardcode_direct=yes
8700 hardcode_shlibpath_var=no
8703 hpux9*)
8704 if test "$GCC" = yes; then
8705 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'
8706 else
8707 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'
8709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8710 hardcode_libdir_separator=:
8711 hardcode_direct=yes
8713 # hardcode_minus_L: Not really in the search PATH,
8714 # but as the default location of the library.
8715 hardcode_minus_L=yes
8716 export_dynamic_flag_spec='${wl}-E'
8719 hpux10*)
8720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 else
8723 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8725 if test "$with_gnu_ld" = no; then
8726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727 hardcode_libdir_flag_spec_ld='+b $libdir'
8728 hardcode_libdir_separator=:
8729 hardcode_direct=yes
8730 hardcode_direct_absolute=yes
8731 export_dynamic_flag_spec='${wl}-E'
8732 # hardcode_minus_L: Not really in the search PATH,
8733 # but as the default location of the library.
8734 hardcode_minus_L=yes
8738 hpux11*)
8739 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8740 case $host_cpu in
8741 hppa*64*)
8742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 ia64*)
8745 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750 esac
8751 else
8752 case $host_cpu in
8753 hppa*64*)
8754 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 ia64*)
8757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762 esac
8764 if test "$with_gnu_ld" = no; then
8765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766 hardcode_libdir_separator=:
8768 case $host_cpu in
8769 hppa*64*|ia64*)
8770 hardcode_direct=no
8771 hardcode_shlibpath_var=no
8774 hardcode_direct=yes
8775 hardcode_direct_absolute=yes
8776 export_dynamic_flag_spec='${wl}-E'
8778 # hardcode_minus_L: Not really in the search PATH,
8779 # but as the default location of the library.
8780 hardcode_minus_L=yes
8782 esac
8786 irix5* | irix6* | nonstopux*)
8787 if test "$GCC" = yes; then
8788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8789 # Try to use the -exported_symbol ld option, if it does not
8790 # work, assume that -exports_file does not work either and
8791 # implicitly export all symbols.
8792 save_LDFLAGS="$LDFLAGS"
8793 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8794 cat >conftest.$ac_ext <<_ACEOF
8795 int foo(void) {}
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (ac_try="$ac_link"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_link") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext && {
8815 test "$cross_compiling" = yes ||
8816 $as_test_x conftest$ac_exeext
8817 }; then
8818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8820 else
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -rf conftest.dSYM
8828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8829 conftest$ac_exeext conftest.$ac_ext
8830 LDFLAGS="$save_LDFLAGS"
8831 else
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8835 archive_cmds_need_lc='no'
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8838 inherit_rpath=yes
8839 link_all_deplibs=yes
8842 netbsd*)
8843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8845 else
8846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8848 hardcode_libdir_flag_spec='-R$libdir'
8849 hardcode_direct=yes
8850 hardcode_shlibpath_var=no
8853 newsos6)
8854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_direct=yes
8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857 hardcode_libdir_separator=:
8858 hardcode_shlibpath_var=no
8861 *nto* | *qnx*)
8864 openbsd*)
8865 if test -f /usr/libexec/ld.so; then
8866 hardcode_direct=yes
8867 hardcode_shlibpath_var=no
8868 hardcode_direct_absolute=yes
8869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8874 else
8875 case $host_os in
8876 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_libdir_flag_spec='-R$libdir'
8881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8884 esac
8886 else
8887 ld_shlibs=no
8891 os2*)
8892 hardcode_libdir_flag_spec='-L$libdir'
8893 hardcode_minus_L=yes
8894 allow_undefined_flag=unsupported
8895 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'
8896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8899 osf3*)
8900 if test "$GCC" = yes; then
8901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8902 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8903 else
8904 allow_undefined_flag=' -expect_unresolved \*'
8905 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8907 archive_cmds_need_lc='no'
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909 hardcode_libdir_separator=:
8912 osf4* | osf5*) # as osf3* with the addition of -msym flag
8913 if test "$GCC" = yes; then
8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8915 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917 else
8918 allow_undefined_flag=' -expect_unresolved \*'
8919 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8920 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8921 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8923 # Both c and cxx compiler support -rpath directly
8924 hardcode_libdir_flag_spec='-rpath $libdir'
8926 archive_cmds_need_lc='no'
8927 hardcode_libdir_separator=:
8930 solaris*)
8931 no_undefined_flag=' -z defs'
8932 if test "$GCC" = yes; then
8933 wlarc='${wl}'
8934 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8936 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8937 else
8938 case `$CC -V 2>&1` in
8939 *"Compilers 5.0"*)
8940 wlarc=''
8941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8946 wlarc='${wl}'
8947 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8951 esac
8953 hardcode_libdir_flag_spec='-R$libdir'
8954 hardcode_shlibpath_var=no
8955 case $host_os in
8956 solaris2.[0-5] | solaris2.[0-5].*) ;;
8958 # The compiler driver will combine and reorder linker options,
8959 # but understands `-z linker_flag'. GCC discards it without `$wl',
8960 # but is careful enough not to reorder.
8961 # Supported since Solaris 2.6 (maybe 2.5.1?)
8962 if test "$GCC" = yes; then
8963 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8964 else
8965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8968 esac
8969 link_all_deplibs=yes
8972 sunos4*)
8973 if test "x$host_vendor" = xsequent; then
8974 # Use $CC to link under sequent, because it throws in some extra .o
8975 # files that make .init and .fini sections work.
8976 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8977 else
8978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_libdir_flag_spec='-L$libdir'
8981 hardcode_direct=yes
8982 hardcode_minus_L=yes
8983 hardcode_shlibpath_var=no
8986 sysv4)
8987 case $host_vendor in
8988 sni)
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_direct=yes # is this really true???
8992 siemens)
8993 ## LD is ld it makes a PLAMLIB
8994 ## CC just makes a GrossModule.
8995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8996 reload_cmds='$CC -r -o $output$reload_objs'
8997 hardcode_direct=no
8999 motorola)
9000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9003 esac
9004 runpath_var='LD_RUN_PATH'
9005 hardcode_shlibpath_var=no
9008 sysv4.3*)
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_shlibpath_var=no
9011 export_dynamic_flag_spec='-Bexport'
9014 sysv4*MP*)
9015 if test -d /usr/nec; then
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_shlibpath_var=no
9018 runpath_var=LD_RUN_PATH
9019 hardcode_runpath_var=yes
9020 ld_shlibs=yes
9024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9025 no_undefined_flag='${wl}-z,text'
9026 archive_cmds_need_lc=no
9027 hardcode_shlibpath_var=no
9028 runpath_var='LD_RUN_PATH'
9030 if test "$GCC" = yes; then
9031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 else
9034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 sysv5* | sco3.2v5* | sco5v6*)
9040 # Note: We can NOT use -z defs as we might desire, because we do not
9041 # link with -lc, and that would cause any symbols used from libc to
9042 # always be unresolved, which means just about no library would
9043 # ever link correctly. If we're not using GNU ld we use -z text
9044 # though, which does catch some bad symbols but isn't as heavy-handed
9045 # as -z defs.
9046 no_undefined_flag='${wl}-z,text'
9047 allow_undefined_flag='${wl}-z,nodefs'
9048 archive_cmds_need_lc=no
9049 hardcode_shlibpath_var=no
9050 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9051 hardcode_libdir_separator=':'
9052 link_all_deplibs=yes
9053 export_dynamic_flag_spec='${wl}-Bexport'
9054 runpath_var='LD_RUN_PATH'
9056 if test "$GCC" = yes; then
9057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 else
9060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 uts4*)
9066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_libdir_flag_spec='-L$libdir'
9068 hardcode_shlibpath_var=no
9072 ld_shlibs=no
9074 esac
9076 if test x$host_vendor = xsni; then
9077 case $host in
9078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9079 export_dynamic_flag_spec='${wl}-Blargedynsym'
9081 esac
9085 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9086 $as_echo "$ld_shlibs" >&6; }
9087 test "$ld_shlibs" = no && can_build_shared=no
9089 with_gnu_ld=$with_gnu_ld
9106 # Do we need to explicitly link libc?
9108 case "x$archive_cmds_need_lc" in
9109 x|xyes)
9110 # Assume -lc should be added
9111 archive_cmds_need_lc=yes
9113 if test "$enable_shared" = yes && test "$GCC" = yes; then
9114 case $archive_cmds in
9115 *'~'*)
9116 # FIXME: we may have to deal with multi-command sequences.
9118 '$CC '*)
9119 # Test whether the compiler implicitly links with -lc since on some
9120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9121 # to ld, don't add -lc before -lgcc.
9122 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9123 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9124 $RM conftest*
9125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9128 (eval $ac_compile) 2>&5
9129 ac_status=$?
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } 2>conftest.err; then
9132 soname=conftest
9133 lib=conftest
9134 libobjs=conftest.$ac_objext
9135 deplibs=
9136 wl=$lt_prog_compiler_wl
9137 pic_flag=$lt_prog_compiler_pic
9138 compiler_flags=-v
9139 linker_flags=-v
9140 verstring=
9141 output_objdir=.
9142 libname=conftest
9143 lt_save_allow_undefined_flag=$allow_undefined_flag
9144 allow_undefined_flag=
9145 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9146 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9147 ac_status=$?
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }
9150 then
9151 archive_cmds_need_lc=no
9152 else
9153 archive_cmds_need_lc=yes
9155 allow_undefined_flag=$lt_save_allow_undefined_flag
9156 else
9157 cat conftest.err 1>&5
9159 $RM conftest*
9160 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9161 $as_echo "$archive_cmds_need_lc" >&6; }
9163 esac
9166 esac
9324 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9327 if test "$GCC" = yes; then
9328 case $host_os in
9329 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9330 *) lt_awk_arg="/^libraries:/" ;;
9331 esac
9332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9333 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9334 # if the path contains ";" then we assume it to be the separator
9335 # otherwise default to the standard path separator (i.e. ":") - it is
9336 # assumed that no part of a normal pathname contains ";" but that should
9337 # okay in the real world where ";" in dirpaths is itself problematic.
9338 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9339 else
9340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9342 # Ok, now we have the path, separated by spaces, we can step through it
9343 # and add multilib dir if necessary.
9344 lt_tmp_lt_search_path_spec=
9345 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9346 for lt_sys_path in $lt_search_path_spec; do
9347 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9349 else
9350 test -d "$lt_sys_path" && \
9351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9353 done
9354 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9355 BEGIN {RS=" "; FS="/|\n";} {
9356 lt_foo="";
9357 lt_count=0;
9358 for (lt_i = NF; lt_i > 0; lt_i--) {
9359 if ($lt_i != "" && $lt_i != ".") {
9360 if ($lt_i == "..") {
9361 lt_count++;
9362 } else {
9363 if (lt_count == 0) {
9364 lt_foo="/" $lt_i lt_foo;
9365 } else {
9366 lt_count--;
9371 if (lt_foo != "") { lt_freq[lt_foo]++; }
9372 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9374 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9375 else
9376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9378 library_names_spec=
9379 libname_spec='lib$name'
9380 soname_spec=
9381 shrext_cmds=".so"
9382 postinstall_cmds=
9383 postuninstall_cmds=
9384 finish_cmds=
9385 finish_eval=
9386 shlibpath_var=
9387 shlibpath_overrides_runpath=unknown
9388 version_type=none
9389 dynamic_linker="$host_os ld.so"
9390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9391 need_lib_prefix=unknown
9392 hardcode_into_libs=no
9394 # when you set need_version to no, make sure it does not cause -set_version
9395 # flags to be left without arguments
9396 need_version=unknown
9398 case $host_os in
9399 aix3*)
9400 version_type=linux
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9402 shlibpath_var=LIBPATH
9404 # AIX 3 has no versioning support, so we append a major version to the name.
9405 soname_spec='${libname}${release}${shared_ext}$major'
9408 aix[4-9]*)
9409 version_type=linux
9410 need_lib_prefix=no
9411 need_version=no
9412 hardcode_into_libs=yes
9413 if test "$host_cpu" = ia64; then
9414 # AIX 5 supports IA64
9415 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 else
9418 # With GCC up to 2.95.x, collect2 would create an import file
9419 # for dependence libraries. The import file would start with
9420 # the line `#! .'. This would cause the generated library to
9421 # depend on `.', always an invalid library. This was fixed in
9422 # development snapshots of GCC prior to 3.0.
9423 case $host_os in
9424 aix4 | aix4.[01] | aix4.[01].*)
9425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9426 echo ' yes '
9427 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9429 else
9430 can_build_shared=no
9433 esac
9434 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9435 # soname into executable. Probably we can add versioning support to
9436 # collect2, so additional links can be useful in future.
9437 if test "$aix_use_runtimelinking" = yes; then
9438 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9439 # instead of lib<name>.a to let people know that these are not
9440 # typical AIX shared libraries.
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 else
9443 # We preserve .a as extension for shared libraries through AIX4.2
9444 # and later when we are not doing run time linking.
9445 library_names_spec='${libname}${release}.a $libname.a'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9448 shlibpath_var=LIBPATH
9452 amigaos*)
9453 case $host_cpu in
9454 powerpc)
9455 # Since July 2007 AmigaOS4 officially supports .so libraries.
9456 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 m68k)
9460 library_names_spec='$libname.ixlibrary $libname.a'
9461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9462 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'
9464 esac
9467 beos*)
9468 library_names_spec='${libname}${shared_ext}'
9469 dynamic_linker="$host_os ld.so"
9470 shlibpath_var=LIBRARY_PATH
9473 bsdi[45]*)
9474 version_type=linux
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9482 # the default ld.so.conf also contains /usr/contrib/lib and
9483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9484 # libtool to hard-code these into programs
9487 cygwin* | mingw* | pw32*)
9488 version_type=windows
9489 shrext_cmds=".dll"
9490 need_version=no
9491 need_lib_prefix=no
9493 case $GCC,$host_os in
9494 yes,cygwin* | yes,mingw* | yes,pw32*)
9495 library_names_spec='$libname.dll.a'
9496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9497 postinstall_cmds='base_file=`basename \${file}`~
9498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9499 dldir=$destdir/`dirname \$dlpath`~
9500 test -d \$dldir || mkdir -p \$dldir~
9501 $install_prog $dir/$dlname \$dldir/$dlname~
9502 chmod a+x \$dldir/$dlname~
9503 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9504 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9507 dlpath=$dir/\$dldll~
9508 $RM \$dlpath'
9509 shlibpath_overrides_runpath=yes
9511 case $host_os in
9512 cygwin*)
9513 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9514 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9515 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9517 mingw*)
9518 # MinGW DLLs use traditional 'lib' prefix
9519 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9520 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9521 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9522 # It is most probably a Windows format PATH printed by
9523 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9524 # path with ; separators, and with drive letters. We can handle the
9525 # drive letters (cygwin fileutils understands them), so leave them,
9526 # especially as we might pass files found there to a mingw objdump,
9527 # which wouldn't understand a cygwinified path. Ahh.
9528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9529 else
9530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9533 pw32*)
9534 # pw32 DLLs use 'pw' prefix rather than 'lib'
9535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 esac
9541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9543 esac
9544 dynamic_linker='Win32 ld.exe'
9545 # FIXME: first we should search . and the directory the executable is in
9546 shlibpath_var=PATH
9549 darwin* | rhapsody*)
9550 dynamic_linker="$host_os dyld"
9551 version_type=darwin
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9555 soname_spec='${libname}${release}${major}$shared_ext'
9556 shlibpath_overrides_runpath=yes
9557 shlibpath_var=DYLD_LIBRARY_PATH
9558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9564 dgux*)
9565 version_type=linux
9566 need_lib_prefix=no
9567 need_version=no
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 shlibpath_var=LD_LIBRARY_PATH
9573 freebsd1*)
9574 dynamic_linker=no
9577 freebsd* | dragonfly*)
9578 # DragonFly does not have aout. When/if they implement a new
9579 # versioning mechanism, adjust this.
9580 if test -x /usr/bin/objformat; then
9581 objformat=`/usr/bin/objformat`
9582 else
9583 case $host_os in
9584 freebsd[123]*) objformat=aout ;;
9585 *) objformat=elf ;;
9586 esac
9588 version_type=freebsd-$objformat
9589 case $version_type in
9590 freebsd-elf*)
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9592 need_version=no
9593 need_lib_prefix=no
9595 freebsd-*)
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9597 need_version=yes
9599 esac
9600 shlibpath_var=LD_LIBRARY_PATH
9601 case $host_os in
9602 freebsd2*)
9603 shlibpath_overrides_runpath=yes
9605 freebsd3.[01]* | freebsdelf3.[01]*)
9606 shlibpath_overrides_runpath=yes
9607 hardcode_into_libs=yes
9609 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9610 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9611 shlibpath_overrides_runpath=no
9612 hardcode_into_libs=yes
9614 *) # from 4.6 on, and DragonFly
9615 shlibpath_overrides_runpath=yes
9616 hardcode_into_libs=yes
9618 esac
9621 gnu*)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 hardcode_into_libs=yes
9631 hpux9* | hpux10* | hpux11*)
9632 # Give a soname corresponding to the major version so that dld.sl refuses to
9633 # link against other versions.
9634 version_type=sunos
9635 need_lib_prefix=no
9636 need_version=no
9637 case $host_cpu in
9638 ia64*)
9639 shrext_cmds='.so'
9640 hardcode_into_libs=yes
9641 dynamic_linker="$host_os dld.so"
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 if test "X$HPUX_IA64_MODE" = X32; then
9647 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9648 else
9649 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9653 hppa*64*)
9654 shrext_cmds='.sl'
9655 hardcode_into_libs=yes
9656 dynamic_linker="$host_os dld.sl"
9657 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9665 shrext_cmds='.sl'
9666 dynamic_linker="$host_os dld.sl"
9667 shlibpath_var=SHLIB_PATH
9668 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9672 esac
9673 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9674 postinstall_cmds='chmod 555 $lib'
9677 interix[3-9]*)
9678 version_type=linux
9679 need_lib_prefix=no
9680 need_version=no
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath=no
9686 hardcode_into_libs=yes
9689 irix5* | irix6* | nonstopux*)
9690 case $host_os in
9691 nonstopux*) version_type=nonstopux ;;
9693 if test "$lt_cv_prog_gnu_ld" = yes; then
9694 version_type=linux
9695 else
9696 version_type=irix
9697 fi ;;
9698 esac
9699 need_lib_prefix=no
9700 need_version=no
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 case $host_os in
9704 irix5* | nonstopux*)
9705 libsuff= shlibsuff=
9708 case $LD in # libtool.m4 will add one of these switches to LD
9709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9710 libsuff= shlibsuff= libmagic=32-bit;;
9711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9712 libsuff=32 shlibsuff=N32 libmagic=N32;;
9713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9715 *) libsuff= shlibsuff= libmagic=never-match;;
9716 esac
9718 esac
9719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9720 shlibpath_overrides_runpath=no
9721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9723 hardcode_into_libs=yes
9726 # No shared lib support for Linux oldld, aout, or coff.
9727 linux*oldld* | linux*aout* | linux*coff*)
9728 dynamic_linker=no
9731 # This must be Linux ELF.
9732 linux* | k*bsd*-gnu)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 shlibpath_overrides_runpath=no
9741 # Some binutils ld are patched to set DT_RUNPATH
9742 save_LDFLAGS=$LDFLAGS
9743 save_libdir=$libdir
9744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9754 main ()
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768 $as_echo "$ac_try_echo") >&5
9769 (eval "$ac_link") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest$ac_exeext && {
9779 test "$cross_compiling" = yes ||
9780 $as_test_x conftest$ac_exeext
9781 }; then
9782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9783 shlibpath_overrides_runpath=yes
9786 else
9787 $as_echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -rf conftest.dSYM
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LDFLAGS=$save_LDFLAGS
9797 libdir=$save_libdir
9799 # This implies no fast_install, which is unacceptable.
9800 # Some rework will be needed to allow for fast_install
9801 # before this can be enabled.
9802 hardcode_into_libs=yes
9804 # Append ld.so.conf contents to the search path
9805 if test -f /etc/ld.so.conf; then
9806 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9810 # We used to test for /lib/ld.so.1 and disable shared libraries on
9811 # powerpc, because MkLinux only supported shared libraries with the
9812 # GNU dynamic linker. Since this was broken with cross compilers,
9813 # most powerpc-linux boxes support dynamic linking these days and
9814 # people can always --disable-shared, the test was removed, and we
9815 # assume the GNU/Linux dynamic linker is in use.
9816 dynamic_linker='GNU/Linux ld.so'
9819 netbsd*)
9820 version_type=sunos
9821 need_lib_prefix=no
9822 need_version=no
9823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826 dynamic_linker='NetBSD (a.out) ld.so'
9827 else
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 dynamic_linker='NetBSD ld.elf_so'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=yes
9834 hardcode_into_libs=yes
9837 newsos6)
9838 version_type=linux
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=yes
9844 *nto* | *qnx*)
9845 version_type=qnx
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=no
9852 hardcode_into_libs=yes
9853 dynamic_linker='ldqnx.so'
9856 openbsd*)
9857 version_type=sunos
9858 sys_lib_dlsearch_path_spec="/usr/lib"
9859 need_lib_prefix=no
9860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9861 case $host_os in
9862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9863 *) need_version=no ;;
9864 esac
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9869 case $host_os in
9870 openbsd2.[89] | openbsd2.[89].*)
9871 shlibpath_overrides_runpath=no
9874 shlibpath_overrides_runpath=yes
9876 esac
9877 else
9878 shlibpath_overrides_runpath=yes
9882 os2*)
9883 libname_spec='$name'
9884 shrext_cmds=".dll"
9885 need_lib_prefix=no
9886 library_names_spec='$libname${shared_ext} $libname.a'
9887 dynamic_linker='OS/2 ld.exe'
9888 shlibpath_var=LIBPATH
9891 osf3* | osf4* | osf5*)
9892 version_type=osf
9893 need_lib_prefix=no
9894 need_version=no
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9902 rdos*)
9903 dynamic_linker=no
9906 solaris*)
9907 version_type=linux
9908 need_lib_prefix=no
9909 need_version=no
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=yes
9914 hardcode_into_libs=yes
9915 # ldd complains unless libraries are executable
9916 postinstall_cmds='chmod +x $lib'
9919 sunos4*)
9920 version_type=sunos
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes
9925 if test "$with_gnu_ld" = yes; then
9926 need_lib_prefix=no
9928 need_version=yes
9931 sysv4 | sysv4.3*)
9932 version_type=linux
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 case $host_vendor in
9937 sni)
9938 shlibpath_overrides_runpath=no
9939 need_lib_prefix=no
9940 runpath_var=LD_RUN_PATH
9942 siemens)
9943 need_lib_prefix=no
9945 motorola)
9946 need_lib_prefix=no
9947 need_version=no
9948 shlibpath_overrides_runpath=no
9949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9951 esac
9954 sysv4*MP*)
9955 if test -d /usr/nec ;then
9956 version_type=linux
9957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9958 soname_spec='$libname${shared_ext}.$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9964 version_type=freebsd-elf
9965 need_lib_prefix=no
9966 need_version=no
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 shlibpath_overrides_runpath=yes
9971 hardcode_into_libs=yes
9972 if test "$with_gnu_ld" = yes; then
9973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9974 else
9975 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9976 case $host_os in
9977 sco3.2v5*)
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9980 esac
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9985 tpf*)
9986 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=no
9993 hardcode_into_libs=yes
9996 uts4*)
9997 version_type=linux
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10004 dynamic_linker=no
10006 esac
10007 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10008 $as_echo "$dynamic_linker" >&6; }
10009 test "$dynamic_linker" = no && can_build_shared=no
10011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10012 if test "$GCC" = yes; then
10013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10016 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10020 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10109 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10110 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10111 hardcode_action=
10112 if test -n "$hardcode_libdir_flag_spec" ||
10113 test -n "$runpath_var" ||
10114 test "X$hardcode_automatic" = "Xyes" ; then
10116 # We can hardcode non-existent directories.
10117 if test "$hardcode_direct" != no &&
10118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10119 # have to relink, otherwise we might link with an installed library
10120 # when we should be linking with a yet-to-be-installed one
10121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10122 test "$hardcode_minus_L" != no; then
10123 # Linking always hardcodes the temporary library directory.
10124 hardcode_action=relink
10125 else
10126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10127 hardcode_action=immediate
10129 else
10130 # We cannot hardcode anything, or else we can only hardcode existing
10131 # directories.
10132 hardcode_action=unsupported
10134 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10135 $as_echo "$hardcode_action" >&6; }
10137 if test "$hardcode_action" = relink ||
10138 test "$inherit_rpath" = yes; then
10139 # Fast installation is not supported
10140 enable_fast_install=no
10141 elif test "$shlibpath_overrides_runpath" = yes ||
10142 test "$enable_shared" = no; then
10143 # Fast installation is not necessary
10144 enable_fast_install=needless
10152 if test "x$enable_dlopen" != xyes; then
10153 enable_dlopen=unknown
10154 enable_dlopen_self=unknown
10155 enable_dlopen_self_static=unknown
10156 else
10157 lt_cv_dlopen=no
10158 lt_cv_dlopen_libs=
10160 case $host_os in
10161 beos*)
10162 lt_cv_dlopen="load_add_on"
10163 lt_cv_dlopen_libs=
10164 lt_cv_dlopen_self=yes
10167 mingw* | pw32*)
10168 lt_cv_dlopen="LoadLibrary"
10169 lt_cv_dlopen_libs=
10172 cygwin*)
10173 lt_cv_dlopen="dlopen"
10174 lt_cv_dlopen_libs=
10177 darwin*)
10178 # if libdl is installed we need to link against it
10179 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182 $as_echo_n "(cached) " >&6
10183 else
10184 ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-ldl $LIBS"
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char dlopen ();
10201 main ()
10203 return dlopen ();
10205 return 0;
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213 esac
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216 (eval "$ac_link") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext && {
10226 test "$cross_compiling" = yes ||
10227 $as_test_x conftest$ac_exeext
10228 }; then
10229 ac_cv_lib_dl_dlopen=yes
10230 else
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_dl_dlopen=no
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10244 if test $ac_cv_lib_dl_dlopen = yes; then
10245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10246 else
10248 lt_cv_dlopen="dyld"
10249 lt_cv_dlopen_libs=
10250 lt_cv_dlopen_self=yes
10257 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10258 $as_echo_n "checking for shl_load... " >&6; }
10259 if test "${ac_cv_func_shl_load+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10261 else
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10270 #define shl_load innocuous_shl_load
10272 /* System header to define __stub macros and hopefully few prototypes,
10273 which can conflict with char shl_load (); below.
10274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10275 <limits.h> exists even on freestanding compilers. */
10277 #ifdef __STDC__
10278 # include <limits.h>
10279 #else
10280 # include <assert.h>
10281 #endif
10283 #undef shl_load
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char shl_load ();
10292 /* The GNU C library defines this for functions which it implements
10293 to always fail with ENOSYS. Some functions are actually named
10294 something starting with __ and the normal name is an alias. */
10295 #if defined __stub_shl_load || defined __stub___shl_load
10296 choke me
10297 #endif
10300 main ()
10302 return shl_load ();
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (ac_try="$ac_link"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10314 $as_echo "$ac_try_echo") >&5
10315 (eval "$ac_link") 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext && {
10325 test "$cross_compiling" = yes ||
10326 $as_test_x conftest$ac_exeext
10327 }; then
10328 ac_cv_func_shl_load=yes
10329 else
10330 $as_echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_func_shl_load=no
10336 rm -rf conftest.dSYM
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10340 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10341 $as_echo "$ac_cv_func_shl_load" >&6; }
10342 if test $ac_cv_func_shl_load = yes; then
10343 lt_cv_dlopen="shl_load"
10344 else
10345 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10346 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10347 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10348 $as_echo_n "(cached) " >&6
10349 else
10350 ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-ldld $LIBS"
10352 cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h. */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char shl_load ();
10367 main ()
10369 return shl_load ();
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379 esac
10380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10381 $as_echo "$ac_try_echo") >&5
10382 (eval "$ac_link") 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && {
10389 test -z "$ac_c_werror_flag" ||
10390 test ! -s conftest.err
10391 } && test -s conftest$ac_exeext && {
10392 test "$cross_compiling" = yes ||
10393 $as_test_x conftest$ac_exeext
10394 }; then
10395 ac_cv_lib_dld_shl_load=yes
10396 else
10397 $as_echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_lib_dld_shl_load=no
10403 rm -rf conftest.dSYM
10404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_lib_save_LIBS
10408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10410 if test $ac_cv_lib_dld_shl_load = yes; then
10411 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10412 else
10413 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10414 $as_echo_n "checking for dlopen... " >&6; }
10415 if test "${ac_cv_func_dlopen+set}" = set; then
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10426 #define dlopen innocuous_dlopen
10428 /* System header to define __stub macros and hopefully few prototypes,
10429 which can conflict with char dlopen (); below.
10430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10431 <limits.h> exists even on freestanding compilers. */
10433 #ifdef __STDC__
10434 # include <limits.h>
10435 #else
10436 # include <assert.h>
10437 #endif
10439 #undef dlopen
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char dlopen ();
10448 /* The GNU C library defines this for functions which it implements
10449 to always fail with ENOSYS. Some functions are actually named
10450 something starting with __ and the normal name is an alias. */
10451 #if defined __stub_dlopen || defined __stub___dlopen
10452 choke me
10453 #endif
10456 main ()
10458 return dlopen ();
10460 return 0;
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_link") 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest$ac_exeext && {
10481 test "$cross_compiling" = yes ||
10482 $as_test_x conftest$ac_exeext
10483 }; then
10484 ac_cv_func_dlopen=yes
10485 else
10486 $as_echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_func_dlopen=no
10492 rm -rf conftest.dSYM
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10497 $as_echo "$ac_cv_func_dlopen" >&6; }
10498 if test $ac_cv_func_dlopen = yes; then
10499 lt_cv_dlopen="dlopen"
10500 else
10501 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldl $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char dlopen ();
10523 main ()
10525 return dlopen ();
10527 return 0;
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext && {
10548 test "$cross_compiling" = yes ||
10549 $as_test_x conftest$ac_exeext
10550 }; then
10551 ac_cv_lib_dl_dlopen=yes
10552 else
10553 $as_echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_dl_dlopen=no
10559 rm -rf conftest.dSYM
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test $ac_cv_lib_dl_dlopen = yes; then
10567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568 else
10569 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10571 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10572 $as_echo_n "(cached) " >&6
10573 else
10574 ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-lsvld $LIBS"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10586 #ifdef __cplusplus
10587 extern "C"
10588 #endif
10589 char dlopen ();
10591 main ()
10593 return dlopen ();
10595 return 0;
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10605 $as_echo "$ac_try_echo") >&5
10606 (eval "$ac_link") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext && {
10616 test "$cross_compiling" = yes ||
10617 $as_test_x conftest$ac_exeext
10618 }; then
10619 ac_cv_lib_svld_dlopen=yes
10620 else
10621 $as_echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_svld_dlopen=no
10627 rm -rf conftest.dSYM
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10634 if test $ac_cv_lib_svld_dlopen = yes; then
10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10636 else
10637 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10640 $as_echo_n "(cached) " >&6
10641 else
10642 ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-ldld $LIBS"
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dld_link ();
10659 main ()
10661 return dld_link ();
10663 return 0;
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671 esac
10672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10673 $as_echo "$ac_try_echo") >&5
10674 (eval "$ac_link") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest$ac_exeext && {
10684 test "$cross_compiling" = yes ||
10685 $as_test_x conftest$ac_exeext
10686 }; then
10687 ac_cv_lib_dld_dld_link=yes
10688 else
10689 $as_echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_cv_lib_dld_dld_link=no
10695 rm -rf conftest.dSYM
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10701 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10702 if test $ac_cv_lib_dld_dld_link = yes; then
10703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10722 esac
10724 if test "x$lt_cv_dlopen" != xno; then
10725 enable_dlopen=yes
10726 else
10727 enable_dlopen=no
10730 case $lt_cv_dlopen in
10731 dlopen)
10732 save_CPPFLAGS="$CPPFLAGS"
10733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10735 save_LDFLAGS="$LDFLAGS"
10736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10738 save_LIBS="$LIBS"
10739 LIBS="$lt_cv_dlopen_libs $LIBS"
10741 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10742 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10743 if test "${lt_cv_dlopen_self+set}" = set; then
10744 $as_echo_n "(cached) " >&6
10745 else
10746 if test "$cross_compiling" = yes; then :
10747 lt_cv_dlopen_self=cross
10748 else
10749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10750 lt_status=$lt_dlunknown
10751 cat > conftest.$ac_ext <<_LT_EOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10755 #if HAVE_DLFCN_H
10756 #include <dlfcn.h>
10757 #endif
10759 #include <stdio.h>
10761 #ifdef RTLD_GLOBAL
10762 # define LT_DLGLOBAL RTLD_GLOBAL
10763 #else
10764 # ifdef DL_GLOBAL
10765 # define LT_DLGLOBAL DL_GLOBAL
10766 # else
10767 # define LT_DLGLOBAL 0
10768 # endif
10769 #endif
10771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10772 find out it does not work in some platform. */
10773 #ifndef LT_DLLAZY_OR_NOW
10774 # ifdef RTLD_LAZY
10775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10776 # else
10777 # ifdef DL_LAZY
10778 # define LT_DLLAZY_OR_NOW DL_LAZY
10779 # else
10780 # ifdef RTLD_NOW
10781 # define LT_DLLAZY_OR_NOW RTLD_NOW
10782 # else
10783 # ifdef DL_NOW
10784 # define LT_DLLAZY_OR_NOW DL_NOW
10785 # else
10786 # define LT_DLLAZY_OR_NOW 0
10787 # endif
10788 # endif
10789 # endif
10790 # endif
10791 #endif
10793 #ifdef __cplusplus
10794 extern "C" void exit (int);
10795 #endif
10797 void fnord() { int i=42;}
10798 int main ()
10800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10801 int status = $lt_dlunknown;
10803 if (self)
10805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807 /* dlclose (self); */
10809 else
10810 puts (dlerror ());
10812 exit (status);
10814 _LT_EOF
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10817 ac_status=$?
10818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10820 (./conftest; exit; ) >&5 2>/dev/null
10821 lt_status=$?
10822 case x$lt_status in
10823 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10824 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10825 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10826 esac
10827 else :
10828 # compilation failed
10829 lt_cv_dlopen_self=no
10832 rm -fr conftest*
10836 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10837 $as_echo "$lt_cv_dlopen_self" >&6; }
10839 if test "x$lt_cv_dlopen_self" = xyes; then
10840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10841 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10842 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10843 if test "${lt_cv_dlopen_self_static+set}" = set; then
10844 $as_echo_n "(cached) " >&6
10845 else
10846 if test "$cross_compiling" = yes; then :
10847 lt_cv_dlopen_self_static=cross
10848 else
10849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10850 lt_status=$lt_dlunknown
10851 cat > conftest.$ac_ext <<_LT_EOF
10852 #line 10852 "configure"
10853 #include "confdefs.h"
10855 #if HAVE_DLFCN_H
10856 #include <dlfcn.h>
10857 #endif
10859 #include <stdio.h>
10861 #ifdef RTLD_GLOBAL
10862 # define LT_DLGLOBAL RTLD_GLOBAL
10863 #else
10864 # ifdef DL_GLOBAL
10865 # define LT_DLGLOBAL DL_GLOBAL
10866 # else
10867 # define LT_DLGLOBAL 0
10868 # endif
10869 #endif
10871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10872 find out it does not work in some platform. */
10873 #ifndef LT_DLLAZY_OR_NOW
10874 # ifdef RTLD_LAZY
10875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10876 # else
10877 # ifdef DL_LAZY
10878 # define LT_DLLAZY_OR_NOW DL_LAZY
10879 # else
10880 # ifdef RTLD_NOW
10881 # define LT_DLLAZY_OR_NOW RTLD_NOW
10882 # else
10883 # ifdef DL_NOW
10884 # define LT_DLLAZY_OR_NOW DL_NOW
10885 # else
10886 # define LT_DLLAZY_OR_NOW 0
10887 # endif
10888 # endif
10889 # endif
10890 # endif
10891 #endif
10893 #ifdef __cplusplus
10894 extern "C" void exit (int);
10895 #endif
10897 void fnord() { int i=42;}
10898 int main ()
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10903 if (self)
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10907 /* dlclose (self); */
10909 else
10910 puts (dlerror ());
10912 exit (status);
10914 _LT_EOF
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916 (eval $ac_link) 2>&5
10917 ac_status=$?
10918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10920 (./conftest; exit; ) >&5 2>/dev/null
10921 lt_status=$?
10922 case x$lt_status in
10923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10925 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10926 esac
10927 else :
10928 # compilation failed
10929 lt_cv_dlopen_self_static=no
10932 rm -fr conftest*
10936 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10937 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10940 CPPFLAGS="$save_CPPFLAGS"
10941 LDFLAGS="$save_LDFLAGS"
10942 LIBS="$save_LIBS"
10944 esac
10946 case $lt_cv_dlopen_self in
10947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10948 *) enable_dlopen_self=unknown ;;
10949 esac
10951 case $lt_cv_dlopen_self_static in
10952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10953 *) enable_dlopen_self_static=unknown ;;
10954 esac
10973 striplib=
10974 old_striplib=
10975 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10976 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10977 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10978 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10979 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10980 { $as_echo "$as_me:$LINENO: result: yes" >&5
10981 $as_echo "yes" >&6; }
10982 else
10983 # FIXME - insert some real tests, host_os isn't really good enough
10984 case $host_os in
10985 darwin*)
10986 if test -n "$STRIP" ; then
10987 striplib="$STRIP -x"
10988 old_striplib="$STRIP -S"
10989 { $as_echo "$as_me:$LINENO: result: yes" >&5
10990 $as_echo "yes" >&6; }
10991 else
10992 { $as_echo "$as_me:$LINENO: result: no" >&5
10993 $as_echo "no" >&6; }
10997 { $as_echo "$as_me:$LINENO: result: no" >&5
10998 $as_echo "no" >&6; }
11000 esac
11014 # Report which library types will actually be built
11015 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11016 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11017 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11018 $as_echo "$can_build_shared" >&6; }
11020 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11021 $as_echo_n "checking whether to build shared libraries... " >&6; }
11022 test "$can_build_shared" = "no" && enable_shared=no
11024 # On AIX, shared libraries and static libraries use the same namespace, and
11025 # are all built from PIC.
11026 case $host_os in
11027 aix3*)
11028 test "$enable_shared" = yes && enable_static=no
11029 if test -n "$RANLIB"; then
11030 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11031 postinstall_cmds='$RANLIB $lib'
11035 aix[4-9]*)
11036 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11037 test "$enable_shared" = yes && enable_static=no
11040 esac
11041 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11042 $as_echo "$enable_shared" >&6; }
11044 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11045 $as_echo_n "checking whether to build static libraries... " >&6; }
11046 # Make sure either enable_shared or enable_static is yes.
11047 test "$enable_shared" = yes || enable_static=yes
11048 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11049 $as_echo "$enable_static" >&6; }
11055 ac_ext=c
11056 ac_cpp='$CPP $CPPFLAGS'
11057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061 CC="$lt_save_CC"
11075 ac_config_commands="$ac_config_commands libtool"
11080 # Only expand once:
11084 # For testing cross-compilation behaviour.
11085 #cross_compiling=yes
11087 { echo; echo "${term_bold}Optional Platform Environment:${term_norm}"; } >& 6
11090 for ac_header in sys/signal.h
11092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11095 $as_echo_n "checking for $ac_header... " >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 $as_echo_n "(cached) " >&6
11099 ac_res=`eval 'as_val=${'$as_ac_Header'}
11100 $as_echo "$as_val"'`
11101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11102 $as_echo "$ac_res" >&6; }
11103 else
11104 # Is the header compilable?
11105 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 $as_echo_n "checking $ac_header usability... " >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11123 $as_echo "$ac_try_echo") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest.$ac_objext; then
11134 ac_header_compiler=yes
11135 else
11136 $as_echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_header_compiler=no
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11144 $as_echo "$ac_header_compiler" >&6; }
11146 # Is the header present?
11147 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11148 $as_echo_n "checking $ac_header presence... " >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <$ac_header>
11156 _ACEOF
11157 if { (ac_try="$ac_cpp conftest.$ac_ext"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161 esac
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } >/dev/null && {
11171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 }; then
11174 ac_header_preproc=yes
11175 else
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_header_preproc=no
11182 rm -f conftest.err conftest.$ac_ext
11183 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11184 $as_echo "$ac_header_preproc" >&6; }
11186 # So? What about this header?
11187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11188 yes:no: )
11189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11190 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11192 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11193 ac_header_preproc=yes
11195 no:yes:* )
11196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11197 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11199 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11201 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11203 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11210 esac
11211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 $as_echo_n "checking for $ac_header... " >&6; }
11213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214 $as_echo_n "(cached) " >&6
11215 else
11216 eval "$as_ac_Header=\$ac_header_preproc"
11218 ac_res=`eval 'as_val=${'$as_ac_Header'}
11219 $as_echo "$as_val"'`
11220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11221 $as_echo "$ac_res" >&6; }
11224 if test `eval 'as_val=${'$as_ac_Header'}
11225 $as_echo "$as_val"'` = yes; then
11226 cat >>confdefs.h <<_ACEOF
11227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11228 _ACEOF
11232 done
11235 case "$host_os" in
11236 sunos4* | freebsd* | openbsd* | netbsd* | kfreebsd* | knetbsd*)
11237 CFG_SIGNALS=signals-bsd.h ;;
11238 hpux*)
11239 CFG_SIGNALS=signals-hpux.h ;;
11240 macos* | darwin*)
11241 CFG_SIGNALS=signals-macos.h ;;
11242 gnu*)
11243 CFG_SIGNALS=signals-hurd.h ;;
11245 CFG_SIGNALS=signals.h ;;
11246 esac
11248 cat >>confdefs.h <<_ACEOF
11249 #define CFG_SIGNALS "$CFG_SIGNALS"
11250 _ACEOF
11253 # How to determine the memory page size.
11258 for ac_header in unistd.h
11260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 $as_echo_n "checking for $ac_header... " >&6; }
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 $as_echo_n "(cached) " >&6
11267 ac_res=`eval 'as_val=${'$as_ac_Header'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11271 else
11272 # Is the header compilable?
11273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 $as_echo_n "checking $ac_header usability... " >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11291 $as_echo "$ac_try_echo") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest.$ac_objext; then
11302 ac_header_compiler=yes
11303 else
11304 $as_echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_header_compiler=no
11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11312 $as_echo "$ac_header_compiler" >&6; }
11314 # Is the header present?
11315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11316 $as_echo_n "checking $ac_header presence... " >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <$ac_header>
11324 _ACEOF
11325 if { (ac_try="$ac_cpp conftest.$ac_ext"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11331 $as_echo "$ac_try_echo") >&5
11332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } >/dev/null && {
11339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 }; then
11342 ac_header_preproc=yes
11343 else
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_preproc=no
11350 rm -f conftest.err conftest.$ac_ext
11351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352 $as_echo "$ac_header_preproc" >&6; }
11354 # So? What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11356 yes:no: )
11357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361 ac_header_preproc=yes
11363 no:yes:* )
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11378 esac
11379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 $as_echo_n "checking for $ac_header... " >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382 $as_echo_n "(cached) " >&6
11383 else
11384 eval "$as_ac_Header=\$ac_header_preproc"
11386 ac_res=`eval 'as_val=${'$as_ac_Header'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11389 $as_echo "$ac_res" >&6; }
11392 if test `eval 'as_val=${'$as_ac_Header'}
11393 $as_echo "$as_val"'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 _ACEOF
11400 done
11404 { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
11405 $as_echo_n "checking for getpagesize... " >&6; }
11406 if test "${sv_cv_func_getpagesize+set}" = set; then
11407 $as_echo_n "(cached) " >&6
11408 else
11410 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11418 #if HAVE_UNISTD_H
11419 #include <sys/types.h>
11420 #include <unistd.h>
11421 #endif
11424 main ()
11426 int pgsz = getpagesize();
11428 return 0;
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438 $as_echo "$ac_try_echo") >&5
11439 (eval "$ac_link") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest$ac_exeext && {
11449 test "$cross_compiling" = yes ||
11450 $as_test_x conftest$ac_exeext
11451 }; then
11452 sv_cv_func_getpagesize=yes
11453 else
11454 $as_echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 sv_cv_func_getpagesize=no
11460 rm -rf conftest.dSYM
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 { $as_echo "$as_me:$LINENO: result: $sv_cv_func_getpagesize" >&5
11465 $as_echo "$sv_cv_func_getpagesize" >&6; }
11466 if test $sv_cv_func_getpagesize = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define HAVE_GETPAGESIZE 1
11470 _ACEOF
11475 { $as_echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
11476 $as_echo_n "checking for sysconf(_SC_PAGESIZE)... " >&6; }
11477 if test "${sv_cv_func_sysconf_pagesize+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479 else
11481 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 #if HAVE_UNISTD_H
11490 #include <sys/types.h>
11491 #include <unistd.h>
11492 #endif
11495 main ()
11497 int pgsz = sysconf (_SC_PAGESIZE);
11499 return 0;
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507 esac
11508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11509 $as_echo "$ac_try_echo") >&5
11510 (eval "$ac_link") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest$ac_exeext && {
11520 test "$cross_compiling" = yes ||
11521 $as_test_x conftest$ac_exeext
11522 }; then
11523 sv_cv_func_sysconf_pagesize=yes
11524 else
11525 $as_echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 sv_cv_func_sysconf_pagesize=no
11531 rm -rf conftest.dSYM
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533 conftest$ac_exeext conftest.$ac_ext
11535 { $as_echo "$as_me:$LINENO: result: $sv_cv_func_sysconf_pagesize" >&5
11536 $as_echo "$sv_cv_func_sysconf_pagesize" >&6; }
11537 if test $sv_cv_func_sysconf_pagesize = yes; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_SYSCONF_PAGESIZE 1
11541 _ACEOF
11546 { $as_echo "$as_me:$LINENO: checking for PAGESIZE in limits.h" >&5
11547 $as_echo_n "checking for PAGESIZE in limits.h... " >&6; }
11548 if test "${sv_cv_macro_pagesize+set}" = set; then
11549 $as_echo_n "(cached) " >&6
11550 else
11552 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <limits.h>
11561 main ()
11563 int pgsz = PAGESIZE;
11565 return 0;
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576 (eval "$ac_link") 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } && {
11583 test -z "$ac_c_werror_flag" ||
11584 test ! -s conftest.err
11585 } && test -s conftest$ac_exeext && {
11586 test "$cross_compiling" = yes ||
11587 $as_test_x conftest$ac_exeext
11588 }; then
11589 sv_cv_macro_pagesize=yes
11590 else
11591 $as_echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 sv_cv_macro_pagesize=no
11597 rm -rf conftest.dSYM
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599 conftest$ac_exeext conftest.$ac_ext
11601 { $as_echo "$as_me:$LINENO: result: $sv_cv_macro_pagesize" >&5
11602 $as_echo "$sv_cv_macro_pagesize" >&6; }
11603 if test $sv_cv_macro_pagesize = yes; then
11605 cat >>confdefs.h <<\_ACEOF
11606 #define HAVE_PAGESIZE 1
11607 _ACEOF
11613 # How to allocate fresh memory using mmap.
11614 # (We need mmap, because mprotect() doesn't work on malloc()ed memory on
11615 # some systems.)
11621 { $as_echo "$as_me:$LINENO: checking for mmap with MAP_ANON" >&5
11622 $as_echo_n "checking for mmap with MAP_ANON... " >&6; }
11623 if test "${sv_cv_func_mmap_anon+set}" = set; then
11624 $as_echo_n "(cached) " >&6
11625 else
11627 if test "$cross_compiling" = yes; then
11629 case "$host_os" in
11630 freebsd* | linux* | osf* | darwin*)
11631 sv_cv_func_mmap_anon=yes ;;
11633 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11641 #include <sys/types.h>
11642 #include <sys/mman.h>
11645 main ()
11647 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
11649 return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11659 $as_echo "$ac_try_echo") >&5
11660 (eval "$ac_link") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest$ac_exeext && {
11670 test "$cross_compiling" = yes ||
11671 $as_test_x conftest$ac_exeext
11672 }; then
11673 sv_cv_func_mmap_anon="guessing yes"
11674 else
11675 $as_echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 sv_cv_func_mmap_anon=no
11681 rm -rf conftest.dSYM
11682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11683 conftest$ac_exeext conftest.$ac_ext
11685 esac
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h. */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11696 #include <sys/types.h>
11697 #include <sys/mman.h>
11698 int main ()
11700 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
11701 return (p == (void *)(-1));
11703 _ACEOF
11704 rm -f conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11711 $as_echo "$ac_try_echo") >&5
11712 (eval "$ac_link") 2>&5
11713 ac_status=$?
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719 esac
11720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722 (eval "$ac_try") 2>&5
11723 ac_status=$?
11724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 sv_cv_func_mmap_anon=yes
11727 else
11728 $as_echo "$as_me: program exited with status $ac_status" >&5
11729 $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 ( exit $ac_status )
11733 sv_cv_func_mmap_anon=no
11735 rm -rf conftest.dSYM
11736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11742 { $as_echo "$as_me:$LINENO: result: $sv_cv_func_mmap_anon" >&5
11743 $as_echo "$sv_cv_func_mmap_anon" >&6; }
11744 if test "$sv_cv_func_mmap_anon" != no; then
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_MMAP_ANON 1
11748 _ACEOF
11753 { $as_echo "$as_me:$LINENO: checking for mmap with MAP_ANONYMOUS" >&5
11754 $as_echo_n "checking for mmap with MAP_ANONYMOUS... " >&6; }
11755 if test "${sv_cv_func_mmap_anonymous+set}" = set; then
11756 $as_echo_n "(cached) " >&6
11757 else
11759 if test "$cross_compiling" = yes; then
11761 case "$host_os" in
11762 hpux* | linux* | osf*)
11763 sv_cv_func_mmap_anonymous=yes ;;
11764 darwin*)
11765 sv_cv_func_mmap_anonymous=no ;;
11767 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11775 #include <sys/types.h>
11776 #include <sys/mman.h>
11779 main ()
11781 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
11783 return 0;
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (ac_try="$ac_link"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791 esac
11792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11793 $as_echo "$ac_try_echo") >&5
11794 (eval "$ac_link") 2>conftest.er1
11795 ac_status=$?
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
11799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest$ac_exeext && {
11804 test "$cross_compiling" = yes ||
11805 $as_test_x conftest$ac_exeext
11806 }; then
11807 sv_cv_func_mmap_anonymous="guessing yes"
11808 else
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 sv_cv_func_mmap_anonymous=no
11815 rm -rf conftest.dSYM
11816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11817 conftest$ac_exeext conftest.$ac_ext
11819 esac
11821 else
11822 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11830 #include <sys/types.h>
11831 #include <sys/mman.h>
11832 int main ()
11834 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
11835 return (p == (void *)(-1));
11837 _ACEOF
11838 rm -f conftest$ac_exeext
11839 if { (ac_try="$ac_link"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845 $as_echo "$ac_try_echo") >&5
11846 (eval "$ac_link") 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_try") 2>&5
11857 ac_status=$?
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 sv_cv_func_mmap_anonymous=yes
11861 else
11862 $as_echo "$as_me: program exited with status $ac_status" >&5
11863 $as_echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ( exit $ac_status )
11867 sv_cv_func_mmap_anonymous=no
11869 rm -rf conftest.dSYM
11870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11876 { $as_echo "$as_me:$LINENO: result: $sv_cv_func_mmap_anonymous" >&5
11877 $as_echo "$sv_cv_func_mmap_anonymous" >&6; }
11878 if test "$sv_cv_func_mmap_anonymous" != no; then
11880 cat >>confdefs.h <<\_ACEOF
11881 #define HAVE_MMAP_ANONYMOUS 1
11882 _ACEOF
11887 { $as_echo "$as_me:$LINENO: checking for mmap of /dev/zero" >&5
11888 $as_echo_n "checking for mmap of /dev/zero... " >&6; }
11889 if test "${sv_cv_func_mmap_devzero+set}" = set; then
11890 $as_echo_n "(cached) " >&6
11891 else
11893 if test "$cross_compiling" = yes; then
11895 case "$host_os" in
11896 freebsd* | irix* | linux* | osf* | solaris* | sunos4*)
11897 sv_cv_func_mmap_devzero=yes ;;
11898 darwin*)
11899 sv_cv_func_mmap_devzero=no ;;
11901 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #include <sys/types.h>
11910 #include <sys/mman.h>
11911 #ifndef MAP_FILE
11912 #define MAP_FILE 0
11913 #endif
11916 main ()
11918 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, 7, 0);
11920 return 0;
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (ac_try="$ac_link"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_link") 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest$ac_exeext && {
11941 test "$cross_compiling" = yes ||
11942 $as_test_x conftest$ac_exeext
11943 }; then
11944 sv_cv_func_mmap_devzero="guessing yes"
11945 else
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 sv_cv_func_mmap_devzero=no
11952 rm -rf conftest.dSYM
11953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11954 conftest$ac_exeext conftest.$ac_ext
11956 esac
11958 else
11959 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 #include <sys/types.h>
11968 #include <sys/mman.h>
11969 #include <fcntl.h>
11970 #ifndef MAP_FILE
11971 #define MAP_FILE 0
11972 #endif
11973 int main ()
11975 int fd;
11976 void *p;
11977 fd = open ("/dev/zero", O_RDONLY, 0666);
11978 if (fd < 0) return 1;
11979 p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0);
11980 return (p == (void *)(-1));
11982 _ACEOF
11983 rm -f conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988 esac
11989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11990 $as_echo "$ac_try_echo") >&5
11991 (eval "$ac_link") 2>&5
11992 ac_status=$?
11993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_try") 2>&5
12002 ac_status=$?
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 sv_cv_func_mmap_devzero=yes
12006 else
12007 $as_echo "$as_me: program exited with status $ac_status" >&5
12008 $as_echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 ( exit $ac_status )
12012 sv_cv_func_mmap_devzero=no
12014 rm -rf conftest.dSYM
12015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12021 { $as_echo "$as_me:$LINENO: result: $sv_cv_func_mmap_devzero" >&5
12022 $as_echo "$sv_cv_func_mmap_devzero" >&6; }
12023 if test "$sv_cv_func_mmap_devzero" != no; then
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_MMAP_DEVZERO 1
12027 _ACEOF
12032 # How to write a SIGSEGV handler with access to the fault address.
12034 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
12035 # using handler-macos.c anyway. If we were to perform the tests, 5 Crash Report
12036 # dialog windows would pop up.
12037 case "$host_os" in
12038 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
12045 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to POSIX works" >&5
12046 $as_echo_n "checking whether a fault handler according to POSIX works... " >&6; }
12047 if test "${sv_cv_fault_posix+set}" = set; then
12048 $as_echo_n "(cached) " >&6
12049 else
12051 if test "$cross_compiling" = yes; then
12052 case "$host" in
12053 *-*-solaris2.[7-9] | i?86-*-linux2.[4-9]* | i?86-*-freebsd[4-9]* | alpha*-dec-osf[4-9]* | *-*-hpux11* | mips-sgi-irix6*) sv_cv_fault_posix=yes ;;
12055 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 #include <signal.h>
12065 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
12067 void *fault_address = (void *) (sip->si_addr);
12071 main ()
12073 struct sigaction action;
12074 action.sa_sigaction = &sigsegv_handler;
12075 action.sa_flags = SA_SIGINFO;
12077 return 0;
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_link") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext && {
12098 test "$cross_compiling" = yes ||
12099 $as_test_x conftest$ac_exeext
12100 }; then
12101 sv_cv_fault_posix="guessing no"
12102 else
12103 $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 sv_cv_fault_posix=no
12109 rm -rf conftest.dSYM
12110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12111 conftest$ac_exeext conftest.$ac_ext
12113 esac
12115 else
12116 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 #include <stdlib.h>
12125 #include <signal.h>
12126 #if HAVE_SYS_SIGNAL_H
12127 # include <sys/signal.h>
12128 #endif
12130 #include <sys/types.h>
12131 #include <sys/mman.h>
12132 #if HAVE_MMAP_DEVZERO
12133 # include <fcntl.h>
12134 # ifndef MAP_FILE
12135 # define MAP_FILE 0
12136 # endif
12137 #endif
12138 #ifndef PROT_NONE
12139 # define PROT_NONE 0
12140 #endif
12141 #if HAVE_MMAP_ANON
12142 # define zero_fd -1
12143 # define map_flags MAP_ANON | MAP_PRIVATE
12144 #elif HAVE_MMAP_ANONYMOUS
12145 # define zero_fd -1
12146 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12147 #elif HAVE_MMAP_DEVZERO
12148 static int zero_fd;
12149 # define map_flags MAP_FILE | MAP_PRIVATE
12150 #endif
12151 unsigned long page;
12152 int handler_called = 0;
12153 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
12155 void *fault_address = (void *) (sip->si_addr);
12156 handler_called++;
12157 if (handler_called == 10)
12158 exit (4);
12159 if (fault_address != (void*)(page + 0x678))
12160 exit (3);
12161 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12162 exit (2);
12164 void crasher (unsigned long p)
12166 *(int *) (p + 0x678) = 42;
12168 int main ()
12170 void *p;
12171 struct sigaction action;
12172 /* Preparations. */
12173 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12174 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
12175 #endif
12176 /* Setup some mmaped memory. */
12177 #ifdef __hpux
12178 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12179 freedom about the address range. */
12180 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12181 #else
12182 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12183 #endif
12184 if (p == (void *)(-1))
12185 exit (2);
12186 page = (unsigned long) p;
12187 /* Make it read-only. */
12188 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12189 exit (2);
12190 /* Install the SIGSEGV handler. */
12191 sigemptyset(&action.sa_mask);
12192 action.sa_sigaction = &sigsegv_handler;
12193 action.sa_flags = SA_SIGINFO;
12194 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12195 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12196 /* The first write access should invoke the handler and then complete. */
12197 crasher (page);
12198 /* The second write access should not invoke the handler. */
12199 crasher (page);
12200 /* Check that the handler was called only once. */
12201 if (handler_called != 1)
12202 exit (1);
12203 /* Test passed! */
12204 return 0;
12206 _ACEOF
12207 rm -f conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215 (eval "$ac_link") 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12224 $as_echo "$ac_try_echo") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 sv_cv_fault_posix=yes
12230 else
12231 $as_echo "$as_me: program exited with status $ac_status" >&5
12232 $as_echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ( exit $ac_status )
12236 sv_cv_fault_posix=no
12238 rm -rf conftest.dSYM
12239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12245 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_posix" >&5
12246 $as_echo "$sv_cv_fault_posix" >&6; }
12253 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux/i386 works" >&5
12254 $as_echo_n "checking whether a fault handler according to Linux/i386 works... " >&6; }
12255 if test "${sv_cv_fault_linux_i386+set}" = set; then
12256 $as_echo_n "(cached) " >&6
12257 else
12259 if test "$cross_compiling" = yes; then
12260 case "$host" in
12261 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386=yes ;;
12263 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 #include <signal.h>
12272 #include <asm/sigcontext.h>
12273 void sigsegv_handler (int sig, struct sigcontext sc)
12275 void *fault_address = (void *) (sc.cr2);
12279 main ()
12281 struct sigaction action;
12284 return 0;
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292 esac
12293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295 (eval "$ac_link") 2>conftest.er1
12296 ac_status=$?
12297 grep -v '^ *+' conftest.er1 >conftest.err
12298 rm -f conftest.er1
12299 cat conftest.err >&5
12300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && {
12302 test -z "$ac_c_werror_flag" ||
12303 test ! -s conftest.err
12304 } && test -s conftest$ac_exeext && {
12305 test "$cross_compiling" = yes ||
12306 $as_test_x conftest$ac_exeext
12307 }; then
12308 sv_cv_fault_linux_i386="guessing no"
12309 else
12310 $as_echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 sv_cv_fault_linux_i386=no
12316 rm -rf conftest.dSYM
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12320 esac
12322 else
12323 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 #include <stdlib.h>
12332 #include <signal.h>
12333 #if HAVE_SYS_SIGNAL_H
12334 # include <sys/signal.h>
12335 #endif
12336 #include <asm/sigcontext.h>
12337 #include <sys/types.h>
12338 #include <sys/mman.h>
12339 #if HAVE_MMAP_DEVZERO
12340 # include <fcntl.h>
12341 # ifndef MAP_FILE
12342 # define MAP_FILE 0
12343 # endif
12344 #endif
12345 #ifndef PROT_NONE
12346 # define PROT_NONE 0
12347 #endif
12348 #if HAVE_MMAP_ANON
12349 # define zero_fd -1
12350 # define map_flags MAP_ANON | MAP_PRIVATE
12351 #elif HAVE_MMAP_ANONYMOUS
12352 # define zero_fd -1
12353 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12354 #elif HAVE_MMAP_DEVZERO
12355 static int zero_fd;
12356 # define map_flags MAP_FILE | MAP_PRIVATE
12357 #endif
12358 unsigned long page;
12359 int handler_called = 0;
12360 void sigsegv_handler (int sig, struct sigcontext sc)
12362 void *fault_address = (void *) (sc.cr2);
12363 handler_called++;
12364 if (handler_called == 10)
12365 exit (4);
12366 if (fault_address != (void*)(page + 0x678))
12367 exit (3);
12368 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12369 exit (2);
12371 void crasher (unsigned long p)
12373 *(int *) (p + 0x678) = 42;
12375 int main ()
12377 void *p;
12378 struct sigaction action;
12379 /* Preparations. */
12380 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12381 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
12382 #endif
12383 /* Setup some mmaped memory. */
12384 #ifdef __hpux
12385 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12386 freedom about the address range. */
12387 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12388 #else
12389 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12390 #endif
12391 if (p == (void *)(-1))
12392 exit (2);
12393 page = (unsigned long) p;
12394 /* Make it read-only. */
12395 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12396 exit (2);
12397 /* Install the SIGSEGV handler. */
12398 sigemptyset(&action.sa_mask);
12400 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12401 action.sa_flags = 0;
12403 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12404 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12405 /* The first write access should invoke the handler and then complete. */
12406 crasher (page);
12407 /* The second write access should not invoke the handler. */
12408 crasher (page);
12409 /* Check that the handler was called only once. */
12410 if (handler_called != 1)
12411 exit (1);
12412 /* Test passed! */
12413 return 0;
12415 _ACEOF
12416 rm -f conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12423 $as_echo "$ac_try_echo") >&5
12424 (eval "$ac_link") 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 sv_cv_fault_linux_i386=yes
12439 else
12440 $as_echo "$as_me: program exited with status $ac_status" >&5
12441 $as_echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ( exit $ac_status )
12445 sv_cv_fault_linux_i386=no
12447 rm -rf conftest.dSYM
12448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12454 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_linux_i386" >&5
12455 $as_echo "$sv_cv_fault_linux_i386" >&6; }
12462 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to old Linux/i386 works" >&5
12463 $as_echo_n "checking whether a fault handler according to old Linux/i386 works... " >&6; }
12464 if test "${sv_cv_fault_linux_i386_old+set}" = set; then
12465 $as_echo_n "(cached) " >&6
12466 else
12468 if test "$cross_compiling" = yes; then
12469 case "$host" in
12470 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386_old=yes ;;
12472 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12480 #include <signal.h>
12482 void sigsegv_handler (int sig, unsigned int more)
12484 void *fault_address = (void *) (((unsigned long *) &more) [21]);
12488 main ()
12490 struct sigaction action;
12493 return 0;
12495 _ACEOF
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501 esac
12502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503 $as_echo "$ac_try_echo") >&5
12504 (eval "$ac_link") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12516 }; then
12517 sv_cv_fault_linux_i386_old="guessing no"
12518 else
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 sv_cv_fault_linux_i386_old=no
12525 rm -rf conftest.dSYM
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527 conftest$ac_exeext conftest.$ac_ext
12529 esac
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12540 #include <stdlib.h>
12541 #include <signal.h>
12542 #if HAVE_SYS_SIGNAL_H
12543 # include <sys/signal.h>
12544 #endif
12546 #include <sys/types.h>
12547 #include <sys/mman.h>
12548 #if HAVE_MMAP_DEVZERO
12549 # include <fcntl.h>
12550 # ifndef MAP_FILE
12551 # define MAP_FILE 0
12552 # endif
12553 #endif
12554 #ifndef PROT_NONE
12555 # define PROT_NONE 0
12556 #endif
12557 #if HAVE_MMAP_ANON
12558 # define zero_fd -1
12559 # define map_flags MAP_ANON | MAP_PRIVATE
12560 #elif HAVE_MMAP_ANONYMOUS
12561 # define zero_fd -1
12562 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12563 #elif HAVE_MMAP_DEVZERO
12564 static int zero_fd;
12565 # define map_flags MAP_FILE | MAP_PRIVATE
12566 #endif
12567 unsigned long page;
12568 int handler_called = 0;
12569 void sigsegv_handler (int sig, unsigned int more)
12571 void *fault_address = (void *) (((unsigned long *) &more) [21]);
12572 handler_called++;
12573 if (handler_called == 10)
12574 exit (4);
12575 if (fault_address != (void*)(page + 0x678))
12576 exit (3);
12577 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12578 exit (2);
12580 void crasher (unsigned long p)
12582 *(int *) (p + 0x678) = 42;
12584 int main ()
12586 void *p;
12587 struct sigaction action;
12588 /* Preparations. */
12589 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12590 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
12591 #endif
12592 /* Setup some mmaped memory. */
12593 #ifdef __hpux
12594 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12595 freedom about the address range. */
12596 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12597 #else
12598 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12599 #endif
12600 if (p == (void *)(-1))
12601 exit (2);
12602 page = (unsigned long) p;
12603 /* Make it read-only. */
12604 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12605 exit (2);
12606 /* Install the SIGSEGV handler. */
12607 sigemptyset(&action.sa_mask);
12609 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12610 action.sa_flags = 0;
12612 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12613 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12614 /* The first write access should invoke the handler and then complete. */
12615 crasher (page);
12616 /* The second write access should not invoke the handler. */
12617 crasher (page);
12618 /* Check that the handler was called only once. */
12619 if (handler_called != 1)
12620 exit (1);
12621 /* Test passed! */
12622 return 0;
12624 _ACEOF
12625 rm -f conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630 esac
12631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632 $as_echo "$ac_try_echo") >&5
12633 (eval "$ac_link") 2>&5
12634 ac_status=$?
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12642 $as_echo "$ac_try_echo") >&5
12643 (eval "$ac_try") 2>&5
12644 ac_status=$?
12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 sv_cv_fault_linux_i386_old=yes
12648 else
12649 $as_echo "$as_me: program exited with status $ac_status" >&5
12650 $as_echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ( exit $ac_status )
12654 sv_cv_fault_linux_i386_old=no
12656 rm -rf conftest.dSYM
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12663 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_linux_i386_old" >&5
12664 $as_echo "$sv_cv_fault_linux_i386_old" >&6; }
12671 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux/m68k works" >&5
12672 $as_echo_n "checking whether a fault handler according to Linux/m68k works... " >&6; }
12673 if test "${sv_cv_fault_linux_m68k+set}" = set; then
12674 $as_echo_n "(cached) " >&6
12675 else
12677 if test "$cross_compiling" = yes; then
12678 case "$host" in
12681 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12689 #include <signal.h>
12690 #include <asm/sigcontext.h>
12691 #include "$srcdir/src/fault-linux-m68k.c"
12692 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
12694 void *fault_address = (void *) (get_fault_addr (scp));
12698 main ()
12700 struct sigaction action;
12703 return 0;
12705 _ACEOF
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711 esac
12712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12713 $as_echo "$ac_try_echo") >&5
12714 (eval "$ac_link") 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && {
12721 test -z "$ac_c_werror_flag" ||
12722 test ! -s conftest.err
12723 } && test -s conftest$ac_exeext && {
12724 test "$cross_compiling" = yes ||
12725 $as_test_x conftest$ac_exeext
12726 }; then
12727 sv_cv_fault_linux_m68k="guessing no"
12728 else
12729 $as_echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 sv_cv_fault_linux_m68k=no
12735 rm -rf conftest.dSYM
12736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12737 conftest$ac_exeext conftest.$ac_ext
12739 esac
12741 else
12742 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 #include <stdlib.h>
12751 #include <signal.h>
12752 #if HAVE_SYS_SIGNAL_H
12753 # include <sys/signal.h>
12754 #endif
12755 #include <asm/sigcontext.h>
12756 #include "$srcdir/src/fault-linux-m68k.c"
12757 #include <sys/types.h>
12758 #include <sys/mman.h>
12759 #if HAVE_MMAP_DEVZERO
12760 # include <fcntl.h>
12761 # ifndef MAP_FILE
12762 # define MAP_FILE 0
12763 # endif
12764 #endif
12765 #ifndef PROT_NONE
12766 # define PROT_NONE 0
12767 #endif
12768 #if HAVE_MMAP_ANON
12769 # define zero_fd -1
12770 # define map_flags MAP_ANON | MAP_PRIVATE
12771 #elif HAVE_MMAP_ANONYMOUS
12772 # define zero_fd -1
12773 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12774 #elif HAVE_MMAP_DEVZERO
12775 static int zero_fd;
12776 # define map_flags MAP_FILE | MAP_PRIVATE
12777 #endif
12778 unsigned long page;
12779 int handler_called = 0;
12780 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
12782 void *fault_address = (void *) (get_fault_addr (scp));
12783 handler_called++;
12784 if (handler_called == 10)
12785 exit (4);
12786 if (fault_address != (void*)(page + 0x678))
12787 exit (3);
12788 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12789 exit (2);
12791 void crasher (unsigned long p)
12793 *(int *) (p + 0x678) = 42;
12795 int main ()
12797 void *p;
12798 struct sigaction action;
12799 /* Preparations. */
12800 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
12801 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
12802 #endif
12803 /* Setup some mmaped memory. */
12804 #ifdef __hpux
12805 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
12806 freedom about the address range. */
12807 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12808 #else
12809 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
12810 #endif
12811 if (p == (void *)(-1))
12812 exit (2);
12813 page = (unsigned long) p;
12814 /* Make it read-only. */
12815 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
12816 exit (2);
12817 /* Install the SIGSEGV handler. */
12818 sigemptyset(&action.sa_mask);
12820 action.sa_handler = (void (*) (int)) &sigsegv_handler;
12821 action.sa_flags = 0;
12823 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
12824 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
12825 /* The first write access should invoke the handler and then complete. */
12826 crasher (page);
12827 /* The second write access should not invoke the handler. */
12828 crasher (page);
12829 /* Check that the handler was called only once. */
12830 if (handler_called != 1)
12831 exit (1);
12832 /* Test passed! */
12833 return 0;
12835 _ACEOF
12836 rm -f conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_link") 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_try") 2>&5
12855 ac_status=$?
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 sv_cv_fault_linux_m68k=yes
12859 else
12860 $as_echo "$as_me: program exited with status $ac_status" >&5
12861 $as_echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ( exit $ac_status )
12865 sv_cv_fault_linux_m68k=no
12867 rm -rf conftest.dSYM
12868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_linux_m68k" >&5
12875 $as_echo "$sv_cv_fault_linux_m68k" >&6; }
12882 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux/PowerPC works" >&5
12883 $as_echo_n "checking whether a fault handler according to Linux/PowerPC works... " >&6; }
12884 if test "${sv_cv_fault_linux_powerpc+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12886 else
12888 if test "$cross_compiling" = yes; then
12889 case "$host" in
12892 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 #include <signal.h>
12901 #include <asm/sigcontext.h>
12902 void sigsegv_handler (int sig, struct sigcontext *scp)
12904 void *fault_address = (void *) (scp->regs->dar);
12908 main ()
12910 struct sigaction action;
12913 return 0;
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921 esac
12922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923 $as_echo "$ac_try_echo") >&5
12924 (eval "$ac_link") 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest$ac_exeext && {
12934 test "$cross_compiling" = yes ||
12935 $as_test_x conftest$ac_exeext
12936 }; then
12937 sv_cv_fault_linux_powerpc="guessing no"
12938 else
12939 $as_echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 sv_cv_fault_linux_powerpc=no
12945 rm -rf conftest.dSYM
12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947 conftest$ac_exeext conftest.$ac_ext
12949 esac
12951 else
12952 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #include <stdlib.h>
12961 #include <signal.h>
12962 #if HAVE_SYS_SIGNAL_H
12963 # include <sys/signal.h>
12964 #endif
12965 #include <asm/sigcontext.h>
12966 #include <sys/types.h>
12967 #include <sys/mman.h>
12968 #if HAVE_MMAP_DEVZERO
12969 # include <fcntl.h>
12970 # ifndef MAP_FILE
12971 # define MAP_FILE 0
12972 # endif
12973 #endif
12974 #ifndef PROT_NONE
12975 # define PROT_NONE 0
12976 #endif
12977 #if HAVE_MMAP_ANON
12978 # define zero_fd -1
12979 # define map_flags MAP_ANON | MAP_PRIVATE
12980 #elif HAVE_MMAP_ANONYMOUS
12981 # define zero_fd -1
12982 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
12983 #elif HAVE_MMAP_DEVZERO
12984 static int zero_fd;
12985 # define map_flags MAP_FILE | MAP_PRIVATE
12986 #endif
12987 unsigned long page;
12988 int handler_called = 0;
12989 void sigsegv_handler (int sig, struct sigcontext *scp)
12991 void *fault_address = (void *) (scp->regs->dar);
12992 handler_called++;
12993 if (handler_called == 10)
12994 exit (4);
12995 if (fault_address != (void*)(page + 0x678))
12996 exit (3);
12997 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
12998 exit (2);
13000 void crasher (unsigned long p)
13002 *(int *) (p + 0x678) = 42;
13004 int main ()
13006 void *p;
13007 struct sigaction action;
13008 /* Preparations. */
13009 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13010 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
13011 #endif
13012 /* Setup some mmaped memory. */
13013 #ifdef __hpux
13014 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13015 freedom about the address range. */
13016 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13017 #else
13018 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13019 #endif
13020 if (p == (void *)(-1))
13021 exit (2);
13022 page = (unsigned long) p;
13023 /* Make it read-only. */
13024 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13025 exit (2);
13026 /* Install the SIGSEGV handler. */
13027 sigemptyset(&action.sa_mask);
13029 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13030 action.sa_flags = 0;
13032 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13033 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13034 /* The first write access should invoke the handler and then complete. */
13035 crasher (page);
13036 /* The second write access should not invoke the handler. */
13037 crasher (page);
13038 /* Check that the handler was called only once. */
13039 if (handler_called != 1)
13040 exit (1);
13041 /* Test passed! */
13042 return 0;
13044 _ACEOF
13045 rm -f conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050 esac
13051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13052 $as_echo "$ac_try_echo") >&5
13053 (eval "$ac_link") 2>&5
13054 ac_status=$?
13055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_try") 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 sv_cv_fault_linux_powerpc=yes
13068 else
13069 $as_echo "$as_me: program exited with status $ac_status" >&5
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ( exit $ac_status )
13074 sv_cv_fault_linux_powerpc=no
13076 rm -rf conftest.dSYM
13077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13083 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_linux_powerpc" >&5
13084 $as_echo "$sv_cv_fault_linux_powerpc" >&6; }
13091 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Linux/HPPA works" >&5
13092 $as_echo_n "checking whether a fault handler according to Linux/HPPA works... " >&6; }
13093 if test "${sv_cv_fault_linux_hppa+set}" = set; then
13094 $as_echo_n "(cached) " >&6
13095 else
13097 if test "$cross_compiling" = yes; then
13098 case "$host" in
13101 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h. */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13109 #include <signal.h>
13111 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
13113 void *fault_address = (void *) (sip->si_ptr);
13117 main ()
13119 struct sigaction action;
13120 action.sa_sigaction = &sigsegv_handler;
13121 action.sa_flags = SA_SIGINFO;
13123 return 0;
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_link") 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && {
13141 test -z "$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 } && test -s conftest$ac_exeext && {
13144 test "$cross_compiling" = yes ||
13145 $as_test_x conftest$ac_exeext
13146 }; then
13147 sv_cv_fault_linux_hppa="guessing no"
13148 else
13149 $as_echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 sv_cv_fault_linux_hppa=no
13155 rm -rf conftest.dSYM
13156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13157 conftest$ac_exeext conftest.$ac_ext
13159 esac
13161 else
13162 cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h. */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13170 #include <stdlib.h>
13171 #include <signal.h>
13172 #if HAVE_SYS_SIGNAL_H
13173 # include <sys/signal.h>
13174 #endif
13176 #include <sys/types.h>
13177 #include <sys/mman.h>
13178 #if HAVE_MMAP_DEVZERO
13179 # include <fcntl.h>
13180 # ifndef MAP_FILE
13181 # define MAP_FILE 0
13182 # endif
13183 #endif
13184 #ifndef PROT_NONE
13185 # define PROT_NONE 0
13186 #endif
13187 #if HAVE_MMAP_ANON
13188 # define zero_fd -1
13189 # define map_flags MAP_ANON | MAP_PRIVATE
13190 #elif HAVE_MMAP_ANONYMOUS
13191 # define zero_fd -1
13192 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13193 #elif HAVE_MMAP_DEVZERO
13194 static int zero_fd;
13195 # define map_flags MAP_FILE | MAP_PRIVATE
13196 #endif
13197 unsigned long page;
13198 int handler_called = 0;
13199 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
13201 void *fault_address = (void *) (sip->si_ptr);
13202 handler_called++;
13203 if (handler_called == 10)
13204 exit (4);
13205 if (fault_address != (void*)(page + 0x678))
13206 exit (3);
13207 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13208 exit (2);
13210 void crasher (unsigned long p)
13212 *(int *) (p + 0x678) = 42;
13214 int main ()
13216 void *p;
13217 struct sigaction action;
13218 /* Preparations. */
13219 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13220 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
13221 #endif
13222 /* Setup some mmaped memory. */
13223 #ifdef __hpux
13224 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13225 freedom about the address range. */
13226 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13227 #else
13228 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13229 #endif
13230 if (p == (void *)(-1))
13231 exit (2);
13232 page = (unsigned long) p;
13233 /* Make it read-only. */
13234 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13235 exit (2);
13236 /* Install the SIGSEGV handler. */
13237 sigemptyset(&action.sa_mask);
13238 action.sa_sigaction = &sigsegv_handler;
13239 action.sa_flags = SA_SIGINFO;
13240 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13241 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13242 /* The first write access should invoke the handler and then complete. */
13243 crasher (page);
13244 /* The second write access should not invoke the handler. */
13245 crasher (page);
13246 /* Check that the handler was called only once. */
13247 if (handler_called != 1)
13248 exit (1);
13249 /* Test passed! */
13250 return 0;
13252 _ACEOF
13253 rm -f conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13260 $as_echo "$ac_try_echo") >&5
13261 (eval "$ac_link") 2>&5
13262 ac_status=$?
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270 $as_echo "$ac_try_echo") >&5
13271 (eval "$ac_try") 2>&5
13272 ac_status=$?
13273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 sv_cv_fault_linux_hppa=yes
13276 else
13277 $as_echo "$as_me: program exited with status $ac_status" >&5
13278 $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ( exit $ac_status )
13282 sv_cv_fault_linux_hppa=no
13284 rm -rf conftest.dSYM
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13291 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_linux_hppa" >&5
13292 $as_echo "$sv_cv_fault_linux_hppa" >&6; }
13299 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to BSD works" >&5
13300 $as_echo_n "checking whether a fault handler according to BSD works... " >&6; }
13301 if test "${sv_cv_fault_bsd+set}" = set; then
13302 $as_echo_n "(cached) " >&6
13303 else
13305 if test "$cross_compiling" = yes; then
13306 case "$host" in
13307 i?86-*-freebsd[4-9]*) sv_cv_fault_bsd=yes ;;
13309 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h. */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13317 #include <signal.h>
13319 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
13321 void *fault_address = (void *) (addr);
13325 main ()
13327 struct sigaction action;
13330 return 0;
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341 (eval "$ac_link") 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest$ac_exeext && {
13351 test "$cross_compiling" = yes ||
13352 $as_test_x conftest$ac_exeext
13353 }; then
13354 sv_cv_fault_bsd="guessing no"
13355 else
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13359 sv_cv_fault_bsd=no
13362 rm -rf conftest.dSYM
13363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364 conftest$ac_exeext conftest.$ac_ext
13366 esac
13368 else
13369 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 #include <stdlib.h>
13378 #include <signal.h>
13379 #if HAVE_SYS_SIGNAL_H
13380 # include <sys/signal.h>
13381 #endif
13383 #include <sys/types.h>
13384 #include <sys/mman.h>
13385 #if HAVE_MMAP_DEVZERO
13386 # include <fcntl.h>
13387 # ifndef MAP_FILE
13388 # define MAP_FILE 0
13389 # endif
13390 #endif
13391 #ifndef PROT_NONE
13392 # define PROT_NONE 0
13393 #endif
13394 #if HAVE_MMAP_ANON
13395 # define zero_fd -1
13396 # define map_flags MAP_ANON | MAP_PRIVATE
13397 #elif HAVE_MMAP_ANONYMOUS
13398 # define zero_fd -1
13399 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13400 #elif HAVE_MMAP_DEVZERO
13401 static int zero_fd;
13402 # define map_flags MAP_FILE | MAP_PRIVATE
13403 #endif
13404 unsigned long page;
13405 int handler_called = 0;
13406 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
13408 void *fault_address = (void *) (addr);
13409 handler_called++;
13410 if (handler_called == 10)
13411 exit (4);
13412 if (fault_address != (void*)(page + 0x678))
13413 exit (3);
13414 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13415 exit (2);
13417 void crasher (unsigned long p)
13419 *(int *) (p + 0x678) = 42;
13421 int main ()
13423 void *p;
13424 struct sigaction action;
13425 /* Preparations. */
13426 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13427 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
13428 #endif
13429 /* Setup some mmaped memory. */
13430 #ifdef __hpux
13431 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13432 freedom about the address range. */
13433 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13434 #else
13435 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13436 #endif
13437 if (p == (void *)(-1))
13438 exit (2);
13439 page = (unsigned long) p;
13440 /* Make it read-only. */
13441 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13442 exit (2);
13443 /* Install the SIGSEGV handler. */
13444 sigemptyset(&action.sa_mask);
13446 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13447 action.sa_flags = 0;
13449 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13450 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13451 /* The first write access should invoke the handler and then complete. */
13452 crasher (page);
13453 /* The second write access should not invoke the handler. */
13454 crasher (page);
13455 /* Check that the handler was called only once. */
13456 if (handler_called != 1)
13457 exit (1);
13458 /* Test passed! */
13459 return 0;
13461 _ACEOF
13462 rm -f conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467 esac
13468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13469 $as_echo "$ac_try_echo") >&5
13470 (eval "$ac_link") 2>&5
13471 ac_status=$?
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13474 { (case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13477 esac
13478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13479 $as_echo "$ac_try_echo") >&5
13480 (eval "$ac_try") 2>&5
13481 ac_status=$?
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 sv_cv_fault_bsd=yes
13485 else
13486 $as_echo "$as_me: program exited with status $ac_status" >&5
13487 $as_echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ( exit $ac_status )
13491 sv_cv_fault_bsd=no
13493 rm -rf conftest.dSYM
13494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13500 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_bsd" >&5
13501 $as_echo "$sv_cv_fault_bsd" >&6; }
13508 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to IRIX works" >&5
13509 $as_echo_n "checking whether a fault handler according to IRIX works... " >&6; }
13510 if test "${sv_cv_fault_irix+set}" = set; then
13511 $as_echo_n "(cached) " >&6
13512 else
13514 if test "$cross_compiling" = yes; then
13515 case "$host" in
13516 mips-sgi-irix6*) sv_cv_fault_irix=yes ;;
13518 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13526 #include <signal.h>
13528 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13530 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
13534 main ()
13536 struct sigaction action;
13539 return 0;
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13549 $as_echo "$ac_try_echo") >&5
13550 (eval "$ac_link") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest$ac_exeext && {
13560 test "$cross_compiling" = yes ||
13561 $as_test_x conftest$ac_exeext
13562 }; then
13563 sv_cv_fault_irix="guessing no"
13564 else
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 sv_cv_fault_irix=no
13571 rm -rf conftest.dSYM
13572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13573 conftest$ac_exeext conftest.$ac_ext
13575 esac
13577 else
13578 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 #include <stdlib.h>
13587 #include <signal.h>
13588 #if HAVE_SYS_SIGNAL_H
13589 # include <sys/signal.h>
13590 #endif
13592 #include <sys/types.h>
13593 #include <sys/mman.h>
13594 #if HAVE_MMAP_DEVZERO
13595 # include <fcntl.h>
13596 # ifndef MAP_FILE
13597 # define MAP_FILE 0
13598 # endif
13599 #endif
13600 #ifndef PROT_NONE
13601 # define PROT_NONE 0
13602 #endif
13603 #if HAVE_MMAP_ANON
13604 # define zero_fd -1
13605 # define map_flags MAP_ANON | MAP_PRIVATE
13606 #elif HAVE_MMAP_ANONYMOUS
13607 # define zero_fd -1
13608 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13609 #elif HAVE_MMAP_DEVZERO
13610 static int zero_fd;
13611 # define map_flags MAP_FILE | MAP_PRIVATE
13612 #endif
13613 unsigned long page;
13614 int handler_called = 0;
13615 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13617 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
13618 handler_called++;
13619 if (handler_called == 10)
13620 exit (4);
13621 if (fault_address != (void*)(page + 0x678))
13622 exit (3);
13623 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13624 exit (2);
13626 void crasher (unsigned long p)
13628 *(int *) (p + 0x678) = 42;
13630 int main ()
13632 void *p;
13633 struct sigaction action;
13634 /* Preparations. */
13635 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13636 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
13637 #endif
13638 /* Setup some mmaped memory. */
13639 #ifdef __hpux
13640 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13641 freedom about the address range. */
13642 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13643 #else
13644 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13645 #endif
13646 if (p == (void *)(-1))
13647 exit (2);
13648 page = (unsigned long) p;
13649 /* Make it read-only. */
13650 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13651 exit (2);
13652 /* Install the SIGSEGV handler. */
13653 sigemptyset(&action.sa_mask);
13655 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13656 action.sa_flags = 0;
13658 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13659 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13660 /* The first write access should invoke the handler and then complete. */
13661 crasher (page);
13662 /* The second write access should not invoke the handler. */
13663 crasher (page);
13664 /* Check that the handler was called only once. */
13665 if (handler_called != 1)
13666 exit (1);
13667 /* Test passed! */
13668 return 0;
13670 _ACEOF
13671 rm -f conftest$ac_exeext
13672 if { (ac_try="$ac_link"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_link") 2>&5
13680 ac_status=$?
13681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13683 { (case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_try") 2>&5
13690 ac_status=$?
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 sv_cv_fault_irix=yes
13694 else
13695 $as_echo "$as_me: program exited with status $ac_status" >&5
13696 $as_echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ( exit $ac_status )
13700 sv_cv_fault_irix=no
13702 rm -rf conftest.dSYM
13703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13709 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_irix" >&5
13710 $as_echo "$sv_cv_fault_irix" >&6; }
13717 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to HP-UX HPPA works" >&5
13718 $as_echo_n "checking whether a fault handler according to HP-UX HPPA works... " >&6; }
13719 if test "${sv_cv_fault_hpux_hppa+set}" = set; then
13720 $as_echo_n "(cached) " >&6
13721 else
13723 if test "$cross_compiling" = yes; then
13724 case "$host" in
13725 hppa*-*-hpux11*) sv_cv_fault_hpux_hppa=yes ;;
13727 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h. */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 #include <signal.h>
13737 #define USE_64BIT_REGS(mc) \
13738 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
13739 #define GET_CR21(mc) \
13740 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
13742 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13744 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
13748 main ()
13750 struct sigaction action;
13753 return 0;
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (ac_try="$ac_link"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761 esac
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764 (eval "$ac_link") 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && {
13771 test -z "$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 } && test -s conftest$ac_exeext && {
13774 test "$cross_compiling" = yes ||
13775 $as_test_x conftest$ac_exeext
13776 }; then
13777 sv_cv_fault_hpux_hppa="guessing no"
13778 else
13779 $as_echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 sv_cv_fault_hpux_hppa=no
13785 rm -rf conftest.dSYM
13786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13787 conftest$ac_exeext conftest.$ac_ext
13789 esac
13791 else
13792 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13800 #include <stdlib.h>
13801 #include <signal.h>
13802 #if HAVE_SYS_SIGNAL_H
13803 # include <sys/signal.h>
13804 #endif
13806 #define USE_64BIT_REGS(mc) \
13807 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
13808 #define GET_CR21(mc) \
13809 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
13811 #include <sys/types.h>
13812 #include <sys/mman.h>
13813 #if HAVE_MMAP_DEVZERO
13814 # include <fcntl.h>
13815 # ifndef MAP_FILE
13816 # define MAP_FILE 0
13817 # endif
13818 #endif
13819 #ifndef PROT_NONE
13820 # define PROT_NONE 0
13821 #endif
13822 #if HAVE_MMAP_ANON
13823 # define zero_fd -1
13824 # define map_flags MAP_ANON | MAP_PRIVATE
13825 #elif HAVE_MMAP_ANONYMOUS
13826 # define zero_fd -1
13827 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
13828 #elif HAVE_MMAP_DEVZERO
13829 static int zero_fd;
13830 # define map_flags MAP_FILE | MAP_PRIVATE
13831 #endif
13832 unsigned long page;
13833 int handler_called = 0;
13834 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13836 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
13837 handler_called++;
13838 if (handler_called == 10)
13839 exit (4);
13840 if (fault_address != (void*)(page + 0x678))
13841 exit (3);
13842 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
13843 exit (2);
13845 void crasher (unsigned long p)
13847 *(int *) (p + 0x678) = 42;
13849 int main ()
13851 void *p;
13852 struct sigaction action;
13853 /* Preparations. */
13854 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
13855 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
13856 #endif
13857 /* Setup some mmaped memory. */
13858 #ifdef __hpux
13859 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
13860 freedom about the address range. */
13861 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13862 #else
13863 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
13864 #endif
13865 if (p == (void *)(-1))
13866 exit (2);
13867 page = (unsigned long) p;
13868 /* Make it read-only. */
13869 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
13870 exit (2);
13871 /* Install the SIGSEGV handler. */
13872 sigemptyset(&action.sa_mask);
13874 action.sa_handler = (void (*) (int)) &sigsegv_handler;
13875 action.sa_flags = 0;
13877 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
13878 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
13879 /* The first write access should invoke the handler and then complete. */
13880 crasher (page);
13881 /* The second write access should not invoke the handler. */
13882 crasher (page);
13883 /* Check that the handler was called only once. */
13884 if (handler_called != 1)
13885 exit (1);
13886 /* Test passed! */
13887 return 0;
13889 _ACEOF
13890 rm -f conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_link") 2>&5
13899 ac_status=$?
13900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13907 $as_echo "$ac_try_echo") >&5
13908 (eval "$ac_try") 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 sv_cv_fault_hpux_hppa=yes
13913 else
13914 $as_echo "$as_me: program exited with status $ac_status" >&5
13915 $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ( exit $ac_status )
13919 sv_cv_fault_hpux_hppa=no
13921 rm -rf conftest.dSYM
13922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13928 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_hpux_hppa" >&5
13929 $as_echo "$sv_cv_fault_hpux_hppa" >&6; }
13936 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to OSF/1 Alpha works" >&5
13937 $as_echo_n "checking whether a fault handler according to OSF/1 Alpha works... " >&6; }
13938 if test "${sv_cv_fault_osf_alpha+set}" = set; then
13939 $as_echo_n "(cached) " >&6
13940 else
13942 if test "$cross_compiling" = yes; then
13943 case "$host" in
13944 alpha*-*-osf[4-9]* | alpha*-*-linux2.[4-9]*) sv_cv_fault_osf_alpha=yes ;;
13946 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13954 #include <signal.h>
13956 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
13958 void *fault_address = (void *) (scp->sc_traparg_a0);
13962 main ()
13964 struct sigaction action;
13967 return 0;
13969 _ACEOF
13970 rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (ac_try="$ac_link"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13975 esac
13976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13977 $as_echo "$ac_try_echo") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest$ac_exeext && {
13988 test "$cross_compiling" = yes ||
13989 $as_test_x conftest$ac_exeext
13990 }; then
13991 sv_cv_fault_osf_alpha="guessing no"
13992 else
13993 $as_echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 sv_cv_fault_osf_alpha=no
13999 rm -rf conftest.dSYM
14000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14001 conftest$ac_exeext conftest.$ac_ext
14003 esac
14005 else
14006 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 #include <stdlib.h>
14015 #include <signal.h>
14016 #if HAVE_SYS_SIGNAL_H
14017 # include <sys/signal.h>
14018 #endif
14020 #include <sys/types.h>
14021 #include <sys/mman.h>
14022 #if HAVE_MMAP_DEVZERO
14023 # include <fcntl.h>
14024 # ifndef MAP_FILE
14025 # define MAP_FILE 0
14026 # endif
14027 #endif
14028 #ifndef PROT_NONE
14029 # define PROT_NONE 0
14030 #endif
14031 #if HAVE_MMAP_ANON
14032 # define zero_fd -1
14033 # define map_flags MAP_ANON | MAP_PRIVATE
14034 #elif HAVE_MMAP_ANONYMOUS
14035 # define zero_fd -1
14036 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14037 #elif HAVE_MMAP_DEVZERO
14038 static int zero_fd;
14039 # define map_flags MAP_FILE | MAP_PRIVATE
14040 #endif
14041 unsigned long page;
14042 int handler_called = 0;
14043 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14045 void *fault_address = (void *) (scp->sc_traparg_a0);
14046 handler_called++;
14047 if (handler_called == 10)
14048 exit (4);
14049 if (fault_address != (void*)(page + 0x678))
14050 exit (3);
14051 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14052 exit (2);
14054 void crasher (unsigned long p)
14056 *(int *) (p + 0x678) = 42;
14058 int main ()
14060 void *p;
14061 struct sigaction action;
14062 /* Preparations. */
14063 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14064 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
14065 #endif
14066 /* Setup some mmaped memory. */
14067 #ifdef __hpux
14068 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14069 freedom about the address range. */
14070 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14071 #else
14072 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14073 #endif
14074 if (p == (void *)(-1))
14075 exit (2);
14076 page = (unsigned long) p;
14077 /* Make it read-only. */
14078 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14079 exit (2);
14080 /* Install the SIGSEGV handler. */
14081 sigemptyset(&action.sa_mask);
14083 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14084 action.sa_flags = 0;
14086 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14087 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14088 /* The first write access should invoke the handler and then complete. */
14089 crasher (page);
14090 /* The second write access should not invoke the handler. */
14091 crasher (page);
14092 /* Check that the handler was called only once. */
14093 if (handler_called != 1)
14094 exit (1);
14095 /* Test passed! */
14096 return 0;
14098 _ACEOF
14099 rm -f conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104 esac
14105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14106 $as_echo "$ac_try_echo") >&5
14107 (eval "$ac_link") 2>&5
14108 ac_status=$?
14109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114 esac
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_try") 2>&5
14118 ac_status=$?
14119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 sv_cv_fault_osf_alpha=yes
14122 else
14123 $as_echo "$as_me: program exited with status $ac_status" >&5
14124 $as_echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ( exit $ac_status )
14128 sv_cv_fault_osf_alpha=no
14130 rm -rf conftest.dSYM
14131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14137 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_osf_alpha" >&5
14138 $as_echo "$sv_cv_fault_osf_alpha" >&6; }
14145 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to NetBSD Alpha works" >&5
14146 $as_echo_n "checking whether a fault handler according to NetBSD Alpha works... " >&6; }
14147 if test "${sv_cv_fault_netbsd_alpha+set}" = set; then
14148 $as_echo_n "(cached) " >&6
14149 else
14151 if test "$cross_compiling" = yes; then
14152 case "$host" in
14153 alpha*-*-osf[4-9]* | alpha-*-*bsd*) sv_cv_fault_netbsd_alpha=yes ;;
14155 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 #include <signal.h>
14164 #include "$srcdir/src/fault-netbsd-alpha.c"
14165 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14167 void *fault_address = (void *) (get_fault_addr (scp));
14171 main ()
14173 struct sigaction action;
14176 return 0;
14178 _ACEOF
14179 rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14186 $as_echo "$ac_try_echo") >&5
14187 (eval "$ac_link") 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest$ac_exeext && {
14197 test "$cross_compiling" = yes ||
14198 $as_test_x conftest$ac_exeext
14199 }; then
14200 sv_cv_fault_netbsd_alpha="guessing no"
14201 else
14202 $as_echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 sv_cv_fault_netbsd_alpha=no
14208 rm -rf conftest.dSYM
14209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14210 conftest$ac_exeext conftest.$ac_ext
14212 esac
14214 else
14215 cat >conftest.$ac_ext <<_ACEOF
14217 /* confdefs.h. */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 #include <stdlib.h>
14224 #include <signal.h>
14225 #if HAVE_SYS_SIGNAL_H
14226 # include <sys/signal.h>
14227 #endif
14228 #include "$srcdir/src/fault-netbsd-alpha.c"
14229 #include <sys/types.h>
14230 #include <sys/mman.h>
14231 #if HAVE_MMAP_DEVZERO
14232 # include <fcntl.h>
14233 # ifndef MAP_FILE
14234 # define MAP_FILE 0
14235 # endif
14236 #endif
14237 #ifndef PROT_NONE
14238 # define PROT_NONE 0
14239 #endif
14240 #if HAVE_MMAP_ANON
14241 # define zero_fd -1
14242 # define map_flags MAP_ANON | MAP_PRIVATE
14243 #elif HAVE_MMAP_ANONYMOUS
14244 # define zero_fd -1
14245 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14246 #elif HAVE_MMAP_DEVZERO
14247 static int zero_fd;
14248 # define map_flags MAP_FILE | MAP_PRIVATE
14249 #endif
14250 unsigned long page;
14251 int handler_called = 0;
14252 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14254 void *fault_address = (void *) (get_fault_addr (scp));
14255 handler_called++;
14256 if (handler_called == 10)
14257 exit (4);
14258 if (fault_address != (void*)(page + 0x678))
14259 exit (3);
14260 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14261 exit (2);
14263 void crasher (unsigned long p)
14265 *(int *) (p + 0x678) = 42;
14267 int main ()
14269 void *p;
14270 struct sigaction action;
14271 /* Preparations. */
14272 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14273 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
14274 #endif
14275 /* Setup some mmaped memory. */
14276 #ifdef __hpux
14277 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14278 freedom about the address range. */
14279 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14280 #else
14281 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14282 #endif
14283 if (p == (void *)(-1))
14284 exit (2);
14285 page = (unsigned long) p;
14286 /* Make it read-only. */
14287 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14288 exit (2);
14289 /* Install the SIGSEGV handler. */
14290 sigemptyset(&action.sa_mask);
14292 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14293 action.sa_flags = 0;
14295 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14296 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14297 /* The first write access should invoke the handler and then complete. */
14298 crasher (page);
14299 /* The second write access should not invoke the handler. */
14300 crasher (page);
14301 /* Check that the handler was called only once. */
14302 if (handler_called != 1)
14303 exit (1);
14304 /* Test passed! */
14305 return 0;
14307 _ACEOF
14308 rm -f conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313 esac
14314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_link") 2>&5
14317 ac_status=$?
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323 esac
14324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14325 $as_echo "$ac_try_echo") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 sv_cv_fault_netbsd_alpha=yes
14331 else
14332 $as_echo "$as_me: program exited with status $ac_status" >&5
14333 $as_echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ( exit $ac_status )
14337 sv_cv_fault_netbsd_alpha=no
14339 rm -rf conftest.dSYM
14340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14346 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_netbsd_alpha" >&5
14347 $as_echo "$sv_cv_fault_netbsd_alpha" >&6; }
14354 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to AIX works" >&5
14355 $as_echo_n "checking whether a fault handler according to AIX works... " >&6; }
14356 if test "${sv_cv_fault_aix+set}" = set; then
14357 $as_echo_n "(cached) " >&6
14358 else
14360 if test "$cross_compiling" = yes; then
14361 case "$host" in
14362 *-*-aix[34]*) sv_cv_fault_aix=yes ;;
14364 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14372 #include <signal.h>
14374 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14376 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
14380 main ()
14382 struct sigaction action;
14385 return 0;
14387 _ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14395 $as_echo "$ac_try_echo") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext && {
14406 test "$cross_compiling" = yes ||
14407 $as_test_x conftest$ac_exeext
14408 }; then
14409 sv_cv_fault_aix="guessing no"
14410 else
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 sv_cv_fault_aix=no
14417 rm -rf conftest.dSYM
14418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14419 conftest$ac_exeext conftest.$ac_ext
14421 esac
14423 else
14424 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14432 #include <stdlib.h>
14433 #include <signal.h>
14434 #if HAVE_SYS_SIGNAL_H
14435 # include <sys/signal.h>
14436 #endif
14438 #include <sys/types.h>
14439 #include <sys/mman.h>
14440 #if HAVE_MMAP_DEVZERO
14441 # include <fcntl.h>
14442 # ifndef MAP_FILE
14443 # define MAP_FILE 0
14444 # endif
14445 #endif
14446 #ifndef PROT_NONE
14447 # define PROT_NONE 0
14448 #endif
14449 #if HAVE_MMAP_ANON
14450 # define zero_fd -1
14451 # define map_flags MAP_ANON | MAP_PRIVATE
14452 #elif HAVE_MMAP_ANONYMOUS
14453 # define zero_fd -1
14454 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14455 #elif HAVE_MMAP_DEVZERO
14456 static int zero_fd;
14457 # define map_flags MAP_FILE | MAP_PRIVATE
14458 #endif
14459 unsigned long page;
14460 int handler_called = 0;
14461 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14463 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
14464 handler_called++;
14465 if (handler_called == 10)
14466 exit (4);
14467 if (fault_address != (void*)(page + 0x678))
14468 exit (3);
14469 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14470 exit (2);
14472 void crasher (unsigned long p)
14474 *(int *) (p + 0x678) = 42;
14476 int main ()
14478 void *p;
14479 struct sigaction action;
14480 /* Preparations. */
14481 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14482 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
14483 #endif
14484 /* Setup some mmaped memory. */
14485 #ifdef __hpux
14486 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14487 freedom about the address range. */
14488 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14489 #else
14490 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14491 #endif
14492 if (p == (void *)(-1))
14493 exit (2);
14494 page = (unsigned long) p;
14495 /* Make it read-only. */
14496 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14497 exit (2);
14498 /* Install the SIGSEGV handler. */
14499 sigemptyset(&action.sa_mask);
14501 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14502 action.sa_flags = 0;
14504 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14505 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14506 /* The first write access should invoke the handler and then complete. */
14507 crasher (page);
14508 /* The second write access should not invoke the handler. */
14509 crasher (page);
14510 /* Check that the handler was called only once. */
14511 if (handler_called != 1)
14512 exit (1);
14513 /* Test passed! */
14514 return 0;
14516 _ACEOF
14517 rm -f conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_link") 2>&5
14526 ac_status=$?
14527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534 $as_echo "$ac_try_echo") >&5
14535 (eval "$ac_try") 2>&5
14536 ac_status=$?
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 sv_cv_fault_aix=yes
14540 else
14541 $as_echo "$as_me: program exited with status $ac_status" >&5
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ( exit $ac_status )
14546 sv_cv_fault_aix=no
14548 rm -rf conftest.dSYM
14549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_aix" >&5
14556 $as_echo "$sv_cv_fault_aix" >&6; }
14563 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX/Darwin7 PowerPC works" >&5
14564 $as_echo_n "checking whether a fault handler according to MacOSX/Darwin7 PowerPC works... " >&6; }
14565 if test "${sv_cv_fault_macosdarwin7_ppc+set}" = set; then
14566 $as_echo_n "(cached) " >&6
14567 else
14569 if test "$cross_compiling" = yes; then
14570 case "$host" in
14571 powerpc-*-darwin7*) sv_cv_fault_macosdarwin7_ppc=yes ;;
14573 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h. */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 #include <signal.h>
14582 #include "$srcdir/src/fault-macosdarwin7-powerpc.c"
14583 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
14585 void *fault_address = (void *) (get_fault_addr (sip, ucp));
14589 main ()
14591 struct sigaction action;
14592 action.sa_sigaction = &sigsegv_handler;
14593 action.sa_flags = SA_SIGINFO;
14595 return 0;
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (ac_try="$ac_link"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603 esac
14604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14605 $as_echo "$ac_try_echo") >&5
14606 (eval "$ac_link") 2>conftest.er1
14607 ac_status=$?
14608 grep -v '^ *+' conftest.er1 >conftest.err
14609 rm -f conftest.er1
14610 cat conftest.err >&5
14611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest$ac_exeext && {
14616 test "$cross_compiling" = yes ||
14617 $as_test_x conftest$ac_exeext
14618 }; then
14619 sv_cv_fault_macosdarwin7_ppc="guessing no"
14620 else
14621 $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 sv_cv_fault_macosdarwin7_ppc=no
14627 rm -rf conftest.dSYM
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629 conftest$ac_exeext conftest.$ac_ext
14631 esac
14633 else
14634 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14642 #include <stdlib.h>
14643 #include <signal.h>
14644 #if HAVE_SYS_SIGNAL_H
14645 # include <sys/signal.h>
14646 #endif
14647 #include "$srcdir/src/fault-macosdarwin7-powerpc.c"
14648 #include <sys/types.h>
14649 #include <sys/mman.h>
14650 #if HAVE_MMAP_DEVZERO
14651 # include <fcntl.h>
14652 # ifndef MAP_FILE
14653 # define MAP_FILE 0
14654 # endif
14655 #endif
14656 #ifndef PROT_NONE
14657 # define PROT_NONE 0
14658 #endif
14659 #if HAVE_MMAP_ANON
14660 # define zero_fd -1
14661 # define map_flags MAP_ANON | MAP_PRIVATE
14662 #elif HAVE_MMAP_ANONYMOUS
14663 # define zero_fd -1
14664 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14665 #elif HAVE_MMAP_DEVZERO
14666 static int zero_fd;
14667 # define map_flags MAP_FILE | MAP_PRIVATE
14668 #endif
14669 unsigned long page;
14670 int handler_called = 0;
14671 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
14673 void *fault_address = (void *) (get_fault_addr (sip, ucp));
14674 handler_called++;
14675 if (handler_called == 10)
14676 exit (4);
14677 if (fault_address != (void*)(page + 0x678))
14678 exit (3);
14679 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14680 exit (2);
14682 void crasher (unsigned long p)
14684 *(int *) (p + 0x678) = 42;
14686 int main ()
14688 void *p;
14689 struct sigaction action;
14690 /* Preparations. */
14691 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14692 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
14693 #endif
14694 /* Setup some mmaped memory. */
14695 #ifdef __hpux
14696 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14697 freedom about the address range. */
14698 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14699 #else
14700 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14701 #endif
14702 if (p == (void *)(-1))
14703 exit (2);
14704 page = (unsigned long) p;
14705 /* Make it read-only. */
14706 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14707 exit (2);
14708 /* Install the SIGSEGV handler. */
14709 sigemptyset(&action.sa_mask);
14710 action.sa_sigaction = &sigsegv_handler;
14711 action.sa_flags = SA_SIGINFO;
14712 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14713 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14714 /* The first write access should invoke the handler and then complete. */
14715 crasher (page);
14716 /* The second write access should not invoke the handler. */
14717 crasher (page);
14718 /* Check that the handler was called only once. */
14719 if (handler_called != 1)
14720 exit (1);
14721 /* Test passed! */
14722 return 0;
14724 _ACEOF
14725 rm -f conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_link") 2>&5
14734 ac_status=$?
14735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740 esac
14741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14742 $as_echo "$ac_try_echo") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 sv_cv_fault_macosdarwin7_ppc=yes
14748 else
14749 $as_echo "$as_me: program exited with status $ac_status" >&5
14750 $as_echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ( exit $ac_status )
14754 sv_cv_fault_macosdarwin7_ppc=no
14756 rm -rf conftest.dSYM
14757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_macosdarwin7_ppc" >&5
14764 $as_echo "$sv_cv_fault_macosdarwin7_ppc" >&6; }
14767 if test "$sv_cv_fault_macosdarwin7_ppc" != yes; then
14772 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX/Darwin5 PowerPC works" >&5
14773 $as_echo_n "checking whether a fault handler according to MacOSX/Darwin5 PowerPC works... " >&6; }
14774 if test "${sv_cv_fault_macosdarwin5_ppc+set}" = set; then
14775 $as_echo_n "(cached) " >&6
14776 else
14778 if test "$cross_compiling" = yes; then
14779 case "$host" in
14780 powerpc-*-darwin5*) sv_cv_fault_macosdarwin5_ppc=yes ;;
14782 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14790 #include <signal.h>
14791 #include "$srcdir/src/fault-macosdarwin5-powerpc.c"
14792 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14794 void *fault_address = (void *) (get_fault_addr (scp));
14798 main ()
14800 struct sigaction action;
14803 return 0;
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811 esac
14812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14813 $as_echo "$ac_try_echo") >&5
14814 (eval "$ac_link") 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } && {
14821 test -z "$ac_c_werror_flag" ||
14822 test ! -s conftest.err
14823 } && test -s conftest$ac_exeext && {
14824 test "$cross_compiling" = yes ||
14825 $as_test_x conftest$ac_exeext
14826 }; then
14827 sv_cv_fault_macosdarwin5_ppc="guessing no"
14828 else
14829 $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 sv_cv_fault_macosdarwin5_ppc=no
14835 rm -rf conftest.dSYM
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14839 esac
14841 else
14842 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 #include <stdlib.h>
14851 #include <signal.h>
14852 #if HAVE_SYS_SIGNAL_H
14853 # include <sys/signal.h>
14854 #endif
14855 #include "$srcdir/src/fault-macosdarwin5-powerpc.c"
14856 #include <sys/types.h>
14857 #include <sys/mman.h>
14858 #if HAVE_MMAP_DEVZERO
14859 # include <fcntl.h>
14860 # ifndef MAP_FILE
14861 # define MAP_FILE 0
14862 # endif
14863 #endif
14864 #ifndef PROT_NONE
14865 # define PROT_NONE 0
14866 #endif
14867 #if HAVE_MMAP_ANON
14868 # define zero_fd -1
14869 # define map_flags MAP_ANON | MAP_PRIVATE
14870 #elif HAVE_MMAP_ANONYMOUS
14871 # define zero_fd -1
14872 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
14873 #elif HAVE_MMAP_DEVZERO
14874 static int zero_fd;
14875 # define map_flags MAP_FILE | MAP_PRIVATE
14876 #endif
14877 unsigned long page;
14878 int handler_called = 0;
14879 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
14881 void *fault_address = (void *) (get_fault_addr (scp));
14882 handler_called++;
14883 if (handler_called == 10)
14884 exit (4);
14885 if (fault_address != (void*)(page + 0x678))
14886 exit (3);
14887 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
14888 exit (2);
14890 void crasher (unsigned long p)
14892 *(int *) (p + 0x678) = 42;
14894 int main ()
14896 void *p;
14897 struct sigaction action;
14898 /* Preparations. */
14899 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
14900 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
14901 #endif
14902 /* Setup some mmaped memory. */
14903 #ifdef __hpux
14904 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
14905 freedom about the address range. */
14906 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14907 #else
14908 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
14909 #endif
14910 if (p == (void *)(-1))
14911 exit (2);
14912 page = (unsigned long) p;
14913 /* Make it read-only. */
14914 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
14915 exit (2);
14916 /* Install the SIGSEGV handler. */
14917 sigemptyset(&action.sa_mask);
14919 action.sa_handler = (void (*) (int)) &sigsegv_handler;
14920 action.sa_flags = 0;
14922 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
14923 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
14924 /* The first write access should invoke the handler and then complete. */
14925 crasher (page);
14926 /* The second write access should not invoke the handler. */
14927 crasher (page);
14928 /* Check that the handler was called only once. */
14929 if (handler_called != 1)
14930 exit (1);
14931 /* Test passed! */
14932 return 0;
14934 _ACEOF
14935 rm -f conftest$ac_exeext
14936 if { (ac_try="$ac_link"
14937 case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14940 esac
14941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14942 $as_echo "$ac_try_echo") >&5
14943 (eval "$ac_link") 2>&5
14944 ac_status=$?
14945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14947 { (case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_try") 2>&5
14954 ac_status=$?
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 sv_cv_fault_macosdarwin5_ppc=yes
14958 else
14959 $as_echo "$as_me: program exited with status $ac_status" >&5
14960 $as_echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ( exit $ac_status )
14964 sv_cv_fault_macosdarwin5_ppc=no
14966 rm -rf conftest.dSYM
14967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_macosdarwin5_ppc" >&5
14974 $as_echo "$sv_cv_fault_macosdarwin5_ppc" >&6; }
14982 { $as_echo "$as_me:$LINENO: checking whether a fault handler according to Hurd works" >&5
14983 $as_echo_n "checking whether a fault handler according to Hurd works... " >&6; }
14984 if test "${sv_cv_fault_hurd+set}" = set; then
14985 $as_echo_n "(cached) " >&6
14986 else
14988 if test "$cross_compiling" = yes; then
14989 case "$host" in
14992 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 #include <signal.h>
15002 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
15004 void *fault_address = (void *) (code);
15008 main ()
15010 struct sigaction action;
15013 return 0;
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15023 $as_echo "$ac_try_echo") >&5
15024 (eval "$ac_link") 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest$ac_exeext && {
15034 test "$cross_compiling" = yes ||
15035 $as_test_x conftest$ac_exeext
15036 }; then
15037 sv_cv_fault_hurd="guessing no"
15038 else
15039 $as_echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 sv_cv_fault_hurd=no
15045 rm -rf conftest.dSYM
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047 conftest$ac_exeext conftest.$ac_ext
15049 esac
15051 else
15052 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15060 #include <stdlib.h>
15061 #include <signal.h>
15062 #if HAVE_SYS_SIGNAL_H
15063 # include <sys/signal.h>
15064 #endif
15066 #include <sys/types.h>
15067 #include <sys/mman.h>
15068 #if HAVE_MMAP_DEVZERO
15069 # include <fcntl.h>
15070 # ifndef MAP_FILE
15071 # define MAP_FILE 0
15072 # endif
15073 #endif
15074 #ifndef PROT_NONE
15075 # define PROT_NONE 0
15076 #endif
15077 #if HAVE_MMAP_ANON
15078 # define zero_fd -1
15079 # define map_flags MAP_ANON | MAP_PRIVATE
15080 #elif HAVE_MMAP_ANONYMOUS
15081 # define zero_fd -1
15082 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
15083 #elif HAVE_MMAP_DEVZERO
15084 static int zero_fd;
15085 # define map_flags MAP_FILE | MAP_PRIVATE
15086 #endif
15087 unsigned long page;
15088 int handler_called = 0;
15089 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
15091 void *fault_address = (void *) (code);
15092 handler_called++;
15093 if (handler_called == 10)
15094 exit (4);
15095 if (fault_address != (void*)(page + 0x678))
15096 exit (3);
15097 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
15098 exit (2);
15100 void crasher (unsigned long p)
15102 *(int *) (p + 0x678) = 42;
15104 int main ()
15106 void *p;
15107 struct sigaction action;
15108 /* Preparations. */
15109 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
15110 zero_fd = open ("/dev/zero", O_RDONLY, 0644);
15111 #endif
15112 /* Setup some mmaped memory. */
15113 #ifdef __hpux
15114 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
15115 freedom about the address range. */
15116 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
15117 #else
15118 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
15119 #endif
15120 if (p == (void *)(-1))
15121 exit (2);
15122 page = (unsigned long) p;
15123 /* Make it read-only. */
15124 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
15125 exit (2);
15126 /* Install the SIGSEGV handler. */
15127 sigemptyset(&action.sa_mask);
15129 action.sa_handler = (void (*) (int)) &sigsegv_handler;
15130 action.sa_flags = 0;
15132 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
15133 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
15134 /* The first write access should invoke the handler and then complete. */
15135 crasher (page);
15136 /* The second write access should not invoke the handler. */
15137 crasher (page);
15138 /* Check that the handler was called only once. */
15139 if (handler_called != 1)
15140 exit (1);
15141 /* Test passed! */
15142 return 0;
15144 _ACEOF
15145 rm -f conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>&5
15154 ac_status=$?
15155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163 (eval "$ac_try") 2>&5
15164 ac_status=$?
15165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 sv_cv_fault_hurd=yes
15168 else
15169 $as_echo "$as_me: program exited with status $ac_status" >&5
15170 $as_echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ( exit $ac_status )
15174 sv_cv_fault_hurd=no
15176 rm -rf conftest.dSYM
15177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15183 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_hurd" >&5
15184 $as_echo "$sv_cv_fault_hurd" >&6; }
15187 # End of MacOS X special casing.
15189 esac
15191 CFG_HANDLER=
15192 CFG_FAULT=
15193 CFG_MACHFAULT=
15194 FAULT_CONTEXT=void
15195 FAULT_CONTEXT_INCLUDE=
15196 if test -z "$CFG_FAULT" && test "$sv_cv_fault_aix" = yes; then
15197 case "$host_cpu" in
15198 powerpc* | rs6000) CFG_FAULT=fault-aix3-powerpc.h ;;
15199 *) CFG_FAULT=fault-aix3.h ;;
15200 esac
15201 FAULT_CONTEXT='struct sigcontext'
15203 if test -z "$CFG_FAULT" && test "$sv_cv_fault_irix" = yes; then
15204 case "$host_cpu" in
15205 mips*) CFG_FAULT=fault-irix-mips.h ;;
15206 *) CFG_FAULT=fault-irix.h ;;
15207 esac
15208 FAULT_CONTEXT='struct sigcontext'
15210 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hpux_hppa" = yes; then
15211 case "$host_cpu" in
15212 hppa* | parisc*) CFG_FAULT=fault-hpux-hppa.h ;;
15213 *) CFG_FAULT=fault-hpux.h ;;
15214 esac
15215 FAULT_CONTEXT='struct sigcontext'
15217 if test -z "$CFG_FAULT" && test "$sv_cv_fault_osf_alpha" = yes; then
15218 case "$host_cpu" in
15219 alpha*) CFG_FAULT=fault-osf-alpha.h ;;
15220 *) CFG_FAULT=fault-osf.h ;;
15221 esac
15222 FAULT_CONTEXT='struct sigcontext'
15224 if test -z "$CFG_FAULT" && test "$sv_cv_fault_netbsd_alpha" = yes; then
15225 case "$host_cpu" in
15226 alpha*) CFG_FAULT=fault-netbsd-alpha.h ;;
15227 esac
15228 FAULT_CONTEXT='struct sigcontext'
15230 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386" = yes; then
15231 case "$host_cpu" in
15232 i?86 | x86_64) CFG_FAULT=fault-linux-i386.h ;;
15233 esac
15234 FAULT_CONTEXT='struct sigcontext'
15236 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386_old" = yes; then
15237 case "$host_cpu" in
15238 i?86 | x86_64) CFG_FAULT=fault-linux-i386-old.h ;;
15239 esac
15240 FAULT_CONTEXT='struct sigcontext'
15242 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_powerpc" = yes; then
15243 case "$host_cpu" in
15244 powerpc* | rs6000) CFG_FAULT=fault-linux-powerpc.h ;;
15245 esac
15246 FAULT_CONTEXT='struct sigcontext'
15248 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_hppa" = yes; then
15249 case "$host_cpu" in
15250 hppa* | parisc*) CFG_FAULT=fault-linux-hppa.h ;;
15251 esac
15253 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hurd" = yes; then
15254 case "$host_os" in
15255 netbsd*) # A false positive.
15258 CFG_FAULT=fault-hurd.h
15259 FAULT_CONTEXT='struct sigcontext'
15261 esac
15263 if test -z "$CFG_FAULT" && test "$sv_cv_fault_bsd" = yes; then
15264 case "$host_os" in
15265 freebsd* | kfreebsd*)
15266 case "$host_cpu" in
15267 i?86 | x86_64)
15268 CFG_FAULT=fault-freebsd-i386.h
15269 FAULT_CONTEXT='struct sigcontext'
15272 CFG_FAULT=fault-bsd.h
15273 FAULT_CONTEXT='void'
15275 esac
15278 CFG_FAULT=fault-bsd.h
15279 FAULT_CONTEXT='void'
15281 esac
15283 if test -z "$CFG_FAULT" && test "$sv_cv_fault_posix" = yes; then
15284 case "$host_os" in
15285 openbsd*)
15286 case "$host_cpu" in
15287 i?86 | x86_64) CFG_FAULT=fault-openbsd-i386.h ;;
15288 *) CFG_FAULT=fault-openbsd.h ;;
15289 esac
15290 FAULT_CONTEXT='struct sigcontext'
15292 linux*)
15293 case "$host_cpu" in
15294 ia64)
15295 CFG_FAULT=fault-linux-ia64.h
15296 FAULT_CONTEXT='struct sigcontext'
15298 esac
15300 esac
15301 if test -z "$CFG_FAULT"; then
15302 case "$host_os" in
15303 solaris*)
15304 case "$host_cpu" in
15305 i?86 | x86_64) CFG_FAULT=fault-solaris-i386.h ;;
15306 sparc*) CFG_FAULT=fault-solaris-sparc.h ;;
15307 *) CFG_FAULT=fault-solaris.h ;;
15308 esac
15310 aix*)
15311 case "$host_cpu" in
15312 powerpc* | rs6000) CFG_FAULT=fault-aix5-powerpc.h ;;
15313 *) CFG_FAULT=fault-aix5.h ;;
15314 esac
15316 netbsd*)
15317 CFG_FAULT=fault-netbsd.h
15320 CFG_FAULT=fault-posix.h
15322 esac
15323 FAULT_CONTEXT='ucontext_t'
15324 FAULT_CONTEXT_INCLUDE='#include <ucontext.h>'
15327 if test -z "$CFG_FAULT"; then
15328 case "$host_os" in
15329 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15330 case "$host_cpu" in
15331 powerpc* | rs6000 | i?86 | x86_64)
15332 CFG_MACHFAULT=machfault-macos.h
15333 FAULT_CONTEXT_INCLUDE='#include <signal.h>
15334 #include <mach/thread_status.h>
15335 #if defined __ppc64__
15336 #define sigsegv_thread_state_t ppc_thread_state64_t
15337 #elif defined __ppc__
15338 #define sigsegv_thread_state_t ppc_thread_state_t
15339 #endif
15340 #if defined __x86_64__
15341 #define sigsegv_thread_state_t x86_thread_state64_t
15342 #elif defined __i386__
15343 #if defined x86_THREAD_STATE32
15344 #define sigsegv_thread_state_t x86_thread_state32_t
15345 #else
15346 #define sigsegv_thread_state_t i386_thread_state_t
15347 #endif
15348 #endif'
15349 FAULT_CONTEXT='sigsegv_thread_state_t'
15351 esac
15352 if test -n "$CFG_MACHFAULT"; then
15353 CFG_HANDLER=handler-macos.c
15354 CFG_FAULT=fault-macos.h # nonexistent, just a dummy
15357 esac
15359 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_m68k" = yes; then
15360 case "$host_cpu" in
15361 m68*)
15362 CFG_FAULT=fault-linux-m68k.h
15363 FAULT_CONTEXT='struct sigcontext'
15365 esac
15367 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin7_ppc" = yes; then
15368 case "$host_cpu" in
15369 powerpc* | rs6000)
15370 CFG_FAULT=fault-macosdarwin7-powerpc.h
15371 FAULT_CONTEXT='ucontext_t'
15372 FAULT_CONTEXT_INCLUDE='#include <signal.h>
15373 #include <ucontext.h>'
15375 esac
15377 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin5_ppc" = yes; then
15378 case "$host_cpu" in
15379 powerpc* | rs6000)
15380 CFG_FAULT=fault-macosdarwin5-powerpc.h
15381 FAULT_CONTEXT='struct sigcontext'
15383 esac
15385 if test -z "$CFG_FAULT"; then
15386 case "$host_os" in
15387 mingw* | cygwin*)
15388 FAULT_CONTEXT='CONTEXT'
15389 FAULT_CONTEXT_INCLUDE='#include <windows.h>'
15390 CFG_FAULT=fault-win32.h # nonexistent, just a dummy
15392 esac
15394 if test -n "$CFG_FAULT"; then
15395 sv_cv_have_sigsegv_recovery=yes
15396 else
15397 sv_cv_have_sigsegv_recovery=no
15398 case "$host_os" in
15399 linux*)
15400 case "$host_cpu" in
15401 alpha*)
15402 CFG_FAULT=fault-linux-alpha.h
15403 FAULT_CONTEXT='struct sigcontext'
15405 arm* | strongarm* | xscale*)
15406 CFG_FAULT=fault-linux-arm.h
15407 FAULT_CONTEXT='struct sigcontext'
15409 cris)
15410 CFG_FAULT=fault-linux-cris.h
15411 FAULT_CONTEXT='struct sigcontext'
15413 mips*)
15414 CFG_FAULT=fault-linux-mips.h
15415 FAULT_CONTEXT='struct sigcontext'
15417 s390*)
15418 CFG_FAULT=fault-linux-s390.h
15419 FAULT_CONTEXT='struct sigcontext'
15421 sh*)
15422 CFG_FAULT=fault-linux-sh.h
15423 FAULT_CONTEXT='struct sigcontext'
15425 sparc*)
15426 CFG_FAULT=fault-linux-sparc.h
15427 FAULT_CONTEXT='struct sigcontext'
15429 x86_64)
15430 CFG_FAULT=fault-linux-x86_64.h
15431 FAULT_CONTEXT='struct sigcontext'
15433 esac
15435 beos*)
15436 case "$host_cpu" in
15437 i?86 | x86_64) CFG_FAULT=fault-beos-i386.h ;;
15438 *) CFG_FAULT=fault-beos.h ;;
15439 esac
15440 FAULT_CONTEXT='struct vregs'
15442 macos* | darwin*)
15443 case "$host_cpu" in
15444 i?86 | x86_64) CFG_FAULT=fault-macos-i386.h ;;
15445 esac
15446 FAULT_CONTEXT='struct sigcontext'
15448 esac
15450 { $as_echo "$as_me:$LINENO: checking for the fault handler specifics" >&5
15451 $as_echo_n "checking for the fault handler specifics... " >&6; }
15452 if test -n "$CFG_FAULT"; then
15453 sv_cv_fault_include=$CFG_FAULT
15454 else
15455 if test -n "$CFG_MACHFAULT"; then
15456 sv_cv_fault_include=$CFG_MACHFAULT
15457 else
15458 sv_cv_fault_include=none
15461 { $as_echo "$as_me:$LINENO: result: $sv_cv_fault_include" >&5
15462 $as_echo "$sv_cv_fault_include" >&6; }
15463 if test -z "$CFG_FAULT"; then
15464 CFG_FAULT=fault-none.h
15467 cat >>confdefs.h <<_ACEOF
15468 #define CFG_FAULT "$CFG_FAULT"
15469 _ACEOF
15471 if test -z "$CFG_MACHFAULT"; then
15472 CFG_MACHFAULT=fault-none.h
15475 cat >>confdefs.h <<_ACEOF
15476 #define CFG_MACHFAULT "$CFG_MACHFAULT"
15477 _ACEOF
15482 { $as_echo "$as_me:$LINENO: checking if the system supports catching SIGSEGV" >&5
15483 $as_echo_n "checking if the system supports catching SIGSEGV... " >&6; }
15484 { $as_echo "$as_me:$LINENO: result: $sv_cv_have_sigsegv_recovery" >&5
15485 $as_echo "$sv_cv_have_sigsegv_recovery" >&6; }
15486 if test $sv_cv_have_sigsegv_recovery != no; then
15487 HAVE_SIGSEGV_RECOVERY=1
15488 else
15489 HAVE_SIGSEGV_RECOVERY=0
15494 { $as_echo "$as_me:$LINENO: checking for stack direction" >&5
15495 $as_echo_n "checking for stack direction... " >&6; }
15496 if test "${sv_cv_stack_direction_msg+set}" = set; then
15497 $as_echo_n "(cached) " >&6
15498 else
15500 case "$host_cpu" in
15501 a29k | \
15502 alpha* | \
15503 arc | \
15504 arm* | strongarm* | xscale* | \
15505 avr | \
15506 c1 | c2 | c32 | c34 | c38 | \
15507 clipper | \
15508 cris | \
15509 d30v | \
15510 elxsi | \
15511 fr30 | \
15512 h8300 | \
15513 i?86 | x86_64 | \
15514 i860 | \
15515 ia64 | \
15516 m32r | \
15517 m68* | \
15518 m88k | \
15519 mcore | \
15520 mips* | \
15521 mmix | \
15522 mn10200 | \
15523 mn10300 | \
15524 ns32k | \
15525 pdp11 | \
15526 pj* | \
15527 powerpc* | rs6000 | \
15528 romp | \
15529 s390* | \
15530 sh* | \
15531 sparc* | \
15532 v850 | \
15533 vax | \
15534 xtensa)
15535 sv_cv_stack_direction=-1 ;;
15536 c4x | \
15537 dsp16xx | \
15538 i960 | \
15539 hppa* | parisc* | \
15540 stormy16 | \
15541 we32k)
15542 sv_cv_stack_direction=1 ;;
15544 if test $cross_compiling = no; then
15545 cat > conftest.c <<EOF
15546 #include <stdio.h>
15548 get_stack_direction ()
15550 auto char dummy;
15551 static char *dummyaddr = (char *)0;
15552 if (dummyaddr != (char *)0)
15553 return &dummy > dummyaddr ? 1 : &dummy < dummyaddr ? -1 : 0;
15554 else
15556 dummyaddr = &dummy;
15558 int result = get_stack_direction ();
15559 /* The next assignment avoids tail recursion elimination
15560 (IRIX 6.4 CC). */
15561 dummyaddr = (char *)0;
15562 return result;
15567 main ()
15569 printf ("%d\n", get_stack_direction ());
15570 return 0;
15573 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15574 (eval $ac_link) 2>&5
15575 ac_status=$?
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }
15578 sv_cv_stack_direction=`./conftest`
15579 else
15580 sv_cv_stack_direction=0
15583 esac
15584 case $sv_cv_stack_direction in
15585 1) sv_cv_stack_direction_msg="grows up";;
15586 -1) sv_cv_stack_direction_msg="grows down";;
15587 *) sv_cv_stack_direction_msg="unknown";;
15588 esac
15591 { $as_echo "$as_me:$LINENO: result: $sv_cv_stack_direction_msg" >&5
15592 $as_echo "$sv_cv_stack_direction_msg" >&6; }
15594 cat >>confdefs.h <<_ACEOF
15595 #define STACK_DIRECTION $sv_cv_stack_direction
15596 _ACEOF
15599 { $as_echo "$as_me:$LINENO: checking for PIOCMAP in sys/procfs.h" >&5
15600 $as_echo_n "checking for PIOCMAP in sys/procfs.h... " >&6; }
15601 if test "${sv_cv_procfsvma+set}" = set; then
15602 $as_echo_n "(cached) " >&6
15603 else
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 #include <sys/procfs.h>
15613 main ()
15615 int x = PIOCNMAP + PIOCMAP; prmap_t y;
15617 return 0;
15619 _ACEOF
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15627 $as_echo "$ac_try_echo") >&5
15628 (eval "$ac_link") 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest$ac_exeext && {
15638 test "$cross_compiling" = yes ||
15639 $as_test_x conftest$ac_exeext
15640 }; then
15641 sv_cv_procfsvma=yes
15642 else
15643 $as_echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 sv_cv_procfsvma=no
15649 rm -rf conftest.dSYM
15650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15651 conftest$ac_exeext conftest.$ac_ext
15654 { $as_echo "$as_me:$LINENO: result: $sv_cv_procfsvma" >&5
15655 $as_echo "$sv_cv_procfsvma" >&6; }
15657 for ac_func in mincore
15659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15661 $as_echo_n "checking for $ac_func... " >&6; }
15662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15663 $as_echo_n "(cached) " >&6
15664 else
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h. */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15673 #define $ac_func innocuous_$ac_func
15675 /* System header to define __stub macros and hopefully few prototypes,
15676 which can conflict with char $ac_func (); below.
15677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15678 <limits.h> exists even on freestanding compilers. */
15680 #ifdef __STDC__
15681 # include <limits.h>
15682 #else
15683 # include <assert.h>
15684 #endif
15686 #undef $ac_func
15688 /* Override any GCC internal prototype to avoid an error.
15689 Use char because int might match the return type of a GCC
15690 builtin and then its argument prototype would still apply. */
15691 #ifdef __cplusplus
15692 extern "C"
15693 #endif
15694 char $ac_func ();
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined __stub_$ac_func || defined __stub___$ac_func
15699 choke me
15700 #endif
15703 main ()
15705 return $ac_func ();
15707 return 0;
15709 _ACEOF
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (ac_try="$ac_link"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15717 $as_echo "$ac_try_echo") >&5
15718 (eval "$ac_link") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest$ac_exeext && {
15728 test "$cross_compiling" = yes ||
15729 $as_test_x conftest$ac_exeext
15730 }; then
15731 eval "$as_ac_var=yes"
15732 else
15733 $as_echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 eval "$as_ac_var=no"
15739 rm -rf conftest.dSYM
15740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15741 conftest$ac_exeext conftest.$ac_ext
15743 ac_res=`eval 'as_val=${'$as_ac_var'}
15744 $as_echo "$as_val"'`
15745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15746 $as_echo "$ac_res" >&6; }
15747 if test `eval 'as_val=${'$as_ac_var'}
15748 $as_echo "$as_val"'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15751 _ACEOF
15754 done
15756 CFG_STACKVMA=
15757 if test $sv_cv_procfsvma = yes; then
15758 CFG_STACKVMA=stackvma-procfs.c
15759 else
15760 case "$host_os" in
15761 linux*) CFG_STACKVMA=stackvma-linux.c ;;
15762 freebsd*) CFG_STACKVMA=stackvma-freebsd.c ;;
15763 beos*) CFG_STACKVMA=stackvma-beos.c ;;
15764 macos* | darwin*) CFG_STACKVMA=stackvma-mach.c ;;
15765 esac
15767 if test -z "$CFG_STACKVMA" && test $ac_cv_func_mincore = yes; then
15768 CFG_STACKVMA=stackvma-mincore.c
15770 if test -n "$CFG_STACKVMA"; then
15772 cat >>confdefs.h <<\_ACEOF
15773 #define HAVE_STACKVMA 1
15774 _ACEOF
15776 else
15777 CFG_STACKVMA=stackvma-none.c
15780 cat >>confdefs.h <<_ACEOF
15781 #define CFG_STACKVMA "$CFG_STACKVMA"
15782 _ACEOF
15788 for ac_func in getrlimit setrlimit
15790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15791 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15792 $as_echo_n "checking for $ac_func... " >&6; }
15793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15794 $as_echo_n "(cached) " >&6
15795 else
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15804 #define $ac_func innocuous_$ac_func
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func (); below.
15808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15809 <limits.h> exists even on freestanding compilers. */
15811 #ifdef __STDC__
15812 # include <limits.h>
15813 #else
15814 # include <assert.h>
15815 #endif
15817 #undef $ac_func
15819 /* Override any GCC internal prototype to avoid an error.
15820 Use char because int might match the return type of a GCC
15821 builtin and then its argument prototype would still apply. */
15822 #ifdef __cplusplus
15823 extern "C"
15824 #endif
15825 char $ac_func ();
15826 /* The GNU C library defines this for functions which it implements
15827 to always fail with ENOSYS. Some functions are actually named
15828 something starting with __ and the normal name is an alias. */
15829 #if defined __stub_$ac_func || defined __stub___$ac_func
15830 choke me
15831 #endif
15834 main ()
15836 return $ac_func ();
15838 return 0;
15840 _ACEOF
15841 rm -f conftest.$ac_objext conftest$ac_exeext
15842 if { (ac_try="$ac_link"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846 esac
15847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848 $as_echo "$ac_try_echo") >&5
15849 (eval "$ac_link") 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_c_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest$ac_exeext && {
15859 test "$cross_compiling" = yes ||
15860 $as_test_x conftest$ac_exeext
15861 }; then
15862 eval "$as_ac_var=yes"
15863 else
15864 $as_echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 eval "$as_ac_var=no"
15870 rm -rf conftest.dSYM
15871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15872 conftest$ac_exeext conftest.$ac_ext
15874 ac_res=`eval 'as_val=${'$as_ac_var'}
15875 $as_echo "$as_val"'`
15876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15877 $as_echo "$ac_res" >&6; }
15878 if test `eval 'as_val=${'$as_ac_var'}
15879 $as_echo "$as_val"'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15885 done
15893 for ac_func in sigaltstack
15895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15897 $as_echo_n "checking for $ac_func... " >&6; }
15898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15899 $as_echo_n "(cached) " >&6
15900 else
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h. */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15909 #define $ac_func innocuous_$ac_func
15911 /* System header to define __stub macros and hopefully few prototypes,
15912 which can conflict with char $ac_func (); below.
15913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15914 <limits.h> exists even on freestanding compilers. */
15916 #ifdef __STDC__
15917 # include <limits.h>
15918 #else
15919 # include <assert.h>
15920 #endif
15922 #undef $ac_func
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15927 #ifdef __cplusplus
15928 extern "C"
15929 #endif
15930 char $ac_func ();
15931 /* The GNU C library defines this for functions which it implements
15932 to always fail with ENOSYS. Some functions are actually named
15933 something starting with __ and the normal name is an alias. */
15934 #if defined __stub_$ac_func || defined __stub___$ac_func
15935 choke me
15936 #endif
15939 main ()
15941 return $ac_func ();
15943 return 0;
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (ac_try="$ac_link"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951 esac
15952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15953 $as_echo "$ac_try_echo") >&5
15954 (eval "$ac_link") 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } && {
15961 test -z "$ac_c_werror_flag" ||
15962 test ! -s conftest.err
15963 } && test -s conftest$ac_exeext && {
15964 test "$cross_compiling" = yes ||
15965 $as_test_x conftest$ac_exeext
15966 }; then
15967 eval "$as_ac_var=yes"
15968 else
15969 $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 eval "$as_ac_var=no"
15975 rm -rf conftest.dSYM
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977 conftest$ac_exeext conftest.$ac_ext
15979 ac_res=`eval 'as_val=${'$as_ac_var'}
15980 $as_echo "$as_val"'`
15981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15982 $as_echo "$ac_res" >&6; }
15983 if test `eval 'as_val=${'$as_ac_var'}
15984 $as_echo "$as_val"'` = yes; then
15985 cat >>confdefs.h <<_ACEOF
15986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15987 _ACEOF
15990 done
15993 if test "$ac_cv_func_sigaltstack" = yes; then
15994 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
15995 $as_echo_n "checking for stack_t... " >&6; }
15996 if test "${ac_cv_type_stack_t+set}" = set; then
15997 $as_echo_n "(cached) " >&6
15998 else
15999 ac_cv_type_stack_t=no
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16007 #include <signal.h>
16008 #if HAVE_SYS_SIGNAL_H
16009 # include <sys/signal.h>
16010 #endif
16014 main ()
16016 if (sizeof (stack_t))
16017 return 0;
16019 return 0;
16021 _ACEOF
16022 rm -f conftest.$ac_objext
16023 if { (ac_try="$ac_compile"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027 esac
16028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16029 $as_echo "$ac_try_echo") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16047 #include <signal.h>
16048 #if HAVE_SYS_SIGNAL_H
16049 # include <sys/signal.h>
16050 #endif
16054 main ()
16056 if (sizeof ((stack_t)))
16057 return 0;
16059 return 0;
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16069 $as_echo "$ac_try_echo") >&5
16070 (eval "$ac_compile") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest.$ac_objext; then
16081 else
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_type_stack_t=yes
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 else
16090 $as_echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
16099 $as_echo "$ac_cv_type_stack_t" >&6; }
16100 if test $ac_cv_type_stack_t = yes; then
16102 else
16104 cat >>confdefs.h <<\_ACEOF
16105 #define stack_t struct sigaltstack
16106 _ACEOF
16113 { $as_echo "$as_me:$LINENO: checking for working sigaltstack" >&5
16114 $as_echo_n "checking for working sigaltstack... " >&6; }
16115 if test "${sv_cv_sigaltstack+set}" = set; then
16116 $as_echo_n "(cached) " >&6
16117 else
16119 if test "$ac_cv_func_sigaltstack" = yes; then
16120 case "$host_os" in
16121 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16122 # On MacOS X 10.2 or newer, just assume that if it compiles, it will
16123 # work. If we were to perform the real test, 1 Crash Report dialog
16124 # window would pop up.
16125 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <signal.h>
16134 main ()
16136 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16148 $as_echo "$ac_try_echo") >&5
16149 (eval "$ac_link") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext && {
16159 test "$cross_compiling" = yes ||
16160 $as_test_x conftest$ac_exeext
16161 }; then
16162 sv_cv_sigaltstack="guessing yes"
16163 else
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 sv_cv_sigaltstack=no
16170 rm -rf conftest.dSYM
16171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16172 conftest$ac_exeext conftest.$ac_ext
16175 if test "$cross_compiling" = yes; then
16177 case "$host_os" in
16179 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 #include <signal.h>
16188 main ()
16190 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
16192 return 0;
16194 _ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202 $as_echo "$ac_try_echo") >&5
16203 (eval "$ac_link") 2>conftest.er1
16204 ac_status=$?
16205 grep -v '^ *+' conftest.er1 >conftest.err
16206 rm -f conftest.er1
16207 cat conftest.err >&5
16208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } && {
16210 test -z "$ac_c_werror_flag" ||
16211 test ! -s conftest.err
16212 } && test -s conftest$ac_exeext && {
16213 test "$cross_compiling" = yes ||
16214 $as_test_x conftest$ac_exeext
16215 }; then
16216 sv_cv_sigaltstack="guessing yes"
16217 else
16218 $as_echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 sv_cv_sigaltstack=no
16224 rm -rf conftest.dSYM
16225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16226 conftest$ac_exeext conftest.$ac_ext
16228 esac
16230 else
16231 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16239 #include <stdlib.h>
16240 #include <signal.h>
16241 #if HAVE_SYS_SIGNAL_H
16242 # include <sys/signal.h>
16243 #endif
16244 #if HAVE_SETRLIMIT
16245 # include <sys/types.h>
16246 # include <sys/time.h>
16247 # include <sys/resource.h>
16248 #endif
16249 #ifndef SIGSTKSZ
16250 # define SIGSTKSZ 16384
16251 #endif
16252 void stackoverflow_handler (int sig)
16254 /* If we get here, the stack overflow was caught. */
16255 exit (0);
16257 volatile int * recurse_1 (volatile int n, volatile int *p)
16259 if (n >= 0)
16260 *recurse_1 (n + 1, p) += n;
16261 return p;
16263 int recurse (volatile int n)
16265 int sum = 0;
16266 return *recurse_1 (n, &sum);
16268 int main ()
16270 char mystack[SIGSTKSZ];
16271 stack_t altstack;
16272 struct sigaction action;
16273 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16274 /* Before starting the endless recursion, try to be friendly to the user's
16275 machine. On some Linux 2.2.x systems, there is no stack limit for user
16276 processes at all. We don't want to kill such systems. */
16277 struct rlimit rl;
16278 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16279 setrlimit (RLIMIT_STACK, &rl);
16280 #endif
16281 /* Install the alternate stack. */
16282 altstack.ss_sp = mystack;
16283 altstack.ss_size = sizeof (mystack);
16284 altstack.ss_flags = 0; /* no SS_DISABLE */
16285 if (sigaltstack (&altstack, NULL) < 0)
16286 exit (1);
16287 /* Install the SIGSEGV handler. */
16288 sigemptyset (&action.sa_mask);
16289 action.sa_handler = &stackoverflow_handler;
16290 action.sa_flags = SA_ONSTACK;
16291 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16292 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16293 /* Provoke a stack overflow. */
16294 recurse (0);
16295 exit (2);
16297 _ACEOF
16298 rm -f conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306 (eval "$ac_link") 2>&5
16307 ac_status=$?
16308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16315 $as_echo "$ac_try_echo") >&5
16316 (eval "$ac_try") 2>&5
16317 ac_status=$?
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 sv_cv_sigaltstack=yes
16321 else
16322 $as_echo "$as_me: program exited with status $ac_status" >&5
16323 $as_echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 ( exit $ac_status )
16327 sv_cv_sigaltstack=no
16329 rm -rf conftest.dSYM
16330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16335 esac
16336 else
16337 sv_cv_sigaltstack=no
16341 { $as_echo "$as_me:$LINENO: result: $sv_cv_sigaltstack" >&5
16342 $as_echo "$sv_cv_sigaltstack" >&6; }
16343 if test "$sv_cv_sigaltstack" != no; then
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE_WORKING_SIGALTSTACK 1
16347 _ACEOF
16352 { $as_echo "$as_me:$LINENO: checking if the system supports catching stack overflow" >&5
16353 $as_echo_n "checking if the system supports catching stack overflow... " >&6; }
16354 if test "${sv_cv_have_stack_overflow_recovery+set}" = set; then
16355 $as_echo_n "(cached) " >&6
16356 else
16358 if test "$CFG_MACHFAULT" != fault-none.h; then
16359 sv_cv_have_stack_overflow_recovery=yes
16360 else
16361 if test "$sv_cv_sigaltstack" != no; then
16362 sv_cv_have_stack_overflow_recovery=maybe
16363 else
16364 case "$host_os" in
16365 beos*) sv_cv_have_stack_overflow_recovery=maybe ;;
16366 mingw* | cygwin*) sv_cv_have_stack_overflow_recovery=yes ;;
16367 *) sv_cv_have_stack_overflow_recovery=no ;;
16368 esac
16371 if test $sv_cv_have_stack_overflow_recovery = maybe; then
16372 if test -n "$CFG_FAULT"; then
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 #include "$srcdir/src/$CFG_FAULT"
16381 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
16382 #ifdef SIGSEGV_FAULT_ADDRESS
16383 xyzzy
16384 #endif
16385 #endif
16387 _ACEOF
16388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16389 $EGREP "xyzzy" >/dev/null 2>&1; then
16390 condA=true
16391 else
16392 condA=false
16394 rm -f conftest*
16396 else
16397 condA=false
16399 if test -n "$CFG_FAULT"; then
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16407 #include "$srcdir/src/$CFG_FAULT"
16408 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
16409 #ifdef SIGSEGV_FAULT_STACKPOINTER
16410 xyzzy
16411 #endif
16412 #endif
16414 _ACEOF
16415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16416 $EGREP "xyzzy" >/dev/null 2>&1; then
16417 condB=true
16418 else
16419 condB=false
16421 rm -f conftest*
16423 else
16424 condB=false
16426 if test "$CFG_STACKVMA" != "stackvma-none.c"; then
16427 condC=true
16428 else
16429 condC=false
16431 if { $condA && $condB; } || { $condA && $condC; } || { $condB && $condC; }; then
16432 sv_cv_have_stack_overflow_recovery=yes
16433 else
16434 sv_cv_have_stack_overflow_recovery=no
16439 { $as_echo "$as_me:$LINENO: result: $sv_cv_have_stack_overflow_recovery" >&5
16440 $as_echo "$sv_cv_have_stack_overflow_recovery" >&6; }
16441 if test $sv_cv_have_stack_overflow_recovery != no; then
16442 HAVE_STACK_OVERFLOW_RECOVERY=1
16443 else
16444 HAVE_STACK_OVERFLOW_RECOVERY=0
16448 # How to longjmp out of a signal handler, in such a way that the
16449 # alternate signal stack remains functional.
16451 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
16452 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
16453 # dialog windows would pop up.
16454 case "$host_os" in
16455 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
16462 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp" >&5
16463 $as_echo_n "checking whether a signal handler can be left through longjmp... " >&6; }
16464 if test "${sv_cv_leave_handler_longjmp+set}" = set; then
16465 $as_echo_n "(cached) " >&6
16466 else
16468 if test "$cross_compiling" = yes; then
16469 case "$host" in
16470 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]*) sv_cv_leave_handler_longjmp=yes ;;
16471 *) sv_cv_leave_handler_longjmp="guessing no" ;;
16472 esac
16474 else
16475 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16483 #include <stdlib.h>
16484 #include <signal.h>
16485 #include <setjmp.h>
16487 #if HAVE_SETRLIMIT
16488 # include <sys/types.h>
16489 # include <sys/time.h>
16490 # include <sys/resource.h>
16491 #endif
16492 #ifndef SIGSTKSZ
16493 # define SIGSTKSZ 16384
16494 #endif
16495 jmp_buf mainloop;
16496 sigset_t mainsigset;
16497 int pass = 0;
16498 void stackoverflow_handler (int sig)
16500 pass++;
16501 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16503 longjmp (mainloop, pass);
16505 volatile int * recurse_1 (volatile int n, volatile int *p)
16507 if (n >= 0)
16508 *recurse_1 (n + 1, p) += n;
16509 return p;
16511 int recurse (volatile int n)
16513 int sum = 0;
16514 return *recurse_1 (n, &sum);
16516 int main ()
16518 char mystack[SIGSTKSZ];
16519 stack_t altstack;
16520 struct sigaction action;
16521 sigset_t emptyset;
16522 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16523 /* Before starting the endless recursion, try to be friendly to the user's
16524 machine. On some Linux 2.2.x systems, there is no stack limit for user
16525 processes at all. We don't want to kill such systems. */
16526 struct rlimit rl;
16527 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16528 setrlimit (RLIMIT_STACK, &rl);
16529 #endif
16530 /* Install the alternate stack. */
16531 altstack.ss_sp = mystack;
16532 altstack.ss_size = sizeof (mystack);
16533 altstack.ss_flags = 0; /* no SS_DISABLE */
16534 if (sigaltstack (&altstack, NULL) < 0)
16535 exit (1);
16536 /* Install the SIGSEGV handler. */
16537 sigemptyset (&action.sa_mask);
16538 action.sa_handler = &stackoverflow_handler;
16539 action.sa_flags = SA_ONSTACK;
16540 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16541 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16542 /* Save the current signal mask. */
16543 sigemptyset (&emptyset);
16544 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16545 /* Provoke two stack overflows in a row. */
16546 if (setjmp (mainloop) < 2)
16548 recurse (0);
16549 exit (2);
16551 exit (0);
16553 _ACEOF
16554 rm -f conftest$ac_exeext
16555 if { (ac_try="$ac_link"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559 esac
16560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16561 $as_echo "$ac_try_echo") >&5
16562 (eval "$ac_link") 2>&5
16563 ac_status=$?
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569 esac
16570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16571 $as_echo "$ac_try_echo") >&5
16572 (eval "$ac_try") 2>&5
16573 ac_status=$?
16574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 sv_cv_leave_handler_longjmp=yes
16577 else
16578 $as_echo "$as_me: program exited with status $ac_status" >&5
16579 $as_echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ( exit $ac_status )
16583 sv_cv_leave_handler_longjmp=no
16585 rm -rf conftest.dSYM
16586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp" >&5
16593 $as_echo "$sv_cv_leave_handler_longjmp" >&6; }
16600 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and sigaltstack" >&5
16601 $as_echo_n "checking whether a signal handler can be left through longjmp and sigaltstack... " >&6; }
16602 if test "${sv_cv_leave_handler_longjmp_sigaltstack+set}" = set; then
16603 $as_echo_n "(cached) " >&6
16604 else
16606 if test "$cross_compiling" = yes; then
16607 case "$host" in
16608 *-*-freebsd*) sv_cv_leave_handler_longjmp_sigaltstack=yes ;;
16609 *) sv_cv_leave_handler_longjmp_sigaltstack="guessing no" ;;
16610 esac
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h. */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16621 #include <stdlib.h>
16622 #include <signal.h>
16623 #include <setjmp.h>
16625 #ifndef SS_ONSTACK
16626 #define SS_ONSTACK SA_ONSTACK
16627 #endif
16629 #if HAVE_SETRLIMIT
16630 # include <sys/types.h>
16631 # include <sys/time.h>
16632 # include <sys/resource.h>
16633 #endif
16634 #ifndef SIGSTKSZ
16635 # define SIGSTKSZ 16384
16636 #endif
16637 jmp_buf mainloop;
16638 sigset_t mainsigset;
16639 int pass = 0;
16640 void stackoverflow_handler (int sig)
16642 pass++;
16643 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16644 { stack_t ss;
16645 if (sigaltstack (NULL, &ss) >= 0)
16647 ss.ss_flags &= ~SS_ONSTACK;
16648 sigaltstack (&ss, NULL);
16651 longjmp (mainloop, pass);
16653 volatile int * recurse_1 (volatile int n, volatile int *p)
16655 if (n >= 0)
16656 *recurse_1 (n + 1, p) += n;
16657 return p;
16659 int recurse (volatile int n)
16661 int sum = 0;
16662 return *recurse_1 (n, &sum);
16664 int main ()
16666 char mystack[SIGSTKSZ];
16667 stack_t altstack;
16668 struct sigaction action;
16669 sigset_t emptyset;
16670 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16671 /* Before starting the endless recursion, try to be friendly to the user's
16672 machine. On some Linux 2.2.x systems, there is no stack limit for user
16673 processes at all. We don't want to kill such systems. */
16674 struct rlimit rl;
16675 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16676 setrlimit (RLIMIT_STACK, &rl);
16677 #endif
16678 /* Install the alternate stack. */
16679 altstack.ss_sp = mystack;
16680 altstack.ss_size = sizeof (mystack);
16681 altstack.ss_flags = 0; /* no SS_DISABLE */
16682 if (sigaltstack (&altstack, NULL) < 0)
16683 exit (1);
16684 /* Install the SIGSEGV handler. */
16685 sigemptyset (&action.sa_mask);
16686 action.sa_handler = &stackoverflow_handler;
16687 action.sa_flags = SA_ONSTACK;
16688 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16689 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16690 /* Save the current signal mask. */
16691 sigemptyset (&emptyset);
16692 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16693 /* Provoke two stack overflows in a row. */
16694 if (setjmp (mainloop) < 2)
16696 recurse (0);
16697 exit (2);
16699 exit (0);
16701 _ACEOF
16702 rm -f conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16709 $as_echo "$ac_try_echo") >&5
16710 (eval "$ac_link") 2>&5
16711 ac_status=$?
16712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717 esac
16718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16719 $as_echo "$ac_try_echo") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 sv_cv_leave_handler_longjmp_sigaltstack=yes
16725 else
16726 $as_echo "$as_me: program exited with status $ac_status" >&5
16727 $as_echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ( exit $ac_status )
16731 sv_cv_leave_handler_longjmp_sigaltstack=no
16733 rm -rf conftest.dSYM
16734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16740 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp_sigaltstack" >&5
16741 $as_echo "$sv_cv_leave_handler_longjmp_sigaltstack" >&6; }
16748 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and setcontext" >&5
16749 $as_echo_n "checking whether a signal handler can be left through longjmp and setcontext... " >&6; }
16750 if test "${sv_cv_leave_handler_longjmp_setcontext+set}" = set; then
16751 $as_echo_n "(cached) " >&6
16752 else
16754 if test "$cross_compiling" = yes; then
16755 case "$host" in
16756 *-*-irix* | *-*-solaris*) sv_cv_leave_handler_longjmp_setcontext=yes ;;
16757 *) sv_cv_leave_handler_longjmp_setcontext="guessing no" ;;
16758 esac
16760 else
16761 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 #include <stdlib.h>
16770 #include <signal.h>
16771 #include <setjmp.h>
16772 #include <ucontext.h>
16773 #ifndef SS_ONSTACK
16774 #define SS_ONSTACK SA_ONSTACK
16775 #endif
16777 #if HAVE_SETRLIMIT
16778 # include <sys/types.h>
16779 # include <sys/time.h>
16780 # include <sys/resource.h>
16781 #endif
16782 #ifndef SIGSTKSZ
16783 # define SIGSTKSZ 16384
16784 #endif
16785 jmp_buf mainloop;
16786 sigset_t mainsigset;
16787 int pass = 0;
16788 void stackoverflow_handler (int sig)
16790 pass++;
16791 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
16792 { static int fl;
16793 static ucontext_t uc;
16794 fl = 0;
16795 if (getcontext (&uc) >= 0)
16796 if (fl == 0)
16797 if (uc.uc_stack.ss_flags & SS_ONSTACK)
16799 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
16800 fl = 1;
16801 setcontext (&uc);
16804 longjmp (mainloop, pass);
16806 volatile int * recurse_1 (volatile int n, volatile int *p)
16808 if (n >= 0)
16809 *recurse_1 (n + 1, p) += n;
16810 return p;
16812 int recurse (volatile int n)
16814 int sum = 0;
16815 return *recurse_1 (n, &sum);
16817 int main ()
16819 char mystack[SIGSTKSZ];
16820 stack_t altstack;
16821 struct sigaction action;
16822 sigset_t emptyset;
16823 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16824 /* Before starting the endless recursion, try to be friendly to the user's
16825 machine. On some Linux 2.2.x systems, there is no stack limit for user
16826 processes at all. We don't want to kill such systems. */
16827 struct rlimit rl;
16828 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16829 setrlimit (RLIMIT_STACK, &rl);
16830 #endif
16831 /* Install the alternate stack. */
16832 altstack.ss_sp = mystack;
16833 altstack.ss_size = sizeof (mystack);
16834 altstack.ss_flags = 0; /* no SS_DISABLE */
16835 if (sigaltstack (&altstack, NULL) < 0)
16836 exit (1);
16837 /* Install the SIGSEGV handler. */
16838 sigemptyset (&action.sa_mask);
16839 action.sa_handler = &stackoverflow_handler;
16840 action.sa_flags = SA_ONSTACK;
16841 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16842 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16843 /* Save the current signal mask. */
16844 sigemptyset (&emptyset);
16845 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
16846 /* Provoke two stack overflows in a row. */
16847 if (setjmp (mainloop) < 2)
16849 recurse (0);
16850 exit (2);
16852 exit (0);
16854 _ACEOF
16855 rm -f conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863 (eval "$ac_link") 2>&5
16864 ac_status=$?
16865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16872 $as_echo "$ac_try_echo") >&5
16873 (eval "$ac_try") 2>&5
16874 ac_status=$?
16875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 sv_cv_leave_handler_longjmp_setcontext=yes
16878 else
16879 $as_echo "$as_me: program exited with status $ac_status" >&5
16880 $as_echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ( exit $ac_status )
16884 sv_cv_leave_handler_longjmp_setcontext=no
16886 rm -rf conftest.dSYM
16887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16893 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_longjmp_setcontext" >&5
16894 $as_echo "$sv_cv_leave_handler_longjmp_setcontext" >&6; }
16897 # End of MacOS X special casing.
16899 esac
16901 # How to siglongjmp out of a signal handler, in such a way that the
16902 # alternate signal stack remains functional.
16904 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
16905 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
16906 # dialog windows would pop up.
16907 case "$host_os" in
16908 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
16915 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp" >&5
16916 $as_echo_n "checking whether a signal handler can be left through siglongjmp... " >&6; }
16917 if test "${sv_cv_leave_handler_siglongjmp+set}" = set; then
16918 $as_echo_n "(cached) " >&6
16919 else
16921 if test "$cross_compiling" = yes; then
16922 case "$host" in
16923 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]* | *-*-irix* | *-*-solaris*) sv_cv_leave_handler_siglongjmp=yes ;;
16924 *) sv_cv_leave_handler_siglongjmp="guessing no" ;;
16925 esac
16927 else
16928 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16936 #include <stdlib.h>
16937 #include <signal.h>
16938 #include <setjmp.h>
16940 #if HAVE_SETRLIMIT
16941 # include <sys/types.h>
16942 # include <sys/time.h>
16943 # include <sys/resource.h>
16944 #endif
16945 #ifndef SIGSTKSZ
16946 # define SIGSTKSZ 16384
16947 #endif
16948 sigjmp_buf mainloop;
16949 int pass = 0;
16950 void stackoverflow_handler (int sig)
16952 pass++;
16954 siglongjmp (mainloop, pass);
16956 volatile int * recurse_1 (volatile int n, volatile int *p)
16958 if (n >= 0)
16959 *recurse_1 (n + 1, p) += n;
16960 return p;
16962 int recurse (volatile int n)
16964 int sum = 0;
16965 return *recurse_1 (n, &sum);
16967 int main ()
16969 char mystack[SIGSTKSZ];
16970 stack_t altstack;
16971 struct sigaction action;
16972 #ifdef __BEOS__
16973 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
16974 exit (1);
16975 #endif
16976 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
16977 /* Before starting the endless recursion, try to be friendly to the user's
16978 machine. On some Linux 2.2.x systems, there is no stack limit for user
16979 processes at all. We don't want to kill such systems. */
16980 struct rlimit rl;
16981 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
16982 setrlimit (RLIMIT_STACK, &rl);
16983 #endif
16984 /* Install the alternate stack. */
16985 altstack.ss_sp = mystack;
16986 altstack.ss_size = sizeof (mystack);
16987 altstack.ss_flags = 0; /* no SS_DISABLE */
16988 if (sigaltstack (&altstack, NULL) < 0)
16989 exit (1);
16990 /* Install the SIGSEGV handler. */
16991 sigemptyset (&action.sa_mask);
16992 action.sa_handler = &stackoverflow_handler;
16993 action.sa_flags = SA_ONSTACK;
16994 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
16995 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
16996 /* Provoke two stack overflows in a row. */
16997 if (sigsetjmp (mainloop, 1) < 2)
16999 recurse (0);
17000 exit (2);
17002 exit (0);
17004 _ACEOF
17005 rm -f conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_link") 2>&5
17014 ac_status=$?
17015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022 $as_echo "$ac_try_echo") >&5
17023 (eval "$ac_try") 2>&5
17024 ac_status=$?
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 sv_cv_leave_handler_siglongjmp=yes
17028 else
17029 $as_echo "$as_me: program exited with status $ac_status" >&5
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ( exit $ac_status )
17034 sv_cv_leave_handler_siglongjmp=no
17036 rm -rf conftest.dSYM
17037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17043 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp" >&5
17044 $as_echo "$sv_cv_leave_handler_siglongjmp" >&6; }
17051 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and sigaltstack" >&5
17052 $as_echo_n "checking whether a signal handler can be left through siglongjmp and sigaltstack... " >&6; }
17053 if test "${sv_cv_leave_handler_siglongjmp_sigaltstack+set}" = set; then
17054 $as_echo_n "(cached) " >&6
17055 else
17057 if test "$cross_compiling" = yes; then
17058 case "$host" in
17059 *-*-freebsd*) sv_cv_leave_handler_siglongjmp_sigaltstack=yes ;;
17060 *) sv_cv_leave_handler_siglongjmp_sigaltstack="guessing no" ;;
17061 esac
17063 else
17064 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 #include <stdlib.h>
17073 #include <signal.h>
17074 #include <setjmp.h>
17076 #ifndef SS_ONSTACK
17077 #define SS_ONSTACK SA_ONSTACK
17078 #endif
17080 #if HAVE_SETRLIMIT
17081 # include <sys/types.h>
17082 # include <sys/time.h>
17083 # include <sys/resource.h>
17084 #endif
17085 #ifndef SIGSTKSZ
17086 # define SIGSTKSZ 16384
17087 #endif
17088 sigjmp_buf mainloop;
17089 int pass = 0;
17090 void stackoverflow_handler (int sig)
17092 pass++;
17093 { stack_t ss;
17094 if (sigaltstack (NULL, &ss) >= 0)
17096 ss.ss_flags &= ~SS_ONSTACK;
17097 sigaltstack (&ss, NULL);
17100 siglongjmp (mainloop, pass);
17102 volatile int * recurse_1 (volatile int n, volatile int *p)
17104 if (n >= 0)
17105 *recurse_1 (n + 1, p) += n;
17106 return p;
17108 int recurse (volatile int n)
17110 int sum = 0;
17111 return *recurse_1 (n, &sum);
17113 int main ()
17115 char mystack[SIGSTKSZ];
17116 stack_t altstack;
17117 struct sigaction action;
17118 #ifdef __BEOS__
17119 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
17120 exit (1);
17121 #endif
17122 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
17123 /* Before starting the endless recursion, try to be friendly to the user's
17124 machine. On some Linux 2.2.x systems, there is no stack limit for user
17125 processes at all. We don't want to kill such systems. */
17126 struct rlimit rl;
17127 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
17128 setrlimit (RLIMIT_STACK, &rl);
17129 #endif
17130 /* Install the alternate stack. */
17131 altstack.ss_sp = mystack;
17132 altstack.ss_size = sizeof (mystack);
17133 altstack.ss_flags = 0; /* no SS_DISABLE */
17134 if (sigaltstack (&altstack, NULL) < 0)
17135 exit (1);
17136 /* Install the SIGSEGV handler. */
17137 sigemptyset (&action.sa_mask);
17138 action.sa_handler = &stackoverflow_handler;
17139 action.sa_flags = SA_ONSTACK;
17140 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
17141 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
17142 /* Provoke two stack overflows in a row. */
17143 if (sigsetjmp (mainloop, 1) < 2)
17145 recurse (0);
17146 exit (2);
17148 exit (0);
17150 _ACEOF
17151 rm -f conftest$ac_exeext
17152 if { (ac_try="$ac_link"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17158 $as_echo "$ac_try_echo") >&5
17159 (eval "$ac_link") 2>&5
17160 ac_status=$?
17161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17168 $as_echo "$ac_try_echo") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 sv_cv_leave_handler_siglongjmp_sigaltstack=yes
17174 else
17175 $as_echo "$as_me: program exited with status $ac_status" >&5
17176 $as_echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ( exit $ac_status )
17180 sv_cv_leave_handler_siglongjmp_sigaltstack=no
17182 rm -rf conftest.dSYM
17183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17189 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp_sigaltstack" >&5
17190 $as_echo "$sv_cv_leave_handler_siglongjmp_sigaltstack" >&6; }
17197 { $as_echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and setcontext" >&5
17198 $as_echo_n "checking whether a signal handler can be left through siglongjmp and setcontext... " >&6; }
17199 if test "${sv_cv_leave_handler_siglongjmp_setcontext+set}" = set; then
17200 $as_echo_n "(cached) " >&6
17201 else
17203 if test "$cross_compiling" = yes; then
17204 case "$host" in
17206 *) sv_cv_leave_handler_siglongjmp_setcontext="guessing no" ;;
17207 esac
17209 else
17210 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 #include <stdlib.h>
17219 #include <signal.h>
17220 #include <setjmp.h>
17221 #include <ucontext.h>
17222 #ifndef SS_ONSTACK
17223 #define SS_ONSTACK SA_ONSTACK
17224 #endif
17226 #if HAVE_SETRLIMIT
17227 # include <sys/types.h>
17228 # include <sys/time.h>
17229 # include <sys/resource.h>
17230 #endif
17231 #ifndef SIGSTKSZ
17232 # define SIGSTKSZ 16384
17233 #endif
17234 sigjmp_buf mainloop;
17235 int pass = 0;
17236 void stackoverflow_handler (int sig)
17238 pass++;
17239 { static int fl;
17240 static ucontext_t uc;
17241 fl = 0;
17242 if (getcontext(&uc) >= 0)
17243 if (fl == 0)
17244 if (uc.uc_stack.ss_flags & SS_ONSTACK)
17246 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
17247 fl = 1;
17248 setcontext(&uc);
17251 siglongjmp (mainloop, pass);
17253 volatile int * recurse_1 (volatile int n, volatile int *p)
17255 if (n >= 0)
17256 *recurse_1 (n + 1, p) += n;
17257 return p;
17259 int recurse (volatile int n)
17261 int sum = 0;
17262 return *recurse_1 (n, &sum);
17264 int main ()
17266 char mystack[SIGSTKSZ];
17267 stack_t altstack;
17268 struct sigaction action;
17269 #ifdef __BEOS__
17270 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
17271 exit (1);
17272 #endif
17273 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
17274 /* Before starting the endless recursion, try to be friendly to the user's
17275 machine. On some Linux 2.2.x systems, there is no stack limit for user
17276 processes at all. We don't want to kill such systems. */
17277 struct rlimit rl;
17278 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
17279 setrlimit (RLIMIT_STACK, &rl);
17280 #endif
17281 /* Install the alternate stack. */
17282 altstack.ss_sp = mystack;
17283 altstack.ss_size = sizeof (mystack);
17284 altstack.ss_flags = 0; /* no SS_DISABLE */
17285 if (sigaltstack (&altstack, NULL) < 0)
17286 exit (1);
17287 /* Install the SIGSEGV handler. */
17288 sigemptyset (&action.sa_mask);
17289 action.sa_handler = &stackoverflow_handler;
17290 action.sa_flags = SA_ONSTACK;
17291 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
17292 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
17293 /* Provoke two stack overflows in a row. */
17294 if (sigsetjmp (mainloop, 1) < 2)
17296 recurse (0);
17297 exit (2);
17299 exit (0);
17301 _ACEOF
17302 rm -f conftest$ac_exeext
17303 if { (ac_try="$ac_link"
17304 case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17307 esac
17308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309 $as_echo "$ac_try_echo") >&5
17310 (eval "$ac_link") 2>&5
17311 ac_status=$?
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317 esac
17318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319 $as_echo "$ac_try_echo") >&5
17320 (eval "$ac_try") 2>&5
17321 ac_status=$?
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 sv_cv_leave_handler_siglongjmp_setcontext=yes
17325 else
17326 $as_echo "$as_me: program exited with status $ac_status" >&5
17327 $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ( exit $ac_status )
17331 sv_cv_leave_handler_siglongjmp_setcontext=no
17333 rm -rf conftest.dSYM
17334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17340 { $as_echo "$as_me:$LINENO: result: $sv_cv_leave_handler_siglongjmp_setcontext" >&5
17341 $as_echo "$sv_cv_leave_handler_siglongjmp_setcontext" >&6; }
17344 # End of MacOS X special casing.
17346 esac
17348 CFG_LEAVE=
17349 if test "$sv_cv_leave_handler_longjmp" != no; then
17350 CFG_LEAVE=leave-nop.c
17351 else
17352 if test "$sv_cv_leave_handler_longjmp_sigaltstack" != no; then
17353 CFG_LEAVE=leave-sigaltstack.c
17354 else
17355 if test "$sv_cv_leave_handler_longjmp_setcontext" != no; then
17356 CFG_LEAVE=leave-setcontext.c
17360 case "$host_os" in
17361 # On BeOS, the 6 tests fail because sigaltstack() doesn't exist.
17362 # If one uses set_signal_stack() instead of sigaltstack(), the first
17363 # test actually works. i.e. sv_cv_leave_handler_longjmp would be 'yes'.
17364 beos*) CFG_LEAVE=leave-nop.c ;;
17365 esac
17366 if test -z "$CFG_LEAVE"; then
17367 CFG_LEAVE=leave-none.c
17370 cat >>confdefs.h <<_ACEOF
17371 #define CFG_LEAVE "$CFG_LEAVE"
17372 _ACEOF
17376 case "$host_os" in
17377 mingw* | cygwin*) CFG_HANDLER=handler-win32.c ;;
17379 if test -z "$CFG_HANDLER"; then
17380 if test $sv_cv_have_sigsegv_recovery = no \
17381 && test $sv_cv_have_stack_overflow_recovery = no; then
17382 CFG_HANDLER=handler-none.c
17383 else
17384 CFG_HANDLER=handler-unix.c
17388 esac
17390 cat >>confdefs.h <<_ACEOF
17391 #define CFG_HANDLER "$CFG_HANDLER"
17392 _ACEOF
17396 { echo; echo "${term_bold}Build Parameters:${term_norm}"; } >& 6
17399 { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
17400 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
17401 # Check whether --enable-relocatable was given.
17402 if test "${enable_relocatable+set}" = set; then
17403 enableval=$enable_relocatable; if test "$enableval" != no; then
17404 RELOCATABLE=yes
17405 else
17406 RELOCATABLE=no
17409 else
17410 RELOCATABLE=no
17414 { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
17415 $as_echo "$RELOCATABLE" >&6; }
17418 { echo; echo "${term_bold}Output Substitution:${term_norm}"; } >& 6
17420 ac_config_files="$ac_config_files Makefile src/Makefile src/sigsegv.h tests/Makefile"
17422 cat >confcache <<\_ACEOF
17423 # This file is a shell script that caches the results of configure
17424 # tests run on this system so they can be shared between configure
17425 # scripts and configure runs, see configure's option --config-cache.
17426 # It is not useful on other systems. If it contains results you don't
17427 # want to keep, you may remove or edit it.
17429 # config.status only pays attention to the cache file if you give it
17430 # the --recheck option to rerun configure.
17432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17434 # following values.
17436 _ACEOF
17438 # The following way of writing the cache mishandles newlines in values,
17439 # but we know of no workaround that is simple, portable, and efficient.
17440 # So, we kill variables containing newlines.
17441 # Ultrix sh set writes to stderr and can't be redirected directly,
17442 # and sets the high bit in the cache file unless we assign to the vars.
17444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17445 eval ac_val=\$$ac_var
17446 case $ac_val in #(
17447 *${as_nl}*)
17448 case $ac_var in #(
17449 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17450 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17451 esac
17452 case $ac_var in #(
17453 _ | IFS | as_nl) ;; #(
17454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17455 *) $as_unset $ac_var ;;
17456 esac ;;
17457 esac
17458 done
17460 (set) 2>&1 |
17461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17462 *${as_nl}ac_space=\ *)
17463 # `set' does not quote correctly, so add quotes (double-quote
17464 # substitution turns \\\\ into \\, and sed turns \\ into \).
17465 sed -n \
17466 "s/'/'\\\\''/g;
17467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17468 ;; #(
17470 # `set' quotes correctly as required by POSIX, so do not add quotes.
17471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17473 esac |
17474 sort
17476 sed '
17477 /^ac_cv_env_/b end
17478 t clear
17479 :clear
17480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17481 t end
17482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17483 :end' >>confcache
17484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17485 if test -w "$cache_file"; then
17486 test "x$cache_file" != "x/dev/null" &&
17487 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17488 $as_echo "$as_me: updating cache $cache_file" >&6;}
17489 cat confcache >$cache_file
17490 else
17491 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17492 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17495 rm -f confcache
17497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17498 # Let make expand exec_prefix.
17499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17501 DEFS=-DHAVE_CONFIG_H
17503 ac_libobjs=
17504 ac_ltlibobjs=
17505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17506 # 1. Remove the extension, and $U if already installed.
17507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17510 # will be set to the directory where LIBOBJS objects are built.
17511 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17512 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17513 done
17514 LIBOBJS=$ac_libobjs
17516 LTLIBOBJS=$ac_ltlibobjs
17519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17520 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17521 Usually this means the macro was only invoked conditionally." >&5
17522 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17523 Usually this means the macro was only invoked conditionally." >&2;}
17524 { (exit 1); exit 1; }; }
17526 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17527 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17528 Usually this means the macro was only invoked conditionally." >&5
17529 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17530 Usually this means the macro was only invoked conditionally." >&2;}
17531 { (exit 1); exit 1; }; }
17534 : ${CONFIG_STATUS=./config.status}
17535 ac_write_fail=0
17536 ac_clean_files_save=$ac_clean_files
17537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17538 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17540 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17541 #! $SHELL
17542 # Generated by $as_me.
17543 # Run this file to recreate the current configuration.
17544 # Compiler output produced by configure, useful for debugging
17545 # configure, is in config.log if it exists.
17547 debug=false
17548 ac_cs_recheck=false
17549 ac_cs_silent=false
17550 SHELL=\${CONFIG_SHELL-$SHELL}
17551 _ACEOF
17553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17554 ## --------------------- ##
17555 ## M4sh Initialization. ##
17556 ## --------------------- ##
17558 # Be more Bourne compatible
17559 DUALCASE=1; export DUALCASE # for MKS sh
17560 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17561 emulate sh
17562 NULLCMD=:
17563 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17564 # is contrary to our usage. Disable this feature.
17565 alias -g '${1+"$@"}'='"$@"'
17566 setopt NO_GLOB_SUBST
17567 else
17568 case `(set -o) 2>/dev/null` in
17569 *posix*) set -o posix ;;
17570 esac
17577 # PATH needs CR
17578 # Avoid depending upon Character Ranges.
17579 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17580 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17581 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17582 as_cr_digits='0123456789'
17583 as_cr_alnum=$as_cr_Letters$as_cr_digits
17585 as_nl='
17587 export as_nl
17588 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17589 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17592 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17593 as_echo='printf %s\n'
17594 as_echo_n='printf %s'
17595 else
17596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17598 as_echo_n='/usr/ucb/echo -n'
17599 else
17600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17601 as_echo_n_body='eval
17602 arg=$1;
17603 case $arg in
17604 *"$as_nl"*)
17605 expr "X$arg" : "X\\(.*\\)$as_nl";
17606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17607 esac;
17608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17610 export as_echo_n_body
17611 as_echo_n='sh -c $as_echo_n_body as_echo'
17613 export as_echo_body
17614 as_echo='sh -c $as_echo_body as_echo'
17617 # The user is always right.
17618 if test "${PATH_SEPARATOR+set}" != set; then
17619 PATH_SEPARATOR=:
17620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17622 PATH_SEPARATOR=';'
17626 # Support unset when possible.
17627 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17628 as_unset=unset
17629 else
17630 as_unset=false
17634 # IFS
17635 # We need space, tab and new line, in precisely that order. Quoting is
17636 # there to prevent editors from complaining about space-tab.
17637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17638 # splitting by setting IFS to empty value.)
17639 IFS=" "" $as_nl"
17641 # Find who we are. Look in the path if we contain no directory separator.
17642 case $0 in
17643 *[\\/]* ) as_myself=$0 ;;
17644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17645 for as_dir in $PATH
17647 IFS=$as_save_IFS
17648 test -z "$as_dir" && as_dir=.
17649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17650 done
17651 IFS=$as_save_IFS
17654 esac
17655 # We did not find ourselves, most probably we were run as `sh COMMAND'
17656 # in which case we are not to be found in the path.
17657 if test "x$as_myself" = x; then
17658 as_myself=$0
17660 if test ! -f "$as_myself"; then
17661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17662 { (exit 1); exit 1; }
17665 # Work around bugs in pre-3.0 UWIN ksh.
17666 for as_var in ENV MAIL MAILPATH
17667 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17668 done
17669 PS1='$ '
17670 PS2='> '
17671 PS4='+ '
17673 # NLS nuisances.
17674 LC_ALL=C
17675 export LC_ALL
17676 LANGUAGE=C
17677 export LANGUAGE
17679 # Required to use basename.
17680 if expr a : '\(a\)' >/dev/null 2>&1 &&
17681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17682 as_expr=expr
17683 else
17684 as_expr=false
17687 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17688 as_basename=basename
17689 else
17690 as_basename=false
17694 # Name of the executable.
17695 as_me=`$as_basename -- "$0" ||
17696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17697 X"$0" : 'X\(//\)$' \| \
17698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17699 $as_echo X/"$0" |
17700 sed '/^.*\/\([^/][^/]*\)\/*$/{
17701 s//\1/
17704 /^X\/\(\/\/\)$/{
17705 s//\1/
17708 /^X\/\(\/\).*/{
17709 s//\1/
17712 s/.*/./; q'`
17714 # CDPATH.
17715 $as_unset CDPATH
17719 as_lineno_1=$LINENO
17720 as_lineno_2=$LINENO
17721 test "x$as_lineno_1" != "x$as_lineno_2" &&
17722 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17724 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17725 # uniformly replaced by the line number. The first 'sed' inserts a
17726 # line-number line after each line using $LINENO; the second 'sed'
17727 # does the real work. The second script uses 'N' to pair each
17728 # line-number line with the line containing $LINENO, and appends
17729 # trailing '-' during substitution so that $LINENO is not a special
17730 # case at line end.
17731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17732 # scripts with optimization help from Paolo Bonzini. Blame Lee
17733 # E. McMahon (1931-1989) for sed's syntax. :-)
17734 sed -n '
17736 /[$]LINENO/=
17737 ' <$as_myself |
17738 sed '
17739 s/[$]LINENO.*/&-/
17740 t lineno
17742 :lineno
17744 :loop
17745 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17746 t loop
17747 s/-\n.*//
17748 ' >$as_me.lineno &&
17749 chmod +x "$as_me.lineno" ||
17750 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17751 { (exit 1); exit 1; }; }
17753 # Don't try to exec as it changes $[0], causing all sort of problems
17754 # (the dirname of $[0] is not the place where we might find the
17755 # original and so on. Autoconf is especially sensitive to this).
17756 . "./$as_me.lineno"
17757 # Exit status is that of the last command.
17758 exit
17762 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17763 as_dirname=dirname
17764 else
17765 as_dirname=false
17768 ECHO_C= ECHO_N= ECHO_T=
17769 case `echo -n x` in
17770 -n*)
17771 case `echo 'x\c'` in
17772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17773 *) ECHO_C='\c';;
17774 esac;;
17776 ECHO_N='-n';;
17777 esac
17778 if expr a : '\(a\)' >/dev/null 2>&1 &&
17779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17780 as_expr=expr
17781 else
17782 as_expr=false
17785 rm -f conf$$ conf$$.exe conf$$.file
17786 if test -d conf$$.dir; then
17787 rm -f conf$$.dir/conf$$.file
17788 else
17789 rm -f conf$$.dir
17790 mkdir conf$$.dir 2>/dev/null
17792 if (echo >conf$$.file) 2>/dev/null; then
17793 if ln -s conf$$.file conf$$ 2>/dev/null; then
17794 as_ln_s='ln -s'
17795 # ... but there are two gotchas:
17796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17798 # In both cases, we have to default to `cp -p'.
17799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17800 as_ln_s='cp -p'
17801 elif ln conf$$.file conf$$ 2>/dev/null; then
17802 as_ln_s=ln
17803 else
17804 as_ln_s='cp -p'
17806 else
17807 as_ln_s='cp -p'
17809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17810 rmdir conf$$.dir 2>/dev/null
17812 if mkdir -p . 2>/dev/null; then
17813 as_mkdir_p=:
17814 else
17815 test -d ./-p && rmdir ./-p
17816 as_mkdir_p=false
17819 if test -x / >/dev/null 2>&1; then
17820 as_test_x='test -x'
17821 else
17822 if ls -dL / >/dev/null 2>&1; then
17823 as_ls_L_option=L
17824 else
17825 as_ls_L_option=
17827 as_test_x='
17828 eval sh -c '\''
17829 if test -d "$1"; then
17830 test -d "$1/.";
17831 else
17832 case $1 in
17833 -*)set "./$1";;
17834 esac;
17835 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17836 ???[sx]*):;;*)false;;esac;fi
17837 '\'' sh
17840 as_executable_p=$as_test_x
17842 # Sed expression to map a string onto a valid CPP name.
17843 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17845 # Sed expression to map a string onto a valid variable name.
17846 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17849 exec 6>&1
17851 # Save the log message, to keep $[0] and so on meaningful, and to
17852 # report actual input values of CONFIG_FILES etc. instead of their
17853 # values after options handling.
17854 ac_log="
17855 This file was extended by $as_me, which was
17856 generated by GNU Autoconf 2.62. Invocation command line was
17858 CONFIG_FILES = $CONFIG_FILES
17859 CONFIG_HEADERS = $CONFIG_HEADERS
17860 CONFIG_LINKS = $CONFIG_LINKS
17861 CONFIG_COMMANDS = $CONFIG_COMMANDS
17862 $ $0 $@
17864 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17867 _ACEOF
17869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17870 # Files that config.status was made for.
17871 config_files="$ac_config_files"
17872 config_headers="$ac_config_headers"
17873 config_commands="$ac_config_commands"
17875 _ACEOF
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878 ac_cs_usage="\
17879 \`$as_me' instantiates files from templates according to the
17880 current configuration.
17882 Usage: $0 [OPTIONS] [FILE]...
17884 -h, --help print this help, then exit
17885 -V, --version print version number and configuration settings, then exit
17886 -q, --quiet do not print progress messages
17887 -d, --debug don't remove temporary files
17888 --recheck update $as_me by reconfiguring in the same conditions
17889 --file=FILE[:TEMPLATE]
17890 instantiate the configuration file FILE
17891 --header=FILE[:TEMPLATE]
17892 instantiate the configuration header FILE
17894 Configuration files:
17895 $config_files
17897 Configuration headers:
17898 $config_headers
17900 Configuration commands:
17901 $config_commands
17903 Report bugs to <bug-autoconf@gnu.org>."
17905 _ACEOF
17906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17907 ac_cs_version="\\
17908 config.status
17909 configured by $0, generated by GNU Autoconf 2.62,
17910 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17912 Copyright (C) 2008 Free Software Foundation, Inc.
17913 This config.status script is free software; the Free Software Foundation
17914 gives unlimited permission to copy, distribute and modify it."
17916 ac_pwd='$ac_pwd'
17917 srcdir='$srcdir'
17918 INSTALL='$INSTALL'
17919 MKDIR_P='$MKDIR_P'
17920 AWK='$AWK'
17921 test -n "\$AWK" || AWK=awk
17922 _ACEOF
17924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17925 # The default lists apply if the user does not specify any file.
17926 ac_need_defaults=:
17927 while test $# != 0
17929 case $1 in
17930 --*=*)
17931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17933 ac_shift=:
17936 ac_option=$1
17937 ac_optarg=$2
17938 ac_shift=shift
17940 esac
17942 case $ac_option in
17943 # Handling of the options.
17944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17945 ac_cs_recheck=: ;;
17946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17947 $as_echo "$ac_cs_version"; exit ;;
17948 --debug | --debu | --deb | --de | --d | -d )
17949 debug=: ;;
17950 --file | --fil | --fi | --f )
17951 $ac_shift
17952 case $ac_optarg in
17953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17954 esac
17955 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17956 ac_need_defaults=false;;
17957 --header | --heade | --head | --hea )
17958 $ac_shift
17959 case $ac_optarg in
17960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17961 esac
17962 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17963 ac_need_defaults=false;;
17964 --he | --h)
17965 # Conflict between --help and --header
17966 { $as_echo "$as_me: error: ambiguous option: $1
17967 Try \`$0 --help' for more information." >&2
17968 { (exit 1); exit 1; }; };;
17969 --help | --hel | -h )
17970 $as_echo "$ac_cs_usage"; exit ;;
17971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17973 ac_cs_silent=: ;;
17975 # This is an error.
17976 -*) { $as_echo "$as_me: error: unrecognized option: $1
17977 Try \`$0 --help' for more information." >&2
17978 { (exit 1); exit 1; }; } ;;
17980 *) ac_config_targets="$ac_config_targets $1"
17981 ac_need_defaults=false ;;
17983 esac
17984 shift
17985 done
17987 ac_configure_extra_args=
17989 if $ac_cs_silent; then
17990 exec 6>/dev/null
17991 ac_configure_extra_args="$ac_configure_extra_args --silent"
17994 _ACEOF
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 if \$ac_cs_recheck; then
17997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17998 shift
17999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18000 CONFIG_SHELL='$SHELL'
18001 export CONFIG_SHELL
18002 exec "\$@"
18005 _ACEOF
18006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18007 exec 5>>config.log
18009 echo
18010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18011 ## Running $as_me. ##
18012 _ASBOX
18013 $as_echo "$ac_log"
18014 } >&5
18016 _ACEOF
18017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18019 # INIT-COMMANDS
18021 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18024 # The HP-UX ksh and POSIX shell print the target directory to stdout
18025 # if CDPATH is set.
18026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18028 sed_quote_subst='$sed_quote_subst'
18029 double_quote_subst='$double_quote_subst'
18030 delay_variable_subst='$delay_variable_subst'
18031 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18032 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18033 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18034 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18035 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18036 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18037 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18038 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18039 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18040 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18041 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18042 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18043 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18044 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18045 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18046 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18047 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18048 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18049 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18050 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18051 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18052 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18053 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18054 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18055 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18056 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18057 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18058 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18059 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18060 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18061 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18062 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18063 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18064 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18065 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18066 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18067 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18068 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18069 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18070 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18071 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18072 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18073 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18074 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18075 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18076 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18077 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18078 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18079 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18080 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18081 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18082 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18083 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18084 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18085 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18086 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18087 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18088 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18089 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18090 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18091 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18092 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18093 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18094 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18095 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18096 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18097 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18098 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18099 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18100 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18101 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18102 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18103 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18104 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18105 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18106 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18107 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18108 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18109 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18110 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18111 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18112 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18113 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18114 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18115 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18116 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18117 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18118 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18119 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18120 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18121 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18122 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18123 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18124 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18125 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18126 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18127 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18128 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18129 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18130 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18131 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18132 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18133 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18134 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18135 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18136 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18137 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18138 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18139 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18140 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18141 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18142 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18143 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18144 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18145 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18146 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18147 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18149 LTCC='$LTCC'
18150 LTCFLAGS='$LTCFLAGS'
18151 compiler='$compiler_DEFAULT'
18153 # Quote evaled strings.
18154 for var in SED \
18155 GREP \
18156 EGREP \
18157 FGREP \
18158 LD \
18159 NM \
18160 LN_S \
18161 lt_SP2NL \
18162 lt_NL2SP \
18163 reload_flag \
18164 deplibs_check_method \
18165 file_magic_cmd \
18166 AR \
18167 AR_FLAGS \
18168 STRIP \
18169 RANLIB \
18170 CC \
18171 CFLAGS \
18172 compiler \
18173 lt_cv_sys_global_symbol_pipe \
18174 lt_cv_sys_global_symbol_to_cdecl \
18175 lt_cv_sys_global_symbol_to_c_name_address \
18176 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18177 SHELL \
18178 ECHO \
18179 lt_prog_compiler_no_builtin_flag \
18180 lt_prog_compiler_wl \
18181 lt_prog_compiler_pic \
18182 lt_prog_compiler_static \
18183 lt_cv_prog_compiler_c_o \
18184 need_locks \
18185 DSYMUTIL \
18186 NMEDIT \
18187 LIPO \
18188 OTOOL \
18189 OTOOL64 \
18190 shrext_cmds \
18191 export_dynamic_flag_spec \
18192 whole_archive_flag_spec \
18193 compiler_needs_object \
18194 with_gnu_ld \
18195 allow_undefined_flag \
18196 no_undefined_flag \
18197 hardcode_libdir_flag_spec \
18198 hardcode_libdir_flag_spec_ld \
18199 hardcode_libdir_separator \
18200 fix_srcfile_path \
18201 exclude_expsyms \
18202 include_expsyms \
18203 file_list_spec \
18204 variables_saved_for_relink \
18205 libname_spec \
18206 library_names_spec \
18207 soname_spec \
18208 finish_eval \
18209 old_striplib \
18210 striplib; do
18211 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18212 *[\\\\\\\`\\"\\\$]*)
18213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18218 esac
18219 done
18221 # Double-quote double-evaled strings.
18222 for var in reload_cmds \
18223 old_postinstall_cmds \
18224 old_postuninstall_cmds \
18225 old_archive_cmds \
18226 extract_expsyms_cmds \
18227 old_archive_from_new_cmds \
18228 old_archive_from_expsyms_cmds \
18229 archive_cmds \
18230 archive_expsym_cmds \
18231 module_cmds \
18232 module_expsym_cmds \
18233 export_symbols_cmds \
18234 prelink_cmds \
18235 postinstall_cmds \
18236 postuninstall_cmds \
18237 finish_cmds \
18238 sys_lib_search_path_spec \
18239 sys_lib_dlsearch_path_spec; do
18240 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18241 *[\\\\\\\`\\"\\\$]*)
18242 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18245 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18247 esac
18248 done
18250 # Fix-up fallback echo if it was mangled by the above quoting rules.
18251 case \$lt_ECHO in
18252 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18254 esac
18256 ac_aux_dir='$ac_aux_dir'
18257 xsi_shell='$xsi_shell'
18258 lt_shell_append='$lt_shell_append'
18260 # See if we are running on zsh, and set the options which allow our
18261 # commands through without removal of \ escapes INIT.
18262 if test -n "\${ZSH_VERSION+set}" ; then
18263 setopt NO_GLOB_SUBST
18267 PACKAGE='$PACKAGE'
18268 VERSION='$VERSION'
18269 TIMESTAMP='$TIMESTAMP'
18270 RM='$RM'
18271 ofile='$ofile'
18276 _ACEOF
18278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18280 # Handling of arguments.
18281 for ac_config_target in $ac_config_targets
18283 case $ac_config_target in
18284 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18285 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18286 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18288 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18289 "src/sigsegv.h") CONFIG_FILES="$CONFIG_FILES src/sigsegv.h" ;;
18290 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18292 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18293 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18294 { (exit 1); exit 1; }; };;
18295 esac
18296 done
18299 # If the user did not use the arguments to specify the items to instantiate,
18300 # then the envvar interface is used. Set only those that are not.
18301 # We use the long form for the default assignment because of an extremely
18302 # bizarre bug on SunOS 4.1.3.
18303 if $ac_need_defaults; then
18304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18309 # Have a temporary directory for convenience. Make it in the build tree
18310 # simply because there is no reason against having it here, and in addition,
18311 # creating and moving files from /tmp can sometimes cause problems.
18312 # Hook for its removal unless debugging.
18313 # Note that there is a small window in which the directory will not be cleaned:
18314 # after its creation but before its name has been assigned to `$tmp'.
18315 $debug ||
18317 tmp=
18318 trap 'exit_status=$?
18319 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18321 trap '{ (exit 1); exit 1; }' 1 2 13 15
18323 # Create a (secure) tmp directory for tmp files.
18326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18327 test -n "$tmp" && test -d "$tmp"
18328 } ||
18330 tmp=./conf$$-$RANDOM
18331 (umask 077 && mkdir "$tmp")
18332 } ||
18334 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18335 { (exit 1); exit 1; }
18338 # Set up the scripts for CONFIG_FILES section.
18339 # No need to generate them if there are no CONFIG_FILES.
18340 # This happens for instance with `./config.status config.h'.
18341 if test -n "$CONFIG_FILES"; then
18344 ac_cr=' '
18345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18347 ac_cs_awk_cr='\\r'
18348 else
18349 ac_cs_awk_cr=$ac_cr
18352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18353 _ACEOF
18357 echo "cat >conf$$subs.awk <<_ACEOF" &&
18358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18359 echo "_ACEOF"
18360 } >conf$$subs.sh ||
18361 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18363 { (exit 1); exit 1; }; }
18364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18365 ac_delim='%!_!# '
18366 for ac_last_try in false false false false false :; do
18367 . ./conf$$subs.sh ||
18368 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18369 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18370 { (exit 1); exit 1; }; }
18372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
18373 break
18374 elif $ac_last_try; then
18375 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18376 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18377 { (exit 1); exit 1; }; }
18378 else
18379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18381 done
18382 rm -f conf$$subs.sh
18384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18385 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18386 _ACEOF
18387 sed -n '
18389 s/^/S["/; s/!.*/"]=/
18392 s/^[^!]*!//
18393 :repl
18394 t repl
18395 s/'"$ac_delim"'$//
18396 t delim
18399 s/\(.\{148\}\).*/\1/
18400 t more1
18401 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18404 b repl
18405 :more1
18406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18409 s/.\{148\}//
18410 t nl
18411 :delim
18413 s/\(.\{148\}\).*/\1/
18414 t more2
18415 s/["\\]/\\&/g; s/^/"/; s/$/"/
18418 :more2
18419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18422 s/.\{148\}//
18423 t delim
18424 ' <conf$$subs.awk | sed '
18425 /^[^""]/{
18427 s/\n//
18429 ' >>$CONFIG_STATUS || ac_write_fail=1
18430 rm -f conf$$subs.awk
18431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18432 _ACAWK
18433 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18434 for (key in S) S_is_set[key] = 1
18435 FS = "\a"
18439 line = $ 0
18440 nfields = split(line, field, "@")
18441 substed = 0
18442 len = length(field[1])
18443 for (i = 2; i < nfields; i++) {
18444 key = field[i]
18445 keylen = length(key)
18446 if (S_is_set[key]) {
18447 value = S[key]
18448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18449 len += length(value) + length(field[++i])
18450 substed = 1
18451 } else
18452 len += 1 + keylen
18455 print line
18458 _ACAWK
18459 _ACEOF
18460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18461 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18463 else
18465 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18466 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18467 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18468 { (exit 1); exit 1; }; }
18469 _ACEOF
18471 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18472 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18473 # trailing colons and then remove the whole line if VPATH becomes empty
18474 # (actually we leave an empty line to preserve line numbers).
18475 if test "x$srcdir" = x.; then
18476 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18477 s/:*\$(srcdir):*/:/
18478 s/:*\${srcdir}:*/:/
18479 s/:*@srcdir@:*/:/
18480 s/^\([^=]*=[ ]*\):*/\1/
18481 s/:*$//
18482 s/^[^=]*=[ ]*$//
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 fi # test -n "$CONFIG_FILES"
18489 # Set up the scripts for CONFIG_HEADERS section.
18490 # No need to generate them if there are no CONFIG_HEADERS.
18491 # This happens for instance with `./config.status Makefile'.
18492 if test -n "$CONFIG_HEADERS"; then
18493 cat >"$tmp/defines.awk" <<\_ACAWK ||
18494 BEGIN {
18495 _ACEOF
18497 # Transform confdefs.h into an awk script `defines.awk', embedded as
18498 # here-document in config.status, that substitutes the proper values into
18499 # config.h.in to produce config.h.
18501 # Create a delimiter string that does not exist in confdefs.h, to ease
18502 # handling of long lines.
18503 ac_delim='%!_!# '
18504 for ac_last_try in false false :; do
18505 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18506 if test -z "$ac_t"; then
18507 break
18508 elif $ac_last_try; then
18509 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18510 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18511 { (exit 1); exit 1; }; }
18512 else
18513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18515 done
18517 # For the awk script, D is an array of macro values keyed by name,
18518 # likewise P contains macro parameters if any. Preserve backslash
18519 # newline sequences.
18521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18522 sed -n '
18523 s/.\{148\}/&'"$ac_delim"'/g
18524 t rset
18525 :rset
18526 s/^[ ]*#[ ]*define[ ][ ]*/ /
18527 t def
18529 :def
18530 s/\\$//
18531 t bsnl
18532 s/["\\]/\\&/g
18533 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18534 D["\1"]=" \3"/p
18535 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18537 :bsnl
18538 s/["\\]/\\&/g
18539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18540 D["\1"]=" \3\\\\\\n"\\/p
18541 t cont
18542 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18543 t cont
18545 :cont
18547 s/.\{148\}/&'"$ac_delim"'/g
18548 t clear
18549 :clear
18550 s/\\$//
18551 t bsnlc
18552 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18554 :bsnlc
18555 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18556 b cont
18557 ' <confdefs.h | sed '
18558 s/'"$ac_delim"'/"\\\
18559 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18562 for (key in D) D_is_set[key] = 1
18563 FS = "\a"
18565 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18566 line = \$ 0
18567 split(line, arg, " ")
18568 if (arg[1] == "#") {
18569 defundef = arg[2]
18570 mac1 = arg[3]
18571 } else {
18572 defundef = substr(arg[1], 2)
18573 mac1 = arg[2]
18575 split(mac1, mac2, "(") #)
18576 macro = mac2[1]
18577 if (D_is_set[macro]) {
18578 # Preserve the white space surrounding the "#".
18579 prefix = substr(line, 1, index(line, defundef) - 1)
18580 print prefix "define", macro P[macro] D[macro]
18581 next
18582 } else {
18583 # Replace #undef with comments. This is necessary, for example,
18584 # in the case of _POSIX_SOURCE, which is predefined and required
18585 # on some systems where configure will not decide to define it.
18586 if (defundef == "undef") {
18587 print "/*", line, "*/"
18588 next
18592 { print }
18593 _ACAWK
18594 _ACEOF
18595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18596 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18597 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18598 { (exit 1); exit 1; }; }
18599 fi # test -n "$CONFIG_HEADERS"
18602 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18603 shift
18604 for ac_tag
18606 case $ac_tag in
18607 :[FHLC]) ac_mode=$ac_tag; continue;;
18608 esac
18609 case $ac_mode$ac_tag in
18610 :[FHL]*:*);;
18611 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18612 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18613 { (exit 1); exit 1; }; };;
18614 :[FH]-) ac_tag=-:-;;
18615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18616 esac
18617 ac_save_IFS=$IFS
18618 IFS=:
18619 set x $ac_tag
18620 IFS=$ac_save_IFS
18621 shift
18622 ac_file=$1
18623 shift
18625 case $ac_mode in
18626 :L) ac_source=$1;;
18627 :[FH])
18628 ac_file_inputs=
18629 for ac_f
18631 case $ac_f in
18632 -) ac_f="$tmp/stdin";;
18633 *) # Look for the file first in the build tree, then in the source tree
18634 # (if the path is not absolute). The absolute path cannot be DOS-style,
18635 # because $ac_f cannot contain `:'.
18636 test -f "$ac_f" ||
18637 case $ac_f in
18638 [\\/$]*) false;;
18639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18640 esac ||
18641 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18642 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18643 { (exit 1); exit 1; }; };;
18644 esac
18645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18646 ac_file_inputs="$ac_file_inputs '$ac_f'"
18647 done
18649 # Let's still pretend it is `configure' which instantiates (i.e., don't
18650 # use $as_me), people would be surprised to read:
18651 # /* config.h. Generated by config.status. */
18652 configure_input='Generated from '`
18653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18654 `' by configure.'
18655 if test x"$ac_file" != x-; then
18656 configure_input="$ac_file. $configure_input"
18657 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18658 $as_echo "$as_me: creating $ac_file" >&6;}
18660 # Neutralize special characters interpreted by sed in replacement strings.
18661 case $configure_input in #(
18662 *\&* | *\|* | *\\* )
18663 ac_sed_conf_input=`$as_echo "$configure_input" |
18664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18665 *) ac_sed_conf_input=$configure_input;;
18666 esac
18668 case $ac_tag in
18669 *:-:* | *:-) cat >"$tmp/stdin" \
18670 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18671 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18672 { (exit 1); exit 1; }; } ;;
18673 esac
18675 esac
18677 ac_dir=`$as_dirname -- "$ac_file" ||
18678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18679 X"$ac_file" : 'X\(//\)[^/]' \| \
18680 X"$ac_file" : 'X\(//\)$' \| \
18681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18682 $as_echo X"$ac_file" |
18683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18684 s//\1/
18687 /^X\(\/\/\)[^/].*/{
18688 s//\1/
18691 /^X\(\/\/\)$/{
18692 s//\1/
18695 /^X\(\/\).*/{
18696 s//\1/
18699 s/.*/./; q'`
18700 { as_dir="$ac_dir"
18701 case $as_dir in #(
18702 -*) as_dir=./$as_dir;;
18703 esac
18704 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18705 as_dirs=
18706 while :; do
18707 case $as_dir in #(
18708 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18709 *) as_qdir=$as_dir;;
18710 esac
18711 as_dirs="'$as_qdir' $as_dirs"
18712 as_dir=`$as_dirname -- "$as_dir" ||
18713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18714 X"$as_dir" : 'X\(//\)[^/]' \| \
18715 X"$as_dir" : 'X\(//\)$' \| \
18716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18717 $as_echo X"$as_dir" |
18718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18719 s//\1/
18722 /^X\(\/\/\)[^/].*/{
18723 s//\1/
18726 /^X\(\/\/\)$/{
18727 s//\1/
18730 /^X\(\/\).*/{
18731 s//\1/
18734 s/.*/./; q'`
18735 test -d "$as_dir" && break
18736 done
18737 test -z "$as_dirs" || eval "mkdir $as_dirs"
18738 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18739 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18740 { (exit 1); exit 1; }; }; }
18741 ac_builddir=.
18743 case "$ac_dir" in
18744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18746 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18747 # A ".." for each directory in $ac_dir_suffix.
18748 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18749 case $ac_top_builddir_sub in
18750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18752 esac ;;
18753 esac
18754 ac_abs_top_builddir=$ac_pwd
18755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18756 # for backward compatibility:
18757 ac_top_builddir=$ac_top_build_prefix
18759 case $srcdir in
18760 .) # We are building in place.
18761 ac_srcdir=.
18762 ac_top_srcdir=$ac_top_builddir_sub
18763 ac_abs_top_srcdir=$ac_pwd ;;
18764 [\\/]* | ?:[\\/]* ) # Absolute name.
18765 ac_srcdir=$srcdir$ac_dir_suffix;
18766 ac_top_srcdir=$srcdir
18767 ac_abs_top_srcdir=$srcdir ;;
18768 *) # Relative name.
18769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18770 ac_top_srcdir=$ac_top_build_prefix$srcdir
18771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18772 esac
18773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18776 case $ac_mode in
18779 # CONFIG_FILE
18782 case $INSTALL in
18783 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18784 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18785 esac
18786 ac_MKDIR_P=$MKDIR_P
18787 case $MKDIR_P in
18788 [\\/$]* | ?:[\\/]* ) ;;
18789 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18790 esac
18791 _ACEOF
18793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18794 # If the template does not know about datarootdir, expand it.
18795 # FIXME: This hack should be removed a few years after 2.60.
18796 ac_datarootdir_hack=; ac_datarootdir_seen=
18798 ac_sed_dataroot='
18799 /datarootdir/ {
18803 /@datadir@/p
18804 /@docdir@/p
18805 /@infodir@/p
18806 /@localedir@/p
18807 /@mandir@/p
18809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18810 *datarootdir*) ac_datarootdir_seen=yes;;
18811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18812 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18814 _ACEOF
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18816 ac_datarootdir_hack='
18817 s&@datadir@&$datadir&g
18818 s&@docdir@&$docdir&g
18819 s&@infodir@&$infodir&g
18820 s&@localedir@&$localedir&g
18821 s&@mandir@&$mandir&g
18822 s&\\\${datarootdir}&$datarootdir&g' ;;
18823 esac
18824 _ACEOF
18826 # Neutralize VPATH when `$srcdir' = `.'.
18827 # Shell code in configure.ac might set extrasub.
18828 # FIXME: do we really want to maintain this feature?
18829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 ac_sed_extra="$ac_vpsub
18831 $extrasub
18832 _ACEOF
18833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18836 s|@configure_input@|$ac_sed_conf_input|;t t
18837 s&@top_builddir@&$ac_top_builddir_sub&;t t
18838 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18839 s&@srcdir@&$ac_srcdir&;t t
18840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18841 s&@top_srcdir@&$ac_top_srcdir&;t t
18842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18843 s&@builddir@&$ac_builddir&;t t
18844 s&@abs_builddir@&$ac_abs_builddir&;t t
18845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18846 s&@INSTALL@&$ac_INSTALL&;t t
18847 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18848 $ac_datarootdir_hack
18850 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18851 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18853 { (exit 1); exit 1; }; }
18855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18856 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18858 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18859 which seems to be undefined. Please make sure it is defined." >&5
18860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18861 which seems to be undefined. Please make sure it is defined." >&2;}
18863 rm -f "$tmp/stdin"
18864 case $ac_file in
18865 -) cat "$tmp/out" && rm -f "$tmp/out";;
18866 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18867 esac \
18868 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18869 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18870 { (exit 1); exit 1; }; }
18874 # CONFIG_HEADER
18876 if test x"$ac_file" != x-; then
18878 $as_echo "/* $configure_input */" \
18879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18880 } >"$tmp/config.h" \
18881 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18882 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18883 { (exit 1); exit 1; }; }
18884 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18885 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18887 else
18888 rm -f "$ac_file"
18889 mv "$tmp/config.h" "$ac_file" \
18890 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18891 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18892 { (exit 1); exit 1; }; }
18894 else
18895 $as_echo "/* $configure_input */" \
18896 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18897 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18898 $as_echo "$as_me: error: could not create -" >&2;}
18899 { (exit 1); exit 1; }; }
18901 # Compute "$ac_file"'s index in $config_headers.
18902 _am_arg="$ac_file"
18903 _am_stamp_count=1
18904 for _am_header in $config_headers :; do
18905 case $_am_header in
18906 $_am_arg | $_am_arg:* )
18907 break ;;
18909 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18910 esac
18911 done
18912 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18913 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914 X"$_am_arg" : 'X\(//\)[^/]' \| \
18915 X"$_am_arg" : 'X\(//\)$' \| \
18916 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18917 $as_echo X"$_am_arg" |
18918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18919 s//\1/
18922 /^X\(\/\/\)[^/].*/{
18923 s//\1/
18926 /^X\(\/\/\)$/{
18927 s//\1/
18930 /^X\(\/\).*/{
18931 s//\1/
18934 s/.*/./; q'`/stamp-h$_am_stamp_count
18937 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18938 $as_echo "$as_me: executing $ac_file commands" >&6;}
18940 esac
18943 case $ac_file$ac_mode in
18944 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18945 # Strip MF so we end up with the name of the file.
18946 mf=`echo "$mf" | sed -e 's/:.*$//'`
18947 # Check whether this is an Automake generated Makefile or not.
18948 # We used to match only the files named `Makefile.in', but
18949 # some people rename them; so instead we look at the file content.
18950 # Grep'ing the first line is not enough: some people post-process
18951 # each Makefile.in and add a new line on top of each file to say so.
18952 # Grep'ing the whole file is not good either: AIX grep has a line
18953 # limit of 2048, but all sed's we know have understand at least 4000.
18954 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18955 dirpart=`$as_dirname -- "$mf" ||
18956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18957 X"$mf" : 'X\(//\)[^/]' \| \
18958 X"$mf" : 'X\(//\)$' \| \
18959 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18960 $as_echo X"$mf" |
18961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18962 s//\1/
18965 /^X\(\/\/\)[^/].*/{
18966 s//\1/
18969 /^X\(\/\/\)$/{
18970 s//\1/
18973 /^X\(\/\).*/{
18974 s//\1/
18977 s/.*/./; q'`
18978 else
18979 continue
18981 # Extract the definition of DEPDIR, am__include, and am__quote
18982 # from the Makefile without running `make'.
18983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18984 test -z "$DEPDIR" && continue
18985 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18986 test -z "am__include" && continue
18987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18988 # When using ansi2knr, U may be empty or an underscore; expand it
18989 U=`sed -n 's/^U = //p' < "$mf"`
18990 # Find all dependency output files, they are included files with
18991 # $(DEPDIR) in their names. We invoke sed twice because it is the
18992 # simplest approach to changing $(DEPDIR) to its actual value in the
18993 # expansion.
18994 for file in `sed -n "
18995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18997 # Make sure the directory exists.
18998 test -f "$dirpart/$file" && continue
18999 fdir=`$as_dirname -- "$file" ||
19000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19001 X"$file" : 'X\(//\)[^/]' \| \
19002 X"$file" : 'X\(//\)$' \| \
19003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19004 $as_echo X"$file" |
19005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19006 s//\1/
19009 /^X\(\/\/\)[^/].*/{
19010 s//\1/
19013 /^X\(\/\/\)$/{
19014 s//\1/
19017 /^X\(\/\).*/{
19018 s//\1/
19021 s/.*/./; q'`
19022 { as_dir=$dirpart/$fdir
19023 case $as_dir in #(
19024 -*) as_dir=./$as_dir;;
19025 esac
19026 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19027 as_dirs=
19028 while :; do
19029 case $as_dir in #(
19030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19031 *) as_qdir=$as_dir;;
19032 esac
19033 as_dirs="'$as_qdir' $as_dirs"
19034 as_dir=`$as_dirname -- "$as_dir" ||
19035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$as_dir" : 'X\(//\)[^/]' \| \
19037 X"$as_dir" : 'X\(//\)$' \| \
19038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19039 $as_echo X"$as_dir" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 s//\1/
19044 /^X\(\/\/\)[^/].*/{
19045 s//\1/
19048 /^X\(\/\/\)$/{
19049 s//\1/
19052 /^X\(\/\).*/{
19053 s//\1/
19056 s/.*/./; q'`
19057 test -d "$as_dir" && break
19058 done
19059 test -z "$as_dirs" || eval "mkdir $as_dirs"
19060 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19061 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19062 { (exit 1); exit 1; }; }; }
19063 # echo "creating $dirpart/$file"
19064 echo '# dummy' > "$dirpart/$file"
19065 done
19066 done
19068 "libtool":C)
19070 # See if we are running on zsh, and set the options which allow our
19071 # commands through without removal of \ escapes.
19072 if test -n "${ZSH_VERSION+set}" ; then
19073 setopt NO_GLOB_SUBST
19076 cfgfile="${ofile}T"
19077 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19078 $RM "$cfgfile"
19080 cat <<_LT_EOF >> "$cfgfile"
19081 #! $SHELL
19083 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19084 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19085 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19086 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19088 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19089 # 2006, 2007, 2008 Free Software Foundation, Inc.
19090 # Written by Gordon Matzigkeit, 1996
19092 # This file is part of GNU Libtool.
19094 # GNU Libtool is free software; you can redistribute it and/or
19095 # modify it under the terms of the GNU General Public License as
19096 # published by the Free Software Foundation; either version 2 of
19097 # the License, or (at your option) any later version.
19099 # As a special exception to the GNU General Public License,
19100 # if you distribute this file as part of a program or library that
19101 # is built using GNU Libtool, you may include this file under the
19102 # same distribution terms that you use for the rest of that program.
19104 # GNU Libtool is distributed in the hope that it will be useful,
19105 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19107 # GNU General Public License for more details.
19109 # You should have received a copy of the GNU General Public License
19110 # along with GNU Libtool; see the file COPYING. If not, a copy
19111 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19112 # obtained by writing to the Free Software Foundation, Inc.,
19113 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19116 # The names of the tagged configurations supported by this script.
19117 available_tags=""
19119 # ### BEGIN LIBTOOL CONFIG
19121 # Which release of libtool.m4 was used?
19122 macro_version=$macro_version
19123 macro_revision=$macro_revision
19125 # Whether or not to build shared libraries.
19126 build_libtool_libs=$enable_shared
19128 # Whether or not to build static libraries.
19129 build_old_libs=$enable_static
19131 # What type of objects to build.
19132 pic_mode=$pic_mode
19134 # Whether or not to optimize for fast installation.
19135 fast_install=$enable_fast_install
19137 # The host system.
19138 host_alias=$host_alias
19139 host=$host
19140 host_os=$host_os
19142 # The build system.
19143 build_alias=$build_alias
19144 build=$build
19145 build_os=$build_os
19147 # A sed program that does not truncate output.
19148 SED=$lt_SED
19150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19151 Xsed="\$SED -e 1s/^X//"
19153 # A grep program that handles long lines.
19154 GREP=$lt_GREP
19156 # An ERE matcher.
19157 EGREP=$lt_EGREP
19159 # A literal string matcher.
19160 FGREP=$lt_FGREP
19162 # A BSD- or MS-compatible name lister.
19163 NM=$lt_NM
19165 # Whether we need soft or hard links.
19166 LN_S=$lt_LN_S
19168 # What is the maximum length of a command?
19169 max_cmd_len=$max_cmd_len
19171 # Object file suffix (normally "o").
19172 objext=$ac_objext
19174 # Executable file suffix (normally "").
19175 exeext=$exeext
19177 # whether the shell understands "unset".
19178 lt_unset=$lt_unset
19180 # turn spaces into newlines.
19181 SP2NL=$lt_lt_SP2NL
19183 # turn newlines into spaces.
19184 NL2SP=$lt_lt_NL2SP
19186 # How to create reloadable object files.
19187 reload_flag=$lt_reload_flag
19188 reload_cmds=$lt_reload_cmds
19190 # Method to check whether dependent libraries are shared objects.
19191 deplibs_check_method=$lt_deplibs_check_method
19193 # Command to use when deplibs_check_method == "file_magic".
19194 file_magic_cmd=$lt_file_magic_cmd
19196 # The archiver.
19197 AR=$lt_AR
19198 AR_FLAGS=$lt_AR_FLAGS
19200 # A symbol stripping program.
19201 STRIP=$lt_STRIP
19203 # Commands used to install an old-style archive.
19204 RANLIB=$lt_RANLIB
19205 old_postinstall_cmds=$lt_old_postinstall_cmds
19206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19208 # A C compiler.
19209 LTCC=$lt_CC
19211 # LTCC compiler flags.
19212 LTCFLAGS=$lt_CFLAGS
19214 # Take the output of nm and produce a listing of raw symbols and C names.
19215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19217 # Transform the output of nm in a proper C declaration.
19218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19220 # Transform the output of nm in a C name address pair.
19221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19223 # Transform the output of nm in a C name address pair when lib prefix is needed.
19224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19226 # The name of the directory that contains temporary libtool files.
19227 objdir=$objdir
19229 # Shell to use when invoking shell scripts.
19230 SHELL=$lt_SHELL
19232 # An echo program that does not interpret backslashes.
19233 ECHO=$lt_ECHO
19235 # Used to examine libraries when file_magic_cmd begins with "file".
19236 MAGIC_CMD=$MAGIC_CMD
19238 # Must we lock files when doing compilation?
19239 need_locks=$lt_need_locks
19241 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19242 DSYMUTIL=$lt_DSYMUTIL
19244 # Tool to change global to local symbols on Mac OS X.
19245 NMEDIT=$lt_NMEDIT
19247 # Tool to manipulate fat objects and archives on Mac OS X.
19248 LIPO=$lt_LIPO
19250 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19251 OTOOL=$lt_OTOOL
19253 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19254 OTOOL64=$lt_OTOOL64
19256 # Old archive suffix (normally "a").
19257 libext=$libext
19259 # Shared library suffix (normally ".so").
19260 shrext_cmds=$lt_shrext_cmds
19262 # The commands to extract the exported symbol list from a shared archive.
19263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19265 # Variables whose values should be saved in libtool wrapper scripts and
19266 # restored at link time.
19267 variables_saved_for_relink=$lt_variables_saved_for_relink
19269 # Do we need the "lib" prefix for modules?
19270 need_lib_prefix=$need_lib_prefix
19272 # Do we need a version for libraries?
19273 need_version=$need_version
19275 # Library versioning type.
19276 version_type=$version_type
19278 # Shared library runtime path variable.
19279 runpath_var=$runpath_var
19281 # Shared library path variable.
19282 shlibpath_var=$shlibpath_var
19284 # Is shlibpath searched before the hard-coded library search path?
19285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19287 # Format of library name prefix.
19288 libname_spec=$lt_libname_spec
19290 # List of archive names. First name is the real one, the rest are links.
19291 # The last name is the one that the linker finds with -lNAME
19292 library_names_spec=$lt_library_names_spec
19294 # The coded name of the library, if different from the real name.
19295 soname_spec=$lt_soname_spec
19297 # Command to use after installation of a shared archive.
19298 postinstall_cmds=$lt_postinstall_cmds
19300 # Command to use after uninstallation of a shared archive.
19301 postuninstall_cmds=$lt_postuninstall_cmds
19303 # Commands used to finish a libtool library installation in a directory.
19304 finish_cmds=$lt_finish_cmds
19306 # As "finish_cmds", except a single script fragment to be evaled but
19307 # not shown.
19308 finish_eval=$lt_finish_eval
19310 # Whether we should hardcode library paths into libraries.
19311 hardcode_into_libs=$hardcode_into_libs
19313 # Compile-time system search path for libraries.
19314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19316 # Run-time system search path for libraries.
19317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19319 # Whether dlopen is supported.
19320 dlopen_support=$enable_dlopen
19322 # Whether dlopen of programs is supported.
19323 dlopen_self=$enable_dlopen_self
19325 # Whether dlopen of statically linked programs is supported.
19326 dlopen_self_static=$enable_dlopen_self_static
19328 # Commands to strip libraries.
19329 old_striplib=$lt_old_striplib
19330 striplib=$lt_striplib
19333 # The linker used to build libraries.
19334 LD=$lt_LD
19336 # Commands used to build an old-style archive.
19337 old_archive_cmds=$lt_old_archive_cmds
19339 # A language specific compiler.
19340 CC=$lt_compiler
19342 # Is the compiler the GNU compiler?
19343 with_gcc=$GCC
19345 # Compiler flag to turn off builtin functions.
19346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19348 # How to pass a linker flag through the compiler.
19349 wl=$lt_lt_prog_compiler_wl
19351 # Additional compiler flags for building library objects.
19352 pic_flag=$lt_lt_prog_compiler_pic
19354 # Compiler flag to prevent dynamic linking.
19355 link_static_flag=$lt_lt_prog_compiler_static
19357 # Does compiler simultaneously support -c and -o options?
19358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19360 # Whether or not to add -lc for building shared libraries.
19361 build_libtool_need_lc=$archive_cmds_need_lc
19363 # Whether or not to disallow shared libs when runtime libs are static.
19364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19366 # Compiler flag to allow reflexive dlopens.
19367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19369 # Compiler flag to generate shared objects directly from archives.
19370 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19372 # Whether the compiler copes with passing no objects directly.
19373 compiler_needs_object=$lt_compiler_needs_object
19375 # Create an old-style archive from a shared archive.
19376 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19378 # Create a temporary old-style archive to link instead of a shared archive.
19379 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19381 # Commands used to build a shared archive.
19382 archive_cmds=$lt_archive_cmds
19383 archive_expsym_cmds=$lt_archive_expsym_cmds
19385 # Commands used to build a loadable module if different from building
19386 # a shared archive.
19387 module_cmds=$lt_module_cmds
19388 module_expsym_cmds=$lt_module_expsym_cmds
19390 # Whether we are building with GNU ld or not.
19391 with_gnu_ld=$lt_with_gnu_ld
19393 # Flag that allows shared libraries with undefined symbols to be built.
19394 allow_undefined_flag=$lt_allow_undefined_flag
19396 # Flag that enforces no undefined symbols.
19397 no_undefined_flag=$lt_no_undefined_flag
19399 # Flag to hardcode \$libdir into a binary during linking.
19400 # This must work even if \$libdir does not exist
19401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19403 # If ld is used when linking, flag to hardcode \$libdir into a binary
19404 # during linking. This must work even if \$libdir does not exist.
19405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19407 # Whether we need a single "-rpath" flag with a separated argument.
19408 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19411 # DIR into the resulting binary.
19412 hardcode_direct=$hardcode_direct
19414 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19415 # DIR into the resulting binary and the resulting library dependency is
19416 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19417 # library is relocated.
19418 hardcode_direct_absolute=$hardcode_direct_absolute
19420 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19421 # into the resulting binary.
19422 hardcode_minus_L=$hardcode_minus_L
19424 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19425 # into the resulting binary.
19426 hardcode_shlibpath_var=$hardcode_shlibpath_var
19428 # Set to "yes" if building a shared library automatically hardcodes DIR
19429 # into the library and all subsequent libraries and executables linked
19430 # against it.
19431 hardcode_automatic=$hardcode_automatic
19433 # Set to yes if linker adds runtime paths of dependent libraries
19434 # to runtime path list.
19435 inherit_rpath=$inherit_rpath
19437 # Whether libtool must link a program against all its dependency libraries.
19438 link_all_deplibs=$link_all_deplibs
19440 # Fix the shell variable \$srcfile for the compiler.
19441 fix_srcfile_path=$lt_fix_srcfile_path
19443 # Set to "yes" if exported symbols are required.
19444 always_export_symbols=$always_export_symbols
19446 # The commands to list exported symbols.
19447 export_symbols_cmds=$lt_export_symbols_cmds
19449 # Symbols that should not be listed in the preloaded symbols.
19450 exclude_expsyms=$lt_exclude_expsyms
19452 # Symbols that must always be exported.
19453 include_expsyms=$lt_include_expsyms
19455 # Commands necessary for linking programs (against libraries) with templates.
19456 prelink_cmds=$lt_prelink_cmds
19458 # Specify filename containing input files.
19459 file_list_spec=$lt_file_list_spec
19461 # How to hardcode a shared library path into an executable.
19462 hardcode_action=$hardcode_action
19464 # ### END LIBTOOL CONFIG
19466 _LT_EOF
19468 case $host_os in
19469 aix3*)
19470 cat <<\_LT_EOF >> "$cfgfile"
19471 # AIX sometimes has problems with the GCC collect2 program. For some
19472 # reason, if we set the COLLECT_NAMES environment variable, the problems
19473 # vanish in a puff of smoke.
19474 if test "X${COLLECT_NAMES+set}" != Xset; then
19475 COLLECT_NAMES=
19476 export COLLECT_NAMES
19478 _LT_EOF
19480 esac
19483 ltmain="$ac_aux_dir/ltmain.sh"
19486 # We use sed instead of cat because bash on DJGPP gets confused if
19487 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19488 # text mode, it properly converts lines to CR/LF. This bash problem
19489 # is reportedly fixed, but why not run on old versions too?
19490 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19491 || (rm -f "$cfgfile"; exit 1)
19493 case $xsi_shell in
19494 yes)
19495 cat << \_LT_EOF >> "$cfgfile"
19497 # func_dirname file append nondir_replacement
19498 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19499 # otherwise set result to NONDIR_REPLACEMENT.
19500 func_dirname ()
19502 case ${1} in
19503 */*) func_dirname_result="${1%/*}${2}" ;;
19504 * ) func_dirname_result="${3}" ;;
19505 esac
19508 # func_basename file
19509 func_basename ()
19511 func_basename_result="${1##*/}"
19514 # func_dirname_and_basename file append nondir_replacement
19515 # perform func_basename and func_dirname in a single function
19516 # call:
19517 # dirname: Compute the dirname of FILE. If nonempty,
19518 # add APPEND to the result, otherwise set result
19519 # to NONDIR_REPLACEMENT.
19520 # value returned in "$func_dirname_result"
19521 # basename: Compute filename of FILE.
19522 # value retuned in "$func_basename_result"
19523 # Implementation must be kept synchronized with func_dirname
19524 # and func_basename. For efficiency, we do not delegate to
19525 # those functions but instead duplicate the functionality here.
19526 func_dirname_and_basename ()
19528 case ${1} in
19529 */*) func_dirname_result="${1%/*}${2}" ;;
19530 * ) func_dirname_result="${3}" ;;
19531 esac
19532 func_basename_result="${1##*/}"
19535 # func_stripname prefix suffix name
19536 # strip PREFIX and SUFFIX off of NAME.
19537 # PREFIX and SUFFIX must not contain globbing or regex special
19538 # characters, hashes, percent signs, but SUFFIX may contain a leading
19539 # dot (in which case that matches only a dot).
19540 func_stripname ()
19542 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19543 # positional parameters, so assign one to ordinary parameter first.
19544 func_stripname_result=${3}
19545 func_stripname_result=${func_stripname_result#"${1}"}
19546 func_stripname_result=${func_stripname_result%"${2}"}
19549 # func_opt_split
19550 func_opt_split ()
19552 func_opt_split_opt=${1%%=*}
19553 func_opt_split_arg=${1#*=}
19556 # func_lo2o object
19557 func_lo2o ()
19559 case ${1} in
19560 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19561 *) func_lo2o_result=${1} ;;
19562 esac
19565 # func_xform libobj-or-source
19566 func_xform ()
19568 func_xform_result=${1%.*}.lo
19571 # func_arith arithmetic-term...
19572 func_arith ()
19574 func_arith_result=$(( $* ))
19577 # func_len string
19578 # STRING may not start with a hyphen.
19579 func_len ()
19581 func_len_result=${#1}
19584 _LT_EOF
19586 *) # Bourne compatible functions.
19587 cat << \_LT_EOF >> "$cfgfile"
19589 # func_dirname file append nondir_replacement
19590 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19591 # otherwise set result to NONDIR_REPLACEMENT.
19592 func_dirname ()
19594 # Extract subdirectory from the argument.
19595 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19596 if test "X$func_dirname_result" = "X${1}"; then
19597 func_dirname_result="${3}"
19598 else
19599 func_dirname_result="$func_dirname_result${2}"
19603 # func_basename file
19604 func_basename ()
19606 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19610 # func_stripname prefix suffix name
19611 # strip PREFIX and SUFFIX off of NAME.
19612 # PREFIX and SUFFIX must not contain globbing or regex special
19613 # characters, hashes, percent signs, but SUFFIX may contain a leading
19614 # dot (in which case that matches only a dot).
19615 # func_strip_suffix prefix name
19616 func_stripname ()
19618 case ${2} in
19619 .*) func_stripname_result=`$ECHO "X${3}" \
19620 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19621 *) func_stripname_result=`$ECHO "X${3}" \
19622 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19623 esac
19626 # sed scripts:
19627 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19628 my_sed_long_arg='1s/^-[^=]*=//'
19630 # func_opt_split
19631 func_opt_split ()
19633 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19634 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19637 # func_lo2o object
19638 func_lo2o ()
19640 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19643 # func_xform libobj-or-source
19644 func_xform ()
19646 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19649 # func_arith arithmetic-term...
19650 func_arith ()
19652 func_arith_result=`expr "$@"`
19655 # func_len string
19656 # STRING may not start with a hyphen.
19657 func_len ()
19659 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19662 _LT_EOF
19663 esac
19665 case $lt_shell_append in
19666 yes)
19667 cat << \_LT_EOF >> "$cfgfile"
19669 # func_append var value
19670 # Append VALUE to the end of shell variable VAR.
19671 func_append ()
19673 eval "$1+=\$2"
19675 _LT_EOF
19678 cat << \_LT_EOF >> "$cfgfile"
19680 # func_append var value
19681 # Append VALUE to the end of shell variable VAR.
19682 func_append ()
19684 eval "$1=\$$1\$2"
19687 _LT_EOF
19689 esac
19692 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19693 || (rm -f "$cfgfile"; exit 1)
19695 mv -f "$cfgfile" "$ofile" ||
19696 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19697 chmod +x "$ofile"
19701 esac
19702 done # for ac_tag
19705 { (exit 0); exit 0; }
19706 _ACEOF
19707 chmod +x $CONFIG_STATUS
19708 ac_clean_files=$ac_clean_files_save
19710 test $ac_write_fail = 0 ||
19711 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19712 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19713 { (exit 1); exit 1; }; }
19716 # configure is writing to config.log, and then calls config.status.
19717 # config.status does its own redirection, appending to config.log.
19718 # Unfortunately, on DOS this fails, as config.log is still kept open
19719 # by configure, so config.status won't be able to write to it; its
19720 # output is simply discarded. So we exec the FD to /dev/null,
19721 # effectively closing config.log, so it can be properly (re)opened and
19722 # appended to by config.status. When coming back to configure, we
19723 # need to make the FD available again.
19724 if test "$no_create" != yes; then
19725 ac_cs_success=:
19726 ac_config_status_args=
19727 test "$silent" = yes &&
19728 ac_config_status_args="$ac_config_status_args --quiet"
19729 exec 5>/dev/null
19730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19731 exec 5>>config.log
19732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19733 # would make configure fail if this is the last instruction.
19734 $ac_cs_success || { (exit 1); exit 1; }
19736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19737 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
19738 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
19742 { echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& 6