switch4g: completely re-writen
[tomato.git] / release / src / router / mysql / configure.mipsel
blob98d8d1258552edd93e3573a7bc98aaafb2deb347
1 #! /bin/sh
4 # Any changes to the available character sets must also go into
5 # include/config-win.h
14 DEFAULT_CHARSET=latin1
15 CHARSETS_AVAILABLE="binary armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257 cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8 greek hebrew hp8 keybcs2 koi8r koi8u latin1 latin2 latin5 latin7 macce macroman sjis swe7 tis620 ucs2 ujis utf8"
16 CHARSETS_COMPLEX="big5 cp1250 cp932 eucjpms euckr gb2312 gbk latin1 latin2 sjis tis620 ucs2 ujis utf8"
18 # Guess values for system-dependent variables and create Makefiles.
19 # Generated by GNU Autoconf 2.63 for MySQL Server 5.1.73.
21 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
22 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
23 # This configure script is free software; the Free Software Foundation
24 # gives unlimited permission to copy, distribute and modify it.
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
29 # Be more Bourne compatible
30 DUALCASE=1; export DUALCASE # for MKS sh
31 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32 emulate sh
33 NULLCMD=:
34 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35 # is contrary to our usage. Disable this feature.
36 alias -g '${1+"$@"}'='"$@"'
37 setopt NO_GLOB_SUBST
38 else
39 case `(set -o) 2>/dev/null` in
40 *posix*) set -o posix ;;
41 esac
48 # PATH needs CR
49 # Avoid depending upon Character Ranges.
50 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53 as_cr_digits='0123456789'
54 as_cr_alnum=$as_cr_Letters$as_cr_digits
56 as_nl='
58 export as_nl
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
64 as_echo='printf %s\n'
65 as_echo_n='printf %s'
66 else
67 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
68 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
69 as_echo_n='/usr/ucb/echo -n'
70 else
71 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72 as_echo_n_body='eval
73 arg=$1;
74 case $arg in
75 *"$as_nl"*)
76 expr "X$arg" : "X\\(.*\\)$as_nl";
77 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78 esac;
79 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
81 export as_echo_n_body
82 as_echo_n='sh -c $as_echo_n_body as_echo'
84 export as_echo_body
85 as_echo='sh -c $as_echo_body as_echo'
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 PATH_SEPARATOR=:
91 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
92 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
93 PATH_SEPARATOR=';'
97 # Support unset when possible.
98 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
99 as_unset=unset
100 else
101 as_unset=false
105 # IFS
106 # We need space, tab and new line, in precisely that order. Quoting is
107 # there to prevent editors from complaining about space-tab.
108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
109 # splitting by setting IFS to empty value.)
110 IFS=" "" $as_nl"
112 # Find who we are. Look in the path if we contain no directory separator.
113 case $0 in
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
118 IFS=$as_save_IFS
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
122 IFS=$as_save_IFS
125 esac
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x; then
129 as_myself=$0
131 if test ! -f "$as_myself"; then
132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 { (exit 1); exit 1; }
136 # Work around bugs in pre-3.0 UWIN ksh.
137 for as_var in ENV MAIL MAILPATH
138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
139 done
140 PS1='$ '
141 PS2='> '
142 PS4='+ '
144 # NLS nuisances.
145 LC_ALL=C
146 export LC_ALL
147 LANGUAGE=C
148 export LANGUAGE
150 # Required to use basename.
151 if expr a : '\(a\)' >/dev/null 2>&1 &&
152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
153 as_expr=expr
154 else
155 as_expr=false
158 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
159 as_basename=basename
160 else
161 as_basename=false
165 # Name of the executable.
166 as_me=`$as_basename -- "$0" ||
167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
168 X"$0" : 'X\(//\)$' \| \
169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
170 $as_echo X/"$0" |
171 sed '/^.*\/\([^/][^/]*\)\/*$/{
172 s//\1/
175 /^X\/\(\/\/\)$/{
176 s//\1/
179 /^X\/\(\/\).*/{
180 s//\1/
183 s/.*/./; q'`
185 # CDPATH.
186 $as_unset CDPATH
189 if test "x$CONFIG_SHELL" = x; then
190 if (eval ":") 2>/dev/null; then
191 as_have_required=yes
192 else
193 as_have_required=no
196 if test $as_have_required = yes && (eval ":
197 (as_func_return () {
198 (exit \$1)
200 as_func_success () {
201 as_func_return 0
203 as_func_failure () {
204 as_func_return 1
206 as_func_ret_success () {
207 return 0
209 as_func_ret_failure () {
210 return 1
213 exitcode=0
214 if as_func_success; then
216 else
217 exitcode=1
218 echo as_func_success failed.
221 if as_func_failure; then
222 exitcode=1
223 echo as_func_failure succeeded.
226 if as_func_ret_success; then
228 else
229 exitcode=1
230 echo as_func_ret_success failed.
233 if as_func_ret_failure; then
234 exitcode=1
235 echo as_func_ret_failure succeeded.
238 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
240 else
241 exitcode=1
242 echo positional parameters were not saved.
245 test \$exitcode = 0) || { (exit 1); exit 1; }
248 as_lineno_1=\$LINENO
249 as_lineno_2=\$LINENO
250 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
251 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
252 ") 2> /dev/null; then
254 else
255 as_candidate_shells=
256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
257 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
259 IFS=$as_save_IFS
260 test -z "$as_dir" && as_dir=.
261 case $as_dir in
263 for as_base in sh bash ksh sh5; do
264 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
265 done;;
266 esac
267 done
268 IFS=$as_save_IFS
271 for as_shell in $as_candidate_shells $SHELL; do
272 # Try only shells that exist, to save several forks.
273 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
274 { ("$as_shell") 2> /dev/null <<\_ASEOF
275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
276 emulate sh
277 NULLCMD=:
278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
279 # is contrary to our usage. Disable this feature.
280 alias -g '${1+"$@"}'='"$@"'
281 setopt NO_GLOB_SUBST
282 else
283 case `(set -o) 2>/dev/null` in
284 *posix*) set -o posix ;;
285 esac
291 _ASEOF
292 }; then
293 CONFIG_SHELL=$as_shell
294 as_have_required=yes
295 if { "$as_shell" 2> /dev/null <<\_ASEOF
296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
297 emulate sh
298 NULLCMD=:
299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
300 # is contrary to our usage. Disable this feature.
301 alias -g '${1+"$@"}'='"$@"'
302 setopt NO_GLOB_SUBST
303 else
304 case `(set -o) 2>/dev/null` in
305 *posix*) set -o posix ;;
306 esac
312 (as_func_return () {
313 (exit $1)
315 as_func_success () {
316 as_func_return 0
318 as_func_failure () {
319 as_func_return 1
321 as_func_ret_success () {
322 return 0
324 as_func_ret_failure () {
325 return 1
328 exitcode=0
329 if as_func_success; then
331 else
332 exitcode=1
333 echo as_func_success failed.
336 if as_func_failure; then
337 exitcode=1
338 echo as_func_failure succeeded.
341 if as_func_ret_success; then
343 else
344 exitcode=1
345 echo as_func_ret_success failed.
348 if as_func_ret_failure; then
349 exitcode=1
350 echo as_func_ret_failure succeeded.
353 if ( set x; as_func_ret_success y && test x = "$1" ); then
355 else
356 exitcode=1
357 echo positional parameters were not saved.
360 test $exitcode = 0) || { (exit 1); exit 1; }
363 as_lineno_1=$LINENO
364 as_lineno_2=$LINENO
365 test "x$as_lineno_1" != "x$as_lineno_2" &&
366 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
368 _ASEOF
369 }; then
370 break
375 done
377 if test "x$CONFIG_SHELL" != x; then
378 for as_var in BASH_ENV ENV
379 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
380 done
381 export CONFIG_SHELL
382 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
386 if test $as_have_required = no; then
387 echo This script requires a shell more modern than all the
388 echo shells that I found on your system. Please install a
389 echo modern shell, or manually run the script under such a
390 echo shell if you do have one.
391 { (exit 1); exit 1; }
401 (eval "as_func_return () {
402 (exit \$1)
404 as_func_success () {
405 as_func_return 0
407 as_func_failure () {
408 as_func_return 1
410 as_func_ret_success () {
411 return 0
413 as_func_ret_failure () {
414 return 1
417 exitcode=0
418 if as_func_success; then
420 else
421 exitcode=1
422 echo as_func_success failed.
425 if as_func_failure; then
426 exitcode=1
427 echo as_func_failure succeeded.
430 if as_func_ret_success; then
432 else
433 exitcode=1
434 echo as_func_ret_success failed.
437 if as_func_ret_failure; then
438 exitcode=1
439 echo as_func_ret_failure succeeded.
442 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
444 else
445 exitcode=1
446 echo positional parameters were not saved.
449 test \$exitcode = 0") || {
450 echo No shell found that supports shell functions.
451 echo Please tell bug-autoconf@gnu.org about your system,
452 echo including any error possibly output before this message.
453 echo This can help us improve future autoconf versions.
454 echo Configuration will now proceed without shell functions.
459 as_lineno_1=$LINENO
460 as_lineno_2=$LINENO
461 test "x$as_lineno_1" != "x$as_lineno_2" &&
462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
465 # uniformly replaced by the line number. The first 'sed' inserts a
466 # line-number line after each line using $LINENO; the second 'sed'
467 # does the real work. The second script uses 'N' to pair each
468 # line-number line with the line containing $LINENO, and appends
469 # trailing '-' during substitution so that $LINENO is not a special
470 # case at line end.
471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
472 # scripts with optimization help from Paolo Bonzini. Blame Lee
473 # E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
482 :lineno
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
491 { (exit 1); exit 1; }; }
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
503 as_dirname=dirname
504 else
505 as_dirname=false
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in
510 -n*)
511 case `echo 'x\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 *) ECHO_C='\c';;
514 esac;;
516 ECHO_N='-n';;
517 esac
518 if expr a : '\(a\)' >/dev/null 2>&1 &&
519 test "X`expr 00001 : '.*\(...\)'`" = X001; then
520 as_expr=expr
521 else
522 as_expr=false
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -p'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -p'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -p'
546 else
547 as_ln_s='cp -p'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p=:
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 if test -x / >/dev/null 2>&1; then
560 as_test_x='test -x'
561 else
562 if ls -dL / >/dev/null 2>&1; then
563 as_ls_L_option=L
564 else
565 as_ls_L_option=
567 as_test_x='
568 eval sh -c '\''
569 if test -d "$1"; then
570 test -d "$1/.";
571 else
572 case $1 in
573 -*)set "./$1";;
574 esac;
575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
576 ???[sx]*):;;*)false;;esac;fi
577 '\'' sh
580 as_executable_p=$as_test_x
582 # Sed expression to map a string onto a valid CPP name.
583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585 # Sed expression to map a string onto a valid variable name.
586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 # Check that we are running under the correct shell.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 case X$lt_ECHO in
595 X*--fallback-echo)
596 # Remove one level of quotation (which was required for Make).
597 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
599 esac
601 ECHO=${lt_ECHO-echo}
602 if test "X$1" = X--no-reexec; then
603 # Discard the --no-reexec flag, and continue.
604 shift
605 elif test "X$1" = X--fallback-echo; then
606 # Avoid inline document here, it may be left over
608 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
609 # Yippee, $ECHO works!
611 else
612 # Restart under the correct shell.
613 exec $SHELL "$0" --no-reexec ${1+"$@"}
616 if test "X$1" = X--fallback-echo; then
617 # used as fallback echo
618 shift
619 cat <<_LT_EOF
621 _LT_EOF
622 exit 0
625 # The HP-UX ksh and POSIX shell print the target directory to stdout
626 # if CDPATH is set.
627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
629 if test -z "$lt_ECHO"; then
630 if test "X${echo_test_string+set}" != Xset; then
631 # find a string as large as possible, as long as the shell can cope with it
632 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
633 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
634 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
635 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
636 then
637 break
639 done
642 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
646 else
647 # The Solaris, AIX, and Digital Unix default echo programs unquote
648 # backslashes. This makes it impossible to quote backslashes using
649 # echo "$something" | sed 's/\\/\\\\/g'
651 # So, first we look for a working echo in the user's PATH.
653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
654 for dir in $PATH /usr/ucb; do
655 IFS="$lt_save_ifs"
656 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
657 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
658 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 ECHO="$dir/echo"
661 break
663 done
664 IFS="$lt_save_ifs"
666 if test "X$ECHO" = Xecho; then
667 # We didn't find a better echo, so look for alternatives.
668 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # This shell has a builtin print -r that does the trick.
672 ECHO='print -r'
673 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
674 test "X$CONFIG_SHELL" != X/bin/ksh; then
675 # If we have ksh, try running configure again with it.
676 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
677 export ORIGINAL_CONFIG_SHELL
678 CONFIG_SHELL=/bin/ksh
679 export CONFIG_SHELL
680 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
681 else
682 # Try using printf.
683 ECHO='printf %s\n'
684 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
685 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 # Cool, printf works
689 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
690 test "X$echo_testing_string" = 'X\t' &&
691 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
692 test "X$echo_testing_string" = "X$echo_test_string"; then
693 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
694 export CONFIG_SHELL
695 SHELL="$CONFIG_SHELL"
696 export SHELL
697 ECHO="$CONFIG_SHELL $0 --fallback-echo"
698 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
699 test "X$echo_testing_string" = 'X\t' &&
700 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
701 test "X$echo_testing_string" = "X$echo_test_string"; then
702 ECHO="$CONFIG_SHELL $0 --fallback-echo"
703 else
704 # maybe with a smaller string...
705 prev=:
707 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
708 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
709 then
710 break
712 prev="$cmd"
713 done
715 if test "$prev" != 'sed 50q "$0"'; then
716 echo_test_string=`eval $prev`
717 export echo_test_string
718 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
719 else
720 # Oops. We lost completely, so just stick with echo.
721 ECHO=echo
729 # Copy echo and quote the copy suitably for passing to libtool from
730 # the Makefile, instead of quoting the original, which is used later.
731 lt_ECHO=$ECHO
732 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
733 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
739 exec 7<&0 </dev/null 6>&1
741 # Name of the host.
742 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
743 # so uname gets run too.
744 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
747 # Initializations.
749 ac_default_prefix=/usr/local
750 ac_clean_files=
751 ac_config_libobj_dir=.
752 LIBOBJS=
753 cross_compiling=no
754 subdirs=
755 MFLAGS=
756 MAKEFLAGS=
757 SHELL=${CONFIG_SHELL-/bin/sh}
759 # Identity of this package.
760 PACKAGE_NAME='MySQL Server'
761 PACKAGE_TARNAME='mysql'
762 PACKAGE_VERSION='5.1.73'
763 PACKAGE_STRING='MySQL Server 5.1.73'
764 PACKAGE_BUGREPORT=''
766 ac_unique_file="sql/mysqld.cc"
767 # Factoring default headers for most tests.
768 ac_includes_default="\
769 #include <stdio.h>
770 #ifdef HAVE_SYS_TYPES_H
771 # include <sys/types.h>
772 #endif
773 #ifdef HAVE_SYS_STAT_H
774 # include <sys/stat.h>
775 #endif
776 #ifdef STDC_HEADERS
777 # include <stdlib.h>
778 # include <stddef.h>
779 #else
780 # ifdef HAVE_STDLIB_H
781 # include <stdlib.h>
782 # endif
783 #endif
784 #ifdef HAVE_STRING_H
785 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
786 # include <memory.h>
787 # endif
788 # include <string.h>
789 #endif
790 #ifdef HAVE_STRINGS_H
791 # include <strings.h>
792 #endif
793 #ifdef HAVE_INTTYPES_H
794 # include <inttypes.h>
795 #endif
796 #ifdef HAVE_STDINT_H
797 # include <stdint.h>
798 #endif
799 #ifdef HAVE_UNISTD_H
800 # include <unistd.h>
801 #endif"
803 ac_header_list=
804 ac_subst_vars='LTLIBOBJS
805 LIBOBJS
806 MAKE_BINARY_DISTRIBUTION_OPTIONS
808 AM_CXXFLAGS
809 AM_CFLAGS
810 sql_union_dirs
811 mysql_plugin_defs
812 mysql_plugin_libs
813 mysql_plugin_dirs
814 server_scripts
815 sql_server
816 sql_server_dirs
817 BUILD_INNODB_TOOLS_FALSE
818 BUILD_INNODB_TOOLS_TRUE
819 NEED_THREAD_FALSE
820 NEED_THREAD_TRUE
821 THREAD_LOBJECTS
822 HAVE_NETWARE_FALSE
823 HAVE_NETWARE_TRUE
824 netware_dir
825 sql_client_dirs
826 STATIC_NSS_FLAGS
827 NON_THREADED_LIBS
828 CLIENT_THREAD_LIBS
829 CLIENT_LIBS
830 THREAD_SAFE_CLIENT_FALSE
831 THREAD_SAFE_CLIENT_TRUE
832 man8_files
833 man1_files
834 man_dirs
835 readline_h_ln_cmd
836 readline_link
837 readline_basedir
838 readline_topdir
839 readline_dir
840 extra_docs
841 docs_dirs
842 libmysqld_dirs
843 tools_dirs
844 condition_dependent_plugin_includes
845 condition_dependent_plugin_links
846 condition_dependent_plugin_objects
847 condition_dependent_plugin_modules
848 mysql_pg_unittest_dirs
849 mysql_se_unittest_dirs
850 mysql_pg_distdirs
851 mysql_pg_dirs
852 mysql_se_distdirs
853 mysql_se_dirs
854 NDB_SIZEOF_LONG_LONG
855 NDB_SIZEOF_LONG
856 NDB_SIZEOF_INT
857 NDB_SIZEOF_SHORT
858 NDB_SIZEOF_CHAR
859 NDB_SIZEOF_CHARP
860 ndb_cxxflags_fix
861 NDB_DEFS
862 ndb_opt_subdirs
863 ndb_bin_am_ldflags
864 ndb_port
865 ndb_transporter_opt_objs
866 ndb_mgmclient_libs
867 ndbcluster_system_libs
868 ndbcluster_libs
869 ndbcluster_includes
870 NDB_VERSION_STATUS
871 NDB_VERSION_BUILD
872 NDB_VERSION_MINOR
873 NDB_VERSION_MAJOR
874 NDB_SHARED_LIB_VERSION
875 NDB_SHARED_LIB_MAJOR_VERSION
876 NDB_LD_VERSION_SCRIPT
877 NDB_SCI_LIBS
878 NDB_SCI_INCLUDES
879 INNODB_DYNAMIC_CFLAGS
880 innodb_system_libs
881 plugin_ndbcluster_shared_target
882 plugin_ndbcluster_static_target
883 plugin_myisammrg_shared_target
884 plugin_myisammrg_static_target
885 plugin_myisam_shared_target
886 plugin_myisam_static_target
887 plugin_innodb_plugin_static_target
888 plugin_innodb_plugin_shared_target
889 plugin_innobase_static_target
890 plugin_innobase_shared_target
891 plugin_heap_shared_target
892 plugin_heap_static_target
893 plugin_federated_static_target
894 plugin_federated_shared_target
895 plugin_example_static_target
896 plugin_example_shared_target
897 plugin_csv_shared_target
898 plugin_csv_static_target
899 plugin_blackhole_static_target
900 plugin_blackhole_shared_target
901 plugin_archive_static_target
902 plugin_archive_shared_target
903 plugin_ftexample_static_target
904 plugin_ftexample_shared_target
905 plugin_daemon_example_static_target
906 plugin_daemon_example_shared_target
907 plugin_partition_shared_target
908 plugin_partition_static_target
909 HAVE_YASSL_FALSE
910 HAVE_YASSL_TRUE
911 openssl_libs
912 openssl_includes
913 yassl_h_ln_cmd
914 yassl_thread_cxxflags
915 yassl_taocrypt_extra_cxxflags
916 yassl_libs
917 yassl_dir
918 LIBEDIT_LOBJECTS
919 TERMCAP_LIB
920 MAKE_SHELL
921 ALLOCA
922 COMPILATION_COMMENT
923 LM_CFLAGS
924 LIB_EXTRA_CCFLAGS
925 MYSQLD_EXTRA_LIBS
926 CLIENT_EXTRA_LDFLAGS
927 MYSQLD_EXTRA_LDFLAGS
928 LIBDL
929 WRAPLIBS
930 ZLIB_INCLUDES
931 ZLIB_DEPS
932 ZLIB_LIBS
933 zlib_dir
934 GETCONF
935 MYSQLD_USER
936 MYSQL_TCP_PORT_DEFAULT
937 MYSQL_TCP_PORT
938 MYSQL_UNIX_ADDR
939 ASSEMBLER_FALSE
940 ASSEMBLER_TRUE
941 ASSEMBLER_sparc64_FALSE
942 ASSEMBLER_sparc64_TRUE
943 ASSEMBLER_sparc32_FALSE
944 ASSEMBLER_sparc32_TRUE
945 ASSEMBLER_x86_FALSE
946 ASSEMBLER_x86_TRUE
947 MYSQL_SERVER_SUFFIX
948 NOINST_LDFLAGS
949 am__fastdepCCAS_FALSE
950 am__fastdepCCAS_TRUE
951 CCASDEPMODE
952 CCASFLAGS
953 CCAS
954 CHECK_PID
955 KILL
956 FIND_PROC
958 ABI_CHECK
959 PERL5
960 PERL
962 DIFF
963 HOSTNAME
964 CHMOD
969 LN_CP_F
971 TARGET_LINUX
972 MYSQLD_DEFAULT_SWITCHES
973 LD_VERSION_SCRIPT
974 ARFLAGS
975 ASFLAGS
976 uname_prog
977 DVIS
978 PDFMANUAL
979 YACC
980 YACC_HEXT
982 CXX_VERSION
983 CC_VERSION
984 CXXCPP
985 am__fastdepCXX_FALSE
986 am__fastdepCXX_TRUE
987 CXXDEPMODE
988 ac_ct_CXX
989 CXXFLAGS
991 DARWIN_MWCC_FALSE
992 DARWIN_MWCC_TRUE
993 CXXLDFLAGS
994 SAVE_CXXLDFLAGS
995 SAVE_LDFLAGS
996 SAVE_CXXFLAGS
997 SAVE_CFLAGS
998 SAVE_ASFLAGS
999 SAVE_CXX
1000 SAVE_CC
1001 CONF_COMMAND
1002 MACHINE_TYPE
1003 SYSTEM_TYPE
1004 AVAILABLE_LANGUAGES
1005 SHARED_LIB_VERSION
1006 SHARED_LIB_MAJOR_VERSION
1007 DOT_FRM_VERSION
1008 PROTOCOL_VERSION
1009 MYSQL_COPYRIGHT_YEAR
1010 MYSQL_PREVIOUS_BASE_VERSION
1011 MYSQL_VERSION_ID
1012 MYSQL_BASE_VERSION
1013 MYSQL_NO_DASH_VERSION
1014 MYSQL_U_SCORE_VERSION
1015 TEST_NDBCLUSTER
1016 MAKEINDEX
1017 PDFLATEX
1018 DOXYGEN
1020 OTOOL64
1021 OTOOL
1022 LIPO
1023 NMEDIT
1024 DSYMUTIL
1025 lt_ECHO
1026 RANLIB
1028 OBJDUMP
1029 LN_S
1031 ac_ct_DUMPBIN
1032 DUMPBIN
1034 FGREP
1035 EGREP
1036 GREP
1038 am__fastdepCC_FALSE
1039 am__fastdepCC_TRUE
1040 CCDEPMODE
1041 AMDEPBACKSLASH
1042 AMDEP_FALSE
1043 AMDEP_TRUE
1044 am__quote
1045 am__include
1046 DEPDIR
1047 OBJEXT
1048 EXEEXT
1049 ac_ct_CC
1050 CPPFLAGS
1051 LDFLAGS
1052 CFLAGS
1054 LIBTOOL
1055 am__untar
1056 am__tar
1057 AMTAR
1058 am__leading_dot
1059 SET_MAKE
1061 mkdir_p
1062 MKDIR_P
1063 INSTALL_STRIP_PROGRAM
1064 STRIP
1065 install_sh
1066 MAKEINFO
1067 AUTOHEADER
1068 AUTOMAKE
1069 AUTOCONF
1070 ACLOCAL
1071 VERSION
1072 PACKAGE
1073 CYGPATH_W
1074 am__isrc
1075 INSTALL_DATA
1076 INSTALL_SCRIPT
1077 INSTALL_PROGRAM
1078 target_os
1079 target_vendor
1080 target_cpu
1081 target
1082 host_os
1083 host_vendor
1084 host_cpu
1085 host
1086 build_os
1087 build_vendor
1088 build_cpu
1089 build
1090 target_alias
1091 host_alias
1092 build_alias
1093 LIBS
1094 ECHO_T
1095 ECHO_N
1096 ECHO_C
1097 DEFS
1098 mandir
1099 localedir
1100 libdir
1101 psdir
1102 pdfdir
1103 dvidir
1104 htmldir
1105 infodir
1106 docdir
1107 oldincludedir
1108 includedir
1109 localstatedir
1110 sharedstatedir
1111 sysconfdir
1112 datadir
1113 datarootdir
1114 libexecdir
1115 sbindir
1116 bindir
1117 program_transform_name
1118 prefix
1119 exec_prefix
1120 PACKAGE_BUGREPORT
1121 PACKAGE_STRING
1122 PACKAGE_VERSION
1123 PACKAGE_TARNAME
1124 PACKAGE_NAME
1125 PATH_SEPARATOR
1126 SHELL'
1127 ac_subst_files=''
1128 ac_user_opts='
1129 enable_option_checking
1130 enable_shared
1131 enable_static
1132 with_pic
1133 enable_fast_install
1134 enable_dependency_tracking
1135 with_gnu_ld
1136 enable_libtool_lock
1137 with_charset
1138 with_collation
1139 with_extra_charsets
1140 with_uca
1141 with_experimental_collations
1142 with_debug
1143 enable_mysql_maintainer_mode
1144 with_system_type
1145 with_machine_type
1146 with_darwin_mwcc
1147 with_other_libc
1148 enable_community_features
1149 with_server_suffix
1150 with_pthread
1151 with_named_thread_libs
1152 with_named_curses_libs
1153 enable_thread_safe_client
1154 enable_assembler
1155 enable_profiling
1156 with_unix_socket_path
1157 with_tcp_port
1158 with_mysqld_user
1159 enable_local_infile
1160 enable_grant_options
1161 enable_largefile
1162 with_zlib_dir
1163 with_libwrap
1164 with_valgrind
1165 enable_debug_sync
1166 with_error_inject
1167 with_fast_mutexes
1168 with_atomic_ops
1169 with_mysqld_ldflags
1170 with_client_ldflags
1171 with_mysqld_libs
1172 with_lib_ccflags
1173 with_low_memory
1174 with_comment
1175 with_big_tables
1176 with_max_indexes
1177 with_ssl
1178 with_plugins
1179 with_ndb_sci
1180 with_ndb_test
1181 with_ndb_docs
1182 with_ndb_port
1183 with_ndb_port_base
1184 with_ndb_debug
1185 with_ndb_ccflags
1186 with_ndb_binlog
1187 with_server
1188 with_embedded_server
1189 with_query_cache
1190 with_geometry
1191 with_embedded_privilege_control
1192 with_mysqlmanager
1193 with_docs
1194 with_man
1195 with_readline
1196 with_libedit
1198 ac_precious_vars='build_alias
1199 host_alias
1200 target_alias
1202 CFLAGS
1203 LDFLAGS
1204 LIBS
1205 CPPFLAGS
1208 CXXFLAGS
1210 CXXCPP
1211 CCAS
1212 CCASFLAGS'
1215 # Initialize some variables set by options.
1216 ac_init_help=
1217 ac_init_version=false
1218 ac_unrecognized_opts=
1219 ac_unrecognized_sep=
1220 # The variables have the same names as the options, with
1221 # dashes changed to underlines.
1222 cache_file=/dev/null
1223 exec_prefix=NONE
1224 no_create=
1225 no_recursion=
1226 prefix=NONE
1227 program_prefix=NONE
1228 program_suffix=NONE
1229 program_transform_name=s,x,x,
1230 silent=
1231 site=
1232 srcdir=
1233 verbose=
1234 x_includes=NONE
1235 x_libraries=NONE
1237 # Installation directory options.
1238 # These are left unexpanded so users can "make install exec_prefix=/foo"
1239 # and all the variables that are supposed to be based on exec_prefix
1240 # by default will actually change.
1241 # Use braces instead of parens because sh, perl, etc. also accept them.
1242 # (The list follows the same order as the GNU Coding Standards.)
1243 bindir='${exec_prefix}/bin'
1244 sbindir='${exec_prefix}/sbin'
1245 libexecdir='${exec_prefix}/libexec'
1246 datarootdir='${prefix}/share'
1247 datadir='${datarootdir}'
1248 sysconfdir='${prefix}/etc'
1249 sharedstatedir='${prefix}/com'
1250 localstatedir='${prefix}/var'
1251 includedir='${prefix}/include'
1252 oldincludedir='/usr/include'
1253 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1254 infodir='${datarootdir}/info'
1255 htmldir='${docdir}'
1256 dvidir='${docdir}'
1257 pdfdir='${docdir}'
1258 psdir='${docdir}'
1259 libdir='${exec_prefix}/lib'
1260 localedir='${datarootdir}/locale'
1261 mandir='${datarootdir}/man'
1263 ac_prev=
1264 ac_dashdash=
1265 for ac_option
1267 # If the previous option needs an argument, assign it.
1268 if test -n "$ac_prev"; then
1269 eval $ac_prev=\$ac_option
1270 ac_prev=
1271 continue
1274 case $ac_option in
1275 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1276 *) ac_optarg=yes ;;
1277 esac
1279 # Accept the important Cygnus configure options, so we can diagnose typos.
1281 case $ac_dashdash$ac_option in
1283 ac_dashdash=yes ;;
1285 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1286 ac_prev=bindir ;;
1287 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288 bindir=$ac_optarg ;;
1290 -build | --build | --buil | --bui | --bu)
1291 ac_prev=build_alias ;;
1292 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293 build_alias=$ac_optarg ;;
1295 -cache-file | --cache-file | --cache-fil | --cache-fi \
1296 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297 ac_prev=cache_file ;;
1298 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300 cache_file=$ac_optarg ;;
1302 --config-cache | -C)
1303 cache_file=config.cache ;;
1305 -datadir | --datadir | --datadi | --datad)
1306 ac_prev=datadir ;;
1307 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308 datadir=$ac_optarg ;;
1310 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311 | --dataroo | --dataro | --datar)
1312 ac_prev=datarootdir ;;
1313 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315 datarootdir=$ac_optarg ;;
1317 -disable-* | --disable-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1322 { (exit 1); exit 1; }; }
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1327 "enable_$ac_useropt"
1328 "*) ;;
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1331 esac
1332 eval enable_$ac_useropt=no ;;
1334 -docdir | --docdir | --docdi | --doc | --do)
1335 ac_prev=docdir ;;
1336 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1337 docdir=$ac_optarg ;;
1339 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1340 ac_prev=dvidir ;;
1341 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1342 dvidir=$ac_optarg ;;
1344 -enable-* | --enable-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1349 { (exit 1); exit 1; }; }
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1354 "enable_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=\$ac_optarg ;;
1361 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1362 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1363 | --exec | --exe | --ex)
1364 ac_prev=exec_prefix ;;
1365 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1366 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1367 | --exec=* | --exe=* | --ex=*)
1368 exec_prefix=$ac_optarg ;;
1370 -gas | --gas | --ga | --g)
1371 # Obsolete; use --with-gas.
1372 with_gas=yes ;;
1374 -help | --help | --hel | --he | -h)
1375 ac_init_help=long ;;
1376 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1377 ac_init_help=recursive ;;
1378 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1379 ac_init_help=short ;;
1381 -host | --host | --hos | --ho)
1382 ac_prev=host_alias ;;
1383 -host=* | --host=* | --hos=* | --ho=*)
1384 host_alias=$ac_optarg ;;
1386 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1387 ac_prev=htmldir ;;
1388 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1389 | --ht=*)
1390 htmldir=$ac_optarg ;;
1392 -includedir | --includedir | --includedi | --included | --include \
1393 | --includ | --inclu | --incl | --inc)
1394 ac_prev=includedir ;;
1395 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1396 | --includ=* | --inclu=* | --incl=* | --inc=*)
1397 includedir=$ac_optarg ;;
1399 -infodir | --infodir | --infodi | --infod | --info | --inf)
1400 ac_prev=infodir ;;
1401 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1402 infodir=$ac_optarg ;;
1404 -libdir | --libdir | --libdi | --libd)
1405 ac_prev=libdir ;;
1406 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1407 libdir=$ac_optarg ;;
1409 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1410 | --libexe | --libex | --libe)
1411 ac_prev=libexecdir ;;
1412 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1413 | --libexe=* | --libex=* | --libe=*)
1414 libexecdir=$ac_optarg ;;
1416 -localedir | --localedir | --localedi | --localed | --locale)
1417 ac_prev=localedir ;;
1418 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1419 localedir=$ac_optarg ;;
1421 -localstatedir | --localstatedir | --localstatedi | --localstated \
1422 | --localstate | --localstat | --localsta | --localst | --locals)
1423 ac_prev=localstatedir ;;
1424 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1425 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1426 localstatedir=$ac_optarg ;;
1428 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1429 ac_prev=mandir ;;
1430 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1431 mandir=$ac_optarg ;;
1433 -nfp | --nfp | --nf)
1434 # Obsolete; use --without-fp.
1435 with_fp=no ;;
1437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1438 | --no-cr | --no-c | -n)
1439 no_create=yes ;;
1441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 no_recursion=yes ;;
1445 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1446 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1447 | --oldin | --oldi | --old | --ol | --o)
1448 ac_prev=oldincludedir ;;
1449 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1450 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1451 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1452 oldincludedir=$ac_optarg ;;
1454 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1455 ac_prev=prefix ;;
1456 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1457 prefix=$ac_optarg ;;
1459 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1460 | --program-pre | --program-pr | --program-p)
1461 ac_prev=program_prefix ;;
1462 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1463 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1464 program_prefix=$ac_optarg ;;
1466 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1467 | --program-suf | --program-su | --program-s)
1468 ac_prev=program_suffix ;;
1469 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1470 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1471 program_suffix=$ac_optarg ;;
1473 -program-transform-name | --program-transform-name \
1474 | --program-transform-nam | --program-transform-na \
1475 | --program-transform-n | --program-transform- \
1476 | --program-transform | --program-transfor \
1477 | --program-transfo | --program-transf \
1478 | --program-trans | --program-tran \
1479 | --progr-tra | --program-tr | --program-t)
1480 ac_prev=program_transform_name ;;
1481 -program-transform-name=* | --program-transform-name=* \
1482 | --program-transform-nam=* | --program-transform-na=* \
1483 | --program-transform-n=* | --program-transform-=* \
1484 | --program-transform=* | --program-transfor=* \
1485 | --program-transfo=* | --program-transf=* \
1486 | --program-trans=* | --program-tran=* \
1487 | --progr-tra=* | --program-tr=* | --program-t=*)
1488 program_transform_name=$ac_optarg ;;
1490 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1491 ac_prev=pdfdir ;;
1492 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1493 pdfdir=$ac_optarg ;;
1495 -psdir | --psdir | --psdi | --psd | --ps)
1496 ac_prev=psdir ;;
1497 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 psdir=$ac_optarg ;;
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 silent=yes ;;
1504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1505 ac_prev=sbindir ;;
1506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1507 | --sbi=* | --sb=*)
1508 sbindir=$ac_optarg ;;
1510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1512 | --sharedst | --shareds | --shared | --share | --shar \
1513 | --sha | --sh)
1514 ac_prev=sharedstatedir ;;
1515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1518 | --sha=* | --sh=*)
1519 sharedstatedir=$ac_optarg ;;
1521 -site | --site | --sit)
1522 ac_prev=site ;;
1523 -site=* | --site=* | --sit=*)
1524 site=$ac_optarg ;;
1526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1527 ac_prev=srcdir ;;
1528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1529 srcdir=$ac_optarg ;;
1531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1532 | --syscon | --sysco | --sysc | --sys | --sy)
1533 ac_prev=sysconfdir ;;
1534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1536 sysconfdir=$ac_optarg ;;
1538 -target | --target | --targe | --targ | --tar | --ta | --t)
1539 ac_prev=target_alias ;;
1540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1541 target_alias=$ac_optarg ;;
1543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1544 verbose=yes ;;
1546 -version | --version | --versio | --versi | --vers | -V)
1547 ac_init_version=: ;;
1549 -with-* | --with-*)
1550 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1551 # Reject names that are not valid shell variable names.
1552 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1553 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1554 { (exit 1); exit 1; }; }
1555 ac_useropt_orig=$ac_useropt
1556 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1559 "with_$ac_useropt"
1560 "*) ;;
1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1562 ac_unrecognized_sep=', ';;
1563 esac
1564 eval with_$ac_useropt=\$ac_optarg ;;
1566 -without-* | --without-*)
1567 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1568 # Reject names that are not valid shell variable names.
1569 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1570 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1571 { (exit 1); exit 1; }; }
1572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1576 "with_$ac_useropt"
1577 "*) ;;
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=no ;;
1583 --x)
1584 # Obsolete; use --with-x.
1585 with_x=yes ;;
1587 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1588 | --x-incl | --x-inc | --x-in | --x-i)
1589 ac_prev=x_includes ;;
1590 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1591 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1592 x_includes=$ac_optarg ;;
1594 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1595 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1596 ac_prev=x_libraries ;;
1597 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1598 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1599 x_libraries=$ac_optarg ;;
1601 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1602 Try \`$0 --help' for more information." >&2
1603 { (exit 1); exit 1; }; }
1606 *=*)
1607 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1608 # Reject names that are not valid shell variable names.
1609 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1610 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1611 { (exit 1); exit 1; }; }
1612 eval $ac_envvar=\$ac_optarg
1613 export $ac_envvar ;;
1616 # FIXME: should be removed in autoconf 3.0.
1617 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1618 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1619 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1620 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1623 esac
1624 done
1626 if test -n "$ac_prev"; then
1627 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1628 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1629 { (exit 1); exit 1; }; }
1632 if test -n "$ac_unrecognized_opts"; then
1633 case $enable_option_checking in
1634 no) ;;
1635 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1636 { (exit 1); exit 1; }; } ;;
1637 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1638 esac
1641 # Check all directory arguments for consistency.
1642 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1643 datadir sysconfdir sharedstatedir localstatedir includedir \
1644 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1645 libdir localedir mandir
1647 eval ac_val=\$$ac_var
1648 # Remove trailing slashes.
1649 case $ac_val in
1650 */ )
1651 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1652 eval $ac_var=\$ac_val;;
1653 esac
1654 # Be sure to have absolute directory names.
1655 case $ac_val in
1656 [\\/$]* | ?:[\\/]* ) continue;;
1657 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1658 esac
1659 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1660 { (exit 1); exit 1; }; }
1661 done
1663 # There might be people who depend on the old broken behavior: `$host'
1664 # used to hold the argument of --host etc.
1665 # FIXME: To remove some day.
1666 build=$build_alias
1667 host=$host_alias
1668 target=$target_alias
1670 # FIXME: To remove some day.
1671 if test "x$host_alias" != x; then
1672 if test "x$build_alias" = x; then
1673 cross_compiling=maybe
1674 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1675 If a cross compiler is detected then cross compile mode will be used." >&2
1676 elif test "x$build_alias" != "x$host_alias"; then
1677 cross_compiling=yes
1681 ac_tool_prefix=
1682 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1684 test "$silent" = yes && exec 6>/dev/null
1687 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1688 ac_ls_di=`ls -di .` &&
1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1690 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1691 { (exit 1); exit 1; }; }
1692 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1693 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1694 { (exit 1); exit 1; }; }
1697 # Find the source files, if location was not specified.
1698 if test -z "$srcdir"; then
1699 ac_srcdir_defaulted=yes
1700 # Try the directory containing this script, then the parent directory.
1701 ac_confdir=`$as_dirname -- "$as_myself" ||
1702 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703 X"$as_myself" : 'X\(//\)[^/]' \| \
1704 X"$as_myself" : 'X\(//\)$' \| \
1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706 $as_echo X"$as_myself" |
1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708 s//\1/
1711 /^X\(\/\/\)[^/].*/{
1712 s//\1/
1715 /^X\(\/\/\)$/{
1716 s//\1/
1719 /^X\(\/\).*/{
1720 s//\1/
1723 s/.*/./; q'`
1724 srcdir=$ac_confdir
1725 if test ! -r "$srcdir/$ac_unique_file"; then
1726 srcdir=..
1728 else
1729 ac_srcdir_defaulted=no
1731 if test ! -r "$srcdir/$ac_unique_file"; then
1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1733 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1734 { (exit 1); exit 1; }; }
1736 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737 ac_abs_confdir=`(
1738 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1739 { (exit 1); exit 1; }; }
1740 pwd)`
1741 # When building in place, set srcdir=.
1742 if test "$ac_abs_confdir" = "$ac_pwd"; then
1743 srcdir=.
1745 # Remove unnecessary trailing slashes from srcdir.
1746 # Double slashes in file names in object file debugging info
1747 # mess up M-x gdb in Emacs.
1748 case $srcdir in
1749 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1750 esac
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_env_${ac_var}_value=\$${ac_var}
1754 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1756 done
1759 # Report the --help message.
1761 if test "$ac_init_help" = "long"; then
1762 # Omit some internal or obsolete options to make the list less imposing.
1763 # This message is too long to be a string in the A/UX 3.1 sh.
1764 cat <<_ACEOF
1765 \`configure' configures MySQL Server 5.1.73 to adapt to many kinds of systems.
1767 Usage: $0 [OPTION]... [VAR=VALUE]...
1769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1770 VAR=VALUE. See below for descriptions of some of the useful variables.
1772 Defaults for the options are specified in brackets.
1774 Configuration:
1775 -h, --help display this help and exit
1776 --help=short display options specific to this package
1777 --help=recursive display the short help of all the included packages
1778 -V, --version display version information and exit
1779 -q, --quiet, --silent do not print \`checking...' messages
1780 --cache-file=FILE cache test results in FILE [disabled]
1781 -C, --config-cache alias for \`--cache-file=config.cache'
1782 -n, --no-create do not create output files
1783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1785 Installation directories:
1786 --prefix=PREFIX install architecture-independent files in PREFIX
1787 [$ac_default_prefix]
1788 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1789 [PREFIX]
1791 By default, \`make install' will install all the files in
1792 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1793 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1794 for instance \`--prefix=\$HOME'.
1796 For better control, use the options below.
1798 Fine tuning of the installation directories:
1799 --bindir=DIR user executables [EPREFIX/bin]
1800 --sbindir=DIR system admin executables [EPREFIX/sbin]
1801 --libexecdir=DIR program executables [EPREFIX/libexec]
1802 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1803 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1804 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1805 --libdir=DIR object code libraries [EPREFIX/lib]
1806 --includedir=DIR C header files [PREFIX/include]
1807 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1808 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1809 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1810 --infodir=DIR info documentation [DATAROOTDIR/info]
1811 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1812 --mandir=DIR man documentation [DATAROOTDIR/man]
1813 --docdir=DIR documentation root [DATAROOTDIR/doc/mysql]
1814 --htmldir=DIR html documentation [DOCDIR]
1815 --dvidir=DIR dvi documentation [DOCDIR]
1816 --pdfdir=DIR pdf documentation [DOCDIR]
1817 --psdir=DIR ps documentation [DOCDIR]
1818 _ACEOF
1820 cat <<\_ACEOF
1822 Program names:
1823 --program-prefix=PREFIX prepend PREFIX to installed program names
1824 --program-suffix=SUFFIX append SUFFIX to installed program names
1825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1827 System types:
1828 --build=BUILD configure for building on BUILD [guessed]
1829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1830 --target=TARGET configure for building compilers for TARGET [HOST]
1831 _ACEOF
1834 if test -n "$ac_init_help"; then
1835 case $ac_init_help in
1836 short | recursive ) echo "Configuration of MySQL Server 5.1.73:";;
1837 esac
1838 cat <<\_ACEOF
1840 Optional Features:
1841 --disable-option-checking ignore unrecognized --enable/--with options
1842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1844 --enable-shared[=PKGS] build shared libraries [default=yes]
1845 --enable-static[=PKGS] build static libraries [default=yes]
1846 --enable-fast-install[=PKGS]
1847 optimize for fast installation [default=yes]
1848 --disable-dependency-tracking speeds up one-time build
1849 --enable-dependency-tracking do not reject slow dependency extractors
1850 --disable-libtool-lock avoid locking (might break parallel builds)
1851 --enable-mysql-maintainer-mode
1852 Enable a MySQL maintainer-specific development
1853 environment
1854 --disable-community-features
1855 Disable additional features provided by the user
1856 community.
1857 --disable-thread-safe-client
1858 Compile the client without threads.
1859 --enable-assembler Use assembler versions of some string
1860 functions if available.
1861 --enable-profiling Build a version with query profiling code (req.
1862 community-features)
1863 --enable-local-infile Enable LOAD DATA LOCAL INFILE (default: disabled)
1864 --disable-grant-options Disables the use of --init-file, --skip-grant-tables and --bootstrap options
1865 --disable-largefile Omit support for large files
1866 --enable-debug-sync Build a version with Debug Sync Facility
1868 Optional Packages:
1869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1871 --with-pic try to use only PIC/non-PIC objects [default=use
1872 both]
1873 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1874 --with-charset=CHARSET
1875 Default character set, use one of:
1876 binary
1877 armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257
1878 cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8
1879 greek hebrew hp8 keybcs2 koi8r koi8u
1880 latin1 latin2 latin5 latin7 macce macroman
1881 sjis swe7 tis620 ucs2 ujis utf8
1882 --with-collation=COLLATION
1883 Default collation
1884 --with-extra-charsets=CHARSET,CHARSET,...
1885 Use charsets in addition to default (none, complex,
1886 all, or a list selected from the above sets)
1887 --without-uca Skip building of the national Unicode collations.
1889 --with-debug[=full] Enable various amounts of debugging support (full
1890 adds a slow memory checker).
1891 --with-system-type Set the system type, like "sun-solaris10"
1892 --with-machine-type Set the machine type, like "powerpc"
1893 --with-darwin-mwcc Use Metrowerks CodeWarrior wrappers on OS X/Darwin
1894 --with-other-libc=DIR Link against libc and other standard libraries
1895 installed in the specified non-standard location
1896 overriding default. Originally added to be able to
1897 link against glibc 2.2 without making the user
1898 upgrade the standard libc installation.
1899 --with-server-suffix Append value to the version string.
1900 --with-pthread Force use of pthread library.
1901 --with-named-thread-libs=ARG
1902 Use specified thread libraries instead of
1903 those automatically found by configure.
1904 --with-named-curses-libs=ARG
1905 Use specified curses libraries instead of
1906 those automatically found by configure.
1907 --with-unix-socket-path=SOCKET
1908 Where to put the unix-domain socket. SOCKET must be
1909 an absolute file name.
1910 --with-tcp-port=port-number
1911 Which port to use for MySQL services (default 3306)
1912 --with-mysqld-user=username
1913 What user the mysqld daemon shall be run as.
1914 --with-zlib-dir=no|bundled|DIR
1915 Provide MySQL with a custom location of compression
1916 library. Given DIR, zlib binary is assumed to be in
1917 $DIR/lib and header files in $DIR/include.
1918 --with-libwrap=DIR Compile in libwrap (tcp_wrappers) support
1919 --with-valgrind Valgrind instrumentation [default=no]
1920 --with-error-inject Enable error injection in MySQL Server
1921 --with-fast-mutexes Compile with fast mutexes (default is disabled)
1922 --with-atomic-ops=rwlocks|smp|up
1923 Implement atomic operations using pthread rwlocks or
1924 atomic CPU instructions for multi-processor
1925 (default) or uniprocessor configuration
1926 --with-mysqld-ldflags Extra linking arguments for mysqld
1927 --with-client-ldflags Extra linking arguments for clients
1928 --with-mysqld-libs Extra libraries to link with for mysqld
1929 --with-lib-ccflags Extra CC options for libraries
1930 --with-low-memory Try to use less memory to compile to avoid
1931 memory limitations.
1932 --with-comment Comment about compilation environment.
1933 --with-big-tables Support tables with more than 4 G rows even on 32
1934 bit platforms
1935 --with-max-indexes=N Sets the maximum number of indexes per table,
1936 default 64
1937 --with-ssl=DIR Include SSL support
1938 --with-plugins=PLUGIN[[[,PLUGIN..]]]
1939 Plugins to include in mysqld. (default is: none)
1940 Must be a configuration name or a comma separated
1941 list of plugins.
1942 Available configurations are: none max max-no-ndb
1943 all.
1944 Available plugins are: partition daemon_example
1945 ftexample archive blackhole csv example federated
1946 heap innobase innodb_plugin myisam myisammrg
1947 ndbcluster.
1948 --without-plugin-PLUGIN Disable the named plugin from being built.
1949 Otherwise, for plugins which are not selected for
1950 inclusion in mysqld will be built dynamically (if
1951 supported)
1952 --with-plugin-PLUGIN Forces the named plugin to be linked into mysqld
1953 statically.
1954 --with-ndb-sci=DIR Provide MySQL with a custom location of sci library.
1955 Given DIR, sci library is assumed to be in $DIR/lib
1956 and header files in $DIR/include.
1958 --with-ndb-test Include the NDB Cluster ndbapi test programs
1960 --with-ndb-docs Include the NDB Cluster ndbapi and mgmapi documentation
1962 --with-ndb-port Port for NDB Cluster management server
1964 --with-ndb-port-base Base port for NDB Cluster transporters
1966 --without-ndb-debug Disable special ndb debug features
1967 --with-ndb-ccflags=CFLAGS
1968 Extra CFLAGS for ndb compile
1970 --without-ndb-binlog Disable ndb binlog
1971 --without-server Only build the client.
1972 --with-embedded-server Build the embedded server (libmysqld).
1973 --without-query-cache Do not build query cache.
1974 --without-geometry Do not build geometry-related parts.
1975 --with-embedded-privilege-control
1976 Build parts to check user's privileges.
1977 Only affects embedded library.
1978 --with-mysqlmanager Build the mysqlmanager binary: yes/no (default:
1979 build if server is built.)
1980 --without-docs Skip building of the documentation.
1981 --without-man Skip building of the man pages.
1982 --without-readline Use system readline instead of bundled copy.
1983 --without-libedit Use system libedit instead of bundled copy.
1985 Some influential environment variables:
1986 CC C compiler command
1987 CFLAGS C compiler flags
1988 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1989 nonstandard directory <lib dir>
1990 LIBS libraries to pass to the linker, e.g. -l<library>
1991 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1992 you have headers in a nonstandard directory <include dir>
1993 CPP C preprocessor
1994 CXX C++ compiler command
1995 CXXFLAGS C++ compiler flags
1996 CXXCPP C++ preprocessor
1997 CCAS assembler compiler command (defaults to CC)
1998 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2000 Use these variables to override the choices made by `configure' or to help
2001 it to find libraries and programs with nonstandard names/locations.
2003 Description of plugins:
2005 === Partition Support ===
2006 Plugin Name: partition
2007 Description: MySQL Partitioning Support
2008 Supports build: static
2009 Configurations: max, max-no-ndb
2011 === Daemon Example Plugin ===
2012 Plugin Name: daemon_example
2013 Description: This is an example plugin daemon.
2014 Supports build: dynamic
2016 === Simple Parser ===
2017 Plugin Name: ftexample
2018 Description: Simple full-text parser plugin
2019 Supports build: dynamic
2021 === Archive Storage Engine ===
2022 Plugin Name: archive
2023 Description: Archive Storage Engine
2024 Supports build: static and dynamic
2025 Configurations: max, max-no-ndb
2027 === Blackhole Storage Engine ===
2028 Plugin Name: blackhole
2029 Description: Basic Write-only Read-never tables
2030 Supports build: static and dynamic
2031 Configurations: max, max-no-ndb
2033 === CSV Storage Engine ===
2034 Plugin Name: csv
2035 Description: Stores tables in text CSV format
2036 Supports build: static
2037 Status: mandatory
2039 === Example Storage Engine ===
2040 Plugin Name: example
2041 Description: Example for Storage Engines for developers
2042 Supports build: dynamic
2043 Configurations: max, max-no-ndb
2045 === Federated Storage Engine ===
2046 Plugin Name: federated
2047 Description: Connects to tables on remote MySQL servers
2048 Supports build: static and dynamic
2049 Configurations: max, max-no-ndb
2051 === Memory Storage Engine ===
2052 Plugin Name: heap
2053 Description: Volatile memory based tables
2054 Supports build: static
2055 Status: mandatory
2057 === InnoDB Storage Engine ===
2058 Plugin Name: innobase
2059 Description: Transactional Tables using InnoDB
2060 Supports build: static and dynamic
2061 Configurations: max, max-no-ndb
2063 === InnoDB Storage Engine ===
2064 Plugin Name: innodb_plugin
2065 Description: Transactional Tables using InnoDB
2066 Supports build: dynamic
2067 Configurations: max, max-no-ndb
2069 === MyISAM Storage Engine ===
2070 Plugin Name: myisam
2071 Description: Traditional non-transactional MySQL tables
2072 Supports build: static
2073 Status: mandatory
2075 === MyISAM MERGE Engine ===
2076 Plugin Name: myisammrg
2077 Description: Merge multiple MySQL tables into one
2078 Supports build: static
2079 Status: mandatory
2081 === Cluster Storage Engine ===
2082 Plugin Name: ndbcluster
2083 Description: High Availability Clustered tables
2084 Supports build: static
2085 Configurations: max
2088 _ACEOF
2089 ac_status=$?
2092 if test "$ac_init_help" = "recursive"; then
2093 # If there are subdirs, report their specific --help.
2094 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2095 test -d "$ac_dir" ||
2096 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2097 continue
2098 ac_builddir=.
2100 case "$ac_dir" in
2101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2104 # A ".." for each directory in $ac_dir_suffix.
2105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2106 case $ac_top_builddir_sub in
2107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2109 esac ;;
2110 esac
2111 ac_abs_top_builddir=$ac_pwd
2112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2113 # for backward compatibility:
2114 ac_top_builddir=$ac_top_build_prefix
2116 case $srcdir in
2117 .) # We are building in place.
2118 ac_srcdir=.
2119 ac_top_srcdir=$ac_top_builddir_sub
2120 ac_abs_top_srcdir=$ac_pwd ;;
2121 [\\/]* | ?:[\\/]* ) # Absolute name.
2122 ac_srcdir=$srcdir$ac_dir_suffix;
2123 ac_top_srcdir=$srcdir
2124 ac_abs_top_srcdir=$srcdir ;;
2125 *) # Relative name.
2126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2127 ac_top_srcdir=$ac_top_build_prefix$srcdir
2128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2129 esac
2130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132 cd "$ac_dir" || { ac_status=$?; continue; }
2133 # Check for guested configure.
2134 if test -f "$ac_srcdir/configure.gnu"; then
2135 echo &&
2136 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2137 elif test -f "$ac_srcdir/configure"; then
2138 echo &&
2139 $SHELL "$ac_srcdir/configure" --help=recursive
2140 else
2141 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2142 fi || ac_status=$?
2143 cd "$ac_pwd" || { ac_status=$?; break; }
2144 done
2147 test -n "$ac_init_help" && exit $ac_status
2148 if $ac_init_version; then
2149 cat <<\_ACEOF
2150 MySQL Server configure 5.1.73
2151 generated by GNU Autoconf 2.63
2153 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2154 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2155 This configure script is free software; the Free Software Foundation
2156 gives unlimited permission to copy, distribute and modify it.
2157 _ACEOF
2158 exit
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2164 It was created by MySQL Server $as_me 5.1.73, which was
2165 generated by GNU Autoconf 2.63. Invocation command line was
2167 $ $0 $@
2169 _ACEOF
2170 exec 5>>config.log
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194 _ASUNAME
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203 IFS=$as_save_IFS
2205 } >&5
2207 cat >&5 <<_ACEOF
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2214 _ACEOF
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2228 for ac_arg
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2241 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2257 ac_configure_args="$ac_configure_args '$ac_arg'"
2259 esac
2260 done
2261 done
2262 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2263 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2273 echo
2275 cat <<\_ASBOX
2276 ## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##
2279 _ASBOX
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) $as_unset $ac_var ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 esac |
2309 sort
2311 echo
2313 cat <<\_ASBOX
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2317 _ASBOX
2318 echo
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2322 case $ac_val in
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 esac
2325 $as_echo "$ac_var='\''$ac_val'\''"
2326 done | sort
2327 echo
2329 if test -n "$ac_subst_files"; then
2330 cat <<\_ASBOX
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2334 _ASBOX
2335 echo
2336 for ac_var in $ac_subst_files
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2347 if test -s confdefs.h; then
2348 cat <<\_ASBOX
2349 ## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##
2352 _ASBOX
2353 echo
2354 cat confdefs.h
2355 echo
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2367 done
2368 ac_signal=0
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 # Predefined preprocessor variables.
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 _ACEOF
2400 # Let the site file select an alternate cache file if it wants to.
2401 # Prefer an explicitly selected file to automatically selected ones.
2402 ac_site_file1=NONE
2403 ac_site_file2=NONE
2404 if test -n "$CONFIG_SITE"; then
2405 ac_site_file1=$CONFIG_SITE
2406 elif test "x$prefix" != xNONE; then
2407 ac_site_file1=$prefix/share/config.site
2408 ac_site_file2=$prefix/etc/config.site
2409 else
2410 ac_site_file1=$ac_default_prefix/share/config.site
2411 ac_site_file2=$ac_default_prefix/etc/config.site
2413 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 test "x$ac_site_file" = xNONE && continue
2416 if test -r "$ac_site_file"; then
2417 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2418 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419 sed 's/^/| /' "$ac_site_file" >&5
2420 . "$ac_site_file"
2422 done
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special
2426 # files actually), so we avoid doing that.
2427 if test -f "$cache_file"; then
2428 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430 case $cache_file in
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2433 esac
2435 else
2436 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438 >$cache_file
2441 ac_header_list="$ac_header_list utime.h"
2442 # Check that the precious variables saved in the cache have kept the same
2443 # value.
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2489 esac
2491 done
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2498 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2499 { (exit 1); exit 1; }; }
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 ac_aux_dir=
2536 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537 if test -f "$ac_dir/install-sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install-sh -c"
2540 break
2541 elif test -f "$ac_dir/install.sh"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/install.sh -c"
2544 break
2545 elif test -f "$ac_dir/shtool"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 break
2550 done
2551 if test -z "$ac_aux_dir"; then
2552 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2553 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2554 { (exit 1); exit 1; }; }
2557 # These three variables are undocumented and unsupported,
2558 # and are intended to be withdrawn in a future Autoconf release.
2559 # They can cause serious problems if a builder's source tree is in a directory
2560 # whose full name contains unusual characters.
2561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2566 # Make sure we can run config.sub.
2567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2568 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2569 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2570 { (exit 1); exit 1; }; }
2572 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2573 $as_echo_n "checking build system type... " >&6; }
2574 if test "${ac_cv_build+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2576 else
2577 ac_build_alias=$build_alias
2578 test "x$ac_build_alias" = x &&
2579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580 test "x$ac_build_alias" = x &&
2581 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2582 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2583 { (exit 1); exit 1; }; }
2584 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2585 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2586 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2587 { (exit 1); exit 1; }; }
2590 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2591 $as_echo "$ac_cv_build" >&6; }
2592 case $ac_cv_build in
2593 *-*-*) ;;
2594 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2595 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2596 { (exit 1); exit 1; }; };;
2597 esac
2598 build=$ac_cv_build
2599 ac_save_IFS=$IFS; IFS='-'
2600 set x $ac_cv_build
2601 shift
2602 build_cpu=$1
2603 build_vendor=$2
2604 shift; shift
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2607 build_os=$*
2608 IFS=$ac_save_IFS
2609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2612 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2613 $as_echo_n "checking host system type... " >&6; }
2614 if test "${ac_cv_host+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test "x$host_alias" = x; then
2618 ac_cv_host=$ac_cv_build
2619 else
2620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2621 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2622 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2623 { (exit 1); exit 1; }; }
2627 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2628 $as_echo "$ac_cv_host" >&6; }
2629 case $ac_cv_host in
2630 *-*-*) ;;
2631 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2632 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2633 { (exit 1); exit 1; }; };;
2634 esac
2635 host=$ac_cv_host
2636 ac_save_IFS=$IFS; IFS='-'
2637 set x $ac_cv_host
2638 shift
2639 host_cpu=$1
2640 host_vendor=$2
2641 shift; shift
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2644 host_os=$*
2645 IFS=$ac_save_IFS
2646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2649 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2650 $as_echo_n "checking target system type... " >&6; }
2651 if test "${ac_cv_target+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test "x$target_alias" = x; then
2655 ac_cv_target=$ac_cv_host
2656 else
2657 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2665 $as_echo "$ac_cv_target" >&6; }
2666 case $ac_cv_target in
2667 *-*-*) ;;
2668 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2669 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2670 { (exit 1); exit 1; }; };;
2671 esac
2672 target=$ac_cv_target
2673 ac_save_IFS=$IFS; IFS='-'
2674 set x $ac_cv_target
2675 shift
2676 target_cpu=$1
2677 target_vendor=$2
2678 shift; shift
2679 # Remember, the first character of IFS is used to create $*,
2680 # except with old shells:
2681 target_os=$*
2682 IFS=$ac_save_IFS
2683 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2686 # The aliases save the names the user supplied, while $host etc.
2687 # will get canonicalized.
2688 test -n "$target_alias" &&
2689 test "$program_prefix$program_suffix$program_transform_name" = \
2690 NONENONEs,x,x, &&
2691 program_prefix=${target_alias}-
2692 # USTAR format gives us the possibility to store longer path names in
2693 # TAR files, the path name is split into two parts, a 155 chacater
2694 # first part and a 100 character second part.
2695 am__api_version='1.10'
2697 # Find a good install program. We prefer a C program (faster),
2698 # so one script is as good as another. But avoid the broken or
2699 # incompatible versions:
2700 # SysV /etc/install, /usr/sbin/install
2701 # SunOS /usr/etc/install
2702 # IRIX /sbin/install
2703 # AIX /bin/install
2704 # AmigaOS /C/install, which installs bootblocks on floppy discs
2705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2708 # OS/2's system install, which has a completely different semantic
2709 # ./install, which can be erroneously created by make from ./install.sh.
2710 # Reject install programs that cannot install multiple files.
2711 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2712 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2713 if test -z "$INSTALL"; then
2714 if test "${ac_cv_path_install+set}" = set; then
2715 $as_echo_n "(cached) " >&6
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 # Account for people who put trailing slashes in PATH elements.
2723 case $as_dir/ in
2724 ./ | .// | /cC/* | \
2725 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2726 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2727 /usr/ucb/* ) ;;
2729 # OSF1 and SCO ODT 3.0 have their own names for install.
2730 # Don't use installbsd from OSF since it installs stuff as root
2731 # by default.
2732 for ac_prog in ginstall scoinst install; do
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2735 if test $ac_prog = install &&
2736 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # AIX install. It has an incompatible calling convention.
2739 elif test $ac_prog = install &&
2740 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # program-specific install script used by HP pwplus--don't use.
2743 else
2744 rm -rf conftest.one conftest.two conftest.dir
2745 echo one > conftest.one
2746 echo two > conftest.two
2747 mkdir conftest.dir
2748 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2749 test -s conftest.one && test -s conftest.two &&
2750 test -s conftest.dir/conftest.one &&
2751 test -s conftest.dir/conftest.two
2752 then
2753 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2754 break 3
2758 done
2759 done
2761 esac
2763 done
2764 IFS=$as_save_IFS
2766 rm -rf conftest.one conftest.two conftest.dir
2769 if test "${ac_cv_path_install+set}" = set; then
2770 INSTALL=$ac_cv_path_install
2771 else
2772 # As a last resort, use the slow shell script. Don't cache a
2773 # value for INSTALL within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the value is a relative name.
2776 INSTALL=$ac_install_sh
2779 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2780 $as_echo "$INSTALL" >&6; }
2782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2783 # It thinks the first close brace ends the variable substitution.
2784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2791 $as_echo_n "checking whether build environment is sane... " >&6; }
2792 # Just in case
2793 sleep 1
2794 echo timestamp > conftest.file
2795 # Do `set' in a subshell so we don't clobber the current shell's
2796 # arguments. Must try -L first in case configure is actually a
2797 # symlink; some systems play weird games with the mod time of symlinks
2798 # (eg FreeBSD returns the mod time of the symlink's containing
2799 # directory).
2800 if (
2801 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2802 if test "$*" = "X"; then
2803 # -L didn't work.
2804 set X `ls -t $srcdir/configure conftest.file`
2806 rm -f conftest.file
2807 if test "$*" != "X $srcdir/configure conftest.file" \
2808 && test "$*" != "X conftest.file $srcdir/configure"; then
2810 # If neither matched, then we have a broken ls. This can happen
2811 # if, for instance, CONFIG_SHELL is bash and it inherits a
2812 # broken ls alias from the environment. This has actually
2813 # happened. Such a system could not be considered "sane".
2814 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2815 alias in your environment" >&5
2816 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2817 alias in your environment" >&2;}
2818 { (exit 1); exit 1; }; }
2821 test "$2" = conftest.file
2823 then
2824 # Ok.
2826 else
2827 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2828 Check your system clock" >&5
2829 $as_echo "$as_me: error: newly created file is older than distributed files!
2830 Check your system clock" >&2;}
2831 { (exit 1); exit 1; }; }
2833 { $as_echo "$as_me:$LINENO: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2845 # expand $ac_aux_dir to an absolute path
2846 am_aux_dir=`cd $ac_aux_dir && pwd`
2848 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2849 # Use eval to expand $SHELL
2850 if eval "$MISSING --run true"; then
2851 am_missing_run="$MISSING --run "
2852 else
2853 am_missing_run=
2854 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2855 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861 if test "${ac_cv_path_mkdir+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882 IFS=$as_save_IFS
2886 if test "${ac_cv_path_mkdir+set}" = set; then
2887 MKDIR_P="$ac_cv_path_mkdir -p"
2888 else
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for MKDIR_P within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
2893 test -d ./--version && rmdir ./--version
2894 MKDIR_P="$ac_install_sh -d"
2897 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2900 mkdir_p="$MKDIR_P"
2901 case $mkdir_p in
2902 [\\/$]* | ?:[\\/]*) ;;
2903 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2904 esac
2906 for ac_prog in gawk mawk nawk awk
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_AWK+set}" = set; then
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2939 else
2940 { $as_echo "$as_me:$LINENO: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$AWK" && break
2946 done
2948 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2953 $as_echo_n "(cached) " >&6
2954 else
2955 cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:$LINENO: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 SET_MAKE=
2973 else
2974 { $as_echo "$as_me:$LINENO: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2982 am__leading_dot=.
2983 else
2984 am__leading_dot=_
2986 rmdir .tst 2>/dev/null
2988 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2989 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2990 # is not polluted with repeated "-I."
2991 am__isrc=' -I$(srcdir)'
2992 # test to see if srcdir already configured
2993 if test -f $srcdir/config.status; then
2994 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2995 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2996 { (exit 1); exit 1; }; }
3000 # test whether we have cygpath
3001 if test -z "$CYGPATH_W"; then
3002 if (cygpath --version) >/dev/null 2>/dev/null; then
3003 CYGPATH_W='cygpath -w'
3004 else
3005 CYGPATH_W=echo
3010 # Define the identity of the package.
3011 PACKAGE='mysql'
3012 VERSION='5.1.73'
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE "$PACKAGE"
3017 _ACEOF
3020 cat >>confdefs.h <<_ACEOF
3021 #define VERSION "$VERSION"
3022 _ACEOF
3024 # Some tools Automake needs.
3026 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3029 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3032 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3035 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3038 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3040 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3042 # Installed binaries are usually stripped using `strip' when the user
3043 # run `make install-strip'. However `strip' might not be the right
3044 # tool to use in cross-compilation environments, therefore Automake
3045 # will honor the `STRIP' environment variable to overrule this program.
3046 if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}strip; ac_word=$2
3050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_STRIP+set}" = set; then
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3075 STRIP=$ac_cv_prog_STRIP
3076 if test -n "$STRIP"; then
3077 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3078 $as_echo "$STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:$LINENO: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_STRIP"; then
3087 ac_ct_STRIP=$STRIP
3088 # Extract the first word of "strip", so it can be a program name with args.
3089 set dummy strip; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116 if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3118 $as_echo "$ac_ct_STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_STRIP" = x; then
3125 STRIP=":"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 STRIP=$ac_ct_STRIP
3135 else
3136 STRIP="$ac_cv_prog_STRIP"
3140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142 # We need awk for the "check" target. The system "awk" is bad on
3143 # some platforms.
3144 # Always define AMTAR for backward compatibility.
3146 AMTAR=${AMTAR-"${am_missing_run}tar"}
3149 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3150 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3151 # Loop over all known methods to create a tar archive until one works.
3152 _am_tools='gnutar plaintar pax cpio none'
3153 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3154 # Do not fold the above two line into one, because Tru64 sh and
3155 # Solaris sh will not grok spaces in the rhs of `-'.
3156 for _am_tool in $_am_tools
3158 case $_am_tool in
3159 gnutar)
3160 for _am_tar in tar gnutar gtar;
3162 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3163 ($_am_tar --version) >&5 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } && break
3167 done
3168 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3169 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3170 am__untar="$_am_tar -xf -"
3172 plaintar)
3173 # Must skip GNU tar: if it does not support --format= it doesn't create
3174 # ustar tarball either.
3175 (tar --version) >/dev/null 2>&1 && continue
3176 am__tar='tar chf - "$$tardir"'
3177 am__tar_='tar chf - "$tardir"'
3178 am__untar='tar xf -'
3180 pax)
3181 am__tar='pax -L -x ustar -w "$$tardir"'
3182 am__tar_='pax -L -x ustar -w "$tardir"'
3183 am__untar='pax -r'
3185 cpio)
3186 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3187 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3188 am__untar='cpio -i -H ustar -d'
3190 none)
3191 am__tar=false
3192 am__tar_=false
3193 am__untar=false
3195 esac
3197 # If the value was cached, stop now. We just wanted to have am__tar
3198 # and am__untar set.
3199 test -n "${am_cv_prog_tar_ustar}" && break
3201 # tar/untar a dummy directory, and stop if the command works
3202 rm -rf conftest.dir
3203 mkdir conftest.dir
3204 echo GrepMe > conftest.dir/file
3205 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3206 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3210 rm -rf conftest.dir
3211 if test -s conftest.tar; then
3212 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3213 ($am__untar <conftest.tar) >&5 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3217 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3219 done
3220 rm -rf conftest.dir
3222 if test "${am_cv_prog_tar_ustar+set}" = set; then
3223 $as_echo_n "(cached) " >&6
3224 else
3225 am_cv_prog_tar_ustar=$_am_tool
3228 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3229 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3235 case `pwd` in
3236 *\ * | *\ *)
3237 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3238 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3239 esac
3243 macro_version='2.2.6'
3244 macro_revision='1.3012'
3258 ltmain="$ac_aux_dir/ltmain.sh"
3260 DEPDIR="${am__leading_dot}deps"
3262 ac_config_commands="$ac_config_commands depfiles"
3265 am_make=${MAKE-make}
3266 cat > confinc << 'END'
3267 am__doit:
3268 @echo done
3269 .PHONY: am__doit
3271 # If we don't find an include directive, just comment out the code.
3272 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3273 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3274 am__include="#"
3275 am__quote=
3276 _am_result=none
3277 # First try GNU make style include.
3278 echo "include confinc" > confmf
3279 # We grep out `Entering directory' and `Leaving directory'
3280 # messages which can occur if `w' ends up in MAKEFLAGS.
3281 # In particular we don't look at `^make:' because GNU make might
3282 # be invoked under some other name (usually "gmake"), in which
3283 # case it prints its new name instead of `make'.
3284 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3285 am__include=include
3286 am__quote=
3287 _am_result=GNU
3289 # Now try BSD make style include.
3290 if test "$am__include" = "#"; then
3291 echo '.include "confinc"' > confmf
3292 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3293 am__include=.include
3294 am__quote="\""
3295 _am_result=BSD
3300 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3301 $as_echo "$_am_result" >&6; }
3302 rm -f confinc confmf
3304 # Check whether --enable-dependency-tracking was given.
3305 if test "${enable_dependency_tracking+set}" = set; then
3306 enableval=$enable_dependency_tracking;
3309 if test "x$enable_dependency_tracking" != xno; then
3310 am_depcomp="$ac_aux_dir/depcomp"
3311 AMDEPBACKSLASH='\'
3313 if test "x$enable_dependency_tracking" != xno; then
3314 AMDEP_TRUE=
3315 AMDEP_FALSE='#'
3316 else
3317 AMDEP_TRUE='#'
3318 AMDEP_FALSE=
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_CC+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:$LINENO: result: no" >&5
3361 $as_echo "no" >&6; }
3366 if test -z "$ac_cv_prog_CC"; then
3367 ac_ct_CC=$CC
3368 # Extract the first word of "gcc", so it can be a program name with args.
3369 set dummy gcc; ac_word=$2
3370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_ac_ct_CC="gcc"
3386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
3395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396 if test -n "$ac_ct_CC"; then
3397 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3398 $as_echo "$ac_ct_CC" >&6; }
3399 else
3400 { $as_echo "$as_me:$LINENO: result: no" >&5
3401 $as_echo "no" >&6; }
3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413 CC=$ac_ct_CC
3415 else
3416 CC="$ac_cv_prog_CC"
3419 if test -z "$CC"; then
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}cc; ac_word=$2
3423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_CC+set}" = set; then
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_CC="${ac_tool_prefix}cc"
3439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:$LINENO: result: no" >&5
3454 $as_echo "no" >&6; }
3460 if test -z "$CC"; then
3461 # Extract the first word of "cc", so it can be a program name with args.
3462 set dummy cc; ac_word=$2
3463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 ac_prog_rejected=no
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480 ac_prog_rejected=yes
3481 continue
3483 ac_cv_prog_CC="cc"
3484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3491 if test $ac_prog_rejected = yes; then
3492 # We found a bogon in the path, so make sure we never use it.
3493 set dummy $ac_cv_prog_CC
3494 shift
3495 if test $# != 0; then
3496 # We chose a different compiler from the bogus one.
3497 # However, it has the same basename, so the bogon will be chosen
3498 # first if we set CC to just the basename; use the full file name.
3499 shift
3500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:$LINENO: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 for ac_prog in cl.exe
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_CC+set}" = set; then
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3541 done
3542 done
3543 IFS=$as_save_IFS
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552 { $as_echo "$as_me:$LINENO: result: no" >&5
3553 $as_echo "no" >&6; }
3557 test -n "$CC" && break
3558 done
3560 if test -z "$CC"; then
3561 ac_ct_CC=$CC
3562 for ac_prog in cl.exe
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_ac_ct_CC="$ac_prog"
3582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3595 else
3596 { $as_echo "$as_me:$LINENO: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$ac_ct_CC" && break
3602 done
3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613 CC=$ac_ct_CC
3620 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3623 See \`config.log' for more details." >&5
3624 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3625 See \`config.log' for more details." >&2;}
3626 { (exit 1); exit 1; }; }; }
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3630 set X $ac_compile
3631 ac_compiler=$2
3632 { (ac_try="$ac_compiler --version >&5"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_compiler --version >&5") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }
3643 { (ac_try="$ac_compiler -v >&5"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649 $as_echo "$ac_try_echo") >&5
3650 (eval "$ac_compiler -v >&5") 2>&5
3651 ac_status=$?
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }
3654 { (ac_try="$ac_compiler -V >&5"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compiler -V >&5") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3683 # Try to create an executable without -o first, disregard a.out.
3684 # It will help us diagnose broken compilers, and finding out an intuition
3685 # of exeext.
3686 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3690 # The possible output files:
3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3693 ac_rmfiles=
3694 for ac_file in $ac_files
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699 esac
3700 done
3701 rm -f $ac_rmfiles
3703 if { (ac_try="$ac_link_default"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_link_default") 2>&5
3711 ac_status=$?
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; then
3714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3717 # so that the user can short-circuit this test for compilers unknown to
3718 # Autoconf.
3719 for ac_file in $ac_files ''
3721 test -f "$ac_file" || continue
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3725 [ab].out )
3726 # We found the default executable, but exeext='' is most
3727 # certainly right.
3728 break;;
3729 *.* )
3730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3731 then :; else
3732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3734 # We set ac_cv_exeext here because the later test for it is not
3735 # safe: cross compilers may not add the suffix if given an `-o'
3736 # argument, so we may need to know it at that point already.
3737 # Even if this section looks crufty: it has the advantage of
3738 # actually working.
3739 break;;
3741 break;;
3742 esac
3743 done
3744 test "$ac_cv_exeext" = no && ac_cv_exeext=
3746 else
3747 ac_file=''
3750 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3751 $as_echo "$ac_file" >&6; }
3752 if test -z "$ac_file"; then
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3759 See \`config.log' for more details." >&5
3760 $as_echo "$as_me: error: C compiler cannot create executables
3761 See \`config.log' for more details." >&2;}
3762 { (exit 77); exit 77; }; }; }
3765 ac_exeext=$ac_cv_exeext
3767 # Check that the compiler produces executables we can run. If not, either
3768 # the compiler is broken, or we cross compile.
3769 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3770 $as_echo_n "checking whether the C compiler works... " >&6; }
3771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3772 # If not cross compiling, check that we can run a simple program.
3773 if test "$cross_compiling" != yes; then
3774 if { ac_try='./$ac_file'
3775 { (case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780 $as_echo "$ac_try_echo") >&5
3781 (eval "$ac_try") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 cross_compiling=no
3786 else
3787 if test "$cross_compiling" = maybe; then
3788 cross_compiling=yes
3789 else
3790 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3793 If you meant to cross compile, use \`--host'.
3794 See \`config.log' for more details." >&5
3795 $as_echo "$as_me: error: cannot run C compiled programs.
3796 If you meant to cross compile, use \`--host'.
3797 See \`config.log' for more details." >&2;}
3798 { (exit 1); exit 1; }; }; }
3802 { $as_echo "$as_me:$LINENO: result: yes" >&5
3803 $as_echo "yes" >&6; }
3805 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 # Check that the compiler produces executables we can run. If not, either
3808 # the compiler is broken, or we cross compile.
3809 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3810 $as_echo_n "checking whether we are cross compiling... " >&6; }
3811 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3812 $as_echo "$cross_compiling" >&6; }
3814 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { (ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822 $as_echo "$ac_try_echo") >&5
3823 (eval "$ac_link") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; then
3827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 # `rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 break;;
3837 * ) break;;
3838 esac
3839 done
3840 else
3841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details." >&5
3845 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3846 See \`config.log' for more details." >&2;}
3847 { (exit 1); exit 1; }; }; }
3850 rm -f conftest$ac_cv_exeext
3851 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3852 $as_echo "$ac_cv_exeext" >&6; }
3854 rm -f conftest.$ac_ext
3855 EXEEXT=$ac_cv_exeext
3856 ac_exeext=$EXEEXT
3857 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3858 $as_echo_n "checking for suffix of object files... " >&6; }
3859 if test "${ac_cv_objext+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3861 else
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 main ()
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.o conftest.obj
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3884 $as_echo "$ac_try_echo") >&5
3885 (eval "$ac_compile") 2>&5
3886 ac_status=$?
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; then
3889 for ac_file in conftest.o conftest.obj conftest.*; do
3890 test -f "$ac_file" || continue;
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3893 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3894 break;;
3895 esac
3896 done
3897 else
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3904 See \`config.log' for more details." >&5
3905 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }; }
3910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3912 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3913 $as_echo "$ac_cv_objext" >&6; }
3914 OBJEXT=$ac_cv_objext
3915 ac_objext=$OBJEXT
3916 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3929 main ()
3931 #ifndef __GNUC__
3932 choke me
3933 #endif
3936 return 0;
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3957 ac_compiler_gnu=yes
3958 else
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ac_compiler_gnu=no
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3970 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3971 if test $ac_compiler_gnu = yes; then
3972 GCC=yes
3973 else
3974 GCC=
3976 ac_test_CFLAGS=${CFLAGS+set}
3977 ac_save_CFLAGS=$CFLAGS
3978 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3979 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3980 if test "${ac_cv_prog_cc_g+set}" = set; then
3981 $as_echo_n "(cached) " >&6
3982 else
3983 ac_save_c_werror_flag=$ac_c_werror_flag
3984 ac_c_werror_flag=yes
3985 ac_cv_prog_cc_g=no
3986 CFLAGS="-g"
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 main ()
3999 return 0;
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4009 $as_echo "$ac_try_echo") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest.$ac_objext; then
4020 ac_cv_prog_cc_g=yes
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 CFLAGS=""
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4034 main ()
4038 return 0;
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (ac_try="$ac_compile"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4048 $as_echo "$ac_try_echo") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4060 else
4061 $as_echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4065 CFLAGS="-g"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_prog_cc_g=yes
4100 else
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4116 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4117 $as_echo "$ac_cv_prog_cc_g" >&6; }
4118 if test "$ac_test_CFLAGS" = set; then
4119 CFLAGS=$ac_save_CFLAGS
4120 elif test $ac_cv_prog_cc_g = yes; then
4121 if test "$GCC" = yes; then
4122 CFLAGS="-g -O2"
4123 else
4124 CFLAGS="-g"
4126 else
4127 if test "$GCC" = yes; then
4128 CFLAGS="-O2"
4129 else
4130 CFLAGS=
4133 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4134 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4135 if test "${ac_cv_prog_cc_c89+set}" = set; then
4136 $as_echo_n "(cached) " >&6
4137 else
4138 ac_cv_prog_cc_c89=no
4139 ac_save_CC=$CC
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <stdarg.h>
4147 #include <stdio.h>
4148 #include <sys/types.h>
4149 #include <sys/stat.h>
4150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151 struct buf { int x; };
4152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153 static char *e (p, i)
4154 char **p;
4155 int i;
4157 return p[i];
4159 static char *f (char * (*g) (char **, int), char **p, ...)
4161 char *s;
4162 va_list v;
4163 va_start (v,p);
4164 s = g (p, va_arg (v,int));
4165 va_end (v);
4166 return s;
4169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170 function prototypes and stuff, but not '\xHH' hex character constants.
4171 These don't provoke an error unfortunately, instead are silently treated
4172 as 'x'. The following induces an error, until -std is added to get
4173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174 array size at least. It's necessary to write '\x00'==0 to get something
4175 that's true only with -std. */
4176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179 inside strings and character constants. */
4180 #define FOO(x) 'x'
4181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4183 int test (int i, double x);
4184 struct s1 {int (*f) (int a);};
4185 struct s2 {int (*f) (double a);};
4186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187 int argc;
4188 char **argv;
4190 main ()
4192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4194 return 0;
4196 _ACEOF
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4200 CC="$ac_save_CC $ac_arg"
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4208 $as_echo "$ac_try_echo") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 ac_cv_prog_cc_c89=$ac_arg
4220 else
4221 $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 depcc="$CC" am_compiler_list=
4257 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4258 $as_echo_n "checking dependency style of $depcc... " >&6; }
4259 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4263 # We make a subdir and do the tests there. Otherwise we can end up
4264 # making bogus files that we don't know about and never remove. For
4265 # instance it was reported that on HP-UX the gcc test will end up
4266 # making a dummy file named `D' -- because `-MD' means `put the output
4267 # in D'.
4268 mkdir conftest.dir
4269 # Copy depcomp to subdir because otherwise we won't find it if we're
4270 # using a relative directory.
4271 cp "$am_depcomp" conftest.dir
4272 cd conftest.dir
4273 # We will build objects and dependencies in a subdirectory because
4274 # it helps to detect inapplicable dependency modes. For instance
4275 # both Tru64's cc and ICC support -MD to output dependencies as a
4276 # side effect of compilation, but ICC will put the dependencies in
4277 # the current directory while Tru64 will put them in the object
4278 # directory.
4279 mkdir sub
4281 am_cv_CC_dependencies_compiler_type=none
4282 if test "$am_compiler_list" = ""; then
4283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4285 for depmode in $am_compiler_list; do
4286 # Setup a source with many dependencies, because some compilers
4287 # like to wrap large dependency lists on column 80 (with \), and
4288 # we should not choose a depcomp mode which is confused by this.
4290 # We need to recreate these files for each test, as the compiler may
4291 # overwrite some of them when testing with obscure command lines.
4292 # This happens at least with the AIX C compiler.
4293 : > sub/conftest.c
4294 for i in 1 2 3 4 5 6; do
4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4297 # Solaris 8's {/usr,}/bin/sh.
4298 touch sub/conftst$i.h
4299 done
4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4302 case $depmode in
4303 nosideeffect)
4304 # after this tag, mechanisms are not by side-effect, so they'll
4305 # only be used when explicitly requested
4306 if test "x$enable_dependency_tracking" = xyes; then
4307 continue
4308 else
4309 break
4312 none) break ;;
4313 esac
4314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4315 # mode. It turns out that the SunPro C++ compiler does not properly
4316 # handle `-M -o', and we need to detect this.
4317 if depmode=$depmode \
4318 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4320 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4321 >/dev/null 2>conftest.err &&
4322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4324 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4326 # icc doesn't choke on unknown options, it will just issue warnings
4327 # or remarks (even with -Werror). So we grep stderr for any message
4328 # that says an option was ignored or not supported.
4329 # When given -MP, icc 7.0 and 7.1 complain thusly:
4330 # icc: Command line warning: ignoring option '-M'; no argument required
4331 # The diagnosis changed in icc 8.0:
4332 # icc: Command line remark: option '-MP' not supported
4333 if (grep 'ignoring option' conftest.err ||
4334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4335 am_cv_CC_dependencies_compiler_type=$depmode
4336 break
4339 done
4341 cd ..
4342 rm -rf conftest.dir
4343 else
4344 am_cv_CC_dependencies_compiler_type=none
4348 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4353 test "x$enable_dependency_tracking" != xno \
4354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4355 am__fastdepCC_TRUE=
4356 am__fastdepCC_FALSE='#'
4357 else
4358 am__fastdepCC_TRUE='#'
4359 am__fastdepCC_FALSE=
4363 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4365 if test "${ac_cv_path_SED+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4369 for ac_i in 1 2 3 4 5 6 7; do
4370 ac_script="$ac_script$as_nl$ac_script"
4371 done
4372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4373 $as_unset ac_script || ac_script=
4374 if test -z "$SED"; then
4375 ac_path_SED_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in sed gsed; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4386 # Check for GNU ac_path_SED and select it if it is found.
4387 # Check for GNU $ac_path_SED
4388 case `"$ac_path_SED" --version 2>&1` in
4389 *GNU*)
4390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo '' >> "conftest.nl"
4400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 ac_count=`expr $ac_count + 1`
4403 if test $ac_count -gt ${ac_path_SED_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_SED="$ac_path_SED"
4406 ac_path_SED_max=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4414 $ac_path_SED_found && break 3
4415 done
4416 done
4417 done
4418 IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_SED"; then
4420 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4421 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4422 { (exit 1); exit 1; }; }
4424 else
4425 ac_cv_path_SED=$SED
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4430 $as_echo "$ac_cv_path_SED" >&6; }
4431 SED="$ac_cv_path_SED"
4432 rm -f conftest.sed
4434 test -z "$SED" && SED=sed
4435 Xsed="$SED -e 1s/^X//"
4447 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4448 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4449 if test "${ac_cv_path_GREP+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -z "$GREP"; then
4453 ac_path_GREP_found=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_prog in grep ggrep; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4464 # Check for GNU ac_path_GREP and select it if it is found.
4465 # Check for GNU $ac_path_GREP
4466 case `"$ac_path_GREP" --version 2>&1` in
4467 *GNU*)
4468 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4470 ac_count=0
4471 $as_echo_n 0123456789 >"conftest.in"
4472 while :
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 $as_echo 'GREP' >> "conftest.nl"
4478 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480 ac_count=`expr $ac_count + 1`
4481 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_GREP="$ac_path_GREP"
4484 ac_path_GREP_max=$ac_count
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4488 done
4489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4492 $ac_path_GREP_found && break 3
4493 done
4494 done
4495 done
4496 IFS=$as_save_IFS
4497 if test -z "$ac_cv_path_GREP"; then
4498 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500 { (exit 1); exit 1; }; }
4502 else
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4535 *GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 ac_count=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 esac
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563 done
4564 IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then
4566 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4567 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4568 { (exit 1); exit 1; }; }
4570 else
4571 ac_cv_path_EGREP=$EGREP
4576 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4577 $as_echo "$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4581 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4582 $as_echo_n "checking for fgrep... " >&6; }
4583 if test "${ac_cv_path_FGREP+set}" = set; then
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4587 then ac_cv_path_FGREP="$GREP -F"
4588 else
4589 if test -z "$FGREP"; then
4590 ac_path_FGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in fgrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4601 # Check for GNU ac_path_FGREP and select it if it is found.
4602 # Check for GNU $ac_path_FGREP
4603 case `"$ac_path_FGREP" --version 2>&1` in
4604 *GNU*)
4605 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'FGREP' >> "conftest.nl"
4615 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 ac_count=`expr $ac_count + 1`
4618 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_FGREP="$ac_path_FGREP"
4621 ac_path_FGREP_max=$ac_count
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4625 done
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4629 $ac_path_FGREP_found && break 3
4630 done
4631 done
4632 done
4633 IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_FGREP"; then
4635 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4636 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4637 { (exit 1); exit 1; }; }
4639 else
4640 ac_cv_path_FGREP=$FGREP
4645 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4646 $as_echo "$ac_cv_path_FGREP" >&6; }
4647 FGREP="$ac_cv_path_FGREP"
4650 test -z "$GREP" && GREP=grep
4670 # Check whether --with-gnu-ld was given.
4671 if test "${with_gnu_ld+set}" = set; then
4672 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4673 else
4674 with_gnu_ld=no
4677 ac_prog=ld
4678 if test "$GCC" = yes; then
4679 # Check if gcc -print-prog-name=ld gives a path.
4680 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4681 $as_echo_n "checking for ld used by $CC... " >&6; }
4682 case $host in
4683 *-*-mingw*)
4684 # gcc leaves a trailing carriage return which upsets mingw
4685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4688 esac
4689 case $ac_prog in
4690 # Accept absolute paths.
4691 [\\/]* | ?:[\\/]*)
4692 re_direlt='/[^/][^/]*/\.\./'
4693 # Canonicalize the pathname of ld
4694 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4695 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4696 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4697 done
4698 test -z "$LD" && LD="$ac_prog"
4701 # If it fails, then pretend we aren't using GCC.
4702 ac_prog=ld
4705 # If it is relative, then search for the first ld in PATH.
4706 with_gnu_ld=unknown
4708 esac
4709 elif test "$with_gnu_ld" = yes; then
4710 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4711 $as_echo_n "checking for GNU ld... " >&6; }
4712 else
4713 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4714 $as_echo_n "checking for non-GNU ld... " >&6; }
4716 if test "${lt_cv_path_LD+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -z "$LD"; then
4720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4721 for ac_dir in $PATH; do
4722 IFS="$lt_save_ifs"
4723 test -z "$ac_dir" && ac_dir=.
4724 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4725 lt_cv_path_LD="$ac_dir/$ac_prog"
4726 # Check to see if the program is GNU ld. I'd rather use --version,
4727 # but apparently some variants of GNU ld only accept -v.
4728 # Break only if it was the GNU/non-GNU ld that we prefer.
4729 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4730 *GNU* | *'with BFD'*)
4731 test "$with_gnu_ld" != no && break
4734 test "$with_gnu_ld" != yes && break
4736 esac
4738 done
4739 IFS="$lt_save_ifs"
4740 else
4741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4745 LD="$lt_cv_path_LD"
4746 if test -n "$LD"; then
4747 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4748 $as_echo "$LD" >&6; }
4749 else
4750 { $as_echo "$as_me:$LINENO: result: no" >&5
4751 $as_echo "no" >&6; }
4753 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4754 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4755 { (exit 1); exit 1; }; }
4756 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4762 case `$LD -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
4764 lt_cv_prog_gnu_ld=yes
4767 lt_cv_prog_gnu_ld=no
4769 esac
4771 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4773 with_gnu_ld=$lt_cv_prog_gnu_ld
4783 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4784 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4785 if test "${lt_cv_path_NM+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$NM"; then
4789 # Let the user override the test.
4790 lt_cv_path_NM="$NM"
4791 else
4792 lt_nm_to_check="${ac_tool_prefix}nm"
4793 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4794 lt_nm_to_check="$lt_nm_to_check nm"
4796 for lt_tmp_nm in $lt_nm_to_check; do
4797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4798 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4799 IFS="$lt_save_ifs"
4800 test -z "$ac_dir" && ac_dir=.
4801 tmp_nm="$ac_dir/$lt_tmp_nm"
4802 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4803 # Check to see if the nm accepts a BSD-compat flag.
4804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4805 # nm: unknown option "B" ignored
4806 # Tru64's nm complains that /dev/null is an invalid object file
4807 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4808 */dev/null* | *'Invalid file or object type'*)
4809 lt_cv_path_NM="$tmp_nm -B"
4810 break
4813 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4814 */dev/null*)
4815 lt_cv_path_NM="$tmp_nm -p"
4816 break
4819 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4820 continue # so that we can try to find one that supports BSD flags
4822 esac
4824 esac
4826 done
4827 IFS="$lt_save_ifs"
4828 done
4829 : ${lt_cv_path_NM=no}
4832 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4833 $as_echo "$lt_cv_path_NM" >&6; }
4834 if test "$lt_cv_path_NM" != "no"; then
4835 NM="$lt_cv_path_NM"
4836 else
4837 # Didn't find any BSD compatible name lister, look for dumpbin.
4838 if test -n "$ac_tool_prefix"; then
4839 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$DUMPBIN"; then
4849 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 DUMPBIN=$ac_cv_prog_DUMPBIN
4869 if test -n "$DUMPBIN"; then
4870 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4871 $as_echo "$DUMPBIN" >&6; }
4872 else
4873 { $as_echo "$as_me:$LINENO: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$DUMPBIN" && break
4879 done
4881 if test -z "$DUMPBIN"; then
4882 ac_ct_DUMPBIN=$DUMPBIN
4883 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4885 # Extract the first word of "$ac_prog", so it can be a program name with args.
4886 set dummy $ac_prog; ac_word=$2
4887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$ac_ct_DUMPBIN"; then
4893 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4906 done
4907 done
4908 IFS=$as_save_IFS
4912 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4913 if test -n "$ac_ct_DUMPBIN"; then
4914 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4915 $as_echo "$ac_ct_DUMPBIN" >&6; }
4916 else
4917 { $as_echo "$as_me:$LINENO: result: no" >&5
4918 $as_echo "no" >&6; }
4922 test -n "$ac_ct_DUMPBIN" && break
4923 done
4925 if test "x$ac_ct_DUMPBIN" = x; then
4926 DUMPBIN=":"
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929 yes:)
4930 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4933 esac
4934 DUMPBIN=$ac_ct_DUMPBIN
4939 if test "$DUMPBIN" != ":"; then
4940 NM="$DUMPBIN"
4943 test -z "$NM" && NM=nm
4950 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4951 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4952 if test "${lt_cv_nm_interface+set}" = set; then
4953 $as_echo_n "(cached) " >&6
4954 else
4955 lt_cv_nm_interface="BSD nm"
4956 echo "int some_variable = 0;" > conftest.$ac_ext
4957 (eval echo "\"\$as_me:4957: $ac_compile\"" >&5)
4958 (eval "$ac_compile" 2>conftest.err)
4959 cat conftest.err >&5
4960 (eval echo "\"\$as_me:4960: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4961 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4962 cat conftest.err >&5
4963 (eval echo "\"\$as_me:4963: output\"" >&5)
4964 cat conftest.out >&5
4965 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4966 lt_cv_nm_interface="MS dumpbin"
4968 rm -f conftest*
4970 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4971 $as_echo "$lt_cv_nm_interface" >&6; }
4973 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4974 $as_echo_n "checking whether ln -s works... " >&6; }
4975 LN_S=$as_ln_s
4976 if test "$LN_S" = "ln -s"; then
4977 { $as_echo "$as_me:$LINENO: result: yes" >&5
4978 $as_echo "yes" >&6; }
4979 else
4980 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4981 $as_echo "no, using $LN_S" >&6; }
4984 # find the maximum length of command line arguments
4985 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4986 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4987 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4988 $as_echo_n "(cached) " >&6
4989 else
4991 teststring="ABCD"
4993 case $build_os in
4994 msdosdjgpp*)
4995 # On DJGPP, this test can blow up pretty badly due to problems in libc
4996 # (any single argument exceeding 2000 bytes causes a buffer overrun
4997 # during glob expansion). Even if it were fixed, the result of this
4998 # check would be larger than it should be.
4999 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5002 gnu*)
5003 # Under GNU Hurd, this test is not required because there is
5004 # no limit to the length of command line arguments.
5005 # Libtool will interpret -1 as no limit whatsoever
5006 lt_cv_sys_max_cmd_len=-1;
5009 cygwin* | mingw* | cegcc*)
5010 # On Win9x/ME, this test blows up -- it succeeds, but takes
5011 # about 5 minutes as the teststring grows exponentially.
5012 # Worse, since 9x/ME are not pre-emptively multitasking,
5013 # you end up with a "frozen" computer, even though with patience
5014 # the test eventually succeeds (with a max line length of 256k).
5015 # Instead, let's just punt: use the minimum linelength reported by
5016 # all of the supported platforms: 8192 (on NT/2K/XP).
5017 lt_cv_sys_max_cmd_len=8192;
5020 amigaos*)
5021 # On AmigaOS with pdksh, this test takes hours, literally.
5022 # So we just punt and use a minimum line length of 8192.
5023 lt_cv_sys_max_cmd_len=8192;
5026 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5027 # This has been around since 386BSD, at least. Likely further.
5028 if test -x /sbin/sysctl; then
5029 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5030 elif test -x /usr/sbin/sysctl; then
5031 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5032 else
5033 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5035 # And add a safety zone
5036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5040 interix*)
5041 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5042 lt_cv_sys_max_cmd_len=196608
5045 osf*)
5046 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5047 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5048 # nice to cause kernel panics so lets avoid the loop below.
5049 # First set a reasonable default.
5050 lt_cv_sys_max_cmd_len=16384
5052 if test -x /sbin/sysconfig; then
5053 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5054 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5055 esac
5058 sco3.2v5*)
5059 lt_cv_sys_max_cmd_len=102400
5061 sysv5* | sco5v6* | sysv4.2uw2*)
5062 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5063 if test -n "$kargmax"; then
5064 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5065 else
5066 lt_cv_sys_max_cmd_len=32768
5070 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5071 if test -n "$lt_cv_sys_max_cmd_len"; then
5072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5074 else
5075 # Make teststring a little bigger before we do anything with it.
5076 # a 1K string should be a reasonable start.
5077 for i in 1 2 3 4 5 6 7 8 ; do
5078 teststring=$teststring$teststring
5079 done
5080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5081 # If test is not a shell built-in, we'll probably end up computing a
5082 # maximum length that is only half of the actual maximum length, but
5083 # we can't tell.
5084 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5085 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5086 test $i != 17 # 1/2 MB should be enough
5088 i=`expr $i + 1`
5089 teststring=$teststring$teststring
5090 done
5091 # Only check the string length outside the loop.
5092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5093 teststring=
5094 # Add a significant safety factor because C++ compilers can tack on
5095 # massive amounts of additional arguments before passing them to the
5096 # linker. It appears as though 1/2 is a usable value.
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5100 esac
5104 if test -n $lt_cv_sys_max_cmd_len ; then
5105 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5107 else
5108 { $as_echo "$as_me:$LINENO: result: none" >&5
5109 $as_echo "none" >&6; }
5111 max_cmd_len=$lt_cv_sys_max_cmd_len
5118 : ${CP="cp -f"}
5119 : ${MV="mv -f"}
5120 : ${RM="rm -f"}
5122 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5123 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5124 # Try some XSI features
5125 xsi_shell=no
5126 ( _lt_dummy="a/b/c"
5127 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5128 = c,a/b,, \
5129 && eval 'test $(( 1 + 1 )) -eq 2 \
5130 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5131 && xsi_shell=yes
5132 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5133 $as_echo "$xsi_shell" >&6; }
5136 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5137 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5138 lt_shell_append=no
5139 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5140 >/dev/null 2>&1 \
5141 && lt_shell_append=yes
5142 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5143 $as_echo "$lt_shell_append" >&6; }
5146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5147 lt_unset=unset
5148 else
5149 lt_unset=false
5156 # test EBCDIC or ASCII
5157 case `echo X|tr X '\101'` in
5158 A) # ASCII based system
5159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5160 lt_SP2NL='tr \040 \012'
5161 lt_NL2SP='tr \015\012 \040\040'
5163 *) # EBCDIC based system
5164 lt_SP2NL='tr \100 \n'
5165 lt_NL2SP='tr \r\n \100\100'
5167 esac
5177 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5178 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5179 if test "${lt_cv_ld_reload_flag+set}" = set; then
5180 $as_echo_n "(cached) " >&6
5181 else
5182 lt_cv_ld_reload_flag='-r'
5184 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5185 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5186 reload_flag=$lt_cv_ld_reload_flag
5187 case $reload_flag in
5188 "" | " "*) ;;
5189 *) reload_flag=" $reload_flag" ;;
5190 esac
5191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5192 case $host_os in
5193 darwin*)
5194 if test "$GCC" = yes; then
5195 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5196 else
5197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5200 esac
5210 if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5212 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$OBJDUMP"; then
5219 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 OBJDUMP=$ac_cv_prog_OBJDUMP
5239 if test -n "$OBJDUMP"; then
5240 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5241 $as_echo "$OBJDUMP" >&6; }
5242 else
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5249 if test -z "$ac_cv_prog_OBJDUMP"; then
5250 ac_ct_OBJDUMP=$OBJDUMP
5251 # Extract the first word of "objdump", so it can be a program name with args.
5252 set dummy objdump; ac_word=$2
5253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$ac_ct_OBJDUMP"; then
5259 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5279 if test -n "$ac_ct_OBJDUMP"; then
5280 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5281 $as_echo "$ac_ct_OBJDUMP" >&6; }
5282 else
5283 { $as_echo "$as_me:$LINENO: result: no" >&5
5284 $as_echo "no" >&6; }
5287 if test "x$ac_ct_OBJDUMP" = x; then
5288 OBJDUMP="false"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294 ac_tool_warned=yes ;;
5295 esac
5296 OBJDUMP=$ac_ct_OBJDUMP
5298 else
5299 OBJDUMP="$ac_cv_prog_OBJDUMP"
5302 test -z "$OBJDUMP" && OBJDUMP=objdump
5312 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5313 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5314 if test "${lt_cv_deplibs_check_method+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 lt_cv_file_magic_cmd='$MAGIC_CMD'
5318 lt_cv_file_magic_test_file=
5319 lt_cv_deplibs_check_method='unknown'
5320 # Need to set the preceding variable on all platforms that support
5321 # interlibrary dependencies.
5322 # 'none' -- dependencies not supported.
5323 # `unknown' -- same as none, but documents that we really don't know.
5324 # 'pass_all' -- all dependencies passed with no checks.
5325 # 'test_compile' -- check by making test program.
5326 # 'file_magic [[regex]]' -- check by looking for files in library path
5327 # which responds to the $file_magic_cmd with a given extended regex.
5328 # If you have `file' or equivalent on your system and you're not sure
5329 # whether `pass_all' will *always* work, you probably want this one.
5331 case $host_os in
5332 aix[4-9]*)
5333 lt_cv_deplibs_check_method=pass_all
5336 beos*)
5337 lt_cv_deplibs_check_method=pass_all
5340 bsdi[45]*)
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5342 lt_cv_file_magic_cmd='/usr/bin/file -L'
5343 lt_cv_file_magic_test_file=/shlib/libc.so
5346 cygwin*)
5347 # func_win32_libid is a shell function defined in ltmain.sh
5348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5349 lt_cv_file_magic_cmd='func_win32_libid'
5352 mingw* | pw32*)
5353 # Base MSYS/MinGW do not provide the 'file' command needed by
5354 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5355 # unless we find 'file', for example because we are cross-compiling.
5356 if ( file / ) >/dev/null 2>&1; then
5357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5358 lt_cv_file_magic_cmd='func_win32_libid'
5359 else
5360 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5361 lt_cv_file_magic_cmd='$OBJDUMP -f'
5365 cegcc)
5366 # use the weaker test based on 'objdump'. See mingw*.
5367 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5368 lt_cv_file_magic_cmd='$OBJDUMP -f'
5371 darwin* | rhapsody*)
5372 lt_cv_deplibs_check_method=pass_all
5375 freebsd* | dragonfly*)
5376 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5377 case $host_cpu in
5378 i*86 )
5379 # Not sure whether the presence of OpenBSD here was a mistake.
5380 # Let's accept both of them until this is cleared up.
5381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5382 lt_cv_file_magic_cmd=/usr/bin/file
5383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5385 esac
5386 else
5387 lt_cv_deplibs_check_method=pass_all
5391 gnu*)
5392 lt_cv_deplibs_check_method=pass_all
5395 hpux10.20* | hpux11*)
5396 lt_cv_file_magic_cmd=/usr/bin/file
5397 case $host_cpu in
5398 ia64*)
5399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5400 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5402 hppa*64*)
5403 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]'
5404 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5408 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5410 esac
5413 interix[3-9]*)
5414 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5418 irix5* | irix6* | nonstopux*)
5419 case $LD in
5420 *-32|*"-32 ") libmagic=32-bit;;
5421 *-n32|*"-n32 ") libmagic=N32;;
5422 *-64|*"-64 ") libmagic=64-bit;;
5423 *) libmagic=never-match;;
5424 esac
5425 lt_cv_deplibs_check_method=pass_all
5428 # This must be Linux ELF.
5429 linux* | k*bsd*-gnu)
5430 lt_cv_deplibs_check_method=pass_all
5433 netbsd*)
5434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5436 else
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5441 newos6*)
5442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5443 lt_cv_file_magic_cmd=/usr/bin/file
5444 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5447 *nto* | *qnx*)
5448 lt_cv_deplibs_check_method=pass_all
5451 openbsd*)
5452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5454 else
5455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5459 osf3* | osf4* | osf5*)
5460 lt_cv_deplibs_check_method=pass_all
5463 rdos*)
5464 lt_cv_deplibs_check_method=pass_all
5467 solaris*)
5468 lt_cv_deplibs_check_method=pass_all
5471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5472 lt_cv_deplibs_check_method=pass_all
5475 sysv4 | sysv4.3*)
5476 case $host_vendor in
5477 motorola)
5478 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]'
5479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5481 ncr)
5482 lt_cv_deplibs_check_method=pass_all
5484 sequent)
5485 lt_cv_file_magic_cmd='/bin/file'
5486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5488 sni)
5489 lt_cv_file_magic_cmd='/bin/file'
5490 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5491 lt_cv_file_magic_test_file=/lib/libc.so
5493 siemens)
5494 lt_cv_deplibs_check_method=pass_all
5497 lt_cv_deplibs_check_method=pass_all
5499 esac
5502 tpf*)
5503 lt_cv_deplibs_check_method=pass_all
5505 esac
5508 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5509 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5510 file_magic_cmd=$lt_cv_file_magic_cmd
5511 deplibs_check_method=$lt_cv_deplibs_check_method
5512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5525 if test -n "$ac_tool_prefix"; then
5526 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5527 set dummy ${ac_tool_prefix}ar; ac_word=$2
5528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if test "${ac_cv_prog_AR+set}" = set; then
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$AR"; then
5534 ac_cv_prog_AR="$AR" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_AR="${ac_tool_prefix}ar"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 AR=$ac_cv_prog_AR
5554 if test -n "$AR"; then
5555 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5556 $as_echo "$AR" >&6; }
5557 else
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5564 if test -z "$ac_cv_prog_AR"; then
5565 ac_ct_AR=$AR
5566 # Extract the first word of "ar", so it can be a program name with args.
5567 set dummy ar; ac_word=$2
5568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$ac_ct_AR"; then
5574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_ac_ct_AR="ar"
5584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5589 IFS=$as_save_IFS
5593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5594 if test -n "$ac_ct_AR"; then
5595 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5596 $as_echo "$ac_ct_AR" >&6; }
5597 else
5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5599 $as_echo "no" >&6; }
5602 if test "x$ac_ct_AR" = x; then
5603 AR="false"
5604 else
5605 case $cross_compiling:$ac_tool_warned in
5606 yes:)
5607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609 ac_tool_warned=yes ;;
5610 esac
5611 AR=$ac_ct_AR
5613 else
5614 AR="$ac_cv_prog_AR"
5617 test -z "$AR" && AR=ar
5618 test -z "$AR_FLAGS" && AR_FLAGS=cru
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}strip; ac_word=$2
5633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_STRIP+set}" = set; then
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$STRIP"; then
5639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 STRIP=$ac_cv_prog_STRIP
5659 if test -n "$STRIP"; then
5660 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5661 $as_echo "$STRIP" >&6; }
5662 else
5663 { $as_echo "$as_me:$LINENO: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$ac_cv_prog_STRIP"; then
5670 ac_ct_STRIP=$STRIP
5671 # Extract the first word of "strip", so it can be a program name with args.
5672 set dummy strip; ac_word=$2
5673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_STRIP"; then
5679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_STRIP="strip"
5689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5699 if test -n "$ac_ct_STRIP"; then
5700 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5701 $as_echo "$ac_ct_STRIP" >&6; }
5702 else
5703 { $as_echo "$as_me:$LINENO: result: no" >&5
5704 $as_echo "no" >&6; }
5707 if test "x$ac_ct_STRIP" = x; then
5708 STRIP=":"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 STRIP=$ac_ct_STRIP
5718 else
5719 STRIP="$ac_cv_prog_STRIP"
5722 test -z "$STRIP" && STRIP=:
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_RANLIB+set}" = set; then
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$RANLIB"; then
5738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5753 IFS=$as_save_IFS
5757 RANLIB=$ac_cv_prog_RANLIB
5758 if test -n "$RANLIB"; then
5759 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5760 $as_echo "$RANLIB" >&6; }
5761 else
5762 { $as_echo "$as_me:$LINENO: result: no" >&5
5763 $as_echo "no" >&6; }
5768 if test -z "$ac_cv_prog_RANLIB"; then
5769 ac_ct_RANLIB=$RANLIB
5770 # Extract the first word of "ranlib", so it can be a program name with args.
5771 set dummy ranlib; ac_word=$2
5772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5775 $as_echo_n "(cached) " >&6
5776 else
5777 if test -n "$ac_ct_RANLIB"; then
5778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_ac_ct_RANLIB="ranlib"
5788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5791 done
5792 done
5793 IFS=$as_save_IFS
5797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5798 if test -n "$ac_ct_RANLIB"; then
5799 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5800 $as_echo "$ac_ct_RANLIB" >&6; }
5801 else
5802 { $as_echo "$as_me:$LINENO: result: no" >&5
5803 $as_echo "no" >&6; }
5806 if test "x$ac_ct_RANLIB" = x; then
5807 RANLIB=":"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815 RANLIB=$ac_ct_RANLIB
5817 else
5818 RANLIB="$ac_cv_prog_RANLIB"
5821 test -z "$RANLIB" && RANLIB=:
5828 # Determine commands to create old-style static archives.
5829 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5830 old_postinstall_cmds='chmod 644 $oldlib'
5831 old_postuninstall_cmds=
5833 if test -n "$RANLIB"; then
5834 case $host_os in
5835 openbsd*)
5836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5841 esac
5842 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5878 # If no C compiler was specified, use CC.
5879 LTCC=${LTCC-"$CC"}
5881 # If no C compiler flags were specified, use CFLAGS.
5882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5884 # Allow CC to be a program name with arguments.
5885 compiler=$CC
5888 # Check for command to grab the raw symbol name followed by C symbol from nm.
5889 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5890 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5891 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5895 # These are sane defaults that work on at least a few old systems.
5896 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5898 # Character class describing NM global symbol codes.
5899 symcode='[BCDEGRST]'
5901 # Regexp to match symbols that can be accessed directly from C.
5902 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5904 # Define system-specific variables.
5905 case $host_os in
5906 aix*)
5907 symcode='[BCDT]'
5909 cygwin* | mingw* | pw32* | cegcc*)
5910 symcode='[ABCDGISTW]'
5912 hpux*)
5913 if test "$host_cpu" = ia64; then
5914 symcode='[ABCDEGRST]'
5917 irix* | nonstopux*)
5918 symcode='[BCDEGRST]'
5920 osf*)
5921 symcode='[BCDEGQRST]'
5923 solaris*)
5924 symcode='[BDRT]'
5926 sco3.2v5*)
5927 symcode='[DT]'
5929 sysv4.2uw2*)
5930 symcode='[DT]'
5932 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5933 symcode='[ABDT]'
5935 sysv4)
5936 symcode='[DFNSTU]'
5938 esac
5940 # If we're using GNU nm, then use its standard symbol codes.
5941 case `$NM -V 2>&1` in
5942 *GNU* | *'with BFD'*)
5943 symcode='[ABCDGIRSTW]' ;;
5944 esac
5946 # Transform an extracted symbol line into a proper C declaration.
5947 # Some systems (esp. on ia64) link data and code symbols differently,
5948 # so use this general approach.
5949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5951 # Transform an extracted symbol line into symbol name and symbol address
5952 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5953 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'"
5955 # Handle CRLF in mingw tool chain
5956 opt_cr=
5957 case $build_os in
5958 mingw*)
5959 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5961 esac
5963 # Try without a prefix underscore, then with it.
5964 for ac_symprfx in "" "_"; do
5966 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5967 symxfrm="\\1 $ac_symprfx\\2 \\2"
5969 # Write the raw and C identifiers.
5970 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5971 # Fake it for dumpbin and say T for any non-static function
5972 # and D for any global variable.
5973 # Also find C++ and __fastcall symbols from MSVC++,
5974 # which start with @ or ?.
5975 lt_cv_sys_global_symbol_pipe="$AWK '"\
5976 " {last_section=section; section=\$ 3};"\
5977 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5978 " \$ 0!~/External *\|/{next};"\
5979 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5980 " {if(hide[section]) next};"\
5981 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5982 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5983 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5984 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5985 " ' prfx=^$ac_symprfx"
5986 else
5987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5990 # Check to see that the pipe works correctly.
5991 pipe_works=no
5993 rm -f conftest*
5994 cat > conftest.$ac_ext <<_LT_EOF
5995 #ifdef __cplusplus
5996 extern "C" {
5997 #endif
5998 char nm_test_var;
5999 void nm_test_func(void);
6000 void nm_test_func(void){}
6001 #ifdef __cplusplus
6003 #endif
6004 int main(){nm_test_var='a';nm_test_func();return(0);}
6005 _LT_EOF
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>&5
6009 ac_status=$?
6010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; then
6012 # Now try to grab the symbols.
6013 nlist=conftest.nm
6014 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6015 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6016 ac_status=$?
6017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && test -s "$nlist"; then
6019 # Try sorting and uniquifying the output.
6020 if sort "$nlist" | uniq > "$nlist"T; then
6021 mv -f "$nlist"T "$nlist"
6022 else
6023 rm -f "$nlist"T
6026 # Make sure that we snagged all the symbols we need.
6027 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6028 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6029 cat <<_LT_EOF > conftest.$ac_ext
6030 #ifdef __cplusplus
6031 extern "C" {
6032 #endif
6034 _LT_EOF
6035 # Now generate the symbol file.
6036 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6038 cat <<_LT_EOF >> conftest.$ac_ext
6040 /* The mapping between symbol names and symbols. */
6041 const struct {
6042 const char *name;
6043 void *address;
6045 lt__PROGRAM__LTX_preloaded_symbols[] =
6047 { "@PROGRAM@", (void *) 0 },
6048 _LT_EOF
6049 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6050 cat <<\_LT_EOF >> conftest.$ac_ext
6051 {0, (void *) 0}
6054 /* This works around a problem in FreeBSD linker */
6055 #ifdef FREEBSD_WORKAROUND
6056 static const void *lt_preloaded_setup() {
6057 return lt__PROGRAM__LTX_preloaded_symbols;
6059 #endif
6061 #ifdef __cplusplus
6063 #endif
6064 _LT_EOF
6065 # Now try linking the two files.
6066 mv conftest.$ac_objext conftstm.$ac_objext
6067 lt_save_LIBS="$LIBS"
6068 lt_save_CFLAGS="$CFLAGS"
6069 LIBS="conftstm.$ac_objext"
6070 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6072 (eval $ac_link) 2>&5
6073 ac_status=$?
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6076 pipe_works=yes
6078 LIBS="$lt_save_LIBS"
6079 CFLAGS="$lt_save_CFLAGS"
6080 else
6081 echo "cannot find nm_test_func in $nlist" >&5
6083 else
6084 echo "cannot find nm_test_var in $nlist" >&5
6086 else
6087 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6089 else
6090 echo "$progname: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6093 rm -rf conftest* conftst*
6095 # Do not use the global_symbol_pipe unless it works.
6096 if test "$pipe_works" = yes; then
6097 break
6098 else
6099 lt_cv_sys_global_symbol_pipe=
6101 done
6105 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6106 lt_cv_sys_global_symbol_to_cdecl=
6108 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6109 { $as_echo "$as_me:$LINENO: result: failed" >&5
6110 $as_echo "failed" >&6; }
6111 else
6112 { $as_echo "$as_me:$LINENO: result: ok" >&5
6113 $as_echo "ok" >&6; }
6138 # Check whether --enable-libtool-lock was given.
6139 if test "${enable_libtool_lock+set}" = set; then
6140 enableval=$enable_libtool_lock;
6143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6145 # Some flags need to be propagated to the compiler or linker for good
6146 # libtool support.
6147 case $host in
6148 ia64-*-hpux*)
6149 # Find out which ABI we are using.
6150 echo 'int i;' > conftest.$ac_ext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>&5
6153 ac_status=$?
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; then
6156 case `/usr/bin/file conftest.$ac_objext` in
6157 *ELF-32*)
6158 HPUX_IA64_MODE="32"
6160 *ELF-64*)
6161 HPUX_IA64_MODE="64"
6163 esac
6165 rm -rf conftest*
6167 *-*-irix6*)
6168 # Find out which ABI we are using.
6169 echo '#line 6169 "configure"' > conftest.$ac_ext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; then
6175 if test "$lt_cv_prog_gnu_ld" = yes; then
6176 case `/usr/bin/file conftest.$ac_objext` in
6177 *32-bit*)
6178 LD="${LD-ld} -melf32bsmip"
6180 *N32*)
6181 LD="${LD-ld} -melf32bmipn32"
6183 *64-bit*)
6184 LD="${LD-ld} -melf64bmip"
6186 esac
6187 else
6188 case `/usr/bin/file conftest.$ac_objext` in
6189 *32-bit*)
6190 LD="${LD-ld} -32"
6192 *N32*)
6193 LD="${LD-ld} -n32"
6195 *64-bit*)
6196 LD="${LD-ld} -64"
6198 esac
6201 rm -rf conftest*
6204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6206 # Find out which ABI we are using.
6207 echo 'int i;' > conftest.$ac_ext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; then
6213 case `/usr/bin/file conftest.o` in
6214 *32-bit*)
6215 case $host in
6216 x86_64-*kfreebsd*-gnu)
6217 LD="${LD-ld} -m elf_i386_fbsd"
6219 x86_64-*linux*)
6220 LD="${LD-ld} -m elf_i386"
6222 ppc64-*linux*|powerpc64-*linux*)
6223 LD="${LD-ld} -m elf32ppclinux"
6225 s390x-*linux*)
6226 LD="${LD-ld} -m elf_s390"
6228 sparc64-*linux*)
6229 LD="${LD-ld} -m elf32_sparc"
6231 esac
6233 *64-bit*)
6234 case $host in
6235 x86_64-*kfreebsd*-gnu)
6236 LD="${LD-ld} -m elf_x86_64_fbsd"
6238 x86_64-*linux*)
6239 LD="${LD-ld} -m elf_x86_64"
6241 ppc*-*linux*|powerpc*-*linux*)
6242 LD="${LD-ld} -m elf64ppc"
6244 s390*-*linux*|s390*-*tpf*)
6245 LD="${LD-ld} -m elf64_s390"
6247 sparc*-*linux*)
6248 LD="${LD-ld} -m elf64_sparc"
6250 esac
6252 esac
6254 rm -rf conftest*
6257 *-*-sco3.2v5*)
6258 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6259 SAVE_CFLAGS="$CFLAGS"
6260 CFLAGS="$CFLAGS -belf"
6261 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6262 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6263 if test "${lt_cv_cc_needs_belf+set}" = set; then
6264 $as_echo_n "(cached) " >&6
6265 else
6266 ac_ext=c
6267 ac_cpp='$CPP $CPPFLAGS'
6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6280 main ()
6284 return 0;
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (ac_try="$ac_link"
6289 case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292 esac
6293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6294 $as_echo "$ac_try_echo") >&5
6295 (eval "$ac_link") 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } && {
6302 test -z "$ac_c_werror_flag" ||
6303 test ! -s conftest.err
6304 } && test -s conftest$ac_exeext && {
6305 test "$cross_compiling" = yes ||
6306 $as_test_x conftest$ac_exeext
6307 }; then
6308 lt_cv_cc_needs_belf=yes
6309 else
6310 $as_echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 lt_cv_cc_needs_belf=no
6316 rm -rf conftest.dSYM
6317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6318 conftest$ac_exeext conftest.$ac_ext
6319 ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6327 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6330 CFLAGS="$SAVE_CFLAGS"
6333 sparc*-*solaris*)
6334 # Find out which ABI we are using.
6335 echo 'int i;' > conftest.$ac_ext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; then
6341 case `/usr/bin/file conftest.o` in
6342 *64-bit*)
6343 case $lt_cv_prog_gnu_ld in
6344 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6346 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6347 LD="${LD-ld} -64"
6350 esac
6352 esac
6354 rm -rf conftest*
6356 esac
6358 need_locks="$enable_libtool_lock"
6361 case $host_os in
6362 rhapsody* | darwin*)
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$DSYMUTIL"; then
6372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6392 if test -n "$DSYMUTIL"; then
6393 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6394 $as_echo "$DSYMUTIL" >&6; }
6395 else
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test -z "$ac_cv_prog_DSYMUTIL"; then
6403 ac_ct_DSYMUTIL=$DSYMUTIL
6404 # Extract the first word of "dsymutil", so it can be a program name with args.
6405 set dummy dsymutil; ac_word=$2
6406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_DSYMUTIL"; then
6412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6432 if test -n "$ac_ct_DSYMUTIL"; then
6433 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6434 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6435 else
6436 { $as_echo "$as_me:$LINENO: result: no" >&5
6437 $as_echo "no" >&6; }
6440 if test "x$ac_ct_DSYMUTIL" = x; then
6441 DSYMUTIL=":"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 DSYMUTIL=$ac_ct_DSYMUTIL
6451 else
6452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$NMEDIT"; then
6464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 NMEDIT=$ac_cv_prog_NMEDIT
6484 if test -n "$NMEDIT"; then
6485 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6486 $as_echo "$NMEDIT" >&6; }
6487 else
6488 { $as_echo "$as_me:$LINENO: result: no" >&5
6489 $as_echo "no" >&6; }
6494 if test -z "$ac_cv_prog_NMEDIT"; then
6495 ac_ct_NMEDIT=$NMEDIT
6496 # Extract the first word of "nmedit", so it can be a program name with args.
6497 set dummy nmedit; ac_word=$2
6498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_NMEDIT"; then
6504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6519 IFS=$as_save_IFS
6523 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6524 if test -n "$ac_ct_NMEDIT"; then
6525 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6526 $as_echo "$ac_ct_NMEDIT" >&6; }
6527 else
6528 { $as_echo "$as_me:$LINENO: result: no" >&5
6529 $as_echo "no" >&6; }
6532 if test "x$ac_ct_NMEDIT" = x; then
6533 NMEDIT=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 NMEDIT=$ac_ct_NMEDIT
6543 else
6544 NMEDIT="$ac_cv_prog_NMEDIT"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_LIPO+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$LIPO"; then
6556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 LIPO=$ac_cv_prog_LIPO
6576 if test -n "$LIPO"; then
6577 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6578 $as_echo "$LIPO" >&6; }
6579 else
6580 { $as_echo "$as_me:$LINENO: result: no" >&5
6581 $as_echo "no" >&6; }
6586 if test -z "$ac_cv_prog_LIPO"; then
6587 ac_ct_LIPO=$LIPO
6588 # Extract the first word of "lipo", so it can be a program name with args.
6589 set dummy lipo; ac_word=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_LIPO"; then
6596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_LIPO="lipo"
6606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6616 if test -n "$ac_ct_LIPO"; then
6617 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6618 $as_echo "$ac_ct_LIPO" >&6; }
6619 else
6620 { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6624 if test "x$ac_ct_LIPO" = x; then
6625 LIPO=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 LIPO=$ac_ct_LIPO
6635 else
6636 LIPO="$ac_cv_prog_LIPO"
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}otool; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_OTOOL+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$OTOOL"; then
6648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 OTOOL=$ac_cv_prog_OTOOL
6668 if test -n "$OTOOL"; then
6669 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6670 $as_echo "$OTOOL" >&6; }
6671 else
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_OTOOL"; then
6679 ac_ct_OTOOL=$OTOOL
6680 # Extract the first word of "otool", so it can be a program name with args.
6681 set dummy otool; ac_word=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$ac_ct_OTOOL"; then
6688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_OTOOL="otool"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6708 if test -n "$ac_ct_OTOOL"; then
6709 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6710 $as_echo "$ac_ct_OTOOL" >&6; }
6711 else
6712 { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_OTOOL" = x; then
6717 OTOOL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 OTOOL=$ac_ct_OTOOL
6727 else
6728 OTOOL="$ac_cv_prog_OTOOL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$OTOOL64"; then
6740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 OTOOL64=$ac_cv_prog_OTOOL64
6760 if test -n "$OTOOL64"; then
6761 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6762 $as_echo "$OTOOL64" >&6; }
6763 else
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_OTOOL64"; then
6771 ac_ct_OTOOL64=$OTOOL64
6772 # Extract the first word of "otool64", so it can be a program name with args.
6773 set dummy otool64; ac_word=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_OTOOL64"; then
6780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_OTOOL64="otool64"
6790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6800 if test -n "$ac_ct_OTOOL64"; then
6801 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6802 $as_echo "$ac_ct_OTOOL64" >&6; }
6803 else
6804 { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_OTOOL64" = x; then
6809 OTOOL64=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 OTOOL64=$ac_ct_OTOOL64
6819 else
6820 OTOOL64="$ac_cv_prog_OTOOL64"
6849 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6850 $as_echo_n "checking for -single_module linker flag... " >&6; }
6851 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6853 else
6854 lt_cv_apple_cc_single_mod=no
6855 if test -z "${LT_MULTI_MODULE}"; then
6856 # By default we will add the -single_module flag. You can override
6857 # by either setting the environment variable LT_MULTI_MODULE
6858 # non-empty at configure time, or by adding -multi_module to the
6859 # link flags.
6860 rm -rf libconftest.dylib*
6861 echo "int foo(void){return 1;}" > conftest.c
6862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6863 -dynamiclib -Wl,-single_module conftest.c" >&5
6864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6866 _lt_result=$?
6867 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6868 lt_cv_apple_cc_single_mod=yes
6869 else
6870 cat conftest.err >&5
6872 rm -rf libconftest.dylib*
6873 rm -f conftest.*
6876 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6878 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6879 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6880 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882 else
6883 lt_cv_ld_exported_symbols_list=no
6884 save_LDFLAGS=$LDFLAGS
6885 echo "_main" > conftest.sym
6886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6895 main ()
6899 return 0;
6901 _ACEOF
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6904 case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907 esac
6908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6909 $as_echo "$ac_try_echo") >&5
6910 (eval "$ac_link") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest$ac_exeext && {
6920 test "$cross_compiling" = yes ||
6921 $as_test_x conftest$ac_exeext
6922 }; then
6923 lt_cv_ld_exported_symbols_list=yes
6924 else
6925 $as_echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 lt_cv_ld_exported_symbols_list=no
6931 rm -rf conftest.dSYM
6932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6933 conftest$ac_exeext conftest.$ac_ext
6934 LDFLAGS="$save_LDFLAGS"
6937 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6938 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6939 case $host_os in
6940 rhapsody* | darwin1.[012])
6941 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6942 darwin1.*)
6943 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6944 darwin*) # darwin 5.x on
6945 # if running on 10.5 or later, the deployment target defaults
6946 # to the OS version, if on x86, and 10.4, the deployment
6947 # target defaults to 10.4. Don't you love it?
6948 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6949 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6950 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6951 10.[012]*)
6952 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6953 10.*)
6954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6955 esac
6957 esac
6958 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6959 _lt_dar_single_mod='$single_module'
6961 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6962 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6963 else
6964 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6966 if test "$DSYMUTIL" != ":"; then
6967 _lt_dsymutil='~$DSYMUTIL $lib || :'
6968 else
6969 _lt_dsymutil=
6972 esac
6974 ac_ext=c
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6981 # On Suns, sometimes $CPP names a directory.
6982 if test -n "$CPP" && test -d "$CPP"; then
6983 CPP=
6985 if test -z "$CPP"; then
6986 if test "${ac_cv_prog_CPP+set}" = set; then
6987 $as_echo_n "(cached) " >&6
6988 else
6989 # Double quotes because CPP needs to be expanded
6990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6992 ac_preproc_ok=false
6993 for ac_c_preproc_warn_flag in '' yes
6995 # Use a header file that comes with gcc, so configuring glibc
6996 # with a fresh cross-compiler works.
6997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6998 # <limits.h> exists even on freestanding compilers.
6999 # On the NeXT, cc -E runs the code through the compiler's parser,
7000 # not just through cpp. "Syntax error" is here to catch this case.
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #ifdef __STDC__
7008 # include <limits.h>
7009 #else
7010 # include <assert.h>
7011 #endif
7012 Syntax error
7013 _ACEOF
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7020 $as_echo "$ac_try_echo") >&5
7021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } >/dev/null && {
7028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 }; then
7032 else
7033 $as_echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 # Broken: fails on valid input.
7037 continue
7040 rm -f conftest.err conftest.$ac_ext
7042 # OK, works on sane cases. Now check whether nonexistent headers
7043 # can be detected and how.
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 #include <ac_nonexistent.h>
7051 _ACEOF
7052 if { (ac_try="$ac_cpp conftest.$ac_ext"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } >/dev/null && {
7066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 }; then
7069 # Broken: success on invalid input.
7070 continue
7071 else
7072 $as_echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 # Passes both tests.
7076 ac_preproc_ok=:
7077 break
7080 rm -f conftest.err conftest.$ac_ext
7082 done
7083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7084 rm -f conftest.err conftest.$ac_ext
7085 if $ac_preproc_ok; then
7086 break
7089 done
7090 ac_cv_prog_CPP=$CPP
7093 CPP=$ac_cv_prog_CPP
7094 else
7095 ac_cv_prog_CPP=$CPP
7097 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7098 $as_echo "$CPP" >&6; }
7099 ac_preproc_ok=false
7100 for ac_c_preproc_warn_flag in '' yes
7102 # Use a header file that comes with gcc, so configuring glibc
7103 # with a fresh cross-compiler works.
7104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7105 # <limits.h> exists even on freestanding compilers.
7106 # On the NeXT, cc -E runs the code through the compiler's parser,
7107 # not just through cpp. "Syntax error" is here to catch this case.
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #ifdef __STDC__
7115 # include <limits.h>
7116 #else
7117 # include <assert.h>
7118 #endif
7119 Syntax error
7120 _ACEOF
7121 if { (ac_try="$ac_cpp conftest.$ac_ext"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } >/dev/null && {
7135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 }; then
7139 else
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 # Broken: fails on valid input.
7144 continue
7147 rm -f conftest.err conftest.$ac_ext
7149 # OK, works on sane cases. Now check whether nonexistent headers
7150 # can be detected and how.
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if { (ac_try="$ac_cpp conftest.$ac_ext"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165 $as_echo "$ac_try_echo") >&5
7166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } >/dev/null && {
7173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 }; then
7176 # Broken: success on invalid input.
7177 continue
7178 else
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 # Passes both tests.
7183 ac_preproc_ok=:
7184 break
7187 rm -f conftest.err conftest.$ac_ext
7189 done
7190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7191 rm -f conftest.err conftest.$ac_ext
7192 if $ac_preproc_ok; then
7194 else
7195 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7197 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7198 See \`config.log' for more details." >&5
7199 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7200 See \`config.log' for more details." >&2;}
7201 { (exit 1); exit 1; }; }; }
7204 ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7212 $as_echo_n "checking for ANSI C header files... " >&6; }
7213 if test "${ac_cv_header_stdc+set}" = set; then
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <stdlib.h>
7223 #include <stdarg.h>
7224 #include <string.h>
7225 #include <float.h>
7228 main ()
7232 return 0;
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (ac_try="$ac_compile"
7237 case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240 esac
7241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7242 $as_echo "$ac_try_echo") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7253 ac_cv_header_stdc=yes
7254 else
7255 $as_echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_header_stdc=no
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 if test $ac_cv_header_stdc = yes; then
7264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <string.h>
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "memchr" >/dev/null 2>&1; then
7277 else
7278 ac_cv_header_stdc=no
7280 rm -f conftest*
7284 if test $ac_cv_header_stdc = yes; then
7285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 #include <stdlib.h>
7294 _ACEOF
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 $EGREP "free" >/dev/null 2>&1; then
7298 else
7299 ac_cv_header_stdc=no
7301 rm -f conftest*
7305 if test $ac_cv_header_stdc = yes; then
7306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7307 if test "$cross_compiling" = yes; then
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <ctype.h>
7317 #include <stdlib.h>
7318 #if ((' ' & 0x0FF) == 0x020)
7319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7321 #else
7322 # define ISLOWER(c) \
7323 (('a' <= (c) && (c) <= 'i') \
7324 || ('j' <= (c) && (c) <= 'r') \
7325 || ('s' <= (c) && (c) <= 'z'))
7326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7327 #endif
7329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7331 main ()
7333 int i;
7334 for (i = 0; i < 256; i++)
7335 if (XOR (islower (i), ISLOWER (i))
7336 || toupper (i) != TOUPPER (i))
7337 return 2;
7338 return 0;
7340 _ACEOF
7341 rm -f conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7343 case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_link") 2>&5
7350 ac_status=$?
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7353 { (case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7358 $as_echo "$ac_try_echo") >&5
7359 (eval "$ac_try") 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7364 else
7365 $as_echo "$as_me: program exited with status $ac_status" >&5
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ( exit $ac_status )
7370 ac_cv_header_stdc=no
7372 rm -rf conftest.dSYM
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7380 $as_echo "$ac_cv_header_stdc" >&6; }
7381 if test $ac_cv_header_stdc = yes; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define STDC_HEADERS 1
7385 _ACEOF
7389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7400 inttypes.h stdint.h unistd.h
7402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 $as_echo_n "checking for $ac_header... " >&6; }
7405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425 $as_echo "$ac_try_echo") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7436 eval "$as_ac_Header=yes"
7437 else
7438 $as_echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 ac_res=`eval 'as_val=${'$as_ac_Header'}
7447 $as_echo "$as_val"'`
7448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7449 $as_echo "$ac_res" >&6; }
7450 as_val=`eval 'as_val=${'$as_ac_Header'}
7451 $as_echo "$as_val"'`
7452 if test "x$as_val" = x""yes; then
7453 cat >>confdefs.h <<_ACEOF
7454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455 _ACEOF
7459 done
7463 for ac_header in dlfcn.h
7465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 $as_echo_n "checking for $ac_header... " >&6; }
7468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7479 #include <$ac_header>
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7483 case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486 esac
7487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7488 $as_echo "$ac_try_echo") >&5
7489 (eval "$ac_compile") 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } && {
7496 test -z "$ac_c_werror_flag" ||
7497 test ! -s conftest.err
7498 } && test -s conftest.$ac_objext; then
7499 eval "$as_ac_Header=yes"
7500 else
7501 $as_echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 eval "$as_ac_Header=no"
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 ac_res=`eval 'as_val=${'$as_ac_Header'}
7510 $as_echo "$as_val"'`
7511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7512 $as_echo "$ac_res" >&6; }
7513 as_val=`eval 'as_val=${'$as_ac_Header'}
7514 $as_echo "$as_val"'`
7515 if test "x$as_val" = x""yes; then
7516 cat >>confdefs.h <<_ACEOF
7517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7518 _ACEOF
7522 done
7526 # Set options
7530 enable_dlopen=no
7533 enable_win32_dll=no
7536 # Check whether --enable-shared was given.
7537 if test "${enable_shared+set}" = set; then
7538 enableval=$enable_shared; p=${PACKAGE-default}
7539 case $enableval in
7540 yes) enable_shared=yes ;;
7541 no) enable_shared=no ;;
7543 enable_shared=no
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7547 IFS="$lt_save_ifs"
7548 if test "X$pkg" = "X$p"; then
7549 enable_shared=yes
7551 done
7552 IFS="$lt_save_ifs"
7554 esac
7555 else
7556 enable_shared=yes
7567 # Check whether --enable-static was given.
7568 if test "${enable_static+set}" = set; then
7569 enableval=$enable_static; p=${PACKAGE-default}
7570 case $enableval in
7571 yes) enable_static=yes ;;
7572 no) enable_static=no ;;
7574 enable_static=no
7575 # Look at the argument we got. We use all the common list separators.
7576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577 for pkg in $enableval; do
7578 IFS="$lt_save_ifs"
7579 if test "X$pkg" = "X$p"; then
7580 enable_static=yes
7582 done
7583 IFS="$lt_save_ifs"
7585 esac
7586 else
7587 enable_static=yes
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then
7601 withval=$with_pic; pic_mode="$withval"
7602 else
7603 pic_mode=default
7607 test -z "$pic_mode" && pic_mode=default
7615 # Check whether --enable-fast-install was given.
7616 if test "${enable_fast_install+set}" = set; then
7617 enableval=$enable_fast_install; p=${PACKAGE-default}
7618 case $enableval in
7619 yes) enable_fast_install=yes ;;
7620 no) enable_fast_install=no ;;
7622 enable_fast_install=no
7623 # Look at the argument we got. We use all the common list separators.
7624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7625 for pkg in $enableval; do
7626 IFS="$lt_save_ifs"
7627 if test "X$pkg" = "X$p"; then
7628 enable_fast_install=yes
7630 done
7631 IFS="$lt_save_ifs"
7633 esac
7634 else
7635 enable_fast_install=yes
7648 # This can be used to rebuild libtool when needed
7649 LIBTOOL_DEPS="$ltmain"
7651 # Always use our own libtool.
7652 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7678 test -z "$LN_S" && LN_S="ln -s"
7693 if test -n "${ZSH_VERSION+set}" ; then
7694 setopt NO_GLOB_SUBST
7697 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7698 $as_echo_n "checking for objdir... " >&6; }
7699 if test "${lt_cv_objdir+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7701 else
7702 rm -f .libs 2>/dev/null
7703 mkdir .libs 2>/dev/null
7704 if test -d .libs; then
7705 lt_cv_objdir=.libs
7706 else
7707 # MS-DOS does not allow filenames that begin with a dot.
7708 lt_cv_objdir=_libs
7710 rmdir .libs 2>/dev/null
7712 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7713 $as_echo "$lt_cv_objdir" >&6; }
7714 objdir=$lt_cv_objdir
7720 cat >>confdefs.h <<_ACEOF
7721 #define LT_OBJDIR "$lt_cv_objdir/"
7722 _ACEOF
7740 case $host_os in
7741 aix3*)
7742 # AIX sometimes has problems with the GCC collect2 program. For some
7743 # reason, if we set the COLLECT_NAMES environment variable, the problems
7744 # vanish in a puff of smoke.
7745 if test "X${COLLECT_NAMES+set}" != Xset; then
7746 COLLECT_NAMES=
7747 export COLLECT_NAMES
7750 esac
7752 # Sed substitution that helps us do robust quoting. It backslashifies
7753 # metacharacters that are still active within double-quoted strings.
7754 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7756 # Same as above, but do not quote variable references.
7757 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7759 # Sed substitution to delay expansion of an escaped shell variable in a
7760 # double_quote_subst'ed string.
7761 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7763 # Sed substitution to delay expansion of an escaped single quote.
7764 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7766 # Sed substitution to avoid accidental globbing in evaled expressions
7767 no_glob_subst='s/\*/\\\*/g'
7769 # Global variables:
7770 ofile=libtool
7771 can_build_shared=yes
7773 # All known linkers require a `.a' archive for static linking (except MSVC,
7774 # which needs '.lib').
7775 libext=a
7777 with_gnu_ld="$lt_cv_prog_gnu_ld"
7779 old_CC="$CC"
7780 old_CFLAGS="$CFLAGS"
7782 # Set sane defaults for various variables
7783 test -z "$CC" && CC=cc
7784 test -z "$LTCC" && LTCC=$CC
7785 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7786 test -z "$LD" && LD=ld
7787 test -z "$ac_objext" && ac_objext=o
7789 for cc_temp in $compiler""; do
7790 case $cc_temp in
7791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7793 \-*) ;;
7794 *) break;;
7795 esac
7796 done
7797 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7800 # Only perform the check for file, if the check method requires it
7801 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7802 case $deplibs_check_method in
7803 file_magic*)
7804 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7805 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7806 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7807 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7808 $as_echo_n "(cached) " >&6
7809 else
7810 case $MAGIC_CMD in
7811 [\\/*] | ?:[\\/]*)
7812 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7815 lt_save_MAGIC_CMD="$MAGIC_CMD"
7816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7817 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7818 for ac_dir in $ac_dummy; do
7819 IFS="$lt_save_ifs"
7820 test -z "$ac_dir" && ac_dir=.
7821 if test -f $ac_dir/${ac_tool_prefix}file; then
7822 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7823 if test -n "$file_magic_test_file"; then
7824 case $deplibs_check_method in
7825 "file_magic "*)
7826 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7829 $EGREP "$file_magic_regex" > /dev/null; then
7831 else
7832 cat <<_LT_EOF 1>&2
7834 *** Warning: the command libtool uses to detect shared libraries,
7835 *** $file_magic_cmd, produces output that libtool cannot recognize.
7836 *** The result is that libtool may fail to recognize shared libraries
7837 *** as such. This will affect the creation of libtool libraries that
7838 *** depend on shared libraries, but programs linked with such libtool
7839 *** libraries will work regardless of this problem. Nevertheless, you
7840 *** may want to report the problem to your system manager and/or to
7841 *** bug-libtool@gnu.org
7843 _LT_EOF
7844 fi ;;
7845 esac
7847 break
7849 done
7850 IFS="$lt_save_ifs"
7851 MAGIC_CMD="$lt_save_MAGIC_CMD"
7853 esac
7856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857 if test -n "$MAGIC_CMD"; then
7858 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7859 $as_echo "$MAGIC_CMD" >&6; }
7860 else
7861 { $as_echo "$as_me:$LINENO: result: no" >&5
7862 $as_echo "no" >&6; }
7869 if test -z "$lt_cv_path_MAGIC_CMD"; then
7870 if test -n "$ac_tool_prefix"; then
7871 { $as_echo "$as_me:$LINENO: checking for file" >&5
7872 $as_echo_n "checking for file... " >&6; }
7873 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7875 else
7876 case $MAGIC_CMD in
7877 [\\/*] | ?:[\\/]*)
7878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7881 lt_save_MAGIC_CMD="$MAGIC_CMD"
7882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7883 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7884 for ac_dir in $ac_dummy; do
7885 IFS="$lt_save_ifs"
7886 test -z "$ac_dir" && ac_dir=.
7887 if test -f $ac_dir/file; then
7888 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7889 if test -n "$file_magic_test_file"; then
7890 case $deplibs_check_method in
7891 "file_magic "*)
7892 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7895 $EGREP "$file_magic_regex" > /dev/null; then
7897 else
7898 cat <<_LT_EOF 1>&2
7900 *** Warning: the command libtool uses to detect shared libraries,
7901 *** $file_magic_cmd, produces output that libtool cannot recognize.
7902 *** The result is that libtool may fail to recognize shared libraries
7903 *** as such. This will affect the creation of libtool libraries that
7904 *** depend on shared libraries, but programs linked with such libtool
7905 *** libraries will work regardless of this problem. Nevertheless, you
7906 *** may want to report the problem to your system manager and/or to
7907 *** bug-libtool@gnu.org
7909 _LT_EOF
7910 fi ;;
7911 esac
7913 break
7915 done
7916 IFS="$lt_save_ifs"
7917 MAGIC_CMD="$lt_save_MAGIC_CMD"
7919 esac
7922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7923 if test -n "$MAGIC_CMD"; then
7924 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7925 $as_echo "$MAGIC_CMD" >&6; }
7926 else
7927 { $as_echo "$as_me:$LINENO: result: no" >&5
7928 $as_echo "no" >&6; }
7932 else
7933 MAGIC_CMD=:
7939 esac
7941 # Use C for the default configuration in the libtool script
7943 lt_save_CC="$CC"
7944 ac_ext=c
7945 ac_cpp='$CPP $CPPFLAGS'
7946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951 # Source file extension for C test sources.
7952 ac_ext=c
7954 # Object file extension for compiled C test sources.
7955 objext=o
7956 objext=$objext
7958 # Code to be used in simple compile tests
7959 lt_simple_compile_test_code="int some_variable = 0;"
7961 # Code to be used in simple link tests
7962 lt_simple_link_test_code='int main(){return(0);}'
7970 # If no C compiler was specified, use CC.
7971 LTCC=${LTCC-"$CC"}
7973 # If no C compiler flags were specified, use CFLAGS.
7974 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7976 # Allow CC to be a program name with arguments.
7977 compiler=$CC
7979 # Save the default compiler, since it gets overwritten when the other
7980 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7981 compiler_DEFAULT=$CC
7983 # save warnings/boilerplate of simple test code
7984 ac_outfile=conftest.$ac_objext
7985 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7986 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7987 _lt_compiler_boilerplate=`cat conftest.err`
7988 $RM conftest*
7990 ac_outfile=conftest.$ac_objext
7991 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7992 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7993 _lt_linker_boilerplate=`cat conftest.err`
7994 $RM -r conftest*
7997 if test -n "$compiler"; then
7999 lt_prog_compiler_no_builtin_flag=
8001 if test "$GCC" = yes; then
8002 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8004 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8005 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8007 $as_echo_n "(cached) " >&6
8008 else
8009 lt_cv_prog_compiler_rtti_exceptions=no
8010 ac_outfile=conftest.$ac_objext
8011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8012 lt_compiler_flag="-fno-rtti -fno-exceptions"
8013 # Insert the option either (1) after the last *FLAGS variable, or
8014 # (2) before a word containing "conftest.", or (3) at the end.
8015 # Note that $ac_compile itself does not contain backslashes and begins
8016 # with a dollar sign (not a hyphen), so the echo should work correctly.
8017 # The option is referenced via a variable to avoid confusing sed.
8018 lt_compile=`echo "$ac_compile" | $SED \
8019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8021 -e 's:$: $lt_compiler_flag:'`
8022 (eval echo "\"\$as_me:8022: $lt_compile\"" >&5)
8023 (eval "$lt_compile" 2>conftest.err)
8024 ac_status=$?
8025 cat conftest.err >&5
8026 echo "$as_me:8026: \$? = $ac_status" >&5
8027 if (exit $ac_status) && test -s "$ac_outfile"; then
8028 # The compiler can only warn and ignore the option if not recognized
8029 # So say no if there are warnings other than the usual output.
8030 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8033 lt_cv_prog_compiler_rtti_exceptions=yes
8036 $RM conftest*
8039 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8040 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8044 else
8055 lt_prog_compiler_wl=
8056 lt_prog_compiler_pic=
8057 lt_prog_compiler_static=
8059 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8062 if test "$GCC" = yes; then
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_static='-static'
8066 case $host_os in
8067 aix*)
8068 # All AIX code is PIC.
8069 if test "$host_cpu" = ia64; then
8070 # AIX 5 now supports IA64 processor
8071 lt_prog_compiler_static='-Bstatic'
8075 amigaos*)
8076 case $host_cpu in
8077 powerpc)
8078 # see comment about AmigaOS4 .so support
8079 lt_prog_compiler_pic='-fPIC'
8081 m68k)
8082 # FIXME: we need at least 68020 code to build shared libraries, but
8083 # adding the `-m68020' flag to GCC prevents building anything better,
8084 # like `-m68040'.
8085 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8087 esac
8090 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8091 # PIC is the default for these OSes.
8094 mingw* | cygwin* | pw32* | os2* | cegcc*)
8095 # This hack is so that the source file can tell whether it is being
8096 # built for inclusion in a dll (and should export symbols for example).
8097 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8098 # (--disable-auto-import) libraries
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8102 darwin* | rhapsody*)
8103 # PIC is the default on this platform
8104 # Common symbols not allowed in MH_DYLIB files
8105 lt_prog_compiler_pic='-fno-common'
8108 hpux*)
8109 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8110 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8111 # sets the default TLS model and affects inlining.
8112 case $host_cpu in
8113 hppa*64*)
8114 # +Z the default
8117 lt_prog_compiler_pic='-fPIC'
8119 esac
8122 interix[3-9]*)
8123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8124 # Instead, we relocate shared libraries at runtime.
8127 msdosdjgpp*)
8128 # Just because we use GCC doesn't mean we suddenly get shared libraries
8129 # on systems that don't support them.
8130 lt_prog_compiler_can_build_shared=no
8131 enable_shared=no
8134 *nto* | *qnx*)
8135 # QNX uses GNU C++, but need to define -shared option too, otherwise
8136 # it will coredump.
8137 lt_prog_compiler_pic='-fPIC -shared'
8140 sysv4*MP*)
8141 if test -d /usr/nec; then
8142 lt_prog_compiler_pic=-Kconform_pic
8147 lt_prog_compiler_pic='-fPIC'
8149 esac
8150 else
8151 # PORTME Check for flag to pass linker flags through the system compiler.
8152 case $host_os in
8153 aix*)
8154 lt_prog_compiler_wl='-Wl,'
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 now supports IA64 processor
8157 lt_prog_compiler_static='-Bstatic'
8158 else
8159 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8163 mingw* | cygwin* | pw32* | os2* | cegcc*)
8164 # This hack is so that the source file can tell whether it is being
8165 # built for inclusion in a dll (and should export symbols for example).
8166 lt_prog_compiler_pic='-DDLL_EXPORT'
8169 hpux9* | hpux10* | hpux11*)
8170 lt_prog_compiler_wl='-Wl,'
8171 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8172 # not for PA HP-UX.
8173 case $host_cpu in
8174 hppa*64*|ia64*)
8175 # +Z the default
8178 lt_prog_compiler_pic='+Z'
8180 esac
8181 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8182 lt_prog_compiler_static='${wl}-a ${wl}archive'
8185 irix5* | irix6* | nonstopux*)
8186 lt_prog_compiler_wl='-Wl,'
8187 # PIC (with -KPIC) is the default.
8188 lt_prog_compiler_static='-non_shared'
8191 linux* | k*bsd*-gnu)
8192 case $cc_basename in
8193 # old Intel for x86_64 which still supported -KPIC.
8194 ecc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-static'
8199 # icc used to be incompatible with GCC.
8200 # ICC 10 doesn't accept -KPIC any more.
8201 icc* | ifort*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_pic='-fPIC'
8204 lt_prog_compiler_static='-static'
8206 # Lahey Fortran 8.1.
8207 lf95*)
8208 lt_prog_compiler_wl='-Wl,'
8209 lt_prog_compiler_pic='--shared'
8210 lt_prog_compiler_static='--static'
8212 pgcc* | pgf77* | pgf90* | pgf95*)
8213 # Portland Group compilers (*not* the Pentium gcc compiler,
8214 # which looks to be a dead project)
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_pic='-fpic'
8217 lt_prog_compiler_static='-Bstatic'
8219 ccc*)
8220 lt_prog_compiler_wl='-Wl,'
8221 # All Alpha code is PIC.
8222 lt_prog_compiler_static='-non_shared'
8224 xl*)
8225 # IBM XL C 8.0/Fortran 10.1 on PPC
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_pic='-qpic'
8228 lt_prog_compiler_static='-qstaticlink'
8231 case `$CC -V 2>&1 | sed 5q` in
8232 *Sun\ C*)
8233 # Sun C 5.9
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 lt_prog_compiler_wl='-Wl,'
8238 *Sun\ F*)
8239 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 lt_prog_compiler_wl=''
8244 esac
8246 esac
8249 newsos6)
8250 lt_prog_compiler_pic='-KPIC'
8251 lt_prog_compiler_static='-Bstatic'
8254 *nto* | *qnx*)
8255 # QNX uses GNU C++, but need to define -shared option too, otherwise
8256 # it will coredump.
8257 lt_prog_compiler_pic='-fPIC -shared'
8260 osf3* | osf4* | osf5*)
8261 lt_prog_compiler_wl='-Wl,'
8262 # All OSF/1 code is PIC.
8263 lt_prog_compiler_static='-non_shared'
8266 rdos*)
8267 lt_prog_compiler_static='-non_shared'
8270 solaris*)
8271 lt_prog_compiler_pic='-KPIC'
8272 lt_prog_compiler_static='-Bstatic'
8273 case $cc_basename in
8274 f77* | f90* | f95*)
8275 lt_prog_compiler_wl='-Qoption ld ';;
8277 lt_prog_compiler_wl='-Wl,';;
8278 esac
8281 sunos4*)
8282 lt_prog_compiler_wl='-Qoption ld '
8283 lt_prog_compiler_pic='-PIC'
8284 lt_prog_compiler_static='-Bstatic'
8287 sysv4 | sysv4.2uw2* | sysv4.3*)
8288 lt_prog_compiler_wl='-Wl,'
8289 lt_prog_compiler_pic='-KPIC'
8290 lt_prog_compiler_static='-Bstatic'
8293 sysv4*MP*)
8294 if test -d /usr/nec ;then
8295 lt_prog_compiler_pic='-Kconform_pic'
8296 lt_prog_compiler_static='-Bstatic'
8300 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8306 unicos*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_can_build_shared=no
8311 uts4*)
8312 lt_prog_compiler_pic='-pic'
8313 lt_prog_compiler_static='-Bstatic'
8317 lt_prog_compiler_can_build_shared=no
8319 esac
8322 case $host_os in
8323 # For platforms which do not support PIC, -DPIC is meaningless:
8324 *djgpp*)
8325 lt_prog_compiler_pic=
8328 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8330 esac
8331 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8332 $as_echo "$lt_prog_compiler_pic" >&6; }
8340 # Check to make sure the PIC flag actually works.
8342 if test -n "$lt_prog_compiler_pic"; then
8343 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8344 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8345 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8346 $as_echo_n "(cached) " >&6
8347 else
8348 lt_cv_prog_compiler_pic_works=no
8349 ac_outfile=conftest.$ac_objext
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8352 # Insert the option either (1) after the last *FLAGS variable, or
8353 # (2) before a word containing "conftest.", or (3) at the end.
8354 # Note that $ac_compile itself does not contain backslashes and begins
8355 # with a dollar sign (not a hyphen), so the echo should work correctly.
8356 # The option is referenced via a variable to avoid confusing sed.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>conftest.err)
8363 ac_status=$?
8364 cat conftest.err >&5
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s "$ac_outfile"; then
8367 # The compiler can only warn and ignore the option if not recognized
8368 # So say no if there are warnings other than the usual output.
8369 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8372 lt_cv_prog_compiler_pic_works=yes
8375 $RM conftest*
8378 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8379 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8381 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8382 case $lt_prog_compiler_pic in
8383 "" | " "*) ;;
8384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8385 esac
8386 else
8387 lt_prog_compiler_pic=
8388 lt_prog_compiler_can_build_shared=no
8399 # Check to make sure the static flag actually works.
8401 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8402 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8403 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8404 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8405 $as_echo_n "(cached) " >&6
8406 else
8407 lt_cv_prog_compiler_static_works=no
8408 save_LDFLAGS="$LDFLAGS"
8409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8412 # The linker can only warn and ignore the option if not recognized
8413 # So say no if there are warnings
8414 if test -s conftest.err; then
8415 # Append any errors to the config.log.
8416 cat conftest.err 1>&5
8417 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419 if diff conftest.exp conftest.er2 >/dev/null; then
8420 lt_cv_prog_compiler_static_works=yes
8422 else
8423 lt_cv_prog_compiler_static_works=yes
8426 $RM -r conftest*
8427 LDFLAGS="$save_LDFLAGS"
8430 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8431 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8433 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8435 else
8436 lt_prog_compiler_static=
8445 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8448 $as_echo_n "(cached) " >&6
8449 else
8450 lt_cv_prog_compiler_c_o=no
8451 $RM -r conftest 2>/dev/null
8452 mkdir conftest
8453 cd conftest
8454 mkdir out
8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457 lt_compiler_flag="-o out/conftest2.$ac_objext"
8458 # Insert the option either (1) after the last *FLAGS variable, or
8459 # (2) before a word containing "conftest.", or (3) at the end.
8460 # Note that $ac_compile itself does not contain backslashes and begins
8461 # with a dollar sign (not a hyphen), so the echo should work correctly.
8462 lt_compile=`echo "$ac_compile" | $SED \
8463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465 -e 's:$: $lt_compiler_flag:'`
8466 (eval echo "\"\$as_me:8466: $lt_compile\"" >&5)
8467 (eval "$lt_compile" 2>out/conftest.err)
8468 ac_status=$?
8469 cat out/conftest.err >&5
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8472 then
8473 # The compiler can only warn and ignore the option if not recognized
8474 # So say no if there are warnings
8475 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8478 lt_cv_prog_compiler_c_o=yes
8481 chmod u+w . 2>&5
8482 $RM conftest*
8483 # SGI C++ compiler will create directory out/ii_files/ for
8484 # template instantiation
8485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8486 $RM out/* && rmdir out
8487 cd ..
8488 $RM -r conftest
8489 $RM conftest*
8492 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8493 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8500 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_c_o=no
8506 $RM -r conftest 2>/dev/null
8507 mkdir conftest
8508 cd conftest
8509 mkdir out
8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512 lt_compiler_flag="-o out/conftest2.$ac_objext"
8513 # Insert the option either (1) after the last *FLAGS variable, or
8514 # (2) before a word containing "conftest.", or (3) at the end.
8515 # Note that $ac_compile itself does not contain backslashes and begins
8516 # with a dollar sign (not a hyphen), so the echo should work correctly.
8517 lt_compile=`echo "$ac_compile" | $SED \
8518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8520 -e 's:$: $lt_compiler_flag:'`
8521 (eval echo "\"\$as_me:8521: $lt_compile\"" >&5)
8522 (eval "$lt_compile" 2>out/conftest.err)
8523 ac_status=$?
8524 cat out/conftest.err >&5
8525 echo "$as_me:8525: \$? = $ac_status" >&5
8526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8527 then
8528 # The compiler can only warn and ignore the option if not recognized
8529 # So say no if there are warnings
8530 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8533 lt_cv_prog_compiler_c_o=yes
8536 chmod u+w . 2>&5
8537 $RM conftest*
8538 # SGI C++ compiler will create directory out/ii_files/ for
8539 # template instantiation
8540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8541 $RM out/* && rmdir out
8542 cd ..
8543 $RM -r conftest
8544 $RM conftest*
8547 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8553 hard_links="nottested"
8554 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8555 # do not overwrite the value of need_locks provided by the user
8556 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8557 $as_echo_n "checking if we can lock with hard links... " >&6; }
8558 hard_links=yes
8559 $RM conftest*
8560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8561 touch conftest.a
8562 ln conftest.a conftest.b 2>&5 || hard_links=no
8563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8564 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8565 $as_echo "$hard_links" >&6; }
8566 if test "$hard_links" = no; then
8567 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8568 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8569 need_locks=warn
8571 else
8572 need_locks=no
8580 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8581 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8583 runpath_var=
8584 allow_undefined_flag=
8585 always_export_symbols=no
8586 archive_cmds=
8587 archive_expsym_cmds=
8588 compiler_needs_object=no
8589 enable_shared_with_static_runtimes=no
8590 export_dynamic_flag_spec=
8591 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8592 hardcode_automatic=no
8593 hardcode_direct=no
8594 hardcode_direct_absolute=no
8595 hardcode_libdir_flag_spec=
8596 hardcode_libdir_flag_spec_ld=
8597 hardcode_libdir_separator=
8598 hardcode_minus_L=no
8599 hardcode_shlibpath_var=unsupported
8600 inherit_rpath=no
8601 link_all_deplibs=unknown
8602 module_cmds=
8603 module_expsym_cmds=
8604 old_archive_from_new_cmds=
8605 old_archive_from_expsyms_cmds=
8606 thread_safe_flag_spec=
8607 whole_archive_flag_spec=
8608 # include_expsyms should be a list of space-separated symbols to be *always*
8609 # included in the symbol list
8610 include_expsyms=
8611 # exclude_expsyms can be an extended regexp of symbols to exclude
8612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8614 # as well as any symbol that contains `d'.
8615 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8617 # platforms (ab)use it in PIC code, but their linkers get confused if
8618 # the symbol is explicitly referenced. Since portable code cannot
8619 # rely on this symbol name, it's probably fine to never include it in
8620 # preloaded symbol tables.
8621 # Exclude shared library initialization/finalization symbols.
8622 extract_expsyms_cmds=
8624 case $host_os in
8625 cygwin* | mingw* | pw32* | cegcc*)
8626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8627 # When not using gcc, we currently assume that we are using
8628 # Microsoft Visual C++.
8629 if test "$GCC" != yes; then
8630 with_gnu_ld=no
8633 interix*)
8634 # we just hope/assume this is gcc and not c89 (= MSVC++)
8635 with_gnu_ld=yes
8637 openbsd*)
8638 with_gnu_ld=no
8640 esac
8642 ld_shlibs=yes
8643 if test "$with_gnu_ld" = yes; then
8644 # If archive_cmds runs LD, not CC, wlarc should be empty
8645 wlarc='${wl}'
8647 # Set some defaults for GNU ld with shared library support. These
8648 # are reset later if shared libraries are not supported. Putting them
8649 # here allows them to be overridden if necessary.
8650 runpath_var=LD_RUN_PATH
8651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652 export_dynamic_flag_spec='${wl}--export-dynamic'
8653 # ancient GNU ld didn't support --whole-archive et. al.
8654 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8655 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8656 else
8657 whole_archive_flag_spec=
8659 supports_anon_versioning=no
8660 case `$LD -v 2>&1` in
8661 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8662 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8663 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8664 *\ 2.11.*) ;; # other 2.11 versions
8665 *) supports_anon_versioning=yes ;;
8666 esac
8668 # See if GNU ld supports shared libraries.
8669 case $host_os in
8670 aix[3-9]*)
8671 # On AIX/PPC, the GNU linker is very broken
8672 if test "$host_cpu" != ia64; then
8673 ld_shlibs=no
8674 cat <<_LT_EOF 1>&2
8676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8677 *** to be unable to reliably create shared libraries on AIX.
8678 *** Therefore, libtool is disabling shared libraries support. If you
8679 *** really care for shared libraries, you may want to modify your PATH
8680 *** so that a non-GNU linker is found, and then restart.
8682 _LT_EOF
8686 amigaos*)
8687 case $host_cpu in
8688 powerpc)
8689 # see comment about AmigaOS4 .so support
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds=''
8693 m68k)
8694 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)'
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_minus_L=yes
8698 esac
8701 beos*)
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 allow_undefined_flag=unsupported
8704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8705 # support --undefined. This deserves some investigation. FIXME
8706 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 else
8708 ld_shlibs=no
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8714 # as there is no search path for DLLs.
8715 hardcode_libdir_flag_spec='-L$libdir'
8716 allow_undefined_flag=unsupported
8717 always_export_symbols=no
8718 enable_shared_with_static_runtimes=yes
8719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8721 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8723 # If the export-symbols file already is a .def file (1st line
8724 # is EXPORTS), use it as is; otherwise, prepend...
8725 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8726 cp $export_symbols $output_objdir/$soname.def;
8727 else
8728 echo EXPORTS > $output_objdir/$soname.def;
8729 cat $export_symbols >> $output_objdir/$soname.def;
8731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8732 else
8733 ld_shlibs=no
8737 interix[3-9]*)
8738 hardcode_direct=no
8739 hardcode_shlibpath_var=no
8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8741 export_dynamic_flag_spec='${wl}-E'
8742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8743 # Instead, shared libraries are loaded at an image base (0x10000000 by
8744 # default) and relocated if they conflict, which is a slow very memory
8745 # consuming and fragmenting process. To avoid this, we pick a random,
8746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8749 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'
8752 gnu* | linux* | tpf* | k*bsd*-gnu)
8753 tmp_diet=no
8754 if test "$host_os" = linux-dietlibc; then
8755 case $cc_basename in
8756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8757 esac
8759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8760 && test "$tmp_diet" = no
8761 then
8762 tmp_addflag=
8763 tmp_sharedflag='-shared'
8764 case $cc_basename,$host_cpu in
8765 pgcc*) # Portland Group C compiler
8766 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'
8767 tmp_addflag=' $pic_flag'
8769 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8770 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'
8771 tmp_addflag=' $pic_flag -Mnomain' ;;
8772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8773 tmp_addflag=' -i_dynamic' ;;
8774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8775 tmp_addflag=' -i_dynamic -nofor_main' ;;
8776 ifc* | ifort*) # Intel Fortran compiler
8777 tmp_addflag=' -nofor_main' ;;
8778 lf95*) # Lahey Fortran 8.1
8779 whole_archive_flag_spec=
8780 tmp_sharedflag='--shared' ;;
8781 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8782 tmp_sharedflag='-qmkshrobj'
8783 tmp_addflag= ;;
8784 esac
8785 case `$CC -V 2>&1 | sed 5q` in
8786 *Sun\ C*) # Sun C 5.9
8787 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'
8788 compiler_needs_object=yes
8789 tmp_sharedflag='-G' ;;
8790 *Sun\ F*) # Sun Fortran 8.3
8791 tmp_sharedflag='-G' ;;
8792 esac
8793 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 if test "x$supports_anon_versioning" = xyes; then
8796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8798 echo "local: *; };" >> $output_objdir/$libname.ver~
8799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8802 case $cc_basename in
8803 xlf*)
8804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8806 hardcode_libdir_flag_spec=
8807 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8808 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8816 esac
8817 else
8818 ld_shlibs=no
8822 netbsd*)
8823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8824 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8825 wlarc=
8826 else
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832 solaris*)
8833 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8834 ld_shlibs=no
8835 cat <<_LT_EOF 1>&2
8837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8838 *** create shared libraries on Solaris systems. Therefore, libtool
8839 *** is disabling shared libraries support. We urge you to upgrade GNU
8840 *** binutils to release 2.9.1 or newer. Another option is to modify
8841 *** your PATH or compiler configuration so that the native linker is
8842 *** used, and then restart.
8844 _LT_EOF
8845 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8848 else
8849 ld_shlibs=no
8853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8854 case `$LD -v 2>&1` in
8855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8856 ld_shlibs=no
8857 cat <<_LT_EOF 1>&2
8859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8860 *** reliably create shared libraries on SCO systems. Therefore, libtool
8861 *** is disabling shared libraries support. We urge you to upgrade GNU
8862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8863 *** your PATH or compiler configuration so that the native linker is
8864 *** used, and then restart.
8866 _LT_EOF
8869 # For security reasons, it is highly recommended that you always
8870 # use absolute paths for naming shared libraries, and exclude the
8871 # DT_RUNPATH tag from executables and libraries. But doing so
8872 # requires that you compile everything twice, which is a pain.
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8877 else
8878 ld_shlibs=no
8881 esac
8884 sunos4*)
8885 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8886 wlarc=
8887 hardcode_direct=yes
8888 hardcode_shlibpath_var=no
8892 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8895 else
8896 ld_shlibs=no
8899 esac
8901 if test "$ld_shlibs" = no; then
8902 runpath_var=
8903 hardcode_libdir_flag_spec=
8904 export_dynamic_flag_spec=
8905 whole_archive_flag_spec=
8907 else
8908 # PORTME fill in a description of your system's linker (not GNU ld)
8909 case $host_os in
8910 aix3*)
8911 allow_undefined_flag=unsupported
8912 always_export_symbols=yes
8913 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'
8914 # Note: this linker hardcodes the directories in LIBPATH if there
8915 # are no directories specified by -L.
8916 hardcode_minus_L=yes
8917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8918 # Neither direct hardcoding nor static linking is supported with a
8919 # broken collect2.
8920 hardcode_direct=unsupported
8924 aix[4-9]*)
8925 if test "$host_cpu" = ia64; then
8926 # On IA64, the linker does run time linking by default, so we don't
8927 # have to do anything special.
8928 aix_use_runtimelinking=no
8929 exp_sym_flag='-Bexport'
8930 no_entry_flag=""
8931 else
8932 # If we're using GNU nm, then we don't want the "-C" option.
8933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8935 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'
8936 else
8937 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'
8939 aix_use_runtimelinking=no
8941 # Test if we are trying to use run time linking or normal
8942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943 # need to do runtime linking.
8944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8945 for ld_flag in $LDFLAGS; do
8946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947 aix_use_runtimelinking=yes
8948 break
8950 done
8952 esac
8954 exp_sym_flag='-bexport'
8955 no_entry_flag='-bnoentry'
8958 # When large executables or shared objects are built, AIX ld can
8959 # have problems creating the table of contents. If linking a library
8960 # or program results in "error TOC overflow" add -mminimal-toc to
8961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8964 archive_cmds=''
8965 hardcode_direct=yes
8966 hardcode_direct_absolute=yes
8967 hardcode_libdir_separator=':'
8968 link_all_deplibs=yes
8969 file_list_spec='${wl}-f,'
8971 if test "$GCC" = yes; then
8972 case $host_os in aix4.[012]|aix4.[012].*)
8973 # We only want to do this on AIX 4.2 and lower, the check
8974 # below for broken collect2 doesn't work under 4.3+
8975 collect2name=`${CC} -print-prog-name=collect2`
8976 if test -f "$collect2name" &&
8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8978 then
8979 # We have reworked collect2
8981 else
8982 # We have old collect2
8983 hardcode_direct=unsupported
8984 # It fails to find uninstalled libraries when the uninstalled
8985 # path is not listed in the libpath. Setting hardcode_minus_L
8986 # to unsupported forces relinking
8987 hardcode_minus_L=yes
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_libdir_separator=
8992 esac
8993 shared_flag='-shared'
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag="$shared_flag "'${wl}-G'
8997 else
8998 # not using gcc
8999 if test "$host_cpu" = ia64; then
9000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9001 # chokes on -Wl,-G. The following line is correct:
9002 shared_flag='-G'
9003 else
9004 if test "$aix_use_runtimelinking" = yes; then
9005 shared_flag='${wl}-G'
9006 else
9007 shared_flag='${wl}-bM:SRE'
9012 export_dynamic_flag_spec='${wl}-bexpall'
9013 # It seems that -bexpall does not export symbols beginning with
9014 # underscore (_), so it is better to generate a list of symbols to export.
9015 always_export_symbols=yes
9016 if test "$aix_use_runtimelinking" = yes; then
9017 # Warning - without using the other runtime loading flags (-brtl),
9018 # -berok will link without error, but may produce a broken library.
9019 allow_undefined_flag='-berok'
9020 # Determine the default libpath from the value encoded in an
9021 # empty executable.
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9030 main ()
9034 return 0;
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (ac_try="$ac_link"
9039 case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042 esac
9043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9044 $as_echo "$ac_try_echo") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext && {
9055 test "$cross_compiling" = yes ||
9056 $as_test_x conftest$ac_exeext
9057 }; then
9059 lt_aix_libpath_sed='
9060 /Import File Strings/,/^$/ {
9061 /^0/ {
9062 s/^0 *\(.*\)$/\1/
9066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067 # Check for a 64-bit object if we didn't find anything.
9068 if test -z "$aix_libpath"; then
9069 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9071 else
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9078 rm -rf conftest.dSYM
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 conftest$ac_exeext conftest.$ac_ext
9081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9084 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"
9085 else
9086 if test "$host_cpu" = ia64; then
9087 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9088 allow_undefined_flag="-z nodefs"
9089 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"
9090 else
9091 # Determine the default libpath from the value encoded in an
9092 # empty executable.
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9101 main ()
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9115 $as_echo "$ac_try_echo") >&5
9116 (eval "$ac_link") 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext && {
9126 test "$cross_compiling" = yes ||
9127 $as_test_x conftest$ac_exeext
9128 }; then
9130 lt_aix_libpath_sed='
9131 /Import File Strings/,/^$/ {
9132 /^0/ {
9133 s/^0 *\(.*\)$/\1/
9137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9138 # Check for a 64-bit object if we didn't find anything.
9139 if test -z "$aix_libpath"; then
9140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9142 else
9143 $as_echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9149 rm -rf conftest.dSYM
9150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9151 conftest$ac_exeext conftest.$ac_ext
9152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9155 # Warning - without using the other run time loading flags,
9156 # -berok will link without error, but may produce a broken library.
9157 no_undefined_flag=' ${wl}-bernotok'
9158 allow_undefined_flag=' ${wl}-berok'
9159 # Exported symbols can be pulled into shared objects from archives
9160 whole_archive_flag_spec='$convenience'
9161 archive_cmds_need_lc=yes
9162 # This is similar to how AIX traditionally builds its shared libraries.
9163 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'
9168 amigaos*)
9169 case $host_cpu in
9170 powerpc)
9171 # see comment about AmigaOS4 .so support
9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 archive_expsym_cmds=''
9175 m68k)
9176 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)'
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_minus_L=yes
9180 esac
9183 bsdi[45]*)
9184 export_dynamic_flag_spec=-rdynamic
9187 cygwin* | mingw* | pw32* | cegcc*)
9188 # When not using gcc, we currently assume that we are using
9189 # Microsoft Visual C++.
9190 # hardcode_libdir_flag_spec is actually meaningless, as there is
9191 # no search path for DLLs.
9192 hardcode_libdir_flag_spec=' '
9193 allow_undefined_flag=unsupported
9194 # Tell ltmain to make .lib files, not .a files.
9195 libext=lib
9196 # Tell ltmain to make .dll files, not .so files.
9197 shrext_cmds=".dll"
9198 # FIXME: Setting linknames here is a bad hack.
9199 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9200 # The linker will automatically build a .lib file if we build a DLL.
9201 old_archive_from_new_cmds='true'
9202 # FIXME: Should let the user specify the lib program.
9203 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9204 fix_srcfile_path='`cygpath -w "$srcfile"`'
9205 enable_shared_with_static_runtimes=yes
9208 darwin* | rhapsody*)
9211 archive_cmds_need_lc=no
9212 hardcode_direct=no
9213 hardcode_automatic=yes
9214 hardcode_shlibpath_var=unsupported
9215 whole_archive_flag_spec=''
9216 link_all_deplibs=yes
9217 allow_undefined_flag="$_lt_dar_allow_undefined"
9218 case $cc_basename in
9219 ifort*) _lt_dar_can_shared=yes ;;
9220 *) _lt_dar_can_shared=$GCC ;;
9221 esac
9222 if test "$_lt_dar_can_shared" = "yes"; then
9223 output_verbose_link_cmd=echo
9224 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9225 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9226 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}"
9227 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}"
9229 else
9230 ld_shlibs=no
9235 dgux*)
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 hardcode_shlibpath_var=no
9241 freebsd1*)
9242 ld_shlibs=no
9245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9246 # support. Future versions do this automatically, but an explicit c++rt0.o
9247 # does not break anything, and helps significantly (at the cost of a little
9248 # extra space).
9249 freebsd2.2*)
9250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9251 hardcode_libdir_flag_spec='-R$libdir'
9252 hardcode_direct=yes
9253 hardcode_shlibpath_var=no
9256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9257 freebsd2*)
9258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_direct=yes
9260 hardcode_minus_L=yes
9261 hardcode_shlibpath_var=no
9264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9265 freebsd* | dragonfly*)
9266 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9267 hardcode_libdir_flag_spec='-R$libdir'
9268 hardcode_direct=yes
9269 hardcode_shlibpath_var=no
9272 hpux9*)
9273 if test "$GCC" = yes; then
9274 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'
9275 else
9276 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'
9278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9279 hardcode_libdir_separator=:
9280 hardcode_direct=yes
9282 # hardcode_minus_L: Not really in the search PATH,
9283 # but as the default location of the library.
9284 hardcode_minus_L=yes
9285 export_dynamic_flag_spec='${wl}-E'
9288 hpux10*)
9289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9291 else
9292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9294 if test "$with_gnu_ld" = no; then
9295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9296 hardcode_libdir_flag_spec_ld='+b $libdir'
9297 hardcode_libdir_separator=:
9298 hardcode_direct=yes
9299 hardcode_direct_absolute=yes
9300 export_dynamic_flag_spec='${wl}-E'
9301 # hardcode_minus_L: Not really in the search PATH,
9302 # but as the default location of the library.
9303 hardcode_minus_L=yes
9307 hpux11*)
9308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9309 case $host_cpu in
9310 hppa*64*)
9311 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9313 ia64*)
9314 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9319 esac
9320 else
9321 case $host_cpu in
9322 hppa*64*)
9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9325 ia64*)
9326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9331 esac
9333 if test "$with_gnu_ld" = no; then
9334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335 hardcode_libdir_separator=:
9337 case $host_cpu in
9338 hppa*64*|ia64*)
9339 hardcode_direct=no
9340 hardcode_shlibpath_var=no
9343 hardcode_direct=yes
9344 hardcode_direct_absolute=yes
9345 export_dynamic_flag_spec='${wl}-E'
9347 # hardcode_minus_L: Not really in the search PATH,
9348 # but as the default location of the library.
9349 hardcode_minus_L=yes
9351 esac
9355 irix5* | irix6* | nonstopux*)
9356 if test "$GCC" = yes; then
9357 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'
9358 # Try to use the -exported_symbol ld option, if it does not
9359 # work, assume that -exports_file does not work either and
9360 # implicitly export all symbols.
9361 save_LDFLAGS="$LDFLAGS"
9362 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 int foo(void) {}
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (ac_try="$ac_link"
9368 case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9371 esac
9372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9373 $as_echo "$ac_try_echo") >&5
9374 (eval "$ac_link") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest$ac_exeext && {
9384 test "$cross_compiling" = yes ||
9385 $as_test_x conftest$ac_exeext
9386 }; then
9387 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'
9389 else
9390 $as_echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9396 rm -rf conftest.dSYM
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LDFLAGS="$save_LDFLAGS"
9400 else
9401 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'
9402 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'
9404 archive_cmds_need_lc='no'
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 inherit_rpath=yes
9408 link_all_deplibs=yes
9411 netbsd*)
9412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9414 else
9415 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9417 hardcode_libdir_flag_spec='-R$libdir'
9418 hardcode_direct=yes
9419 hardcode_shlibpath_var=no
9422 newsos6)
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_direct=yes
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 hardcode_libdir_separator=:
9427 hardcode_shlibpath_var=no
9430 *nto* | *qnx*)
9433 openbsd*)
9434 if test -f /usr/libexec/ld.so; then
9435 hardcode_direct=yes
9436 hardcode_shlibpath_var=no
9437 hardcode_direct_absolute=yes
9438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9442 export_dynamic_flag_spec='${wl}-E'
9443 else
9444 case $host_os in
9445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_libdir_flag_spec='-R$libdir'
9450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9451 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9453 esac
9455 else
9456 ld_shlibs=no
9460 os2*)
9461 hardcode_libdir_flag_spec='-L$libdir'
9462 hardcode_minus_L=yes
9463 allow_undefined_flag=unsupported
9464 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'
9465 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9468 osf3*)
9469 if test "$GCC" = yes; then
9470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9471 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'
9472 else
9473 allow_undefined_flag=' -expect_unresolved \*'
9474 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'
9476 archive_cmds_need_lc='no'
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 hardcode_libdir_separator=:
9481 osf4* | osf5*) # as osf3* with the addition of -msym flag
9482 if test "$GCC" = yes; then
9483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9484 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'
9485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486 else
9487 allow_undefined_flag=' -expect_unresolved \*'
9488 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'
9489 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~
9490 $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'
9492 # Both c and cxx compiler support -rpath directly
9493 hardcode_libdir_flag_spec='-rpath $libdir'
9495 archive_cmds_need_lc='no'
9496 hardcode_libdir_separator=:
9499 solaris*)
9500 no_undefined_flag=' -z defs'
9501 if test "$GCC" = yes; then
9502 wlarc='${wl}'
9503 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9505 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9506 else
9507 case `$CC -V 2>&1` in
9508 *"Compilers 5.0"*)
9509 wlarc=''
9510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9515 wlarc='${wl}'
9516 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9518 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9520 esac
9522 hardcode_libdir_flag_spec='-R$libdir'
9523 hardcode_shlibpath_var=no
9524 case $host_os in
9525 solaris2.[0-5] | solaris2.[0-5].*) ;;
9527 # The compiler driver will combine and reorder linker options,
9528 # but understands `-z linker_flag'. GCC discards it without `$wl',
9529 # but is careful enough not to reorder.
9530 # Supported since Solaris 2.6 (maybe 2.5.1?)
9531 if test "$GCC" = yes; then
9532 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9533 else
9534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9537 esac
9538 link_all_deplibs=yes
9541 sunos4*)
9542 if test "x$host_vendor" = xsequent; then
9543 # Use $CC to link under sequent, because it throws in some extra .o
9544 # files that make .init and .fini sections work.
9545 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9546 else
9547 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_libdir_flag_spec='-L$libdir'
9550 hardcode_direct=yes
9551 hardcode_minus_L=yes
9552 hardcode_shlibpath_var=no
9555 sysv4)
9556 case $host_vendor in
9557 sni)
9558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_direct=yes # is this really true???
9561 siemens)
9562 ## LD is ld it makes a PLAMLIB
9563 ## CC just makes a GrossModule.
9564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9565 reload_cmds='$CC -r -o $output$reload_objs'
9566 hardcode_direct=no
9568 motorola)
9569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9572 esac
9573 runpath_var='LD_RUN_PATH'
9574 hardcode_shlibpath_var=no
9577 sysv4.3*)
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_shlibpath_var=no
9580 export_dynamic_flag_spec='-Bexport'
9583 sysv4*MP*)
9584 if test -d /usr/nec; then
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_shlibpath_var=no
9587 runpath_var=LD_RUN_PATH
9588 hardcode_runpath_var=yes
9589 ld_shlibs=yes
9593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9594 no_undefined_flag='${wl}-z,text'
9595 archive_cmds_need_lc=no
9596 hardcode_shlibpath_var=no
9597 runpath_var='LD_RUN_PATH'
9599 if test "$GCC" = yes; then
9600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 else
9603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 sysv5* | sco3.2v5* | sco5v6*)
9609 # Note: We can NOT use -z defs as we might desire, because we do not
9610 # link with -lc, and that would cause any symbols used from libc to
9611 # always be unresolved, which means just about no library would
9612 # ever link correctly. If we're not using GNU ld we use -z text
9613 # though, which does catch some bad symbols but isn't as heavy-handed
9614 # as -z defs.
9615 no_undefined_flag='${wl}-z,text'
9616 allow_undefined_flag='${wl}-z,nodefs'
9617 archive_cmds_need_lc=no
9618 hardcode_shlibpath_var=no
9619 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9620 hardcode_libdir_separator=':'
9621 link_all_deplibs=yes
9622 export_dynamic_flag_spec='${wl}-Bexport'
9623 runpath_var='LD_RUN_PATH'
9625 if test "$GCC" = yes; then
9626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628 else
9629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 uts4*)
9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_shlibpath_var=no
9641 ld_shlibs=no
9643 esac
9645 if test x$host_vendor = xsni; then
9646 case $host in
9647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9648 export_dynamic_flag_spec='${wl}-Blargedynsym'
9650 esac
9654 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9655 $as_echo "$ld_shlibs" >&6; }
9656 test "$ld_shlibs" = no && can_build_shared=no
9658 with_gnu_ld=$with_gnu_ld
9675 # Do we need to explicitly link libc?
9677 case "x$archive_cmds_need_lc" in
9678 x|xyes)
9679 # Assume -lc should be added
9680 archive_cmds_need_lc=yes
9682 if test "$enable_shared" = yes && test "$GCC" = yes; then
9683 case $archive_cmds in
9684 *'~'*)
9685 # FIXME: we may have to deal with multi-command sequences.
9687 '$CC '*)
9688 # Test whether the compiler implicitly links with -lc since on some
9689 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9690 # to ld, don't add -lc before -lgcc.
9691 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9692 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9693 $RM conftest*
9694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697 (eval $ac_compile) 2>&5
9698 ac_status=$?
9699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } 2>conftest.err; then
9701 soname=conftest
9702 lib=conftest
9703 libobjs=conftest.$ac_objext
9704 deplibs=
9705 wl=$lt_prog_compiler_wl
9706 pic_flag=$lt_prog_compiler_pic
9707 compiler_flags=-v
9708 linker_flags=-v
9709 verstring=
9710 output_objdir=.
9711 libname=conftest
9712 lt_save_allow_undefined_flag=$allow_undefined_flag
9713 allow_undefined_flag=
9714 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9716 ac_status=$?
9717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }
9719 then
9720 archive_cmds_need_lc=no
9721 else
9722 archive_cmds_need_lc=yes
9724 allow_undefined_flag=$lt_save_allow_undefined_flag
9725 else
9726 cat conftest.err 1>&5
9728 $RM conftest*
9729 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9730 $as_echo "$archive_cmds_need_lc" >&6; }
9732 esac
9735 esac
9893 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9894 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9896 if test "$GCC" = yes; then
9897 case $host_os in
9898 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9899 *) lt_awk_arg="/^libraries:/" ;;
9900 esac
9901 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9902 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9903 # if the path contains ";" then we assume it to be the separator
9904 # otherwise default to the standard path separator (i.e. ":") - it is
9905 # assumed that no part of a normal pathname contains ";" but that should
9906 # okay in the real world where ";" in dirpaths is itself problematic.
9907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9908 else
9909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9911 # Ok, now we have the path, separated by spaces, we can step through it
9912 # and add multilib dir if necessary.
9913 lt_tmp_lt_search_path_spec=
9914 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9915 for lt_sys_path in $lt_search_path_spec; do
9916 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9918 else
9919 test -d "$lt_sys_path" && \
9920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9922 done
9923 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9924 BEGIN {RS=" "; FS="/|\n";} {
9925 lt_foo="";
9926 lt_count=0;
9927 for (lt_i = NF; lt_i > 0; lt_i--) {
9928 if ($lt_i != "" && $lt_i != ".") {
9929 if ($lt_i == "..") {
9930 lt_count++;
9931 } else {
9932 if (lt_count == 0) {
9933 lt_foo="/" $lt_i lt_foo;
9934 } else {
9935 lt_count--;
9940 if (lt_foo != "") { lt_freq[lt_foo]++; }
9941 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9943 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9944 else
9945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9947 library_names_spec=
9948 libname_spec='lib$name'
9949 soname_spec=
9950 shrext_cmds=".so"
9951 postinstall_cmds=
9952 postuninstall_cmds=
9953 finish_cmds=
9954 finish_eval=
9955 shlibpath_var=
9956 shlibpath_overrides_runpath=unknown
9957 version_type=none
9958 dynamic_linker="$host_os ld.so"
9959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9960 need_lib_prefix=unknown
9961 hardcode_into_libs=no
9963 # when you set need_version to no, make sure it does not cause -set_version
9964 # flags to be left without arguments
9965 need_version=unknown
9967 case $host_os in
9968 aix3*)
9969 version_type=linux
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9971 shlibpath_var=LIBPATH
9973 # AIX 3 has no versioning support, so we append a major version to the name.
9974 soname_spec='${libname}${release}${shared_ext}$major'
9977 aix[4-9]*)
9978 version_type=linux
9979 need_lib_prefix=no
9980 need_version=no
9981 hardcode_into_libs=yes
9982 if test "$host_cpu" = ia64; then
9983 # AIX 5 supports IA64
9984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 else
9987 # With GCC up to 2.95.x, collect2 would create an import file
9988 # for dependence libraries. The import file would start with
9989 # the line `#! .'. This would cause the generated library to
9990 # depend on `.', always an invalid library. This was fixed in
9991 # development snapshots of GCC prior to 3.0.
9992 case $host_os in
9993 aix4 | aix4.[01] | aix4.[01].*)
9994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9995 echo ' yes '
9996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9998 else
9999 can_build_shared=no
10002 esac
10003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10004 # soname into executable. Probably we can add versioning support to
10005 # collect2, so additional links can be useful in future.
10006 if test "$aix_use_runtimelinking" = yes; then
10007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10008 # instead of lib<name>.a to let people know that these are not
10009 # typical AIX shared libraries.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 else
10012 # We preserve .a as extension for shared libraries through AIX4.2
10013 # and later when we are not doing run time linking.
10014 library_names_spec='${libname}${release}.a $libname.a'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LIBPATH
10021 amigaos*)
10022 case $host_cpu in
10023 powerpc)
10024 # Since July 2007 AmigaOS4 officially supports .so libraries.
10025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 m68k)
10029 library_names_spec='$libname.ixlibrary $libname.a'
10030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10031 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'
10033 esac
10036 beos*)
10037 library_names_spec='${libname}${shared_ext}'
10038 dynamic_linker="$host_os ld.so"
10039 shlibpath_var=LIBRARY_PATH
10042 bsdi[45]*)
10043 version_type=linux
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10051 # the default ld.so.conf also contains /usr/contrib/lib and
10052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10053 # libtool to hard-code these into programs
10056 cygwin* | mingw* | pw32* | cegcc*)
10057 version_type=windows
10058 shrext_cmds=".dll"
10059 need_version=no
10060 need_lib_prefix=no
10062 case $GCC,$host_os in
10063 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10064 library_names_spec='$libname.dll.a'
10065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10066 postinstall_cmds='base_file=`basename \${file}`~
10067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10068 dldir=$destdir/`dirname \$dlpath`~
10069 test -d \$dldir || mkdir -p \$dldir~
10070 $install_prog $dir/$dlname \$dldir/$dlname~
10071 chmod a+x \$dldir/$dlname~
10072 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10073 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10076 dlpath=$dir/\$dldll~
10077 $RM \$dlpath'
10078 shlibpath_overrides_runpath=yes
10080 case $host_os in
10081 cygwin*)
10082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10086 mingw* | cegcc*)
10087 # MinGW DLLs use traditional 'lib' prefix
10088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10090 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10091 # It is most probably a Windows format PATH printed by
10092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10093 # path with ; separators, and with drive letters. We can handle the
10094 # drive letters (cygwin fileutils understands them), so leave them,
10095 # especially as we might pass files found there to a mingw objdump,
10096 # which wouldn't understand a cygwinified path. Ahh.
10097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10098 else
10099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10102 pw32*)
10103 # pw32 DLLs use 'pw' prefix rather than 'lib'
10104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10106 esac
10110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10112 esac
10113 dynamic_linker='Win32 ld.exe'
10114 # FIXME: first we should search . and the directory the executable is in
10115 shlibpath_var=PATH
10118 darwin* | rhapsody*)
10119 dynamic_linker="$host_os dyld"
10120 version_type=darwin
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10124 soname_spec='${libname}${release}${major}$shared_ext'
10125 shlibpath_overrides_runpath=yes
10126 shlibpath_var=DYLD_LIBRARY_PATH
10127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10133 dgux*)
10134 version_type=linux
10135 need_lib_prefix=no
10136 need_version=no
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10142 freebsd1*)
10143 dynamic_linker=no
10146 freebsd* | dragonfly*)
10147 # DragonFly does not have aout. When/if they implement a new
10148 # versioning mechanism, adjust this.
10149 if test -x /usr/bin/objformat; then
10150 objformat=`/usr/bin/objformat`
10151 else
10152 case $host_os in
10153 freebsd[123]*) objformat=aout ;;
10154 *) objformat=elf ;;
10155 esac
10157 version_type=freebsd-$objformat
10158 case $version_type in
10159 freebsd-elf*)
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 need_version=no
10162 need_lib_prefix=no
10164 freebsd-*)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10166 need_version=yes
10168 esac
10169 shlibpath_var=LD_LIBRARY_PATH
10170 case $host_os in
10171 freebsd2*)
10172 shlibpath_overrides_runpath=yes
10174 freebsd3.[01]* | freebsdelf3.[01]*)
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10183 *) # from 4.6 on, and DragonFly
10184 shlibpath_overrides_runpath=yes
10185 hardcode_into_libs=yes
10187 esac
10190 gnu*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 hardcode_into_libs=yes
10200 hpux9* | hpux10* | hpux11*)
10201 # Give a soname corresponding to the major version so that dld.sl refuses to
10202 # link against other versions.
10203 version_type=sunos
10204 need_lib_prefix=no
10205 need_version=no
10206 case $host_cpu in
10207 ia64*)
10208 shrext_cmds='.so'
10209 hardcode_into_libs=yes
10210 dynamic_linker="$host_os dld.so"
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 if test "X$HPUX_IA64_MODE" = X32; then
10216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10217 else
10218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10222 hppa*64*)
10223 shrext_cmds='.sl'
10224 hardcode_into_libs=yes
10225 dynamic_linker="$host_os dld.sl"
10226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10234 shrext_cmds='.sl'
10235 dynamic_linker="$host_os dld.sl"
10236 shlibpath_var=SHLIB_PATH
10237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10241 esac
10242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10243 postinstall_cmds='chmod 555 $lib'
10246 interix[3-9]*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10258 irix5* | irix6* | nonstopux*)
10259 case $host_os in
10260 nonstopux*) version_type=nonstopux ;;
10262 if test "$lt_cv_prog_gnu_ld" = yes; then
10263 version_type=linux
10264 else
10265 version_type=irix
10266 fi ;;
10267 esac
10268 need_lib_prefix=no
10269 need_version=no
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10272 case $host_os in
10273 irix5* | nonstopux*)
10274 libsuff= shlibsuff=
10277 case $LD in # libtool.m4 will add one of these switches to LD
10278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10279 libsuff= shlibsuff= libmagic=32-bit;;
10280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10281 libsuff=32 shlibsuff=N32 libmagic=N32;;
10282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10284 *) libsuff= shlibsuff= libmagic=never-match;;
10285 esac
10287 esac
10288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10289 shlibpath_overrides_runpath=no
10290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10292 hardcode_into_libs=yes
10295 # No shared lib support for Linux oldld, aout, or coff.
10296 linux*oldld* | linux*aout* | linux*coff*)
10297 dynamic_linker=no
10300 # This must be Linux ELF.
10301 linux* | k*bsd*-gnu)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
10310 # Some binutils ld are patched to set DT_RUNPATH
10311 save_LDFLAGS=$LDFLAGS
10312 save_libdir=$libdir
10313 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10314 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10323 main ()
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10337 $as_echo "$ac_try_echo") >&5
10338 (eval "$ac_link") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest$ac_exeext && {
10348 test "$cross_compiling" = yes ||
10349 $as_test_x conftest$ac_exeext
10350 }; then
10351 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10352 shlibpath_overrides_runpath=yes
10355 else
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10362 rm -rf conftest.dSYM
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LDFLAGS=$save_LDFLAGS
10366 libdir=$save_libdir
10368 # This implies no fast_install, which is unacceptable.
10369 # Some rework will be needed to allow for fast_install
10370 # before this can be enabled.
10371 hardcode_into_libs=yes
10373 # Append ld.so.conf contents to the search path
10374 if test -f /etc/ld.so.conf; then
10375 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' ' '`
10376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10379 # We used to test for /lib/ld.so.1 and disable shared libraries on
10380 # powerpc, because MkLinux only supported shared libraries with the
10381 # GNU dynamic linker. Since this was broken with cross compilers,
10382 # most powerpc-linux boxes support dynamic linking these days and
10383 # people can always --disable-shared, the test was removed, and we
10384 # assume the GNU/Linux dynamic linker is in use.
10385 dynamic_linker='GNU/Linux ld.so'
10388 netbsd*)
10389 version_type=sunos
10390 need_lib_prefix=no
10391 need_version=no
10392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 dynamic_linker='NetBSD (a.out) ld.so'
10396 else
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 dynamic_linker='NetBSD ld.elf_so'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10403 hardcode_into_libs=yes
10406 newsos6)
10407 version_type=linux
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10413 *nto* | *qnx*)
10414 version_type=qnx
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10422 dynamic_linker='ldqnx.so'
10425 openbsd*)
10426 version_type=sunos
10427 sys_lib_dlsearch_path_spec="/usr/lib"
10428 need_lib_prefix=no
10429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10430 case $host_os in
10431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10432 *) need_version=no ;;
10433 esac
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438 case $host_os in
10439 openbsd2.[89] | openbsd2.[89].*)
10440 shlibpath_overrides_runpath=no
10443 shlibpath_overrides_runpath=yes
10445 esac
10446 else
10447 shlibpath_overrides_runpath=yes
10451 os2*)
10452 libname_spec='$name'
10453 shrext_cmds=".dll"
10454 need_lib_prefix=no
10455 library_names_spec='$libname${shared_ext} $libname.a'
10456 dynamic_linker='OS/2 ld.exe'
10457 shlibpath_var=LIBPATH
10460 osf3* | osf4* | osf5*)
10461 version_type=osf
10462 need_lib_prefix=no
10463 need_version=no
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10471 rdos*)
10472 dynamic_linker=no
10475 solaris*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 hardcode_into_libs=yes
10484 # ldd complains unless libraries are executable
10485 postinstall_cmds='chmod +x $lib'
10488 sunos4*)
10489 version_type=sunos
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 if test "$with_gnu_ld" = yes; then
10495 need_lib_prefix=no
10497 need_version=yes
10500 sysv4 | sysv4.3*)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 case $host_vendor in
10506 sni)
10507 shlibpath_overrides_runpath=no
10508 need_lib_prefix=no
10509 runpath_var=LD_RUN_PATH
10511 siemens)
10512 need_lib_prefix=no
10514 motorola)
10515 need_lib_prefix=no
10516 need_version=no
10517 shlibpath_overrides_runpath=no
10518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10520 esac
10523 sysv4*MP*)
10524 if test -d /usr/nec ;then
10525 version_type=linux
10526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10527 soname_spec='$libname${shared_ext}.$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533 version_type=freebsd-elf
10534 need_lib_prefix=no
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=yes
10540 hardcode_into_libs=yes
10541 if test "$with_gnu_ld" = yes; then
10542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10543 else
10544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10545 case $host_os in
10546 sco3.2v5*)
10547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10549 esac
10551 sys_lib_dlsearch_path_spec='/usr/lib'
10554 tpf*)
10555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10556 version_type=linux
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10565 uts4*)
10566 version_type=linux
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10573 dynamic_linker=no
10575 esac
10576 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10577 $as_echo "$dynamic_linker" >&6; }
10578 test "$dynamic_linker" = no && can_build_shared=no
10580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10581 if test "$GCC" = yes; then
10582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10678 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10679 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10680 hardcode_action=
10681 if test -n "$hardcode_libdir_flag_spec" ||
10682 test -n "$runpath_var" ||
10683 test "X$hardcode_automatic" = "Xyes" ; then
10685 # We can hardcode non-existent directories.
10686 if test "$hardcode_direct" != no &&
10687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10688 # have to relink, otherwise we might link with an installed library
10689 # when we should be linking with a yet-to-be-installed one
10690 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10691 test "$hardcode_minus_L" != no; then
10692 # Linking always hardcodes the temporary library directory.
10693 hardcode_action=relink
10694 else
10695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10696 hardcode_action=immediate
10698 else
10699 # We cannot hardcode anything, or else we can only hardcode existing
10700 # directories.
10701 hardcode_action=unsupported
10703 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10704 $as_echo "$hardcode_action" >&6; }
10706 if test "$hardcode_action" = relink ||
10707 test "$inherit_rpath" = yes; then
10708 # Fast installation is not supported
10709 enable_fast_install=no
10710 elif test "$shlibpath_overrides_runpath" = yes ||
10711 test "$enable_shared" = no; then
10712 # Fast installation is not necessary
10713 enable_fast_install=needless
10721 if test "x$enable_dlopen" != xyes; then
10722 enable_dlopen=unknown
10723 enable_dlopen_self=unknown
10724 enable_dlopen_self_static=unknown
10725 else
10726 lt_cv_dlopen=no
10727 lt_cv_dlopen_libs=
10729 case $host_os in
10730 beos*)
10731 lt_cv_dlopen="load_add_on"
10732 lt_cv_dlopen_libs=
10733 lt_cv_dlopen_self=yes
10736 mingw* | pw32* | cegcc*)
10737 lt_cv_dlopen="LoadLibrary"
10738 lt_cv_dlopen_libs=
10741 cygwin*)
10742 lt_cv_dlopen="dlopen"
10743 lt_cv_dlopen_libs=
10746 darwin*)
10747 # if libdl is installed we need to link against it
10748 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-ldl $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char dlopen ();
10770 main ()
10772 return dlopen ();
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10797 }; then
10798 ac_cv_lib_dl_dlopen=yes
10799 else
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_lib_dl_dlopen=no
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10812 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10813 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10815 else
10817 lt_cv_dlopen="dyld"
10818 lt_cv_dlopen_libs=
10819 lt_cv_dlopen_self=yes
10826 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10827 $as_echo_n "checking for shl_load... " >&6; }
10828 if test "${ac_cv_func_shl_load+set}" = set; then
10829 $as_echo_n "(cached) " >&6
10830 else
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839 #define shl_load innocuous_shl_load
10841 /* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char shl_load (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10852 #undef shl_load
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char shl_load ();
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined __stub_shl_load || defined __stub___shl_load
10865 choke me
10866 #endif
10869 main ()
10871 return shl_load ();
10873 return 0;
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881 esac
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884 (eval "$ac_link") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest$ac_exeext && {
10894 test "$cross_compiling" = yes ||
10895 $as_test_x conftest$ac_exeext
10896 }; then
10897 ac_cv_func_shl_load=yes
10898 else
10899 $as_echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_cv_func_shl_load=no
10905 rm -rf conftest.dSYM
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10909 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10910 $as_echo "$ac_cv_func_shl_load" >&6; }
10911 if test "x$ac_cv_func_shl_load" = x""yes; then
10912 lt_cv_dlopen="shl_load"
10913 else
10914 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10915 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char shl_load ();
10936 main ()
10938 return shl_load ();
10940 return 0;
10942 _ACEOF
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10950 $as_echo "$ac_try_echo") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest$ac_exeext && {
10961 test "$cross_compiling" = yes ||
10962 $as_test_x conftest$ac_exeext
10963 }; then
10964 ac_cv_lib_dld_shl_load=yes
10965 else
10966 $as_echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_lib_dld_shl_load=no
10972 rm -rf conftest.dSYM
10973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10978 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10979 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10981 else
10982 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10983 $as_echo_n "checking for dlopen... " >&6; }
10984 if test "${ac_cv_func_dlopen+set}" = set; then
10985 $as_echo_n "(cached) " >&6
10986 else
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10995 #define dlopen innocuous_dlopen
10997 /* System header to define __stub macros and hopefully few prototypes,
10998 which can conflict with char dlopen (); below.
10999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11000 <limits.h> exists even on freestanding compilers. */
11002 #ifdef __STDC__
11003 # include <limits.h>
11004 #else
11005 # include <assert.h>
11006 #endif
11008 #undef dlopen
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char dlopen ();
11017 /* The GNU C library defines this for functions which it implements
11018 to always fail with ENOSYS. Some functions are actually named
11019 something starting with __ and the normal name is an alias. */
11020 #if defined __stub_dlopen || defined __stub___dlopen
11021 choke me
11022 #endif
11025 main ()
11027 return dlopen ();
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037 esac
11038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11039 $as_echo "$ac_try_echo") >&5
11040 (eval "$ac_link") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext && {
11050 test "$cross_compiling" = yes ||
11051 $as_test_x conftest$ac_exeext
11052 }; then
11053 ac_cv_func_dlopen=yes
11054 else
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_func_dlopen=no
11061 rm -rf conftest.dSYM
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11065 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11066 $as_echo "$ac_cv_func_dlopen" >&6; }
11067 if test "x$ac_cv_func_dlopen" = x""yes; then
11068 lt_cv_dlopen="dlopen"
11069 else
11070 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-ldl $LIBS"
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char dlopen ();
11092 main ()
11094 return dlopen ();
11096 return 0;
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (ac_try="$ac_link"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11106 $as_echo "$ac_try_echo") >&5
11107 (eval "$ac_link") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest$ac_exeext && {
11117 test "$cross_compiling" = yes ||
11118 $as_test_x conftest$ac_exeext
11119 }; then
11120 ac_cv_lib_dl_dlopen=yes
11121 else
11122 $as_echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 ac_cv_lib_dl_dlopen=no
11128 rm -rf conftest.dSYM
11129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11134 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11135 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11137 else
11138 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11139 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11141 $as_echo_n "(cached) " >&6
11142 else
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-lsvld $LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char dlopen ();
11160 main ()
11162 return dlopen ();
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11174 $as_echo "$ac_try_echo") >&5
11175 (eval "$ac_link") 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } && {
11182 test -z "$ac_c_werror_flag" ||
11183 test ! -s conftest.err
11184 } && test -s conftest$ac_exeext && {
11185 test "$cross_compiling" = yes ||
11186 $as_test_x conftest$ac_exeext
11187 }; then
11188 ac_cv_lib_svld_dlopen=yes
11189 else
11190 $as_echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_cv_lib_svld_dlopen=no
11196 rm -rf conftest.dSYM
11197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11201 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11203 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11205 else
11206 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11208 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11209 $as_echo_n "(cached) " >&6
11210 else
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-ldld $LIBS"
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char dld_link ();
11228 main ()
11230 return dld_link ();
11232 return 0;
11234 _ACEOF
11235 rm -f conftest.$ac_objext conftest$ac_exeext
11236 if { (ac_try="$ac_link"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242 $as_echo "$ac_try_echo") >&5
11243 (eval "$ac_link") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest$ac_exeext && {
11253 test "$cross_compiling" = yes ||
11254 $as_test_x conftest$ac_exeext
11255 }; then
11256 ac_cv_lib_dld_dld_link=yes
11257 else
11258 $as_echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_lib_dld_dld_link=no
11264 rm -rf conftest.dSYM
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11270 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11271 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11272 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11291 esac
11293 if test "x$lt_cv_dlopen" != xno; then
11294 enable_dlopen=yes
11295 else
11296 enable_dlopen=no
11299 case $lt_cv_dlopen in
11300 dlopen)
11301 save_CPPFLAGS="$CPPFLAGS"
11302 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11304 save_LDFLAGS="$LDFLAGS"
11305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11307 save_LIBS="$LIBS"
11308 LIBS="$lt_cv_dlopen_libs $LIBS"
11310 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11311 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11312 if test "${lt_cv_dlopen_self+set}" = set; then
11313 $as_echo_n "(cached) " >&6
11314 else
11315 if test "$cross_compiling" = yes; then :
11316 lt_cv_dlopen_self=cross
11317 else
11318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11319 lt_status=$lt_dlunknown
11320 cat > conftest.$ac_ext <<_LT_EOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11324 #if HAVE_DLFCN_H
11325 #include <dlfcn.h>
11326 #endif
11328 #include <stdio.h>
11330 #ifdef RTLD_GLOBAL
11331 # define LT_DLGLOBAL RTLD_GLOBAL
11332 #else
11333 # ifdef DL_GLOBAL
11334 # define LT_DLGLOBAL DL_GLOBAL
11335 # else
11336 # define LT_DLGLOBAL 0
11337 # endif
11338 #endif
11340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11341 find out it does not work in some platform. */
11342 #ifndef LT_DLLAZY_OR_NOW
11343 # ifdef RTLD_LAZY
11344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11345 # else
11346 # ifdef DL_LAZY
11347 # define LT_DLLAZY_OR_NOW DL_LAZY
11348 # else
11349 # ifdef RTLD_NOW
11350 # define LT_DLLAZY_OR_NOW RTLD_NOW
11351 # else
11352 # ifdef DL_NOW
11353 # define LT_DLLAZY_OR_NOW DL_NOW
11354 # else
11355 # define LT_DLLAZY_OR_NOW 0
11356 # endif
11357 # endif
11358 # endif
11359 # endif
11360 #endif
11362 void fnord() { int i=42;}
11363 int main ()
11365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11366 int status = $lt_dlunknown;
11368 if (self)
11370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11372 /* dlclose (self); */
11374 else
11375 puts (dlerror ());
11377 return status;
11379 _LT_EOF
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11385 (./conftest; exit; ) >&5 2>/dev/null
11386 lt_status=$?
11387 case x$lt_status in
11388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11391 esac
11392 else :
11393 # compilation failed
11394 lt_cv_dlopen_self=no
11397 rm -fr conftest*
11401 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11402 $as_echo "$lt_cv_dlopen_self" >&6; }
11404 if test "x$lt_cv_dlopen_self" = xyes; then
11405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11406 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11407 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11408 if test "${lt_cv_dlopen_self_static+set}" = set; then
11409 $as_echo_n "(cached) " >&6
11410 else
11411 if test "$cross_compiling" = yes; then :
11412 lt_cv_dlopen_self_static=cross
11413 else
11414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11415 lt_status=$lt_dlunknown
11416 cat > conftest.$ac_ext <<_LT_EOF
11417 #line 11417 "configure"
11418 #include "confdefs.h"
11420 #if HAVE_DLFCN_H
11421 #include <dlfcn.h>
11422 #endif
11424 #include <stdio.h>
11426 #ifdef RTLD_GLOBAL
11427 # define LT_DLGLOBAL RTLD_GLOBAL
11428 #else
11429 # ifdef DL_GLOBAL
11430 # define LT_DLGLOBAL DL_GLOBAL
11431 # else
11432 # define LT_DLGLOBAL 0
11433 # endif
11434 #endif
11436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11437 find out it does not work in some platform. */
11438 #ifndef LT_DLLAZY_OR_NOW
11439 # ifdef RTLD_LAZY
11440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11441 # else
11442 # ifdef DL_LAZY
11443 # define LT_DLLAZY_OR_NOW DL_LAZY
11444 # else
11445 # ifdef RTLD_NOW
11446 # define LT_DLLAZY_OR_NOW RTLD_NOW
11447 # else
11448 # ifdef DL_NOW
11449 # define LT_DLLAZY_OR_NOW DL_NOW
11450 # else
11451 # define LT_DLLAZY_OR_NOW 0
11452 # endif
11453 # endif
11454 # endif
11455 # endif
11456 #endif
11458 void fnord() { int i=42;}
11459 int main ()
11461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11462 int status = $lt_dlunknown;
11464 if (self)
11466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11468 /* dlclose (self); */
11470 else
11471 puts (dlerror ());
11473 return status;
11475 _LT_EOF
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>&5
11478 ac_status=$?
11479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11481 (./conftest; exit; ) >&5 2>/dev/null
11482 lt_status=$?
11483 case x$lt_status in
11484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11487 esac
11488 else :
11489 # compilation failed
11490 lt_cv_dlopen_self_static=no
11493 rm -fr conftest*
11497 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11498 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11501 CPPFLAGS="$save_CPPFLAGS"
11502 LDFLAGS="$save_LDFLAGS"
11503 LIBS="$save_LIBS"
11505 esac
11507 case $lt_cv_dlopen_self in
11508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11509 *) enable_dlopen_self=unknown ;;
11510 esac
11512 case $lt_cv_dlopen_self_static in
11513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11514 *) enable_dlopen_self_static=unknown ;;
11515 esac
11534 striplib=
11535 old_striplib=
11536 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11537 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11538 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11539 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11540 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11541 { $as_echo "$as_me:$LINENO: result: yes" >&5
11542 $as_echo "yes" >&6; }
11543 else
11544 # FIXME - insert some real tests, host_os isn't really good enough
11545 case $host_os in
11546 darwin*)
11547 if test -n "$STRIP" ; then
11548 striplib="$STRIP -x"
11549 old_striplib="$STRIP -S"
11550 { $as_echo "$as_me:$LINENO: result: yes" >&5
11551 $as_echo "yes" >&6; }
11552 else
11553 { $as_echo "$as_me:$LINENO: result: no" >&5
11554 $as_echo "no" >&6; }
11558 { $as_echo "$as_me:$LINENO: result: no" >&5
11559 $as_echo "no" >&6; }
11561 esac
11575 # Report which library types will actually be built
11576 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11577 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11578 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11579 $as_echo "$can_build_shared" >&6; }
11581 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11582 $as_echo_n "checking whether to build shared libraries... " >&6; }
11583 test "$can_build_shared" = "no" && enable_shared=no
11585 # On AIX, shared libraries and static libraries use the same namespace, and
11586 # are all built from PIC.
11587 case $host_os in
11588 aix3*)
11589 test "$enable_shared" = yes && enable_static=no
11590 if test -n "$RANLIB"; then
11591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11592 postinstall_cmds='$RANLIB $lib'
11596 aix[4-9]*)
11597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11598 test "$enable_shared" = yes && enable_static=no
11601 esac
11602 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11603 $as_echo "$enable_shared" >&6; }
11605 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11606 $as_echo_n "checking whether to build static libraries... " >&6; }
11607 # Make sure either enable_shared or enable_static is yes.
11608 test "$enable_shared" = yes || enable_static=yes
11609 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11610 $as_echo "$enable_static" >&6; }
11616 ac_ext=c
11617 ac_cpp='$CPP $CPPFLAGS'
11618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622 CC="$lt_save_CC"
11636 ac_config_commands="$ac_config_commands libtool"
11641 # Only expand once:
11645 ac_config_headers="$ac_config_headers include/config.h"
11648 # Request support for automake silent-rules if available.
11649 # Default to verbose output. One can use the configure-time
11650 # option --enable-silent-rules or make V=0 to activate
11651 # silent rules.
11654 PROTOCOL_VERSION=10
11655 DOT_FRM_VERSION=6
11656 # See the libtool docs for information on how to do shared lib versions.
11657 SHARED_LIB_MAJOR_VERSION=16
11658 SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
11659 NDB_SHARED_LIB_MAJOR_VERSION=3
11660 NDB_SHARED_LIB_VERSION=$NDB_SHARED_LIB_MAJOR_VERSION:0:0
11662 # Set all version vars based on $VERSION. How do we do this more elegant ?
11663 # Remember that regexps needs to quote [ and ] since this is run through m4
11664 # We take some made up examples
11666 # VERSION 5.1.40sp1-alpha 5.0.34a 5.5.1-m2
11667 # MYSQL_U_SCORE_VERSION 5.1.40sp1_alpha 5.0.34a 5.5.1_m2
11668 # MYSQL_NO_DASH_VERSION 5.1.40sp1 5.0.34a 5.5.1
11669 # MYSQL_NUMERIC_VERSION 5.1.40 5.0.34 5.5.1
11670 # MYSQL_BASE_VERSION 5.1 5.0 5.5
11671 # MYSQL_VERSION_ID 50140 50034 50501
11673 MYSQL_U_SCORE_VERSION=`echo $VERSION | sed -e "s|-|_|"`
11674 MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"`
11675 MYSQL_NUMERIC_VERSION=`echo $MYSQL_NO_DASH_VERSION | sed -e "s|[a-z][a-z0-9]*$||"`
11676 MYSQL_BASE_VERSION=`echo $MYSQL_NUMERIC_VERSION | sed -e "s|\.[^.]*$||"`
11677 MYSQL_VERSION_ID=`echo $MYSQL_NUMERIC_VERSION | \
11678 awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
11679 MYSQL_COPYRIGHT_YEAR=`date '+%Y'`
11681 # Add previous major version for debian package upgrade path
11682 MYSQL_PREVIOUS_BASE_VERSION=5.0
11684 # The port should be constant for a LONG time
11685 MYSQL_TCP_PORT_DEFAULT=3306
11686 MYSQL_UNIX_ADDR_DEFAULT="/tmp/mysql.sock"
11689 # Control aspects of the development environment which are
11690 # specific to MySQL maintainers and developers.
11694 # Set warning options required under maintainer mode.
11698 # Set compiler flags required under maintainer mode.
11710 # Check whether --with-charset was given.
11711 if test "${with_charset+set}" = set; then
11712 withval=$with_charset; default_charset="$withval"
11713 else
11714 default_charset="$DEFAULT_CHARSET"
11719 # Check whether --with-collation was given.
11720 if test "${with_collation+set}" = set; then
11721 withval=$with_collation; default_collation="$withval"
11722 else
11723 default_collation="default"
11729 # Check whether --with-extra-charsets was given.
11730 if test "${with_extra_charsets+set}" = set; then
11731 withval=$with_extra_charsets; extra_charsets="$withval"
11732 else
11733 extra_charsets="none"
11738 { $as_echo "$as_me:$LINENO: checking \"character sets\"" >&5
11739 $as_echo_n "checking \"character sets\"... " >&6; }
11741 CHARSETS="$default_charset latin1 utf8"
11743 if test "$extra_charsets" = no; then
11744 CHARSETS="$CHARSETS"
11745 elif test "$extra_charsets" = none; then
11746 CHARSETS="$CHARSETS"
11747 elif test "$extra_charsets" = complex; then
11748 CHARSETS="$CHARSETS $CHARSETS_COMPLEX"
11750 cat >>confdefs.h <<\_ACEOF
11751 #define DEFINE_ALL_CHARACTER_SETS 1
11752 _ACEOF
11754 elif test "$extra_charsets" = all; then
11755 CHARSETS="$CHARSETS $CHARSETS_AVAILABLE"
11757 cat >>confdefs.h <<\_ACEOF
11758 #define DEFINE_ALL_CHARACTER_SETS 1
11759 _ACEOF
11761 else
11762 EXTRA_CHARSETS=`echo $extra_charsets | sed -e 's/,/ /g'`
11763 CHARSETS="$CHARSETS $EXTRA_CHARSETS"
11766 for cs in $CHARSETS
11768 case $cs in
11769 armscii8)
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_CHARSET_armscii8 1
11773 _ACEOF
11776 ascii)
11778 cat >>confdefs.h <<\_ACEOF
11779 #define HAVE_CHARSET_ascii 1
11780 _ACEOF
11783 big5)
11785 cat >>confdefs.h <<\_ACEOF
11786 #define HAVE_CHARSET_big5 1
11787 _ACEOF
11790 cat >>confdefs.h <<\_ACEOF
11791 #define USE_MB 1
11792 _ACEOF
11795 cat >>confdefs.h <<\_ACEOF
11796 #define USE_MB_IDENT 1
11797 _ACEOF
11800 binary)
11802 cp1250)
11804 cat >>confdefs.h <<\_ACEOF
11805 #define HAVE_CHARSET_cp1250 1
11806 _ACEOF
11809 cp1251)
11811 cat >>confdefs.h <<\_ACEOF
11812 #define HAVE_CHARSET_cp1251 1
11813 _ACEOF
11816 cp1256)
11818 cat >>confdefs.h <<\_ACEOF
11819 #define HAVE_CHARSET_cp1256 1
11820 _ACEOF
11823 cp1257)
11825 cat >>confdefs.h <<\_ACEOF
11826 #define HAVE_CHARSET_cp1257 1
11827 _ACEOF
11830 cp850)
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_CHARSET_cp850 1
11834 _ACEOF
11837 cp852)
11839 cat >>confdefs.h <<\_ACEOF
11840 #define HAVE_CHARSET_cp852 1
11841 _ACEOF
11844 cp866)
11846 cat >>confdefs.h <<\_ACEOF
11847 #define HAVE_CHARSET_cp866 1
11848 _ACEOF
11851 cp932)
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_CHARSET_cp932 1
11855 _ACEOF
11858 cat >>confdefs.h <<\_ACEOF
11859 #define USE_MB 1
11860 _ACEOF
11862 cat >>confdefs.h <<\_ACEOF
11863 #define USE_MB_IDENT 1
11864 _ACEOF
11867 dec8)
11869 cat >>confdefs.h <<\_ACEOF
11870 #define HAVE_CHARSET_dec8 1
11871 _ACEOF
11874 eucjpms)
11876 cat >>confdefs.h <<\_ACEOF
11877 #define HAVE_CHARSET_eucjpms 1
11878 _ACEOF
11881 cat >>confdefs.h <<\_ACEOF
11882 #define USE_MB 1
11883 _ACEOF
11885 cat >>confdefs.h <<\_ACEOF
11886 #define USE_MB_IDENT 1
11887 _ACEOF
11890 euckr)
11892 cat >>confdefs.h <<\_ACEOF
11893 #define HAVE_CHARSET_euckr 1
11894 _ACEOF
11897 cat >>confdefs.h <<\_ACEOF
11898 #define USE_MB 1
11899 _ACEOF
11901 cat >>confdefs.h <<\_ACEOF
11902 #define USE_MB_IDENT 1
11903 _ACEOF
11906 gb2312)
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_CHARSET_gb2312 1
11910 _ACEOF
11913 cat >>confdefs.h <<\_ACEOF
11914 #define USE_MB 1
11915 _ACEOF
11917 cat >>confdefs.h <<\_ACEOF
11918 #define USE_MB_IDENT 1
11919 _ACEOF
11922 gbk)
11924 cat >>confdefs.h <<\_ACEOF
11925 #define HAVE_CHARSET_gbk 1
11926 _ACEOF
11929 cat >>confdefs.h <<\_ACEOF
11930 #define USE_MB 1
11931 _ACEOF
11933 cat >>confdefs.h <<\_ACEOF
11934 #define USE_MB_IDENT 1
11935 _ACEOF
11938 geostd8)
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_CHARSET_geostd8 1
11942 _ACEOF
11945 greek)
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_CHARSET_greek 1
11949 _ACEOF
11952 hebrew)
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_CHARSET_hebrew 1
11956 _ACEOF
11959 hp8)
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_CHARSET_hp8 1
11963 _ACEOF
11966 keybcs2)
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_CHARSET_keybcs2 1
11970 _ACEOF
11973 koi8r)
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_CHARSET_koi8r 1
11977 _ACEOF
11980 koi8u)
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_CHARSET_koi8u 1
11984 _ACEOF
11987 latin1)
11989 cat >>confdefs.h <<\_ACEOF
11990 #define HAVE_CHARSET_latin1 1
11991 _ACEOF
11994 latin2)
11996 cat >>confdefs.h <<\_ACEOF
11997 #define HAVE_CHARSET_latin2 1
11998 _ACEOF
12001 latin5)
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_CHARSET_latin5 1
12005 _ACEOF
12008 latin7)
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_CHARSET_latin7 1
12012 _ACEOF
12015 macce)
12017 cat >>confdefs.h <<\_ACEOF
12018 #define HAVE_CHARSET_macce 1
12019 _ACEOF
12022 macroman)
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_CHARSET_macroman 1
12026 _ACEOF
12029 sjis)
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_CHARSET_sjis 1
12033 _ACEOF
12036 cat >>confdefs.h <<\_ACEOF
12037 #define USE_MB 1
12038 _ACEOF
12040 cat >>confdefs.h <<\_ACEOF
12041 #define USE_MB_IDENT 1
12042 _ACEOF
12045 swe7)
12047 cat >>confdefs.h <<\_ACEOF
12048 #define HAVE_CHARSET_swe7 1
12049 _ACEOF
12052 tis620)
12054 cat >>confdefs.h <<\_ACEOF
12055 #define HAVE_CHARSET_tis620 1
12056 _ACEOF
12059 ucs2)
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_CHARSET_ucs2 1
12063 _ACEOF
12066 cat >>confdefs.h <<\_ACEOF
12067 #define USE_MB 1
12068 _ACEOF
12070 cat >>confdefs.h <<\_ACEOF
12071 #define USE_MB_IDENT 1
12072 _ACEOF
12075 ujis)
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_CHARSET_ujis 1
12079 _ACEOF
12082 cat >>confdefs.h <<\_ACEOF
12083 #define USE_MB 1
12084 _ACEOF
12086 cat >>confdefs.h <<\_ACEOF
12087 #define USE_MB_IDENT 1
12088 _ACEOF
12091 utf8)
12093 cat >>confdefs.h <<\_ACEOF
12094 #define HAVE_CHARSET_utf8 1
12095 _ACEOF
12098 cat >>confdefs.h <<\_ACEOF
12099 #define USE_MB 1
12100 _ACEOF
12102 cat >>confdefs.h <<\_ACEOF
12103 #define USE_MB_IDENT 1
12104 _ACEOF
12108 { { $as_echo "$as_me:$LINENO: error: Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
12109 See the Installation chapter in the Reference Manual." >&5
12110 $as_echo "$as_me: error: Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
12111 See the Installation chapter in the Reference Manual." >&2;}
12112 { (exit 1); exit 1; }; }
12113 esac
12114 done
12117 default_charset_collations=""
12119 case $default_charset in
12120 armscii8)
12121 default_charset_default_collation="armscii8_general_ci"
12122 default_charset_collations="armscii8_general_ci armscii8_bin"
12124 ascii)
12125 default_charset_default_collation="ascii_general_ci"
12126 default_charset_collations="ascii_general_ci ascii_bin"
12128 big5)
12129 default_charset_default_collation="big5_chinese_ci"
12130 default_charset_collations="big5_chinese_ci big5_bin"
12132 binary)
12133 default_charset_default_collation="binary"
12134 default_charset_collations="binary"
12136 cp1250)
12137 default_charset_default_collation="cp1250_general_ci"
12138 default_charset_collations="cp1250_general_ci cp1250_czech_cs cp1250_bin"
12140 cp1251)
12141 default_charset_default_collation="cp1251_general_ci"
12142 default_charset_collations="cp1251_general_ci cp1251_general_cs cp1251_bin cp1251_bulgarian_ci cp1251_ukrainian_ci"
12144 cp1256)
12145 default_charset_default_collation="cp1256_general_ci"
12146 default_charset_collations="cp1256_general_ci cp1256_bin"
12148 cp1257)
12149 default_charset_default_collation="cp1257_general_ci"
12150 default_charset_collations="cp1257_general_ci cp1257_lithuanian_ci cp1257_bin"
12152 cp850)
12153 default_charset_default_collation="cp850_general_ci"
12154 default_charset_collations="cp850_general_ci cp850_bin"
12156 cp852)
12157 default_charset_default_collation="cp852_general_ci"
12158 default_charset_collations="cp852_general_ci cp852_bin"
12160 cp866)
12161 default_charset_default_collation="cp866_general_ci"
12162 default_charset_collations="cp866_general_ci cp866_bin"
12164 cp932)
12165 default_charset_default_collation="cp932_japanese_ci"
12166 default_charset_collations="cp932_japanese_ci cp932_bin"
12168 dec8)
12169 default_charset_default_collation="dec8_swedish_ci"
12170 default_charset_collations="dec8_swedish_ci dec8_bin"
12172 eucjpms)
12173 default_charset_default_collation="eucjpms_japanese_ci"
12174 default_charset_collations="eucjpms_japanese_ci ujis_bin"
12176 euckr)
12177 default_charset_default_collation="euckr_korean_ci"
12178 default_charset_collations="euckr_korean_ci euckr_bin"
12180 gb2312)
12181 default_charset_default_collation="gb2312_chinese_ci"
12182 default_charset_collations="gb2312_chinese_ci gb2312_bin"
12184 gbk)
12185 default_charset_default_collation="gbk_chinese_ci"
12186 default_charset_collations="gbk_chinese_ci gbk_bin"
12188 geostd8)
12189 default_charset_default_collation="geostd8_general_ci"
12190 default_charset_collations="geostd8_general_ci geostd8_bin"
12192 greek)
12193 default_charset_default_collation="greek_general_ci"
12194 default_charset_collations="greek_general_ci greek_bin"
12196 hebrew)
12197 default_charset_default_collation="hebrew_general_ci"
12198 default_charset_collations="hebrew_general_ci hebrew_bin"
12200 hp8)
12201 default_charset_default_collation="hp8_english_ci"
12202 default_charset_collations="hp8_english_ci hp8_bin"
12204 keybcs2)
12205 default_charset_default_collation="keybcs2_general_ci"
12206 default_charset_collations="keybcs2_general_ci keybcs2_bin"
12208 koi8r)
12209 default_charset_default_collation="koi8r_general_ci"
12210 default_charset_collations="koi8r_general_ci koi8r_bin"
12212 koi8u)
12213 default_charset_default_collation="koi8u_general_ci"
12214 default_charset_collations="koi8u_general_ci koi8u_bin"
12216 latin1)
12217 default_charset_default_collation="latin1_swedish_ci"
12218 default_charset_collations="latin1_general_ci latin1_general_cs latin1_bin latin1_german1_ci latin1_german2_ci latin1_danish_ci latin1_spanish_ci latin1_swedish_ci"
12220 latin2)
12221 default_charset_default_collation="latin2_general_ci"
12222 default_charset_collations="latin2_general_ci latin2_bin latin2_czech_cs latin2_hungarian_ci latin2_croatian_ci"
12224 latin5)
12225 default_charset_default_collation="latin5_turkish_ci"
12226 default_charset_collations="latin5_turkish_ci latin5_bin"
12228 latin7)
12229 default_charset_default_collation="latin7_general_ci"
12230 default_charset_collations="latin7_general_ci latin7_general_cs latin7_bin latin7_estonian_cs"
12232 macce)
12233 default_charset_default_collation="macce_general_ci"
12234 default_charset_collations="macce_general_ci macce_bin"
12236 macroman)
12237 default_charset_default_collation="macroman_general_ci"
12238 default_charset_collations="macroman_general_ci macroman_bin"
12240 sjis)
12241 default_charset_default_collation="sjis_japanese_ci"
12242 default_charset_collations="sjis_japanese_ci sjis_bin"
12244 swe7)
12245 default_charset_default_collation="swe7_swedish_ci"
12246 default_charset_collations="swe7_swedish_ci swe7_bin"
12248 tis620)
12249 default_charset_default_collation="tis620_thai_ci"
12250 default_charset_collations="tis620_thai_ci tis620_bin"
12252 ucs2)
12253 default_charset_default_collation="ucs2_general_ci"
12263 UCSC="ucs2_general_ci ucs2_bin ucs2_czech_ci ucs2_danish_ci ucs2_esperanto_ci ucs2_estonian_ci ucs2_hungarian_ci ucs2_icelandic_ci ucs2_latvian_ci ucs2_lithuanian_ci ucs2_persian_ci ucs2_polish_ci ucs2_romanian_ci ucs2_slovak_ci ucs2_slovenian_ci ucs2_spanish2_ci ucs2_spanish_ci ucs2_swedish_ci ucs2_turkish_ci ucs2_unicode_ci"
12264 default_charset_collations="$UCSC"
12266 ujis)
12267 default_charset_default_collation="ujis_japanese_ci"
12268 default_charset_collations="ujis_japanese_ci ujis_bin"
12270 utf8)
12271 default_charset_default_collation="utf8_general_ci"
12272 if test "$default_collation" = "utf8_general_cs"; then
12273 # For those who explicitly desire "utf8_general_cs", support it,
12274 # and then also set the CPP switch enabling that code.
12275 UTFC="utf8_general_cs"
12277 cat >>confdefs.h <<\_ACEOF
12278 #define HAVE_UTF8_GENERAL_CS 1
12279 _ACEOF
12281 else
12291 UTFC="utf8_general_ci utf8_bin utf8_czech_ci utf8_danish_ci utf8_esperanto_ci utf8_estonian_ci utf8_hungarian_ci utf8_icelandic_ci utf8_latvian_ci utf8_lithuanian_ci utf8_persian_ci utf8_polish_ci utf8_romanian_ci utf8_slovak_ci utf8_slovenian_ci utf8_spanish2_ci utf8_spanish_ci utf8_swedish_ci utf8_turkish_ci utf8_unicode_ci"
12293 default_charset_collations="$UTFC"
12296 { { $as_echo "$as_me:$LINENO: error: Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
12297 See the Installation chapter in the Reference Manual." >&5
12298 $as_echo "$as_me: error: Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
12299 See the Installation chapter in the Reference Manual." >&2;}
12300 { (exit 1); exit 1; }; }
12301 esac
12303 if test "$default_collation" = default; then
12304 default_collation=$default_charset_default_collation
12307 valid_default_collation=no
12308 for cl in $default_charset_collations
12310 if test x"$cl" = x"$default_collation"
12311 then
12312 valid_default_collation=yes
12313 break
12315 done
12317 if test x$valid_default_collation = xyes
12318 then
12319 { $as_echo "$as_me:$LINENO: result: default: $default_charset, collation: $default_collation; compiled in: $CHARSETS" >&5
12320 $as_echo "default: $default_charset, collation: $default_collation; compiled in: $CHARSETS" >&6; }
12321 else
12322 { { $as_echo "$as_me:$LINENO: error:
12323 Collation $default_collation is not valid for character set $default_charset.
12324 Valid collations are: $default_charset_collations.
12325 See the Installation chapter in the Reference Manual.
12326 " >&5
12327 $as_echo "$as_me: error:
12328 Collation $default_collation is not valid for character set $default_charset.
12329 Valid collations are: $default_charset_collations.
12330 See the Installation chapter in the Reference Manual.
12331 " >&2;}
12332 { (exit 1); exit 1; }; }
12336 cat >>confdefs.h <<_ACEOF
12337 #define MYSQL_DEFAULT_CHARSET_NAME "$default_charset"
12338 _ACEOF
12341 cat >>confdefs.h <<_ACEOF
12342 #define MYSQL_DEFAULT_COLLATION_NAME "$default_collation"
12343 _ACEOF
12346 # Shall we build the UCA-based Unicode collations
12348 # Check whether --with-uca was given.
12349 if test "${with_uca+set}" = set; then
12350 withval=$with_uca; with_uca=$withval
12351 else
12352 with_uca=yes
12357 { $as_echo "$as_me:$LINENO: checking whether to compile national Unicode collations" >&5
12358 $as_echo_n "checking whether to compile national Unicode collations... " >&6; }
12360 if test "$with_uca" = "yes"
12361 then
12362 { $as_echo "$as_me:$LINENO: result: yes" >&5
12363 $as_echo "yes" >&6; }
12365 cat >>confdefs.h <<\_ACEOF
12366 #define HAVE_UCA_COLLATIONS 1
12367 _ACEOF
12369 else
12370 { $as_echo "$as_me:$LINENO: result: no" >&5
12371 $as_echo "no" >&6; }
12375 # Shall we build experimental collations
12377 # Check whether --with-experimental-collations was given.
12378 if test "${with_experimental_collations+set}" = set; then
12379 withval=$with_experimental_collations; with_exp_coll=$withval
12380 else
12381 with_exp_coll=no
12386 if test "$with_exp_coll" = "yes"
12387 then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_UTF8_GENERAL_CS 1
12391 _ACEOF
12395 # option, cache_name, variable,
12396 # code to execute if yes, code to exectute if fail
12399 # arch, option, cache_name, variable
12402 # os, option, cache_name, variable
12538 NDB_VERSION_MAJOR=`echo $MYSQL_NUMERIC_VERSION | cut -d. -f1`
12539 NDB_VERSION_MINOR=`echo $MYSQL_NUMERIC_VERSION | cut -d. -f2`
12540 NDB_VERSION_BUILD=`echo $MYSQL_NUMERIC_VERSION | cut -d. -f3`
12541 NDB_VERSION_STATUS=`echo $VERSION | sed 's/^[-.0-9]*//'`
12542 TEST_NDBCLUSTER=""
12545 # Extract the first word of "doxygen", so it can be a program name with args.
12546 set dummy doxygen; ac_word=$2
12547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_path_DOXYGEN+set}" = set; then
12550 $as_echo_n "(cached) " >&6
12551 else
12552 case $DOXYGEN in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12568 done
12569 done
12570 IFS=$as_save_IFS
12572 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
12574 esac
12576 DOXYGEN=$ac_cv_path_DOXYGEN
12577 if test -n "$DOXYGEN"; then
12578 { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
12579 $as_echo "$DOXYGEN" >&6; }
12580 else
12581 { $as_echo "$as_me:$LINENO: result: no" >&5
12582 $as_echo "no" >&6; }
12586 # Extract the first word of "pdflatex", so it can be a program name with args.
12587 set dummy pdflatex; ac_word=$2
12588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_path_PDFLATEX+set}" = set; then
12591 $as_echo_n "(cached) " >&6
12592 else
12593 case $PDFLATEX in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12613 test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="no"
12615 esac
12617 PDFLATEX=$ac_cv_path_PDFLATEX
12618 if test -n "$PDFLATEX"; then
12619 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12620 $as_echo "$PDFLATEX" >&6; }
12621 else
12622 { $as_echo "$as_me:$LINENO: result: no" >&5
12623 $as_echo "no" >&6; }
12627 # Extract the first word of "makeindex", so it can be a program name with args.
12628 set dummy makeindex; ac_word=$2
12629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if test "${ac_cv_path_MAKEINDEX+set}" = set; then
12632 $as_echo_n "(cached) " >&6
12633 else
12634 case $MAKEINDEX in
12635 [\\/]* | ?:[\\/]*)
12636 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646 ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12650 done
12651 done
12652 IFS=$as_save_IFS
12654 test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX="no"
12656 esac
12658 MAKEINDEX=$ac_cv_path_MAKEINDEX
12659 if test -n "$MAKEINDEX"; then
12660 { $as_echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
12661 $as_echo "$MAKEINDEX" >&6; }
12662 else
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664 $as_echo "no" >&6; }
12694 # Local macros for automake & autoconf
12696 #---START: Used in for client configure
12698 #---END:
12702 #---START: Figure out whether to use 'struct rlimit' or 'struct rlimit64'
12704 #---END:
12715 #---END:
12717 # From fileutils-3.14/aclocal.m4
12719 # @defmac AC_PROG_CC_STDC
12720 # @maindex PROG_CC_STDC
12721 # @ovindex CC
12722 # If the C compiler in not in ANSI C mode by default, try to add an option
12723 # to output variable @code{CC} to make it so. This macro tries various
12724 # options that select ANSI C on some system or another. It considers the
12725 # compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
12726 # handles function prototypes correctly.
12728 # Patched by monty to only check if __STDC__ is defined. With the original
12729 # check it's impossible to get things to work with the Sunpro compiler from
12730 # Workshop 4.2
12732 # If you use this macro, you should check after calling it whether the C
12733 # compiler has been set to accept ANSI C; if not, the shell variable
12734 # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
12735 # code in ANSI C, you can make an un-ANSIfied copy of it by using the
12736 # program @code{ansi2knr}, which comes with Ghostscript.
12737 # @end defmac
12741 # Orginal from bash-2.0 aclocal.m4, Changed to use termcap last by monty.
12768 # Local version of _AC_PROG_CXX_EXIT_DECLARATION that does not
12769 # include #stdlib.h as default as this breaks things on Solaris
12770 # (Conflicts with pthreads and big file handling)
12772 # _AC_PROG_CXX_EXIT_DECLARATION
12826 # Remember to add a directory sql/share/LANGUAGE
12827 AVAILABLE_LANGUAGES="\
12828 czech danish dutch english estonian french german greek hungarian \
12829 italian japanese korean norwegian norwegian-ny polish portuguese \
12830 romanian russian serbian slovak spanish swedish ukrainian"
12832 #####
12833 #####
12843 cat >>confdefs.h <<_ACEOF
12844 #define PROTOCOL_VERSION $PROTOCOL_VERSION
12845 _ACEOF
12849 cat >>confdefs.h <<_ACEOF
12850 #define DOT_FRM_VERSION $DOT_FRM_VERSION
12851 _ACEOF
12857 # Check whether a debug mode should be enabled.
12859 # Check whether --with-debug was given.
12860 if test "${with_debug+set}" = set; then
12861 withval=$with_debug; with_debug=$withval
12862 else
12863 with_debug=no
12867 # Whether the maintainer mode should be enabled.
12869 { $as_echo "$as_me:$LINENO: checking whether to enable the maintainer-specific development environment" >&5
12870 $as_echo_n "checking whether to enable the maintainer-specific development environment... " >&6; }
12871 # Check whether --enable-mysql-maintainer-mode was given.
12872 if test "${enable_mysql_maintainer_mode+set}" = set; then
12873 enableval=$enable_mysql_maintainer_mode; USE_MYSQL_MAINTAINER_MODE=$enableval
12874 else
12875 if test "$with_debug" != "no"; then
12876 USE_MYSQL_MAINTAINER_MODE=yes
12877 else
12878 USE_MYSQL_MAINTAINER_MODE=no
12883 { $as_echo "$as_me:$LINENO: result: $USE_MYSQL_MAINTAINER_MODE" >&5
12884 $as_echo "$USE_MYSQL_MAINTAINER_MODE" >&6; }
12887 # Canonicalize the configuration name.
12889 # Check whether --with-system-type or --without-system-type was given.
12891 # Check whether --with-system-type was given.
12892 if test "${with_system_type+set}" = set; then
12893 withval=$with_system_type; SYSTEM_TYPE="$withval"
12894 else
12895 SYSTEM_TYPE="$host_vendor-$host_os"
12899 # Check whether --with-machine-type was given.
12900 if test "${with_machine_type+set}" = set; then
12901 withval=$with_machine_type; MACHINE_TYPE="$withval"
12902 else
12903 MACHINE_TYPE="$host_cpu"
12908 cat >>confdefs.h <<_ACEOF
12909 #define SYSTEM_TYPE "$SYSTEM_TYPE"
12910 _ACEOF
12914 cat >>confdefs.h <<_ACEOF
12915 #define MACHINE_TYPE "$MACHINE_TYPE"
12916 _ACEOF
12919 # Detect intel x86 like processor
12920 BASE_MACHINE_TYPE=$MACHINE_TYPE
12921 case $MACHINE_TYPE in
12922 i?86) BASE_MACHINE_TYPE=i386 ;;
12923 esac
12925 # Save some variables and the command line options for mysqlbug
12926 SAVE_CC="$CC"
12927 SAVE_CXX="$CXX"
12928 SAVE_ASFLAGS="$ASFLAGS"
12929 SAVE_CFLAGS="$CFLAGS"
12930 SAVE_CXXFLAGS="$CXXFLAGS"
12931 SAVE_LDFLAGS="$LDFLAGS"
12932 SAVE_CXXLDFLAGS="$CXXLDFLAGS"
12933 CONF_COMMAND="$0 $ac_configure_args"
12944 #AC_ARG_PROGRAM # Automaticly invoked by AM_INIT_AUTOMAKE
12946 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
12947 $as_echo_n "checking whether build environment is sane... " >&6; }
12948 # Just in case
12949 sleep 1
12950 echo timestamp > conftest.file
12951 # Do `set' in a subshell so we don't clobber the current shell's
12952 # arguments. Must try -L first in case configure is actually a
12953 # symlink; some systems play weird games with the mod time of symlinks
12954 # (eg FreeBSD returns the mod time of the symlink's containing
12955 # directory).
12956 if (
12957 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12958 if test "$*" = "X"; then
12959 # -L didn't work.
12960 set X `ls -t $srcdir/configure conftest.file`
12962 rm -f conftest.file
12963 if test "$*" != "X $srcdir/configure conftest.file" \
12964 && test "$*" != "X conftest.file $srcdir/configure"; then
12966 # If neither matched, then we have a broken ls. This can happen
12967 # if, for instance, CONFIG_SHELL is bash and it inherits a
12968 # broken ls alias from the environment. This has actually
12969 # happened. Such a system could not be considered "sane".
12970 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
12971 alias in your environment" >&5
12972 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
12973 alias in your environment" >&2;}
12974 { (exit 1); exit 1; }; }
12977 test "$2" = conftest.file
12979 then
12980 # Ok.
12982 else
12983 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
12984 Check your system clock" >&5
12985 $as_echo "$as_me: error: newly created file is older than distributed files!
12986 Check your system clock" >&2;}
12987 { (exit 1); exit 1; }; }
12989 { $as_echo "$as_me:$LINENO: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991 # This is needed is SUBDIRS is set
12992 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12993 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12994 set x ${MAKE-make}
12995 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12996 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12997 $as_echo_n "(cached) " >&6
12998 else
12999 cat >conftest.make <<\_ACEOF
13000 SHELL = /bin/sh
13001 all:
13002 @echo '@@@%%%=$(MAKE)=@@@%%%'
13003 _ACEOF
13004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13006 *@@@%%%=?*=@@@%%%*)
13007 eval ac_cv_prog_make_${ac_make}_set=yes;;
13009 eval ac_cv_prog_make_${ac_make}_set=no;;
13010 esac
13011 rm -f conftest.make
13013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13014 { $as_echo "$as_me:$LINENO: result: yes" >&5
13015 $as_echo "yes" >&6; }
13016 SET_MAKE=
13017 else
13018 { $as_echo "$as_me:$LINENO: result: no" >&5
13019 $as_echo "no" >&6; }
13020 SET_MAKE="MAKE=${MAKE-make}"
13024 ##############################################################################
13025 # The below section needs to be done before AC_PROG_CC
13026 ##############################################################################
13028 # Hack for OS X/Darwin and Metrowerks CodeWarrior
13030 # Check whether --with-darwin-mwcc was given.
13031 if test "${with_darwin_mwcc+set}" = set; then
13032 withval=$with_darwin_mwcc;
13033 if "with_darwin_mwcc" = yes ; then
13034 builddir=`pwd`
13035 ccwrapper="$builddir/support-files/MacOSX/mwcc-wrapper"
13036 arwrapper="$builddir/support-files/MacOSX/mwar-wrapper"
13037 CC="$ccwrapper"
13038 CXX="$ccwrapper"
13039 LD="$ccwrapper"
13040 AR="$arwrapper"
13041 RANLIB=:
13042 export CC CXX LD AR RANLIB
13050 if test x$with_darwin_mwcc = xyes; then
13051 DARWIN_MWCC_TRUE=
13052 DARWIN_MWCC_FALSE='#'
13053 else
13054 DARWIN_MWCC_TRUE='#'
13055 DARWIN_MWCC_FALSE=
13059 if test "x${CFLAGS-}" = x ; then
13060 cflags_is_set=no
13061 else
13062 cflags_is_set=yes
13065 if test "x${CPPFLAGS-}" = x ; then
13066 cppflags_is_set=no
13067 else
13068 cppflags_is_set=yes
13071 if test "x${LDFLAGS-}" = x ; then
13072 ldflags_is_set=no
13073 else
13074 ldflags_is_set=yes
13077 ################ End of section to be done before AC_PROG_CC #################
13079 # The following hack should ensure that configure doesn't add optimizing
13080 # or debugging flags to CFLAGS or CXXFLAGS
13081 # C_EXTRA_FLAGS are flags that are automaticly added to both
13082 # CFLAGS and CXXFLAGS
13083 CFLAGS="$CFLAGS $C_EXTRA_FLAGS "
13084 CXXFLAGS="$CXXFLAGS $C_EXTRA_FLAGS "
13086 for ac_prog in gawk mawk nawk awk
13088 # Extract the first word of "$ac_prog", so it can be a program name with args.
13089 set dummy $ac_prog; ac_word=$2
13090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if test "${ac_cv_prog_AWK+set}" = set; then
13093 $as_echo_n "(cached) " >&6
13094 else
13095 if test -n "$AWK"; then
13096 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13105 ac_cv_prog_AWK="$ac_prog"
13106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13109 done
13110 done
13111 IFS=$as_save_IFS
13115 AWK=$ac_cv_prog_AWK
13116 if test -n "$AWK"; then
13117 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
13118 $as_echo "$AWK" >&6; }
13119 else
13120 { $as_echo "$as_me:$LINENO: result: no" >&5
13121 $as_echo "no" >&6; }
13125 test -n "$AWK" && break
13126 done
13128 ac_ext=c
13129 ac_cpp='$CPP $CPPFLAGS'
13130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13133 if test -n "$ac_tool_prefix"; then
13134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_CC+set}" = set; then
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$CC"; then
13142 ac_cv_prog_CC="$CC" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13161 CC=$ac_cv_prog_CC
13162 if test -n "$CC"; then
13163 { $as_echo "$as_me:$LINENO: result: $CC" >&5
13164 $as_echo "$CC" >&6; }
13165 else
13166 { $as_echo "$as_me:$LINENO: result: no" >&5
13167 $as_echo "no" >&6; }
13172 if test -z "$ac_cv_prog_CC"; then
13173 ac_ct_CC=$CC
13174 # Extract the first word of "gcc", so it can be a program name with args.
13175 set dummy gcc; ac_word=$2
13176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$ac_ct_CC"; then
13182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_ac_ct_CC="gcc"
13192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13202 if test -n "$ac_ct_CC"; then
13203 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13204 $as_echo "$ac_ct_CC" >&6; }
13205 else
13206 { $as_echo "$as_me:$LINENO: result: no" >&5
13207 $as_echo "no" >&6; }
13210 if test "x$ac_ct_CC" = x; then
13211 CC=""
13212 else
13213 case $cross_compiling:$ac_tool_warned in
13214 yes:)
13215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13217 ac_tool_warned=yes ;;
13218 esac
13219 CC=$ac_ct_CC
13221 else
13222 CC="$ac_cv_prog_CC"
13225 if test -z "$CC"; then
13226 if test -n "$ac_tool_prefix"; then
13227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13228 set dummy ${ac_tool_prefix}cc; ac_word=$2
13229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if test "${ac_cv_prog_CC+set}" = set; then
13232 $as_echo_n "(cached) " >&6
13233 else
13234 if test -n "$CC"; then
13235 ac_cv_prog_CC="$CC" # Let the user override the test.
13236 else
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13244 ac_cv_prog_CC="${ac_tool_prefix}cc"
13245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13254 CC=$ac_cv_prog_CC
13255 if test -n "$CC"; then
13256 { $as_echo "$as_me:$LINENO: result: $CC" >&5
13257 $as_echo "$CC" >&6; }
13258 else
13259 { $as_echo "$as_me:$LINENO: result: no" >&5
13260 $as_echo "no" >&6; }
13266 if test -z "$CC"; then
13267 # Extract the first word of "cc", so it can be a program name with args.
13268 set dummy cc; ac_word=$2
13269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if test "${ac_cv_prog_CC+set}" = set; then
13272 $as_echo_n "(cached) " >&6
13273 else
13274 if test -n "$CC"; then
13275 ac_cv_prog_CC="$CC" # Let the user override the test.
13276 else
13277 ac_prog_rejected=no
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13286 ac_prog_rejected=yes
13287 continue
13289 ac_cv_prog_CC="cc"
13290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13293 done
13294 done
13295 IFS=$as_save_IFS
13297 if test $ac_prog_rejected = yes; then
13298 # We found a bogon in the path, so make sure we never use it.
13299 set dummy $ac_cv_prog_CC
13300 shift
13301 if test $# != 0; then
13302 # We chose a different compiler from the bogus one.
13303 # However, it has the same basename, so the bogon will be chosen
13304 # first if we set CC to just the basename; use the full file name.
13305 shift
13306 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13311 CC=$ac_cv_prog_CC
13312 if test -n "$CC"; then
13313 { $as_echo "$as_me:$LINENO: result: $CC" >&5
13314 $as_echo "$CC" >&6; }
13315 else
13316 { $as_echo "$as_me:$LINENO: result: no" >&5
13317 $as_echo "no" >&6; }
13322 if test -z "$CC"; then
13323 if test -n "$ac_tool_prefix"; then
13324 for ac_prog in cl.exe
13326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_CC+set}" = set; then
13331 $as_echo_n "(cached) " >&6
13332 else
13333 if test -n "$CC"; then
13334 ac_cv_prog_CC="$CC" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13347 done
13348 done
13349 IFS=$as_save_IFS
13353 CC=$ac_cv_prog_CC
13354 if test -n "$CC"; then
13355 { $as_echo "$as_me:$LINENO: result: $CC" >&5
13356 $as_echo "$CC" >&6; }
13357 else
13358 { $as_echo "$as_me:$LINENO: result: no" >&5
13359 $as_echo "no" >&6; }
13363 test -n "$CC" && break
13364 done
13366 if test -z "$CC"; then
13367 ac_ct_CC=$CC
13368 for ac_prog in cl.exe
13370 # Extract the first word of "$ac_prog", so it can be a program name with args.
13371 set dummy $ac_prog; ac_word=$2
13372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$ac_ct_CC"; then
13378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_ac_ct_CC="$ac_prog"
13388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13398 if test -n "$ac_ct_CC"; then
13399 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13400 $as_echo "$ac_ct_CC" >&6; }
13401 else
13402 { $as_echo "$as_me:$LINENO: result: no" >&5
13403 $as_echo "no" >&6; }
13407 test -n "$ac_ct_CC" && break
13408 done
13410 if test "x$ac_ct_CC" = x; then
13411 CC=""
13412 else
13413 case $cross_compiling:$ac_tool_warned in
13414 yes:)
13415 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13417 ac_tool_warned=yes ;;
13418 esac
13419 CC=$ac_ct_CC
13426 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13428 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13429 See \`config.log' for more details." >&5
13430 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
13431 See \`config.log' for more details." >&2;}
13432 { (exit 1); exit 1; }; }; }
13434 # Provide some information about the compiler.
13435 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
13436 set X $ac_compile
13437 ac_compiler=$2
13438 { (ac_try="$ac_compiler --version >&5"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442 esac
13443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13444 $as_echo "$ac_try_echo") >&5
13445 (eval "$ac_compiler --version >&5") 2>&5
13446 ac_status=$?
13447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }
13449 { (ac_try="$ac_compiler -v >&5"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453 esac
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_compiler -v >&5") 2>&5
13457 ac_status=$?
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }
13460 { (ac_try="$ac_compiler -V >&5"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467 (eval "$ac_compiler -V >&5") 2>&5
13468 ac_status=$?
13469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }
13472 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13475 $as_echo_n "(cached) " >&6
13476 else
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13485 main ()
13487 #ifndef __GNUC__
13488 choke me
13489 #endif
13492 return 0;
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (ac_try="$ac_compile"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_compile") 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && {
13510 test -z "$ac_c_werror_flag" ||
13511 test ! -s conftest.err
13512 } && test -s conftest.$ac_objext; then
13513 ac_compiler_gnu=yes
13514 else
13515 $as_echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_compiler_gnu=no
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13525 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13527 if test $ac_compiler_gnu = yes; then
13528 GCC=yes
13529 else
13530 GCC=
13532 ac_test_CFLAGS=${CFLAGS+set}
13533 ac_save_CFLAGS=$CFLAGS
13534 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13536 if test "${ac_cv_prog_cc_g+set}" = set; then
13537 $as_echo_n "(cached) " >&6
13538 else
13539 ac_save_c_werror_flag=$ac_c_werror_flag
13540 ac_c_werror_flag=yes
13541 ac_cv_prog_cc_g=no
13542 CFLAGS="-g"
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13551 main ()
13555 return 0;
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563 esac
13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13565 $as_echo "$ac_try_echo") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 ac_cv_prog_cc_g=yes
13577 else
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 CFLAGS=""
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13590 main ()
13594 return 0;
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602 esac
13603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13604 $as_echo "$ac_try_echo") >&5
13605 (eval "$ac_compile") 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest.$ac_objext; then
13616 else
13617 $as_echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_c_werror_flag=$ac_save_c_werror_flag
13621 CFLAGS="-g"
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h. */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13630 main ()
13634 return 0;
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642 esac
13643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13644 $as_echo "$ac_try_echo") >&5
13645 (eval "$ac_compile") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest.$ac_objext; then
13655 ac_cv_prog_cc_g=yes
13656 else
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 ac_c_werror_flag=$ac_save_c_werror_flag
13672 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13673 $as_echo "$ac_cv_prog_cc_g" >&6; }
13674 if test "$ac_test_CFLAGS" = set; then
13675 CFLAGS=$ac_save_CFLAGS
13676 elif test $ac_cv_prog_cc_g = yes; then
13677 if test "$GCC" = yes; then
13678 CFLAGS="-g -O2"
13679 else
13680 CFLAGS="-g"
13682 else
13683 if test "$GCC" = yes; then
13684 CFLAGS="-O2"
13685 else
13686 CFLAGS=
13689 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13691 if test "${ac_cv_prog_cc_c89+set}" = set; then
13692 $as_echo_n "(cached) " >&6
13693 else
13694 ac_cv_prog_cc_c89=no
13695 ac_save_CC=$CC
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <stdarg.h>
13703 #include <stdio.h>
13704 #include <sys/types.h>
13705 #include <sys/stat.h>
13706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13707 struct buf { int x; };
13708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13709 static char *e (p, i)
13710 char **p;
13711 int i;
13713 return p[i];
13715 static char *f (char * (*g) (char **, int), char **p, ...)
13717 char *s;
13718 va_list v;
13719 va_start (v,p);
13720 s = g (p, va_arg (v,int));
13721 va_end (v);
13722 return s;
13725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13726 function prototypes and stuff, but not '\xHH' hex character constants.
13727 These don't provoke an error unfortunately, instead are silently treated
13728 as 'x'. The following induces an error, until -std is added to get
13729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13730 array size at least. It's necessary to write '\x00'==0 to get something
13731 that's true only with -std. */
13732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13735 inside strings and character constants. */
13736 #define FOO(x) 'x'
13737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13739 int test (int i, double x);
13740 struct s1 {int (*f) (int a);};
13741 struct s2 {int (*f) (double a);};
13742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13743 int argc;
13744 char **argv;
13746 main ()
13748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13750 return 0;
13752 _ACEOF
13753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13756 CC="$ac_save_CC $ac_arg"
13757 rm -f conftest.$ac_objext
13758 if { (ac_try="$ac_compile"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762 esac
13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13764 $as_echo "$ac_try_echo") >&5
13765 (eval "$ac_compile") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && {
13772 test -z "$ac_c_werror_flag" ||
13773 test ! -s conftest.err
13774 } && test -s conftest.$ac_objext; then
13775 ac_cv_prog_cc_c89=$ac_arg
13776 else
13777 $as_echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13783 rm -f core conftest.err conftest.$ac_objext
13784 test "x$ac_cv_prog_cc_c89" != "xno" && break
13785 done
13786 rm -f conftest.$ac_ext
13787 CC=$ac_save_CC
13790 # AC_CACHE_VAL
13791 case "x$ac_cv_prog_cc_c89" in
13793 { $as_echo "$as_me:$LINENO: result: none needed" >&5
13794 $as_echo "none needed" >&6; } ;;
13795 xno)
13796 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
13797 $as_echo "unsupported" >&6; } ;;
13799 CC="$CC $ac_cv_prog_cc_c89"
13800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13802 esac
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 depcc="$CC" am_compiler_list=
13813 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13814 $as_echo_n "checking dependency style of $depcc... " >&6; }
13815 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13819 # We make a subdir and do the tests there. Otherwise we can end up
13820 # making bogus files that we don't know about and never remove. For
13821 # instance it was reported that on HP-UX the gcc test will end up
13822 # making a dummy file named `D' -- because `-MD' means `put the output
13823 # in D'.
13824 mkdir conftest.dir
13825 # Copy depcomp to subdir because otherwise we won't find it if we're
13826 # using a relative directory.
13827 cp "$am_depcomp" conftest.dir
13828 cd conftest.dir
13829 # We will build objects and dependencies in a subdirectory because
13830 # it helps to detect inapplicable dependency modes. For instance
13831 # both Tru64's cc and ICC support -MD to output dependencies as a
13832 # side effect of compilation, but ICC will put the dependencies in
13833 # the current directory while Tru64 will put them in the object
13834 # directory.
13835 mkdir sub
13837 am_cv_CC_dependencies_compiler_type=none
13838 if test "$am_compiler_list" = ""; then
13839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13841 for depmode in $am_compiler_list; do
13842 # Setup a source with many dependencies, because some compilers
13843 # like to wrap large dependency lists on column 80 (with \), and
13844 # we should not choose a depcomp mode which is confused by this.
13846 # We need to recreate these files for each test, as the compiler may
13847 # overwrite some of them when testing with obscure command lines.
13848 # This happens at least with the AIX C compiler.
13849 : > sub/conftest.c
13850 for i in 1 2 3 4 5 6; do
13851 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13852 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13853 # Solaris 8's {/usr,}/bin/sh.
13854 touch sub/conftst$i.h
13855 done
13856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13858 case $depmode in
13859 nosideeffect)
13860 # after this tag, mechanisms are not by side-effect, so they'll
13861 # only be used when explicitly requested
13862 if test "x$enable_dependency_tracking" = xyes; then
13863 continue
13864 else
13865 break
13868 none) break ;;
13869 esac
13870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13871 # mode. It turns out that the SunPro C++ compiler does not properly
13872 # handle `-M -o', and we need to detect this.
13873 if depmode=$depmode \
13874 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13876 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13877 >/dev/null 2>conftest.err &&
13878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13880 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13882 # icc doesn't choke on unknown options, it will just issue warnings
13883 # or remarks (even with -Werror). So we grep stderr for any message
13884 # that says an option was ignored or not supported.
13885 # When given -MP, icc 7.0 and 7.1 complain thusly:
13886 # icc: Command line warning: ignoring option '-M'; no argument required
13887 # The diagnosis changed in icc 8.0:
13888 # icc: Command line remark: option '-MP' not supported
13889 if (grep 'ignoring option' conftest.err ||
13890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13891 am_cv_CC_dependencies_compiler_type=$depmode
13892 break
13895 done
13897 cd ..
13898 rm -rf conftest.dir
13899 else
13900 am_cv_CC_dependencies_compiler_type=none
13904 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13905 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13909 test "x$enable_dependency_tracking" != xno \
13910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13911 am__fastdepCC_TRUE=
13912 am__fastdepCC_FALSE='#'
13913 else
13914 am__fastdepCC_TRUE='#'
13915 am__fastdepCC_FALSE=
13919 ac_ext=cpp
13920 ac_cpp='$CXXCPP $CPPFLAGS'
13921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13924 if test -z "$CXX"; then
13925 if test -n "$CCC"; then
13926 CXX=$CCC
13927 else
13928 if test -n "$ac_tool_prefix"; then
13929 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13934 $as_echo_n "checking for $ac_word... " >&6; }
13935 if test "${ac_cv_prog_CXX+set}" = set; then
13936 $as_echo_n "(cached) " >&6
13937 else
13938 if test -n "$CXX"; then
13939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13940 else
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13952 done
13953 done
13954 IFS=$as_save_IFS
13958 CXX=$ac_cv_prog_CXX
13959 if test -n "$CXX"; then
13960 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13961 $as_echo "$CXX" >&6; }
13962 else
13963 { $as_echo "$as_me:$LINENO: result: no" >&5
13964 $as_echo "no" >&6; }
13968 test -n "$CXX" && break
13969 done
13971 if test -z "$CXX"; then
13972 ac_ct_CXX=$CXX
13973 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13975 # Extract the first word of "$ac_prog", so it can be a program name with args.
13976 set dummy $ac_prog; ac_word=$2
13977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13978 $as_echo_n "checking for $ac_word... " >&6; }
13979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13980 $as_echo_n "(cached) " >&6
13981 else
13982 if test -n "$ac_ct_CXX"; then
13983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13984 else
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13992 ac_cv_prog_ac_ct_CXX="$ac_prog"
13993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13996 done
13997 done
13998 IFS=$as_save_IFS
14002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14003 if test -n "$ac_ct_CXX"; then
14004 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14005 $as_echo "$ac_ct_CXX" >&6; }
14006 else
14007 { $as_echo "$as_me:$LINENO: result: no" >&5
14008 $as_echo "no" >&6; }
14012 test -n "$ac_ct_CXX" && break
14013 done
14015 if test "x$ac_ct_CXX" = x; then
14016 CXX="g++"
14017 else
14018 case $cross_compiling:$ac_tool_warned in
14019 yes:)
14020 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14022 ac_tool_warned=yes ;;
14023 esac
14024 CXX=$ac_ct_CXX
14030 # Provide some information about the compiler.
14031 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
14032 set X $ac_compile
14033 ac_compiler=$2
14034 { (ac_try="$ac_compiler --version >&5"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038 esac
14039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14040 $as_echo "$ac_try_echo") >&5
14041 (eval "$ac_compiler --version >&5") 2>&5
14042 ac_status=$?
14043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }
14045 { (ac_try="$ac_compiler -v >&5"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14049 esac
14050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14051 $as_echo "$ac_try_echo") >&5
14052 (eval "$ac_compiler -v >&5") 2>&5
14053 ac_status=$?
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }
14056 { (ac_try="$ac_compiler -V >&5"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14062 $as_echo "$ac_try_echo") >&5
14063 (eval "$ac_compiler -V >&5") 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }
14068 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14069 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14070 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14071 $as_echo_n "(cached) " >&6
14072 else
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14081 main ()
14083 #ifndef __GNUC__
14084 choke me
14085 #endif
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14098 $as_echo "$ac_try_echo") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_cxx_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.$ac_objext; then
14109 ac_compiler_gnu=yes
14110 else
14111 $as_echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_compiler_gnu=no
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14121 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14122 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14123 if test $ac_compiler_gnu = yes; then
14124 GXX=yes
14125 else
14126 GXX=
14128 ac_test_CXXFLAGS=${CXXFLAGS+set}
14129 ac_save_CXXFLAGS=$CXXFLAGS
14130 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14131 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14132 if test "${ac_cv_prog_cxx_g+set}" = set; then
14133 $as_echo_n "(cached) " >&6
14134 else
14135 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14136 ac_cxx_werror_flag=yes
14137 ac_cv_prog_cxx_g=no
14138 CXXFLAGS="-g"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14147 main ()
14151 return 0;
14153 _ACEOF
14154 rm -f conftest.$ac_objext
14155 if { (ac_try="$ac_compile"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14159 esac
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14161 $as_echo "$ac_try_echo") >&5
14162 (eval "$ac_compile") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_cxx_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest.$ac_objext; then
14172 ac_cv_prog_cxx_g=yes
14173 else
14174 $as_echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 CXXFLAGS=""
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14186 main ()
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (ac_try="$ac_compile"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14200 $as_echo "$ac_try_echo") >&5
14201 (eval "$ac_compile") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } && {
14208 test -z "$ac_cxx_werror_flag" ||
14209 test ! -s conftest.err
14210 } && test -s conftest.$ac_objext; then
14212 else
14213 $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14217 CXXFLAGS="-g"
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14226 main ()
14230 return 0;
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238 esac
14239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14240 $as_echo "$ac_try_echo") >&5
14241 (eval "$ac_compile") 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } && {
14248 test -z "$ac_cxx_werror_flag" ||
14249 test ! -s conftest.err
14250 } && test -s conftest.$ac_objext; then
14251 ac_cv_prog_cxx_g=yes
14252 else
14253 $as_echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14268 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14269 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14270 if test "$ac_test_CXXFLAGS" = set; then
14271 CXXFLAGS=$ac_save_CXXFLAGS
14272 elif test $ac_cv_prog_cxx_g = yes; then
14273 if test "$GXX" = yes; then
14274 CXXFLAGS="-g -O2"
14275 else
14276 CXXFLAGS="-g"
14278 else
14279 if test "$GXX" = yes; then
14280 CXXFLAGS="-O2"
14281 else
14282 CXXFLAGS=
14285 ac_ext=c
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14291 depcc="$CXX" am_compiler_list=
14293 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
14294 $as_echo_n "checking dependency style of $depcc... " >&6; }
14295 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
14296 $as_echo_n "(cached) " >&6
14297 else
14298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14299 # We make a subdir and do the tests there. Otherwise we can end up
14300 # making bogus files that we don't know about and never remove. For
14301 # instance it was reported that on HP-UX the gcc test will end up
14302 # making a dummy file named `D' -- because `-MD' means `put the output
14303 # in D'.
14304 mkdir conftest.dir
14305 # Copy depcomp to subdir because otherwise we won't find it if we're
14306 # using a relative directory.
14307 cp "$am_depcomp" conftest.dir
14308 cd conftest.dir
14309 # We will build objects and dependencies in a subdirectory because
14310 # it helps to detect inapplicable dependency modes. For instance
14311 # both Tru64's cc and ICC support -MD to output dependencies as a
14312 # side effect of compilation, but ICC will put the dependencies in
14313 # the current directory while Tru64 will put them in the object
14314 # directory.
14315 mkdir sub
14317 am_cv_CXX_dependencies_compiler_type=none
14318 if test "$am_compiler_list" = ""; then
14319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14321 for depmode in $am_compiler_list; do
14322 # Setup a source with many dependencies, because some compilers
14323 # like to wrap large dependency lists on column 80 (with \), and
14324 # we should not choose a depcomp mode which is confused by this.
14326 # We need to recreate these files for each test, as the compiler may
14327 # overwrite some of them when testing with obscure command lines.
14328 # This happens at least with the AIX C compiler.
14329 : > sub/conftest.c
14330 for i in 1 2 3 4 5 6; do
14331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14333 # Solaris 8's {/usr,}/bin/sh.
14334 touch sub/conftst$i.h
14335 done
14336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14338 case $depmode in
14339 nosideeffect)
14340 # after this tag, mechanisms are not by side-effect, so they'll
14341 # only be used when explicitly requested
14342 if test "x$enable_dependency_tracking" = xyes; then
14343 continue
14344 else
14345 break
14348 none) break ;;
14349 esac
14350 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14351 # mode. It turns out that the SunPro C++ compiler does not properly
14352 # handle `-M -o', and we need to detect this.
14353 if depmode=$depmode \
14354 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
14355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14356 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
14357 >/dev/null 2>conftest.err &&
14358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14360 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
14361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14362 # icc doesn't choke on unknown options, it will just issue warnings
14363 # or remarks (even with -Werror). So we grep stderr for any message
14364 # that says an option was ignored or not supported.
14365 # When given -MP, icc 7.0 and 7.1 complain thusly:
14366 # icc: Command line warning: ignoring option '-M'; no argument required
14367 # The diagnosis changed in icc 8.0:
14368 # icc: Command line remark: option '-MP' not supported
14369 if (grep 'ignoring option' conftest.err ||
14370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14371 am_cv_CXX_dependencies_compiler_type=$depmode
14372 break
14375 done
14377 cd ..
14378 rm -rf conftest.dir
14379 else
14380 am_cv_CXX_dependencies_compiler_type=none
14384 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14385 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14386 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14389 test "x$enable_dependency_tracking" != xno \
14390 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14391 am__fastdepCXX_TRUE=
14392 am__fastdepCXX_FALSE='#'
14393 else
14394 am__fastdepCXX_TRUE='#'
14395 am__fastdepCXX_FALSE=
14400 ac_ext=cpp
14401 ac_cpp='$CXXCPP $CPPFLAGS'
14402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14405 if test -z "$CXX"; then
14406 if test -n "$CCC"; then
14407 CXX=$CCC
14408 else
14409 if test -n "$ac_tool_prefix"; then
14410 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14415 $as_echo_n "checking for $ac_word... " >&6; }
14416 if test "${ac_cv_prog_CXX+set}" = set; then
14417 $as_echo_n "(cached) " >&6
14418 else
14419 if test -n "$CXX"; then
14420 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14421 else
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14429 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 break 2
14433 done
14434 done
14435 IFS=$as_save_IFS
14439 CXX=$ac_cv_prog_CXX
14440 if test -n "$CXX"; then
14441 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
14442 $as_echo "$CXX" >&6; }
14443 else
14444 { $as_echo "$as_me:$LINENO: result: no" >&5
14445 $as_echo "no" >&6; }
14449 test -n "$CXX" && break
14450 done
14452 if test -z "$CXX"; then
14453 ac_ct_CXX=$CXX
14454 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14456 # Extract the first word of "$ac_prog", so it can be a program name with args.
14457 set dummy $ac_prog; ac_word=$2
14458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14462 else
14463 if test -n "$ac_ct_CXX"; then
14464 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14465 else
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_ac_ct_CXX="$ac_prog"
14474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14477 done
14478 done
14479 IFS=$as_save_IFS
14483 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14484 if test -n "$ac_ct_CXX"; then
14485 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14486 $as_echo "$ac_ct_CXX" >&6; }
14487 else
14488 { $as_echo "$as_me:$LINENO: result: no" >&5
14489 $as_echo "no" >&6; }
14493 test -n "$ac_ct_CXX" && break
14494 done
14496 if test "x$ac_ct_CXX" = x; then
14497 CXX="g++"
14498 else
14499 case $cross_compiling:$ac_tool_warned in
14500 yes:)
14501 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14503 ac_tool_warned=yes ;;
14504 esac
14505 CXX=$ac_ct_CXX
14511 # Provide some information about the compiler.
14512 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
14513 set X $ac_compile
14514 ac_compiler=$2
14515 { (ac_try="$ac_compiler --version >&5"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519 esac
14520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14521 $as_echo "$ac_try_echo") >&5
14522 (eval "$ac_compiler --version >&5") 2>&5
14523 ac_status=$?
14524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }
14526 { (ac_try="$ac_compiler -v >&5"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530 esac
14531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14532 $as_echo "$ac_try_echo") >&5
14533 (eval "$ac_compiler -v >&5") 2>&5
14534 ac_status=$?
14535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }
14537 { (ac_try="$ac_compiler -V >&5"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541 esac
14542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14543 $as_echo "$ac_try_echo") >&5
14544 (eval "$ac_compiler -V >&5") 2>&5
14545 ac_status=$?
14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }
14549 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14550 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14551 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14552 $as_echo_n "(cached) " >&6
14553 else
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14562 main ()
14564 #ifndef __GNUC__
14565 choke me
14566 #endif
14569 return 0;
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (ac_try="$ac_compile"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14579 $as_echo "$ac_try_echo") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_cxx_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest.$ac_objext; then
14590 ac_compiler_gnu=yes
14591 else
14592 $as_echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_compiler_gnu=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14602 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14603 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14604 if test $ac_compiler_gnu = yes; then
14605 GXX=yes
14606 else
14607 GXX=
14609 ac_test_CXXFLAGS=${CXXFLAGS+set}
14610 ac_save_CXXFLAGS=$CXXFLAGS
14611 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14612 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14613 if test "${ac_cv_prog_cxx_g+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14615 else
14616 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14617 ac_cxx_werror_flag=yes
14618 ac_cv_prog_cxx_g=no
14619 CXXFLAGS="-g"
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14628 main ()
14632 return 0;
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (ac_try="$ac_compile"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640 esac
14641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14642 $as_echo "$ac_try_echo") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_cxx_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest.$ac_objext; then
14653 ac_cv_prog_cxx_g=yes
14654 else
14655 $as_echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 CXXFLAGS=""
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14667 main ()
14671 return 0;
14673 _ACEOF
14674 rm -f conftest.$ac_objext
14675 if { (ac_try="$ac_compile"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14679 esac
14680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14681 $as_echo "$ac_try_echo") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_cxx_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14693 else
14694 $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14698 CXXFLAGS="-g"
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14707 main ()
14711 return 0;
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719 esac
14720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721 $as_echo "$ac_try_echo") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_cxx_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 ac_cv_prog_cxx_g=yes
14733 else
14734 $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14749 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14750 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14751 if test "$ac_test_CXXFLAGS" = set; then
14752 CXXFLAGS=$ac_save_CXXFLAGS
14753 elif test $ac_cv_prog_cxx_g = yes; then
14754 if test "$GXX" = yes; then
14755 CXXFLAGS="-g -O2"
14756 else
14757 CXXFLAGS="-g"
14759 else
14760 if test "$GXX" = yes; then
14761 CXXFLAGS="-O2"
14762 else
14763 CXXFLAGS=
14766 ac_ext=c
14767 ac_cpp='$CPP $CPPFLAGS'
14768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14772 depcc="$CXX" am_compiler_list=
14774 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
14775 $as_echo_n "checking dependency style of $depcc... " >&6; }
14776 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14780 # We make a subdir and do the tests there. Otherwise we can end up
14781 # making bogus files that we don't know about and never remove. For
14782 # instance it was reported that on HP-UX the gcc test will end up
14783 # making a dummy file named `D' -- because `-MD' means `put the output
14784 # in D'.
14785 mkdir conftest.dir
14786 # Copy depcomp to subdir because otherwise we won't find it if we're
14787 # using a relative directory.
14788 cp "$am_depcomp" conftest.dir
14789 cd conftest.dir
14790 # We will build objects and dependencies in a subdirectory because
14791 # it helps to detect inapplicable dependency modes. For instance
14792 # both Tru64's cc and ICC support -MD to output dependencies as a
14793 # side effect of compilation, but ICC will put the dependencies in
14794 # the current directory while Tru64 will put them in the object
14795 # directory.
14796 mkdir sub
14798 am_cv_CXX_dependencies_compiler_type=none
14799 if test "$am_compiler_list" = ""; then
14800 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14802 for depmode in $am_compiler_list; do
14803 # Setup a source with many dependencies, because some compilers
14804 # like to wrap large dependency lists on column 80 (with \), and
14805 # we should not choose a depcomp mode which is confused by this.
14807 # We need to recreate these files for each test, as the compiler may
14808 # overwrite some of them when testing with obscure command lines.
14809 # This happens at least with the AIX C compiler.
14810 : > sub/conftest.c
14811 for i in 1 2 3 4 5 6; do
14812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14813 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14814 # Solaris 8's {/usr,}/bin/sh.
14815 touch sub/conftst$i.h
14816 done
14817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14819 case $depmode in
14820 nosideeffect)
14821 # after this tag, mechanisms are not by side-effect, so they'll
14822 # only be used when explicitly requested
14823 if test "x$enable_dependency_tracking" = xyes; then
14824 continue
14825 else
14826 break
14829 none) break ;;
14830 esac
14831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14832 # mode. It turns out that the SunPro C++ compiler does not properly
14833 # handle `-M -o', and we need to detect this.
14834 if depmode=$depmode \
14835 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
14836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14837 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
14838 >/dev/null 2>conftest.err &&
14839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14841 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
14842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14843 # icc doesn't choke on unknown options, it will just issue warnings
14844 # or remarks (even with -Werror). So we grep stderr for any message
14845 # that says an option was ignored or not supported.
14846 # When given -MP, icc 7.0 and 7.1 complain thusly:
14847 # icc: Command line warning: ignoring option '-M'; no argument required
14848 # The diagnosis changed in icc 8.0:
14849 # icc: Command line remark: option '-MP' not supported
14850 if (grep 'ignoring option' conftest.err ||
14851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14852 am_cv_CXX_dependencies_compiler_type=$depmode
14853 break
14856 done
14858 cd ..
14859 rm -rf conftest.dir
14860 else
14861 am_cv_CXX_dependencies_compiler_type=none
14865 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14866 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14867 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14870 test "x$enable_dependency_tracking" != xno \
14871 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14872 am__fastdepCXX_TRUE=
14873 am__fastdepCXX_FALSE='#'
14874 else
14875 am__fastdepCXX_TRUE='#'
14876 am__fastdepCXX_FALSE=
14880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14881 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14882 (test "X$CXX" != "Xg++"))) ; then
14883 ac_ext=cpp
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14888 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14889 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14890 if test -z "$CXXCPP"; then
14891 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14892 $as_echo_n "(cached) " >&6
14893 else
14894 # Double quotes because CXXCPP needs to be expanded
14895 for CXXCPP in "$CXX -E" "/lib/cpp"
14897 ac_preproc_ok=false
14898 for ac_cxx_preproc_warn_flag in '' yes
14900 # Use a header file that comes with gcc, so configuring glibc
14901 # with a fresh cross-compiler works.
14902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14903 # <limits.h> exists even on freestanding compilers.
14904 # On the NeXT, cc -E runs the code through the compiler's parser,
14905 # not just through cpp. "Syntax error" is here to catch this case.
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 #ifdef __STDC__
14913 # include <limits.h>
14914 #else
14915 # include <assert.h>
14916 #endif
14917 Syntax error
14918 _ACEOF
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14925 $as_echo "$ac_try_echo") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null && {
14933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14934 test ! -s conftest.err
14935 }; then
14937 else
14938 $as_echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 # Broken: fails on valid input.
14942 continue
14945 rm -f conftest.err conftest.$ac_ext
14947 # OK, works on sane cases. Now check whether nonexistent headers
14948 # can be detected and how.
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 #include <ac_nonexistent.h>
14956 _ACEOF
14957 if { (ac_try="$ac_cpp conftest.$ac_ext"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev/null && {
14971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14972 test ! -s conftest.err
14973 }; then
14974 # Broken: success on invalid input.
14975 continue
14976 else
14977 $as_echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 # Passes both tests.
14981 ac_preproc_ok=:
14982 break
14985 rm -f conftest.err conftest.$ac_ext
14987 done
14988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14989 rm -f conftest.err conftest.$ac_ext
14990 if $ac_preproc_ok; then
14991 break
14994 done
14995 ac_cv_prog_CXXCPP=$CXXCPP
14998 CXXCPP=$ac_cv_prog_CXXCPP
14999 else
15000 ac_cv_prog_CXXCPP=$CXXCPP
15002 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
15003 $as_echo "$CXXCPP" >&6; }
15004 ac_preproc_ok=false
15005 for ac_cxx_preproc_warn_flag in '' yes
15007 # Use a header file that comes with gcc, so configuring glibc
15008 # with a fresh cross-compiler works.
15009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15010 # <limits.h> exists even on freestanding compilers.
15011 # On the NeXT, cc -E runs the code through the compiler's parser,
15012 # not just through cpp. "Syntax error" is here to catch this case.
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #ifdef __STDC__
15020 # include <limits.h>
15021 #else
15022 # include <assert.h>
15023 #endif
15024 Syntax error
15025 _ACEOF
15026 if { (ac_try="$ac_cpp conftest.$ac_ext"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } >/dev/null && {
15040 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15041 test ! -s conftest.err
15042 }; then
15044 else
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 # Broken: fails on valid input.
15049 continue
15052 rm -f conftest.err conftest.$ac_ext
15054 # OK, works on sane cases. Now check whether nonexistent headers
15055 # can be detected and how.
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <ac_nonexistent.h>
15063 _ACEOF
15064 if { (ac_try="$ac_cpp conftest.$ac_ext"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15070 $as_echo "$ac_try_echo") >&5
15071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } >/dev/null && {
15078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15079 test ! -s conftest.err
15080 }; then
15081 # Broken: success on invalid input.
15082 continue
15083 else
15084 $as_echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 # Passes both tests.
15088 ac_preproc_ok=:
15089 break
15092 rm -f conftest.err conftest.$ac_ext
15094 done
15095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15096 rm -f conftest.err conftest.$ac_ext
15097 if $ac_preproc_ok; then
15099 else
15100 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15102 _lt_caught_CXX_error=yes; }
15105 ac_ext=c
15106 ac_cpp='$CPP $CPPFLAGS'
15107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111 else
15112 _lt_caught_CXX_error=yes
15118 ac_ext=cpp
15119 ac_cpp='$CXXCPP $CPPFLAGS'
15120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15124 archive_cmds_need_lc_CXX=no
15125 allow_undefined_flag_CXX=
15126 always_export_symbols_CXX=no
15127 archive_expsym_cmds_CXX=
15128 compiler_needs_object_CXX=no
15129 export_dynamic_flag_spec_CXX=
15130 hardcode_direct_CXX=no
15131 hardcode_direct_absolute_CXX=no
15132 hardcode_libdir_flag_spec_CXX=
15133 hardcode_libdir_flag_spec_ld_CXX=
15134 hardcode_libdir_separator_CXX=
15135 hardcode_minus_L_CXX=no
15136 hardcode_shlibpath_var_CXX=unsupported
15137 hardcode_automatic_CXX=no
15138 inherit_rpath_CXX=no
15139 module_cmds_CXX=
15140 module_expsym_cmds_CXX=
15141 link_all_deplibs_CXX=unknown
15142 old_archive_cmds_CXX=$old_archive_cmds
15143 no_undefined_flag_CXX=
15144 whole_archive_flag_spec_CXX=
15145 enable_shared_with_static_runtimes_CXX=no
15147 # Source file extension for C++ test sources.
15148 ac_ext=cpp
15150 # Object file extension for compiled C++ test sources.
15151 objext=o
15152 objext_CXX=$objext
15154 # No sense in running all these tests if we already determined that
15155 # the CXX compiler isn't working. Some variables (like enable_shared)
15156 # are currently assumed to apply to all compilers on this platform,
15157 # and will be corrupted by setting them based on a non-working compiler.
15158 if test "$_lt_caught_CXX_error" != yes; then
15159 # Code to be used in simple compile tests
15160 lt_simple_compile_test_code="int some_variable = 0;"
15162 # Code to be used in simple link tests
15163 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15172 # If no C compiler was specified, use CC.
15173 LTCC=${LTCC-"$CC"}
15175 # If no C compiler flags were specified, use CFLAGS.
15176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15178 # Allow CC to be a program name with arguments.
15179 compiler=$CC
15182 # save warnings/boilerplate of simple test code
15183 ac_outfile=conftest.$ac_objext
15184 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15186 _lt_compiler_boilerplate=`cat conftest.err`
15187 $RM conftest*
15189 ac_outfile=conftest.$ac_objext
15190 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15192 _lt_linker_boilerplate=`cat conftest.err`
15193 $RM -r conftest*
15196 # Allow CC to be a program name with arguments.
15197 lt_save_CC=$CC
15198 lt_save_LD=$LD
15199 lt_save_GCC=$GCC
15200 GCC=$GXX
15201 lt_save_with_gnu_ld=$with_gnu_ld
15202 lt_save_path_LD=$lt_cv_path_LD
15203 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15204 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15205 else
15206 $as_unset lt_cv_prog_gnu_ld
15208 if test -n "${lt_cv_path_LDCXX+set}"; then
15209 lt_cv_path_LD=$lt_cv_path_LDCXX
15210 else
15211 $as_unset lt_cv_path_LD
15213 test -z "${LDCXX+set}" || LD=$LDCXX
15214 CC=${CXX-"c++"}
15215 compiler=$CC
15216 compiler_CXX=$CC
15217 for cc_temp in $compiler""; do
15218 case $cc_temp in
15219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15221 \-*) ;;
15222 *) break;;
15223 esac
15224 done
15225 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15228 if test -n "$compiler"; then
15229 # We don't want -fno-exception when compiling C++ code, so set the
15230 # no_builtin_flag separately
15231 if test "$GXX" = yes; then
15232 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15233 else
15234 lt_prog_compiler_no_builtin_flag_CXX=
15237 if test "$GXX" = yes; then
15238 # Set up default GNU C++ configuration
15242 # Check whether --with-gnu-ld was given.
15243 if test "${with_gnu_ld+set}" = set; then
15244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15245 else
15246 with_gnu_ld=no
15249 ac_prog=ld
15250 if test "$GCC" = yes; then
15251 # Check if gcc -print-prog-name=ld gives a path.
15252 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15253 $as_echo_n "checking for ld used by $CC... " >&6; }
15254 case $host in
15255 *-*-mingw*)
15256 # gcc leaves a trailing carriage return which upsets mingw
15257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15260 esac
15261 case $ac_prog in
15262 # Accept absolute paths.
15263 [\\/]* | ?:[\\/]*)
15264 re_direlt='/[^/][^/]*/\.\./'
15265 # Canonicalize the pathname of ld
15266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15269 done
15270 test -z "$LD" && LD="$ac_prog"
15273 # If it fails, then pretend we aren't using GCC.
15274 ac_prog=ld
15277 # If it is relative, then search for the first ld in PATH.
15278 with_gnu_ld=unknown
15280 esac
15281 elif test "$with_gnu_ld" = yes; then
15282 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15283 $as_echo_n "checking for GNU ld... " >&6; }
15284 else
15285 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15286 $as_echo_n "checking for non-GNU ld... " >&6; }
15288 if test "${lt_cv_path_LD+set}" = set; then
15289 $as_echo_n "(cached) " >&6
15290 else
15291 if test -z "$LD"; then
15292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15293 for ac_dir in $PATH; do
15294 IFS="$lt_save_ifs"
15295 test -z "$ac_dir" && ac_dir=.
15296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15297 lt_cv_path_LD="$ac_dir/$ac_prog"
15298 # Check to see if the program is GNU ld. I'd rather use --version,
15299 # but apparently some variants of GNU ld only accept -v.
15300 # Break only if it was the GNU/non-GNU ld that we prefer.
15301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15302 *GNU* | *'with BFD'*)
15303 test "$with_gnu_ld" != no && break
15306 test "$with_gnu_ld" != yes && break
15308 esac
15310 done
15311 IFS="$lt_save_ifs"
15312 else
15313 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15317 LD="$lt_cv_path_LD"
15318 if test -n "$LD"; then
15319 { $as_echo "$as_me:$LINENO: result: $LD" >&5
15320 $as_echo "$LD" >&6; }
15321 else
15322 { $as_echo "$as_me:$LINENO: result: no" >&5
15323 $as_echo "no" >&6; }
15325 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15326 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15327 { (exit 1); exit 1; }; }
15328 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15330 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15331 $as_echo_n "(cached) " >&6
15332 else
15333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15334 case `$LD -v 2>&1 </dev/null` in
15335 *GNU* | *'with BFD'*)
15336 lt_cv_prog_gnu_ld=yes
15339 lt_cv_prog_gnu_ld=no
15341 esac
15343 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15345 with_gnu_ld=$lt_cv_prog_gnu_ld
15353 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15354 # archiving commands below assume that GNU ld is being used.
15355 if test "$with_gnu_ld" = yes; then
15356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15362 # If archive_cmds runs LD, not CC, wlarc should be empty
15363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15364 # investigate it a little bit more. (MM)
15365 wlarc='${wl}'
15367 # ancient GNU ld didn't support --whole-archive et. al.
15368 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15369 $GREP 'no-whole-archive' > /dev/null; then
15370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15371 else
15372 whole_archive_flag_spec_CXX=
15374 else
15375 with_gnu_ld=no
15376 wlarc=
15378 # A generic and very simple default shared library creation
15379 # command for GNU C++ for the case where it uses the native
15380 # linker, instead of GNU ld. If possible, this setting should
15381 # overridden to take advantage of the native linker features on
15382 # the platform it is being used on.
15383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15386 # Commands to make compiler produce verbose output that lists
15387 # what "hidden" libraries, object files and flags are used when
15388 # linking a shared library.
15389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15391 else
15392 GXX=no
15393 with_gnu_ld=no
15394 wlarc=
15397 # PORTME: fill in a description of your system's C++ link characteristics
15398 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15399 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15400 ld_shlibs_CXX=yes
15401 case $host_os in
15402 aix3*)
15403 # FIXME: insert proper C++ library support
15404 ld_shlibs_CXX=no
15406 aix[4-9]*)
15407 if test "$host_cpu" = ia64; then
15408 # On IA64, the linker does run time linking by default, so we don't
15409 # have to do anything special.
15410 aix_use_runtimelinking=no
15411 exp_sym_flag='-Bexport'
15412 no_entry_flag=""
15413 else
15414 aix_use_runtimelinking=no
15416 # Test if we are trying to use run time linking or normal
15417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15418 # need to do runtime linking.
15419 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15420 for ld_flag in $LDFLAGS; do
15421 case $ld_flag in
15422 *-brtl*)
15423 aix_use_runtimelinking=yes
15424 break
15426 esac
15427 done
15429 esac
15431 exp_sym_flag='-bexport'
15432 no_entry_flag='-bnoentry'
15435 # When large executables or shared objects are built, AIX ld can
15436 # have problems creating the table of contents. If linking a library
15437 # or program results in "error TOC overflow" add -mminimal-toc to
15438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15441 archive_cmds_CXX=''
15442 hardcode_direct_CXX=yes
15443 hardcode_direct_absolute_CXX=yes
15444 hardcode_libdir_separator_CXX=':'
15445 link_all_deplibs_CXX=yes
15446 file_list_spec_CXX='${wl}-f,'
15448 if test "$GXX" = yes; then
15449 case $host_os in aix4.[012]|aix4.[012].*)
15450 # We only want to do this on AIX 4.2 and lower, the check
15451 # below for broken collect2 doesn't work under 4.3+
15452 collect2name=`${CC} -print-prog-name=collect2`
15453 if test -f "$collect2name" &&
15454 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15455 then
15456 # We have reworked collect2
15458 else
15459 # We have old collect2
15460 hardcode_direct_CXX=unsupported
15461 # It fails to find uninstalled libraries when the uninstalled
15462 # path is not listed in the libpath. Setting hardcode_minus_L
15463 # to unsupported forces relinking
15464 hardcode_minus_L_CXX=yes
15465 hardcode_libdir_flag_spec_CXX='-L$libdir'
15466 hardcode_libdir_separator_CXX=
15468 esac
15469 shared_flag='-shared'
15470 if test "$aix_use_runtimelinking" = yes; then
15471 shared_flag="$shared_flag "'${wl}-G'
15473 else
15474 # not using gcc
15475 if test "$host_cpu" = ia64; then
15476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15477 # chokes on -Wl,-G. The following line is correct:
15478 shared_flag='-G'
15479 else
15480 if test "$aix_use_runtimelinking" = yes; then
15481 shared_flag='${wl}-G'
15482 else
15483 shared_flag='${wl}-bM:SRE'
15488 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15489 # It seems that -bexpall does not export symbols beginning with
15490 # underscore (_), so it is better to generate a list of symbols to
15491 # export.
15492 always_export_symbols_CXX=yes
15493 if test "$aix_use_runtimelinking" = yes; then
15494 # Warning - without using the other runtime loading flags (-brtl),
15495 # -berok will link without error, but may produce a broken library.
15496 allow_undefined_flag_CXX='-berok'
15497 # Determine the default libpath from the value encoded in an empty
15498 # executable.
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15507 main ()
15511 return 0;
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15519 esac
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522 (eval "$ac_link") 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && {
15529 test -z "$ac_cxx_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest$ac_exeext && {
15532 test "$cross_compiling" = yes ||
15533 $as_test_x conftest$ac_exeext
15534 }; then
15536 lt_aix_libpath_sed='
15537 /Import File Strings/,/^$/ {
15538 /^0/ {
15539 s/^0 *\(.*\)$/\1/
15543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15544 # Check for a 64-bit object if we didn't find anything.
15545 if test -z "$aix_libpath"; then
15546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15548 else
15549 $as_echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15555 rm -rf conftest.dSYM
15556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15557 conftest$ac_exeext conftest.$ac_ext
15558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15562 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15563 else
15564 if test "$host_cpu" = ia64; then
15565 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15566 allow_undefined_flag_CXX="-z nodefs"
15567 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15568 else
15569 # Determine the default libpath from the value encoded in an
15570 # empty executable.
15571 cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h. */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15579 main ()
15583 return 0;
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (ac_try="$ac_link"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591 esac
15592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
15594 (eval "$ac_link") 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_cxx_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest$ac_exeext && {
15604 test "$cross_compiling" = yes ||
15605 $as_test_x conftest$ac_exeext
15606 }; then
15608 lt_aix_libpath_sed='
15609 /Import File Strings/,/^$/ {
15610 /^0/ {
15611 s/^0 *\(.*\)$/\1/
15615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15616 # Check for a 64-bit object if we didn't find anything.
15617 if test -z "$aix_libpath"; then
15618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15620 else
15621 $as_echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15627 rm -rf conftest.dSYM
15628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15629 conftest$ac_exeext conftest.$ac_ext
15630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15632 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15633 # Warning - without using the other run time loading flags,
15634 # -berok will link without error, but may produce a broken library.
15635 no_undefined_flag_CXX=' ${wl}-bernotok'
15636 allow_undefined_flag_CXX=' ${wl}-berok'
15637 # Exported symbols can be pulled into shared objects from archives
15638 whole_archive_flag_spec_CXX='$convenience'
15639 archive_cmds_need_lc_CXX=yes
15640 # This is similar to how AIX traditionally builds its shared
15641 # libraries.
15642 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15647 beos*)
15648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15649 allow_undefined_flag_CXX=unsupported
15650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651 # support --undefined. This deserves some investigation. FIXME
15652 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 else
15654 ld_shlibs_CXX=no
15658 chorus*)
15659 case $cc_basename in
15661 # FIXME: insert proper C++ library support
15662 ld_shlibs_CXX=no
15664 esac
15667 cygwin* | mingw* | pw32* | cegcc*)
15668 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15669 # as there is no search path for DLLs.
15670 hardcode_libdir_flag_spec_CXX='-L$libdir'
15671 allow_undefined_flag_CXX=unsupported
15672 always_export_symbols_CXX=no
15673 enable_shared_with_static_runtimes_CXX=yes
15675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15676 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15677 # If the export-symbols file already is a .def file (1st line
15678 # is EXPORTS), use it as is; otherwise, prepend...
15679 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15680 cp $export_symbols $output_objdir/$soname.def;
15681 else
15682 echo EXPORTS > $output_objdir/$soname.def;
15683 cat $export_symbols >> $output_objdir/$soname.def;
15685 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15686 else
15687 ld_shlibs_CXX=no
15690 darwin* | rhapsody*)
15693 archive_cmds_need_lc_CXX=no
15694 hardcode_direct_CXX=no
15695 hardcode_automatic_CXX=yes
15696 hardcode_shlibpath_var_CXX=unsupported
15697 whole_archive_flag_spec_CXX=''
15698 link_all_deplibs_CXX=yes
15699 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15700 case $cc_basename in
15701 ifort*) _lt_dar_can_shared=yes ;;
15702 *) _lt_dar_can_shared=$GCC ;;
15703 esac
15704 if test "$_lt_dar_can_shared" = "yes"; then
15705 output_verbose_link_cmd=echo
15706 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15707 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15708 archive_expsym_cmds_CXX="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}"
15709 module_expsym_cmds_CXX="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}"
15710 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15711 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15712 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15715 else
15716 ld_shlibs_CXX=no
15721 dgux*)
15722 case $cc_basename in
15723 ec++*)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15727 ghcx*)
15728 # Green Hills C++ Compiler
15729 # FIXME: insert proper C++ library support
15730 ld_shlibs_CXX=no
15733 # FIXME: insert proper C++ library support
15734 ld_shlibs_CXX=no
15736 esac
15739 freebsd[12]*)
15740 # C++ shared libraries reported to be fairly broken before
15741 # switch to ELF
15742 ld_shlibs_CXX=no
15745 freebsd-elf*)
15746 archive_cmds_need_lc_CXX=no
15749 freebsd* | dragonfly*)
15750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15751 # conventions
15752 ld_shlibs_CXX=yes
15755 gnu*)
15758 hpux9*)
15759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15760 hardcode_libdir_separator_CXX=:
15761 export_dynamic_flag_spec_CXX='${wl}-E'
15762 hardcode_direct_CXX=yes
15763 hardcode_minus_L_CXX=yes # Not in the search PATH,
15764 # but as the default
15765 # location of the library.
15767 case $cc_basename in
15768 CC*)
15769 # FIXME: insert proper C++ library support
15770 ld_shlibs_CXX=no
15772 aCC*)
15773 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15774 # Commands to make compiler produce verbose output that lists
15775 # what "hidden" libraries, object files and flags are used when
15776 # linking a shared library.
15778 # There doesn't appear to be a way to prevent this compiler from
15779 # explicitly linking system object files so we need to strip them
15780 # from the output so that they don't get included in the library
15781 # dependencies.
15782 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15785 if test "$GXX" = yes; then
15786 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15787 else
15788 # FIXME: insert proper C++ library support
15789 ld_shlibs_CXX=no
15792 esac
15795 hpux10*|hpux11*)
15796 if test $with_gnu_ld = no; then
15797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15798 hardcode_libdir_separator_CXX=:
15800 case $host_cpu in
15801 hppa*64*|ia64*)
15804 export_dynamic_flag_spec_CXX='${wl}-E'
15806 esac
15808 case $host_cpu in
15809 hppa*64*|ia64*)
15810 hardcode_direct_CXX=no
15811 hardcode_shlibpath_var_CXX=no
15814 hardcode_direct_CXX=yes
15815 hardcode_direct_absolute_CXX=yes
15816 hardcode_minus_L_CXX=yes # Not in the search PATH,
15817 # but as the default
15818 # location of the library.
15820 esac
15822 case $cc_basename in
15823 CC*)
15824 # FIXME: insert proper C++ library support
15825 ld_shlibs_CXX=no
15827 aCC*)
15828 case $host_cpu in
15829 hppa*64*)
15830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15832 ia64*)
15833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15836 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15838 esac
15839 # Commands to make compiler produce verbose output that lists
15840 # what "hidden" libraries, object files and flags are used when
15841 # linking a shared library.
15843 # There doesn't appear to be a way to prevent this compiler from
15844 # explicitly linking system object files so we need to strip them
15845 # from the output so that they don't get included in the library
15846 # dependencies.
15847 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15850 if test "$GXX" = yes; then
15851 if test $with_gnu_ld = no; then
15852 case $host_cpu in
15853 hppa*64*)
15854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15856 ia64*)
15857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15860 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15862 esac
15864 else
15865 # FIXME: insert proper C++ library support
15866 ld_shlibs_CXX=no
15869 esac
15872 interix[3-9]*)
15873 hardcode_direct_CXX=no
15874 hardcode_shlibpath_var_CXX=no
15875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15876 export_dynamic_flag_spec_CXX='${wl}-E'
15877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15878 # Instead, shared libraries are loaded at an image base (0x10000000 by
15879 # default) and relocated if they conflict, which is a slow very memory
15880 # consuming and fragmenting process. To avoid this, we pick a random,
15881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15883 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15884 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15886 irix5* | irix6*)
15887 case $cc_basename in
15888 CC*)
15889 # SGI C++
15890 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15892 # Archives containing C++ object files must be created using
15893 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15894 # necessary to make sure instantiated templates are included
15895 # in the archive.
15896 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15899 if test "$GXX" = yes; then
15900 if test "$with_gnu_ld" = no; then
15901 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15902 else
15903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15906 link_all_deplibs_CXX=yes
15908 esac
15909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15910 hardcode_libdir_separator_CXX=:
15911 inherit_rpath_CXX=yes
15914 linux* | k*bsd*-gnu)
15915 case $cc_basename in
15916 KCC*)
15917 # Kuck and Associates, Inc. (KAI) C++ Compiler
15919 # KCC will only create a shared library if the output file
15920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15921 # to its proper name (with version) after linking.
15922 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15923 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15924 # Commands to make compiler produce verbose output that lists
15925 # what "hidden" libraries, object files and flags are used when
15926 # linking a shared library.
15928 # There doesn't appear to be a way to prevent this compiler from
15929 # explicitly linking system object files so we need to strip them
15930 # from the output so that they don't get included in the library
15931 # dependencies.
15932 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15937 # Archives containing C++ object files must be created using
15938 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15939 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15941 icpc* | ecpc* )
15942 # Intel C++
15943 with_gnu_ld=yes
15944 # version 8.0 and above of icpc choke on multiply defined symbols
15945 # if we add $predep_objects and $postdep_objects, however 7.1 and
15946 # earlier do not add the objects themselves.
15947 case `$CC -V 2>&1` in
15948 *"Version 7."*)
15949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15950 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952 *) # Version 8.0 or newer
15953 tmp_idyn=
15954 case $host_cpu in
15955 ia64*) tmp_idyn=' -i_dynamic';;
15956 esac
15957 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15960 esac
15961 archive_cmds_need_lc_CXX=no
15962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15964 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15966 pgCC* | pgcpp*)
15967 # Portland Group C++ compiler
15968 case `$CC -V` in
15969 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15970 prelink_cmds_CXX='tpldir=Template.dir~
15971 rm -rf $tpldir~
15972 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15973 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15974 old_archive_cmds_CXX='tpldir=Template.dir~
15975 rm -rf $tpldir~
15976 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15977 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15978 $RANLIB $oldlib'
15979 archive_cmds_CXX='tpldir=Template.dir~
15980 rm -rf $tpldir~
15981 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15982 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15983 archive_expsym_cmds_CXX='tpldir=Template.dir~
15984 rm -rf $tpldir~
15985 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15986 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15988 *) # Version 6 will use weak symbols
15989 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15990 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15992 esac
15994 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15996 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15998 cxx*)
15999 # Compaq C++
16000 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16003 runpath_var=LD_RUN_PATH
16004 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16005 hardcode_libdir_separator_CXX=:
16007 # Commands to make compiler produce verbose output that lists
16008 # what "hidden" libraries, object files and flags are used when
16009 # linking a shared library.
16011 # There doesn't appear to be a way to prevent this compiler from
16012 # explicitly linking system object files so we need to strip them
16013 # from the output so that they don't get included in the library
16014 # dependencies.
16015 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16017 xl*)
16018 # IBM XL 8.0 on PPC, with GNU ld
16019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16021 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022 if test "x$supports_anon_versioning" = xyes; then
16023 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16025 echo "local: *; };" >> $output_objdir/$libname.ver~
16026 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16030 case `$CC -V 2>&1 | sed 5q` in
16031 *Sun\ C*)
16032 # Sun C++ 5.9
16033 no_undefined_flag_CXX=' -zdefs'
16034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16035 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16036 hardcode_libdir_flag_spec_CXX='-R$libdir'
16037 whole_archive_flag_spec_CXX='${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'
16038 compiler_needs_object_CXX=yes
16040 # Not sure whether something based on
16041 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16042 # would be better.
16043 output_verbose_link_cmd='echo'
16045 # Archives containing C++ object files must be created using
16046 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16047 # necessary to make sure instantiated templates are included
16048 # in the archive.
16049 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16051 esac
16053 esac
16056 lynxos*)
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16061 m88k*)
16062 # FIXME: insert proper C++ library support
16063 ld_shlibs_CXX=no
16066 mvs*)
16067 case $cc_basename in
16068 cxx*)
16069 # FIXME: insert proper C++ library support
16070 ld_shlibs_CXX=no
16073 # FIXME: insert proper C++ library support
16074 ld_shlibs_CXX=no
16076 esac
16079 netbsd*)
16080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16081 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16082 wlarc=
16083 hardcode_libdir_flag_spec_CXX='-R$libdir'
16084 hardcode_direct_CXX=yes
16085 hardcode_shlibpath_var_CXX=no
16087 # Workaround some broken pre-1.5 toolchains
16088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16091 *nto* | *qnx*)
16092 ld_shlibs_CXX=yes
16095 openbsd2*)
16096 # C++ shared libraries are fairly broken
16097 ld_shlibs_CXX=no
16100 openbsd*)
16101 if test -f /usr/libexec/ld.so; then
16102 hardcode_direct_CXX=yes
16103 hardcode_shlibpath_var_CXX=no
16104 hardcode_direct_absolute_CXX=yes
16105 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16108 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16109 export_dynamic_flag_spec_CXX='${wl}-E'
16110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16112 output_verbose_link_cmd=echo
16113 else
16114 ld_shlibs_CXX=no
16118 osf3* | osf4* | osf5*)
16119 case $cc_basename in
16120 KCC*)
16121 # Kuck and Associates, Inc. (KAI) C++ Compiler
16123 # KCC will only create a shared library if the output file
16124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16125 # to its proper name (with version) after linking.
16126 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129 hardcode_libdir_separator_CXX=:
16131 # Archives containing C++ object files must be created using
16132 # the KAI C++ compiler.
16133 case $host in
16134 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16135 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16136 esac
16138 RCC*)
16139 # Rational C++ 2.4.1
16140 # FIXME: insert proper C++ library support
16141 ld_shlibs_CXX=no
16143 cxx*)
16144 case $host in
16145 osf3*)
16146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16147 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16151 allow_undefined_flag_CXX=' -expect_unresolved \*'
16152 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16153 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16154 echo "-hidden">> $lib.exp~
16155 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16156 $RM $lib.exp'
16157 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16159 esac
16161 hardcode_libdir_separator_CXX=:
16163 # Commands to make compiler produce verbose output that lists
16164 # what "hidden" libraries, object files and flags are used when
16165 # linking a shared library.
16167 # There doesn't appear to be a way to prevent this compiler from
16168 # explicitly linking system object files so we need to strip them
16169 # from the output so that they don't get included in the library
16170 # dependencies.
16171 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16174 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16175 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16176 case $host in
16177 osf3*)
16178 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16181 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16183 esac
16185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16186 hardcode_libdir_separator_CXX=:
16188 # Commands to make compiler produce verbose output that lists
16189 # what "hidden" libraries, object files and flags are used when
16190 # linking a shared library.
16191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16193 else
16194 # FIXME: insert proper C++ library support
16195 ld_shlibs_CXX=no
16198 esac
16201 psos*)
16202 # FIXME: insert proper C++ library support
16203 ld_shlibs_CXX=no
16206 sunos4*)
16207 case $cc_basename in
16208 CC*)
16209 # Sun C++ 4.x
16210 # FIXME: insert proper C++ library support
16211 ld_shlibs_CXX=no
16213 lcc*)
16214 # Lucid
16215 # FIXME: insert proper C++ library support
16216 ld_shlibs_CXX=no
16219 # FIXME: insert proper C++ library support
16220 ld_shlibs_CXX=no
16222 esac
16225 solaris*)
16226 case $cc_basename in
16227 CC*)
16228 # Sun C++ 4.2, 5.x and Centerline C++
16229 archive_cmds_need_lc_CXX=yes
16230 no_undefined_flag_CXX=' -zdefs'
16231 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16232 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16233 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16235 hardcode_libdir_flag_spec_CXX='-R$libdir'
16236 hardcode_shlibpath_var_CXX=no
16237 case $host_os in
16238 solaris2.[0-5] | solaris2.[0-5].*) ;;
16240 # The compiler driver will combine and reorder linker options,
16241 # but understands `-z linker_flag'.
16242 # Supported since Solaris 2.6 (maybe 2.5.1?)
16243 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16245 esac
16246 link_all_deplibs_CXX=yes
16248 output_verbose_link_cmd='echo'
16250 # Archives containing C++ object files must be created using
16251 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16252 # necessary to make sure instantiated templates are included
16253 # in the archive.
16254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16256 gcx*)
16257 # Green Hills C++ Compiler
16258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16260 # The C++ compiler must be used to create the archive.
16261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16264 # GNU C++ compiler with Solaris linker
16265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16267 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16272 # Commands to make compiler produce verbose output that lists
16273 # what "hidden" libraries, object files and flags are used when
16274 # linking a shared library.
16275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16276 else
16277 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16278 # platform.
16279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16283 # Commands to make compiler produce verbose output that lists
16284 # what "hidden" libraries, object files and flags are used when
16285 # linking a shared library.
16286 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16290 case $host_os in
16291 solaris2.[0-5] | solaris2.[0-5].*) ;;
16293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16295 esac
16298 esac
16301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16302 no_undefined_flag_CXX='${wl}-z,text'
16303 archive_cmds_need_lc_CXX=no
16304 hardcode_shlibpath_var_CXX=no
16305 runpath_var='LD_RUN_PATH'
16307 case $cc_basename in
16308 CC*)
16309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 esac
16319 sysv5* | sco3.2v5* | sco5v6*)
16320 # Note: We can NOT use -z defs as we might desire, because we do not
16321 # link with -lc, and that would cause any symbols used from libc to
16322 # always be unresolved, which means just about no library would
16323 # ever link correctly. If we're not using GNU ld we use -z text
16324 # though, which does catch some bad symbols but isn't as heavy-handed
16325 # as -z defs.
16326 no_undefined_flag_CXX='${wl}-z,text'
16327 allow_undefined_flag_CXX='${wl}-z,nodefs'
16328 archive_cmds_need_lc_CXX=no
16329 hardcode_shlibpath_var_CXX=no
16330 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16331 hardcode_libdir_separator_CXX=':'
16332 link_all_deplibs_CXX=yes
16333 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16334 runpath_var='LD_RUN_PATH'
16336 case $cc_basename in
16337 CC*)
16338 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16343 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16345 esac
16348 tandem*)
16349 case $cc_basename in
16350 NCC*)
16351 # NonStop-UX NCC 3.20
16352 # FIXME: insert proper C++ library support
16353 ld_shlibs_CXX=no
16356 # FIXME: insert proper C++ library support
16357 ld_shlibs_CXX=no
16359 esac
16362 vxworks*)
16363 # FIXME: insert proper C++ library support
16364 ld_shlibs_CXX=no
16368 # FIXME: insert proper C++ library support
16369 ld_shlibs_CXX=no
16371 esac
16373 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16374 $as_echo "$ld_shlibs_CXX" >&6; }
16375 test "$ld_shlibs_CXX" = no && can_build_shared=no
16377 GCC_CXX="$GXX"
16378 LD_CXX="$LD"
16380 ## CAVEAT EMPTOR:
16381 ## There is no encapsulation within the following macros, do not change
16382 ## the running order or otherwise move them around unless you know exactly
16383 ## what you are doing...
16384 # Dependencies to place before and after the object being linked:
16385 predep_objects_CXX=
16386 postdep_objects_CXX=
16387 predeps_CXX=
16388 postdeps_CXX=
16389 compiler_lib_search_path_CXX=
16391 cat > conftest.$ac_ext <<_LT_EOF
16392 class Foo
16394 public:
16395 Foo (void) { a = 0; }
16396 private:
16397 int a;
16399 _LT_EOF
16401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402 (eval $ac_compile) 2>&5
16403 ac_status=$?
16404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; then
16406 # Parse the compiler output and extract the necessary
16407 # objects, libraries and library flags.
16409 # Sentinel used to keep track of whether or not we are before
16410 # the conftest object file.
16411 pre_test_object_deps_done=no
16413 for p in `eval "$output_verbose_link_cmd"`; do
16414 case $p in
16416 -L* | -R* | -l*)
16417 # Some compilers place space between "-{L,R}" and the path.
16418 # Remove the space.
16419 if test $p = "-L" ||
16420 test $p = "-R"; then
16421 prev=$p
16422 continue
16423 else
16424 prev=
16427 if test "$pre_test_object_deps_done" = no; then
16428 case $p in
16429 -L* | -R*)
16430 # Internal compiler library paths should come after those
16431 # provided the user. The postdeps already come after the
16432 # user supplied libs so there is no need to process them.
16433 if test -z "$compiler_lib_search_path_CXX"; then
16434 compiler_lib_search_path_CXX="${prev}${p}"
16435 else
16436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16439 # The "-l" case would never come before the object being
16440 # linked, so don't bother handling this case.
16441 esac
16442 else
16443 if test -z "$postdeps_CXX"; then
16444 postdeps_CXX="${prev}${p}"
16445 else
16446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16451 *.$objext)
16452 # This assumes that the test object file only shows up
16453 # once in the compiler output.
16454 if test "$p" = "conftest.$objext"; then
16455 pre_test_object_deps_done=yes
16456 continue
16459 if test "$pre_test_object_deps_done" = no; then
16460 if test -z "$predep_objects_CXX"; then
16461 predep_objects_CXX="$p"
16462 else
16463 predep_objects_CXX="$predep_objects_CXX $p"
16465 else
16466 if test -z "$postdep_objects_CXX"; then
16467 postdep_objects_CXX="$p"
16468 else
16469 postdep_objects_CXX="$postdep_objects_CXX $p"
16474 *) ;; # Ignore the rest.
16476 esac
16477 done
16479 # Clean up.
16480 rm -f a.out a.exe
16481 else
16482 echo "libtool.m4: error: problem compiling CXX test program"
16485 $RM -f confest.$objext
16487 # PORTME: override above test on systems where it is broken
16488 case $host_os in
16489 interix[3-9]*)
16490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16491 # hack all around it, let's just trust "g++" to DTRT.
16492 predep_objects_CXX=
16493 postdep_objects_CXX=
16494 postdeps_CXX=
16497 linux*)
16498 case `$CC -V 2>&1 | sed 5q` in
16499 *Sun\ C*)
16500 # Sun C++ 5.9
16502 # The more standards-conforming stlport4 library is
16503 # incompatible with the Cstd library. Avoid specifying
16504 # it if it's in CXXFLAGS. Ignore libCrun as
16505 # -library=stlport4 depends on it.
16506 case " $CXX $CXXFLAGS " in
16507 *" -library=stlport4 "*)
16508 solaris_use_stlport4=yes
16510 esac
16512 if test "$solaris_use_stlport4" != yes; then
16513 postdeps_CXX='-library=Cstd -library=Crun'
16516 esac
16519 solaris*)
16520 case $cc_basename in
16521 CC*)
16522 # The more standards-conforming stlport4 library is
16523 # incompatible with the Cstd library. Avoid specifying
16524 # it if it's in CXXFLAGS. Ignore libCrun as
16525 # -library=stlport4 depends on it.
16526 case " $CXX $CXXFLAGS " in
16527 *" -library=stlport4 "*)
16528 solaris_use_stlport4=yes
16530 esac
16532 # Adding this requires a known-good setup of shared libraries for
16533 # Sun compiler versions before 5.6, else PIC objects from an old
16534 # archive will be linked into the output, leading to subtle bugs.
16535 if test "$solaris_use_stlport4" != yes; then
16536 postdeps_CXX='-library=Cstd -library=Crun'
16539 esac
16541 esac
16544 case " $postdeps_CXX " in
16545 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16546 esac
16547 compiler_lib_search_dirs_CXX=
16548 if test -n "${compiler_lib_search_path_CXX}"; then
16549 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16582 lt_prog_compiler_wl_CXX=
16583 lt_prog_compiler_pic_CXX=
16584 lt_prog_compiler_static_CXX=
16586 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16589 # C++ specific cases for pic, static, wl, etc.
16590 if test "$GXX" = yes; then
16591 lt_prog_compiler_wl_CXX='-Wl,'
16592 lt_prog_compiler_static_CXX='-static'
16594 case $host_os in
16595 aix*)
16596 # All AIX code is PIC.
16597 if test "$host_cpu" = ia64; then
16598 # AIX 5 now supports IA64 processor
16599 lt_prog_compiler_static_CXX='-Bstatic'
16603 amigaos*)
16604 case $host_cpu in
16605 powerpc)
16606 # see comment about AmigaOS4 .so support
16607 lt_prog_compiler_pic_CXX='-fPIC'
16609 m68k)
16610 # FIXME: we need at least 68020 code to build shared libraries, but
16611 # adding the `-m68020' flag to GCC prevents building anything better,
16612 # like `-m68040'.
16613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16615 esac
16618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16619 # PIC is the default for these OSes.
16621 mingw* | cygwin* | os2* | pw32* | cegcc*)
16622 # This hack is so that the source file can tell whether it is being
16623 # built for inclusion in a dll (and should export symbols for example).
16624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16625 # (--disable-auto-import) libraries
16626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16628 darwin* | rhapsody*)
16629 # PIC is the default on this platform
16630 # Common symbols not allowed in MH_DYLIB files
16631 lt_prog_compiler_pic_CXX='-fno-common'
16633 *djgpp*)
16634 # DJGPP does not support shared libraries at all
16635 lt_prog_compiler_pic_CXX=
16637 interix[3-9]*)
16638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16639 # Instead, we relocate shared libraries at runtime.
16641 sysv4*MP*)
16642 if test -d /usr/nec; then
16643 lt_prog_compiler_pic_CXX=-Kconform_pic
16646 hpux*)
16647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16649 # sets the default TLS model and affects inlining.
16650 case $host_cpu in
16651 hppa*64*)
16654 lt_prog_compiler_pic_CXX='-fPIC'
16656 esac
16658 *qnx* | *nto*)
16659 # QNX uses GNU C++, but need to define -shared option too, otherwise
16660 # it will coredump.
16661 lt_prog_compiler_pic_CXX='-fPIC -shared'
16664 lt_prog_compiler_pic_CXX='-fPIC'
16666 esac
16667 else
16668 case $host_os in
16669 aix[4-9]*)
16670 # All AIX code is PIC.
16671 if test "$host_cpu" = ia64; then
16672 # AIX 5 now supports IA64 processor
16673 lt_prog_compiler_static_CXX='-Bstatic'
16674 else
16675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16678 chorus*)
16679 case $cc_basename in
16680 cxch68*)
16681 # Green Hills C++ Compiler
16682 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16684 esac
16686 dgux*)
16687 case $cc_basename in
16688 ec++*)
16689 lt_prog_compiler_pic_CXX='-KPIC'
16691 ghcx*)
16692 # Green Hills C++ Compiler
16693 lt_prog_compiler_pic_CXX='-pic'
16697 esac
16699 freebsd* | dragonfly*)
16700 # FreeBSD uses GNU C++
16702 hpux9* | hpux10* | hpux11*)
16703 case $cc_basename in
16704 CC*)
16705 lt_prog_compiler_wl_CXX='-Wl,'
16706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16707 if test "$host_cpu" != ia64; then
16708 lt_prog_compiler_pic_CXX='+Z'
16711 aCC*)
16712 lt_prog_compiler_wl_CXX='-Wl,'
16713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16714 case $host_cpu in
16715 hppa*64*|ia64*)
16716 # +Z the default
16719 lt_prog_compiler_pic_CXX='+Z'
16721 esac
16725 esac
16727 interix*)
16728 # This is c89, which is MS Visual C++ (no shared libs)
16729 # Anyone wants to do a port?
16731 irix5* | irix6* | nonstopux*)
16732 case $cc_basename in
16733 CC*)
16734 lt_prog_compiler_wl_CXX='-Wl,'
16735 lt_prog_compiler_static_CXX='-non_shared'
16736 # CC pic flag -KPIC is the default.
16740 esac
16742 linux* | k*bsd*-gnu)
16743 case $cc_basename in
16744 KCC*)
16745 # KAI C++ Compiler
16746 lt_prog_compiler_wl_CXX='--backend -Wl,'
16747 lt_prog_compiler_pic_CXX='-fPIC'
16749 ecpc* )
16750 # old Intel C++ for x86_64 which still supported -KPIC.
16751 lt_prog_compiler_wl_CXX='-Wl,'
16752 lt_prog_compiler_pic_CXX='-KPIC'
16753 lt_prog_compiler_static_CXX='-static'
16755 icpc* )
16756 # Intel C++, used to be incompatible with GCC.
16757 # ICC 10 doesn't accept -KPIC any more.
16758 lt_prog_compiler_wl_CXX='-Wl,'
16759 lt_prog_compiler_pic_CXX='-fPIC'
16760 lt_prog_compiler_static_CXX='-static'
16762 pgCC* | pgcpp*)
16763 # Portland Group C++ compiler
16764 lt_prog_compiler_wl_CXX='-Wl,'
16765 lt_prog_compiler_pic_CXX='-fpic'
16766 lt_prog_compiler_static_CXX='-Bstatic'
16768 cxx*)
16769 # Compaq C++
16770 # Make sure the PIC flag is empty. It appears that all Alpha
16771 # Linux and Compaq Tru64 Unix objects are PIC.
16772 lt_prog_compiler_pic_CXX=
16773 lt_prog_compiler_static_CXX='-non_shared'
16775 xlc* | xlC*)
16776 # IBM XL 8.0 on PPC
16777 lt_prog_compiler_wl_CXX='-Wl,'
16778 lt_prog_compiler_pic_CXX='-qpic'
16779 lt_prog_compiler_static_CXX='-qstaticlink'
16782 case `$CC -V 2>&1 | sed 5q` in
16783 *Sun\ C*)
16784 # Sun C++ 5.9
16785 lt_prog_compiler_pic_CXX='-KPIC'
16786 lt_prog_compiler_static_CXX='-Bstatic'
16787 lt_prog_compiler_wl_CXX='-Qoption ld '
16789 esac
16791 esac
16793 lynxos*)
16795 m88k*)
16797 mvs*)
16798 case $cc_basename in
16799 cxx*)
16800 lt_prog_compiler_pic_CXX='-W c,exportall'
16804 esac
16806 netbsd*)
16808 *qnx* | *nto*)
16809 # QNX uses GNU C++, but need to define -shared option too, otherwise
16810 # it will coredump.
16811 lt_prog_compiler_pic_CXX='-fPIC -shared'
16813 osf3* | osf4* | osf5*)
16814 case $cc_basename in
16815 KCC*)
16816 lt_prog_compiler_wl_CXX='--backend -Wl,'
16818 RCC*)
16819 # Rational C++ 2.4.1
16820 lt_prog_compiler_pic_CXX='-pic'
16822 cxx*)
16823 # Digital/Compaq C++
16824 lt_prog_compiler_wl_CXX='-Wl,'
16825 # Make sure the PIC flag is empty. It appears that all Alpha
16826 # Linux and Compaq Tru64 Unix objects are PIC.
16827 lt_prog_compiler_pic_CXX=
16828 lt_prog_compiler_static_CXX='-non_shared'
16832 esac
16834 psos*)
16836 solaris*)
16837 case $cc_basename in
16838 CC*)
16839 # Sun C++ 4.2, 5.x and Centerline C++
16840 lt_prog_compiler_pic_CXX='-KPIC'
16841 lt_prog_compiler_static_CXX='-Bstatic'
16842 lt_prog_compiler_wl_CXX='-Qoption ld '
16844 gcx*)
16845 # Green Hills C++ Compiler
16846 lt_prog_compiler_pic_CXX='-PIC'
16850 esac
16852 sunos4*)
16853 case $cc_basename in
16854 CC*)
16855 # Sun C++ 4.x
16856 lt_prog_compiler_pic_CXX='-pic'
16857 lt_prog_compiler_static_CXX='-Bstatic'
16859 lcc*)
16860 # Lucid
16861 lt_prog_compiler_pic_CXX='-pic'
16865 esac
16867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16868 case $cc_basename in
16869 CC*)
16870 lt_prog_compiler_wl_CXX='-Wl,'
16871 lt_prog_compiler_pic_CXX='-KPIC'
16872 lt_prog_compiler_static_CXX='-Bstatic'
16874 esac
16876 tandem*)
16877 case $cc_basename in
16878 NCC*)
16879 # NonStop-UX NCC 3.20
16880 lt_prog_compiler_pic_CXX='-KPIC'
16884 esac
16886 vxworks*)
16889 lt_prog_compiler_can_build_shared_CXX=no
16891 esac
16894 case $host_os in
16895 # For platforms which do not support PIC, -DPIC is meaningless:
16896 *djgpp*)
16897 lt_prog_compiler_pic_CXX=
16900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16902 esac
16903 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16909 # Check to make sure the PIC flag actually works.
16911 if test -n "$lt_prog_compiler_pic_CXX"; then
16912 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16914 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16915 $as_echo_n "(cached) " >&6
16916 else
16917 lt_cv_prog_compiler_pic_works_CXX=no
16918 ac_outfile=conftest.$ac_objext
16919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16920 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16921 # Insert the option either (1) after the last *FLAGS variable, or
16922 # (2) before a word containing "conftest.", or (3) at the end.
16923 # Note that $ac_compile itself does not contain backslashes and begins
16924 # with a dollar sign (not a hyphen), so the echo should work correctly.
16925 # The option is referenced via a variable to avoid confusing sed.
16926 lt_compile=`echo "$ac_compile" | $SED \
16927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16929 -e 's:$: $lt_compiler_flag:'`
16930 (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
16931 (eval "$lt_compile" 2>conftest.err)
16932 ac_status=$?
16933 cat conftest.err >&5
16934 echo "$as_me:16934: \$? = $ac_status" >&5
16935 if (exit $ac_status) && test -s "$ac_outfile"; then
16936 # The compiler can only warn and ignore the option if not recognized
16937 # So say no if there are warnings other than the usual output.
16938 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16941 lt_cv_prog_compiler_pic_works_CXX=yes
16944 $RM conftest*
16947 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16951 case $lt_prog_compiler_pic_CXX in
16952 "" | " "*) ;;
16953 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16954 esac
16955 else
16956 lt_prog_compiler_pic_CXX=
16957 lt_prog_compiler_can_build_shared_CXX=no
16965 # Check to make sure the static flag actually works.
16967 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16968 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16970 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16971 $as_echo_n "(cached) " >&6
16972 else
16973 lt_cv_prog_compiler_static_works_CXX=no
16974 save_LDFLAGS="$LDFLAGS"
16975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16978 # The linker can only warn and ignore the option if not recognized
16979 # So say no if there are warnings
16980 if test -s conftest.err; then
16981 # Append any errors to the config.log.
16982 cat conftest.err 1>&5
16983 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985 if diff conftest.exp conftest.er2 >/dev/null; then
16986 lt_cv_prog_compiler_static_works_CXX=yes
16988 else
16989 lt_cv_prog_compiler_static_works_CXX=yes
16992 $RM -r conftest*
16993 LDFLAGS="$save_LDFLAGS"
16996 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16999 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17001 else
17002 lt_prog_compiler_static_CXX=
17008 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17010 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17011 $as_echo_n "(cached) " >&6
17012 else
17013 lt_cv_prog_compiler_c_o_CXX=no
17014 $RM -r conftest 2>/dev/null
17015 mkdir conftest
17016 cd conftest
17017 mkdir out
17018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 lt_compiler_flag="-o out/conftest2.$ac_objext"
17021 # Insert the option either (1) after the last *FLAGS variable, or
17022 # (2) before a word containing "conftest.", or (3) at the end.
17023 # Note that $ac_compile itself does not contain backslashes and begins
17024 # with a dollar sign (not a hyphen), so the echo should work correctly.
17025 lt_compile=`echo "$ac_compile" | $SED \
17026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17028 -e 's:$: $lt_compiler_flag:'`
17029 (eval echo "\"\$as_me:17029: $lt_compile\"" >&5)
17030 (eval "$lt_compile" 2>out/conftest.err)
17031 ac_status=$?
17032 cat out/conftest.err >&5
17033 echo "$as_me:17033: \$? = $ac_status" >&5
17034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17035 then
17036 # The compiler can only warn and ignore the option if not recognized
17037 # So say no if there are warnings
17038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17041 lt_cv_prog_compiler_c_o_CXX=yes
17044 chmod u+w . 2>&5
17045 $RM conftest*
17046 # SGI C++ compiler will create directory out/ii_files/ for
17047 # template instantiation
17048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17049 $RM out/* && rmdir out
17050 cd ..
17051 $RM -r conftest
17052 $RM conftest*
17055 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17060 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17063 $as_echo_n "(cached) " >&6
17064 else
17065 lt_cv_prog_compiler_c_o_CXX=no
17066 $RM -r conftest 2>/dev/null
17067 mkdir conftest
17068 cd conftest
17069 mkdir out
17070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17072 lt_compiler_flag="-o out/conftest2.$ac_objext"
17073 # Insert the option either (1) after the last *FLAGS variable, or
17074 # (2) before a word containing "conftest.", or (3) at the end.
17075 # Note that $ac_compile itself does not contain backslashes and begins
17076 # with a dollar sign (not a hyphen), so the echo should work correctly.
17077 lt_compile=`echo "$ac_compile" | $SED \
17078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17080 -e 's:$: $lt_compiler_flag:'`
17081 (eval echo "\"\$as_me:17081: $lt_compile\"" >&5)
17082 (eval "$lt_compile" 2>out/conftest.err)
17083 ac_status=$?
17084 cat out/conftest.err >&5
17085 echo "$as_me:17085: \$? = $ac_status" >&5
17086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17087 then
17088 # The compiler can only warn and ignore the option if not recognized
17089 # So say no if there are warnings
17090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17093 lt_cv_prog_compiler_c_o_CXX=yes
17096 chmod u+w . 2>&5
17097 $RM conftest*
17098 # SGI C++ compiler will create directory out/ii_files/ for
17099 # template instantiation
17100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17101 $RM out/* && rmdir out
17102 cd ..
17103 $RM -r conftest
17104 $RM conftest*
17107 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17113 hard_links="nottested"
17114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17115 # do not overwrite the value of need_locks provided by the user
17116 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17117 $as_echo_n "checking if we can lock with hard links... " >&6; }
17118 hard_links=yes
17119 $RM conftest*
17120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17121 touch conftest.a
17122 ln conftest.a conftest.b 2>&5 || hard_links=no
17123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17124 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17125 $as_echo "$hard_links" >&6; }
17126 if test "$hard_links" = no; then
17127 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17129 need_locks=warn
17131 else
17132 need_locks=no
17137 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17141 case $host_os in
17142 aix[4-9]*)
17143 # If we're using GNU nm, then we don't want the "-C" option.
17144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17146 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17147 else
17148 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17151 pw32*)
17152 export_symbols_cmds_CXX="$ltdll_cmds"
17154 cygwin* | mingw* | cegcc*)
17155 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17160 esac
17161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17163 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17164 $as_echo "$ld_shlibs_CXX" >&6; }
17165 test "$ld_shlibs_CXX" = no && can_build_shared=no
17167 with_gnu_ld_CXX=$with_gnu_ld
17175 # Do we need to explicitly link libc?
17177 case "x$archive_cmds_need_lc_CXX" in
17178 x|xyes)
17179 # Assume -lc should be added
17180 archive_cmds_need_lc_CXX=yes
17182 if test "$enable_shared" = yes && test "$GCC" = yes; then
17183 case $archive_cmds_CXX in
17184 *'~'*)
17185 # FIXME: we may have to deal with multi-command sequences.
17187 '$CC '*)
17188 # Test whether the compiler implicitly links with -lc since on some
17189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17190 # to ld, don't add -lc before -lgcc.
17191 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17193 $RM conftest*
17194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197 (eval $ac_compile) 2>&5
17198 ac_status=$?
17199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } 2>conftest.err; then
17201 soname=conftest
17202 lib=conftest
17203 libobjs=conftest.$ac_objext
17204 deplibs=
17205 wl=$lt_prog_compiler_wl_CXX
17206 pic_flag=$lt_prog_compiler_pic_CXX
17207 compiler_flags=-v
17208 linker_flags=-v
17209 verstring=
17210 output_objdir=.
17211 libname=conftest
17212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17213 allow_undefined_flag_CXX=
17214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17215 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17216 ac_status=$?
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }
17219 then
17220 archive_cmds_need_lc_CXX=no
17221 else
17222 archive_cmds_need_lc_CXX=yes
17224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17225 else
17226 cat conftest.err 1>&5
17228 $RM conftest*
17229 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17230 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17232 esac
17235 esac
17300 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17303 library_names_spec=
17304 libname_spec='lib$name'
17305 soname_spec=
17306 shrext_cmds=".so"
17307 postinstall_cmds=
17308 postuninstall_cmds=
17309 finish_cmds=
17310 finish_eval=
17311 shlibpath_var=
17312 shlibpath_overrides_runpath=unknown
17313 version_type=none
17314 dynamic_linker="$host_os ld.so"
17315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17316 need_lib_prefix=unknown
17317 hardcode_into_libs=no
17319 # when you set need_version to no, make sure it does not cause -set_version
17320 # flags to be left without arguments
17321 need_version=unknown
17323 case $host_os in
17324 aix3*)
17325 version_type=linux
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17327 shlibpath_var=LIBPATH
17329 # AIX 3 has no versioning support, so we append a major version to the name.
17330 soname_spec='${libname}${release}${shared_ext}$major'
17333 aix[4-9]*)
17334 version_type=linux
17335 need_lib_prefix=no
17336 need_version=no
17337 hardcode_into_libs=yes
17338 if test "$host_cpu" = ia64; then
17339 # AIX 5 supports IA64
17340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 else
17343 # With GCC up to 2.95.x, collect2 would create an import file
17344 # for dependence libraries. The import file would start with
17345 # the line `#! .'. This would cause the generated library to
17346 # depend on `.', always an invalid library. This was fixed in
17347 # development snapshots of GCC prior to 3.0.
17348 case $host_os in
17349 aix4 | aix4.[01] | aix4.[01].*)
17350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17351 echo ' yes '
17352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17354 else
17355 can_build_shared=no
17358 esac
17359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17360 # soname into executable. Probably we can add versioning support to
17361 # collect2, so additional links can be useful in future.
17362 if test "$aix_use_runtimelinking" = yes; then
17363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17364 # instead of lib<name>.a to let people know that these are not
17365 # typical AIX shared libraries.
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 else
17368 # We preserve .a as extension for shared libraries through AIX4.2
17369 # and later when we are not doing run time linking.
17370 library_names_spec='${libname}${release}.a $libname.a'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17373 shlibpath_var=LIBPATH
17377 amigaos*)
17378 case $host_cpu in
17379 powerpc)
17380 # Since July 2007 AmigaOS4 officially supports .so libraries.
17381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 m68k)
17385 library_names_spec='$libname.ixlibrary $libname.a'
17386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17387 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'
17389 esac
17392 beos*)
17393 library_names_spec='${libname}${shared_ext}'
17394 dynamic_linker="$host_os ld.so"
17395 shlibpath_var=LIBRARY_PATH
17398 bsdi[45]*)
17399 version_type=linux
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17407 # the default ld.so.conf also contains /usr/contrib/lib and
17408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17409 # libtool to hard-code these into programs
17412 cygwin* | mingw* | pw32* | cegcc*)
17413 version_type=windows
17414 shrext_cmds=".dll"
17415 need_version=no
17416 need_lib_prefix=no
17418 case $GCC,$host_os in
17419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17420 library_names_spec='$libname.dll.a'
17421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17422 postinstall_cmds='base_file=`basename \${file}`~
17423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17424 dldir=$destdir/`dirname \$dlpath`~
17425 test -d \$dldir || mkdir -p \$dldir~
17426 $install_prog $dir/$dlname \$dldir/$dlname~
17427 chmod a+x \$dldir/$dlname~
17428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17432 dlpath=$dir/\$dldll~
17433 $RM \$dlpath'
17434 shlibpath_overrides_runpath=yes
17436 case $host_os in
17437 cygwin*)
17438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17442 mingw* | cegcc*)
17443 # MinGW DLLs use traditional 'lib' prefix
17444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17445 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17447 # It is most probably a Windows format PATH printed by
17448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17449 # path with ; separators, and with drive letters. We can handle the
17450 # drive letters (cygwin fileutils understands them), so leave them,
17451 # especially as we might pass files found there to a mingw objdump,
17452 # which wouldn't understand a cygwinified path. Ahh.
17453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17454 else
17455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17458 pw32*)
17459 # pw32 DLLs use 'pw' prefix rather than 'lib'
17460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17462 esac
17466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17468 esac
17469 dynamic_linker='Win32 ld.exe'
17470 # FIXME: first we should search . and the directory the executable is in
17471 shlibpath_var=PATH
17474 darwin* | rhapsody*)
17475 dynamic_linker="$host_os dyld"
17476 version_type=darwin
17477 need_lib_prefix=no
17478 need_version=no
17479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17480 soname_spec='${libname}${release}${major}$shared_ext'
17481 shlibpath_overrides_runpath=yes
17482 shlibpath_var=DYLD_LIBRARY_PATH
17483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17488 dgux*)
17489 version_type=linux
17490 need_lib_prefix=no
17491 need_version=no
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17497 freebsd1*)
17498 dynamic_linker=no
17501 freebsd* | dragonfly*)
17502 # DragonFly does not have aout. When/if they implement a new
17503 # versioning mechanism, adjust this.
17504 if test -x /usr/bin/objformat; then
17505 objformat=`/usr/bin/objformat`
17506 else
17507 case $host_os in
17508 freebsd[123]*) objformat=aout ;;
17509 *) objformat=elf ;;
17510 esac
17512 version_type=freebsd-$objformat
17513 case $version_type in
17514 freebsd-elf*)
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17516 need_version=no
17517 need_lib_prefix=no
17519 freebsd-*)
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17521 need_version=yes
17523 esac
17524 shlibpath_var=LD_LIBRARY_PATH
17525 case $host_os in
17526 freebsd2*)
17527 shlibpath_overrides_runpath=yes
17529 freebsd3.[01]* | freebsdelf3.[01]*)
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17535 shlibpath_overrides_runpath=no
17536 hardcode_into_libs=yes
17538 *) # from 4.6 on, and DragonFly
17539 shlibpath_overrides_runpath=yes
17540 hardcode_into_libs=yes
17542 esac
17545 gnu*)
17546 version_type=linux
17547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 hardcode_into_libs=yes
17555 hpux9* | hpux10* | hpux11*)
17556 # Give a soname corresponding to the major version so that dld.sl refuses to
17557 # link against other versions.
17558 version_type=sunos
17559 need_lib_prefix=no
17560 need_version=no
17561 case $host_cpu in
17562 ia64*)
17563 shrext_cmds='.so'
17564 hardcode_into_libs=yes
17565 dynamic_linker="$host_os dld.so"
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 if test "X$HPUX_IA64_MODE" = X32; then
17571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17572 else
17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17577 hppa*64*)
17578 shrext_cmds='.sl'
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17589 shrext_cmds='.sl'
17590 dynamic_linker="$host_os dld.sl"
17591 shlibpath_var=SHLIB_PATH
17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17596 esac
17597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17598 postinstall_cmds='chmod 555 $lib'
17601 interix[3-9]*)
17602 version_type=linux
17603 need_lib_prefix=no
17604 need_version=no
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=no
17610 hardcode_into_libs=yes
17613 irix5* | irix6* | nonstopux*)
17614 case $host_os in
17615 nonstopux*) version_type=nonstopux ;;
17617 if test "$lt_cv_prog_gnu_ld" = yes; then
17618 version_type=linux
17619 else
17620 version_type=irix
17621 fi ;;
17622 esac
17623 need_lib_prefix=no
17624 need_version=no
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17627 case $host_os in
17628 irix5* | nonstopux*)
17629 libsuff= shlibsuff=
17632 case $LD in # libtool.m4 will add one of these switches to LD
17633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17634 libsuff= shlibsuff= libmagic=32-bit;;
17635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17636 libsuff=32 shlibsuff=N32 libmagic=N32;;
17637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17639 *) libsuff= shlibsuff= libmagic=never-match;;
17640 esac
17642 esac
17643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17644 shlibpath_overrides_runpath=no
17645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17647 hardcode_into_libs=yes
17650 # No shared lib support for Linux oldld, aout, or coff.
17651 linux*oldld* | linux*aout* | linux*coff*)
17652 dynamic_linker=no
17655 # This must be Linux ELF.
17656 linux* | k*bsd*-gnu)
17657 version_type=linux
17658 need_lib_prefix=no
17659 need_version=no
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17663 shlibpath_var=LD_LIBRARY_PATH
17664 shlibpath_overrides_runpath=no
17665 # Some binutils ld are patched to set DT_RUNPATH
17666 save_LDFLAGS=$LDFLAGS
17667 save_libdir=$libdir
17668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17670 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17678 main ()
17682 return 0;
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (ac_try="$ac_link"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_link") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } && {
17700 test -z "$ac_cxx_werror_flag" ||
17701 test ! -s conftest.err
17702 } && test -s conftest$ac_exeext && {
17703 test "$cross_compiling" = yes ||
17704 $as_test_x conftest$ac_exeext
17705 }; then
17706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17707 shlibpath_overrides_runpath=yes
17710 else
17711 $as_echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17717 rm -rf conftest.dSYM
17718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LDFLAGS=$save_LDFLAGS
17721 libdir=$save_libdir
17723 # This implies no fast_install, which is unacceptable.
17724 # Some rework will be needed to allow for fast_install
17725 # before this can be enabled.
17726 hardcode_into_libs=yes
17728 # Append ld.so.conf contents to the search path
17729 if test -f /etc/ld.so.conf; then
17730 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' ' '`
17731 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17734 # We used to test for /lib/ld.so.1 and disable shared libraries on
17735 # powerpc, because MkLinux only supported shared libraries with the
17736 # GNU dynamic linker. Since this was broken with cross compilers,
17737 # most powerpc-linux boxes support dynamic linking these days and
17738 # people can always --disable-shared, the test was removed, and we
17739 # assume the GNU/Linux dynamic linker is in use.
17740 dynamic_linker='GNU/Linux ld.so'
17743 netbsd*)
17744 version_type=sunos
17745 need_lib_prefix=no
17746 need_version=no
17747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17750 dynamic_linker='NetBSD (a.out) ld.so'
17751 else
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 dynamic_linker='NetBSD ld.elf_so'
17756 shlibpath_var=LD_LIBRARY_PATH
17757 shlibpath_overrides_runpath=yes
17758 hardcode_into_libs=yes
17761 newsos6)
17762 version_type=linux
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath=yes
17768 *nto* | *qnx*)
17769 version_type=qnx
17770 need_lib_prefix=no
17771 need_version=no
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 shlibpath_overrides_runpath=no
17776 hardcode_into_libs=yes
17777 dynamic_linker='ldqnx.so'
17780 openbsd*)
17781 version_type=sunos
17782 sys_lib_dlsearch_path_spec="/usr/lib"
17783 need_lib_prefix=no
17784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17785 case $host_os in
17786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17787 *) need_version=no ;;
17788 esac
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17791 shlibpath_var=LD_LIBRARY_PATH
17792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17793 case $host_os in
17794 openbsd2.[89] | openbsd2.[89].*)
17795 shlibpath_overrides_runpath=no
17798 shlibpath_overrides_runpath=yes
17800 esac
17801 else
17802 shlibpath_overrides_runpath=yes
17806 os2*)
17807 libname_spec='$name'
17808 shrext_cmds=".dll"
17809 need_lib_prefix=no
17810 library_names_spec='$libname${shared_ext} $libname.a'
17811 dynamic_linker='OS/2 ld.exe'
17812 shlibpath_var=LIBPATH
17815 osf3* | osf4* | osf5*)
17816 version_type=osf
17817 need_lib_prefix=no
17818 need_version=no
17819 soname_spec='${libname}${release}${shared_ext}$major'
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17826 rdos*)
17827 dynamic_linker=no
17830 solaris*)
17831 version_type=linux
17832 need_lib_prefix=no
17833 need_version=no
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17835 soname_spec='${libname}${release}${shared_ext}$major'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17839 # ldd complains unless libraries are executable
17840 postinstall_cmds='chmod +x $lib'
17843 sunos4*)
17844 version_type=sunos
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17847 shlibpath_var=LD_LIBRARY_PATH
17848 shlibpath_overrides_runpath=yes
17849 if test "$with_gnu_ld" = yes; then
17850 need_lib_prefix=no
17852 need_version=yes
17855 sysv4 | sysv4.3*)
17856 version_type=linux
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858 soname_spec='${libname}${release}${shared_ext}$major'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 case $host_vendor in
17861 sni)
17862 shlibpath_overrides_runpath=no
17863 need_lib_prefix=no
17864 runpath_var=LD_RUN_PATH
17866 siemens)
17867 need_lib_prefix=no
17869 motorola)
17870 need_lib_prefix=no
17871 need_version=no
17872 shlibpath_overrides_runpath=no
17873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17875 esac
17878 sysv4*MP*)
17879 if test -d /usr/nec ;then
17880 version_type=linux
17881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17882 soname_spec='$libname${shared_ext}.$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17888 version_type=freebsd-elf
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath=yes
17895 hardcode_into_libs=yes
17896 if test "$with_gnu_ld" = yes; then
17897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17898 else
17899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900 case $host_os in
17901 sco3.2v5*)
17902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904 esac
17906 sys_lib_dlsearch_path_spec='/usr/lib'
17909 tpf*)
17910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17911 version_type=linux
17912 need_lib_prefix=no
17913 need_version=no
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 shlibpath_var=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath=no
17917 hardcode_into_libs=yes
17920 uts4*)
17921 version_type=linux
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17928 dynamic_linker=no
17930 esac
17931 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17932 $as_echo "$dynamic_linker" >&6; }
17933 test "$dynamic_linker" = no && can_build_shared=no
17935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17936 if test "$GCC" = yes; then
17937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17941 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17943 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17982 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17983 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17984 hardcode_action_CXX=
17985 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17986 test -n "$runpath_var_CXX" ||
17987 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17989 # We can hardcode non-existent directories.
17990 if test "$hardcode_direct_CXX" != no &&
17991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17992 # have to relink, otherwise we might link with an installed library
17993 # when we should be linking with a yet-to-be-installed one
17994 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17995 test "$hardcode_minus_L_CXX" != no; then
17996 # Linking always hardcodes the temporary library directory.
17997 hardcode_action_CXX=relink
17998 else
17999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18000 hardcode_action_CXX=immediate
18002 else
18003 # We cannot hardcode anything, or else we can only hardcode existing
18004 # directories.
18005 hardcode_action_CXX=unsupported
18007 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18008 $as_echo "$hardcode_action_CXX" >&6; }
18010 if test "$hardcode_action_CXX" = relink ||
18011 test "$inherit_rpath_CXX" = yes; then
18012 # Fast installation is not supported
18013 enable_fast_install=no
18014 elif test "$shlibpath_overrides_runpath" = yes ||
18015 test "$enable_shared" = no; then
18016 # Fast installation is not necessary
18017 enable_fast_install=needless
18026 fi # test -n "$compiler"
18028 CC=$lt_save_CC
18029 LDCXX=$LD
18030 LD=$lt_save_LD
18031 GCC=$lt_save_GCC
18032 with_gnu_ld=$lt_save_with_gnu_ld
18033 lt_cv_path_LDCXX=$lt_cv_path_LD
18034 lt_cv_path_LD=$lt_save_path_LD
18035 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18036 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18037 fi # test "$_lt_caught_CXX_error" != yes
18039 ac_ext=c
18040 ac_cpp='$CPP $CPPFLAGS'
18041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046 ac_ext=c
18047 ac_cpp='$CPP $CPPFLAGS'
18048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
18053 # On Suns, sometimes $CPP names a directory.
18054 if test -n "$CPP" && test -d "$CPP"; then
18055 CPP=
18057 if test -z "$CPP"; then
18058 if test "${ac_cv_prog_CPP+set}" = set; then
18059 $as_echo_n "(cached) " >&6
18060 else
18061 # Double quotes because CPP needs to be expanded
18062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18064 ac_preproc_ok=false
18065 for ac_c_preproc_warn_flag in '' yes
18067 # Use a header file that comes with gcc, so configuring glibc
18068 # with a fresh cross-compiler works.
18069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070 # <limits.h> exists even on freestanding compilers.
18071 # On the NeXT, cc -E runs the code through the compiler's parser,
18072 # not just through cpp. "Syntax error" is here to catch this case.
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 #ifdef __STDC__
18080 # include <limits.h>
18081 #else
18082 # include <assert.h>
18083 #endif
18084 Syntax error
18085 _ACEOF
18086 if { (ac_try="$ac_cpp conftest.$ac_ext"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090 esac
18091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18092 $as_echo "$ac_try_echo") >&5
18093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } >/dev/null && {
18100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 }; then
18104 else
18105 $as_echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 # Broken: fails on valid input.
18109 continue
18112 rm -f conftest.err conftest.$ac_ext
18114 # OK, works on sane cases. Now check whether nonexistent headers
18115 # can be detected and how.
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 #include <ac_nonexistent.h>
18123 _ACEOF
18124 if { (ac_try="$ac_cpp conftest.$ac_ext"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128 esac
18129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18130 $as_echo "$ac_try_echo") >&5
18131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } >/dev/null && {
18138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 }; then
18141 # Broken: success on invalid input.
18142 continue
18143 else
18144 $as_echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 # Passes both tests.
18148 ac_preproc_ok=:
18149 break
18152 rm -f conftest.err conftest.$ac_ext
18154 done
18155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18156 rm -f conftest.err conftest.$ac_ext
18157 if $ac_preproc_ok; then
18158 break
18161 done
18162 ac_cv_prog_CPP=$CPP
18165 CPP=$ac_cv_prog_CPP
18166 else
18167 ac_cv_prog_CPP=$CPP
18169 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
18170 $as_echo "$CPP" >&6; }
18171 ac_preproc_ok=false
18172 for ac_c_preproc_warn_flag in '' yes
18174 # Use a header file that comes with gcc, so configuring glibc
18175 # with a fresh cross-compiler works.
18176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 # <limits.h> exists even on freestanding compilers.
18178 # On the NeXT, cc -E runs the code through the compiler's parser,
18179 # not just through cpp. "Syntax error" is here to catch this case.
18180 cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h. */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 #ifdef __STDC__
18187 # include <limits.h>
18188 #else
18189 # include <assert.h>
18190 #endif
18191 Syntax error
18192 _ACEOF
18193 if { (ac_try="$ac_cpp conftest.$ac_ext"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199 $as_echo "$ac_try_echo") >&5
18200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } >/dev/null && {
18207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 }; then
18211 else
18212 $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 # Broken: fails on valid input.
18216 continue
18219 rm -f conftest.err conftest.$ac_ext
18221 # OK, works on sane cases. Now check whether nonexistent headers
18222 # can be detected and how.
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <ac_nonexistent.h>
18230 _ACEOF
18231 if { (ac_try="$ac_cpp conftest.$ac_ext"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235 esac
18236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18237 $as_echo "$ac_try_echo") >&5
18238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } >/dev/null && {
18245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 }; then
18248 # Broken: success on invalid input.
18249 continue
18250 else
18251 $as_echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 # Passes both tests.
18255 ac_preproc_ok=:
18256 break
18259 rm -f conftest.err conftest.$ac_ext
18261 done
18262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18263 rm -f conftest.err conftest.$ac_ext
18264 if $ac_preproc_ok; then
18266 else
18267 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18269 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18270 See \`config.log' for more details." >&5
18271 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18272 See \`config.log' for more details." >&2;}
18273 { (exit 1); exit 1; }; }; }
18276 ac_ext=c
18277 ac_cpp='$CPP $CPPFLAGS'
18278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18283 # Print version of CC and CXX compiler (if they support --version)
18284 case $SYSTEM_TYPE in
18285 *netware*)
18286 CC_VERSION=`$CC -version | grep -i version`
18289 CC_VERSION=`$CC --version | sed 1q`
18291 esac
18292 if test $? -eq "0"
18293 then
18294 { $as_echo "$as_me:$LINENO: checking \"C Compiler version\"" >&5
18295 $as_echo_n "checking \"C Compiler version\"... " >&6; }
18296 { $as_echo "$as_me:$LINENO: result: \"$CC $CC_VERSION\"" >&5
18297 $as_echo "\"$CC $CC_VERSION\"" >&6; }
18298 else
18299 CC_VERSION=""
18303 case $SYSTEM_TYPE in
18304 *netware*)
18305 CXX_VERSION=`$CXX -version | grep -i version`
18308 CXX_VERSION=`$CXX --version | sed 1q`
18309 if test $? -ne "0" -o -z "$CXX_VERSION"
18310 then
18311 CXX_VERSION=`$CXX -V 2>&1|sed 1q` # trying harder for Sun and SGI
18313 if test $? -ne "0" -o -z "$CXX_VERSION"
18314 then
18315 CXX_VERSION=`$CXX -v 2>&1|sed 1q` # even harder for Alpha
18317 if test $? -ne "0" -o -z "$CXX_VERSION"
18318 then
18319 CXX_VERSION=""
18321 esac
18322 if test "$CXX_VERSION"
18323 then
18324 { $as_echo "$as_me:$LINENO: checking \"C++ compiler version\"" >&5
18325 $as_echo_n "checking \"C++ compiler version\"... " >&6; }
18326 { $as_echo "$as_me:$LINENO: result: \"$CXX $CXX_VERSION\"" >&5
18327 $as_echo "\"$CXX $CXX_VERSION\"" >&6; }
18332 # Fix for sgi gcc / sgiCC which tries to emulate gcc
18333 if test "$CC" = "sgicc"
18334 then
18335 ac_cv_c_compiler_gnu="no"
18337 if test "$CXX" = "sgi++"
18338 then
18339 GXX="no"
18342 if test "$ac_cv_c_compiler_gnu" = "yes"
18343 then
18344 AS="$CC -c"
18346 else
18347 # Extract the first word of "as", so it can be a program name with args.
18348 set dummy as; ac_word=$2
18349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18350 $as_echo_n "checking for $ac_word... " >&6; }
18351 if test "${ac_cv_path_AS+set}" = set; then
18352 $as_echo_n "(cached) " >&6
18353 else
18354 case $AS in
18355 [\\/]* | ?:[\\/]*)
18356 ac_cv_path_AS="$AS" # Let the user override the test with a path.
18359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18360 for as_dir in $PATH
18362 IFS=$as_save_IFS
18363 test -z "$as_dir" && as_dir=.
18364 for ac_exec_ext in '' $ac_executable_extensions; do
18365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18366 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
18367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18368 break 2
18370 done
18371 done
18372 IFS=$as_save_IFS
18374 test -z "$ac_cv_path_AS" && ac_cv_path_AS="as"
18376 esac
18378 AS=$ac_cv_path_AS
18379 if test -n "$AS"; then
18380 { $as_echo "$as_me:$LINENO: result: $AS" >&5
18381 $as_echo "$AS" >&6; }
18382 else
18383 { $as_echo "$as_me:$LINENO: result: no" >&5
18384 $as_echo "no" >&6; }
18390 # Still need ranlib for readline; local static use only so no libtool.
18391 if test -n "$ac_tool_prefix"; then
18392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18395 $as_echo_n "checking for $ac_word... " >&6; }
18396 if test "${ac_cv_prog_RANLIB+set}" = set; then
18397 $as_echo_n "(cached) " >&6
18398 else
18399 if test -n "$RANLIB"; then
18400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18401 else
18402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18403 for as_dir in $PATH
18405 IFS=$as_save_IFS
18406 test -z "$as_dir" && as_dir=.
18407 for ac_exec_ext in '' $ac_executable_extensions; do
18408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18411 break 2
18413 done
18414 done
18415 IFS=$as_save_IFS
18419 RANLIB=$ac_cv_prog_RANLIB
18420 if test -n "$RANLIB"; then
18421 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18422 $as_echo "$RANLIB" >&6; }
18423 else
18424 { $as_echo "$as_me:$LINENO: result: no" >&5
18425 $as_echo "no" >&6; }
18430 if test -z "$ac_cv_prog_RANLIB"; then
18431 ac_ct_RANLIB=$RANLIB
18432 # Extract the first word of "ranlib", so it can be a program name with args.
18433 set dummy ranlib; ac_word=$2
18434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18435 $as_echo_n "checking for $ac_word... " >&6; }
18436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18437 $as_echo_n "(cached) " >&6
18438 else
18439 if test -n "$ac_ct_RANLIB"; then
18440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18441 else
18442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18443 for as_dir in $PATH
18445 IFS=$as_save_IFS
18446 test -z "$as_dir" && as_dir=.
18447 for ac_exec_ext in '' $ac_executable_extensions; do
18448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18449 ac_cv_prog_ac_ct_RANLIB="ranlib"
18450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18451 break 2
18453 done
18454 done
18455 IFS=$as_save_IFS
18459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18460 if test -n "$ac_ct_RANLIB"; then
18461 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18462 $as_echo "$ac_ct_RANLIB" >&6; }
18463 else
18464 { $as_echo "$as_me:$LINENO: result: no" >&5
18465 $as_echo "no" >&6; }
18468 if test "x$ac_ct_RANLIB" = x; then
18469 RANLIB=":"
18470 else
18471 case $cross_compiling:$ac_tool_warned in
18472 yes:)
18473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18475 ac_tool_warned=yes ;;
18476 esac
18477 RANLIB=$ac_ct_RANLIB
18479 else
18480 RANLIB="$ac_cv_prog_RANLIB"
18483 # We use libtool
18484 #AC_LIBTOOL_WIN32_DLL
18487 # Ensure that we have --preserve-dup-deps defines, otherwise we get link
18488 # problems of 'mysql' with CXX=g++
18489 LIBTOOL="$LIBTOOL --preserve-dup-deps"
18492 ##############################################################################
18493 # In automake 1.12, the extension on generated yacc/bison header files changed
18494 ##############################################################################
18496 YACC_HEXT="h"
18497 MAKEFILE_1ST=`head -1 "$srcdir/Makefile.in"`
18498 AMAKE_MAJOR=`expr "$MAKEFILE_1ST" : '.*generated by automake \([0-9]*\).*'`
18499 if test $? -eq "0" ; then
18500 if test "$AMAKE_MAJOR" -gt "1" ; then
18501 YACC_HEXT="hh"
18502 CXXFLAGS="$CXXFLAGS -DYACC_HEXT_HH"
18503 elif test "$AMAKE_MAJOR" -eq "1" ; then
18504 AMAKE_MINOR=`expr "$MAKEFILE_1ST" : '.*generated by automake 1.\([0-9]*\).*'`
18505 if test $? -eq "0" ; then
18506 if test "$AMAKE_MINOR" -ge "12" ; then
18507 YACC_HEXT="hh"
18508 CXXFLAGS="$CXXFLAGS -DYACC_HEXT_HH"
18515 ##############################################################################
18517 # NM= "$NM -X64"
18518 #archive_expsym_cmds= `echo "$archive_expsym_cmds" | sed -e '/"$(CC)"//'`
18519 #archive_expsym_cmds= "$CC -q64 $archive_expsym_cmds"
18520 # CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
18522 #AC_LIBTOOL_DLOPEN AC_LIBTOOL_WIN32_DLL AC_DISABLE_FAST_INSTALL AC_DISABLE_SHARED AC_DISABLE_STATIC
18524 # AC_PROG_INSTALL
18525 # Find a good install program. We prefer a C program (faster),
18526 # so one script is as good as another. But avoid the broken or
18527 # incompatible versions:
18528 # SysV /etc/install, /usr/sbin/install
18529 # SunOS /usr/etc/install
18530 # IRIX /sbin/install
18531 # AIX /bin/install
18532 # AmigaOS /C/install, which installs bootblocks on floppy discs
18533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18536 # OS/2's system install, which has a completely different semantic
18537 # ./install, which can be erroneously created by make from ./install.sh.
18538 # Reject install programs that cannot install multiple files.
18539 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18541 if test -z "$INSTALL"; then
18542 if test "${ac_cv_path_install+set}" = set; then
18543 $as_echo_n "(cached) " >&6
18544 else
18545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546 for as_dir in $PATH
18548 IFS=$as_save_IFS
18549 test -z "$as_dir" && as_dir=.
18550 # Account for people who put trailing slashes in PATH elements.
18551 case $as_dir/ in
18552 ./ | .// | /cC/* | \
18553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18555 /usr/ucb/* ) ;;
18557 # OSF1 and SCO ODT 3.0 have their own names for install.
18558 # Don't use installbsd from OSF since it installs stuff as root
18559 # by default.
18560 for ac_prog in ginstall scoinst install; do
18561 for ac_exec_ext in '' $ac_executable_extensions; do
18562 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18563 if test $ac_prog = install &&
18564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18565 # AIX install. It has an incompatible calling convention.
18567 elif test $ac_prog = install &&
18568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18569 # program-specific install script used by HP pwplus--don't use.
18571 else
18572 rm -rf conftest.one conftest.two conftest.dir
18573 echo one > conftest.one
18574 echo two > conftest.two
18575 mkdir conftest.dir
18576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18577 test -s conftest.one && test -s conftest.two &&
18578 test -s conftest.dir/conftest.one &&
18579 test -s conftest.dir/conftest.two
18580 then
18581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18582 break 3
18586 done
18587 done
18589 esac
18591 done
18592 IFS=$as_save_IFS
18594 rm -rf conftest.one conftest.two conftest.dir
18597 if test "${ac_cv_path_install+set}" = set; then
18598 INSTALL=$ac_cv_path_install
18599 else
18600 # As a last resort, use the slow shell script. Don't cache a
18601 # value for INSTALL within a source directory, because that will
18602 # break other packages using the cache if that directory is
18603 # removed, or if the value is a relative name.
18604 INSTALL=$ac_install_sh
18607 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
18608 $as_echo "$INSTALL" >&6; }
18610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18611 # It thinks the first close brace ends the variable substitution.
18612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
18620 # Not critical since the generated file is distributed
18621 for ac_prog in 'bison -y -p MYSQL'
18623 # Extract the first word of "$ac_prog", so it can be a program name with args.
18624 set dummy $ac_prog; ac_word=$2
18625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18626 $as_echo_n "checking for $ac_word... " >&6; }
18627 if test "${ac_cv_prog_YACC+set}" = set; then
18628 $as_echo_n "(cached) " >&6
18629 else
18630 if test -n "$YACC"; then
18631 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18632 else
18633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18634 for as_dir in $PATH
18636 IFS=$as_save_IFS
18637 test -z "$as_dir" && as_dir=.
18638 for ac_exec_ext in '' $ac_executable_extensions; do
18639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18640 ac_cv_prog_YACC="$ac_prog"
18641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18642 break 2
18644 done
18645 done
18646 IFS=$as_save_IFS
18650 YACC=$ac_cv_prog_YACC
18651 if test -n "$YACC"; then
18652 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
18653 $as_echo "$YACC" >&6; }
18654 else
18655 { $as_echo "$as_me:$LINENO: result: no" >&5
18656 $as_echo "no" >&6; }
18660 test -n "$YACC" && break
18661 done
18663 # Extract the first word of "pdftex", so it can be a program name with args.
18664 set dummy pdftex; ac_word=$2
18665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18666 $as_echo_n "checking for $ac_word... " >&6; }
18667 if test "${ac_cv_prog_PDFMANUAL+set}" = set; then
18668 $as_echo_n "(cached) " >&6
18669 else
18670 if test -n "$PDFMANUAL"; then
18671 ac_cv_prog_PDFMANUAL="$PDFMANUAL" # Let the user override the test.
18672 else
18673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in $PATH
18676 IFS=$as_save_IFS
18677 test -z "$as_dir" && as_dir=.
18678 for ac_exec_ext in '' $ac_executable_extensions; do
18679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18680 ac_cv_prog_PDFMANUAL="manual.pdf"
18681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18682 break 2
18684 done
18685 done
18686 IFS=$as_save_IFS
18690 PDFMANUAL=$ac_cv_prog_PDFMANUAL
18691 if test -n "$PDFMANUAL"; then
18692 { $as_echo "$as_me:$LINENO: result: $PDFMANUAL" >&5
18693 $as_echo "$PDFMANUAL" >&6; }
18694 else
18695 { $as_echo "$as_me:$LINENO: result: no" >&5
18696 $as_echo "no" >&6; }
18700 # Extract the first word of "tex", so it can be a program name with args.
18701 set dummy tex; ac_word=$2
18702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18703 $as_echo_n "checking for $ac_word... " >&6; }
18704 if test "${ac_cv_prog_DVIS+set}" = set; then
18705 $as_echo_n "(cached) " >&6
18706 else
18707 if test -n "$DVIS"; then
18708 ac_cv_prog_DVIS="$DVIS" # Let the user override the test.
18709 else
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18713 IFS=$as_save_IFS
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18717 ac_cv_prog_DVIS="manual.dvi"
18718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719 break 2
18721 done
18722 done
18723 IFS=$as_save_IFS
18727 DVIS=$ac_cv_prog_DVIS
18728 if test -n "$DVIS"; then
18729 { $as_echo "$as_me:$LINENO: result: $DVIS" >&5
18730 $as_echo "$DVIS" >&6; }
18731 else
18732 { $as_echo "$as_me:$LINENO: result: no" >&5
18733 $as_echo "no" >&6; }
18738 # Extract the first word of "uname", so it can be a program name with args.
18739 set dummy uname; ac_word=$2
18740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18741 $as_echo_n "checking for $ac_word... " >&6; }
18742 if test "${ac_cv_path_uname_prog+set}" = set; then
18743 $as_echo_n "(cached) " >&6
18744 else
18745 case $uname_prog in
18746 [\\/]* | ?:[\\/]*)
18747 ac_cv_path_uname_prog="$uname_prog" # Let the user override the test with a path.
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18757 ac_cv_path_uname_prog="$as_dir/$ac_word$ac_exec_ext"
18758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759 break 2
18761 done
18762 done
18763 IFS=$as_save_IFS
18765 test -z "$ac_cv_path_uname_prog" && ac_cv_path_uname_prog="no"
18767 esac
18769 uname_prog=$ac_cv_path_uname_prog
18770 if test -n "$uname_prog"; then
18771 { $as_echo "$as_me:$LINENO: result: $uname_prog" >&5
18772 $as_echo "$uname_prog" >&6; }
18773 else
18774 { $as_echo "$as_me:$LINENO: result: no" >&5
18775 $as_echo "no" >&6; }
18780 # We should go through this and put all the explictly system dependent
18781 # stuff in one place
18782 { $as_echo "$as_me:$LINENO: checking operating system" >&5
18783 $as_echo_n "checking operating system... " >&6; }
18784 if test "${mysql_cv_sys_os+set}" = set; then
18785 $as_echo_n "(cached) " >&6
18786 else
18788 if test "$uname_prog" != "no"; then
18789 mysql_cv_sys_os="`uname`"
18790 else
18791 mysql_cv_sys_os="Not Solaris"
18796 { $as_echo "$as_me:$LINENO: result: $mysql_cv_sys_os" >&5
18797 $as_echo "$mysql_cv_sys_os" >&6; }
18799 # This should be rewritten to use $target_os
18800 case "$target_os" in
18801 sco3.2v5*)
18802 CFLAGS="$CFLAGS -DSCO"
18803 CXXFLAGS="$CXXFLAGS -DSCO"
18804 LD='$(CC) $(CFLAGS)'
18805 case "$CFLAGS" in
18806 *-belf*)
18808 { $as_echo "$as_me:$LINENO: checking -belf" >&5
18809 $as_echo_n "checking -belf... " >&6; }
18810 OLD_CFLAGS="$CFLAGS"
18811 if test "${mysql_cv_option_sco_belf_option+set}" = set; then
18812 $as_echo_n "(cached) " >&6
18813 else
18815 CFLAGS="$OLD_CFLAGS -belf"
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 int main(){exit(0);}
18824 main ()
18826 mysql_cv_option_sco_belf_option=yes
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836 esac
18837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18838 $as_echo "$ac_try_echo") >&5
18839 (eval "$ac_link") 2>conftest.er1
18840 ac_status=$?
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
18844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && {
18846 test -z "$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18848 } && test -s conftest$ac_exeext && {
18849 test "$cross_compiling" = yes ||
18850 $as_test_x conftest$ac_exeext
18851 }; then
18852 mysql_cv_option_sco_belf_option=no
18853 else
18854 $as_echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 mysql_cv_option_sco_belf_option=no
18860 rm -rf conftest.dSYM
18861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18862 conftest$ac_exeext conftest.$ac_ext
18867 CFLAGS="$OLD_CFLAGS"
18869 if test x"$mysql_cv_option_sco_belf_option" = "xyes" ; then
18870 CFLAGS="$CFLAGS -belf"
18871 { $as_echo "$as_me:$LINENO: result: yes" >&5
18872 $as_echo "yes" >&6; }
18874 case "$LDFLAGS" in
18875 *-belf*) ;;
18876 *) { $as_echo "$as_me:$LINENO: WARNING: Adding -belf option to ldflags." >&5
18877 $as_echo "$as_me: WARNING: Adding -belf option to ldflags." >&2;}
18878 LDFLAGS="$LDFLAGS -belf"
18880 esac
18882 else
18883 { $as_echo "$as_me:$LINENO: result: no" >&5
18884 $as_echo "no" >&6; }
18891 { $as_echo "$as_me:$LINENO: checking -belf" >&5
18892 $as_echo_n "checking -belf... " >&6; }
18893 OLD_CFLAGS="$CFLAGS"
18894 if test "${mysql_cv_option_sco_belf_option+set}" = set; then
18895 $as_echo_n "(cached) " >&6
18896 else
18898 CFLAGS="$OLD_CFLAGS -belf"
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 int main(){exit(0);}
18907 main ()
18909 mysql_cv_option_sco_belf_option=yes
18911 return 0;
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18921 $as_echo "$ac_try_echo") >&5
18922 (eval "$ac_link") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest$ac_exeext && {
18932 test "$cross_compiling" = yes ||
18933 $as_test_x conftest$ac_exeext
18934 }; then
18935 mysql_cv_option_sco_belf_option=no
18936 else
18937 $as_echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 mysql_cv_option_sco_belf_option=no
18943 rm -rf conftest.dSYM
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945 conftest$ac_exeext conftest.$ac_ext
18950 CFLAGS="$OLD_CFLAGS"
18952 if test x"$mysql_cv_option_sco_belf_option" = "xyes" ; then
18953 CFLAGS="$CFLAGS -belf"
18954 { $as_echo "$as_me:$LINENO: result: yes" >&5
18955 $as_echo "yes" >&6; }
18957 case "$LDFLAGS" in
18958 *-belf*) ;;
18960 { $as_echo "$as_me:$LINENO: WARNING: Adding -belf option to ldflags." >&5
18961 $as_echo "$as_me: WARNING: Adding -belf option to ldflags." >&2;}
18962 LDFLAGS="$LDFLAGS -belf"
18964 esac
18966 else
18967 { $as_echo "$as_me:$LINENO: result: no" >&5
18968 $as_echo "no" >&6; }
18973 esac
18975 sysv5UnixWare* | sysv5OpenUNIX8*)
18976 if test "$GCC" != "yes"; then
18977 # Use the built-in alloca()
18978 CFLAGS="$CFLAGS -Kalloca"
18980 CXXFLAGS="$CXXFLAGS -DNO_CPLUSPLUS_ALLOCA"
18982 sysv5SCO_SV6.0.0*)
18983 if test "$GCC" != "yes"; then
18984 # Use the built-in alloca()
18985 CFLAGS="$CFLAGS -Kalloca"
18986 CXXFLAGS="$CFLAGS -Kalloca"
18987 # Use no_implicit for templates
18988 CXXFLAGS="$CXXFLAGS -Tno_implicit"
18990 cat >>confdefs.h <<\_ACEOF
18991 #define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
18992 _ACEOF
18996 esac
19005 export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
19007 if test "$GCC" = "yes"
19008 then
19009 # mysqld requires -fno-implicit-templates.
19010 # Disable exceptions as they seams to create problems with gcc and threads.
19011 # mysqld doesn't use run-time-type-checking, so we disable it.
19012 # We should use -Wno-invalid-offsetof flag to disable some warnings from gcc
19013 # regarding offset() usage in C++ which are done in a safe manner in the
19014 # server
19015 CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
19019 _ACEOF
19024 case $CXX_VERSION in
19025 MIPSpro*)
19026 AR=$CXX
19027 ARFLAGS="-ar -o"
19029 *Forte*)
19030 AR=$CXX
19031 ARFLAGS="-xar -o"
19034 # Extract the first word of "ar", so it can be a program name with args.
19035 set dummy ar; ac_word=$2
19036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19037 $as_echo_n "checking for $ac_word... " >&6; }
19038 if test "${ac_cv_prog_AR+set}" = set; then
19039 $as_echo_n "(cached) " >&6
19040 else
19041 if test -n "$AR"; then
19042 ac_cv_prog_AR="$AR" # Let the user override the test.
19043 else
19044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19045 for as_dir in $PATH
19047 IFS=$as_save_IFS
19048 test -z "$as_dir" && as_dir=.
19049 for ac_exec_ext in '' $ac_executable_extensions; do
19050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19051 ac_cv_prog_AR="ar"
19052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19053 break 2
19055 done
19056 done
19057 IFS=$as_save_IFS
19061 AR=$ac_cv_prog_AR
19062 if test -n "$AR"; then
19063 { $as_echo "$as_me:$LINENO: result: $AR" >&5
19064 $as_echo "$AR" >&6; }
19065 else
19066 { $as_echo "$as_me:$LINENO: result: no" >&5
19067 $as_echo "no" >&6; }
19071 if test -z "$AR" || test "$AR" = "false"
19072 then
19073 { { $as_echo "$as_me:$LINENO: error: You need ar to build the library" >&5
19074 $as_echo "$as_me: error: You need ar to build the library" >&2;}
19075 { (exit 1); exit 1; }; }
19077 if test -z "$ARFLAGS"
19078 then
19079 ARFLAGS="cru"
19081 esac
19086 # libmysqlclient versioning when linked with GNU ld.
19087 if $LD --version 2>/dev/null| grep GNU >/dev/null 2>&1; then
19088 LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
19089 ac_config_files="$ac_config_files libmysql/libmysql.ver"
19095 # Avoid bug in fcntl on some versions of linux
19096 { $as_echo "$as_me:$LINENO: checking if we should use 'skip-external-locking' as default for $target_os" >&5
19097 $as_echo_n "checking if we should use 'skip-external-locking' as default for $target_os... " >&6; }
19098 # Any variation of Linux
19099 if expr "$target_os" : "[Ll]inux.*" > /dev/null
19100 then
19101 MYSQLD_DEFAULT_SWITCHES="--skip-external-locking"
19102 TARGET_LINUX="true"
19103 { $as_echo "$as_me:$LINENO: result: yes" >&5
19104 $as_echo "yes" >&6; }
19106 cat >>confdefs.h <<\_ACEOF
19107 #define TARGET_OS_LINUX 1
19108 _ACEOF
19110 else
19111 MYSQLD_DEFAULT_SWITCHES=""
19112 TARGET_LINUX="false"
19113 { $as_echo "$as_me:$LINENO: result: no" >&5
19114 $as_echo "no" >&6; }
19119 # Extract the first word of "ln", so it can be a program name with args.
19120 set dummy ln; ac_word=$2
19121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19122 $as_echo_n "checking for $ac_word... " >&6; }
19123 if test "${ac_cv_path_LN+set}" = set; then
19124 $as_echo_n "(cached) " >&6
19125 else
19126 case $LN in
19127 [\\/]* | ?:[\\/]*)
19128 ac_cv_path_LN="$LN" # Let the user override the test with a path.
19131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19132 for as_dir in $PATH
19134 IFS=$as_save_IFS
19135 test -z "$as_dir" && as_dir=.
19136 for ac_exec_ext in '' $ac_executable_extensions; do
19137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19138 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
19139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19140 break 2
19142 done
19143 done
19144 IFS=$as_save_IFS
19146 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
19148 esac
19150 LN=$ac_cv_path_LN
19151 if test -n "$LN"; then
19152 { $as_echo "$as_me:$LINENO: result: $LN" >&5
19153 $as_echo "$LN" >&6; }
19154 else
19155 { $as_echo "$as_me:$LINENO: result: no" >&5
19156 $as_echo "no" >&6; }
19160 # This must be able to take a -f flag like normal unix ln.
19161 # Extract the first word of "ln", so it can be a program name with args.
19162 set dummy ln; ac_word=$2
19163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19164 $as_echo_n "checking for $ac_word... " >&6; }
19165 if test "${ac_cv_path_LN_CP_F+set}" = set; then
19166 $as_echo_n "(cached) " >&6
19167 else
19168 case $LN_CP_F in
19169 [\\/]* | ?:[\\/]*)
19170 ac_cv_path_LN_CP_F="$LN_CP_F" # Let the user override the test with a path.
19173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174 for as_dir in $PATH
19176 IFS=$as_save_IFS
19177 test -z "$as_dir" && as_dir=.
19178 for ac_exec_ext in '' $ac_executable_extensions; do
19179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19180 ac_cv_path_LN_CP_F="$as_dir/$ac_word$ac_exec_ext"
19181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19182 break 2
19184 done
19185 done
19186 IFS=$as_save_IFS
19188 test -z "$ac_cv_path_LN_CP_F" && ac_cv_path_LN_CP_F="ln"
19190 esac
19192 LN_CP_F=$ac_cv_path_LN_CP_F
19193 if test -n "$LN_CP_F"; then
19194 { $as_echo "$as_me:$LINENO: result: $LN_CP_F" >&5
19195 $as_echo "$LN_CP_F" >&6; }
19196 else
19197 { $as_echo "$as_me:$LINENO: result: no" >&5
19198 $as_echo "no" >&6; }
19202 case $SYSTEM_TYPE in
19203 *netware*) ;;
19205 # If ln -f does not exists use -s (AFS systems)
19206 if test -n "$LN_CP_F"; then
19207 LN_CP_F="$LN_CP_F -s"
19210 esac
19212 # Extract the first word of "mv", so it can be a program name with args.
19213 set dummy mv; ac_word=$2
19214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19215 $as_echo_n "checking for $ac_word... " >&6; }
19216 if test "${ac_cv_path_MV+set}" = set; then
19217 $as_echo_n "(cached) " >&6
19218 else
19219 case $MV in
19220 [\\/]* | ?:[\\/]*)
19221 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225 for as_dir in $PATH
19227 IFS=$as_save_IFS
19228 test -z "$as_dir" && as_dir=.
19229 for ac_exec_ext in '' $ac_executable_extensions; do
19230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19231 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 break 2
19235 done
19236 done
19237 IFS=$as_save_IFS
19239 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
19241 esac
19243 MV=$ac_cv_path_MV
19244 if test -n "$MV"; then
19245 { $as_echo "$as_me:$LINENO: result: $MV" >&5
19246 $as_echo "$MV" >&6; }
19247 else
19248 { $as_echo "$as_me:$LINENO: result: no" >&5
19249 $as_echo "no" >&6; }
19253 # Extract the first word of "rm", so it can be a program name with args.
19254 set dummy rm; ac_word=$2
19255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if test "${ac_cv_path_RM+set}" = set; then
19258 $as_echo_n "(cached) " >&6
19259 else
19260 case $RM in
19261 [\\/]* | ?:[\\/]*)
19262 ac_cv_path_RM="$RM" # Let the user override the test with a path.
19265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19266 for as_dir in $PATH
19268 IFS=$as_save_IFS
19269 test -z "$as_dir" && as_dir=.
19270 for ac_exec_ext in '' $ac_executable_extensions; do
19271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19272 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
19273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19274 break 2
19276 done
19277 done
19278 IFS=$as_save_IFS
19280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
19282 esac
19284 RM=$ac_cv_path_RM
19285 if test -n "$RM"; then
19286 { $as_echo "$as_me:$LINENO: result: $RM" >&5
19287 $as_echo "$RM" >&6; }
19288 else
19289 { $as_echo "$as_me:$LINENO: result: no" >&5
19290 $as_echo "no" >&6; }
19294 # Extract the first word of "cp", so it can be a program name with args.
19295 set dummy cp; ac_word=$2
19296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19297 $as_echo_n "checking for $ac_word... " >&6; }
19298 if test "${ac_cv_path_CP+set}" = set; then
19299 $as_echo_n "(cached) " >&6
19300 else
19301 case $CP in
19302 [\\/]* | ?:[\\/]*)
19303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19307 for as_dir in $PATH
19309 IFS=$as_save_IFS
19310 test -z "$as_dir" && as_dir=.
19311 for ac_exec_ext in '' $ac_executable_extensions; do
19312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
19314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19315 break 2
19317 done
19318 done
19319 IFS=$as_save_IFS
19321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
19323 esac
19325 CP=$ac_cv_path_CP
19326 if test -n "$CP"; then
19327 { $as_echo "$as_me:$LINENO: result: $CP" >&5
19328 $as_echo "$CP" >&6; }
19329 else
19330 { $as_echo "$as_me:$LINENO: result: no" >&5
19331 $as_echo "no" >&6; }
19335 # Extract the first word of "sed", so it can be a program name with args.
19336 set dummy sed; ac_word=$2
19337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19338 $as_echo_n "checking for $ac_word... " >&6; }
19339 if test "${ac_cv_path_SED+set}" = set; then
19340 $as_echo_n "(cached) " >&6
19341 else
19342 case $SED in
19343 [\\/]* | ?:[\\/]*)
19344 ac_cv_path_SED="$SED" # Let the user override the test with a path.
19347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19348 for as_dir in $PATH
19350 IFS=$as_save_IFS
19351 test -z "$as_dir" && as_dir=.
19352 for ac_exec_ext in '' $ac_executable_extensions; do
19353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19354 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
19355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19356 break 2
19358 done
19359 done
19360 IFS=$as_save_IFS
19362 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
19364 esac
19366 SED=$ac_cv_path_SED
19367 if test -n "$SED"; then
19368 { $as_echo "$as_me:$LINENO: result: $SED" >&5
19369 $as_echo "$SED" >&6; }
19370 else
19371 { $as_echo "$as_me:$LINENO: result: no" >&5
19372 $as_echo "no" >&6; }
19376 # Extract the first word of "cmp", so it can be a program name with args.
19377 set dummy cmp; ac_word=$2
19378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19379 $as_echo_n "checking for $ac_word... " >&6; }
19380 if test "${ac_cv_path_CMP+set}" = set; then
19381 $as_echo_n "(cached) " >&6
19382 else
19383 case $CMP in
19384 [\\/]* | ?:[\\/]*)
19385 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19391 IFS=$as_save_IFS
19392 test -z "$as_dir" && as_dir=.
19393 for ac_exec_ext in '' $ac_executable_extensions; do
19394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19395 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
19396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19397 break 2
19399 done
19400 done
19401 IFS=$as_save_IFS
19403 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
19405 esac
19407 CMP=$ac_cv_path_CMP
19408 if test -n "$CMP"; then
19409 { $as_echo "$as_me:$LINENO: result: $CMP" >&5
19410 $as_echo "$CMP" >&6; }
19411 else
19412 { $as_echo "$as_me:$LINENO: result: no" >&5
19413 $as_echo "no" >&6; }
19417 # Extract the first word of "chmod", so it can be a program name with args.
19418 set dummy chmod; ac_word=$2
19419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19420 $as_echo_n "checking for $ac_word... " >&6; }
19421 if test "${ac_cv_path_CHMOD+set}" = set; then
19422 $as_echo_n "(cached) " >&6
19423 else
19424 case $CHMOD in
19425 [\\/]* | ?:[\\/]*)
19426 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19432 IFS=$as_save_IFS
19433 test -z "$as_dir" && as_dir=.
19434 for ac_exec_ext in '' $ac_executable_extensions; do
19435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19436 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
19437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19438 break 2
19440 done
19441 done
19442 IFS=$as_save_IFS
19444 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod"
19446 esac
19448 CHMOD=$ac_cv_path_CHMOD
19449 if test -n "$CHMOD"; then
19450 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
19451 $as_echo "$CHMOD" >&6; }
19452 else
19453 { $as_echo "$as_me:$LINENO: result: no" >&5
19454 $as_echo "no" >&6; }
19458 # Extract the first word of "hostname", so it can be a program name with args.
19459 set dummy hostname; ac_word=$2
19460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19461 $as_echo_n "checking for $ac_word... " >&6; }
19462 if test "${ac_cv_path_HOSTNAME+set}" = set; then
19463 $as_echo_n "(cached) " >&6
19464 else
19465 case $HOSTNAME in
19466 [\\/]* | ?:[\\/]*)
19467 ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19473 IFS=$as_save_IFS
19474 test -z "$as_dir" && as_dir=.
19475 for ac_exec_ext in '' $ac_executable_extensions; do
19476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19477 ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
19478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19479 break 2
19481 done
19482 done
19483 IFS=$as_save_IFS
19485 test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="hostname"
19487 esac
19489 HOSTNAME=$ac_cv_path_HOSTNAME
19490 if test -n "$HOSTNAME"; then
19491 { $as_echo "$as_me:$LINENO: result: $HOSTNAME" >&5
19492 $as_echo "$HOSTNAME" >&6; }
19493 else
19494 { $as_echo "$as_me:$LINENO: result: no" >&5
19495 $as_echo "no" >&6; }
19499 # Extract the first word of "diff", so it can be a program name with args.
19500 set dummy diff; ac_word=$2
19501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19502 $as_echo_n "checking for $ac_word... " >&6; }
19503 if test "${ac_cv_path_DIFF+set}" = set; then
19504 $as_echo_n "(cached) " >&6
19505 else
19506 case $DIFF in
19507 [\\/]* | ?:[\\/]*)
19508 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
19511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19512 for as_dir in $PATH
19514 IFS=$as_save_IFS
19515 test -z "$as_dir" && as_dir=.
19516 for ac_exec_ext in '' $ac_executable_extensions; do
19517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19518 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
19519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19520 break 2
19522 done
19523 done
19524 IFS=$as_save_IFS
19526 test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="diff"
19528 esac
19530 DIFF=$ac_cv_path_DIFF
19531 if test -n "$DIFF"; then
19532 { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
19533 $as_echo "$DIFF" >&6; }
19534 else
19535 { $as_echo "$as_me:$LINENO: result: no" >&5
19536 $as_echo "no" >&6; }
19540 # Check for a GNU tar named 'gtar', or 'gnutar' (MacOS X) and
19541 # fall back to 'tar' otherwise and hope that it's a GNU tar as well
19542 for ac_prog in gnutar gtar tar
19544 # Extract the first word of "$ac_prog", so it can be a program name with args.
19545 set dummy $ac_prog; ac_word=$2
19546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if test "${ac_cv_prog_TAR+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19550 else
19551 if test -n "$TAR"; then
19552 ac_cv_prog_TAR="$TAR" # Let the user override the test.
19553 else
19554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19557 IFS=$as_save_IFS
19558 test -z "$as_dir" && as_dir=.
19559 for ac_exec_ext in '' $ac_executable_extensions; do
19560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19561 ac_cv_prog_TAR="$ac_prog"
19562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19563 break 2
19565 done
19566 done
19567 IFS=$as_save_IFS
19571 TAR=$ac_cv_prog_TAR
19572 if test -n "$TAR"; then
19573 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
19574 $as_echo "$TAR" >&6; }
19575 else
19576 { $as_echo "$as_me:$LINENO: result: no" >&5
19577 $as_echo "no" >&6; }
19581 test -n "$TAR" && break
19582 done
19585 # Extract the first word of "perl", so it can be a program name with args.
19586 set dummy perl; ac_word=$2
19587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19588 $as_echo_n "checking for $ac_word... " >&6; }
19589 if test "${ac_cv_path_PERL+set}" = set; then
19590 $as_echo_n "(cached) " >&6
19591 else
19592 case $PERL in
19593 [\\/]* | ?:[\\/]*)
19594 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598 for as_dir in $PATH
19600 IFS=$as_save_IFS
19601 test -z "$as_dir" && as_dir=.
19602 for ac_exec_ext in '' $ac_executable_extensions; do
19603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19604 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19606 break 2
19608 done
19609 done
19610 IFS=$as_save_IFS
19612 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
19614 esac
19616 PERL=$ac_cv_path_PERL
19617 if test -n "$PERL"; then
19618 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
19619 $as_echo "$PERL" >&6; }
19620 else
19621 { $as_echo "$as_me:$LINENO: result: no" >&5
19622 $as_echo "no" >&6; }
19626 if test "$PERL" != "no" && $PERL -e 'require 5' > /dev/null 2>&1
19627 then
19628 PERL5=$PERL
19629 else
19630 # Extract the first word of "perl5", so it can be a program name with args.
19631 set dummy perl5; ac_word=$2
19632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 $as_echo_n "checking for $ac_word... " >&6; }
19634 if test "${ac_cv_path_PERL5+set}" = set; then
19635 $as_echo_n "(cached) " >&6
19636 else
19637 case $PERL5 in
19638 [\\/]* | ?:[\\/]*)
19639 ac_cv_path_PERL5="$PERL5" # Let the user override the test with a path.
19642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19643 for as_dir in $PATH
19645 IFS=$as_save_IFS
19646 test -z "$as_dir" && as_dir=.
19647 for ac_exec_ext in '' $ac_executable_extensions; do
19648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19649 ac_cv_path_PERL5="$as_dir/$ac_word$ac_exec_ext"
19650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19651 break 2
19653 done
19654 done
19655 IFS=$as_save_IFS
19657 test -z "$ac_cv_path_PERL5" && ac_cv_path_PERL5="no"
19659 esac
19661 PERL5=$ac_cv_path_PERL5
19662 if test -n "$PERL5"; then
19663 { $as_echo "$as_me:$LINENO: result: $PERL5" >&5
19664 $as_echo "$PERL5" >&6; }
19665 else
19666 { $as_echo "$as_me:$LINENO: result: no" >&5
19667 $as_echo "no" >&6; }
19671 if test "$PERL5" != no
19672 then
19673 PERL=$PERL5
19674 ac_cv_path_PERL=$ac_cv_path_PERL5
19682 # Enable the abi_check rule only if gcc is available
19684 if test "$GCC" != "yes" || expr "$CC" : ".*icc.*"
19685 then
19686 ABI_CHECK=""
19687 else
19688 ABI_CHECK="abi_check"
19693 # Look for PS usage. We use double dollar-signs in FIND_PROC because this
19694 # value is written to a makefile, which interprets away one level of
19695 # dollar-signs. So, interpretation stages are m4 and then shell in autoconf,
19696 # then Make, then shell. The autoconf substitution uses single quotes, so
19697 # no unprotected single quotes should appear in the expression.
19698 # Extract the first word of "ps", so it can be a program name with args.
19699 set dummy ps; ac_word=$2
19700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19701 $as_echo_n "checking for $ac_word... " >&6; }
19702 if test "${ac_cv_path_PS+set}" = set; then
19703 $as_echo_n "(cached) " >&6
19704 else
19705 case $PS in
19706 [\\/]* | ?:[\\/]*)
19707 ac_cv_path_PS="$PS" # Let the user override the test with a path.
19710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19711 for as_dir in $PATH
19713 IFS=$as_save_IFS
19714 test -z "$as_dir" && as_dir=.
19715 for ac_exec_ext in '' $ac_executable_extensions; do
19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19717 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
19718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19719 break 2
19721 done
19722 done
19723 IFS=$as_save_IFS
19725 test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps"
19727 esac
19729 PS=$ac_cv_path_PS
19730 if test -n "$PS"; then
19731 { $as_echo "$as_me:$LINENO: result: $PS" >&5
19732 $as_echo "$PS" >&6; }
19733 else
19734 { $as_echo "$as_me:$LINENO: result: no" >&5
19735 $as_echo "no" >&6; }
19739 { $as_echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
19740 $as_echo_n "checking \"how to check if pid exists\"... " >&6; }
19741 PS=$ac_cv_path_PS
19742 # Linux style
19743 if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
19744 then
19745 FIND_PROC="$PS wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
19746 # Solaris
19747 elif $PS -fp $$ 2> /dev/null | grep -- $0 > /dev/null
19748 then
19749 FIND_PROC="$PS -p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
19750 # BSD style
19751 elif $PS -uaxww 2> /dev/null | grep -- $0 > /dev/null
19752 then
19753 FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
19754 # SysV style
19755 elif $PS -ef 2> /dev/null | grep -- $0 > /dev/null
19756 then
19757 FIND_PROC="$PS -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
19758 # Do anybody use this?
19759 elif $PS $$ 2> /dev/null | grep -- $0 > /dev/null
19760 then
19761 FIND_PROC="$PS \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
19762 else
19763 case $SYSTEM_TYPE in
19764 *freebsd*|*dragonfly*)
19765 FIND_PROC="$PS p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
19767 *darwin*)
19768 FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
19770 *cygwin*)
19771 FIND_PROC="$PS -e | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
19773 *netware*)
19774 FIND_PROC=
19777 { { $as_echo "$as_me:$LINENO: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&5
19778 $as_echo "$as_me: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&2;}
19779 { (exit 1); exit 1; }; }
19780 esac
19783 { $as_echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
19784 $as_echo "\"$FIND_PROC\"" >&6; }
19786 # Check if a pid is valid
19787 # Extract the first word of "kill", so it can be a program name with args.
19788 set dummy kill; ac_word=$2
19789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19790 $as_echo_n "checking for $ac_word... " >&6; }
19791 if test "${ac_cv_path_KILL+set}" = set; then
19792 $as_echo_n "(cached) " >&6
19793 else
19794 case $KILL in
19795 [\\/]* | ?:[\\/]*)
19796 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
19799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19800 for as_dir in $PATH
19802 IFS=$as_save_IFS
19803 test -z "$as_dir" && as_dir=.
19804 for ac_exec_ext in '' $ac_executable_extensions; do
19805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19806 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
19807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19808 break 2
19810 done
19811 done
19812 IFS=$as_save_IFS
19814 test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="kill"
19816 esac
19818 KILL=$ac_cv_path_KILL
19819 if test -n "$KILL"; then
19820 { $as_echo "$as_me:$LINENO: result: $KILL" >&5
19821 $as_echo "$KILL" >&6; }
19822 else
19823 { $as_echo "$as_me:$LINENO: result: no" >&5
19824 $as_echo "no" >&6; }
19828 { $as_echo "$as_me:$LINENO: checking \"for kill switches\"" >&5
19829 $as_echo_n "checking \"for kill switches\"... " >&6; }
19830 if $ac_cv_path_KILL -0 $$
19831 then
19832 CHECK_PID="$ac_cv_path_KILL -0 \$\$PID > /dev/null 2> /dev/null"
19833 elif kill -s 0 $$
19834 then
19835 CHECK_PID="$ac_cv_path_KILL -s 0 \$\$PID > /dev/null 2> /dev/null"
19836 else
19837 { $as_echo "$as_me:$LINENO: WARNING: kill -0 to check for pid seems to fail" >&5
19838 $as_echo "$as_me: WARNING: kill -0 to check for pid seems to fail" >&2;}
19839 CHECK_PID="$ac_cv_path_KILL -s SIGCONT \$\$PID > /dev/null 2> /dev/null"
19842 { $as_echo "$as_me:$LINENO: result: \"$CHECK_PID\"" >&5
19843 $as_echo "\"$CHECK_PID\"" >&6; }
19845 # We need an ANSI C compiler
19847 { $as_echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
19848 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
19849 if test "${am_cv_prog_cc_stdc+set}" = set; then
19850 $as_echo_n "(cached) " >&6
19851 else
19852 am_cv_prog_cc_stdc=no
19853 ac_save_CC="$CC"
19854 # Don't try gcc -ansi; that turns off useful extensions and
19855 # breaks some systems' header files.
19856 # AIX -qlanglvl=ansi
19857 # Ultrix and OSF/1 -std1
19858 # HP-UX -Aa -D_HPUX_SOURCE
19859 # SVR4 -Xc -D__EXTENSIONS__
19860 # removed "-Xc -D__EXTENSIONS__" beacause sun c++ does not like it.
19861 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE"
19863 CC="$ac_save_CC $ac_arg"
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #if !defined(__STDC__)
19871 choke me
19872 #endif
19873 /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
19874 #ifdef _SEQUENT_
19875 # include <sys/types.h>
19876 # include <sys/stat.h>
19877 #endif
19880 main ()
19883 int test (int i, double x);
19884 struct s1 {int (*f) (int a);};
19885 struct s2 {int (*f) (double a);};
19887 return 0;
19889 _ACEOF
19890 rm -f conftest.$ac_objext
19891 if { (ac_try="$ac_compile"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19895 esac
19896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19897 $as_echo "$ac_try_echo") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest.$ac_objext; then
19908 am_cv_prog_cc_stdc="$ac_arg"; break
19909 else
19910 $as_echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 done
19918 CC="$ac_save_CC"
19922 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
19923 $as_echo "$am_cv_prog_cc_stdc" >&6; }
19924 case "x$am_cv_prog_cc_stdc" in
19925 x|xno) ;;
19926 *) CC="$CC $am_cv_prog_cc_stdc" ;;
19927 esac
19930 # We need an assembler, too
19931 # By default we simply use the C compiler to build assembly code.
19933 test "${CCAS+set}" = set || CCAS=$CC
19934 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
19938 depcc="$CCAS" am_compiler_list=
19940 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19941 $as_echo_n "checking dependency style of $depcc... " >&6; }
19942 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
19943 $as_echo_n "(cached) " >&6
19944 else
19945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19946 # We make a subdir and do the tests there. Otherwise we can end up
19947 # making bogus files that we don't know about and never remove. For
19948 # instance it was reported that on HP-UX the gcc test will end up
19949 # making a dummy file named `D' -- because `-MD' means `put the output
19950 # in D'.
19951 mkdir conftest.dir
19952 # Copy depcomp to subdir because otherwise we won't find it if we're
19953 # using a relative directory.
19954 cp "$am_depcomp" conftest.dir
19955 cd conftest.dir
19956 # We will build objects and dependencies in a subdirectory because
19957 # it helps to detect inapplicable dependency modes. For instance
19958 # both Tru64's cc and ICC support -MD to output dependencies as a
19959 # side effect of compilation, but ICC will put the dependencies in
19960 # the current directory while Tru64 will put them in the object
19961 # directory.
19962 mkdir sub
19964 am_cv_CCAS_dependencies_compiler_type=none
19965 if test "$am_compiler_list" = ""; then
19966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19968 for depmode in $am_compiler_list; do
19969 # Setup a source with many dependencies, because some compilers
19970 # like to wrap large dependency lists on column 80 (with \), and
19971 # we should not choose a depcomp mode which is confused by this.
19973 # We need to recreate these files for each test, as the compiler may
19974 # overwrite some of them when testing with obscure command lines.
19975 # This happens at least with the AIX C compiler.
19976 : > sub/conftest.c
19977 for i in 1 2 3 4 5 6; do
19978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19980 # Solaris 8's {/usr,}/bin/sh.
19981 touch sub/conftst$i.h
19982 done
19983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19985 case $depmode in
19986 nosideeffect)
19987 # after this tag, mechanisms are not by side-effect, so they'll
19988 # only be used when explicitly requested
19989 if test "x$enable_dependency_tracking" = xyes; then
19990 continue
19991 else
19992 break
19995 none) break ;;
19996 esac
19997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19998 # mode. It turns out that the SunPro C++ compiler does not properly
19999 # handle `-M -o', and we need to detect this.
20000 if depmode=$depmode \
20001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20004 >/dev/null 2>conftest.err &&
20005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20007 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20009 # icc doesn't choke on unknown options, it will just issue warnings
20010 # or remarks (even with -Werror). So we grep stderr for any message
20011 # that says an option was ignored or not supported.
20012 # When given -MP, icc 7.0 and 7.1 complain thusly:
20013 # icc: Command line warning: ignoring option '-M'; no argument required
20014 # The diagnosis changed in icc 8.0:
20015 # icc: Command line remark: option '-MP' not supported
20016 if (grep 'ignoring option' conftest.err ||
20017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20018 am_cv_CCAS_dependencies_compiler_type=$depmode
20019 break
20022 done
20024 cd ..
20025 rm -rf conftest.dir
20026 else
20027 am_cv_CCAS_dependencies_compiler_type=none
20031 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
20032 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
20033 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
20036 test "x$enable_dependency_tracking" != xno \
20037 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
20038 am__fastdepCCAS_TRUE=
20039 am__fastdepCCAS_FALSE='#'
20040 else
20041 am__fastdepCCAS_TRUE='#'
20042 am__fastdepCCAS_FALSE=
20046 CCASFLAGS="$CCASFLAGS $ASFLAGS"
20048 # Check if we need noexec stack for assembler
20050 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
20051 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
20052 if test "${mysql_cv_as_noexecstack+set}" = set; then
20053 $as_echo_n "(cached) " >&6
20054 else
20055 cat > conftest.c <<EOF
20056 void foo (void) { }
20058 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
20059 -S -o conftest.s conftest.c 1>&5'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } \
20065 && grep .note.GNU-stack conftest.s >/dev/null \
20066 && { ac_try='${CC-cc} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
20067 -c -o conftest.o conftest.s 1>&5'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }
20073 then
20074 mysql_cv_as_noexecstack=yes
20075 else
20076 mysql_cv_as_noexecstack=no
20078 rm -f conftest*
20080 { $as_echo "$as_me:$LINENO: result: $mysql_cv_as_noexecstack" >&5
20081 $as_echo "$mysql_cv_as_noexecstack" >&6; }
20082 if test $mysql_cv_as_noexecstack = yes; then
20083 CCASFLAGS="$CCASFLAGS -Wa,--noexecstack"
20087 if test "$am_cv_prog_cc_stdc" = "no"
20088 then
20089 { { $as_echo "$as_me:$LINENO: error: MySQL requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual." >&5
20090 $as_echo "$as_me: error: MySQL requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual." >&2;}
20091 { (exit 1); exit 1; }; }
20094 NOINST_LDFLAGS="-static"
20096 static_nss=""
20097 STATIC_NSS_FLAGS=""
20098 OTHER_LIBC_LIB=""
20100 # Check whether --with-other-libc was given.
20101 if test "${with_other_libc+set}" = set; then
20102 withval=$with_other_libc;
20103 other_libc_include="$withval/include"
20104 other_libc_lib="$withval/lib"
20105 with_other_libc="yes"
20106 enable_shared="no"
20107 all_is_static="yes"
20108 CFLAGS="$CFLAGS -I$other_libc_include"
20109 # There seems to be a feature in gcc that treats system and libc headers
20110 # silently when they violatate ANSI C++ standard, but it is strict otherwise
20111 # since gcc cannot now recognize that our headers are libc, we work around
20112 # by telling it to be permissive. Note that this option only works with
20113 # new versions of gcc (2.95.x and above)
20114 CXXFLAGS="$CXXFLAGS -fpermissive -I$other_libc_include"
20115 if test -f "$other_libc_lib/libnss_files.a"
20116 then
20117 # libc has been compiled with --enable-static-nss
20118 # we need special flags, but we will have to add those later
20119 STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
20120 STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
20121 OTHER_LIBC_LIB="-static -L$other_libc_lib"
20122 static_nss=1
20123 else
20124 # this is a dirty hack. We if we detect static nss glibc in the special
20125 # location, we do not re-direct the linker to get libraries from there
20126 # during check. The reason is that if we did, we would have to find a
20127 # way to append the special static nss flags to LIBS every time we do
20128 # any check - this is definitely feasible, but not worthwhile the risk
20129 # of breaking other things. So for our purposes it would be sufficient
20130 # to assume that whoever is using static NSS knows what he is doing and
20131 # has sensible libraries in the regular location
20132 LDFLAGS="$LDFLAGS -static -L$other_libc_lib "
20135 # When linking against custom libc installed separately, we want to force
20136 # all binary builds to be static, including the build done by configure
20137 # itself to test for system features.
20138 with_mysqld_ldflags="-all-static"
20139 with_client_ldflags="-all-static"
20140 NOINST_LDFLAGS="-all-static"
20142 else
20144 other_libc_include=
20145 other_libc_lib=
20146 with_other_libc="no"
20154 # Check if we are using Linux and a glibc compiled with static nss
20155 # (this is true on the MySQL build machines to avoid NSS problems)
20157 if test -n "$ac_tool_prefix"; then
20158 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
20159 set dummy ${ac_tool_prefix}nm; ac_word=$2
20160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20161 $as_echo_n "checking for $ac_word... " >&6; }
20162 if test "${ac_cv_prog_NM+set}" = set; then
20163 $as_echo_n "(cached) " >&6
20164 else
20165 if test -n "$NM"; then
20166 ac_cv_prog_NM="$NM" # Let the user override the test.
20167 else
20168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20169 for as_dir in $PATH
20171 IFS=$as_save_IFS
20172 test -z "$as_dir" && as_dir=.
20173 for ac_exec_ext in '' $ac_executable_extensions; do
20174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20175 ac_cv_prog_NM="${ac_tool_prefix}nm"
20176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20177 break 2
20179 done
20180 done
20181 IFS=$as_save_IFS
20185 NM=$ac_cv_prog_NM
20186 if test -n "$NM"; then
20187 { $as_echo "$as_me:$LINENO: result: $NM" >&5
20188 $as_echo "$NM" >&6; }
20189 else
20190 { $as_echo "$as_me:$LINENO: result: no" >&5
20191 $as_echo "no" >&6; }
20196 if test -z "$ac_cv_prog_NM"; then
20197 ac_ct_NM=$NM
20198 # Extract the first word of "nm", so it can be a program name with args.
20199 set dummy nm; ac_word=$2
20200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 $as_echo_n "checking for $ac_word... " >&6; }
20202 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
20203 $as_echo_n "(cached) " >&6
20204 else
20205 if test -n "$ac_ct_NM"; then
20206 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
20207 else
20208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209 for as_dir in $PATH
20211 IFS=$as_save_IFS
20212 test -z "$as_dir" && as_dir=.
20213 for ac_exec_ext in '' $ac_executable_extensions; do
20214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20215 ac_cv_prog_ac_ct_NM="nm"
20216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20217 break 2
20219 done
20220 done
20221 IFS=$as_save_IFS
20225 ac_ct_NM=$ac_cv_prog_ac_ct_NM
20226 if test -n "$ac_ct_NM"; then
20227 { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
20228 $as_echo "$ac_ct_NM" >&6; }
20229 else
20230 { $as_echo "$as_me:$LINENO: result: no" >&5
20231 $as_echo "no" >&6; }
20234 if test "x$ac_ct_NM" = x; then
20235 NM=""
20236 else
20237 case $cross_compiling:$ac_tool_warned in
20238 yes:)
20239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20241 ac_tool_warned=yes ;;
20242 esac
20243 NM=$ac_ct_NM
20245 else
20246 NM="$ac_cv_prog_NM"
20250 if test "$TARGET_LINUX" = "true" -a "$static_nss" = ""
20251 then
20252 tmp=`$NM ${other_libc_lib:-/usr/lib*}/libc.a | grep _nss_files_getaliasent_r1`
20253 if test -n "$tmp"
20254 then
20255 STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
20256 STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
20257 static_nss=1
20261 { $as_echo "$as_me:$LINENO: checking whether features provided by the user community should be included." >&5
20262 $as_echo_n "checking whether features provided by the user community should be included.... " >&6; }
20263 # Check whether --enable-community-features was given.
20264 if test "${enable_community_features+set}" = set; then
20265 enableval=$enable_community_features; ENABLE_COMMUNITY_FEATURES=$enableval
20266 else
20267 ENABLE_COMMUNITY_FEATURES=yes
20272 if test "$ENABLE_COMMUNITY_FEATURES" = "yes"
20273 then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define COMMUNITY_SERVER 1
20277 _ACEOF
20279 { $as_echo "$as_me:$LINENO: result: yes" >&5
20280 $as_echo "yes" >&6; }
20281 else
20282 { $as_echo "$as_me:$LINENO: result: no" >&5
20283 $as_echo "no" >&6; }
20287 # Check whether --with-server-suffix was given.
20288 if test "${with_server_suffix+set}" = set; then
20289 withval=$with_server_suffix; MYSQL_SERVER_SUFFIX=`echo "$withval" | sed -e 's/^\(...................................\)..*$/\1/'`
20290 else
20291 MYSQL_SERVER_SUFFIX=
20297 # Set flags if we want to force to use pthreads
20299 # Check whether --with-pthread was given.
20300 if test "${with_pthread+set}" = set; then
20301 withval=$with_pthread; with_pthread=$withval
20302 else
20303 with_pthread=no
20308 # Force use of thread libs LIBS
20310 # Check whether --with-named-thread-libs was given.
20311 if test "${with_named_thread_libs+set}" = set; then
20312 withval=$with_named_thread_libs; with_named_thread=$withval
20313 else
20314 with_named_thread=no
20319 # Force use of a curses libs
20321 # Check whether --with-named-curses-libs was given.
20322 if test "${with_named_curses_libs+set}" = set; then
20323 withval=$with_named_curses_libs; with_named_curses=$withval
20324 else
20325 with_named_curses=no
20330 # Make thread safe client
20331 # Check whether --enable-thread-safe-client was given.
20332 if test "${enable_thread_safe_client+set}" = set; then
20333 enableval=$enable_thread_safe_client; THREAD_SAFE_CLIENT=$enableval
20334 else
20335 THREAD_SAFE_CLIENT=yes
20340 # compile with strings functions in assembler
20341 # Check whether --enable-assembler was given.
20342 if test "${enable_assembler+set}" = set; then
20343 enableval=$enable_assembler; ENABLE_ASSEMBLER=$enableval
20344 else
20345 ENABLE_ASSEMBLER=no
20350 { $as_echo "$as_me:$LINENO: checking if we should use assembler functions" >&5
20351 $as_echo_n "checking if we should use assembler functions... " >&6; }
20352 # For now we only support assembler on i386 and sparc systems
20353 if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "i386" && $AS strings/strings-x86.s -o checkassembler >/dev/null 2>&1 && test -f checkassembler && (rm -f checkassembler; exit 0;); then
20354 ASSEMBLER_x86_TRUE=
20355 ASSEMBLER_x86_FALSE='#'
20356 else
20357 ASSEMBLER_x86_TRUE='#'
20358 ASSEMBLER_x86_FALSE=
20361 if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparc"; then
20362 ASSEMBLER_sparc32_TRUE=
20363 ASSEMBLER_sparc32_FALSE='#'
20364 else
20365 ASSEMBLER_sparc32_TRUE='#'
20366 ASSEMBLER_sparc32_FALSE=
20369 if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparcv9"; then
20370 ASSEMBLER_sparc64_TRUE=
20371 ASSEMBLER_sparc64_FALSE='#'
20372 else
20373 ASSEMBLER_sparc64_TRUE='#'
20374 ASSEMBLER_sparc64_FALSE=
20377 if test "$ASSEMBLER_x86_TRUE" = "" -o "$ASSEMBLER_sparc32_TRUE" = ""; then
20378 ASSEMBLER_TRUE=
20379 ASSEMBLER_FALSE='#'
20380 else
20381 ASSEMBLER_TRUE='#'
20382 ASSEMBLER_FALSE=
20386 if test "$ASSEMBLER_TRUE" = ""
20387 then
20388 { $as_echo "$as_me:$LINENO: result: yes" >&5
20389 $as_echo "yes" >&6; }
20390 else
20391 { $as_echo "$as_me:$LINENO: result: no" >&5
20392 $as_echo "no" >&6; }
20395 # Add query profiler
20396 { $as_echo "$as_me:$LINENO: checking if SHOW PROFILE should be enabled." >&5
20397 $as_echo_n "checking if SHOW PROFILE should be enabled.... " >&6; }
20398 # Check whether --enable-profiling was given.
20399 if test "${enable_profiling+set}" = set; then
20400 enableval=$enable_profiling; ENABLED_PROFILING=$enableval
20401 else
20402 ENABLED_PROFILING=$ENABLE_COMMUNITY_FEATURES
20406 if test "$ENABLED_PROFILING" = "yes"
20407 then
20408 if test "$ENABLE_COMMUNITY_FEATURES" = "yes";
20409 then
20411 cat >>confdefs.h <<\_ACEOF
20412 #define ENABLED_PROFILING 1
20413 _ACEOF
20415 { $as_echo "$as_me:$LINENO: result: yes" >&5
20416 $as_echo "yes" >&6; }
20417 else
20418 ENABLED_PROFILING="no"
20419 { $as_echo "$as_me:$LINENO: result: no, overridden by community-features disabled" >&5
20420 $as_echo "no, overridden by community-features disabled" >&6; }
20422 else
20423 { $as_echo "$as_me:$LINENO: result: no" >&5
20424 $as_echo "no" >&6; }
20427 # Use this to set the place used for unix socket used to local communication.
20429 # Check whether --with-unix-socket-path was given.
20430 if test "${with_unix_socket_path+set}" = set; then
20431 withval=$with_unix_socket_path; MYSQL_UNIX_ADDR=$withval
20432 else
20433 MYSQL_UNIX_ADDR=$MYSQL_UNIX_ADDR_DEFAULT
20440 # Check whether --with-tcp-port was given.
20441 if test "${with_tcp_port+set}" = set; then
20442 withval=$with_tcp_port; MYSQL_TCP_PORT=$withval
20443 else
20444 MYSQL_TCP_PORT=$MYSQL_TCP_PORT_DEFAULT
20445 # if we actually defaulted (as opposed to the pathological case of
20446 # --with-tcp-port=<MYSQL_TCP_PORT_DEFAULT> which might in theory
20447 # happen if whole batch of servers was built from a script), set
20448 # the default to zero to indicate that; we don't lose information
20449 # that way, because 0 obviously indicates that we can get the
20450 # default value from MYSQL_TCP_PORT. this seems really evil, but
20451 # testing for MYSQL_TCP_PORT==MYSQL_TCP_PORT_DEFAULT would make a
20452 # a port of MYSQL_TCP_PORT_DEFAULT magic even if the builder did not
20453 # intend it to mean "use the default, in fact, look up a good default
20454 # from /etc/services if you can", but really, really meant 3306 when
20455 # they passed in 3306. When they pass in a specific value, let them
20456 # have it; don't second guess user and think we know better, this will
20457 # just make people cross. this makes the the logic work like this
20458 # (which is complicated enough):
20460 # - if a port was set during build, use that as a default.
20462 # - otherwise, try to look up a port in /etc/services; if that fails,
20463 # use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 3306)
20465 # - allow the MYSQL_TCP_PORT environment variable to override that.
20467 # - allow command-line parameters to override all of the above.
20469 # the top-most MYSQL_TCP_PORT_DEFAULT is read from win/configure.js,
20470 # so don't mess with that.
20471 MYSQL_TCP_PORT_DEFAULT=0
20476 # We might want to document the assigned port in the manual.
20479 # Use this to set the place used for unix socket used to local communication.
20481 # Check whether --with-mysqld-user was given.
20482 if test "${with_mysqld_user+set}" = set; then
20483 withval=$with_mysqld_user; MYSQLD_USER=$withval
20484 else
20485 MYSQLD_USER=mysql
20491 # If we should allow LOAD DATA LOCAL
20492 { $as_echo "$as_me:$LINENO: checking If we should should enable LOAD DATA LOCAL by default" >&5
20493 $as_echo_n "checking If we should should enable LOAD DATA LOCAL by default... " >&6; }
20494 # Check whether --enable-local-infile was given.
20495 if test "${enable_local_infile+set}" = set; then
20496 enableval=$enable_local_infile; ENABLED_LOCAL_INFILE=$enableval
20497 else
20498 ENABLED_LOCAL_INFILE=no
20502 if test "$ENABLED_LOCAL_INFILE" = "yes"
20503 then
20504 { $as_echo "$as_me:$LINENO: result: yes" >&5
20505 $as_echo "yes" >&6; }
20507 cat >>confdefs.h <<\_ACEOF
20508 #define ENABLED_LOCAL_INFILE 1
20509 _ACEOF
20511 else
20512 { $as_echo "$as_me:$LINENO: result: no" >&5
20513 $as_echo "no" >&6; }
20516 # If we should allow init-file, skip-grant-table and bootstrap options
20517 { $as_echo "$as_me:$LINENO: checking If we should should enable init-file" >&5
20518 $as_echo_n "checking If we should should enable init-file... " >&6; }
20519 # Check whether --enable-grant-options was given.
20520 if test "${enable_grant_options+set}" = set; then
20521 enableval=$enable_grant_options; mysql_grant_options_enabled=$enableval
20522 else
20523 mysql_grant_options_enabled=yes
20527 if test "$mysql_grant_options_enabled" = "yes"
20528 then
20529 { $as_echo "$as_me:$LINENO: result: yes" >&5
20530 $as_echo "yes" >&6; }
20531 else
20533 cat >>confdefs.h <<\_ACEOF
20534 #define DISABLE_GRANT_OPTIONS 1
20535 _ACEOF
20537 { $as_echo "$as_me:$LINENO: result: no" >&5
20538 $as_echo "no" >&6; }
20542 # Check whether --enable-largefile was given.
20543 if test "${enable_largefile+set}" = set; then
20544 enableval=$enable_largefile;
20547 if test "$enable_largefile" != no; then
20548 if test -n "$ac_tool_prefix"; then
20549 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
20550 set dummy ${ac_tool_prefix}getconf; ac_word=$2
20551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20552 $as_echo_n "checking for $ac_word... " >&6; }
20553 if test "${ac_cv_prog_GETCONF+set}" = set; then
20554 $as_echo_n "(cached) " >&6
20555 else
20556 if test -n "$GETCONF"; then
20557 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
20558 else
20559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20560 for as_dir in $PATH
20562 IFS=$as_save_IFS
20563 test -z "$as_dir" && as_dir=.
20564 for ac_exec_ext in '' $ac_executable_extensions; do
20565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20566 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
20567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20568 break 2
20570 done
20571 done
20572 IFS=$as_save_IFS
20576 GETCONF=$ac_cv_prog_GETCONF
20577 if test -n "$GETCONF"; then
20578 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
20579 $as_echo "$GETCONF" >&6; }
20580 else
20581 { $as_echo "$as_me:$LINENO: result: no" >&5
20582 $as_echo "no" >&6; }
20587 if test -z "$ac_cv_prog_GETCONF"; then
20588 ac_ct_GETCONF=$GETCONF
20589 # Extract the first word of "getconf", so it can be a program name with args.
20590 set dummy getconf; ac_word=$2
20591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20592 $as_echo_n "checking for $ac_word... " >&6; }
20593 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
20594 $as_echo_n "(cached) " >&6
20595 else
20596 if test -n "$ac_ct_GETCONF"; then
20597 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
20598 else
20599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20600 for as_dir in $PATH
20602 IFS=$as_save_IFS
20603 test -z "$as_dir" && as_dir=.
20604 for ac_exec_ext in '' $ac_executable_extensions; do
20605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20606 ac_cv_prog_ac_ct_GETCONF="getconf"
20607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20608 break 2
20610 done
20611 done
20612 IFS=$as_save_IFS
20616 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
20617 if test -n "$ac_ct_GETCONF"; then
20618 { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
20619 $as_echo "$ac_ct_GETCONF" >&6; }
20620 else
20621 { $as_echo "$as_me:$LINENO: result: no" >&5
20622 $as_echo "no" >&6; }
20625 if test "x$ac_ct_GETCONF" = x; then
20626 GETCONF=""
20627 else
20628 case $cross_compiling:$ac_tool_warned in
20629 yes:)
20630 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20632 ac_tool_warned=yes ;;
20633 esac
20634 GETCONF=$ac_ct_GETCONF
20636 else
20637 GETCONF="$ac_cv_prog_GETCONF"
20640 { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
20641 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
20642 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
20643 $as_echo_n "(cached) " >&6
20644 else
20645 if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
20646 then
20647 ac_cv_sys_largefile_CFLAGS=`cat conftest.1`
20648 else
20649 ac_cv_sys_largefile_CFLAGS=no
20650 case "$host_os" in
20651 # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
20652 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
20653 if test "$GCC" = yes; then
20654 case `$CC --version 2>/dev/null` in
20655 2.95.*) ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__ ;;
20656 esac
20659 # IRIX 6.2 and later require cc -n32.
20660 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
20661 if test "$GCC" != yes; then
20662 ac_cv_sys_largefile_CFLAGS=-n32
20664 esac
20665 if test "$ac_cv_sys_largefile_CFLAGS" != no; then
20666 ac_save_CC="$CC"
20667 CC="$CC $ac_cv_sys_largefile_CFLAGS"
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20676 main ()
20680 return 0;
20682 _ACEOF
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20688 esac
20689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20690 $as_echo "$ac_try_echo") >&5
20691 (eval "$ac_link") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest$ac_exeext && {
20701 test "$cross_compiling" = yes ||
20702 $as_test_x conftest$ac_exeext
20703 }; then
20705 else
20706 $as_echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_cv_sys_largefile_CFLAGS=no
20712 rm -rf conftest.dSYM
20713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20714 conftest$ac_exeext conftest.$ac_ext
20715 CC="$ac_save_CC"
20718 rm -f conftest*
20720 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
20721 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
20722 { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
20723 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
20724 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
20725 $as_echo_n "(cached) " >&6
20726 else
20727 if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
20728 then
20729 ac_cv_sys_largefile_LDFLAGS=`cat conftest.1`
20730 else
20731 ac_cv_sys_largefile_LDFLAGS=no
20734 rm -f conftest*
20736 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
20737 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
20738 { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
20739 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
20740 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
20741 $as_echo_n "(cached) " >&6
20742 else
20743 if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2
20744 then
20745 ac_cv_sys_largefile_LIBS=`cat conftest.1`
20746 else
20747 ac_cv_sys_largefile_LIBS=no
20750 rm -f conftest*
20752 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
20753 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
20755 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
20756 case "$ac_flag" in
20757 no) ;;
20758 -D_FILE_OFFSET_BITS=*) ;;
20759 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
20760 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
20761 -D?* | -I?*)
20762 case "$ac_flag" in
20763 no) ;;
20765 case "$CPPFLAGS" in
20766 '') CPPFLAGS="$ac_flag" ;;
20767 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
20768 esac ;;
20769 esac ;;
20771 case "$ac_flag" in
20772 no) ;;
20774 case "$CFLAGS" in
20775 '') CFLAGS="$ac_flag" ;;
20776 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
20777 esac ;;
20778 esac ;;
20779 esac
20780 done
20781 case "$ac_cv_sys_largefile_LDFLAGS" in
20782 no) ;;
20784 case "$LDFLAGS" in
20785 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
20786 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
20787 esac ;;
20788 esac
20789 case "$ac_cv_sys_largefile_LIBS" in
20790 no) ;;
20792 case "$LIBS" in
20793 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
20794 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
20795 esac ;;
20796 esac
20798 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
20799 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
20800 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20801 $as_echo_n "(cached) " >&6
20802 else
20803 ac_cv_sys_file_offset_bits=no
20804 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
20805 case "$ac_flag" in
20806 -D_FILE_OFFSET_BITS)
20807 ac_cv_sys_file_offset_bits=1 ;;
20808 -D_FILE_OFFSET_BITS=*)
20809 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
20810 esac
20811 done
20812 case "$host_os" in
20813 # HP-UX 10.20 and later
20814 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
20815 ac_cv_sys_file_offset_bits=64 ;;
20816 # We can't declare _FILE_OFFSET_BITS here as this will cause
20817 # compile errors as AC_PROG_CC adds include files in confdefs.h
20818 # We solve this (until autoconf is fixed) by instead declaring it
20819 # as define instead
20820 solaris2.[8,9])
20821 CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
20822 CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64"
20823 ac_cv_sys_file_offset_bits=no ;;
20824 esac
20827 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20828 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20829 if test "$ac_cv_sys_file_offset_bits" != no; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20833 _ACEOF
20836 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
20837 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
20838 if test "${ac_cv_sys_largefile_source+set}" = set; then
20839 $as_echo_n "(cached) " >&6
20840 else
20841 ac_cv_sys_largefile_source=no
20842 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
20843 case "$ac_flag" in
20844 -D_LARGEFILE_SOURCE)
20845 ac_cv_sys_largefile_source=1 ;;
20846 -D_LARGEFILE_SOURCE=*)
20847 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
20848 esac
20849 done
20850 case "$host_os" in
20851 # HP-UX 10.20 and later
20852 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
20853 ac_cv_sys_largefile_source=1 ;;
20854 esac
20857 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20858 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20859 if test "$ac_cv_sys_largefile_source" != no; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20863 _ACEOF
20867 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
20868 $as_echo_n "checking for _LARGE_FILES... " >&6; }
20869 if test "${ac_cv_sys_large_files+set}" = set; then
20870 $as_echo_n "(cached) " >&6
20871 else
20872 ac_cv_sys_large_files=no
20873 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
20874 case "$ac_flag" in
20875 -D_LARGE_FILES)
20876 ac_cv_sys_large_files=1 ;;
20877 -D_LARGE_FILES=*)
20878 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
20879 esac
20880 done
20881 case "$host_os" in
20882 # Large file support on AIX is available starting from version 4.2
20883 # Tested only on 5.2 and up
20884 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
20885 ac_cv_sys_large_files=1 ;;
20886 esac
20889 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20890 $as_echo "$ac_cv_sys_large_files" >&6; }
20891 if test "$ac_cv_sys_large_files" != no; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define _LARGE_FILES $ac_cv_sys_large_files
20895 _ACEOF
20901 # Types that must be checked AFTER large file support is checked
20902 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20903 $as_echo_n "checking for size_t... " >&6; }
20904 if test "${ac_cv_type_size_t+set}" = set; then
20905 $as_echo_n "(cached) " >&6
20906 else
20907 ac_cv_type_size_t=no
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 $ac_includes_default
20916 main ()
20918 if (sizeof (size_t))
20919 return 0;
20921 return 0;
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 $ac_includes_default
20950 main ()
20952 if (sizeof ((size_t)))
20953 return 0;
20955 return 0;
20957 _ACEOF
20958 rm -f conftest.$ac_objext
20959 if { (ac_try="$ac_compile"
20960 case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963 esac
20964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20965 $as_echo "$ac_try_echo") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20977 else
20978 $as_echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_cv_type_size_t=yes
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 else
20986 $as_echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20995 $as_echo "$ac_cv_type_size_t" >&6; }
20996 if test "x$ac_cv_type_size_t" = x""yes; then
20998 else
21000 cat >>confdefs.h <<_ACEOF
21001 #define size_t unsigned int
21002 _ACEOF
21007 #--------------------------------------------------------------------
21008 # Check for system header files
21009 #--------------------------------------------------------------------
21016 ac_header_dirent=no
21017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21018 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21019 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21020 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21022 $as_echo_n "(cached) " >&6
21023 else
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 #include <sys/types.h>
21031 #include <$ac_hdr>
21034 main ()
21036 if ((DIR *) 0)
21037 return 0;
21039 return 0;
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047 esac
21048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21049 $as_echo "$ac_try_echo") >&5
21050 (eval "$ac_compile") 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest.$ac_objext; then
21060 eval "$as_ac_Header=yes"
21061 else
21062 $as_echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 eval "$as_ac_Header=no"
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21070 ac_res=`eval 'as_val=${'$as_ac_Header'}
21071 $as_echo "$as_val"'`
21072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21073 $as_echo "$ac_res" >&6; }
21074 as_val=`eval 'as_val=${'$as_ac_Header'}
21075 $as_echo "$as_val"'`
21076 if test "x$as_val" = x""yes; then
21077 cat >>confdefs.h <<_ACEOF
21078 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21079 _ACEOF
21081 ac_header_dirent=$ac_hdr; break
21084 done
21085 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21086 if test $ac_header_dirent = dirent.h; then
21087 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21088 $as_echo_n "checking for library containing opendir... " >&6; }
21089 if test "${ac_cv_search_opendir+set}" = set; then
21090 $as_echo_n "(cached) " >&6
21091 else
21092 ac_func_search_save_LIBS=$LIBS
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h. */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21103 #ifdef __cplusplus
21104 extern "C"
21105 #endif
21106 char opendir ();
21108 main ()
21110 return opendir ();
21112 return 0;
21114 _ACEOF
21115 for ac_lib in '' dir; do
21116 if test -z "$ac_lib"; then
21117 ac_res="none required"
21118 else
21119 ac_res=-l$ac_lib
21120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21127 esac
21128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21129 $as_echo "$ac_try_echo") >&5
21130 (eval "$ac_link") 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } && {
21137 test -z "$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21139 } && test -s conftest$ac_exeext && {
21140 test "$cross_compiling" = yes ||
21141 $as_test_x conftest$ac_exeext
21142 }; then
21143 ac_cv_search_opendir=$ac_res
21144 else
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21151 rm -rf conftest.dSYM
21152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21153 conftest$ac_exeext
21154 if test "${ac_cv_search_opendir+set}" = set; then
21155 break
21157 done
21158 if test "${ac_cv_search_opendir+set}" = set; then
21160 else
21161 ac_cv_search_opendir=no
21163 rm conftest.$ac_ext
21164 LIBS=$ac_func_search_save_LIBS
21166 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21167 $as_echo "$ac_cv_search_opendir" >&6; }
21168 ac_res=$ac_cv_search_opendir
21169 if test "$ac_res" != no; then
21170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21174 else
21175 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21176 $as_echo_n "checking for library containing opendir... " >&6; }
21177 if test "${ac_cv_search_opendir+set}" = set; then
21178 $as_echo_n "(cached) " >&6
21179 else
21180 ac_func_search_save_LIBS=$LIBS
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21188 /* Override any GCC internal prototype to avoid an error.
21189 Use char because int might match the return type of a GCC
21190 builtin and then its argument prototype would still apply. */
21191 #ifdef __cplusplus
21192 extern "C"
21193 #endif
21194 char opendir ();
21196 main ()
21198 return opendir ();
21200 return 0;
21202 _ACEOF
21203 for ac_lib in '' x; do
21204 if test -z "$ac_lib"; then
21205 ac_res="none required"
21206 else
21207 ac_res=-l$ac_lib
21208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21210 rm -f conftest.$ac_objext conftest$ac_exeext
21211 if { (ac_try="$ac_link"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21217 $as_echo "$ac_try_echo") >&5
21218 (eval "$ac_link") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && {
21225 test -z "$ac_c_werror_flag" ||
21226 test ! -s conftest.err
21227 } && test -s conftest$ac_exeext && {
21228 test "$cross_compiling" = yes ||
21229 $as_test_x conftest$ac_exeext
21230 }; then
21231 ac_cv_search_opendir=$ac_res
21232 else
21233 $as_echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21239 rm -rf conftest.dSYM
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241 conftest$ac_exeext
21242 if test "${ac_cv_search_opendir+set}" = set; then
21243 break
21245 done
21246 if test "${ac_cv_search_opendir+set}" = set; then
21248 else
21249 ac_cv_search_opendir=no
21251 rm conftest.$ac_ext
21252 LIBS=$ac_func_search_save_LIBS
21254 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21255 $as_echo "$ac_cv_search_opendir" >&6; }
21256 ac_res=$ac_cv_search_opendir
21257 if test "$ac_res" != no; then
21258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21264 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21265 $as_echo_n "checking for ANSI C header files... " >&6; }
21266 if test "${ac_cv_header_stdc+set}" = set; then
21267 $as_echo_n "(cached) " >&6
21268 else
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 #include <stdlib.h>
21276 #include <stdarg.h>
21277 #include <string.h>
21278 #include <float.h>
21281 main ()
21285 return 0;
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_header_stdc=yes
21307 else
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_header_stdc=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 if test $ac_cv_header_stdc = yes; then
21317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 #include <string.h>
21326 _ACEOF
21327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21328 $EGREP "memchr" >/dev/null 2>&1; then
21330 else
21331 ac_cv_header_stdc=no
21333 rm -f conftest*
21337 if test $ac_cv_header_stdc = yes; then
21338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21339 cat >conftest.$ac_ext <<_ACEOF
21340 /* confdefs.h. */
21341 _ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h. */
21345 #include <stdlib.h>
21347 _ACEOF
21348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21349 $EGREP "free" >/dev/null 2>&1; then
21351 else
21352 ac_cv_header_stdc=no
21354 rm -f conftest*
21358 if test $ac_cv_header_stdc = yes; then
21359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21360 if test "$cross_compiling" = yes; then
21362 else
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <ctype.h>
21370 #include <stdlib.h>
21371 #if ((' ' & 0x0FF) == 0x020)
21372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21374 #else
21375 # define ISLOWER(c) \
21376 (('a' <= (c) && (c) <= 'i') \
21377 || ('j' <= (c) && (c) <= 'r') \
21378 || ('s' <= (c) && (c) <= 'z'))
21379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21380 #endif
21382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21384 main ()
21386 int i;
21387 for (i = 0; i < 256; i++)
21388 if (XOR (islower (i), ISLOWER (i))
21389 || toupper (i) != TOUPPER (i))
21390 return 2;
21391 return 0;
21393 _ACEOF
21394 rm -f conftest$ac_exeext
21395 if { (ac_try="$ac_link"
21396 case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21399 esac
21400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21401 $as_echo "$ac_try_echo") >&5
21402 (eval "$ac_link") 2>&5
21403 ac_status=$?
21404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406 { (case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409 esac
21410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21411 $as_echo "$ac_try_echo") >&5
21412 (eval "$ac_try") 2>&5
21413 ac_status=$?
21414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21417 else
21418 $as_echo "$as_me: program exited with status $ac_status" >&5
21419 $as_echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ( exit $ac_status )
21423 ac_cv_header_stdc=no
21425 rm -rf conftest.dSYM
21426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21433 $as_echo "$ac_cv_header_stdc" >&6; }
21434 if test $ac_cv_header_stdc = yes; then
21436 cat >>confdefs.h <<\_ACEOF
21437 #define STDC_HEADERS 1
21438 _ACEOF
21442 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21443 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21444 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21445 $as_echo_n "(cached) " >&6
21446 else
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <sys/types.h>
21454 #include <sys/wait.h>
21455 #ifndef WEXITSTATUS
21456 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21457 #endif
21458 #ifndef WIFEXITED
21459 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21460 #endif
21463 main ()
21465 int s;
21466 wait (&s);
21467 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21469 return 0;
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (ac_try="$ac_compile"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21479 $as_echo "$ac_try_echo") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.$ac_objext; then
21490 ac_cv_header_sys_wait_h=yes
21491 else
21492 $as_echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_cv_header_sys_wait_h=no
21498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21501 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21502 if test $ac_cv_header_sys_wait_h = yes; then
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_SYS_WAIT_H 1
21506 _ACEOF
21555 for ac_header in fcntl.h fenv.h float.h floatingpoint.h fpu_control.h \
21556 ieeefp.h limits.h memory.h pwd.h select.h \
21557 stdlib.h stddef.h \
21558 strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h \
21559 sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h \
21560 unistd.h utime.h sys/utime.h termio.h termios.h sched.h crypt.h alloca.h \
21561 sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h linux/config.h \
21562 sys/prctl.h sys/resource.h sys/param.h port.h ieeefp.h \
21563 execinfo.h
21565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21568 $as_echo_n "checking for $ac_header... " >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21570 $as_echo_n "(cached) " >&6
21572 ac_res=`eval 'as_val=${'$as_ac_Header'}
21573 $as_echo "$as_val"'`
21574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21575 $as_echo "$ac_res" >&6; }
21576 else
21577 # Is the header compilable?
21578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21579 $as_echo_n "checking $ac_header usability... " >&6; }
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h. */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 $ac_includes_default
21587 #include <$ac_header>
21588 _ACEOF
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21594 esac
21595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21596 $as_echo "$ac_try_echo") >&5
21597 (eval "$ac_compile") 2>conftest.er1
21598 ac_status=$?
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
21602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest.$ac_objext; then
21607 ac_header_compiler=yes
21608 else
21609 $as_echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_header_compiler=no
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21617 $as_echo "$ac_header_compiler" >&6; }
21619 # Is the header present?
21620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21621 $as_echo_n "checking $ac_header presence... " >&6; }
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <$ac_header>
21629 _ACEOF
21630 if { (ac_try="$ac_cpp conftest.$ac_ext"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21636 $as_echo "$ac_try_echo") >&5
21637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } >/dev/null && {
21644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 }; then
21647 ac_header_preproc=yes
21648 else
21649 $as_echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_header_preproc=no
21655 rm -f conftest.err conftest.$ac_ext
21656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21657 $as_echo "$ac_header_preproc" >&6; }
21659 # So? What about this header?
21660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21661 yes:no: )
21662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21666 ac_header_preproc=yes
21668 no:yes:* )
21669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21683 esac
21684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21685 $as_echo_n "checking for $ac_header... " >&6; }
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687 $as_echo_n "(cached) " >&6
21688 else
21689 eval "$as_ac_Header=\$ac_header_preproc"
21691 ac_res=`eval 'as_val=${'$as_ac_Header'}
21692 $as_echo "$as_val"'`
21693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21694 $as_echo "$ac_res" >&6; }
21697 as_val=`eval 'as_val=${'$as_ac_Header'}
21698 $as_echo "$as_val"'`
21699 if test "x$as_val" = x""yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21702 _ACEOF
21706 done
21710 for ac_header in xfs/xfs.h
21712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21715 $as_echo_n "checking for $ac_header... " >&6; }
21716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21717 $as_echo_n "(cached) " >&6
21719 ac_res=`eval 'as_val=${'$as_ac_Header'}
21720 $as_echo "$as_val"'`
21721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722 $as_echo "$ac_res" >&6; }
21723 else
21724 # Is the header compilable?
21725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21726 $as_echo_n "checking $ac_header usability... " >&6; }
21727 cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h. */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 $ac_includes_default
21734 #include <$ac_header>
21735 _ACEOF
21736 rm -f conftest.$ac_objext
21737 if { (ac_try="$ac_compile"
21738 case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21741 esac
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21745 ac_status=$?
21746 grep -v '^ *+' conftest.er1 >conftest.err
21747 rm -f conftest.er1
21748 cat conftest.err >&5
21749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.$ac_objext; then
21754 ac_header_compiler=yes
21755 else
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_header_compiler=no
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764 $as_echo "$ac_header_compiler" >&6; }
21766 # Is the header present?
21767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768 $as_echo_n "checking $ac_header presence... " >&6; }
21769 cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h. */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 #include <$ac_header>
21776 _ACEOF
21777 if { (ac_try="$ac_cpp conftest.$ac_ext"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21781 esac
21782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21783 $as_echo "$ac_try_echo") >&5
21784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } >/dev/null && {
21791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 }; then
21794 ac_header_preproc=yes
21795 else
21796 $as_echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_header_preproc=no
21802 rm -f conftest.err conftest.$ac_ext
21803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21804 $as_echo "$ac_header_preproc" >&6; }
21806 # So? What about this header?
21807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21808 yes:no: )
21809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21813 ac_header_preproc=yes
21815 no:yes:* )
21816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21830 esac
21831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21832 $as_echo_n "checking for $ac_header... " >&6; }
21833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21834 $as_echo_n "(cached) " >&6
21835 else
21836 eval "$as_ac_Header=\$ac_header_preproc"
21838 ac_res=`eval 'as_val=${'$as_ac_Header'}
21839 $as_echo "$as_val"'`
21840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21841 $as_echo "$ac_res" >&6; }
21844 as_val=`eval 'as_val=${'$as_ac_Header'}
21845 $as_echo "$as_val"'`
21846 if test "x$as_val" = x""yes; then
21847 cat >>confdefs.h <<_ACEOF
21848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21849 _ACEOF
21853 done
21856 #--------------------------------------------------------------------
21857 # Check for system libraries. Adds the library to $LIBS
21858 # and defines HAVE_LIBM etc
21859 #--------------------------------------------------------------------
21862 { $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
21863 $as_echo_n "checking for floor in -lm... " >&6; }
21864 if test "${ac_cv_lib_m_floor+set}" = set; then
21865 $as_echo_n "(cached) " >&6
21866 else
21867 ac_check_lib_save_LIBS=$LIBS
21868 LIBS="-lm $LIBS"
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h. */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 /* Override any GCC internal prototype to avoid an error.
21877 Use char because int might match the return type of a GCC
21878 builtin and then its argument prototype would still apply. */
21879 #ifdef __cplusplus
21880 extern "C"
21881 #endif
21882 char floor ();
21884 main ()
21886 return floor ();
21888 return 0;
21890 _ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896 esac
21897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21898 $as_echo "$ac_try_echo") >&5
21899 (eval "$ac_link") 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest$ac_exeext && {
21909 test "$cross_compiling" = yes ||
21910 $as_test_x conftest$ac_exeext
21911 }; then
21912 ac_cv_lib_m_floor=yes
21913 else
21914 $as_echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_cv_lib_m_floor=no
21920 rm -rf conftest.dSYM
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922 conftest$ac_exeext conftest.$ac_ext
21923 LIBS=$ac_check_lib_save_LIBS
21925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
21926 $as_echo "$ac_cv_lib_m_floor" >&6; }
21927 if test "x$ac_cv_lib_m_floor" = x""yes; then
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_LIBM 1
21930 _ACEOF
21932 LIBS="-lm $LIBS"
21934 else
21936 { $as_echo "$as_me:$LINENO: checking for __infinity in -lm" >&5
21937 $as_echo_n "checking for __infinity in -lm... " >&6; }
21938 if test "${ac_cv_lib_m___infinity+set}" = set; then
21939 $as_echo_n "(cached) " >&6
21940 else
21941 ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lm $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char __infinity ();
21958 main ()
21960 return __infinity ();
21962 return 0;
21964 _ACEOF
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970 esac
21971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21972 $as_echo "$ac_try_echo") >&5
21973 (eval "$ac_link") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest$ac_exeext && {
21983 test "$cross_compiling" = yes ||
21984 $as_test_x conftest$ac_exeext
21985 }; then
21986 ac_cv_lib_m___infinity=yes
21987 else
21988 $as_echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_cv_lib_m___infinity=no
21994 rm -rf conftest.dSYM
21995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21996 conftest$ac_exeext conftest.$ac_ext
21997 LIBS=$ac_check_lib_save_LIBS
21999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m___infinity" >&5
22000 $as_echo "$ac_cv_lib_m___infinity" >&6; }
22001 if test "x$ac_cv_lib_m___infinity" = x""yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_LIBM 1
22004 _ACEOF
22006 LIBS="-lm $LIBS"
22014 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl_r" >&5
22015 $as_echo_n "checking for gethostbyname_r in -lnsl_r... " >&6; }
22016 if test "${ac_cv_lib_nsl_r_gethostbyname_r+set}" = set; then
22017 $as_echo_n "(cached) " >&6
22018 else
22019 ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-lnsl_r $LIBS"
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22028 /* Override any GCC internal prototype to avoid an error.
22029 Use char because int might match the return type of a GCC
22030 builtin and then its argument prototype would still apply. */
22031 #ifdef __cplusplus
22032 extern "C"
22033 #endif
22034 char gethostbyname_r ();
22036 main ()
22038 return gethostbyname_r ();
22040 return 0;
22042 _ACEOF
22043 rm -f conftest.$ac_objext conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048 esac
22049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22050 $as_echo "$ac_try_echo") >&5
22051 (eval "$ac_link") 2>conftest.er1
22052 ac_status=$?
22053 grep -v '^ *+' conftest.er1 >conftest.err
22054 rm -f conftest.er1
22055 cat conftest.err >&5
22056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && {
22058 test -z "$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22060 } && test -s conftest$ac_exeext && {
22061 test "$cross_compiling" = yes ||
22062 $as_test_x conftest$ac_exeext
22063 }; then
22064 ac_cv_lib_nsl_r_gethostbyname_r=yes
22065 else
22066 $as_echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_cv_lib_nsl_r_gethostbyname_r=no
22072 rm -rf conftest.dSYM
22073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22074 conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_lib_save_LIBS
22077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_r_gethostbyname_r" >&5
22078 $as_echo "$ac_cv_lib_nsl_r_gethostbyname_r" >&6; }
22079 if test "x$ac_cv_lib_nsl_r_gethostbyname_r" = x""yes; then
22080 cat >>confdefs.h <<_ACEOF
22081 #define HAVE_LIBNSL_R 1
22082 _ACEOF
22084 LIBS="-lnsl_r $LIBS"
22086 else
22088 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
22089 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
22090 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
22091 $as_echo_n "(cached) " >&6
22092 else
22093 ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-lnsl $LIBS"
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22105 #ifdef __cplusplus
22106 extern "C"
22107 #endif
22108 char gethostbyname_r ();
22110 main ()
22112 return gethostbyname_r ();
22114 return 0;
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22124 $as_echo "$ac_try_echo") >&5
22125 (eval "$ac_link") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest$ac_exeext && {
22135 test "$cross_compiling" = yes ||
22136 $as_test_x conftest$ac_exeext
22137 }; then
22138 ac_cv_lib_nsl_gethostbyname_r=yes
22139 else
22140 $as_echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ac_cv_lib_nsl_gethostbyname_r=no
22146 rm -rf conftest.dSYM
22147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22148 conftest$ac_exeext conftest.$ac_ext
22149 LIBS=$ac_check_lib_save_LIBS
22151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
22152 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
22153 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
22154 cat >>confdefs.h <<_ACEOF
22155 #define HAVE_LIBNSL 1
22156 _ACEOF
22158 LIBS="-lnsl $LIBS"
22164 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22165 $as_echo_n "checking for gethostbyname_r... " >&6; }
22166 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22167 $as_echo_n "(cached) " >&6
22168 else
22169 cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h. */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22177 #define gethostbyname_r innocuous_gethostbyname_r
22179 /* System header to define __stub macros and hopefully few prototypes,
22180 which can conflict with char gethostbyname_r (); below.
22181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22182 <limits.h> exists even on freestanding compilers. */
22184 #ifdef __STDC__
22185 # include <limits.h>
22186 #else
22187 # include <assert.h>
22188 #endif
22190 #undef gethostbyname_r
22192 /* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
22195 #ifdef __cplusplus
22196 extern "C"
22197 #endif
22198 char gethostbyname_r ();
22199 /* The GNU C library defines this for functions which it implements
22200 to always fail with ENOSYS. Some functions are actually named
22201 something starting with __ and the normal name is an alias. */
22202 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22203 choke me
22204 #endif
22207 main ()
22209 return gethostbyname_r ();
22211 return 0;
22213 _ACEOF
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22219 esac
22220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22221 $as_echo "$ac_try_echo") >&5
22222 (eval "$ac_link") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest$ac_exeext && {
22232 test "$cross_compiling" = yes ||
22233 $as_test_x conftest$ac_exeext
22234 }; then
22235 ac_cv_func_gethostbyname_r=yes
22236 else
22237 $as_echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22240 ac_cv_func_gethostbyname_r=no
22243 rm -rf conftest.dSYM
22244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22245 conftest$ac_exeext conftest.$ac_ext
22247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22248 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
22251 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
22252 $as_echo_n "checking for library containing setsockopt... " >&6; }
22253 if test "${ac_cv_search_setsockopt+set}" = set; then
22254 $as_echo_n "(cached) " >&6
22255 else
22256 ac_func_search_save_LIBS=$LIBS
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22267 #ifdef __cplusplus
22268 extern "C"
22269 #endif
22270 char setsockopt ();
22272 main ()
22274 return setsockopt ();
22276 return 0;
22278 _ACEOF
22279 for ac_lib in '' socket; do
22280 if test -z "$ac_lib"; then
22281 ac_res="none required"
22282 else
22283 ac_res=-l$ac_lib
22284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (ac_try="$ac_link"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22291 esac
22292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22293 $as_echo "$ac_try_echo") >&5
22294 (eval "$ac_link") 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest$ac_exeext && {
22304 test "$cross_compiling" = yes ||
22305 $as_test_x conftest$ac_exeext
22306 }; then
22307 ac_cv_search_setsockopt=$ac_res
22308 else
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22315 rm -rf conftest.dSYM
22316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22317 conftest$ac_exeext
22318 if test "${ac_cv_search_setsockopt+set}" = set; then
22319 break
22321 done
22322 if test "${ac_cv_search_setsockopt+set}" = set; then
22324 else
22325 ac_cv_search_setsockopt=no
22327 rm conftest.$ac_ext
22328 LIBS=$ac_func_search_save_LIBS
22330 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
22331 $as_echo "$ac_cv_search_setsockopt" >&6; }
22332 ac_res=$ac_cv_search_setsockopt
22333 if test "$ac_res" != no; then
22334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22338 # This may get things to compile even if bind-8 is installed
22339 { $as_echo "$as_me:$LINENO: checking for library containing bind" >&5
22340 $as_echo_n "checking for library containing bind... " >&6; }
22341 if test "${ac_cv_search_bind+set}" = set; then
22342 $as_echo_n "(cached) " >&6
22343 else
22344 ac_func_search_save_LIBS=$LIBS
22345 cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h. */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22352 /* Override any GCC internal prototype to avoid an error.
22353 Use char because int might match the return type of a GCC
22354 builtin and then its argument prototype would still apply. */
22355 #ifdef __cplusplus
22356 extern "C"
22357 #endif
22358 char bind ();
22360 main ()
22362 return bind ();
22364 return 0;
22366 _ACEOF
22367 for ac_lib in '' bind; do
22368 if test -z "$ac_lib"; then
22369 ac_res="none required"
22370 else
22371 ac_res=-l$ac_lib
22372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (ac_try="$ac_link"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_link") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest$ac_exeext && {
22392 test "$cross_compiling" = yes ||
22393 $as_test_x conftest$ac_exeext
22394 }; then
22395 ac_cv_search_bind=$ac_res
22396 else
22397 $as_echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22403 rm -rf conftest.dSYM
22404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22405 conftest$ac_exeext
22406 if test "${ac_cv_search_bind+set}" = set; then
22407 break
22409 done
22410 if test "${ac_cv_search_bind+set}" = set; then
22412 else
22413 ac_cv_search_bind=no
22415 rm conftest.$ac_ext
22416 LIBS=$ac_func_search_save_LIBS
22418 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind" >&5
22419 $as_echo "$ac_cv_search_bind" >&6; }
22420 ac_res=$ac_cv_search_bind
22421 if test "$ac_res" != no; then
22422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22426 # Check if crypt() exists in libc or libcrypt, sets LIBS if needed
22427 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
22428 $as_echo_n "checking for library containing crypt... " >&6; }
22429 if test "${ac_cv_search_crypt+set}" = set; then
22430 $as_echo_n "(cached) " >&6
22431 else
22432 ac_func_search_save_LIBS=$LIBS
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 /* Override any GCC internal prototype to avoid an error.
22441 Use char because int might match the return type of a GCC
22442 builtin and then its argument prototype would still apply. */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char crypt ();
22448 main ()
22450 return crypt ();
22452 return 0;
22454 _ACEOF
22455 for ac_lib in '' crypt; do
22456 if test -z "$ac_lib"; then
22457 ac_res="none required"
22458 else
22459 ac_res=-l$ac_lib
22460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22462 rm -f conftest.$ac_objext conftest$ac_exeext
22463 if { (ac_try="$ac_link"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22467 esac
22468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22469 $as_echo "$ac_try_echo") >&5
22470 (eval "$ac_link") 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } && {
22477 test -z "$ac_c_werror_flag" ||
22478 test ! -s conftest.err
22479 } && test -s conftest$ac_exeext && {
22480 test "$cross_compiling" = yes ||
22481 $as_test_x conftest$ac_exeext
22482 }; then
22483 ac_cv_search_crypt=$ac_res
22484 else
22485 $as_echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22491 rm -rf conftest.dSYM
22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22493 conftest$ac_exeext
22494 if test "${ac_cv_search_crypt+set}" = set; then
22495 break
22497 done
22498 if test "${ac_cv_search_crypt+set}" = set; then
22500 else
22501 ac_cv_search_crypt=no
22503 rm conftest.$ac_ext
22504 LIBS=$ac_func_search_save_LIBS
22506 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22507 $as_echo "$ac_cv_search_crypt" >&6; }
22508 ac_res=$ac_cv_search_crypt
22509 if test "$ac_res" != no; then
22510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22512 cat >>confdefs.h <<\_ACEOF
22513 #define HAVE_CRYPT 1
22514 _ACEOF
22518 # See if we need a library for address lookup.
22519 { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
22520 $as_echo_n "checking for library containing inet_aton... " >&6; }
22521 if test "${ac_cv_search_inet_aton+set}" = set; then
22522 $as_echo_n "(cached) " >&6
22523 else
22524 ac_func_search_save_LIBS=$LIBS
22525 cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h. */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22532 /* Override any GCC internal prototype to avoid an error.
22533 Use char because int might match the return type of a GCC
22534 builtin and then its argument prototype would still apply. */
22535 #ifdef __cplusplus
22536 extern "C"
22537 #endif
22538 char inet_aton ();
22540 main ()
22542 return inet_aton ();
22544 return 0;
22546 _ACEOF
22547 for ac_lib in '' socket nsl resolv; do
22548 if test -z "$ac_lib"; then
22549 ac_res="none required"
22550 else
22551 ac_res=-l$ac_lib
22552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22554 rm -f conftest.$ac_objext conftest$ac_exeext
22555 if { (ac_try="$ac_link"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22559 esac
22560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22561 $as_echo "$ac_try_echo") >&5
22562 (eval "$ac_link") 2>conftest.er1
22563 ac_status=$?
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
22567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } && {
22569 test -z "$ac_c_werror_flag" ||
22570 test ! -s conftest.err
22571 } && test -s conftest$ac_exeext && {
22572 test "$cross_compiling" = yes ||
22573 $as_test_x conftest$ac_exeext
22574 }; then
22575 ac_cv_search_inet_aton=$ac_res
22576 else
22577 $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22583 rm -rf conftest.dSYM
22584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22585 conftest$ac_exeext
22586 if test "${ac_cv_search_inet_aton+set}" = set; then
22587 break
22589 done
22590 if test "${ac_cv_search_inet_aton+set}" = set; then
22592 else
22593 ac_cv_search_inet_aton=no
22595 rm conftest.$ac_ext
22596 LIBS=$ac_func_search_save_LIBS
22598 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
22599 $as_echo "$ac_cv_search_inet_aton" >&6; }
22600 ac_res=$ac_cv_search_inet_aton
22601 if test "$ac_res" != no; then
22602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607 # For the sched_yield() function on Solaris
22608 { $as_echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
22609 $as_echo_n "checking for library containing sched_yield... " >&6; }
22610 if test "${ac_cv_search_sched_yield+set}" = set; then
22611 $as_echo_n "(cached) " >&6
22612 else
22613 ac_func_search_save_LIBS=$LIBS
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h. */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22621 /* Override any GCC internal prototype to avoid an error.
22622 Use char because int might match the return type of a GCC
22623 builtin and then its argument prototype would still apply. */
22624 #ifdef __cplusplus
22625 extern "C"
22626 #endif
22627 char sched_yield ();
22629 main ()
22631 return sched_yield ();
22633 return 0;
22635 _ACEOF
22636 for ac_lib in '' posix4; do
22637 if test -z "$ac_lib"; then
22638 ac_res="none required"
22639 else
22640 ac_res=-l$ac_lib
22641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (ac_try="$ac_link"
22645 case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22648 esac
22649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22650 $as_echo "$ac_try_echo") >&5
22651 (eval "$ac_link") 2>conftest.er1
22652 ac_status=$?
22653 grep -v '^ *+' conftest.er1 >conftest.err
22654 rm -f conftest.er1
22655 cat conftest.err >&5
22656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } && {
22658 test -z "$ac_c_werror_flag" ||
22659 test ! -s conftest.err
22660 } && test -s conftest$ac_exeext && {
22661 test "$cross_compiling" = yes ||
22662 $as_test_x conftest$ac_exeext
22663 }; then
22664 ac_cv_search_sched_yield=$ac_res
22665 else
22666 $as_echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22672 rm -rf conftest.dSYM
22673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22674 conftest$ac_exeext
22675 if test "${ac_cv_search_sched_yield+set}" = set; then
22676 break
22678 done
22679 if test "${ac_cv_search_sched_yield+set}" = set; then
22681 else
22682 ac_cv_search_sched_yield=no
22684 rm conftest.$ac_ext
22685 LIBS=$ac_func_search_save_LIBS
22687 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
22688 $as_echo "$ac_cv_search_sched_yield" >&6; }
22689 ac_res=$ac_cv_search_sched_yield
22690 if test "$ac_res" != no; then
22691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_SCHED_YIELD 1
22695 _ACEOF
22702 ac_config_files="$ac_config_files zlib/Makefile"
22705 { $as_echo "$as_me:$LINENO: checking for zlib compression library" >&5
22706 $as_echo_n "checking for zlib compression library... " >&6; }
22707 case $SYSTEM_TYPE in
22708 *netware* | *modesto*)
22709 { $as_echo "$as_me:$LINENO: result: ok" >&5
22710 $as_echo "ok" >&6; }
22712 cat >>confdefs.h <<\_ACEOF
22713 #define HAVE_COMPRESS 1
22714 _ACEOF
22719 # Check whether --with-zlib-dir was given.
22720 if test "${with_zlib_dir+set}" = set; then
22721 withval=$with_zlib_dir; mysql_zlib_dir=${withval}
22722 else
22723 mysql_zlib_dir=""
22726 case "$mysql_zlib_dir" in
22727 "no")
22728 mysql_cv_compress="no"
22729 { $as_echo "$as_me:$LINENO: result: disabled" >&5
22730 $as_echo "disabled" >&6; }
22732 "bundled")
22734 ZLIB_INCLUDES="-I\$(top_srcdir)/zlib"
22735 ZLIB_LIBS="\$(top_builddir)/zlib/libzlt.la"
22736 ZLIB_DEPS="-lz"
22737 zlib_dir="zlib"
22739 mysql_cv_compress="yes"
22741 { $as_echo "$as_me:$LINENO: result: using bundled zlib" >&5
22742 $as_echo "using bundled zlib" >&6; }
22745 ZLIB_INCLUDES=""
22746 ZLIB_LIBS="-lz"
22748 save_CPPFLAGS="$CPPFLAGS"
22749 save_LIBS="$LIBS"
22750 CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
22751 LIBS="$LIBS $ZLIB_LIBS"
22752 if test X"$with_server" = Xno
22753 then
22754 zlibsym=zlibVersion
22755 else
22756 zlibsym=zlibCompileFlags
22758 if test "${mysql_cv_compress+set}" = set; then
22759 $as_echo_n "(cached) " >&6
22760 else
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 #include <zlib.h>
22769 main ()
22771 return $zlibsym();
22773 return 0;
22775 _ACEOF
22776 rm -f conftest.$ac_objext conftest$ac_exeext
22777 if { (ac_try="$ac_link"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22783 $as_echo "$ac_try_echo") >&5
22784 (eval "$ac_link") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest$ac_exeext && {
22794 test "$cross_compiling" = yes ||
22795 $as_test_x conftest$ac_exeext
22796 }; then
22797 mysql_cv_compress="yes"
22798 { $as_echo "$as_me:$LINENO: result: ok" >&5
22799 $as_echo "ok" >&6; }
22800 else
22801 $as_echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 mysql_cv_compress="no"
22807 rm -rf conftest.dSYM
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22813 CPPFLAGS="$save_CPPFLAGS"
22814 LIBS="$save_LIBS"
22816 if test "$mysql_cv_compress" = "no"; then
22818 ZLIB_INCLUDES="-I\$(top_srcdir)/zlib"
22819 ZLIB_LIBS="\$(top_builddir)/zlib/libzlt.la"
22820 ZLIB_DEPS="-lz"
22821 zlib_dir="zlib"
22823 mysql_cv_compress="yes"
22825 { $as_echo "$as_me:$LINENO: result: system-wide zlib not found, using one bundled with MySQL" >&5
22826 $as_echo "system-wide zlib not found, using one bundled with MySQL" >&6; }
22830 # Test for libz using all known library file endings
22831 if test \( -f "$mysql_zlib_dir/lib/libz.a" -o \
22832 -f "$mysql_zlib_dir/lib/libz.so" -o \
22833 -f "$mysql_zlib_dir/lib/libz.sl" -o \
22834 -f "$mysql_zlib_dir/lib/libz.dylib" \) \
22835 -a -f "$mysql_zlib_dir/include/zlib.h"; then
22836 ZLIB_INCLUDES="-I$mysql_zlib_dir/include"
22837 ZLIB_LIBS="-L$mysql_zlib_dir/lib -lz"
22839 save_CPPFLAGS="$CPPFLAGS"
22840 save_LIBS="$LIBS"
22841 CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
22842 LIBS="$LIBS $ZLIB_LIBS"
22843 if test X"$with_server" = Xno
22844 then
22845 zlibsym=zlibVersion
22846 else
22847 zlibsym=zlibCompileFlags
22849 if test "${mysql_cv_compress+set}" = set; then
22850 $as_echo_n "(cached) " >&6
22851 else
22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h. */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 #include <zlib.h>
22860 main ()
22862 return $zlibsym();
22864 return 0;
22866 _ACEOF
22867 rm -f conftest.$ac_objext conftest$ac_exeext
22868 if { (ac_try="$ac_link"
22869 case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22872 esac
22873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22874 $as_echo "$ac_try_echo") >&5
22875 (eval "$ac_link") 2>conftest.er1
22876 ac_status=$?
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
22880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest$ac_exeext && {
22885 test "$cross_compiling" = yes ||
22886 $as_test_x conftest$ac_exeext
22887 }; then
22888 mysql_cv_compress="yes"
22889 { $as_echo "$as_me:$LINENO: result: ok" >&5
22890 $as_echo "ok" >&6; }
22891 else
22892 $as_echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 mysql_cv_compress="no"
22898 rm -rf conftest.dSYM
22899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22900 conftest$ac_exeext conftest.$ac_ext
22904 CPPFLAGS="$save_CPPFLAGS"
22905 LIBS="$save_LIBS"
22908 if test "x$mysql_cv_compress" != "xyes"; then
22909 { { $as_echo "$as_me:$LINENO: error: headers or binaries were not found in $mysql_zlib_dir/{include,lib}" >&5
22910 $as_echo "$as_me: error: headers or binaries were not found in $mysql_zlib_dir/{include,lib}" >&2;}
22911 { (exit 1); exit 1; }; }
22914 esac
22915 if test "$mysql_cv_compress" = "yes"; then
22916 if test "x$ZLIB_DEPS" = "x"; then
22917 ZLIB_DEPS="$ZLIB_LIBS"
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_COMPRESS 1
22925 _ACEOF
22929 esac
22932 # For large pages support
22933 if test "$TARGET_LINUX" = "true"
22934 then
22935 # For SHM_HUGETLB on Linux
22936 { $as_echo "$as_me:$LINENO: checking whether SHM_HUGETLB is declared" >&5
22937 $as_echo_n "checking whether SHM_HUGETLB is declared... " >&6; }
22938 if test "${ac_cv_have_decl_SHM_HUGETLB+set}" = set; then
22939 $as_echo_n "(cached) " >&6
22940 else
22941 cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h. */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22948 #include <sys/shm.h>
22953 main ()
22955 #ifndef SHM_HUGETLB
22956 (void) SHM_HUGETLB;
22957 #endif
22960 return 0;
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_cv_have_decl_SHM_HUGETLB=yes
22982 else
22983 $as_echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_cv_have_decl_SHM_HUGETLB=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHM_HUGETLB" >&5
22992 $as_echo "$ac_cv_have_decl_SHM_HUGETLB" >&6; }
22993 if test "x$ac_cv_have_decl_SHM_HUGETLB" = x""yes; then
22995 cat >>confdefs.h <<_ACEOF
22996 #define HAVE_DECL_SHM_HUGETLB 1
22997 _ACEOF
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_LARGE_PAGES 1
23002 _ACEOF
23005 cat >>confdefs.h <<\_ACEOF
23006 #define HUGETLB_USE_PROC_MEMINFO 1
23007 _ACEOF
23010 else
23011 cat >>confdefs.h <<_ACEOF
23012 #define HAVE_DECL_SHM_HUGETLB 0
23013 _ACEOF
23021 #--------------------------------------------------------------------
23022 # Check for TCP wrapper support
23023 #--------------------------------------------------------------------
23026 # Check whether --with-libwrap was given.
23027 if test "${with_libwrap+set}" = set; then
23028 withval=$with_libwrap;
23029 case "$with_libwrap" in
23030 no) : ;;
23031 yes|*)
23032 _cppflags=${CPPFLAGS}
23033 _ldflags=${LDFLAGS}
23035 if test "$with_libwrap" != "yes"; then
23036 CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
23037 LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
23040 _libs=${LIBS}
23041 if test "${ac_cv_header_tcpd_h+set}" = set; then
23042 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
23043 $as_echo_n "checking for tcpd.h... " >&6; }
23044 if test "${ac_cv_header_tcpd_h+set}" = set; then
23045 $as_echo_n "(cached) " >&6
23047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
23048 $as_echo "$ac_cv_header_tcpd_h" >&6; }
23049 else
23050 # Is the header compilable?
23051 { $as_echo "$as_me:$LINENO: checking tcpd.h usability" >&5
23052 $as_echo_n "checking tcpd.h usability... " >&6; }
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h. */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 $ac_includes_default
23060 #include <tcpd.h>
23061 _ACEOF
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23067 esac
23068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069 $as_echo "$ac_try_echo") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 ac_header_compiler=yes
23081 else
23082 $as_echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_header_compiler=no
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23090 $as_echo "$ac_header_compiler" >&6; }
23092 # Is the header present?
23093 { $as_echo "$as_me:$LINENO: checking tcpd.h presence" >&5
23094 $as_echo_n "checking tcpd.h presence... " >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 #include <tcpd.h>
23102 _ACEOF
23103 if { (ac_try="$ac_cpp conftest.$ac_ext"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23109 $as_echo "$ac_try_echo") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 }; then
23120 ac_header_preproc=yes
23121 else
23122 $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 $as_echo "$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23134 yes:no: )
23135 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
23136 $as_echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
23138 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc=yes
23141 no:yes:* )
23142 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
23143 $as_echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
23144 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
23145 $as_echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
23147 $as_echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
23148 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&5
23149 $as_echo "$as_me: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
23151 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
23153 $as_echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
23156 esac
23157 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
23158 $as_echo_n "checking for tcpd.h... " >&6; }
23159 if test "${ac_cv_header_tcpd_h+set}" = set; then
23160 $as_echo_n "(cached) " >&6
23161 else
23162 ac_cv_header_tcpd_h=$ac_header_preproc
23164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
23165 $as_echo "$ac_cv_header_tcpd_h" >&6; }
23168 if test "x$ac_cv_header_tcpd_h" = x""yes; then
23169 LIBS="-lwrap $LIBS"
23170 { $as_echo "$as_me:$LINENO: checking for TCP wrappers library -lwrap" >&5
23171 $as_echo_n "checking for TCP wrappers library -lwrap... " >&6; }
23172 cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h. */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 #include <tcpd.h>
23179 int allow_severity = 0;
23180 int deny_severity = 0;
23182 struct request_info *req;
23185 main ()
23187 hosts_access (req)
23189 return 0;
23191 _ACEOF
23192 rm -f conftest.$ac_objext conftest$ac_exeext
23193 if { (ac_try="$ac_link"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23197 esac
23198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23199 $as_echo "$ac_try_echo") >&5
23200 (eval "$ac_link") 2>conftest.er1
23201 ac_status=$?
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
23205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest$ac_exeext && {
23210 test "$cross_compiling" = yes ||
23211 $as_test_x conftest$ac_exeext
23212 }; then
23213 { $as_echo "$as_me:$LINENO: result: yes" >&5
23214 $as_echo "yes" >&6; }
23216 cat >>confdefs.h <<\_ACEOF
23217 #define LIBWRAP 1
23218 _ACEOF
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_LIBWRAP 1
23223 _ACEOF
23225 if test "$with_libwrap" != "yes"; then
23226 WRAPLIBS="-L${with_libwrap}/lib"
23228 WRAPLIBS="${WRAPLIBS} -lwrap"
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 { $as_echo "$as_me:$LINENO: result: no" >&5
23234 $as_echo "no" >&6; }
23235 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
23238 rm -rf conftest.dSYM
23239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23240 conftest$ac_exeext conftest.$ac_ext
23241 else
23242 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
23246 LDFLAGS=${_ldflags} LIBS=${_libs}
23248 esac
23254 # Check for gtty if termio.h doesn't exists
23255 if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
23256 then
23257 { $as_echo "$as_me:$LINENO: checking for library containing gtty" >&5
23258 $as_echo_n "checking for library containing gtty... " >&6; }
23259 if test "${ac_cv_search_gtty+set}" = set; then
23260 $as_echo_n "(cached) " >&6
23261 else
23262 ac_func_search_save_LIBS=$LIBS
23263 cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23270 /* Override any GCC internal prototype to avoid an error.
23271 Use char because int might match the return type of a GCC
23272 builtin and then its argument prototype would still apply. */
23273 #ifdef __cplusplus
23274 extern "C"
23275 #endif
23276 char gtty ();
23278 main ()
23280 return gtty ();
23282 return 0;
23284 _ACEOF
23285 for ac_lib in '' compat; do
23286 if test -z "$ac_lib"; then
23287 ac_res="none required"
23288 else
23289 ac_res=-l$ac_lib
23290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (ac_try="$ac_link"
23294 case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23297 esac
23298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23299 $as_echo "$ac_try_echo") >&5
23300 (eval "$ac_link") 2>conftest.er1
23301 ac_status=$?
23302 grep -v '^ *+' conftest.er1 >conftest.err
23303 rm -f conftest.er1
23304 cat conftest.err >&5
23305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && {
23307 test -z "$ac_c_werror_flag" ||
23308 test ! -s conftest.err
23309 } && test -s conftest$ac_exeext && {
23310 test "$cross_compiling" = yes ||
23311 $as_test_x conftest$ac_exeext
23312 }; then
23313 ac_cv_search_gtty=$ac_res
23314 else
23315 $as_echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23321 rm -rf conftest.dSYM
23322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23323 conftest$ac_exeext
23324 if test "${ac_cv_search_gtty+set}" = set; then
23325 break
23327 done
23328 if test "${ac_cv_search_gtty+set}" = set; then
23330 else
23331 ac_cv_search_gtty=no
23333 rm conftest.$ac_ext
23334 LIBS=$ac_func_search_save_LIBS
23336 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gtty" >&5
23337 $as_echo "$ac_cv_search_gtty" >&6; }
23338 ac_res=$ac_cv_search_gtty
23339 if test "$ac_res" != no; then
23340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23346 # We make a special variable for non-threaded version of LIBS to avoid
23347 # including thread libs into non-threaded version of MySQL client library.
23348 # Later in this script LIBS will be augmented with a threads library.
23349 NON_THREADED_LIBS="$LIBS"
23351 { $as_echo "$as_me:$LINENO: checking for int8" >&5
23352 $as_echo_n "checking for int8... " >&6; }
23353 if test "${ac_cv_type_int8+set}" = set; then
23354 $as_echo_n "(cached) " >&6
23355 else
23356 ac_cv_type_int8=no
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h. */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23364 #include <sys/types.h>
23368 main ()
23370 if (sizeof (int8))
23371 return 0;
23373 return 0;
23375 _ACEOF
23376 rm -f conftest.$ac_objext
23377 if { (ac_try="$ac_compile"
23378 case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23381 esac
23382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23383 $as_echo "$ac_try_echo") >&5
23384 (eval "$ac_compile") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } && {
23391 test -z "$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 } && test -s conftest.$ac_objext; then
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h. */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23401 #include <sys/types.h>
23405 main ()
23407 if (sizeof ((int8)))
23408 return 0;
23410 return 0;
23412 _ACEOF
23413 rm -f conftest.$ac_objext
23414 if { (ac_try="$ac_compile"
23415 case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418 esac
23419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23420 $as_echo "$ac_try_echo") >&5
23421 (eval "$ac_compile") 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } && {
23428 test -z "$ac_c_werror_flag" ||
23429 test ! -s conftest.err
23430 } && test -s conftest.$ac_objext; then
23432 else
23433 $as_echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_cv_type_int8=yes
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 else
23441 $as_echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23450 $as_echo "$ac_cv_type_int8" >&6; }
23451 if test "x$ac_cv_type_int8" = x""yes; then
23453 cat >>confdefs.h <<_ACEOF
23454 #define HAVE_INT8 1
23455 _ACEOF
23459 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
23460 $as_echo_n "checking for uint8... " >&6; }
23461 if test "${ac_cv_type_uint8+set}" = set; then
23462 $as_echo_n "(cached) " >&6
23463 else
23464 ac_cv_type_uint8=no
23465 cat >conftest.$ac_ext <<_ACEOF
23466 /* confdefs.h. */
23467 _ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h. */
23472 #include <sys/types.h>
23476 main ()
23478 if (sizeof (uint8))
23479 return 0;
23481 return 0;
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489 esac
23490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23491 $as_echo "$ac_try_echo") >&5
23492 (eval "$ac_compile") 2>conftest.er1
23493 ac_status=$?
23494 grep -v '^ *+' conftest.er1 >conftest.err
23495 rm -f conftest.er1
23496 cat conftest.err >&5
23497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest.$ac_objext; then
23502 cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23509 #include <sys/types.h>
23513 main ()
23515 if (sizeof ((uint8)))
23516 return 0;
23518 return 0;
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23528 $as_echo "$ac_try_echo") >&5
23529 (eval "$ac_compile") 2>conftest.er1
23530 ac_status=$?
23531 grep -v '^ *+' conftest.er1 >conftest.err
23532 rm -f conftest.er1
23533 cat conftest.err >&5
23534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest.$ac_objext; then
23540 else
23541 $as_echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_type_uint8=yes
23547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 else
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23558 $as_echo "$ac_cv_type_uint8" >&6; }
23559 if test "x$ac_cv_type_uint8" = x""yes; then
23561 cat >>confdefs.h <<_ACEOF
23562 #define HAVE_UINT8 1
23563 _ACEOF
23567 { $as_echo "$as_me:$LINENO: checking for int16" >&5
23568 $as_echo_n "checking for int16... " >&6; }
23569 if test "${ac_cv_type_int16+set}" = set; then
23570 $as_echo_n "(cached) " >&6
23571 else
23572 ac_cv_type_int16=no
23573 cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h. */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23580 #include <sys/types.h>
23584 main ()
23586 if (sizeof (int16))
23587 return 0;
23589 return 0;
23591 _ACEOF
23592 rm -f conftest.$ac_objext
23593 if { (ac_try="$ac_compile"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23597 esac
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h. */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23617 #include <sys/types.h>
23621 main ()
23623 if (sizeof ((int16)))
23624 return 0;
23626 return 0;
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23634 esac
23635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23636 $as_echo "$ac_try_echo") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23648 else
23649 $as_echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ac_cv_type_int16=yes
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 else
23657 $as_echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23665 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
23666 $as_echo "$ac_cv_type_int16" >&6; }
23667 if test "x$ac_cv_type_int16" = x""yes; then
23669 cat >>confdefs.h <<_ACEOF
23670 #define HAVE_INT16 1
23671 _ACEOF
23675 { $as_echo "$as_me:$LINENO: checking for uint16" >&5
23676 $as_echo_n "checking for uint16... " >&6; }
23677 if test "${ac_cv_type_uint16+set}" = set; then
23678 $as_echo_n "(cached) " >&6
23679 else
23680 ac_cv_type_uint16=no
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23688 #include <sys/types.h>
23692 main ()
23694 if (sizeof (uint16))
23695 return 0;
23697 return 0;
23699 _ACEOF
23700 rm -f conftest.$ac_objext
23701 if { (ac_try="$ac_compile"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705 esac
23706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23707 $as_echo "$ac_try_echo") >&5
23708 (eval "$ac_compile") 2>conftest.er1
23709 ac_status=$?
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
23713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } && {
23715 test -z "$ac_c_werror_flag" ||
23716 test ! -s conftest.err
23717 } && test -s conftest.$ac_objext; then
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h. */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23725 #include <sys/types.h>
23729 main ()
23731 if (sizeof ((uint16)))
23732 return 0;
23734 return 0;
23736 _ACEOF
23737 rm -f conftest.$ac_objext
23738 if { (ac_try="$ac_compile"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23742 esac
23743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23744 $as_echo "$ac_try_echo") >&5
23745 (eval "$ac_compile") 2>conftest.er1
23746 ac_status=$?
23747 grep -v '^ *+' conftest.er1 >conftest.err
23748 rm -f conftest.er1
23749 cat conftest.err >&5
23750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); } && {
23752 test -z "$ac_c_werror_flag" ||
23753 test ! -s conftest.err
23754 } && test -s conftest.$ac_objext; then
23756 else
23757 $as_echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23760 ac_cv_type_uint16=yes
23763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23764 else
23765 $as_echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5
23774 $as_echo "$ac_cv_type_uint16" >&6; }
23775 if test "x$ac_cv_type_uint16" = x""yes; then
23777 cat >>confdefs.h <<_ACEOF
23778 #define HAVE_UINT16 1
23779 _ACEOF
23783 { $as_echo "$as_me:$LINENO: checking for int32" >&5
23784 $as_echo_n "checking for int32... " >&6; }
23785 if test "${ac_cv_type_int32+set}" = set; then
23786 $as_echo_n "(cached) " >&6
23787 else
23788 ac_cv_type_int32=no
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h. */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23796 #include <sys/types.h>
23800 main ()
23802 if (sizeof (int32))
23803 return 0;
23805 return 0;
23807 _ACEOF
23808 rm -f conftest.$ac_objext
23809 if { (ac_try="$ac_compile"
23810 case "(($ac_try" in
23811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23812 *) ac_try_echo=$ac_try;;
23813 esac
23814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23815 $as_echo "$ac_try_echo") >&5
23816 (eval "$ac_compile") 2>conftest.er1
23817 ac_status=$?
23818 grep -v '^ *+' conftest.er1 >conftest.err
23819 rm -f conftest.er1
23820 cat conftest.err >&5
23821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && {
23823 test -z "$ac_c_werror_flag" ||
23824 test ! -s conftest.err
23825 } && test -s conftest.$ac_objext; then
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23833 #include <sys/types.h>
23837 main ()
23839 if (sizeof ((int32)))
23840 return 0;
23842 return 0;
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (ac_try="$ac_compile"
23847 case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850 esac
23851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23852 $as_echo "$ac_try_echo") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23864 else
23865 $as_echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ac_cv_type_int32=yes
23871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23872 else
23873 $as_echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
23882 $as_echo "$ac_cv_type_int32" >&6; }
23883 if test "x$ac_cv_type_int32" = x""yes; then
23885 cat >>confdefs.h <<_ACEOF
23886 #define HAVE_INT32 1
23887 _ACEOF
23891 { $as_echo "$as_me:$LINENO: checking for uint32" >&5
23892 $as_echo_n "checking for uint32... " >&6; }
23893 if test "${ac_cv_type_uint32+set}" = set; then
23894 $as_echo_n "(cached) " >&6
23895 else
23896 ac_cv_type_uint32=no
23897 cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h. */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23904 #include <sys/types.h>
23908 main ()
23910 if (sizeof (uint32))
23911 return 0;
23913 return 0;
23915 _ACEOF
23916 rm -f conftest.$ac_objext
23917 if { (ac_try="$ac_compile"
23918 case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23921 esac
23922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23923 $as_echo "$ac_try_echo") >&5
23924 (eval "$ac_compile") 2>conftest.er1
23925 ac_status=$?
23926 grep -v '^ *+' conftest.er1 >conftest.err
23927 rm -f conftest.er1
23928 cat conftest.err >&5
23929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } && {
23931 test -z "$ac_c_werror_flag" ||
23932 test ! -s conftest.err
23933 } && test -s conftest.$ac_objext; then
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h. */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23941 #include <sys/types.h>
23945 main ()
23947 if (sizeof ((uint32)))
23948 return 0;
23950 return 0;
23952 _ACEOF
23953 rm -f conftest.$ac_objext
23954 if { (ac_try="$ac_compile"
23955 case "(($ac_try" in
23956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23958 esac
23959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23960 $as_echo "$ac_try_echo") >&5
23961 (eval "$ac_compile") 2>conftest.er1
23962 ac_status=$?
23963 grep -v '^ *+' conftest.er1 >conftest.err
23964 rm -f conftest.er1
23965 cat conftest.err >&5
23966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } && {
23968 test -z "$ac_c_werror_flag" ||
23969 test ! -s conftest.err
23970 } && test -s conftest.$ac_objext; then
23972 else
23973 $as_echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23976 ac_cv_type_uint32=yes
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 else
23981 $as_echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5
23990 $as_echo "$ac_cv_type_uint32" >&6; }
23991 if test "x$ac_cv_type_uint32" = x""yes; then
23993 cat >>confdefs.h <<_ACEOF
23994 #define HAVE_UINT32 1
23995 _ACEOF
23999 { $as_echo "$as_me:$LINENO: checking for int64" >&5
24000 $as_echo_n "checking for int64... " >&6; }
24001 if test "${ac_cv_type_int64+set}" = set; then
24002 $as_echo_n "(cached) " >&6
24003 else
24004 ac_cv_type_int64=no
24005 cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h. */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24012 #include <sys/types.h>
24016 main ()
24018 if (sizeof (int64))
24019 return 0;
24021 return 0;
24023 _ACEOF
24024 rm -f conftest.$ac_objext
24025 if { (ac_try="$ac_compile"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24029 esac
24030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24031 $as_echo "$ac_try_echo") >&5
24032 (eval "$ac_compile") 2>conftest.er1
24033 ac_status=$?
24034 grep -v '^ *+' conftest.er1 >conftest.err
24035 rm -f conftest.er1
24036 cat conftest.err >&5
24037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } && {
24039 test -z "$ac_c_werror_flag" ||
24040 test ! -s conftest.err
24041 } && test -s conftest.$ac_objext; then
24042 cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h. */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24049 #include <sys/types.h>
24053 main ()
24055 if (sizeof ((int64)))
24056 return 0;
24058 return 0;
24060 _ACEOF
24061 rm -f conftest.$ac_objext
24062 if { (ac_try="$ac_compile"
24063 case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24066 esac
24067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24068 $as_echo "$ac_try_echo") >&5
24069 (eval "$ac_compile") 2>conftest.er1
24070 ac_status=$?
24071 grep -v '^ *+' conftest.er1 >conftest.err
24072 rm -f conftest.er1
24073 cat conftest.err >&5
24074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } && {
24076 test -z "$ac_c_werror_flag" ||
24077 test ! -s conftest.err
24078 } && test -s conftest.$ac_objext; then
24080 else
24081 $as_echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24084 ac_cv_type_int64=yes
24087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 else
24089 $as_echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24097 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24098 $as_echo "$ac_cv_type_int64" >&6; }
24099 if test "x$ac_cv_type_int64" = x""yes; then
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_INT64 1
24103 _ACEOF
24107 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
24108 $as_echo_n "checking for uint64... " >&6; }
24109 if test "${ac_cv_type_uint64+set}" = set; then
24110 $as_echo_n "(cached) " >&6
24111 else
24112 ac_cv_type_uint64=no
24113 cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h. */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24120 #include <sys/types.h>
24124 main ()
24126 if (sizeof (uint64))
24127 return 0;
24129 return 0;
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24137 esac
24138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24139 $as_echo "$ac_try_echo") >&5
24140 (eval "$ac_compile") 2>conftest.er1
24141 ac_status=$?
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
24145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } && {
24147 test -z "$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 } && test -s conftest.$ac_objext; then
24150 cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h. */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24157 #include <sys/types.h>
24161 main ()
24163 if (sizeof ((uint64)))
24164 return 0;
24166 return 0;
24168 _ACEOF
24169 rm -f conftest.$ac_objext
24170 if { (ac_try="$ac_compile"
24171 case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174 esac
24175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24176 $as_echo "$ac_try_echo") >&5
24177 (eval "$ac_compile") 2>conftest.er1
24178 ac_status=$?
24179 grep -v '^ *+' conftest.er1 >conftest.err
24180 rm -f conftest.er1
24181 cat conftest.err >&5
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } && {
24184 test -z "$ac_c_werror_flag" ||
24185 test ! -s conftest.err
24186 } && test -s conftest.$ac_objext; then
24188 else
24189 $as_echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24192 ac_cv_type_uint64=yes
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 else
24197 $as_echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24206 $as_echo "$ac_cv_type_uint64" >&6; }
24207 if test "x$ac_cv_type_uint64" = x""yes; then
24209 cat >>confdefs.h <<_ACEOF
24210 #define HAVE_UINT64 1
24211 _ACEOF
24215 { $as_echo "$as_me:$LINENO: checking for uchar" >&5
24216 $as_echo_n "checking for uchar... " >&6; }
24217 if test "${ac_cv_type_uchar+set}" = set; then
24218 $as_echo_n "(cached) " >&6
24219 else
24220 ac_cv_type_uchar=no
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h. */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24228 #include <sys/types.h>
24232 main ()
24234 if (sizeof (uchar))
24235 return 0;
24237 return 0;
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (ac_try="$ac_compile"
24242 case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24245 esac
24246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24247 $as_echo "$ac_try_echo") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 cat >conftest.$ac_ext <<_ACEOF
24259 /* confdefs.h. */
24260 _ACEOF
24261 cat confdefs.h >>conftest.$ac_ext
24262 cat >>conftest.$ac_ext <<_ACEOF
24263 /* end confdefs.h. */
24265 #include <sys/types.h>
24269 main ()
24271 if (sizeof ((uchar)))
24272 return 0;
24274 return 0;
24276 _ACEOF
24277 rm -f conftest.$ac_objext
24278 if { (ac_try="$ac_compile"
24279 case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24282 esac
24283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24284 $as_echo "$ac_try_echo") >&5
24285 (eval "$ac_compile") 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } && {
24292 test -z "$ac_c_werror_flag" ||
24293 test ! -s conftest.err
24294 } && test -s conftest.$ac_objext; then
24296 else
24297 $as_echo "$as_me: failed program was:" >&5
24298 sed 's/^/| /' conftest.$ac_ext >&5
24300 ac_cv_type_uchar=yes
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 else
24305 $as_echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
24314 $as_echo "$ac_cv_type_uchar" >&6; }
24315 if test "x$ac_cv_type_uchar" = x""yes; then
24317 cat >>confdefs.h <<_ACEOF
24318 #define HAVE_UCHAR 1
24319 _ACEOF
24323 { $as_echo "$as_me:$LINENO: checking for uint" >&5
24324 $as_echo_n "checking for uint... " >&6; }
24325 if test "${ac_cv_type_uint+set}" = set; then
24326 $as_echo_n "(cached) " >&6
24327 else
24328 ac_cv_type_uint=no
24329 cat >conftest.$ac_ext <<_ACEOF
24330 /* confdefs.h. */
24331 _ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24336 #include <sys/types.h>
24340 main ()
24342 if (sizeof (uint))
24343 return 0;
24345 return 0;
24347 _ACEOF
24348 rm -f conftest.$ac_objext
24349 if { (ac_try="$ac_compile"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353 esac
24354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_compile") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest.$ac_objext; then
24366 cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h. */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24373 #include <sys/types.h>
24377 main ()
24379 if (sizeof ((uint)))
24380 return 0;
24382 return 0;
24384 _ACEOF
24385 rm -f conftest.$ac_objext
24386 if { (ac_try="$ac_compile"
24387 case "(($ac_try" in
24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389 *) ac_try_echo=$ac_try;;
24390 esac
24391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24392 $as_echo "$ac_try_echo") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
24404 else
24405 $as_echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24408 ac_cv_type_uint=yes
24411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24412 else
24413 $as_echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
24422 $as_echo "$ac_cv_type_uint" >&6; }
24423 if test "x$ac_cv_type_uint" = x""yes; then
24425 cat >>confdefs.h <<_ACEOF
24426 #define HAVE_UINT 1
24427 _ACEOF
24431 { $as_echo "$as_me:$LINENO: checking for ulong" >&5
24432 $as_echo_n "checking for ulong... " >&6; }
24433 if test "${ac_cv_type_ulong+set}" = set; then
24434 $as_echo_n "(cached) " >&6
24435 else
24436 ac_cv_type_ulong=no
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h. */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24444 #include <sys/types.h>
24448 main ()
24450 if (sizeof (ulong))
24451 return 0;
24453 return 0;
24455 _ACEOF
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460 *) ac_try_echo=$ac_try;;
24461 esac
24462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464 (eval "$ac_compile") 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest.$ac_objext; then
24474 cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h. */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24481 #include <sys/types.h>
24485 main ()
24487 if (sizeof ((ulong)))
24488 return 0;
24490 return 0;
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24500 $as_echo "$ac_try_echo") >&5
24501 (eval "$ac_compile") 2>conftest.er1
24502 ac_status=$?
24503 grep -v '^ *+' conftest.er1 >conftest.err
24504 rm -f conftest.er1
24505 cat conftest.err >&5
24506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } && {
24508 test -z "$ac_c_werror_flag" ||
24509 test ! -s conftest.err
24510 } && test -s conftest.$ac_objext; then
24512 else
24513 $as_echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24516 ac_cv_type_ulong=yes
24519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24520 else
24521 $as_echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
24530 $as_echo "$ac_cv_type_ulong" >&6; }
24531 if test "x$ac_cv_type_ulong" = x""yes; then
24533 cat >>confdefs.h <<_ACEOF
24534 #define HAVE_ULONG 1
24535 _ACEOF
24540 { $as_echo "$as_me:$LINENO: checking for in_addr_t" >&5
24541 $as_echo_n "checking for in_addr_t... " >&6; }
24542 if test "${ac_cv_type_in_addr_t+set}" = set; then
24543 $as_echo_n "(cached) " >&6
24544 else
24545 ac_cv_type_in_addr_t=no
24546 cat >conftest.$ac_ext <<_ACEOF
24547 /* confdefs.h. */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h. */
24553 #include <sys/types.h>
24554 #include <sys/socket.h>
24555 #include <netinet/in.h>
24556 #include <arpa/inet.h>
24560 main ()
24562 if (sizeof (in_addr_t))
24563 return 0;
24565 return 0;
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24586 cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h. */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24593 #include <sys/types.h>
24594 #include <sys/socket.h>
24595 #include <netinet/in.h>
24596 #include <arpa/inet.h>
24600 main ()
24602 if (sizeof ((in_addr_t)))
24603 return 0;
24605 return 0;
24607 _ACEOF
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24613 esac
24614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24615 $as_echo "$ac_try_echo") >&5
24616 (eval "$ac_compile") 2>conftest.er1
24617 ac_status=$?
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
24621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest.$ac_objext; then
24627 else
24628 $as_echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ac_cv_type_in_addr_t=yes
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 else
24636 $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
24645 $as_echo "$ac_cv_type_in_addr_t" >&6; }
24646 if test "x$ac_cv_type_in_addr_t" = x""yes; then
24648 cat >>confdefs.h <<_ACEOF
24649 #define HAVE_IN_ADDR_T 1
24650 _ACEOF
24655 { $as_echo "$as_me:$LINENO: checking for fp_except" >&5
24656 $as_echo_n "checking for fp_except... " >&6; }
24657 if test "${ac_cv_type_fp_except+set}" = set; then
24658 $as_echo_n "(cached) " >&6
24659 else
24660 ac_cv_type_fp_except=no
24661 cat >conftest.$ac_ext <<_ACEOF
24662 /* confdefs.h. */
24663 _ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h. */
24668 #include <sys/types.h>
24669 #include <ieeefp.h>
24673 main ()
24675 if (sizeof (fp_except))
24676 return 0;
24678 return 0;
24680 _ACEOF
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24686 esac
24687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24688 $as_echo "$ac_try_echo") >&5
24689 (eval "$ac_compile") 2>conftest.er1
24690 ac_status=$?
24691 grep -v '^ *+' conftest.er1 >conftest.err
24692 rm -f conftest.er1
24693 cat conftest.err >&5
24694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); } && {
24696 test -z "$ac_c_werror_flag" ||
24697 test ! -s conftest.err
24698 } && test -s conftest.$ac_objext; then
24699 cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h. */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24706 #include <sys/types.h>
24707 #include <ieeefp.h>
24711 main ()
24713 if (sizeof ((fp_except)))
24714 return 0;
24716 return 0;
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24724 esac
24725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24726 $as_echo "$ac_try_echo") >&5
24727 (eval "$ac_compile") 2>conftest.er1
24728 ac_status=$?
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
24732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && {
24734 test -z "$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 } && test -s conftest.$ac_objext; then
24738 else
24739 $as_echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24742 ac_cv_type_fp_except=yes
24745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746 else
24747 $as_echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24755 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fp_except" >&5
24756 $as_echo "$ac_cv_type_fp_except" >&6; }
24757 if test "x$ac_cv_type_fp_except" = x""yes; then
24759 cat >>confdefs.h <<_ACEOF
24760 #define HAVE_FP_EXCEPT 1
24761 _ACEOF
24768 # Some system specific hacks
24771 MAX_C_OPTIMIZE="-O3"
24772 MAX_CXX_OPTIMIZE="-O3"
24774 case $SYSTEM_TYPE in
24775 *solaris2.7*)
24776 # Solaris 2.7 has a broken /usr/include/widec.h
24777 # Make a fixed copy in ./include
24778 { $as_echo "$as_me:$LINENO: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&5
24779 $as_echo "$as_me: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&2;}
24780 echo " - Creating local copy of widec.h"
24781 if test ! -d include
24782 then
24783 mkdir ./include
24785 builddir=`pwd`
24786 sed -e "s|^#if[ ]*!defined(lint) && !defined(__lint)|#if !defined\(lint\) \&\& !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
24787 CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
24788 CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
24790 *solaris2.8*)
24791 # Solaris 2.8 has a broken /usr/include/widec.h
24792 # Make a fixed copy in ./include
24793 { $as_echo "$as_me:$LINENO: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&5
24794 $as_echo "$as_me: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&2;}
24795 echo " - Creating local copy of widec.h"
24796 if test ! -d include
24797 then
24798 mkdir ./include
24800 builddir=`pwd`
24801 sed -e "s|^#if[ ]*!defined(__lint)|#if !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
24802 CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
24803 CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
24805 *solaris2.5.1*)
24806 { $as_echo "$as_me:$LINENO: WARNING: Enabling getpass() workaround for Solaris 2.5.1" >&5
24807 $as_echo "$as_me: WARNING: Enabling getpass() workaround for Solaris 2.5.1" >&2;}
24808 CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T";
24809 CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T -DSOLARIS"
24811 *solaris*)
24812 CFLAGS="$CFLAGS -DHAVE_RWLOCK_T"
24813 CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T"
24815 *SunOS*)
24816 { $as_echo "$as_me:$LINENO: WARNING: Enabling getpass() workaround for SunOS" >&5
24817 $as_echo "$as_me: WARNING: Enabling getpass() workaround for SunOS" >&2;}
24818 CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS";
24820 *hpux10.20*)
24821 { $as_echo "$as_me:$LINENO: WARNING: Enabling workarounds for hpux 10.20" >&5
24822 $as_echo "$as_me: WARNING: Enabling workarounds for hpux 10.20" >&2;}
24823 CFLAGS="$CFLAGS -DHAVE_BROKEN_SNPRINTF -DSIGNALS_DONT_BREAK_READ -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHPUX10 -DSIGNAL_WITH_VIO_CLOSE -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DHAVE_POSIX1003_4a_MUTEX"
24824 CXXFLAGS="$CXXFLAGS -DHAVE_BROKEN_SNPRINTF -D_INCLUDE_LONGLONG -DSIGNALS_DONT_BREAK_READ -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHPUX10 -DSIGNAL_WITH_VIO_CLOSE -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DHAVE_POSIX1003_4a_MUTEX"
24825 if test "$with_named_thread" = "no"
24826 then
24827 { $as_echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
24828 $as_echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
24829 with_named_thread="-lcma"
24832 *hpux11.*)
24833 { $as_echo "$as_me:$LINENO: WARNING: Enabling workarounds for hpux 11" >&5
24834 $as_echo "$as_me: WARNING: Enabling workarounds for hpux 11" >&2;}
24835 CFLAGS="$CFLAGS -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT"
24836 CXXFLAGS="$CXXFLAGS -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT"
24837 if test "$with_named_thread" = "no"
24838 then
24839 { $as_echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
24840 $as_echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
24841 with_named_thread="-lpthread"
24843 # Fixes for HPUX 11.0 compiler
24844 if test "$ac_cv_c_compiler_gnu" = "no"
24845 then
24846 CFLAGS="$CFLAGS -DHAVE_BROKEN_INLINE"
24847 # set working flags first in line, letting override it (i. e. for debug):
24848 CXXFLAGS="+O2 $CXXFLAGS"
24849 MAX_C_OPTIMIZE=""
24850 MAX_CXX_OPTIMIZE=""
24851 ndb_cxxflags_fix="$ndb_cxxflags_fix -Aa"
24854 *rhapsody*)
24855 if test "$ac_cv_c_compiler_gnu" = "yes"
24856 then
24857 CPPFLAGS="$CPPFLAGS -traditional-cpp "
24858 CFLAGS="-DHAVE_CTHREADS_WRAPPER -DDO_NOT_REMOVE_THREAD_WRAPPERS"
24859 CXXFLAGS="-DHAVE_CTHREADS_WRAPPER"
24860 if test $with_named_curses = "no"
24861 then
24862 with_named_curses=""
24866 *darwin5*)
24867 if test "$ac_cv_c_compiler_gnu" = "yes"
24868 then
24869 FLAGS="-traditional-cpp -DHAVE_DARWIN5_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH"
24870 CFLAGS="$CFLAGS $FLAGS"
24871 CXXFLAGS="$CXXFLAGS $FLAGS"
24872 MAX_C_OPTIMIZE="-O"
24873 with_named_curses=""
24876 *darwin6*)
24877 if test "$ac_cv_c_compiler_gnu" = "yes"
24878 then
24879 FLAGS="-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH -DDONT_DECLARE_CXA_PURE_VIRTUAL "
24880 CFLAGS="$CFLAGS $FLAGS"
24881 CXXFLAGS="$CXXFLAGS $FLAGS"
24882 MAX_C_OPTIMIZE="-O"
24885 *darwin*)
24886 if test "$ac_cv_c_compiler_gnu" = "yes"
24887 then
24888 FLAGS="-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL"
24889 CFLAGS="$CFLAGS $FLAGS"
24890 CXXFLAGS="$CXXFLAGS $FLAGS"
24891 MAX_C_OPTIMIZE="-O"
24894 *freebsd*|*dragonfly*)
24895 { $as_echo "$as_me:$LINENO: WARNING: Adding fix for interrupted reads" >&5
24896 $as_echo "$as_me: WARNING: Adding fix for interrupted reads" >&2;}
24897 OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'`
24898 if test "$OSVERSION" -gt "480100" && \
24899 test "$OSVERSION" -lt "500000" || \
24900 test "$OSVERSION" -gt "500109"
24901 then
24902 CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000"
24903 else
24904 CFLAGS="$CFLAGS -DHAVE_BROKEN_REALPATH"
24905 CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000 -DHAVE_BROKEN_REALPATH"
24908 *netbsd*)
24909 { $as_echo "$as_me:$LINENO: WARNING: Adding flag -Dunix" >&5
24910 $as_echo "$as_me: WARNING: Adding flag -Dunix" >&2;}
24911 CFLAGS="$CFLAGS -Dunix"
24912 CXXFLAGS="$CXXFLAGS -Dunix"
24913 OVERRIDE_MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a"
24915 *bsdi*)
24916 { $as_echo "$as_me:$LINENO: WARNING: Adding fix for BSDI" >&5
24917 $as_echo "$as_me: WARNING: Adding fix for BSDI" >&2;}
24918 CFLAGS="$CFLAGS -D__BSD__ -DHAVE_BROKEN_REALPATH"
24920 cat >>confdefs.h <<_ACEOF
24921 #define SOCKOPT_OPTLEN_TYPE size_t
24922 _ACEOF
24925 *sgi-irix6*)
24926 if test "$with_named_thread" = "no"
24927 then
24928 { $as_echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
24929 $as_echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
24930 with_named_thread="-lpthread"
24932 CXXFLAGS="$CXXFLAGS -D_BOOL"
24934 *aix4.3*)
24935 { $as_echo "$as_me:$LINENO: WARNING: Adding defines for AIX" >&5
24936 $as_echo "$as_me: WARNING: Adding defines for AIX" >&2;}
24937 CFLAGS="$CFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ"
24938 CXXFLAGS="$CXXFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ"
24940 *dec-osf*)
24941 if test "$ac_cv_c_compiler_gnu" = "yes" && test "$host_cpu" = "alpha"
24942 then
24943 { $as_echo "$as_me:$LINENO: WARNING: Adding defines for DEC OSF on alpha" >&5
24944 $as_echo "$as_me: WARNING: Adding defines for DEC OSF on alpha" >&2;}
24945 CFLAGS="$CFLAGS -mieee"
24946 CXXFLAGS="$CXXFLAGS -mieee"
24948 { $as_echo "$as_me:$LINENO: WARNING: Adding defines for OSF1" >&5
24949 $as_echo "$as_me: WARNING: Adding defines for OSF1" >&2;}
24950 # gethostbyname_r is deprecated and doesn't work ok on OSF1
24951 CFLAGS="$CFLAGS -DUNDEF_HAVE_GETHOSTBYNAME_R -DSNPRINTF_RETURN_TRUNC"
24952 CXXFLAGS="$CXXFLAGS -DUNDEF_HAVE_GETHOSTBYNAME_R -DSNPRINTF_RETURN_TRUNC"
24953 # fix to handle include of <stdint.h> correctly on OSF1 with cxx compiler
24954 CXXFLAGS="$CXXFLAGS -I/usr/include/cxx -I/usr/include/cxx_cname -I/usr/include -I/usr/include.dtk"
24956 *netware*)
24957 # No need for curses library so set it to null
24958 with_named_curses=""
24960 # No thread library - in LibC
24961 with_named_thread=""
24964 # Edit Makefile.in files.
24966 echo -n "configuring Makefile.in files for NetWare... "
24967 for file in sql/Makefile.in extra/Makefile.in client/Makefile.in
24969 # echo "#### $file ####"
24970 filedir="`dirname $file`"
24971 filebase="`basename $file`"
24972 filesed=$filedir/$filebase.sed
24974 # Backup and always use original file
24976 if test -f $file.bk
24977 then
24978 cp -fp $file.bk $file
24979 else
24980 cp -fp $file $file.bk
24982 case $file in
24983 sql/Makefile.in)
24984 # Use gen_lex_hash.linux instead of gen_lex_hash
24985 # Add library dependencies to mysqld_DEPENDENCIES
24986 lib_DEPENDENCIES="\$(openssl_libs) \$(yassl_libs)"
24987 cat > $filesed << EOF
24988 s,\(\./gen_lex_hash\)\$(EXEEXT),\1.linux,
24989 s%\(mysqld_DEPENDENCIES = \)%\1$lib_DEPENDENCIES %
24992 extra/Makefile.in)
24993 cat > $filesed << EOF
24994 s,\(extra/comp_err\)\$(EXEEXT),\1.linux,
24997 libmysql/Makefile.in)
24998 cat > $filesed << EOF
24999 s,libyassl.la,.libs/libyassl.a,
25000 s,libtaocrypt.la,.libs/libtaocrypt.a,
25003 libmysql_r/Makefile.in)
25004 cat > $filesed << EOF
25005 s,libyassl.la,.libs/libyassl.a,
25006 s,libtaocrypt.la,.libs/libtaocrypt.a,
25009 client/Makefile.in)
25011 cat > $filesed << EOF
25012 s,libmysqlclient.la,.libs/libmysqlclient.a,
25015 esac
25016 if `sed -f $filesed $file > $file.nw`;\
25017 then
25018 mv -f $file.nw $file
25019 rm -f $filesed
25020 else
25021 exit 1
25023 # wait for file system changes to complete
25024 sleep 1
25025 done
25026 echo "done"
25029 # Make sure the following files are writable.
25031 # When the files are retrieved from some source code control systems they are read-only.
25033 echo -n "making sure specific build files are writable... "
25034 for file in \
25035 Docs/manual.chm \
25036 Docs/mysql.info \
25037 Docs/INSTALL-BINARY \
25038 INSTALL-SOURCE \
25039 COPYING
25041 if test -e $file; then
25042 chmod +w $file
25044 done
25045 echo "done"
25048 esac
25051 #---START: Used in for client configure
25052 # Check if we threads are in libc or if we should use
25053 # -lpthread, -lpthreads or mit-pthreads
25054 # We have to check libc last because else it fails on Solaris 2.6
25056 with_posix_threads="no"
25057 # Search thread lib on Linux
25058 if test "$with_named_thread" = "no"
25059 then
25060 { $as_echo "$as_me:$LINENO: checking \"Linux threads\"" >&5
25061 $as_echo_n "checking \"Linux threads\"... " >&6; }
25062 if test "$TARGET_LINUX" = "true"
25063 then
25064 { $as_echo "$as_me:$LINENO: result: \"starting\"" >&5
25065 $as_echo "\"starting\"" >&6; }
25066 # use getconf to check glibc contents
25067 { $as_echo "$as_me:$LINENO: checking \"getconf GNU_LIBPTHREAD_VERSION\"" >&5
25068 $as_echo_n "checking \"getconf GNU_LIBPTHREAD_VERSION\"... " >&6; }
25069 case `getconf GNU_LIBPTHREAD_VERSION | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` in
25070 NPTL* )
25071 { $as_echo "$as_me:$LINENO: result: \"NPTL\"" >&5
25072 $as_echo "\"NPTL\"" >&6; }
25074 cat >>confdefs.h <<\_ACEOF
25075 #define HAVE_NPTL 1
25076 _ACEOF
25078 with_named_thread="-lpthread"
25080 LINUXTHREADS* )
25081 { $as_echo "$as_me:$LINENO: result: \"Linuxthreads\"" >&5
25082 $as_echo "\"Linuxthreads\"" >&6; }
25084 cat >>confdefs.h <<\_ACEOF
25085 #define HAVE_LINUXTHREADS 1
25086 _ACEOF
25088 with_named_thread="-lpthread"
25091 { $as_echo "$as_me:$LINENO: result: \"unknown\"" >&5
25092 $as_echo "\"unknown\"" >&6; }
25094 esac
25095 if test "$with_named_thread" = "no"
25096 then
25097 # old method, check headers
25098 # Look for LinuxThreads.
25099 { $as_echo "$as_me:$LINENO: checking \"LinuxThreads in header file comment\"" >&5
25100 $as_echo_n "checking \"LinuxThreads in header file comment\"... " >&6; }
25101 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
25102 if test "$res" -gt 0
25103 then
25104 { $as_echo "$as_me:$LINENO: result: \"Found\"" >&5
25105 $as_echo "\"Found\"" >&6; }
25107 cat >>confdefs.h <<\_ACEOF
25108 #define HAVE_LINUXTHREADS 1
25109 _ACEOF
25111 # Linux 2.0 sanity check
25112 cat >conftest.$ac_ext <<_ACEOF
25113 /* confdefs.h. */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118 #include <sched.h>
25120 main ()
25122 int a = sched_get_priority_min(1);
25124 return 0;
25126 _ACEOF
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25132 esac
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25146 else
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 { { $as_echo "$as_me:$LINENO: error: Syntax error in sched.h. Change _P to __P in the /usr/include/sched.h file. See the Installation chapter in the Reference Manual" >&5
25151 $as_echo "$as_me: error: Syntax error in sched.h. Change _P to __P in the /usr/include/sched.h file. See the Installation chapter in the Reference Manual" >&2;}
25152 { (exit 1); exit 1; }; }
25155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 # RedHat 5.0 does not work with dynamic linking of this. -static also
25157 # gives a speed increase in linux so it does not hurt on other systems.
25158 with_named_thread="-lpthread"
25159 else
25160 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
25161 $as_echo "\"Not found\"" >&6; }
25162 # If this is a linux machine we should barf
25163 { { $as_echo "$as_me:$LINENO: error: This is a Linux system without a working getconf,
25164 and Linuxthreads was not found. Please install it (or a new glibc) and try again.
25165 See the Installation chapter in the Reference Manual for more information." >&5
25166 $as_echo "$as_me: error: This is a Linux system without a working getconf,
25167 and Linuxthreads was not found. Please install it (or a new glibc) and try again.
25168 See the Installation chapter in the Reference Manual for more information." >&2;}
25169 { (exit 1); exit 1; }; }
25171 else
25172 { $as_echo "$as_me:$LINENO: result: \"no need to check headers\"" >&5
25173 $as_echo "\"no need to check headers\"" >&6; }
25176 { $as_echo "$as_me:$LINENO: checking \"for pthread_create in -lpthread\"" >&5
25177 $as_echo_n "checking \"for pthread_create in -lpthread\"... " >&6; }
25178 ac_save_LIBS="$LIBS"
25179 LIBS="$LIBS -lpthread"
25180 cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h. */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186 #include <pthread.h>
25188 main ()
25190 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
25192 return 0;
25194 _ACEOF
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (ac_try="$ac_link"
25197 case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25200 esac
25201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25202 $as_echo "$ac_try_echo") >&5
25203 (eval "$ac_link") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest$ac_exeext && {
25213 test "$cross_compiling" = yes ||
25214 $as_test_x conftest$ac_exeext
25215 }; then
25216 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25217 $as_echo "\"yes\"" >&6; }
25218 else
25219 $as_echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25222 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25223 $as_echo "\"no\"" >&6; }
25224 { { $as_echo "$as_me:$LINENO: error:
25225 This is a Linux system claiming to support threads, either Linuxthreads or NPTL, but linking a test program failed.
25226 Please install one of these (or a new glibc) and try again.
25227 See the Installation chapter in the Reference Manual for more information." >&5
25228 $as_echo "$as_me: error:
25229 This is a Linux system claiming to support threads, either Linuxthreads or NPTL, but linking a test program failed.
25230 Please install one of these (or a new glibc) and try again.
25231 See the Installation chapter in the Reference Manual for more information." >&2;}
25232 { (exit 1); exit 1; }; }
25236 rm -rf conftest.dSYM
25237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25238 conftest$ac_exeext conftest.$ac_ext
25239 LIBS="$ac_save_LIBS"
25240 else
25241 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25242 $as_echo "\"no\"" >&6; }
25243 fi # "$TARGET_LINUX"
25244 fi # "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
25247 # Hack for DEC-UNIX (OSF1 -> Tru64)
25248 if test "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
25249 then
25250 { $as_echo "$as_me:$LINENO: checking \"DEC threads post OSF/1 3.2\"" >&5
25251 $as_echo_n "checking \"DEC threads post OSF/1 3.2\"... " >&6; }
25252 if test -f /usr/shlib/libpthread.so -a -f /usr/lib/libmach.a -a -f /usr/ccs/lib/cmplrs/cc/libexc.a
25253 then
25254 with_named_thread="-lpthread -lmach -lexc"
25255 CFLAGS="$CFLAGS -D_REENTRANT"
25256 CXXFLAGS="$CXXFLAGS -D_REENTRANT"
25258 cat >>confdefs.h <<\_ACEOF
25259 #define HAVE_DEC_THREADS 1
25260 _ACEOF
25262 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25263 $as_echo "\"yes\"" >&6; }
25264 else
25265 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25266 $as_echo "\"no\"" >&6; }
25267 fi # DEC threads
25268 fi # "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
25272 # Hack for SCO UNIX
25273 if test "$with_named_thread" = "no"
25274 then
25275 { $as_echo "$as_me:$LINENO: checking \"SCO threads\"" >&5
25276 $as_echo_n "checking \"SCO threads\"... " >&6; }
25277 if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
25278 then
25279 if test -f /usr/lib/libgthreads.a -o -f /usr/lib/libgthreads.so
25280 then
25282 LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
25284 with_named_thread="-lgthreads -lsocket -lgthreads"
25285 # sched.h conflicts with fsu-threads
25286 touch ./include/sched.h
25287 touch ./include/semaphore.h
25289 # We must have gcc
25290 if expr "$CC" : ".*gcc.*"
25291 then
25292 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25293 $as_echo "\"yes\"" >&6; }
25294 else
25295 { { $as_echo "$as_me:$LINENO: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&5
25296 $as_echo "$as_me: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&2;}
25297 { (exit 1); exit 1; }; }
25299 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25300 $as_echo "\"yes\"" >&6; }
25301 elif test -f /usr/local/lib/libpthread.a -o -f /usr/local/lib/libpthread.so
25302 then
25304 LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
25306 with_named_thread="-lpthread -lsocket"
25307 # sched.h conflicts with fsu-threads
25308 # touch ./include/sched.h
25310 { $as_echo "$as_me:$LINENO: checking \"for gcc\"" >&5
25311 $as_echo_n "checking \"for gcc\"... " >&6; }
25312 # We must have gcc
25313 if expr "$CC" : ".*gcc.*"
25314 then
25315 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25316 $as_echo "\"yes\"" >&6; }
25317 else
25318 { { $as_echo "$as_me:$LINENO: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&5
25319 $as_echo "$as_me: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&2;}
25320 { (exit 1); exit 1; }; }
25322 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25323 $as_echo "\"yes\"" >&6; }
25324 # Hack for SCO UnixWare 7.1.x
25326 elif test "$with_named_thread" = "no"
25327 then
25328 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25329 $as_echo "\"no\"" >&6; }
25330 { $as_echo "$as_me:$LINENO: checking \"SCO UnixWare 7.1.x native threads\"" >&5
25331 $as_echo_n "checking \"SCO UnixWare 7.1.x native threads\"... " >&6; }
25332 if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
25333 then
25334 if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
25335 then
25337 LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
25339 if expr "$CC" : ".*gcc.*"
25340 then
25341 with_named_thread="-pthread -lsocket -lnsl"
25342 else
25343 with_named_thread="-Kthread -lsocket -lnsl"
25345 if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
25346 then
25347 cat >>confdefs.h <<\_ACEOF
25348 #define HAVE_UNIXWARE7_THREADS 1
25349 _ACEOF
25352 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25353 $as_echo "\"yes\"" >&6; }
25354 # We must have cc
25355 { $as_echo "$as_me:$LINENO: checking \"for gcc\"" >&5
25356 $as_echo_n "checking \"for gcc\"... " >&6; }
25357 if expr "$CC" : ".*gcc.*"
25358 then
25359 CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
25360 CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
25361 else
25362 CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
25363 CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
25365 else
25366 { { $as_echo "$as_me:$LINENO: error: configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." >&5
25367 $as_echo "$as_me: error: configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." >&2;}
25368 { (exit 1); exit 1; }; }
25370 else
25371 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25372 $as_echo "\"no\"" >&6; }
25374 else
25375 { { $as_echo "$as_me:$LINENO: error: On SCO UNIX MySQL requires that the FSUThreads package is installed. See the Installation chapter in the Reference Manual." >&5
25376 $as_echo "$as_me: error: On SCO UNIX MySQL requires that the FSUThreads package is installed. See the Installation chapter in the Reference Manual." >&2;}
25377 { (exit 1); exit 1; }; }
25379 else
25380 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25381 $as_echo "\"no\"" >&6; }
25386 # Check for SCO threading libraries
25388 if test "$with_named_thread" = "no"
25389 then
25390 { $as_echo "$as_me:$LINENO: checking SCO OpenServer 6, UnixWare 7 or OpenUNIX 8 native threads" >&5
25391 $as_echo_n "checking SCO OpenServer 6, UnixWare 7 or OpenUNIX 8 native threads... " >&6; }
25392 if expr "$SYSTEM_TYPE" : ".*UnixWare.*" > /dev/null || \
25393 expr "$SYSTEM_TYPE" : ".*SCO_SV6.*" > /dev/null || \
25394 expr "$SYSTEM_TYPE" : ".*OpenUNIX.*" > /dev/null
25395 then
25396 if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
25397 then
25399 LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
25401 if expr "$CC" : ".*gcc.*" > /dev/null
25402 then
25403 with_named_thread="-pthread -lsocket -lnsl"
25404 CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
25405 CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
25406 else
25407 with_named_thread="-Kthread -lsocket -lnsl"
25408 CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
25409 CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
25411 if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
25412 then
25414 cat >>confdefs.h <<\_ACEOF
25415 #define HAVE_UNIXWARE7_THREADS 1
25416 _ACEOF
25419 { $as_echo "$as_me:$LINENO: result: yes" >&5
25420 $as_echo "yes" >&6; }
25421 else
25422 { { $as_echo "$as_me:$LINENO: error: configure: error: Can't find thread library on SCO/Caldera system. See the Installation chapter in the Reference Manual." >&5
25423 $as_echo "$as_me: error: configure: error: Can't find thread library on SCO/Caldera system. See the Installation chapter in the Reference Manual." >&2;}
25424 { (exit 1); exit 1; }; }
25426 else
25427 { $as_echo "$as_me:$LINENO: result: no" >&5
25428 $as_echo "no" >&6; }
25432 # Hack for Siemens UNIX
25433 if test "$with_named_thread" = "no"
25434 then
25435 { $as_echo "$as_me:$LINENO: checking \"Siemens threads\"" >&5
25436 $as_echo_n "checking \"Siemens threads\"... " >&6; }
25437 if test -f /usr/lib/libxnet.so -a "$SYSTEM_TYPE" = "sni-sysv4"
25438 then
25439 LIBS="-lxnet $LIBS"
25440 NON_THREADED_LIBS="-lxnet $NON_THREADED_LIBS"
25441 with_named_thread="-Kthread $LDFLAGS -lxnet"
25442 LD_FLAGS=""
25443 CFLAGS="-Kthread $CFLAGS"
25444 CXXFLAGS="-Kthread $CXXFLAGS"
25445 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25446 $as_echo "\"yes\"" >&6; }
25447 else
25448 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25449 $as_echo "\"no\"" >&6; }
25453 # Use library named -lpthread
25454 if test "$with_named_thread" = "no" -a "$with_pthread" = "yes"
25455 then
25456 with_named_thread="-lpthread"
25459 #---END:
25461 # Hack for Solaris >= 2.5
25462 # We want both the new and the old interface
25464 if test "$with_named_thread" = "no"
25465 then
25466 { $as_echo "$as_me:$LINENO: checking \"Solaris threads\"" >&5
25467 $as_echo_n "checking \"Solaris threads\"... " >&6; }
25468 if test -f /usr/lib/libpthread.so -a -f /usr/lib/libthread.so
25469 then
25470 with_named_thread="-lpthread -lthread"
25471 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
25472 $as_echo "\"yes\"" >&6; }
25473 else
25474 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25475 $as_echo "\"no\"" >&6; }
25479 # Should we use named pthread library ?
25480 { $as_echo "$as_me:$LINENO: checking \"named thread libs:\"" >&5
25481 $as_echo_n "checking \"named thread libs:\"... " >&6; }
25482 if test "$with_named_thread" != "no"
25483 then
25484 LIBS="$with_named_thread $LIBS $with_named_thread"
25485 CLIENT_THREAD_LIBS="$with_named_thread"
25486 with_posix_threads="yes"
25487 { $as_echo "$as_me:$LINENO: result: \"$with_named_thread\"" >&5
25488 $as_echo "\"$with_named_thread\"" >&6; }
25489 else
25490 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
25491 $as_echo "\"no\"" >&6; }
25492 # pthread_create is in standard libraries (As in BSDI 3.0)
25493 { $as_echo "$as_me:$LINENO: checking \"for pthread_create in -libc\"" >&5
25494 $as_echo_n "checking \"for pthread_create in -libc\"... " >&6; };
25495 cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h. */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 #include <pthread.h>
25503 main ()
25505 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
25507 return 0;
25509 _ACEOF
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (ac_try="$ac_link"
25512 case "(($ac_try" in
25513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514 *) ac_try_echo=$ac_try;;
25515 esac
25516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25517 $as_echo "$ac_try_echo") >&5
25518 (eval "$ac_link") 2>conftest.er1
25519 ac_status=$?
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
25523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } && {
25525 test -z "$ac_c_werror_flag" ||
25526 test ! -s conftest.err
25527 } && test -s conftest$ac_exeext && {
25528 test "$cross_compiling" = yes ||
25529 $as_test_x conftest$ac_exeext
25530 }; then
25531 with_posix_threads=yes
25532 else
25533 $as_echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 with_posix_threads=no
25539 rm -rf conftest.dSYM
25540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25541 conftest$ac_exeext conftest.$ac_ext
25542 { $as_echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
25543 $as_echo "\"$with_posix_threads\"" >&6; }
25544 if test "$with_posix_threads" = "no"
25545 then
25546 { $as_echo "$as_me:$LINENO: checking \"for pthread_create in -lpthread\"" >&5
25547 $as_echo_n "checking \"for pthread_create in -lpthread\"... " >&6; }
25548 ac_save_LIBS="$LIBS"
25549 LIBS="$LIBS -lpthread"
25550 CLIENT_THREAD_LIBS="-lpthread"
25551 cat >conftest.$ac_ext <<_ACEOF
25552 /* confdefs.h. */
25553 _ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 #include <pthread.h>
25559 main ()
25561 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
25563 return 0;
25565 _ACEOF
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (ac_try="$ac_link"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25571 esac
25572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25573 $as_echo "$ac_try_echo") >&5
25574 (eval "$ac_link") 2>conftest.er1
25575 ac_status=$?
25576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
25579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest$ac_exeext && {
25584 test "$cross_compiling" = yes ||
25585 $as_test_x conftest$ac_exeext
25586 }; then
25587 with_posix_threads=yes
25588 else
25589 $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 with_posix_threads=no
25595 rm -rf conftest.dSYM
25596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25597 conftest$ac_exeext conftest.$ac_ext
25598 { $as_echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
25599 $as_echo "\"$with_posix_threads\"" >&6; }
25600 if test "$with_posix_threads" = "no"
25601 then
25602 LIBS=" $ac_save_LIBS -lpthreads"
25603 CLIENT_THREAD_LIBS="-lpthreads"
25604 { $as_echo "$as_me:$LINENO: checking \"for pthread_create in -lpthreads\"" >&5
25605 $as_echo_n "checking \"for pthread_create in -lpthreads\"... " >&6; }
25606 cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h. */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h. */
25612 #include <pthread.h>
25614 main ()
25616 pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
25618 return 0;
25620 _ACEOF
25621 rm -f conftest.$ac_objext conftest$ac_exeext
25622 if { (ac_try="$ac_link"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25626 esac
25627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25628 $as_echo "$ac_try_echo") >&5
25629 (eval "$ac_link") 2>conftest.er1
25630 ac_status=$?
25631 grep -v '^ *+' conftest.er1 >conftest.err
25632 rm -f conftest.er1
25633 cat conftest.err >&5
25634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); } && {
25636 test -z "$ac_c_werror_flag" ||
25637 test ! -s conftest.err
25638 } && test -s conftest$ac_exeext && {
25639 test "$cross_compiling" = yes ||
25640 $as_test_x conftest$ac_exeext
25641 }; then
25642 with_posix_threads=yes
25643 else
25644 $as_echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25647 with_posix_threads=no
25650 rm -rf conftest.dSYM
25651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25652 conftest$ac_exeext conftest.$ac_ext
25653 { $as_echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
25654 $as_echo "\"$with_posix_threads\"" >&6; }
25655 if test "$with_posix_threads" = "no"
25656 then
25657 # This is for FreeBSD
25658 LIBS="$ac_save_LIBS -pthread"
25659 CLIENT_THREAD_LIBS="-pthread"
25660 { $as_echo "$as_me:$LINENO: checking \"for pthread_create in -pthread\"" >&5
25661 $as_echo_n "checking \"for pthread_create in -pthread\"... " >&6; }
25662 cat >conftest.$ac_ext <<_ACEOF
25663 /* confdefs.h. */
25664 _ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25668 #include <pthread.h>
25670 main ()
25672 pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
25674 return 0;
25676 _ACEOF
25677 rm -f conftest.$ac_objext conftest$ac_exeext
25678 if { (ac_try="$ac_link"
25679 case "(($ac_try" in
25680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25681 *) ac_try_echo=$ac_try;;
25682 esac
25683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25684 $as_echo "$ac_try_echo") >&5
25685 (eval "$ac_link") 2>conftest.er1
25686 ac_status=$?
25687 grep -v '^ *+' conftest.er1 >conftest.err
25688 rm -f conftest.er1
25689 cat conftest.err >&5
25690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); } && {
25692 test -z "$ac_c_werror_flag" ||
25693 test ! -s conftest.err
25694 } && test -s conftest$ac_exeext && {
25695 test "$cross_compiling" = yes ||
25696 $as_test_x conftest$ac_exeext
25697 }; then
25698 with_posix_threads=yes
25699 else
25700 $as_echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25703 with_posix_threads=no
25706 rm -rf conftest.dSYM
25707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25708 conftest$ac_exeext conftest.$ac_ext
25709 { $as_echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
25710 $as_echo "\"$with_posix_threads\"" >&6; }
25716 #---START: Used in for client configure
25717 # Must be checked after, because strtok_r may be in -lpthread
25718 # On AIX strtok_r is in libc_r
25720 my_save_LIBS="$LIBS"
25722 { $as_echo "$as_me:$LINENO: checking for strtok_r in -lpthread" >&5
25723 $as_echo_n "checking for strtok_r in -lpthread... " >&6; }
25724 if test "${ac_cv_lib_pthread_strtok_r+set}" = set; then
25725 $as_echo_n "(cached) " >&6
25726 else
25727 ac_check_lib_save_LIBS=$LIBS
25728 LIBS="-lpthread $LIBS"
25729 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h. */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25736 /* Override any GCC internal prototype to avoid an error.
25737 Use char because int might match the return type of a GCC
25738 builtin and then its argument prototype would still apply. */
25739 #ifdef __cplusplus
25740 extern "C"
25741 #endif
25742 char strtok_r ();
25744 main ()
25746 return strtok_r ();
25748 return 0;
25750 _ACEOF
25751 rm -f conftest.$ac_objext conftest$ac_exeext
25752 if { (ac_try="$ac_link"
25753 case "(($ac_try" in
25754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755 *) ac_try_echo=$ac_try;;
25756 esac
25757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25758 $as_echo "$ac_try_echo") >&5
25759 (eval "$ac_link") 2>conftest.er1
25760 ac_status=$?
25761 grep -v '^ *+' conftest.er1 >conftest.err
25762 rm -f conftest.er1
25763 cat conftest.err >&5
25764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && {
25766 test -z "$ac_c_werror_flag" ||
25767 test ! -s conftest.err
25768 } && test -s conftest$ac_exeext && {
25769 test "$cross_compiling" = yes ||
25770 $as_test_x conftest$ac_exeext
25771 }; then
25772 ac_cv_lib_pthread_strtok_r=yes
25773 else
25774 $as_echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_cv_lib_pthread_strtok_r=no
25780 rm -rf conftest.dSYM
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782 conftest$ac_exeext conftest.$ac_ext
25783 LIBS=$ac_check_lib_save_LIBS
25785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_strtok_r" >&5
25786 $as_echo "$ac_cv_lib_pthread_strtok_r" >&6; }
25787 if test "x$ac_cv_lib_pthread_strtok_r" = x""yes; then
25788 cat >>confdefs.h <<_ACEOF
25789 #define HAVE_LIBPTHREAD 1
25790 _ACEOF
25792 LIBS="-lpthread $LIBS"
25796 LIBS="$my_save_LIBS"
25797 if test "$ac_cv_lib_pthread_strtok_r" = "no"
25798 then
25800 { $as_echo "$as_me:$LINENO: checking for strtok_r in -lc_r" >&5
25801 $as_echo_n "checking for strtok_r in -lc_r... " >&6; }
25802 if test "${ac_cv_lib_c_r_strtok_r+set}" = set; then
25803 $as_echo_n "(cached) " >&6
25804 else
25805 ac_check_lib_save_LIBS=$LIBS
25806 LIBS="-lc_r $LIBS"
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h. */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25814 /* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char strtok_r ();
25822 main ()
25824 return strtok_r ();
25826 return 0;
25828 _ACEOF
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25834 esac
25835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25836 $as_echo "$ac_try_echo") >&5
25837 (eval "$ac_link") 2>conftest.er1
25838 ac_status=$?
25839 grep -v '^ *+' conftest.er1 >conftest.err
25840 rm -f conftest.er1
25841 cat conftest.err >&5
25842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } && {
25844 test -z "$ac_c_werror_flag" ||
25845 test ! -s conftest.err
25846 } && test -s conftest$ac_exeext && {
25847 test "$cross_compiling" = yes ||
25848 $as_test_x conftest$ac_exeext
25849 }; then
25850 ac_cv_lib_c_r_strtok_r=yes
25851 else
25852 $as_echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 ac_cv_lib_c_r_strtok_r=no
25858 rm -rf conftest.dSYM
25859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25860 conftest$ac_exeext conftest.$ac_ext
25861 LIBS=$ac_check_lib_save_LIBS
25863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_strtok_r" >&5
25864 $as_echo "$ac_cv_lib_c_r_strtok_r" >&6; }
25865 if test "x$ac_cv_lib_c_r_strtok_r" = x""yes; then
25866 cat >>confdefs.h <<_ACEOF
25867 #define HAVE_LIBC_R 1
25868 _ACEOF
25870 LIBS="-lc_r $LIBS"
25874 case "$with_osf32_threads---$target_os" in
25875 # Don't keep -lc_r in LIBS; -pthread handles it magically
25876 yes---* | *---freebsd* | *---hpux*) LIBS="$my_save_LIBS" ;;
25878 esac
25881 for ac_func in strtok_r pthread_init
25883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25885 $as_echo_n "checking for $ac_func... " >&6; }
25886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25887 $as_echo_n "(cached) " >&6
25888 else
25889 cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25897 #define $ac_func innocuous_$ac_func
25899 /* System header to define __stub macros and hopefully few prototypes,
25900 which can conflict with char $ac_func (); below.
25901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902 <limits.h> exists even on freestanding compilers. */
25904 #ifdef __STDC__
25905 # include <limits.h>
25906 #else
25907 # include <assert.h>
25908 #endif
25910 #undef $ac_func
25912 /* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 char $ac_func ();
25919 /* The GNU C library defines this for functions which it implements
25920 to always fail with ENOSYS. Some functions are actually named
25921 something starting with __ and the normal name is an alias. */
25922 #if defined __stub_$ac_func || defined __stub___$ac_func
25923 choke me
25924 #endif
25927 main ()
25929 return $ac_func ();
25931 return 0;
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25939 esac
25940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25941 $as_echo "$ac_try_echo") >&5
25942 (eval "$ac_link") 2>conftest.er1
25943 ac_status=$?
25944 grep -v '^ *+' conftest.er1 >conftest.err
25945 rm -f conftest.er1
25946 cat conftest.err >&5
25947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } && {
25949 test -z "$ac_c_werror_flag" ||
25950 test ! -s conftest.err
25951 } && test -s conftest$ac_exeext && {
25952 test "$cross_compiling" = yes ||
25953 $as_test_x conftest$ac_exeext
25954 }; then
25955 eval "$as_ac_var=yes"
25956 else
25957 $as_echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25960 eval "$as_ac_var=no"
25963 rm -rf conftest.dSYM
25964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25965 conftest$ac_exeext conftest.$ac_ext
25967 ac_res=`eval 'as_val=${'$as_ac_var'}
25968 $as_echo "$as_val"'`
25969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25970 $as_echo "$ac_res" >&6; }
25971 as_val=`eval 'as_val=${'$as_ac_var'}
25972 $as_echo "$as_val"'`
25973 if test "x$as_val" = x""yes; then
25974 cat >>confdefs.h <<_ACEOF
25975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25976 _ACEOF
25979 done
25981 else
25983 for ac_func in strtok_r
25985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25986 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25987 $as_echo_n "checking for $ac_func... " >&6; }
25988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25989 $as_echo_n "(cached) " >&6
25990 else
25991 cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h. */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25999 #define $ac_func innocuous_$ac_func
26001 /* System header to define __stub macros and hopefully few prototypes,
26002 which can conflict with char $ac_func (); below.
26003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004 <limits.h> exists even on freestanding compilers. */
26006 #ifdef __STDC__
26007 # include <limits.h>
26008 #else
26009 # include <assert.h>
26010 #endif
26012 #undef $ac_func
26014 /* Override any GCC internal prototype to avoid an error.
26015 Use char because int might match the return type of a GCC
26016 builtin and then its argument prototype would still apply. */
26017 #ifdef __cplusplus
26018 extern "C"
26019 #endif
26020 char $ac_func ();
26021 /* The GNU C library defines this for functions which it implements
26022 to always fail with ENOSYS. Some functions are actually named
26023 something starting with __ and the normal name is an alias. */
26024 #if defined __stub_$ac_func || defined __stub___$ac_func
26025 choke me
26026 #endif
26029 main ()
26031 return $ac_func ();
26033 return 0;
26035 _ACEOF
26036 rm -f conftest.$ac_objext conftest$ac_exeext
26037 if { (ac_try="$ac_link"
26038 case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26041 esac
26042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26043 $as_echo "$ac_try_echo") >&5
26044 (eval "$ac_link") 2>conftest.er1
26045 ac_status=$?
26046 grep -v '^ *+' conftest.er1 >conftest.err
26047 rm -f conftest.er1
26048 cat conftest.err >&5
26049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } && {
26051 test -z "$ac_c_werror_flag" ||
26052 test ! -s conftest.err
26053 } && test -s conftest$ac_exeext && {
26054 test "$cross_compiling" = yes ||
26055 $as_test_x conftest$ac_exeext
26056 }; then
26057 eval "$as_ac_var=yes"
26058 else
26059 $as_echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 eval "$as_ac_var=no"
26065 rm -rf conftest.dSYM
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067 conftest$ac_exeext conftest.$ac_ext
26069 ac_res=`eval 'as_val=${'$as_ac_var'}
26070 $as_echo "$as_val"'`
26071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26072 $as_echo "$ac_res" >&6; }
26073 as_val=`eval 'as_val=${'$as_ac_var'}
26074 $as_echo "$as_val"'`
26075 if test "x$as_val" = x""yes; then
26076 cat >>confdefs.h <<_ACEOF
26077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26078 _ACEOF
26081 done
26084 #---END:
26086 # dlopen, dlerror
26087 case "$with_mysqld_ldflags " in
26089 *"-all-static "*)
26090 # No need to check for dlopen when mysqld is linked with
26091 # -all-static as it won't be able to load any functions.
26092 # NOTE! It would be better if it was possible to test if dlopen
26093 # can be used, but a good way to test it couldn't be found
26098 # Check for dlopen, needed for user definable functions
26099 # This must be checked after threads on AIX
26100 # We only need this for mysqld, not for the clients.
26102 my_save_LIBS="$LIBS"
26103 LIBS=""
26105 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26106 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26108 $as_echo_n "(cached) " >&6
26109 else
26110 ac_check_lib_save_LIBS=$LIBS
26111 LIBS="-ldl $LIBS"
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h. */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26119 /* Override any GCC internal prototype to avoid an error.
26120 Use char because int might match the return type of a GCC
26121 builtin and then its argument prototype would still apply. */
26122 #ifdef __cplusplus
26123 extern "C"
26124 #endif
26125 char dlopen ();
26127 main ()
26129 return dlopen ();
26131 return 0;
26133 _ACEOF
26134 rm -f conftest.$ac_objext conftest$ac_exeext
26135 if { (ac_try="$ac_link"
26136 case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26139 esac
26140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26141 $as_echo "$ac_try_echo") >&5
26142 (eval "$ac_link") 2>conftest.er1
26143 ac_status=$?
26144 grep -v '^ *+' conftest.er1 >conftest.err
26145 rm -f conftest.er1
26146 cat conftest.err >&5
26147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } && {
26149 test -z "$ac_c_werror_flag" ||
26150 test ! -s conftest.err
26151 } && test -s conftest$ac_exeext && {
26152 test "$cross_compiling" = yes ||
26153 $as_test_x conftest$ac_exeext
26154 }; then
26155 ac_cv_lib_dl_dlopen=yes
26156 else
26157 $as_echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 ac_cv_lib_dl_dlopen=no
26163 rm -rf conftest.dSYM
26164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26165 conftest$ac_exeext conftest.$ac_ext
26166 LIBS=$ac_check_lib_save_LIBS
26168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26169 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26170 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
26171 cat >>confdefs.h <<_ACEOF
26172 #define HAVE_LIBDL 1
26173 _ACEOF
26175 LIBS="-ldl $LIBS"
26179 LIBDL=$LIBS
26180 LIBS="$my_save_LIBS"
26183 my_save_LIBS="$LIBS"
26184 LIBS="$LIBS $LIBDL"
26187 for ac_func in dlopen dlerror
26189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26190 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26191 $as_echo_n "checking for $ac_func... " >&6; }
26192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26193 $as_echo_n "(cached) " >&6
26194 else
26195 cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h. */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26203 #define $ac_func innocuous_$ac_func
26205 /* System header to define __stub macros and hopefully few prototypes,
26206 which can conflict with char $ac_func (); below.
26207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208 <limits.h> exists even on freestanding compilers. */
26210 #ifdef __STDC__
26211 # include <limits.h>
26212 #else
26213 # include <assert.h>
26214 #endif
26216 #undef $ac_func
26218 /* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26221 #ifdef __cplusplus
26222 extern "C"
26223 #endif
26224 char $ac_func ();
26225 /* The GNU C library defines this for functions which it implements
26226 to always fail with ENOSYS. Some functions are actually named
26227 something starting with __ and the normal name is an alias. */
26228 #if defined __stub_$ac_func || defined __stub___$ac_func
26229 choke me
26230 #endif
26233 main ()
26235 return $ac_func ();
26237 return 0;
26239 _ACEOF
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26245 esac
26246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26247 $as_echo "$ac_try_echo") >&5
26248 (eval "$ac_link") 2>conftest.er1
26249 ac_status=$?
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
26253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && {
26255 test -z "$ac_c_werror_flag" ||
26256 test ! -s conftest.err
26257 } && test -s conftest$ac_exeext && {
26258 test "$cross_compiling" = yes ||
26259 $as_test_x conftest$ac_exeext
26260 }; then
26261 eval "$as_ac_var=yes"
26262 else
26263 $as_echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26266 eval "$as_ac_var=no"
26269 rm -rf conftest.dSYM
26270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26271 conftest$ac_exeext conftest.$ac_ext
26273 ac_res=`eval 'as_val=${'$as_ac_var'}
26274 $as_echo "$as_val"'`
26275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26276 $as_echo "$ac_res" >&6; }
26277 as_val=`eval 'as_val=${'$as_ac_var'}
26278 $as_echo "$as_val"'`
26279 if test "x$as_val" = x""yes; then
26280 cat >>confdefs.h <<_ACEOF
26281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26282 _ACEOF
26285 done
26287 LIBS="$my_save_LIBS"
26290 esac
26293 # System characteristics
26294 case $SYSTEM_TYPE in
26295 *netware*) ;;
26297 { $as_echo "$as_me:$LINENO: checking for restartable system calls" >&5
26298 $as_echo_n "checking for restartable system calls... " >&6; }
26299 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
26300 $as_echo_n "(cached) " >&6
26301 else
26302 if test "$cross_compiling" = yes; then
26303 $as_echo "Skipping...! bwq518"
26304 # { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26305 #$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26306 #{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26307 #See \`config.log' for more details." >&5
26308 #$as_echo "$as_me: error: cannot run test program while cross compiling
26309 #See \`config.log' for more details." >&2;}
26310 # { (exit 1); exit 1; }; }; }
26311 else
26312 cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h. */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h. */
26318 /* Exit 0 (true) if wait returns something other than -1,
26319 i.e. the pid of the child, which means that wait was restarted
26320 after getting the signal. */
26322 $ac_includes_default
26323 #include <signal.h>
26324 #ifdef HAVE_SYS_WAIT_H
26325 # include <sys/wait.h>
26326 #endif
26328 /* Some platforms explicitly require an extern "C" signal handler
26329 when using C++. */
26330 #ifdef __cplusplus
26331 extern "C" void ucatch (int dummy) { }
26332 #else
26333 void ucatch (dummy) int dummy; { }
26334 #endif
26337 main ()
26339 int i = fork (), status;
26341 if (i == 0)
26343 sleep (3);
26344 kill (getppid (), SIGINT);
26345 sleep (3);
26346 return 0;
26349 signal (SIGINT, ucatch);
26351 status = wait (&i);
26352 if (status == -1)
26353 wait (&i);
26355 return status == -1;
26357 _ACEOF
26358 rm -f conftest$ac_exeext
26359 if { (ac_try="$ac_link"
26360 case "(($ac_try" in
26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362 *) ac_try_echo=$ac_try;;
26363 esac
26364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26365 $as_echo "$ac_try_echo") >&5
26366 (eval "$ac_link") 2>&5
26367 ac_status=$?
26368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26370 { (case "(($ac_try" in
26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26373 esac
26374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26375 $as_echo "$ac_try_echo") >&5
26376 (eval "$ac_try") 2>&5
26377 ac_status=$?
26378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; }; then
26380 ac_cv_sys_restartable_syscalls=yes
26381 else
26382 $as_echo "$as_me: program exited with status $ac_status" >&5
26383 $as_echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ( exit $ac_status )
26387 ac_cv_sys_restartable_syscalls=no
26389 rm -rf conftest.dSYM
26390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26395 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
26396 $as_echo "$ac_cv_sys_restartable_syscalls" >&6; }
26397 if test "$ac_cv_sys_restartable_syscalls" = "yes"; then
26399 cat >>confdefs.h <<\_ACEOF
26400 #define HAVE_RESTARTABLE_SYSCALLS 1
26401 _ACEOF
26406 esac
26408 # Build optimized or debug version ?
26409 # First check for gcc and g++
26410 if test "$GCC" = "yes"
26411 then
26412 DEBUG_CFLAGS="-g"
26413 DEBUG_OPTIMIZE_CC="-O"
26414 OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
26415 else
26416 DEBUG_CFLAGS="-g"
26417 DEBUG_OPTIMIZE_CC=""
26418 case $SYSTEM_TYPE in
26419 *solaris*)
26420 OPTIMIZE_CFLAGS="-O1"
26423 OPTIMIZE_CFLAGS="-O"
26425 esac
26427 if test "$GXX" = "yes"
26428 then
26429 DEBUG_CXXFLAGS="-g"
26430 DEBUG_OPTIMIZE_CXX="-O"
26431 OPTIMIZE_CXXFLAGS="$MAX_CXX_OPTIMIZE"
26432 else
26433 DEBUG_OPTIMIZE_CXX=""
26434 case $SYSTEM_TYPE in
26435 *solaris*)
26436 DEBUG_CXXFLAGS="-g0"
26437 OPTIMIZE_CXXFLAGS="-O1"
26440 DEBUG_CXXFLAGS="-g"
26441 OPTIMIZE_CXXFLAGS="-O"
26443 esac
26446 case $SYSTEM_TYPE in
26447 *netware*)
26448 DEBUG_CFLAGS="-g -DDEBUG -sym internal,codeview4"
26449 DEBUG_CXXFLAGS="-g -DDEBUG -sym internal,codeview4"
26450 DEBUG_OPTIMIZE_CC="-DDEBUG"
26451 DEBUG_OPTIMIZE_CXX="-DDEBUG"
26452 OPTIMIZE_CFLAGS="-O3 -DNDEBUG"
26453 OPTIMIZE_CXXFLAGS="-O3 -DNDEBUG"
26455 esac
26457 # If the user specified CFLAGS, we won't add any optimizations
26458 if test -n "$SAVE_CFLAGS"
26459 then
26460 OPTIMIZE_CFLAGS=""
26461 DEBUG_OPTIMIZE_CC=""
26463 # Ditto for CXXFLAGS
26464 if test -n "$SAVE_CXXFLAGS"
26465 then
26466 OPTIMIZE_CXXFLAGS=""
26467 DEBUG_OPTIMIZE_CXX=""
26470 if test "$with_debug" = "yes"
26471 then
26472 # Medium debug.
26474 cat >>confdefs.h <<\_ACEOF
26475 #define DBUG_ON 1
26476 _ACEOF
26478 CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC -DSAFE_MUTEX $CFLAGS"
26479 CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX -DSAFE_MUTEX $CXXFLAGS"
26480 elif test "$with_debug" = "full"
26481 then
26482 # Full debug. Very slow in some cases
26484 cat >>confdefs.h <<\_ACEOF
26485 #define DBUG_ON 1
26486 _ACEOF
26488 CFLAGS="$DEBUG_CFLAGS -DSAFE_MUTEX -DSAFEMALLOC $CFLAGS"
26489 CXXFLAGS="$DEBUG_CXXFLAGS -DSAFE_MUTEX -DSAFEMALLOC $CXXFLAGS"
26490 else
26491 # Optimized version. No debug
26493 cat >>confdefs.h <<\_ACEOF
26494 #define DBUG_OFF 1
26495 _ACEOF
26497 CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
26498 CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
26502 # Check whether --with-valgrind was given.
26503 if test "${with_valgrind+set}" = set; then
26504 withval=$with_valgrind;
26505 else
26506 with_valgrind=no
26510 if test "$with_valgrind" != "no"
26511 then
26514 for ac_header in valgrind/valgrind.h valgrind/memcheck.h
26516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26519 $as_echo_n "checking for $ac_header... " >&6; }
26520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26521 $as_echo_n "(cached) " >&6
26523 ac_res=`eval 'as_val=${'$as_ac_Header'}
26524 $as_echo "$as_val"'`
26525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26526 $as_echo "$ac_res" >&6; }
26527 else
26528 # Is the header compilable?
26529 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26530 $as_echo_n "checking $ac_header usability... " >&6; }
26531 cat >conftest.$ac_ext <<_ACEOF
26532 /* confdefs.h. */
26533 _ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26537 $ac_includes_default
26538 #include <$ac_header>
26539 _ACEOF
26540 rm -f conftest.$ac_objext
26541 if { (ac_try="$ac_compile"
26542 case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26545 esac
26546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26547 $as_echo "$ac_try_echo") >&5
26548 (eval "$ac_compile") 2>conftest.er1
26549 ac_status=$?
26550 grep -v '^ *+' conftest.er1 >conftest.err
26551 rm -f conftest.er1
26552 cat conftest.err >&5
26553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } && {
26555 test -z "$ac_c_werror_flag" ||
26556 test ! -s conftest.err
26557 } && test -s conftest.$ac_objext; then
26558 ac_header_compiler=yes
26559 else
26560 $as_echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26563 ac_header_compiler=no
26566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26568 $as_echo "$ac_header_compiler" >&6; }
26570 # Is the header present?
26571 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26572 $as_echo_n "checking $ac_header presence... " >&6; }
26573 cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h. */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26579 #include <$ac_header>
26580 _ACEOF
26581 if { (ac_try="$ac_cpp conftest.$ac_ext"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26585 esac
26586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26587 $as_echo "$ac_try_echo") >&5
26588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26589 ac_status=$?
26590 grep -v '^ *+' conftest.er1 >conftest.err
26591 rm -f conftest.er1
26592 cat conftest.err >&5
26593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } >/dev/null && {
26595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26597 }; then
26598 ac_header_preproc=yes
26599 else
26600 $as_echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 ac_header_preproc=no
26606 rm -f conftest.err conftest.$ac_ext
26607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26608 $as_echo "$ac_header_preproc" >&6; }
26610 # So? What about this header?
26611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26612 yes:no: )
26613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26614 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26617 ac_header_preproc=yes
26619 no:yes:* )
26620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26621 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26623 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26625 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26627 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26631 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26634 esac
26635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26636 $as_echo_n "checking for $ac_header... " >&6; }
26637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26638 $as_echo_n "(cached) " >&6
26639 else
26640 eval "$as_ac_Header=\$ac_header_preproc"
26642 ac_res=`eval 'as_val=${'$as_ac_Header'}
26643 $as_echo "$as_val"'`
26644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26645 $as_echo "$ac_res" >&6; }
26648 as_val=`eval 'as_val=${'$as_ac_Header'}
26649 $as_echo "$as_val"'`
26650 if test "x$as_val" = x""yes; then
26651 cat >>confdefs.h <<_ACEOF
26652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26653 _ACEOF
26655 cat >>confdefs.h <<\_ACEOF
26656 #define HAVE_VALGRIND 1
26657 _ACEOF
26661 done
26665 # Debug Sync Facility. NOTE: depends on 'with_debug'. Must be behind it.
26666 { $as_echo "$as_me:$LINENO: checking if Debug Sync Facility should be enabled." >&5
26667 $as_echo_n "checking if Debug Sync Facility should be enabled.... " >&6; }
26668 # Check whether --enable-debug_sync was given.
26669 if test "${enable_debug_sync+set}" = set; then
26670 enableval=$enable_debug_sync; enable_debug_sync=$enableval
26671 else
26672 enable_debug_sync=$with_debug
26676 if test "$enable_debug_sync" != "no"
26677 then
26679 cat >>confdefs.h <<\_ACEOF
26680 #define ENABLED_DEBUG_SYNC 1
26681 _ACEOF
26683 { $as_echo "$as_me:$LINENO: result: yes" >&5
26684 $as_echo "yes" >&6; }
26685 else
26686 { $as_echo "$as_me:$LINENO: result: no" >&5
26687 $as_echo "no" >&6; }
26690 # If we should allow error injection tests
26692 # Check whether --with-error-inject was given.
26693 if test "${with_error_inject+set}" = set; then
26694 withval=$with_error_inject; with_error_inject=$withval
26695 else
26696 with_error_inject=no
26700 if test $with_debug != "no"
26701 then
26702 if test "$with_error_inject" = "yes"
26703 then
26705 cat >>confdefs.h <<\_ACEOF
26706 #define ERROR_INJECT_SUPPORT 1
26707 _ACEOF
26713 # Check whether --with-fast-mutexes was given.
26714 if test "${with_fast_mutexes+set}" = set; then
26715 withval=$with_fast_mutexes; with_fast_mutexes=$withval
26716 else
26717 with_fast_mutexes=no
26721 if test "$with_fast_mutexes" != "no"
26722 then
26723 if test "$with_debug" != "no"
26724 then
26725 { $as_echo "$as_me:$LINENO: WARNING: '--with-fast-mutexes' ignored when '--with-debug' is given" >&5
26726 $as_echo "$as_me: WARNING: '--with-fast-mutexes' ignored when '--with-debug' is given" >&2;}
26727 else
26729 cat >>confdefs.h <<\_ACEOF
26730 #define MY_PTHREAD_FASTMUTEX 1
26731 _ACEOF
26737 # Check whether --with-atomic-ops was given.
26738 if test "${with_atomic_ops+set}" = set; then
26739 withval=$with_atomic_ops;
26740 else
26741 with_atomic_ops=smp
26744 case "$with_atomic_ops" in
26745 "up")
26746 cat >>confdefs.h <<\_ACEOF
26747 #define MY_ATOMIC_MODE_DUMMY 1
26748 _ACEOF
26750 "rwlocks")
26751 cat >>confdefs.h <<\_ACEOF
26752 #define MY_ATOMIC_MODE_RWLOCKS 1
26753 _ACEOF
26755 "smp") ;;
26756 *) { { $as_echo "$as_me:$LINENO: error: \"$with_atomic_ops\" is not a valid value for --with-atomic-ops" >&5
26757 $as_echo "$as_me: error: \"$with_atomic_ops\" is not a valid value for --with-atomic-ops" >&2;}
26758 { (exit 1); exit 1; }; } ;;
26759 esac
26761 { $as_echo "$as_me:$LINENO: checking whether the compiler provides atomic builtins" >&5
26762 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
26763 if test "${mysql_cv_gcc_atomic_builtins+set}" = set; then
26764 $as_echo_n "(cached) " >&6
26765 else
26766 if test "$cross_compiling" = yes; then
26767 mysql_cv_gcc_atomic_builtins=no
26768 else
26769 cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h. */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26776 int main()
26778 int foo= -10; int bar= 10;
26779 if (!__sync_fetch_and_add(&foo, bar) || foo)
26780 return -1;
26781 bar= __sync_lock_test_and_set(&foo, bar);
26782 if (bar || foo != 10)
26783 return -1;
26784 bar= __sync_val_compare_and_swap(&bar, foo, 15);
26785 if (bar)
26786 return -1;
26787 return 0;
26790 _ACEOF
26791 rm -f conftest$ac_exeext
26792 if { (ac_try="$ac_link"
26793 case "(($ac_try" in
26794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26795 *) ac_try_echo=$ac_try;;
26796 esac
26797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26798 $as_echo "$ac_try_echo") >&5
26799 (eval "$ac_link") 2>&5
26800 ac_status=$?
26801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26803 { (case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26806 esac
26807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26808 $as_echo "$ac_try_echo") >&5
26809 (eval "$ac_try") 2>&5
26810 ac_status=$?
26811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; }; then
26813 mysql_cv_gcc_atomic_builtins=yes
26814 else
26815 $as_echo "$as_me: program exited with status $ac_status" >&5
26816 $as_echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 ( exit $ac_status )
26820 mysql_cv_gcc_atomic_builtins=no
26822 rm -rf conftest.dSYM
26823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26828 { $as_echo "$as_me:$LINENO: result: $mysql_cv_gcc_atomic_builtins" >&5
26829 $as_echo "$mysql_cv_gcc_atomic_builtins" >&6; }
26831 if test "x$mysql_cv_gcc_atomic_builtins" = xyes; then
26833 cat >>confdefs.h <<\_ACEOF
26834 #define HAVE_GCC_ATOMIC_BUILTINS 1
26835 _ACEOF
26839 # Force static compilation to avoid linking problems/get more speed
26841 # Check whether --with-mysqld-ldflags was given.
26842 if test "${with_mysqld_ldflags+set}" = set; then
26843 withval=$with_mysqld_ldflags; MYSQLD_EXTRA_LDFLAGS=$withval
26844 else
26845 MYSQLD_EXTRA_LDFLAGS=
26851 # Check whether --with-client-ldflags was given.
26852 if test "${with_client_ldflags+set}" = set; then
26853 withval=$with_client_ldflags; CLIENT_EXTRA_LDFLAGS=$withval
26854 else
26855 CLIENT_EXTRA_LDFLAGS=
26861 # Check whether --with-mysqld-libs was given.
26862 if test "${with_mysqld_libs+set}" = set; then
26863 withval=$with_mysqld_libs; MYSQLD_EXTRA_LIBS=$withval
26864 else
26865 MYSQLD_EXTRA_LIBS=
26871 # Check whether --with-lib-ccflags was given.
26872 if test "${with_lib_ccflags+set}" = set; then
26873 withval=$with_lib_ccflags; LIB_EXTRA_CCFLAGS=$withval
26874 else
26875 LIB_EXTRA_CCFLAGS=
26880 # Avoid stupid bug on some OS
26882 # Check whether --with-low-memory was given.
26883 if test "${with_low_memory+set}" = set; then
26884 withval=$with_low_memory; with_lowmem=$withval
26885 else
26886 with_lowmem=no
26889 if test "$with_lowmem" = "yes"
26890 then
26891 if test "$ac_cv_c_compiler_gnu" = "yes"
26892 then
26893 LM_CFLAGS="-fno-inline"
26894 else
26895 LM_CFLAGS="-O0"
26897 else
26898 LM_CFLAGS=""
26903 # Check whether --with-comment was given.
26904 if test "${with_comment+set}" = set; then
26905 withval=$with_comment; with_comment=$withval
26906 else
26907 with_comment=no
26910 if test "$with_comment" != "no"
26911 then
26912 COMPILATION_COMMENT=$with_comment
26913 else
26914 COMPILATION_COMMENT="Source distribution"
26918 { $as_echo "$as_me:$LINENO: checking \"need of special linking flags\"" >&5
26919 $as_echo_n "checking \"need of special linking flags\"... " >&6; }
26920 if test "$TARGET_LINUX" = "true" -a "$ac_cv_c_compiler_gnu" = "yes" -a "$all_is_static" != "yes"
26921 then
26922 LDFLAGS="$LDFLAGS -rdynamic"
26923 { $as_echo "$as_me:$LINENO: result: \"-rdynamic\"" >&5
26924 $as_echo "\"-rdynamic\"" >&6; }
26925 else
26926 case "$SYSTEM_TYPE$with_mysqld_ldflags " in
26927 *freebsd*"-all-static "*|*dragonfly*"-all-static "*)
26928 { $as_echo "$as_me:$LINENO: result: \"none\"" >&5
26929 $as_echo "\"none\"" >&6; }
26931 *freebsd*|*dragonfly*)
26932 MYSQLD_EXTRA_LDFLAGS="$MYSQLD_EXTRA_LDFLAGS -export-dynamic"
26933 { $as_echo "$as_me:$LINENO: result: \"-export-dynamic\"" >&5
26934 $as_echo "\"-export-dynamic\"" >&6; }
26937 { $as_echo "$as_me:$LINENO: result: \"none\"" >&5
26938 $as_echo "\"none\"" >&6; }
26940 esac
26943 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26944 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26945 if test "${ac_cv_c_const+set}" = set; then
26946 $as_echo_n "(cached) " >&6
26947 else
26948 cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h. */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26956 main ()
26958 /* FIXME: Include the comments suggested by Paul. */
26959 #ifndef __cplusplus
26960 /* Ultrix mips cc rejects this. */
26961 typedef int charset[2];
26962 const charset cs;
26963 /* SunOS 4.1.1 cc rejects this. */
26964 char const *const *pcpcc;
26965 char **ppc;
26966 /* NEC SVR4.0.2 mips cc rejects this. */
26967 struct point {int x, y;};
26968 static struct point const zero = {0,0};
26969 /* AIX XL C 1.02.0.0 rejects this.
26970 It does not let you subtract one const X* pointer from another in
26971 an arm of an if-expression whose if-part is not a constant
26972 expression */
26973 const char *g = "string";
26974 pcpcc = &g + (g ? g-g : 0);
26975 /* HPUX 7.0 cc rejects these. */
26976 ++pcpcc;
26977 ppc = (char**) pcpcc;
26978 pcpcc = (char const *const *) ppc;
26979 { /* SCO 3.2v4 cc rejects this. */
26980 char *t;
26981 char const *s = 0 ? (char *) 0 : (char const *) 0;
26983 *t++ = 0;
26984 if (s) return 0;
26986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26987 int x[] = {25, 17};
26988 const int *foo = &x[0];
26989 ++foo;
26991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26992 typedef const int *iptr;
26993 iptr p = 0;
26994 ++p;
26996 { /* AIX XL C 1.02.0.0 rejects this saying
26997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26998 struct s { int j; const int *ap[3]; };
26999 struct s *b; b->j = 5;
27001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27002 const int foo = 10;
27003 if (!foo) return 0;
27005 return !cs[0] && !zero.x;
27006 #endif
27009 return 0;
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016 *) ac_try_echo=$ac_try;;
27017 esac
27018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27019 $as_echo "$ac_try_echo") >&5
27020 (eval "$ac_compile") 2>conftest.er1
27021 ac_status=$?
27022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
27025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } && {
27027 test -z "$ac_c_werror_flag" ||
27028 test ! -s conftest.err
27029 } && test -s conftest.$ac_objext; then
27030 ac_cv_c_const=yes
27031 else
27032 $as_echo "$as_me: failed program was:" >&5
27033 sed 's/^/| /' conftest.$ac_ext >&5
27035 ac_cv_c_const=no
27038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27040 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27041 $as_echo "$ac_cv_c_const" >&6; }
27042 if test $ac_cv_c_const = no; then
27044 cat >>confdefs.h <<\_ACEOF
27045 #define const /**/
27046 _ACEOF
27050 { $as_echo "$as_me:$LINENO: checking for inline" >&5
27051 $as_echo_n "checking for inline... " >&6; }
27052 if test "${ac_cv_c_inline+set}" = set; then
27053 $as_echo_n "(cached) " >&6
27054 else
27055 ac_cv_c_inline=no
27056 for ac_kw in inline __inline__ __inline; do
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h. */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #ifndef __cplusplus
27064 typedef int foo_t;
27065 static $ac_kw foo_t static_foo () {return 0; }
27066 $ac_kw foo_t foo () {return 0; }
27067 #endif
27069 _ACEOF
27070 rm -f conftest.$ac_objext
27071 if { (ac_try="$ac_compile"
27072 case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27075 esac
27076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27077 $as_echo "$ac_try_echo") >&5
27078 (eval "$ac_compile") 2>conftest.er1
27079 ac_status=$?
27080 grep -v '^ *+' conftest.er1 >conftest.err
27081 rm -f conftest.er1
27082 cat conftest.err >&5
27083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } && {
27085 test -z "$ac_c_werror_flag" ||
27086 test ! -s conftest.err
27087 } && test -s conftest.$ac_objext; then
27088 ac_cv_c_inline=$ac_kw
27089 else
27090 $as_echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27097 test "$ac_cv_c_inline" != no && break
27098 done
27101 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
27102 $as_echo "$ac_cv_c_inline" >&6; }
27105 case $ac_cv_c_inline in
27106 inline | yes) ;;
27108 case $ac_cv_c_inline in
27109 no) ac_val=;;
27110 *) ac_val=$ac_cv_c_inline;;
27111 esac
27112 cat >>confdefs.h <<_ACEOF
27113 #ifndef __cplusplus
27114 #define inline $ac_val
27115 #endif
27116 _ACEOF
27118 esac
27120 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
27121 $as_echo_n "checking for off_t... " >&6; }
27122 if test "${ac_cv_type_off_t+set}" = set; then
27123 $as_echo_n "(cached) " >&6
27124 else
27125 ac_cv_type_off_t=no
27126 cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h. */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h. */
27132 $ac_includes_default
27134 main ()
27136 if (sizeof (off_t))
27137 return 0;
27139 return 0;
27141 _ACEOF
27142 rm -f conftest.$ac_objext
27143 if { (ac_try="$ac_compile"
27144 case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27147 esac
27148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27149 $as_echo "$ac_try_echo") >&5
27150 (eval "$ac_compile") 2>conftest.er1
27151 ac_status=$?
27152 grep -v '^ *+' conftest.er1 >conftest.err
27153 rm -f conftest.er1
27154 cat conftest.err >&5
27155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } && {
27157 test -z "$ac_c_werror_flag" ||
27158 test ! -s conftest.err
27159 } && test -s conftest.$ac_objext; then
27160 cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h. */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 $ac_includes_default
27168 main ()
27170 if (sizeof ((off_t)))
27171 return 0;
27173 return 0;
27175 _ACEOF
27176 rm -f conftest.$ac_objext
27177 if { (ac_try="$ac_compile"
27178 case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27181 esac
27182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27183 $as_echo "$ac_try_echo") >&5
27184 (eval "$ac_compile") 2>conftest.er1
27185 ac_status=$?
27186 grep -v '^ *+' conftest.er1 >conftest.err
27187 rm -f conftest.er1
27188 cat conftest.err >&5
27189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); } && {
27191 test -z "$ac_c_werror_flag" ||
27192 test ! -s conftest.err
27193 } && test -s conftest.$ac_objext; then
27195 else
27196 $as_echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27199 ac_cv_type_off_t=yes
27202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27203 else
27204 $as_echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27213 $as_echo "$ac_cv_type_off_t" >&6; }
27214 if test "x$ac_cv_type_off_t" = x""yes; then
27216 else
27218 cat >>confdefs.h <<_ACEOF
27219 #define off_t long int
27220 _ACEOF
27224 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27225 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
27226 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27227 $as_echo_n "(cached) " >&6
27228 else
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h. */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235 $ac_includes_default
27237 main ()
27239 static struct stat ac_aggr;
27240 if (ac_aggr.st_rdev)
27241 return 0;
27243 return 0;
27245 _ACEOF
27246 rm -f conftest.$ac_objext
27247 if { (ac_try="$ac_compile"
27248 case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251 esac
27252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27253 $as_echo "$ac_try_echo") >&5
27254 (eval "$ac_compile") 2>conftest.er1
27255 ac_status=$?
27256 grep -v '^ *+' conftest.er1 >conftest.err
27257 rm -f conftest.er1
27258 cat conftest.err >&5
27259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } && {
27261 test -z "$ac_c_werror_flag" ||
27262 test ! -s conftest.err
27263 } && test -s conftest.$ac_objext; then
27264 ac_cv_member_struct_stat_st_rdev=yes
27265 else
27266 $as_echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 cat >conftest.$ac_ext <<_ACEOF
27270 /* confdefs.h. */
27271 _ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h. */
27275 $ac_includes_default
27277 main ()
27279 static struct stat ac_aggr;
27280 if (sizeof ac_aggr.st_rdev)
27281 return 0;
27283 return 0;
27285 _ACEOF
27286 rm -f conftest.$ac_objext
27287 if { (ac_try="$ac_compile"
27288 case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291 esac
27292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27293 $as_echo "$ac_try_echo") >&5
27294 (eval "$ac_compile") 2>conftest.er1
27295 ac_status=$?
27296 grep -v '^ *+' conftest.er1 >conftest.err
27297 rm -f conftest.er1
27298 cat conftest.err >&5
27299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); } && {
27301 test -z "$ac_c_werror_flag" ||
27302 test ! -s conftest.err
27303 } && test -s conftest.$ac_objext; then
27304 ac_cv_member_struct_stat_st_rdev=yes
27305 else
27306 $as_echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27309 ac_cv_member_struct_stat_st_rdev=no
27312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27317 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27318 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
27319 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
27321 cat >>confdefs.h <<_ACEOF
27322 #define HAVE_STRUCT_STAT_ST_RDEV 1
27323 _ACEOF
27326 cat >>confdefs.h <<\_ACEOF
27327 #define HAVE_ST_RDEV 1
27328 _ACEOF
27333 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27334 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27335 if test "${ac_cv_header_time+set}" = set; then
27336 $as_echo_n "(cached) " >&6
27337 else
27338 cat >conftest.$ac_ext <<_ACEOF
27339 /* confdefs.h. */
27340 _ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 #include <sys/types.h>
27345 #include <sys/time.h>
27346 #include <time.h>
27349 main ()
27351 if ((struct tm *) 0)
27352 return 0;
27354 return 0;
27356 _ACEOF
27357 rm -f conftest.$ac_objext
27358 if { (ac_try="$ac_compile"
27359 case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362 esac
27363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27364 $as_echo "$ac_try_echo") >&5
27365 (eval "$ac_compile") 2>conftest.er1
27366 ac_status=$?
27367 grep -v '^ *+' conftest.er1 >conftest.err
27368 rm -f conftest.er1
27369 cat conftest.err >&5
27370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } && {
27372 test -z "$ac_c_werror_flag" ||
27373 test ! -s conftest.err
27374 } && test -s conftest.$ac_objext; then
27375 ac_cv_header_time=yes
27376 else
27377 $as_echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ac_cv_header_time=no
27383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27386 $as_echo "$ac_cv_header_time" >&6; }
27387 if test $ac_cv_header_time = yes; then
27389 cat >>confdefs.h <<\_ACEOF
27390 #define TIME_WITH_SYS_TIME 1
27391 _ACEOF
27395 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27396 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27397 if test "${ac_cv_struct_tm+set}" = set; then
27398 $as_echo_n "(cached) " >&6
27399 else
27400 cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h. */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h. */
27406 #include <sys/types.h>
27407 #include <time.h>
27410 main ()
27412 struct tm tm;
27413 int *p = &tm.tm_sec;
27414 return !p;
27416 return 0;
27418 _ACEOF
27419 rm -f conftest.$ac_objext
27420 if { (ac_try="$ac_compile"
27421 case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27424 esac
27425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27426 $as_echo "$ac_try_echo") >&5
27427 (eval "$ac_compile") 2>conftest.er1
27428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } && {
27434 test -z "$ac_c_werror_flag" ||
27435 test ! -s conftest.err
27436 } && test -s conftest.$ac_objext; then
27437 ac_cv_struct_tm=time.h
27438 else
27439 $as_echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 ac_cv_struct_tm=sys/time.h
27445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27447 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27448 $as_echo "$ac_cv_struct_tm" >&6; }
27449 if test $ac_cv_struct_tm = sys/time.h; then
27451 cat >>confdefs.h <<\_ACEOF
27452 #define TM_IN_SYS_TIME 1
27453 _ACEOF
27457 { $as_echo "$as_me:$LINENO: checking needs mysys_new helpers" >&5
27458 $as_echo_n "checking needs mysys_new helpers... " >&6; }
27459 if test "${mysql_cv_use_mysys_new+set}" = set; then
27460 $as_echo_n "(cached) " >&6
27461 else
27463 ac_ext=cpp
27464 ac_cpp='$CXXCPP $CPPFLAGS'
27465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27469 cat >conftest.$ac_ext <<_ACEOF
27470 /* confdefs.h. */
27471 _ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27477 main ()
27480 class A { public: int b; }; A *a=new A; a->b=10; delete a;
27483 return 0;
27485 _ACEOF
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (ac_try="$ac_link"
27488 case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27491 esac
27492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27493 $as_echo "$ac_try_echo") >&5
27494 (eval "$ac_link") 2>conftest.er1
27495 ac_status=$?
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
27499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_cxx_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest$ac_exeext && {
27504 test "$cross_compiling" = yes ||
27505 $as_test_x conftest$ac_exeext
27506 }; then
27507 mysql_cv_use_mysys_new=no
27508 else
27509 $as_echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27512 mysql_cv_use_mysys_new=yes
27515 rm -rf conftest.dSYM
27516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27517 conftest$ac_exeext conftest.$ac_ext
27518 ac_ext=c
27519 ac_cpp='$CPP $CPPFLAGS'
27520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27526 { $as_echo "$as_me:$LINENO: result: $mysql_cv_use_mysys_new" >&5
27527 $as_echo "$mysql_cv_use_mysys_new" >&6; }
27528 if test "$mysql_cv_use_mysys_new" = "yes"
27529 then
27531 cat >>confdefs.h <<\_ACEOF
27532 #define USE_MYSYS_NEW 1
27533 _ACEOF
27537 # AC_CHECK_SIZEOF return 0 when it does not find the size of a
27538 # type. We want a error instead.
27539 # The cast to long int works around a bug in the HP C Compiler
27540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27542 # This bug is HP SR number 8606223364.
27543 { $as_echo "$as_me:$LINENO: checking size of char" >&5
27544 $as_echo_n "checking size of char... " >&6; }
27545 if test "${ac_cv_sizeof_char+set}" = set; then
27546 $as_echo_n "(cached) " >&6
27547 else
27548 if test "$cross_compiling" = yes; then
27549 # Depending upon the size, compute the lo and hi bounds.
27550 cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h. */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h. */
27556 $ac_includes_default
27558 main ()
27560 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
27561 test_array [0] = 0
27564 return 0;
27566 _ACEOF
27567 rm -f conftest.$ac_objext
27568 if { (ac_try="$ac_compile"
27569 case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27572 esac
27573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27574 $as_echo "$ac_try_echo") >&5
27575 (eval "$ac_compile") 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } && {
27582 test -z "$ac_c_werror_flag" ||
27583 test ! -s conftest.err
27584 } && test -s conftest.$ac_objext; then
27585 ac_lo=0 ac_mid=0
27586 while :; do
27587 cat >conftest.$ac_ext <<_ACEOF
27588 /* confdefs.h. */
27589 _ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27593 $ac_includes_default
27595 main ()
27597 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
27598 test_array [0] = 0
27601 return 0;
27603 _ACEOF
27604 rm -f conftest.$ac_objext
27605 if { (ac_try="$ac_compile"
27606 case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609 esac
27610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27611 $as_echo "$ac_try_echo") >&5
27612 (eval "$ac_compile") 2>conftest.er1
27613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } && {
27619 test -z "$ac_c_werror_flag" ||
27620 test ! -s conftest.err
27621 } && test -s conftest.$ac_objext; then
27622 ac_hi=$ac_mid; break
27623 else
27624 $as_echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_lo=`expr $ac_mid + 1`
27628 if test $ac_lo -le $ac_mid; then
27629 ac_lo= ac_hi=
27630 break
27632 ac_mid=`expr 2 '*' $ac_mid + 1`
27635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27636 done
27637 else
27638 $as_echo "$as_me: failed program was:" >&5
27639 sed 's/^/| /' conftest.$ac_ext >&5
27641 cat >conftest.$ac_ext <<_ACEOF
27642 /* confdefs.h. */
27643 _ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h. */
27647 $ac_includes_default
27649 main ()
27651 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
27652 test_array [0] = 0
27655 return 0;
27657 _ACEOF
27658 rm -f conftest.$ac_objext
27659 if { (ac_try="$ac_compile"
27660 case "(($ac_try" in
27661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662 *) ac_try_echo=$ac_try;;
27663 esac
27664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27665 $as_echo "$ac_try_echo") >&5
27666 (eval "$ac_compile") 2>conftest.er1
27667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } && {
27673 test -z "$ac_c_werror_flag" ||
27674 test ! -s conftest.err
27675 } && test -s conftest.$ac_objext; then
27676 ac_hi=-1 ac_mid=-1
27677 while :; do
27678 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h. */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27684 $ac_includes_default
27686 main ()
27688 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
27689 test_array [0] = 0
27692 return 0;
27694 _ACEOF
27695 rm -f conftest.$ac_objext
27696 if { (ac_try="$ac_compile"
27697 case "(($ac_try" in
27698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699 *) ac_try_echo=$ac_try;;
27700 esac
27701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27702 $as_echo "$ac_try_echo") >&5
27703 (eval "$ac_compile") 2>conftest.er1
27704 ac_status=$?
27705 grep -v '^ *+' conftest.er1 >conftest.err
27706 rm -f conftest.er1
27707 cat conftest.err >&5
27708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } && {
27710 test -z "$ac_c_werror_flag" ||
27711 test ! -s conftest.err
27712 } && test -s conftest.$ac_objext; then
27713 ac_lo=$ac_mid; break
27714 else
27715 $as_echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27718 ac_hi=`expr '(' $ac_mid ')' - 1`
27719 if test $ac_mid -le $ac_hi; then
27720 ac_lo= ac_hi=
27721 break
27723 ac_mid=`expr 2 '*' $ac_mid`
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 done
27728 else
27729 $as_echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27732 ac_lo= ac_hi=
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27739 # Binary search between lo and hi bounds.
27740 while test "x$ac_lo" != "x$ac_hi"; do
27741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27742 cat >conftest.$ac_ext <<_ACEOF
27743 /* confdefs.h. */
27744 _ACEOF
27745 cat confdefs.h >>conftest.$ac_ext
27746 cat >>conftest.$ac_ext <<_ACEOF
27747 /* end confdefs.h. */
27748 $ac_includes_default
27750 main ()
27752 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
27753 test_array [0] = 0
27756 return 0;
27758 _ACEOF
27759 rm -f conftest.$ac_objext
27760 if { (ac_try="$ac_compile"
27761 case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764 esac
27765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27766 $as_echo "$ac_try_echo") >&5
27767 (eval "$ac_compile") 2>conftest.er1
27768 ac_status=$?
27769 grep -v '^ *+' conftest.er1 >conftest.err
27770 rm -f conftest.er1
27771 cat conftest.err >&5
27772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } && {
27774 test -z "$ac_c_werror_flag" ||
27775 test ! -s conftest.err
27776 } && test -s conftest.$ac_objext; then
27777 ac_hi=$ac_mid
27778 else
27779 $as_echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27782 ac_lo=`expr '(' $ac_mid ')' + 1`
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786 done
27787 case $ac_lo in
27788 ?*) ac_cv_sizeof_char=$ac_lo;;
27789 '') if test "$ac_cv_type_char" = yes; then
27790 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27792 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
27793 See \`config.log' for more details." >&5
27794 $as_echo "$as_me: error: cannot compute sizeof (char)
27795 See \`config.log' for more details." >&2;}
27796 { (exit 77); exit 77; }; }; }
27797 else
27798 ac_cv_sizeof_char=0
27799 fi ;;
27800 esac
27801 else
27802 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h. */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27808 $ac_includes_default
27809 static long int longval () { return (long int) (sizeof (char)); }
27810 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
27811 #include <stdio.h>
27812 #include <stdlib.h>
27814 main ()
27817 FILE *f = fopen ("conftest.val", "w");
27818 if (! f)
27819 return 1;
27820 if (((long int) (sizeof (char))) < 0)
27822 long int i = longval ();
27823 if (i != ((long int) (sizeof (char))))
27824 return 1;
27825 fprintf (f, "%ld", i);
27827 else
27829 unsigned long int i = ulongval ();
27830 if (i != ((long int) (sizeof (char))))
27831 return 1;
27832 fprintf (f, "%lu", i);
27834 /* Do not output a trailing newline, as this causes \r\n confusion
27835 on some platforms. */
27836 return ferror (f) || fclose (f) != 0;
27839 return 0;
27841 _ACEOF
27842 rm -f conftest$ac_exeext
27843 if { (ac_try="$ac_link"
27844 case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847 esac
27848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27849 $as_echo "$ac_try_echo") >&5
27850 (eval "$ac_link") 2>&5
27851 ac_status=$?
27852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27854 { (case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857 esac
27858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27859 $as_echo "$ac_try_echo") >&5
27860 (eval "$ac_try") 2>&5
27861 ac_status=$?
27862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; }; then
27864 ac_cv_sizeof_char=`cat conftest.val`
27865 else
27866 $as_echo "$as_me: program exited with status $ac_status" >&5
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27870 ( exit $ac_status )
27871 if test "$ac_cv_type_char" = yes; then
27872 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27874 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
27875 See \`config.log' for more details." >&5
27876 $as_echo "$as_me: error: cannot compute sizeof (char)
27877 See \`config.log' for more details." >&2;}
27878 { (exit 77); exit 77; }; }; }
27879 else
27880 ac_cv_sizeof_char=0
27883 rm -rf conftest.dSYM
27884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27886 rm -f conftest.val
27888 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27889 $as_echo "$ac_cv_sizeof_char" >&6; }
27893 cat >>confdefs.h <<_ACEOF
27894 #define SIZEOF_CHAR $ac_cv_sizeof_char
27895 _ACEOF
27898 if test "$ac_cv_sizeof_char" -eq 0
27899 then
27900 { { $as_echo "$as_me:$LINENO: error: No size for char type.
27901 A likely cause for this could be that there isn't any
27902 static libraries installed. You can verify this by checking if you have libm.a
27903 in /lib, /usr/lib or some other standard place. If this is the problem,
27904 install the static libraries and try again. If this isn't the problem,
27905 examine config.log for possible errors. If you want to report this, use
27906 'scripts/mysqlbug' and include at least the last 20 rows from config.log!" >&5
27907 $as_echo "$as_me: error: No size for char type.
27908 A likely cause for this could be that there isn't any
27909 static libraries installed. You can verify this by checking if you have libm.a
27910 in /lib, /usr/lib or some other standard place. If this is the problem,
27911 install the static libraries and try again. If this isn't the problem,
27912 examine config.log for possible errors. If you want to report this, use
27913 'scripts/mysqlbug' and include at least the last 20 rows from config.log!" >&2;}
27914 { (exit 1); exit 1; }; }
27916 # The cast to long int works around a bug in the HP C Compiler
27917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27919 # This bug is HP SR number 8606223364.
27920 { $as_echo "$as_me:$LINENO: checking size of char*" >&5
27921 $as_echo_n "checking size of char*... " >&6; }
27922 if test "${ac_cv_sizeof_charp+set}" = set; then
27923 $as_echo_n "(cached) " >&6
27924 else
27925 if test "$cross_compiling" = yes; then
27926 # Depending upon the size, compute the lo and hi bounds.
27927 cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h. */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 $ac_includes_default
27935 main ()
27937 static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
27938 test_array [0] = 0
27941 return 0;
27943 _ACEOF
27944 rm -f conftest.$ac_objext
27945 if { (ac_try="$ac_compile"
27946 case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27949 esac
27950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27951 $as_echo "$ac_try_echo") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27953 ac_status=$?
27954 grep -v '^ *+' conftest.er1 >conftest.err
27955 rm -f conftest.er1
27956 cat conftest.err >&5
27957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 ac_lo=0 ac_mid=0
27963 while :; do
27964 cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h. */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 $ac_includes_default
27972 main ()
27974 static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
27975 test_array [0] = 0
27978 return 0;
27980 _ACEOF
27981 rm -f conftest.$ac_objext
27982 if { (ac_try="$ac_compile"
27983 case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986 esac
27987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27988 $as_echo "$ac_try_echo") >&5
27989 (eval "$ac_compile") 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } && {
27996 test -z "$ac_c_werror_flag" ||
27997 test ! -s conftest.err
27998 } && test -s conftest.$ac_objext; then
27999 ac_hi=$ac_mid; break
28000 else
28001 $as_echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28004 ac_lo=`expr $ac_mid + 1`
28005 if test $ac_lo -le $ac_mid; then
28006 ac_lo= ac_hi=
28007 break
28009 ac_mid=`expr 2 '*' $ac_mid + 1`
28012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 done
28014 else
28015 $as_echo "$as_me: failed program was:" >&5
28016 sed 's/^/| /' conftest.$ac_ext >&5
28018 cat >conftest.$ac_ext <<_ACEOF
28019 /* confdefs.h. */
28020 _ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h. */
28024 $ac_includes_default
28026 main ()
28028 static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
28029 test_array [0] = 0
28032 return 0;
28034 _ACEOF
28035 rm -f conftest.$ac_objext
28036 if { (ac_try="$ac_compile"
28037 case "(($ac_try" in
28038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039 *) ac_try_echo=$ac_try;;
28040 esac
28041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28042 $as_echo "$ac_try_echo") >&5
28043 (eval "$ac_compile") 2>conftest.er1
28044 ac_status=$?
28045 grep -v '^ *+' conftest.er1 >conftest.err
28046 rm -f conftest.er1
28047 cat conftest.err >&5
28048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } && {
28050 test -z "$ac_c_werror_flag" ||
28051 test ! -s conftest.err
28052 } && test -s conftest.$ac_objext; then
28053 ac_hi=-1 ac_mid=-1
28054 while :; do
28055 cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h. */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h. */
28061 $ac_includes_default
28063 main ()
28065 static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
28066 test_array [0] = 0
28069 return 0;
28071 _ACEOF
28072 rm -f conftest.$ac_objext
28073 if { (ac_try="$ac_compile"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077 esac
28078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28079 $as_echo "$ac_try_echo") >&5
28080 (eval "$ac_compile") 2>conftest.er1
28081 ac_status=$?
28082 grep -v '^ *+' conftest.er1 >conftest.err
28083 rm -f conftest.er1
28084 cat conftest.err >&5
28085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); } && {
28087 test -z "$ac_c_werror_flag" ||
28088 test ! -s conftest.err
28089 } && test -s conftest.$ac_objext; then
28090 ac_lo=$ac_mid; break
28091 else
28092 $as_echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28095 ac_hi=`expr '(' $ac_mid ')' - 1`
28096 if test $ac_mid -le $ac_hi; then
28097 ac_lo= ac_hi=
28098 break
28100 ac_mid=`expr 2 '*' $ac_mid`
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 done
28105 else
28106 $as_echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28109 ac_lo= ac_hi=
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28116 # Binary search between lo and hi bounds.
28117 while test "x$ac_lo" != "x$ac_hi"; do
28118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28119 cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h. */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28125 $ac_includes_default
28127 main ()
28129 static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
28130 test_array [0] = 0
28133 return 0;
28135 _ACEOF
28136 rm -f conftest.$ac_objext
28137 if { (ac_try="$ac_compile"
28138 case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28141 esac
28142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28143 $as_echo "$ac_try_echo") >&5
28144 (eval "$ac_compile") 2>conftest.er1
28145 ac_status=$?
28146 grep -v '^ *+' conftest.er1 >conftest.err
28147 rm -f conftest.er1
28148 cat conftest.err >&5
28149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } && {
28151 test -z "$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28153 } && test -s conftest.$ac_objext; then
28154 ac_hi=$ac_mid
28155 else
28156 $as_echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28159 ac_lo=`expr '(' $ac_mid ')' + 1`
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 done
28164 case $ac_lo in
28165 ?*) ac_cv_sizeof_charp=$ac_lo;;
28166 '') if test "$ac_cv_type_charp" = yes; then
28167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28169 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
28170 See \`config.log' for more details." >&5
28171 $as_echo "$as_me: error: cannot compute sizeof (char*)
28172 See \`config.log' for more details." >&2;}
28173 { (exit 77); exit 77; }; }; }
28174 else
28175 ac_cv_sizeof_charp=0
28176 fi ;;
28177 esac
28178 else
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h. */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 $ac_includes_default
28186 static long int longval () { return (long int) (sizeof (char*)); }
28187 static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
28188 #include <stdio.h>
28189 #include <stdlib.h>
28191 main ()
28194 FILE *f = fopen ("conftest.val", "w");
28195 if (! f)
28196 return 1;
28197 if (((long int) (sizeof (char*))) < 0)
28199 long int i = longval ();
28200 if (i != ((long int) (sizeof (char*))))
28201 return 1;
28202 fprintf (f, "%ld", i);
28204 else
28206 unsigned long int i = ulongval ();
28207 if (i != ((long int) (sizeof (char*))))
28208 return 1;
28209 fprintf (f, "%lu", i);
28211 /* Do not output a trailing newline, as this causes \r\n confusion
28212 on some platforms. */
28213 return ferror (f) || fclose (f) != 0;
28216 return 0;
28218 _ACEOF
28219 rm -f conftest$ac_exeext
28220 if { (ac_try="$ac_link"
28221 case "(($ac_try" in
28222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28224 esac
28225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28226 $as_echo "$ac_try_echo") >&5
28227 (eval "$ac_link") 2>&5
28228 ac_status=$?
28229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28231 { (case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28234 esac
28235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28236 $as_echo "$ac_try_echo") >&5
28237 (eval "$ac_try") 2>&5
28238 ac_status=$?
28239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 ac_cv_sizeof_charp=`cat conftest.val`
28242 else
28243 $as_echo "$as_me: program exited with status $ac_status" >&5
28244 $as_echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28247 ( exit $ac_status )
28248 if test "$ac_cv_type_charp" = yes; then
28249 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28251 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
28252 See \`config.log' for more details." >&5
28253 $as_echo "$as_me: error: cannot compute sizeof (char*)
28254 See \`config.log' for more details." >&2;}
28255 { (exit 77); exit 77; }; }; }
28256 else
28257 ac_cv_sizeof_charp=0
28260 rm -rf conftest.dSYM
28261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28263 rm -f conftest.val
28265 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
28266 $as_echo "$ac_cv_sizeof_charp" >&6; }
28270 cat >>confdefs.h <<_ACEOF
28271 #define SIZEOF_CHARP $ac_cv_sizeof_charp
28272 _ACEOF
28275 # The cast to long int works around a bug in the HP C Compiler
28276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28278 # This bug is HP SR number 8606223364.
28279 { $as_echo "$as_me:$LINENO: checking size of short" >&5
28280 $as_echo_n "checking size of short... " >&6; }
28281 if test "${ac_cv_sizeof_short+set}" = set; then
28282 $as_echo_n "(cached) " >&6
28283 else
28284 if test "$cross_compiling" = yes; then
28285 # Depending upon the size, compute the lo and hi bounds.
28286 cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h. */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28292 $ac_includes_default
28294 main ()
28296 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
28297 test_array [0] = 0
28300 return 0;
28302 _ACEOF
28303 rm -f conftest.$ac_objext
28304 if { (ac_try="$ac_compile"
28305 case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28308 esac
28309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28310 $as_echo "$ac_try_echo") >&5
28311 (eval "$ac_compile") 2>conftest.er1
28312 ac_status=$?
28313 grep -v '^ *+' conftest.er1 >conftest.err
28314 rm -f conftest.er1
28315 cat conftest.err >&5
28316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } && {
28318 test -z "$ac_c_werror_flag" ||
28319 test ! -s conftest.err
28320 } && test -s conftest.$ac_objext; then
28321 ac_lo=0 ac_mid=0
28322 while :; do
28323 cat >conftest.$ac_ext <<_ACEOF
28324 /* confdefs.h. */
28325 _ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28329 $ac_includes_default
28331 main ()
28333 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
28334 test_array [0] = 0
28337 return 0;
28339 _ACEOF
28340 rm -f conftest.$ac_objext
28341 if { (ac_try="$ac_compile"
28342 case "(($ac_try" in
28343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344 *) ac_try_echo=$ac_try;;
28345 esac
28346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28347 $as_echo "$ac_try_echo") >&5
28348 (eval "$ac_compile") 2>conftest.er1
28349 ac_status=$?
28350 grep -v '^ *+' conftest.er1 >conftest.err
28351 rm -f conftest.er1
28352 cat conftest.err >&5
28353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } && {
28355 test -z "$ac_c_werror_flag" ||
28356 test ! -s conftest.err
28357 } && test -s conftest.$ac_objext; then
28358 ac_hi=$ac_mid; break
28359 else
28360 $as_echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28363 ac_lo=`expr $ac_mid + 1`
28364 if test $ac_lo -le $ac_mid; then
28365 ac_lo= ac_hi=
28366 break
28368 ac_mid=`expr 2 '*' $ac_mid + 1`
28371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28372 done
28373 else
28374 $as_echo "$as_me: failed program was:" >&5
28375 sed 's/^/| /' conftest.$ac_ext >&5
28377 cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h. */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28383 $ac_includes_default
28385 main ()
28387 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
28388 test_array [0] = 0
28391 return 0;
28393 _ACEOF
28394 rm -f conftest.$ac_objext
28395 if { (ac_try="$ac_compile"
28396 case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28399 esac
28400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28401 $as_echo "$ac_try_echo") >&5
28402 (eval "$ac_compile") 2>conftest.er1
28403 ac_status=$?
28404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
28407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } && {
28409 test -z "$ac_c_werror_flag" ||
28410 test ! -s conftest.err
28411 } && test -s conftest.$ac_objext; then
28412 ac_hi=-1 ac_mid=-1
28413 while :; do
28414 cat >conftest.$ac_ext <<_ACEOF
28415 /* confdefs.h. */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28420 $ac_includes_default
28422 main ()
28424 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
28425 test_array [0] = 0
28428 return 0;
28430 _ACEOF
28431 rm -f conftest.$ac_objext
28432 if { (ac_try="$ac_compile"
28433 case "(($ac_try" in
28434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435 *) ac_try_echo=$ac_try;;
28436 esac
28437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28438 $as_echo "$ac_try_echo") >&5
28439 (eval "$ac_compile") 2>conftest.er1
28440 ac_status=$?
28441 grep -v '^ *+' conftest.er1 >conftest.err
28442 rm -f conftest.er1
28443 cat conftest.err >&5
28444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } && {
28446 test -z "$ac_c_werror_flag" ||
28447 test ! -s conftest.err
28448 } && test -s conftest.$ac_objext; then
28449 ac_lo=$ac_mid; break
28450 else
28451 $as_echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28454 ac_hi=`expr '(' $ac_mid ')' - 1`
28455 if test $ac_mid -le $ac_hi; then
28456 ac_lo= ac_hi=
28457 break
28459 ac_mid=`expr 2 '*' $ac_mid`
28462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28463 done
28464 else
28465 $as_echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28468 ac_lo= ac_hi=
28471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475 # Binary search between lo and hi bounds.
28476 while test "x$ac_lo" != "x$ac_hi"; do
28477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28478 cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h. */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h. */
28484 $ac_includes_default
28486 main ()
28488 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
28489 test_array [0] = 0
28492 return 0;
28494 _ACEOF
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28500 esac
28501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28502 $as_echo "$ac_try_echo") >&5
28503 (eval "$ac_compile") 2>conftest.er1
28504 ac_status=$?
28505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
28508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } && {
28510 test -z "$ac_c_werror_flag" ||
28511 test ! -s conftest.err
28512 } && test -s conftest.$ac_objext; then
28513 ac_hi=$ac_mid
28514 else
28515 $as_echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28518 ac_lo=`expr '(' $ac_mid ')' + 1`
28521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522 done
28523 case $ac_lo in
28524 ?*) ac_cv_sizeof_short=$ac_lo;;
28525 '') if test "$ac_cv_type_short" = yes; then
28526 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28528 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28529 See \`config.log' for more details." >&5
28530 $as_echo "$as_me: error: cannot compute sizeof (short)
28531 See \`config.log' for more details." >&2;}
28532 { (exit 77); exit 77; }; }; }
28533 else
28534 ac_cv_sizeof_short=0
28535 fi ;;
28536 esac
28537 else
28538 cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h. */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h. */
28544 $ac_includes_default
28545 static long int longval () { return (long int) (sizeof (short)); }
28546 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
28547 #include <stdio.h>
28548 #include <stdlib.h>
28550 main ()
28553 FILE *f = fopen ("conftest.val", "w");
28554 if (! f)
28555 return 1;
28556 if (((long int) (sizeof (short))) < 0)
28558 long int i = longval ();
28559 if (i != ((long int) (sizeof (short))))
28560 return 1;
28561 fprintf (f, "%ld", i);
28563 else
28565 unsigned long int i = ulongval ();
28566 if (i != ((long int) (sizeof (short))))
28567 return 1;
28568 fprintf (f, "%lu", i);
28570 /* Do not output a trailing newline, as this causes \r\n confusion
28571 on some platforms. */
28572 return ferror (f) || fclose (f) != 0;
28575 return 0;
28577 _ACEOF
28578 rm -f conftest$ac_exeext
28579 if { (ac_try="$ac_link"
28580 case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28583 esac
28584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28585 $as_echo "$ac_try_echo") >&5
28586 (eval "$ac_link") 2>&5
28587 ac_status=$?
28588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28593 esac
28594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28595 $as_echo "$ac_try_echo") >&5
28596 (eval "$ac_try") 2>&5
28597 ac_status=$?
28598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; }; then
28600 ac_cv_sizeof_short=`cat conftest.val`
28601 else
28602 $as_echo "$as_me: program exited with status $ac_status" >&5
28603 $as_echo "$as_me: failed program was:" >&5
28604 sed 's/^/| /' conftest.$ac_ext >&5
28606 ( exit $ac_status )
28607 if test "$ac_cv_type_short" = yes; then
28608 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28610 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28611 See \`config.log' for more details." >&5
28612 $as_echo "$as_me: error: cannot compute sizeof (short)
28613 See \`config.log' for more details." >&2;}
28614 { (exit 77); exit 77; }; }; }
28615 else
28616 ac_cv_sizeof_short=0
28619 rm -rf conftest.dSYM
28620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28622 rm -f conftest.val
28624 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28625 $as_echo "$ac_cv_sizeof_short" >&6; }
28629 cat >>confdefs.h <<_ACEOF
28630 #define SIZEOF_SHORT $ac_cv_sizeof_short
28631 _ACEOF
28634 # The cast to long int works around a bug in the HP C Compiler
28635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28637 # This bug is HP SR number 8606223364.
28638 { $as_echo "$as_me:$LINENO: checking size of int" >&5
28639 $as_echo_n "checking size of int... " >&6; }
28640 if test "${ac_cv_sizeof_int+set}" = set; then
28641 $as_echo_n "(cached) " >&6
28642 else
28643 if test "$cross_compiling" = yes; then
28644 # Depending upon the size, compute the lo and hi bounds.
28645 cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h. */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28651 $ac_includes_default
28653 main ()
28655 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
28656 test_array [0] = 0
28659 return 0;
28661 _ACEOF
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667 esac
28668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28669 $as_echo "$ac_try_echo") >&5
28670 (eval "$ac_compile") 2>conftest.er1
28671 ac_status=$?
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
28675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } && {
28677 test -z "$ac_c_werror_flag" ||
28678 test ! -s conftest.err
28679 } && test -s conftest.$ac_objext; then
28680 ac_lo=0 ac_mid=0
28681 while :; do
28682 cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h. */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28688 $ac_includes_default
28690 main ()
28692 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
28693 test_array [0] = 0
28696 return 0;
28698 _ACEOF
28699 rm -f conftest.$ac_objext
28700 if { (ac_try="$ac_compile"
28701 case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28704 esac
28705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28706 $as_echo "$ac_try_echo") >&5
28707 (eval "$ac_compile") 2>conftest.er1
28708 ac_status=$?
28709 grep -v '^ *+' conftest.er1 >conftest.err
28710 rm -f conftest.er1
28711 cat conftest.err >&5
28712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); } && {
28714 test -z "$ac_c_werror_flag" ||
28715 test ! -s conftest.err
28716 } && test -s conftest.$ac_objext; then
28717 ac_hi=$ac_mid; break
28718 else
28719 $as_echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 ac_lo=`expr $ac_mid + 1`
28723 if test $ac_lo -le $ac_mid; then
28724 ac_lo= ac_hi=
28725 break
28727 ac_mid=`expr 2 '*' $ac_mid + 1`
28730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28731 done
28732 else
28733 $as_echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28736 cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h. */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h. */
28742 $ac_includes_default
28744 main ()
28746 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
28747 test_array [0] = 0
28750 return 0;
28752 _ACEOF
28753 rm -f conftest.$ac_objext
28754 if { (ac_try="$ac_compile"
28755 case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28758 esac
28759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28760 $as_echo "$ac_try_echo") >&5
28761 (eval "$ac_compile") 2>conftest.er1
28762 ac_status=$?
28763 grep -v '^ *+' conftest.er1 >conftest.err
28764 rm -f conftest.er1
28765 cat conftest.err >&5
28766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); } && {
28768 test -z "$ac_c_werror_flag" ||
28769 test ! -s conftest.err
28770 } && test -s conftest.$ac_objext; then
28771 ac_hi=-1 ac_mid=-1
28772 while :; do
28773 cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h. */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h. */
28779 $ac_includes_default
28781 main ()
28783 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
28784 test_array [0] = 0
28787 return 0;
28789 _ACEOF
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795 esac
28796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797 $as_echo "$ac_try_echo") >&5
28798 (eval "$ac_compile") 2>conftest.er1
28799 ac_status=$?
28800 grep -v '^ *+' conftest.er1 >conftest.err
28801 rm -f conftest.er1
28802 cat conftest.err >&5
28803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } && {
28805 test -z "$ac_c_werror_flag" ||
28806 test ! -s conftest.err
28807 } && test -s conftest.$ac_objext; then
28808 ac_lo=$ac_mid; break
28809 else
28810 $as_echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.$ac_ext >&5
28813 ac_hi=`expr '(' $ac_mid ')' - 1`
28814 if test $ac_mid -le $ac_hi; then
28815 ac_lo= ac_hi=
28816 break
28818 ac_mid=`expr 2 '*' $ac_mid`
28821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28822 done
28823 else
28824 $as_echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28827 ac_lo= ac_hi=
28830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28834 # Binary search between lo and hi bounds.
28835 while test "x$ac_lo" != "x$ac_hi"; do
28836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28837 cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h. */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 $ac_includes_default
28845 main ()
28847 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
28848 test_array [0] = 0
28851 return 0;
28853 _ACEOF
28854 rm -f conftest.$ac_objext
28855 if { (ac_try="$ac_compile"
28856 case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859 esac
28860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28861 $as_echo "$ac_try_echo") >&5
28862 (eval "$ac_compile") 2>conftest.er1
28863 ac_status=$?
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
28867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } && {
28869 test -z "$ac_c_werror_flag" ||
28870 test ! -s conftest.err
28871 } && test -s conftest.$ac_objext; then
28872 ac_hi=$ac_mid
28873 else
28874 $as_echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28877 ac_lo=`expr '(' $ac_mid ')' + 1`
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 done
28882 case $ac_lo in
28883 ?*) ac_cv_sizeof_int=$ac_lo;;
28884 '') if test "$ac_cv_type_int" = yes; then
28885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28887 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28888 See \`config.log' for more details." >&5
28889 $as_echo "$as_me: error: cannot compute sizeof (int)
28890 See \`config.log' for more details." >&2;}
28891 { (exit 77); exit 77; }; }; }
28892 else
28893 ac_cv_sizeof_int=0
28894 fi ;;
28895 esac
28896 else
28897 cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h. */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 $ac_includes_default
28904 static long int longval () { return (long int) (sizeof (int)); }
28905 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
28906 #include <stdio.h>
28907 #include <stdlib.h>
28909 main ()
28912 FILE *f = fopen ("conftest.val", "w");
28913 if (! f)
28914 return 1;
28915 if (((long int) (sizeof (int))) < 0)
28917 long int i = longval ();
28918 if (i != ((long int) (sizeof (int))))
28919 return 1;
28920 fprintf (f, "%ld", i);
28922 else
28924 unsigned long int i = ulongval ();
28925 if (i != ((long int) (sizeof (int))))
28926 return 1;
28927 fprintf (f, "%lu", i);
28929 /* Do not output a trailing newline, as this causes \r\n confusion
28930 on some platforms. */
28931 return ferror (f) || fclose (f) != 0;
28934 return 0;
28936 _ACEOF
28937 rm -f conftest$ac_exeext
28938 if { (ac_try="$ac_link"
28939 case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28942 esac
28943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28944 $as_echo "$ac_try_echo") >&5
28945 (eval "$ac_link") 2>&5
28946 ac_status=$?
28947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28949 { (case "(($ac_try" in
28950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951 *) ac_try_echo=$ac_try;;
28952 esac
28953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28954 $as_echo "$ac_try_echo") >&5
28955 (eval "$ac_try") 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; }; then
28959 ac_cv_sizeof_int=`cat conftest.val`
28960 else
28961 $as_echo "$as_me: program exited with status $ac_status" >&5
28962 $as_echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28965 ( exit $ac_status )
28966 if test "$ac_cv_type_int" = yes; then
28967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28969 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28970 See \`config.log' for more details." >&5
28971 $as_echo "$as_me: error: cannot compute sizeof (int)
28972 See \`config.log' for more details." >&2;}
28973 { (exit 77); exit 77; }; }; }
28974 else
28975 ac_cv_sizeof_int=0
28978 rm -rf conftest.dSYM
28979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28981 rm -f conftest.val
28983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28984 $as_echo "$ac_cv_sizeof_int" >&6; }
28988 cat >>confdefs.h <<_ACEOF
28989 #define SIZEOF_INT $ac_cv_sizeof_int
28990 _ACEOF
28993 if test "$ac_cv_sizeof_int" -eq 0
28994 then
28995 { { $as_echo "$as_me:$LINENO: error: \"No size for int type.\"" >&5
28996 $as_echo "$as_me: error: \"No size for int type.\"" >&2;}
28997 { (exit 1); exit 1; }; }
28999 # The cast to long int works around a bug in the HP C Compiler
29000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29002 # This bug is HP SR number 8606223364.
29003 { $as_echo "$as_me:$LINENO: checking size of long" >&5
29004 $as_echo_n "checking size of long... " >&6; }
29005 if test "${ac_cv_sizeof_long+set}" = set; then
29006 $as_echo_n "(cached) " >&6
29007 else
29008 if test "$cross_compiling" = yes; then
29009 # Depending upon the size, compute the lo and hi bounds.
29010 cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h. */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29016 $ac_includes_default
29018 main ()
29020 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
29021 test_array [0] = 0
29024 return 0;
29026 _ACEOF
29027 rm -f conftest.$ac_objext
29028 if { (ac_try="$ac_compile"
29029 case "(($ac_try" in
29030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29031 *) ac_try_echo=$ac_try;;
29032 esac
29033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29034 $as_echo "$ac_try_echo") >&5
29035 (eval "$ac_compile") 2>conftest.er1
29036 ac_status=$?
29037 grep -v '^ *+' conftest.er1 >conftest.err
29038 rm -f conftest.er1
29039 cat conftest.err >&5
29040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } && {
29042 test -z "$ac_c_werror_flag" ||
29043 test ! -s conftest.err
29044 } && test -s conftest.$ac_objext; then
29045 ac_lo=0 ac_mid=0
29046 while :; do
29047 cat >conftest.$ac_ext <<_ACEOF
29048 /* confdefs.h. */
29049 _ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h. */
29053 $ac_includes_default
29055 main ()
29057 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
29058 test_array [0] = 0
29061 return 0;
29063 _ACEOF
29064 rm -f conftest.$ac_objext
29065 if { (ac_try="$ac_compile"
29066 case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29069 esac
29070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29071 $as_echo "$ac_try_echo") >&5
29072 (eval "$ac_compile") 2>conftest.er1
29073 ac_status=$?
29074 grep -v '^ *+' conftest.er1 >conftest.err
29075 rm -f conftest.er1
29076 cat conftest.err >&5
29077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); } && {
29079 test -z "$ac_c_werror_flag" ||
29080 test ! -s conftest.err
29081 } && test -s conftest.$ac_objext; then
29082 ac_hi=$ac_mid; break
29083 else
29084 $as_echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29087 ac_lo=`expr $ac_mid + 1`
29088 if test $ac_lo -le $ac_mid; then
29089 ac_lo= ac_hi=
29090 break
29092 ac_mid=`expr 2 '*' $ac_mid + 1`
29095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29096 done
29097 else
29098 $as_echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29101 cat >conftest.$ac_ext <<_ACEOF
29102 /* confdefs.h. */
29103 _ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h. */
29107 $ac_includes_default
29109 main ()
29111 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
29112 test_array [0] = 0
29115 return 0;
29117 _ACEOF
29118 rm -f conftest.$ac_objext
29119 if { (ac_try="$ac_compile"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123 esac
29124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29125 $as_echo "$ac_try_echo") >&5
29126 (eval "$ac_compile") 2>conftest.er1
29127 ac_status=$?
29128 grep -v '^ *+' conftest.er1 >conftest.err
29129 rm -f conftest.er1
29130 cat conftest.err >&5
29131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } && {
29133 test -z "$ac_c_werror_flag" ||
29134 test ! -s conftest.err
29135 } && test -s conftest.$ac_objext; then
29136 ac_hi=-1 ac_mid=-1
29137 while :; do
29138 cat >conftest.$ac_ext <<_ACEOF
29139 /* confdefs.h. */
29140 _ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29144 $ac_includes_default
29146 main ()
29148 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
29149 test_array [0] = 0
29152 return 0;
29154 _ACEOF
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29160 esac
29161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29162 $as_echo "$ac_try_echo") >&5
29163 (eval "$ac_compile") 2>conftest.er1
29164 ac_status=$?
29165 grep -v '^ *+' conftest.er1 >conftest.err
29166 rm -f conftest.er1
29167 cat conftest.err >&5
29168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } && {
29170 test -z "$ac_c_werror_flag" ||
29171 test ! -s conftest.err
29172 } && test -s conftest.$ac_objext; then
29173 ac_lo=$ac_mid; break
29174 else
29175 $as_echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29178 ac_hi=`expr '(' $ac_mid ')' - 1`
29179 if test $ac_mid -le $ac_hi; then
29180 ac_lo= ac_hi=
29181 break
29183 ac_mid=`expr 2 '*' $ac_mid`
29186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187 done
29188 else
29189 $as_echo "$as_me: failed program was:" >&5
29190 sed 's/^/| /' conftest.$ac_ext >&5
29192 ac_lo= ac_hi=
29195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199 # Binary search between lo and hi bounds.
29200 while test "x$ac_lo" != "x$ac_hi"; do
29201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h. */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 $ac_includes_default
29210 main ()
29212 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
29213 test_array [0] = 0
29216 return 0;
29218 _ACEOF
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29224 esac
29225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29226 $as_echo "$ac_try_echo") >&5
29227 (eval "$ac_compile") 2>conftest.er1
29228 ac_status=$?
29229 grep -v '^ *+' conftest.er1 >conftest.err
29230 rm -f conftest.er1
29231 cat conftest.err >&5
29232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } && {
29234 test -z "$ac_c_werror_flag" ||
29235 test ! -s conftest.err
29236 } && test -s conftest.$ac_objext; then
29237 ac_hi=$ac_mid
29238 else
29239 $as_echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29242 ac_lo=`expr '(' $ac_mid ')' + 1`
29245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29246 done
29247 case $ac_lo in
29248 ?*) ac_cv_sizeof_long=$ac_lo;;
29249 '') if test "$ac_cv_type_long" = yes; then
29250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29252 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29253 See \`config.log' for more details." >&5
29254 $as_echo "$as_me: error: cannot compute sizeof (long)
29255 See \`config.log' for more details." >&2;}
29256 { (exit 77); exit 77; }; }; }
29257 else
29258 ac_cv_sizeof_long=0
29259 fi ;;
29260 esac
29261 else
29262 cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h. */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 $ac_includes_default
29269 static long int longval () { return (long int) (sizeof (long)); }
29270 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
29271 #include <stdio.h>
29272 #include <stdlib.h>
29274 main ()
29277 FILE *f = fopen ("conftest.val", "w");
29278 if (! f)
29279 return 1;
29280 if (((long int) (sizeof (long))) < 0)
29282 long int i = longval ();
29283 if (i != ((long int) (sizeof (long))))
29284 return 1;
29285 fprintf (f, "%ld", i);
29287 else
29289 unsigned long int i = ulongval ();
29290 if (i != ((long int) (sizeof (long))))
29291 return 1;
29292 fprintf (f, "%lu", i);
29294 /* Do not output a trailing newline, as this causes \r\n confusion
29295 on some platforms. */
29296 return ferror (f) || fclose (f) != 0;
29299 return 0;
29301 _ACEOF
29302 rm -f conftest$ac_exeext
29303 if { (ac_try="$ac_link"
29304 case "(($ac_try" in
29305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306 *) ac_try_echo=$ac_try;;
29307 esac
29308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29309 $as_echo "$ac_try_echo") >&5
29310 (eval "$ac_link") 2>&5
29311 ac_status=$?
29312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29314 { (case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29317 esac
29318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29319 $as_echo "$ac_try_echo") >&5
29320 (eval "$ac_try") 2>&5
29321 ac_status=$?
29322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 ac_cv_sizeof_long=`cat conftest.val`
29325 else
29326 $as_echo "$as_me: program exited with status $ac_status" >&5
29327 $as_echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29330 ( exit $ac_status )
29331 if test "$ac_cv_type_long" = yes; then
29332 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29334 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29335 See \`config.log' for more details." >&5
29336 $as_echo "$as_me: error: cannot compute sizeof (long)
29337 See \`config.log' for more details." >&2;}
29338 { (exit 77); exit 77; }; }; }
29339 else
29340 ac_cv_sizeof_long=0
29343 rm -rf conftest.dSYM
29344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29346 rm -f conftest.val
29348 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29349 $as_echo "$ac_cv_sizeof_long" >&6; }
29353 cat >>confdefs.h <<_ACEOF
29354 #define SIZEOF_LONG $ac_cv_sizeof_long
29355 _ACEOF
29358 if test "$ac_cv_sizeof_long" -eq 0
29359 then
29360 { { $as_echo "$as_me:$LINENO: error: \"No size for long type.\"" >&5
29361 $as_echo "$as_me: error: \"No size for long type.\"" >&2;}
29362 { (exit 1); exit 1; }; }
29364 # The cast to long int works around a bug in the HP C Compiler
29365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29367 # This bug is HP SR number 8606223364.
29368 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
29369 $as_echo_n "checking size of long long... " >&6; }
29370 if test "${ac_cv_sizeof_long_long+set}" = set; then
29371 $as_echo_n "(cached) " >&6
29372 else
29373 if test "$cross_compiling" = yes; then
29374 # Depending upon the size, compute the lo and hi bounds.
29375 cat >conftest.$ac_ext <<_ACEOF
29376 /* confdefs.h. */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29381 $ac_includes_default
29383 main ()
29385 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
29386 test_array [0] = 0
29389 return 0;
29391 _ACEOF
29392 rm -f conftest.$ac_objext
29393 if { (ac_try="$ac_compile"
29394 case "(($ac_try" in
29395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29396 *) ac_try_echo=$ac_try;;
29397 esac
29398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29399 $as_echo "$ac_try_echo") >&5
29400 (eval "$ac_compile") 2>conftest.er1
29401 ac_status=$?
29402 grep -v '^ *+' conftest.er1 >conftest.err
29403 rm -f conftest.er1
29404 cat conftest.err >&5
29405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } && {
29407 test -z "$ac_c_werror_flag" ||
29408 test ! -s conftest.err
29409 } && test -s conftest.$ac_objext; then
29410 ac_lo=0 ac_mid=0
29411 while :; do
29412 cat >conftest.$ac_ext <<_ACEOF
29413 /* confdefs.h. */
29414 _ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h. */
29418 $ac_includes_default
29420 main ()
29422 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
29423 test_array [0] = 0
29426 return 0;
29428 _ACEOF
29429 rm -f conftest.$ac_objext
29430 if { (ac_try="$ac_compile"
29431 case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434 esac
29435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29436 $as_echo "$ac_try_echo") >&5
29437 (eval "$ac_compile") 2>conftest.er1
29438 ac_status=$?
29439 grep -v '^ *+' conftest.er1 >conftest.err
29440 rm -f conftest.er1
29441 cat conftest.err >&5
29442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } && {
29444 test -z "$ac_c_werror_flag" ||
29445 test ! -s conftest.err
29446 } && test -s conftest.$ac_objext; then
29447 ac_hi=$ac_mid; break
29448 else
29449 $as_echo "$as_me: failed program was:" >&5
29450 sed 's/^/| /' conftest.$ac_ext >&5
29452 ac_lo=`expr $ac_mid + 1`
29453 if test $ac_lo -le $ac_mid; then
29454 ac_lo= ac_hi=
29455 break
29457 ac_mid=`expr 2 '*' $ac_mid + 1`
29460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29461 done
29462 else
29463 $as_echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29466 cat >conftest.$ac_ext <<_ACEOF
29467 /* confdefs.h. */
29468 _ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h. */
29472 $ac_includes_default
29474 main ()
29476 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
29477 test_array [0] = 0
29480 return 0;
29482 _ACEOF
29483 rm -f conftest.$ac_objext
29484 if { (ac_try="$ac_compile"
29485 case "(($ac_try" in
29486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487 *) ac_try_echo=$ac_try;;
29488 esac
29489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29490 $as_echo "$ac_try_echo") >&5
29491 (eval "$ac_compile") 2>conftest.er1
29492 ac_status=$?
29493 grep -v '^ *+' conftest.er1 >conftest.err
29494 rm -f conftest.er1
29495 cat conftest.err >&5
29496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); } && {
29498 test -z "$ac_c_werror_flag" ||
29499 test ! -s conftest.err
29500 } && test -s conftest.$ac_objext; then
29501 ac_hi=-1 ac_mid=-1
29502 while :; do
29503 cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h. */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h. */
29509 $ac_includes_default
29511 main ()
29513 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
29514 test_array [0] = 0
29517 return 0;
29519 _ACEOF
29520 rm -f conftest.$ac_objext
29521 if { (ac_try="$ac_compile"
29522 case "(($ac_try" in
29523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524 *) ac_try_echo=$ac_try;;
29525 esac
29526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29527 $as_echo "$ac_try_echo") >&5
29528 (eval "$ac_compile") 2>conftest.er1
29529 ac_status=$?
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
29533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } && {
29535 test -z "$ac_c_werror_flag" ||
29536 test ! -s conftest.err
29537 } && test -s conftest.$ac_objext; then
29538 ac_lo=$ac_mid; break
29539 else
29540 $as_echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29543 ac_hi=`expr '(' $ac_mid ')' - 1`
29544 if test $ac_mid -le $ac_hi; then
29545 ac_lo= ac_hi=
29546 break
29548 ac_mid=`expr 2 '*' $ac_mid`
29551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29552 done
29553 else
29554 $as_echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29557 ac_lo= ac_hi=
29560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29564 # Binary search between lo and hi bounds.
29565 while test "x$ac_lo" != "x$ac_hi"; do
29566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29567 cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h. */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h. */
29573 $ac_includes_default
29575 main ()
29577 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
29578 test_array [0] = 0
29581 return 0;
29583 _ACEOF
29584 rm -f conftest.$ac_objext
29585 if { (ac_try="$ac_compile"
29586 case "(($ac_try" in
29587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29588 *) ac_try_echo=$ac_try;;
29589 esac
29590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29591 $as_echo "$ac_try_echo") >&5
29592 (eval "$ac_compile") 2>conftest.er1
29593 ac_status=$?
29594 grep -v '^ *+' conftest.er1 >conftest.err
29595 rm -f conftest.er1
29596 cat conftest.err >&5
29597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } && {
29599 test -z "$ac_c_werror_flag" ||
29600 test ! -s conftest.err
29601 } && test -s conftest.$ac_objext; then
29602 ac_hi=$ac_mid
29603 else
29604 $as_echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29607 ac_lo=`expr '(' $ac_mid ')' + 1`
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611 done
29612 case $ac_lo in
29613 ?*) ac_cv_sizeof_long_long=$ac_lo;;
29614 '') if test "$ac_cv_type_long_long" = yes; then
29615 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29617 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
29618 See \`config.log' for more details." >&5
29619 $as_echo "$as_me: error: cannot compute sizeof (long long)
29620 See \`config.log' for more details." >&2;}
29621 { (exit 77); exit 77; }; }; }
29622 else
29623 ac_cv_sizeof_long_long=0
29624 fi ;;
29625 esac
29626 else
29627 cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h. */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29633 $ac_includes_default
29634 static long int longval () { return (long int) (sizeof (long long)); }
29635 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
29636 #include <stdio.h>
29637 #include <stdlib.h>
29639 main ()
29642 FILE *f = fopen ("conftest.val", "w");
29643 if (! f)
29644 return 1;
29645 if (((long int) (sizeof (long long))) < 0)
29647 long int i = longval ();
29648 if (i != ((long int) (sizeof (long long))))
29649 return 1;
29650 fprintf (f, "%ld", i);
29652 else
29654 unsigned long int i = ulongval ();
29655 if (i != ((long int) (sizeof (long long))))
29656 return 1;
29657 fprintf (f, "%lu", i);
29659 /* Do not output a trailing newline, as this causes \r\n confusion
29660 on some platforms. */
29661 return ferror (f) || fclose (f) != 0;
29664 return 0;
29666 _ACEOF
29667 rm -f conftest$ac_exeext
29668 if { (ac_try="$ac_link"
29669 case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29672 esac
29673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29674 $as_echo "$ac_try_echo") >&5
29675 (eval "$ac_link") 2>&5
29676 ac_status=$?
29677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29679 { (case "(($ac_try" in
29680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29681 *) ac_try_echo=$ac_try;;
29682 esac
29683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29684 $as_echo "$ac_try_echo") >&5
29685 (eval "$ac_try") 2>&5
29686 ac_status=$?
29687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; }; then
29689 ac_cv_sizeof_long_long=`cat conftest.val`
29690 else
29691 $as_echo "$as_me: program exited with status $ac_status" >&5
29692 $as_echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29695 ( exit $ac_status )
29696 if test "$ac_cv_type_long_long" = yes; then
29697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29699 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
29700 See \`config.log' for more details." >&5
29701 $as_echo "$as_me: error: cannot compute sizeof (long long)
29702 See \`config.log' for more details." >&2;}
29703 { (exit 77); exit 77; }; }; }
29704 else
29705 ac_cv_sizeof_long_long=0
29708 rm -rf conftest.dSYM
29709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711 rm -f conftest.val
29713 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
29714 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29718 cat >>confdefs.h <<_ACEOF
29719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29720 _ACEOF
29723 if test "$ac_cv_sizeof_long_long" -eq 0
29724 then
29725 { { $as_echo "$as_me:$LINENO: error: \"MySQL needs a long long type.\"" >&5
29726 $as_echo "$as_me: error: \"MySQL needs a long long type.\"" >&2;}
29727 { (exit 1); exit 1; }; }
29729 # off_t is not a builtin type
29730 # The cast to long int works around a bug in the HP C Compiler
29731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29733 # This bug is HP SR number 8606223364.
29734 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
29735 $as_echo_n "checking size of off_t... " >&6; }
29736 if test "${ac_cv_sizeof_off_t+set}" = set; then
29737 $as_echo_n "(cached) " >&6
29738 else
29739 if test "$cross_compiling" = yes; then
29740 # Depending upon the size, compute the lo and hi bounds.
29741 cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h. */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29747 $ac_includes_default
29749 main ()
29751 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
29752 test_array [0] = 0
29755 return 0;
29757 _ACEOF
29758 rm -f conftest.$ac_objext
29759 if { (ac_try="$ac_compile"
29760 case "(($ac_try" in
29761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29762 *) ac_try_echo=$ac_try;;
29763 esac
29764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29765 $as_echo "$ac_try_echo") >&5
29766 (eval "$ac_compile") 2>conftest.er1
29767 ac_status=$?
29768 grep -v '^ *+' conftest.er1 >conftest.err
29769 rm -f conftest.er1
29770 cat conftest.err >&5
29771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } && {
29773 test -z "$ac_c_werror_flag" ||
29774 test ! -s conftest.err
29775 } && test -s conftest.$ac_objext; then
29776 ac_lo=0 ac_mid=0
29777 while :; do
29778 cat >conftest.$ac_ext <<_ACEOF
29779 /* confdefs.h. */
29780 _ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h. */
29784 $ac_includes_default
29786 main ()
29788 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
29789 test_array [0] = 0
29792 return 0;
29794 _ACEOF
29795 rm -f conftest.$ac_objext
29796 if { (ac_try="$ac_compile"
29797 case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800 esac
29801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29802 $as_echo "$ac_try_echo") >&5
29803 (eval "$ac_compile") 2>conftest.er1
29804 ac_status=$?
29805 grep -v '^ *+' conftest.er1 >conftest.err
29806 rm -f conftest.er1
29807 cat conftest.err >&5
29808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } && {
29810 test -z "$ac_c_werror_flag" ||
29811 test ! -s conftest.err
29812 } && test -s conftest.$ac_objext; then
29813 ac_hi=$ac_mid; break
29814 else
29815 $as_echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29818 ac_lo=`expr $ac_mid + 1`
29819 if test $ac_lo -le $ac_mid; then
29820 ac_lo= ac_hi=
29821 break
29823 ac_mid=`expr 2 '*' $ac_mid + 1`
29826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29827 done
29828 else
29829 $as_echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29832 cat >conftest.$ac_ext <<_ACEOF
29833 /* confdefs.h. */
29834 _ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h. */
29838 $ac_includes_default
29840 main ()
29842 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
29843 test_array [0] = 0
29846 return 0;
29848 _ACEOF
29849 rm -f conftest.$ac_objext
29850 if { (ac_try="$ac_compile"
29851 case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854 esac
29855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29856 $as_echo "$ac_try_echo") >&5
29857 (eval "$ac_compile") 2>conftest.er1
29858 ac_status=$?
29859 grep -v '^ *+' conftest.er1 >conftest.err
29860 rm -f conftest.er1
29861 cat conftest.err >&5
29862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } && {
29864 test -z "$ac_c_werror_flag" ||
29865 test ! -s conftest.err
29866 } && test -s conftest.$ac_objext; then
29867 ac_hi=-1 ac_mid=-1
29868 while :; do
29869 cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h. */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h. */
29875 $ac_includes_default
29877 main ()
29879 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
29880 test_array [0] = 0
29883 return 0;
29885 _ACEOF
29886 rm -f conftest.$ac_objext
29887 if { (ac_try="$ac_compile"
29888 case "(($ac_try" in
29889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890 *) ac_try_echo=$ac_try;;
29891 esac
29892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29893 $as_echo "$ac_try_echo") >&5
29894 (eval "$ac_compile") 2>conftest.er1
29895 ac_status=$?
29896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
29899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } && {
29901 test -z "$ac_c_werror_flag" ||
29902 test ! -s conftest.err
29903 } && test -s conftest.$ac_objext; then
29904 ac_lo=$ac_mid; break
29905 else
29906 $as_echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 ac_hi=`expr '(' $ac_mid ')' - 1`
29910 if test $ac_mid -le $ac_hi; then
29911 ac_lo= ac_hi=
29912 break
29914 ac_mid=`expr 2 '*' $ac_mid`
29917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29918 done
29919 else
29920 $as_echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ac_lo= ac_hi=
29926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29930 # Binary search between lo and hi bounds.
29931 while test "x$ac_lo" != "x$ac_hi"; do
29932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29933 cat >conftest.$ac_ext <<_ACEOF
29934 /* confdefs.h. */
29935 _ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h. */
29939 $ac_includes_default
29941 main ()
29943 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
29944 test_array [0] = 0
29947 return 0;
29949 _ACEOF
29950 rm -f conftest.$ac_objext
29951 if { (ac_try="$ac_compile"
29952 case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29955 esac
29956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29957 $as_echo "$ac_try_echo") >&5
29958 (eval "$ac_compile") 2>conftest.er1
29959 ac_status=$?
29960 grep -v '^ *+' conftest.er1 >conftest.err
29961 rm -f conftest.er1
29962 cat conftest.err >&5
29963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); } && {
29965 test -z "$ac_c_werror_flag" ||
29966 test ! -s conftest.err
29967 } && test -s conftest.$ac_objext; then
29968 ac_hi=$ac_mid
29969 else
29970 $as_echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29973 ac_lo=`expr '(' $ac_mid ')' + 1`
29976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29977 done
29978 case $ac_lo in
29979 ?*) ac_cv_sizeof_off_t=$ac_lo;;
29980 '') if test "$ac_cv_type_off_t" = yes; then
29981 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29983 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
29984 See \`config.log' for more details." >&5
29985 $as_echo "$as_me: error: cannot compute sizeof (off_t)
29986 See \`config.log' for more details." >&2;}
29987 { (exit 77); exit 77; }; }; }
29988 else
29989 ac_cv_sizeof_off_t=0
29990 fi ;;
29991 esac
29992 else
29993 cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h. */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
29999 $ac_includes_default
30000 static long int longval () { return (long int) (sizeof (off_t)); }
30001 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
30002 #include <stdio.h>
30003 #include <stdlib.h>
30005 main ()
30008 FILE *f = fopen ("conftest.val", "w");
30009 if (! f)
30010 return 1;
30011 if (((long int) (sizeof (off_t))) < 0)
30013 long int i = longval ();
30014 if (i != ((long int) (sizeof (off_t))))
30015 return 1;
30016 fprintf (f, "%ld", i);
30018 else
30020 unsigned long int i = ulongval ();
30021 if (i != ((long int) (sizeof (off_t))))
30022 return 1;
30023 fprintf (f, "%lu", i);
30025 /* Do not output a trailing newline, as this causes \r\n confusion
30026 on some platforms. */
30027 return ferror (f) || fclose (f) != 0;
30030 return 0;
30032 _ACEOF
30033 rm -f conftest$ac_exeext
30034 if { (ac_try="$ac_link"
30035 case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038 esac
30039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30040 $as_echo "$ac_try_echo") >&5
30041 (eval "$ac_link") 2>&5
30042 ac_status=$?
30043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30048 esac
30049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30050 $as_echo "$ac_try_echo") >&5
30051 (eval "$ac_try") 2>&5
30052 ac_status=$?
30053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
30055 ac_cv_sizeof_off_t=`cat conftest.val`
30056 else
30057 $as_echo "$as_me: program exited with status $ac_status" >&5
30058 $as_echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.$ac_ext >&5
30061 ( exit $ac_status )
30062 if test "$ac_cv_type_off_t" = yes; then
30063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
30066 See \`config.log' for more details." >&5
30067 $as_echo "$as_me: error: cannot compute sizeof (off_t)
30068 See \`config.log' for more details." >&2;}
30069 { (exit 77); exit 77; }; }; }
30070 else
30071 ac_cv_sizeof_off_t=0
30074 rm -rf conftest.dSYM
30075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30077 rm -f conftest.val
30079 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
30080 $as_echo "$ac_cv_sizeof_off_t" >&6; }
30084 cat >>confdefs.h <<_ACEOF
30085 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
30086 _ACEOF
30089 if test "$ac_cv_sizeof_off_t" -eq 0
30090 then
30091 { { $as_echo "$as_me:$LINENO: error: \"MySQL needs a off_t type.\"" >&5
30092 $as_echo "$as_me: error: \"MySQL needs a off_t type.\"" >&2;}
30093 { (exit 1); exit 1; }; }
30098 { $as_echo "$as_me:$LINENO: checking if time_t is unsigned" >&5
30099 $as_echo_n "checking if time_t is unsigned... " >&6; }
30100 cat >conftest.$ac_ext <<_ACEOF
30101 /* confdefs.h. */
30102 _ACEOF
30103 cat confdefs.h >>conftest.$ac_ext
30104 cat >>conftest.$ac_ext <<_ACEOF
30105 /* end confdefs.h. */
30107 #include <time.h>
30110 main ()
30113 int array[(((time_t)-1) > 0) ? 1 : -1];
30116 return 0;
30119 _ACEOF
30120 rm -f conftest.$ac_objext
30121 if { (ac_try="$ac_compile"
30122 case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30125 esac
30126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30127 $as_echo "$ac_try_echo") >&5
30128 (eval "$ac_compile") 2>conftest.er1
30129 ac_status=$?
30130 grep -v '^ *+' conftest.er1 >conftest.err
30131 rm -f conftest.er1
30132 cat conftest.err >&5
30133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); } && {
30135 test -z "$ac_c_werror_flag" ||
30136 test ! -s conftest.err
30137 } && test -s conftest.$ac_objext; then
30140 cat >>confdefs.h <<\_ACEOF
30141 #define TIME_T_UNSIGNED 1
30142 _ACEOF
30144 { $as_echo "$as_me:$LINENO: result: yes" >&5
30145 $as_echo "yes" >&6; }
30147 else
30148 $as_echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30151 { $as_echo "$as_me:$LINENO: result: no" >&5
30152 $as_echo "no" >&6; }
30156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30160 # The cast to long int works around a bug in the HP C Compiler
30161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30163 # This bug is HP SR number 8606223364.
30164 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
30165 $as_echo_n "checking size of time_t... " >&6; }
30166 if test "${ac_cv_sizeof_time_t+set}" = set; then
30167 $as_echo_n "(cached) " >&6
30168 else
30169 if test "$cross_compiling" = yes; then
30170 # Depending upon the size, compute the lo and hi bounds.
30171 cat >conftest.$ac_ext <<_ACEOF
30172 /* confdefs.h. */
30173 _ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h. */
30177 $ac_includes_default
30179 main ()
30181 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
30182 test_array [0] = 0
30185 return 0;
30187 _ACEOF
30188 rm -f conftest.$ac_objext
30189 if { (ac_try="$ac_compile"
30190 case "(($ac_try" in
30191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192 *) ac_try_echo=$ac_try;;
30193 esac
30194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30195 $as_echo "$ac_try_echo") >&5
30196 (eval "$ac_compile") 2>conftest.er1
30197 ac_status=$?
30198 grep -v '^ *+' conftest.er1 >conftest.err
30199 rm -f conftest.er1
30200 cat conftest.err >&5
30201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } && {
30203 test -z "$ac_c_werror_flag" ||
30204 test ! -s conftest.err
30205 } && test -s conftest.$ac_objext; then
30206 ac_lo=0 ac_mid=0
30207 while :; do
30208 cat >conftest.$ac_ext <<_ACEOF
30209 /* confdefs.h. */
30210 _ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h. */
30214 $ac_includes_default
30216 main ()
30218 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
30219 test_array [0] = 0
30222 return 0;
30224 _ACEOF
30225 rm -f conftest.$ac_objext
30226 if { (ac_try="$ac_compile"
30227 case "(($ac_try" in
30228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229 *) ac_try_echo=$ac_try;;
30230 esac
30231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30232 $as_echo "$ac_try_echo") >&5
30233 (eval "$ac_compile") 2>conftest.er1
30234 ac_status=$?
30235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
30238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } && {
30240 test -z "$ac_c_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest.$ac_objext; then
30243 ac_hi=$ac_mid; break
30244 else
30245 $as_echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30248 ac_lo=`expr $ac_mid + 1`
30249 if test $ac_lo -le $ac_mid; then
30250 ac_lo= ac_hi=
30251 break
30253 ac_mid=`expr 2 '*' $ac_mid + 1`
30256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30257 done
30258 else
30259 $as_echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30262 cat >conftest.$ac_ext <<_ACEOF
30263 /* confdefs.h. */
30264 _ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h. */
30268 $ac_includes_default
30270 main ()
30272 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
30273 test_array [0] = 0
30276 return 0;
30278 _ACEOF
30279 rm -f conftest.$ac_objext
30280 if { (ac_try="$ac_compile"
30281 case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284 esac
30285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30286 $as_echo "$ac_try_echo") >&5
30287 (eval "$ac_compile") 2>conftest.er1
30288 ac_status=$?
30289 grep -v '^ *+' conftest.er1 >conftest.err
30290 rm -f conftest.er1
30291 cat conftest.err >&5
30292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest.$ac_objext; then
30297 ac_hi=-1 ac_mid=-1
30298 while :; do
30299 cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h. */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30305 $ac_includes_default
30307 main ()
30309 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
30310 test_array [0] = 0
30313 return 0;
30315 _ACEOF
30316 rm -f conftest.$ac_objext
30317 if { (ac_try="$ac_compile"
30318 case "(($ac_try" in
30319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30320 *) ac_try_echo=$ac_try;;
30321 esac
30322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30323 $as_echo "$ac_try_echo") >&5
30324 (eval "$ac_compile") 2>conftest.er1
30325 ac_status=$?
30326 grep -v '^ *+' conftest.er1 >conftest.err
30327 rm -f conftest.er1
30328 cat conftest.err >&5
30329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); } && {
30331 test -z "$ac_c_werror_flag" ||
30332 test ! -s conftest.err
30333 } && test -s conftest.$ac_objext; then
30334 ac_lo=$ac_mid; break
30335 else
30336 $as_echo "$as_me: failed program was:" >&5
30337 sed 's/^/| /' conftest.$ac_ext >&5
30339 ac_hi=`expr '(' $ac_mid ')' - 1`
30340 if test $ac_mid -le $ac_hi; then
30341 ac_lo= ac_hi=
30342 break
30344 ac_mid=`expr 2 '*' $ac_mid`
30347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30348 done
30349 else
30350 $as_echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30353 ac_lo= ac_hi=
30356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30360 # Binary search between lo and hi bounds.
30361 while test "x$ac_lo" != "x$ac_hi"; do
30362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30363 cat >conftest.$ac_ext <<_ACEOF
30364 /* confdefs.h. */
30365 _ACEOF
30366 cat confdefs.h >>conftest.$ac_ext
30367 cat >>conftest.$ac_ext <<_ACEOF
30368 /* end confdefs.h. */
30369 $ac_includes_default
30371 main ()
30373 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
30374 test_array [0] = 0
30377 return 0;
30379 _ACEOF
30380 rm -f conftest.$ac_objext
30381 if { (ac_try="$ac_compile"
30382 case "(($ac_try" in
30383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30385 esac
30386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30387 $as_echo "$ac_try_echo") >&5
30388 (eval "$ac_compile") 2>conftest.er1
30389 ac_status=$?
30390 grep -v '^ *+' conftest.er1 >conftest.err
30391 rm -f conftest.er1
30392 cat conftest.err >&5
30393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); } && {
30395 test -z "$ac_c_werror_flag" ||
30396 test ! -s conftest.err
30397 } && test -s conftest.$ac_objext; then
30398 ac_hi=$ac_mid
30399 else
30400 $as_echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_lo=`expr '(' $ac_mid ')' + 1`
30406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30407 done
30408 case $ac_lo in
30409 ?*) ac_cv_sizeof_time_t=$ac_lo;;
30410 '') if test "$ac_cv_type_time_t" = yes; then
30411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30413 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
30414 See \`config.log' for more details." >&5
30415 $as_echo "$as_me: error: cannot compute sizeof (time_t)
30416 See \`config.log' for more details." >&2;}
30417 { (exit 77); exit 77; }; }; }
30418 else
30419 ac_cv_sizeof_time_t=0
30420 fi ;;
30421 esac
30422 else
30423 cat >conftest.$ac_ext <<_ACEOF
30424 /* confdefs.h. */
30425 _ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h. */
30429 $ac_includes_default
30430 static long int longval () { return (long int) (sizeof (time_t)); }
30431 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
30432 #include <stdio.h>
30433 #include <stdlib.h>
30435 main ()
30438 FILE *f = fopen ("conftest.val", "w");
30439 if (! f)
30440 return 1;
30441 if (((long int) (sizeof (time_t))) < 0)
30443 long int i = longval ();
30444 if (i != ((long int) (sizeof (time_t))))
30445 return 1;
30446 fprintf (f, "%ld", i);
30448 else
30450 unsigned long int i = ulongval ();
30451 if (i != ((long int) (sizeof (time_t))))
30452 return 1;
30453 fprintf (f, "%lu", i);
30455 /* Do not output a trailing newline, as this causes \r\n confusion
30456 on some platforms. */
30457 return ferror (f) || fclose (f) != 0;
30460 return 0;
30462 _ACEOF
30463 rm -f conftest$ac_exeext
30464 if { (ac_try="$ac_link"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468 esac
30469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30470 $as_echo "$ac_try_echo") >&5
30471 (eval "$ac_link") 2>&5
30472 ac_status=$?
30473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30475 { (case "(($ac_try" in
30476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30477 *) ac_try_echo=$ac_try;;
30478 esac
30479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30480 $as_echo "$ac_try_echo") >&5
30481 (eval "$ac_try") 2>&5
30482 ac_status=$?
30483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; }; then
30485 ac_cv_sizeof_time_t=`cat conftest.val`
30486 else
30487 $as_echo "$as_me: program exited with status $ac_status" >&5
30488 $as_echo "$as_me: failed program was:" >&5
30489 sed 's/^/| /' conftest.$ac_ext >&5
30491 ( exit $ac_status )
30492 if test "$ac_cv_type_time_t" = yes; then
30493 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30495 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
30496 See \`config.log' for more details." >&5
30497 $as_echo "$as_me: error: cannot compute sizeof (time_t)
30498 See \`config.log' for more details." >&2;}
30499 { (exit 77); exit 77; }; }; }
30500 else
30501 ac_cv_sizeof_time_t=0
30504 rm -rf conftest.dSYM
30505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30507 rm -f conftest.val
30509 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
30510 $as_echo "$ac_cv_sizeof_time_t" >&6; }
30514 cat >>confdefs.h <<_ACEOF
30515 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
30516 _ACEOF
30519 if test "$ac_cv_sizeof_time_t" -eq 0
30520 then
30521 { { $as_echo "$as_me:$LINENO: error: \"MySQL needs a time_t type.\"" >&5
30522 $as_echo "$as_me: error: \"MySQL needs a time_t type.\"" >&2;}
30523 { (exit 1); exit 1; }; }
30526 # do we need #pragma interface/#pragma implementation ?
30527 # yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
30528 { $as_echo "$as_me:$LINENO: checking the need for #pragma interface/implementation" >&5
30529 $as_echo_n "checking the need for #pragma interface/implementation... " >&6; }
30530 # instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't
30531 # follow any standard), we'll use well-defined preprocessor macros:
30532 cat >conftest.$ac_ext <<_ACEOF
30533 /* confdefs.h. */
30534 _ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h. */
30539 #if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
30540 #error USE_PRAGMA_IMPLEMENTATION
30541 #endif
30543 _ACEOF
30544 if { (ac_try="$ac_cpp conftest.$ac_ext"
30545 case "(($ac_try" in
30546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547 *) ac_try_echo=$ac_try;;
30548 esac
30549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30550 $as_echo "$ac_try_echo") >&5
30551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30552 ac_status=$?
30553 grep -v '^ *+' conftest.er1 >conftest.err
30554 rm -f conftest.er1
30555 cat conftest.err >&5
30556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } >/dev/null && {
30558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30559 test ! -s conftest.err
30560 }; then
30561 { $as_echo "$as_me:$LINENO: result: no" >&5
30562 $as_echo "no" >&6; }
30563 else
30564 $as_echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30567 { $as_echo "$as_me:$LINENO: result: yes" >&5
30568 $as_echo "yes" >&6; } ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION"
30571 rm -f conftest.err conftest.$ac_ext
30573 # This always gives a warning. Ignore it unless you are cross compiling
30575 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30576 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
30577 if test "${ac_cv_c_bigendian+set}" = set; then
30578 $as_echo_n "(cached) " >&6
30579 else
30580 ac_cv_c_bigendian=unknown
30581 # See if we're dealing with a universal compiler.
30582 cat >conftest.$ac_ext <<_ACEOF
30583 /* confdefs.h. */
30584 _ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h. */
30588 #ifndef __APPLE_CC__
30589 not a universal capable compiler
30590 #endif
30591 typedef int dummy;
30593 _ACEOF
30594 rm -f conftest.$ac_objext
30595 if { (ac_try="$ac_compile"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599 esac
30600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30601 $as_echo "$ac_try_echo") >&5
30602 (eval "$ac_compile") 2>conftest.er1
30603 ac_status=$?
30604 grep -v '^ *+' conftest.er1 >conftest.err
30605 rm -f conftest.er1
30606 cat conftest.err >&5
30607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } && {
30609 test -z "$ac_c_werror_flag" ||
30610 test ! -s conftest.err
30611 } && test -s conftest.$ac_objext; then
30613 # Check for potential -arch flags. It is not universal unless
30614 # there are some -arch flags. Note that *ppc* also matches
30615 # ppc64. This check is also rather less than ideal.
30616 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
30617 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
30618 esac
30619 else
30620 $as_echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627 if test $ac_cv_c_bigendian = unknown; then
30628 # See if sys/param.h defines the BYTE_ORDER macro.
30629 cat >conftest.$ac_ext <<_ACEOF
30630 /* confdefs.h. */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h. */
30635 #include <sys/types.h>
30636 #include <sys/param.h>
30639 main ()
30641 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
30642 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
30643 && LITTLE_ENDIAN)
30644 bogus endian macros
30645 #endif
30648 return 0;
30650 _ACEOF
30651 rm -f conftest.$ac_objext
30652 if { (ac_try="$ac_compile"
30653 case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656 esac
30657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30658 $as_echo "$ac_try_echo") >&5
30659 (eval "$ac_compile") 2>conftest.er1
30660 ac_status=$?
30661 grep -v '^ *+' conftest.er1 >conftest.err
30662 rm -f conftest.er1
30663 cat conftest.err >&5
30664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } && {
30666 test -z "$ac_c_werror_flag" ||
30667 test ! -s conftest.err
30668 } && test -s conftest.$ac_objext; then
30669 # It does; now see whether it defined to BIG_ENDIAN or not.
30670 cat >conftest.$ac_ext <<_ACEOF
30671 /* confdefs.h. */
30672 _ACEOF
30673 cat confdefs.h >>conftest.$ac_ext
30674 cat >>conftest.$ac_ext <<_ACEOF
30675 /* end confdefs.h. */
30676 #include <sys/types.h>
30677 #include <sys/param.h>
30680 main ()
30682 #if BYTE_ORDER != BIG_ENDIAN
30683 not big endian
30684 #endif
30687 return 0;
30689 _ACEOF
30690 rm -f conftest.$ac_objext
30691 if { (ac_try="$ac_compile"
30692 case "(($ac_try" in
30693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694 *) ac_try_echo=$ac_try;;
30695 esac
30696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30697 $as_echo "$ac_try_echo") >&5
30698 (eval "$ac_compile") 2>conftest.er1
30699 ac_status=$?
30700 grep -v '^ *+' conftest.er1 >conftest.err
30701 rm -f conftest.er1
30702 cat conftest.err >&5
30703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } && {
30705 test -z "$ac_c_werror_flag" ||
30706 test ! -s conftest.err
30707 } && test -s conftest.$ac_objext; then
30708 ac_cv_c_bigendian=yes
30709 else
30710 $as_echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30713 ac_cv_c_bigendian=no
30716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30717 else
30718 $as_echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30726 if test $ac_cv_c_bigendian = unknown; then
30727 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
30728 cat >conftest.$ac_ext <<_ACEOF
30729 /* confdefs.h. */
30730 _ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h. */
30734 #include <limits.h>
30737 main ()
30739 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
30740 bogus endian macros
30741 #endif
30744 return 0;
30746 _ACEOF
30747 rm -f conftest.$ac_objext
30748 if { (ac_try="$ac_compile"
30749 case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30752 esac
30753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30754 $as_echo "$ac_try_echo") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && {
30762 test -z "$ac_c_werror_flag" ||
30763 test ! -s conftest.err
30764 } && test -s conftest.$ac_objext; then
30765 # It does; now see whether it defined to _BIG_ENDIAN or not.
30766 cat >conftest.$ac_ext <<_ACEOF
30767 /* confdefs.h. */
30768 _ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30772 #include <limits.h>
30775 main ()
30777 #ifndef _BIG_ENDIAN
30778 not big endian
30779 #endif
30782 return 0;
30784 _ACEOF
30785 rm -f conftest.$ac_objext
30786 if { (ac_try="$ac_compile"
30787 case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30790 esac
30791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30792 $as_echo "$ac_try_echo") >&5
30793 (eval "$ac_compile") 2>conftest.er1
30794 ac_status=$?
30795 grep -v '^ *+' conftest.er1 >conftest.err
30796 rm -f conftest.er1
30797 cat conftest.err >&5
30798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } && {
30800 test -z "$ac_c_werror_flag" ||
30801 test ! -s conftest.err
30802 } && test -s conftest.$ac_objext; then
30803 ac_cv_c_bigendian=yes
30804 else
30805 $as_echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 ac_cv_c_bigendian=no
30811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30812 else
30813 $as_echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.$ac_ext >&5
30819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821 if test $ac_cv_c_bigendian = unknown; then
30822 # Compile a test program.
30823 if test "$cross_compiling" = yes; then
30824 # Try to guess by grepping values from an object file.
30825 cat >conftest.$ac_ext <<_ACEOF
30826 /* confdefs.h. */
30827 _ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h. */
30831 short int ascii_mm[] =
30832 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30833 short int ascii_ii[] =
30834 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30835 int use_ascii (int i) {
30836 return ascii_mm[i] + ascii_ii[i];
30838 short int ebcdic_ii[] =
30839 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30840 short int ebcdic_mm[] =
30841 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30842 int use_ebcdic (int i) {
30843 return ebcdic_mm[i] + ebcdic_ii[i];
30845 extern int foo;
30848 main ()
30850 return use_ascii (foo) == use_ebcdic (foo);
30852 return 0;
30854 _ACEOF
30855 rm -f conftest.$ac_objext
30856 if { (ac_try="$ac_compile"
30857 case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860 esac
30861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30862 $as_echo "$ac_try_echo") >&5
30863 (eval "$ac_compile") 2>conftest.er1
30864 ac_status=$?
30865 grep -v '^ *+' conftest.er1 >conftest.err
30866 rm -f conftest.er1
30867 cat conftest.err >&5
30868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } && {
30870 test -z "$ac_c_werror_flag" ||
30871 test ! -s conftest.err
30872 } && test -s conftest.$ac_objext; then
30873 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
30874 ac_cv_c_bigendian=yes
30876 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30877 if test "$ac_cv_c_bigendian" = unknown; then
30878 ac_cv_c_bigendian=no
30879 else
30880 # finding both strings is unlikely to happen, but who knows?
30881 ac_cv_c_bigendian=unknown
30884 else
30885 $as_echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30892 else
30893 cat >conftest.$ac_ext <<_ACEOF
30894 /* confdefs.h. */
30895 _ACEOF
30896 cat confdefs.h >>conftest.$ac_ext
30897 cat >>conftest.$ac_ext <<_ACEOF
30898 /* end confdefs.h. */
30899 $ac_includes_default
30901 main ()
30904 /* Are we little or big endian? From Harbison&Steele. */
30905 union
30907 long int l;
30908 char c[sizeof (long int)];
30909 } u;
30910 u.l = 1;
30911 return u.c[sizeof (long int) - 1] == 1;
30914 return 0;
30916 _ACEOF
30917 rm -f conftest$ac_exeext
30918 if { (ac_try="$ac_link"
30919 case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30922 esac
30923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30924 $as_echo "$ac_try_echo") >&5
30925 (eval "$ac_link") 2>&5
30926 ac_status=$?
30927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30929 { (case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30932 esac
30933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30934 $as_echo "$ac_try_echo") >&5
30935 (eval "$ac_try") 2>&5
30936 ac_status=$?
30937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); }; }; then
30939 ac_cv_c_bigendian=no
30940 else
30941 $as_echo "$as_me: program exited with status $ac_status" >&5
30942 $as_echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30945 ( exit $ac_status )
30946 ac_cv_c_bigendian=yes
30948 rm -rf conftest.dSYM
30949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30955 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30956 $as_echo "$ac_cv_c_bigendian" >&6; }
30957 case $ac_cv_c_bigendian in #(
30958 yes)
30959 cat >>confdefs.h <<\_ACEOF
30960 #define WORDS_BIGENDIAN 1
30961 _ACEOF
30962 ;; #(
30964 ;; #(
30965 universal)
30967 cat >>confdefs.h <<\_ACEOF
30968 #define AC_APPLE_UNIVERSAL_BUILD 1
30969 _ACEOF
30971 ;; #(
30973 { { $as_echo "$as_me:$LINENO: error: unknown endianness
30974 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30975 $as_echo "$as_me: error: unknown endianness
30976 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30977 { (exit 1); exit 1; }; } ;;
30978 esac
30980 #---START: Used in for client configure
30981 # Check base type of last arg to accept
30982 ac_save_CXXFLAGS="$CXXFLAGS"
30983 { $as_echo "$as_me:$LINENO: checking base type of last arg to accept" >&5
30984 $as_echo_n "checking base type of last arg to accept... " >&6; }
30985 if test "${mysql_cv_btype_last_arg_accept+set}" = set; then
30986 $as_echo_n "(cached) " >&6
30987 else
30988 ac_ext=cpp
30989 ac_cpp='$CXXCPP $CPPFLAGS'
30990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30994 if test "$ac_cv_cxx_compiler_gnu" = "yes"
30995 then
30996 # Add -Werror, remove -fbranch-probabilities (Bug #268)
30997 CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
30999 mysql_cv_btype_last_arg_accept=none
31000 cat >conftest.$ac_ext <<_ACEOF
31001 /* confdefs.h. */
31002 _ACEOF
31003 cat confdefs.h >>conftest.$ac_ext
31004 cat >>conftest.$ac_ext <<_ACEOF
31005 /* end confdefs.h. */
31006 #if defined(inline)
31007 #undef inline
31008 #endif
31009 #include <stdlib.h>
31010 #include <sys/types.h>
31011 #include <sys/socket.h>
31014 main ()
31016 int a = accept(1, (struct sockaddr *) 0, (socklen_t *) 0); return (a != 0);
31018 return 0;
31020 _ACEOF
31021 rm -f conftest.$ac_objext
31022 if { (ac_try="$ac_compile"
31023 case "(($ac_try" in
31024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025 *) ac_try_echo=$ac_try;;
31026 esac
31027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31028 $as_echo "$ac_try_echo") >&5
31029 (eval "$ac_compile") 2>conftest.er1
31030 ac_status=$?
31031 grep -v '^ *+' conftest.er1 >conftest.err
31032 rm -f conftest.er1
31033 cat conftest.err >&5
31034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); } && {
31036 test -z "$ac_cxx_werror_flag" ||
31037 test ! -s conftest.err
31038 } && test -s conftest.$ac_objext; then
31039 mysql_cv_btype_last_arg_accept=socklen_t
31040 else
31041 $as_echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31048 if test "$mysql_cv_btype_last_arg_accept" = "none"; then
31049 cat >conftest.$ac_ext <<_ACEOF
31050 /* confdefs.h. */
31051 _ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h. */
31055 #if defined(inline)
31056 #undef inline
31057 #endif
31058 #include <stdlib.h>
31059 #include <sys/types.h>
31060 #include <sys/socket.h>
31063 main ()
31065 int a = accept(1, (struct sockaddr *) 0, (size_t *) 0); return (a != 0);
31067 return 0;
31069 _ACEOF
31070 rm -f conftest.$ac_objext
31071 if { (ac_try="$ac_compile"
31072 case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31075 esac
31076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31077 $as_echo "$ac_try_echo") >&5
31078 (eval "$ac_compile") 2>conftest.er1
31079 ac_status=$?
31080 grep -v '^ *+' conftest.er1 >conftest.err
31081 rm -f conftest.er1
31082 cat conftest.err >&5
31083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); } && {
31085 test -z "$ac_cxx_werror_flag" ||
31086 test ! -s conftest.err
31087 } && test -s conftest.$ac_objext; then
31088 mysql_cv_btype_last_arg_accept=size_t
31089 else
31090 $as_echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31098 if test "$mysql_cv_btype_last_arg_accept" = "none"; then
31099 mysql_cv_btype_last_arg_accept=int
31102 { $as_echo "$as_me:$LINENO: result: $mysql_cv_btype_last_arg_accept" >&5
31103 $as_echo "$mysql_cv_btype_last_arg_accept" >&6; }
31104 ac_ext=c
31105 ac_cpp='$CPP $CPPFLAGS'
31106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31111 cat >>confdefs.h <<_ACEOF
31112 #define SOCKET_SIZE_TYPE $mysql_cv_btype_last_arg_accept
31113 _ACEOF
31115 CXXFLAGS="$ac_save_CXXFLAGS"
31117 #---END:
31118 # Figure out what type of struct rlimit to use with setrlimit
31119 ac_save_CXXFLAGS="$CXXFLAGS"
31120 { $as_echo "$as_me:$LINENO: checking struct type to use with setrlimit" >&5
31121 $as_echo_n "checking struct type to use with setrlimit... " >&6; }
31122 if test "${mysql_cv_btype_struct_rlimit+set}" = set; then
31123 $as_echo_n "(cached) " >&6
31124 else
31125 ac_ext=cpp
31126 ac_cpp='$CXXCPP $CPPFLAGS'
31127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31131 if test "$ac_cv_cxx_compiler_gnu" = "yes"
31132 then
31133 # Add -Werror, remove -fbranch-probabilities (Bug #268)
31134 CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
31136 mysql_cv_btype_struct_rlimit=none
31137 cat >conftest.$ac_ext <<_ACEOF
31138 /* confdefs.h. */
31139 _ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h. */
31143 #if defined(inline)
31144 #undef inline
31145 #endif
31146 #include <stdlib.h>
31147 #include <sys/resource.h>
31150 main ()
31152 struct rlimit64 rl; setrlimit(RLIMIT_CORE, &rl);
31154 return 0;
31156 _ACEOF
31157 rm -f conftest.$ac_objext
31158 if { (ac_try="$ac_compile"
31159 case "(($ac_try" in
31160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161 *) ac_try_echo=$ac_try;;
31162 esac
31163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31164 $as_echo "$ac_try_echo") >&5
31165 (eval "$ac_compile") 2>conftest.er1
31166 ac_status=$?
31167 grep -v '^ *+' conftest.er1 >conftest.err
31168 rm -f conftest.er1
31169 cat conftest.err >&5
31170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } && {
31172 test -z "$ac_cxx_werror_flag" ||
31173 test ! -s conftest.err
31174 } && test -s conftest.$ac_objext; then
31175 mysql_cv_btype_struct_rlimit="struct rlimit64"
31176 else
31177 $as_echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184 if test "$mysql_cv_btype_struct_rlimit" = "none"; then
31185 mysql_cv_btype_struct_rlimit="struct rlimit"
31188 { $as_echo "$as_me:$LINENO: result: $mysql_cv_btype_struct_rlimit" >&5
31189 $as_echo "$mysql_cv_btype_struct_rlimit" >&6; }
31190 ac_ext=c
31191 ac_cpp='$CPP $CPPFLAGS'
31192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31197 cat >>confdefs.h <<_ACEOF
31198 #define STRUCT_RLIMIT $mysql_cv_btype_struct_rlimit
31199 _ACEOF
31201 CXXFLAGS="$ac_save_CXXFLAGS"
31203 # Find where the stack goes
31204 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31205 $as_echo_n "checking stack direction for C alloca... " >&6; }
31206 if test "${ac_cv_c_stack_direction+set}" = set; then
31207 $as_echo_n "(cached) " >&6
31208 else
31209 if test "$cross_compiling" = yes; then
31210 ac_cv_c_stack_direction=
31211 else
31212 cat >conftest.$ac_ext <<_ACEOF
31213 /* confdefs.h. */
31214 _ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h. */
31218 #include <stdlib.h>
31219 /* Prevent compiler optimization by HP's compiler, see bug#42213 */
31220 #if defined(__HP_cc) || defined (__HP_aCC) || defined (__hpux)
31221 #pragma noinline
31222 #endif
31223 /* Check stack direction (-1 down, 1 up) */
31224 int f(int *a)
31226 int b;
31227 return(&b > a)?1:-1;
31230 Prevent compiler optimizations by calling function
31231 through pointer.
31233 volatile int (*ptr_f)(int *) = f;
31234 int main()
31236 int a;
31237 exit(ptr_f(&a) < 0);
31240 _ACEOF
31241 rm -f conftest$ac_exeext
31242 if { (ac_try="$ac_link"
31243 case "(($ac_try" in
31244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245 *) ac_try_echo=$ac_try;;
31246 esac
31247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31248 $as_echo "$ac_try_echo") >&5
31249 (eval "$ac_link") 2>&5
31250 ac_status=$?
31251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31253 { (case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31256 esac
31257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31258 $as_echo "$ac_try_echo") >&5
31259 (eval "$ac_try") 2>&5
31260 ac_status=$?
31261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
31263 ac_cv_c_stack_direction=1
31264 else
31265 $as_echo "$as_me: program exited with status $ac_status" >&5
31266 $as_echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31269 ( exit $ac_status )
31270 ac_cv_c_stack_direction=-1
31272 rm -rf conftest.dSYM
31273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31278 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31279 $as_echo "$ac_cv_c_stack_direction" >&6; }
31280 cat >>confdefs.h <<_ACEOF
31281 #define STACK_DIRECTION $ac_cv_c_stack_direction
31282 _ACEOF
31285 # We want to skip alloca on irix unconditionally. It may work on some version..
31287 # Since we have heard that alloca fails on IRIX never define it on a
31288 # SGI machine
31289 if test ! "$host_vendor" = "sgi"
31290 then
31291 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31292 # for constant arguments. Useless!
31293 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
31294 $as_echo_n "checking for working alloca.h... " >&6; }
31295 if test "${ac_cv_header_alloca_h+set}" = set; then
31296 $as_echo_n "(cached) " >&6
31297 else
31298 cat >conftest.$ac_ext <<_ACEOF
31299 /* confdefs.h. */
31300 _ACEOF
31301 cat confdefs.h >>conftest.$ac_ext
31302 cat >>conftest.$ac_ext <<_ACEOF
31303 /* end confdefs.h. */
31304 #include <alloca.h>
31306 main ()
31308 char *p = alloca(2 * sizeof(int));
31310 return 0;
31312 _ACEOF
31313 rm -f conftest.$ac_objext conftest$ac_exeext
31314 if { (ac_try="$ac_link"
31315 case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31318 esac
31319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31320 $as_echo "$ac_try_echo") >&5
31321 (eval "$ac_link") 2>conftest.er1
31322 ac_status=$?
31323 grep -v '^ *+' conftest.er1 >conftest.err
31324 rm -f conftest.er1
31325 cat conftest.err >&5
31326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); } && {
31328 test -z "$ac_c_werror_flag" ||
31329 test ! -s conftest.err
31330 } && test -s conftest$ac_exeext && {
31331 test "$cross_compiling" = yes ||
31332 $as_test_x conftest$ac_exeext
31333 }; then
31334 ac_cv_header_alloca_h=yes
31335 else
31336 $as_echo "$as_me: failed program was:" >&5
31337 sed 's/^/| /' conftest.$ac_ext >&5
31339 ac_cv_header_alloca_h=no
31342 rm -rf conftest.dSYM
31343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344 conftest$ac_exeext conftest.$ac_ext
31346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
31347 $as_echo "$ac_cv_header_alloca_h" >&6; }
31348 if test "$ac_cv_header_alloca_h" = "yes"
31349 then
31350 cat >>confdefs.h <<\_ACEOF
31351 #define HAVE_ALLOCA 1
31352 _ACEOF
31356 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
31357 $as_echo_n "checking for alloca... " >&6; }
31358 if test "${ac_cv_func_alloca_works+set}" = set; then
31359 $as_echo_n "(cached) " >&6
31360 else
31361 cat >conftest.$ac_ext <<_ACEOF
31362 /* confdefs.h. */
31363 _ACEOF
31364 cat confdefs.h >>conftest.$ac_ext
31365 cat >>conftest.$ac_ext <<_ACEOF
31366 /* end confdefs.h. */
31368 #ifdef __GNUC__
31369 # define alloca __builtin_alloca
31370 #else
31371 # if HAVE_ALLOCA_H
31372 # include <alloca.h>
31373 # else
31374 # ifdef _AIX
31375 #pragma alloca
31376 # else
31377 # ifndef alloca /* predefined by HP cc +Olibcalls */
31378 char *alloca ();
31379 # endif
31380 # endif
31381 # endif
31382 #endif
31385 main ()
31387 char *p = (char *) alloca(1);
31389 return 0;
31391 _ACEOF
31392 rm -f conftest.$ac_objext conftest$ac_exeext
31393 if { (ac_try="$ac_link"
31394 case "(($ac_try" in
31395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31396 *) ac_try_echo=$ac_try;;
31397 esac
31398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31399 $as_echo "$ac_try_echo") >&5
31400 (eval "$ac_link") 2>conftest.er1
31401 ac_status=$?
31402 grep -v '^ *+' conftest.er1 >conftest.err
31403 rm -f conftest.er1
31404 cat conftest.err >&5
31405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); } && {
31407 test -z "$ac_c_werror_flag" ||
31408 test ! -s conftest.err
31409 } && test -s conftest$ac_exeext && {
31410 test "$cross_compiling" = yes ||
31411 $as_test_x conftest$ac_exeext
31412 }; then
31413 ac_cv_func_alloca_works=yes
31414 else
31415 $as_echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31418 ac_cv_func_alloca_works=no
31421 rm -rf conftest.dSYM
31422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31423 conftest$ac_exeext conftest.$ac_ext
31425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31426 $as_echo "$ac_cv_func_alloca_works" >&6; }
31427 if test "$ac_cv_func_alloca_works" = "yes"; then
31429 cat >>confdefs.h <<\_ACEOF
31430 #define HAVE_ALLOCA 1
31431 _ACEOF
31435 if test "$ac_cv_func_alloca_works" = "no"; then
31436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31437 # that cause trouble. Some versions do not even contain alloca or
31438 # contain a buggy version. If you still want to use their alloca,
31439 # use ar to extract alloca.o from them instead of compiling alloca.c.
31440 ALLOCA=alloca.o
31441 cat >>confdefs.h <<\_ACEOF
31442 #define C_ALLOCA 1
31443 _ACEOF
31446 { $as_echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
31447 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
31448 if test "${ac_cv_os_cray+set}" = set; then
31449 $as_echo_n "(cached) " >&6
31450 else
31451 cat >conftest.$ac_ext <<_ACEOF
31452 /* confdefs.h. */
31453 _ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h. */
31457 #if defined(CRAY) && ! defined(CRAY2)
31458 webecray
31459 #else
31460 wenotbecray
31461 #endif
31463 _ACEOF
31464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31465 $EGREP "webecray" >/dev/null 2>&1; then
31466 ac_cv_os_cray=yes
31467 else
31468 ac_cv_os_cray=no
31470 rm -f conftest*
31473 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31474 $as_echo "$ac_cv_os_cray" >&6; }
31475 if test "$ac_cv_os_cray" = "yes"; then
31476 for ac_func in _getb67 GETB67 getb67; do
31477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31478 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31479 $as_echo_n "checking for $ac_func... " >&6; }
31480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31481 $as_echo_n "(cached) " >&6
31482 else
31483 cat >conftest.$ac_ext <<_ACEOF
31484 /* confdefs.h. */
31485 _ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31491 #define $ac_func innocuous_$ac_func
31493 /* System header to define __stub macros and hopefully few prototypes,
31494 which can conflict with char $ac_func (); below.
31495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31496 <limits.h> exists even on freestanding compilers. */
31498 #ifdef __STDC__
31499 # include <limits.h>
31500 #else
31501 # include <assert.h>
31502 #endif
31504 #undef $ac_func
31506 /* Override any GCC internal prototype to avoid an error.
31507 Use char because int might match the return type of a GCC
31508 builtin and then its argument prototype would still apply. */
31509 #ifdef __cplusplus
31510 extern "C"
31511 #endif
31512 char $ac_func ();
31513 /* The GNU C library defines this for functions which it implements
31514 to always fail with ENOSYS. Some functions are actually named
31515 something starting with __ and the normal name is an alias. */
31516 #if defined __stub_$ac_func || defined __stub___$ac_func
31517 choke me
31518 #endif
31521 main ()
31523 return $ac_func ();
31525 return 0;
31527 _ACEOF
31528 rm -f conftest.$ac_objext conftest$ac_exeext
31529 if { (ac_try="$ac_link"
31530 case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31533 esac
31534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31535 $as_echo "$ac_try_echo") >&5
31536 (eval "$ac_link") 2>conftest.er1
31537 ac_status=$?
31538 grep -v '^ *+' conftest.er1 >conftest.err
31539 rm -f conftest.er1
31540 cat conftest.err >&5
31541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest$ac_exeext && {
31546 test "$cross_compiling" = yes ||
31547 $as_test_x conftest$ac_exeext
31548 }; then
31549 eval "$as_ac_var=yes"
31550 else
31551 $as_echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31554 eval "$as_ac_var=no"
31557 rm -rf conftest.dSYM
31558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31559 conftest$ac_exeext conftest.$ac_ext
31561 ac_res=`eval 'as_val=${'$as_ac_var'}
31562 $as_echo "$as_val"'`
31563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31564 $as_echo "$ac_res" >&6; }
31565 as_val=`eval 'as_val=${'$as_ac_var'}
31566 $as_echo "$as_val"'`
31567 if test "x$as_val" = x""yes; then
31568 cat >>confdefs.h <<_ACEOF
31569 #define CRAY_STACKSEG_END $ac_func
31570 _ACEOF
31572 break
31575 done
31578 else
31579 { $as_echo "$as_me:$LINENO: result: \"Skipped alloca tests\"" >&5
31580 $as_echo "\"Skipped alloca tests\"" >&6; }
31583 # Do struct timespec have members tv_sec or ts_sec
31584 { $as_echo "$as_me:$LINENO: checking if struct timespec has a ts_sec member" >&5
31585 $as_echo_n "checking if struct timespec has a ts_sec member... " >&6; }
31586 if test "${mysql_cv_timespec_ts+set}" = set; then
31587 $as_echo_n "(cached) " >&6
31588 else
31589 cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h. */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 #include <pthread.h>
31596 #ifdef __cplusplus
31597 extern "C"
31598 #endif
31601 main ()
31603 struct timespec abstime;
31605 abstime.ts_sec = time(NULL)+1;
31606 abstime.ts_nsec = 0;
31609 return 0;
31611 _ACEOF
31612 rm -f conftest.$ac_objext
31613 if { (ac_try="$ac_compile"
31614 case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617 esac
31618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31619 $as_echo "$ac_try_echo") >&5
31620 (eval "$ac_compile") 2>conftest.er1
31621 ac_status=$?
31622 grep -v '^ *+' conftest.er1 >conftest.err
31623 rm -f conftest.er1
31624 cat conftest.err >&5
31625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); } && {
31627 test -z "$ac_c_werror_flag" ||
31628 test ! -s conftest.err
31629 } && test -s conftest.$ac_objext; then
31630 mysql_cv_timespec_ts=yes
31631 else
31632 $as_echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31635 mysql_cv_timespec_ts=no
31638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31640 { $as_echo "$as_me:$LINENO: result: $mysql_cv_timespec_ts" >&5
31641 $as_echo "$mysql_cv_timespec_ts" >&6; }
31642 if test "$mysql_cv_timespec_ts" = "yes"
31643 then
31645 cat >>confdefs.h <<\_ACEOF
31646 #define HAVE_TIMESPEC_TS_SEC 1
31647 _ACEOF
31651 # Do we have the tzname variable
31652 { $as_echo "$as_me:$LINENO: checking if we have tzname variable" >&5
31653 $as_echo_n "checking if we have tzname variable... " >&6; }
31654 if test "${mysql_cv_tzname+set}" = set; then
31655 $as_echo_n "(cached) " >&6
31656 else
31657 cat >conftest.$ac_ext <<_ACEOF
31658 /* confdefs.h. */
31659 _ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h. */
31663 #include <time.h>
31664 #ifdef __cplusplus
31665 extern "C"
31666 #endif
31669 main ()
31671 tzset();
31672 return tzname[0] != 0;
31675 return 0;
31677 _ACEOF
31678 rm -f conftest.$ac_objext
31679 if { (ac_try="$ac_compile"
31680 case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31683 esac
31684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31685 $as_echo "$ac_try_echo") >&5
31686 (eval "$ac_compile") 2>conftest.er1
31687 ac_status=$?
31688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
31691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } && {
31693 test -z "$ac_c_werror_flag" ||
31694 test ! -s conftest.err
31695 } && test -s conftest.$ac_objext; then
31696 mysql_cv_tzname=yes
31697 else
31698 $as_echo "$as_me: failed program was:" >&5
31699 sed 's/^/| /' conftest.$ac_ext >&5
31701 mysql_cv_tzname=no
31704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31706 { $as_echo "$as_me:$LINENO: result: $mysql_cv_tzname" >&5
31707 $as_echo "$mysql_cv_tzname" >&6; }
31708 if test "$mysql_cv_tzname" = "yes"
31709 then
31711 cat >>confdefs.h <<\_ACEOF
31712 #define HAVE_TZNAME 1
31713 _ACEOF
31717 # Do the c++ compiler have a bool type
31720 { $as_echo "$as_me:$LINENO: checking if ${CXX} supports bool types" >&5
31721 $as_echo_n "checking if ${CXX} supports bool types... " >&6; }
31722 if test "${mysql_cv_have_bool+set}" = set; then
31723 $as_echo_n "(cached) " >&6
31724 else
31727 ac_ext=cpp
31728 ac_cpp='$CXXCPP $CPPFLAGS'
31729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31733 cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h. */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31741 main ()
31743 bool b = true;
31745 return 0;
31747 _ACEOF
31748 rm -f conftest.$ac_objext
31749 if { (ac_try="$ac_compile"
31750 case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31753 esac
31754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31755 $as_echo "$ac_try_echo") >&5
31756 (eval "$ac_compile") 2>conftest.er1
31757 ac_status=$?
31758 grep -v '^ *+' conftest.er1 >conftest.err
31759 rm -f conftest.er1
31760 cat conftest.err >&5
31761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } && {
31763 test -z "$ac_cxx_werror_flag" ||
31764 test ! -s conftest.err
31765 } && test -s conftest.$ac_objext; then
31766 mysql_cv_have_bool=yes
31767 else
31768 $as_echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31771 mysql_cv_have_bool=no
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775 ac_ext=c
31776 ac_cpp='$CPP $CPPFLAGS'
31777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31784 { $as_echo "$as_me:$LINENO: result: $mysql_cv_have_bool" >&5
31785 $as_echo "$mysql_cv_have_bool" >&6; }
31786 if test "$mysql_cv_have_bool" = yes; then
31788 cat >>confdefs.h <<\_ACEOF
31789 #define HAVE_BOOL 1
31790 _ACEOF
31794 # Check some common bugs with gcc 2.8.# on sparc
31795 case $SYSTEM_TYPE in
31796 *netware*) ;;
31799 { $as_echo "$as_me:$LINENO: checking if conversion of longlong to float works" >&5
31800 $as_echo_n "checking if conversion of longlong to float works... " >&6; }
31801 if test "${ac_cv_conv_longlong_to_float+set}" = set; then
31802 $as_echo_n "(cached) " >&6
31803 else
31804 if test "$cross_compiling" = yes; then
31805 ac_cv_conv_longlong_to_float="yes"
31806 else
31807 cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h. */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31813 #include <stdio.h>
31814 typedef long long longlong;
31815 int main()
31817 longlong ll=1;
31818 float f;
31819 FILE *file=fopen("conftestval", "w");
31820 f = (float) ll;
31821 fprintf(file,"%g\n",f);
31822 fclose(file);
31823 return (0);
31825 _ACEOF
31826 rm -f conftest$ac_exeext
31827 if { (ac_try="$ac_link"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31831 esac
31832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31833 $as_echo "$ac_try_echo") >&5
31834 (eval "$ac_link") 2>&5
31835 ac_status=$?
31836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31838 { (case "(($ac_try" in
31839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840 *) ac_try_echo=$ac_try;;
31841 esac
31842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31843 $as_echo "$ac_try_echo") >&5
31844 (eval "$ac_try") 2>&5
31845 ac_status=$?
31846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; }; then
31848 ac_cv_conv_longlong_to_float=`cat conftestval`
31849 else
31850 $as_echo "$as_me: program exited with status $ac_status" >&5
31851 $as_echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31854 ( exit $ac_status )
31855 ac_cv_conv_longlong_to_float=0
31857 rm -rf conftest.dSYM
31858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31863 if test "$ac_cv_conv_longlong_to_float" = "1" -o "$ac_cv_conv_longlong_to_float" = "yes"
31864 then
31865 ac_cv_conv_longlong_to_float=yes
31866 else
31867 ac_cv_conv_longlong_to_float=no
31869 { $as_echo "$as_me:$LINENO: result: $ac_cv_conv_longlong_to_float" >&5
31870 $as_echo "$ac_cv_conv_longlong_to_float" >&6; }
31872 if test "$ac_cv_conv_longlong_to_float" != "yes"
31873 then
31874 { { $as_echo "$as_me:$LINENO: error: Your compiler cannot convert a longlong value to a float!
31875 If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
31876 again" >&5
31877 $as_echo "$as_me: error: Your compiler cannot convert a longlong value to a float!
31878 If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
31879 again" >&2;}
31880 { (exit 1); exit 1; }; }
31883 esac
31884 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
31885 $as_echo_n "checking for sigset_t... " >&6; }
31886 if test "${ac_cv_type_sigset_t+set}" = set; then
31887 $as_echo_n "(cached) " >&6
31888 else
31889 ac_cv_type_sigset_t=no
31890 cat >conftest.$ac_ext <<_ACEOF
31891 /* confdefs.h. */
31892 _ACEOF
31893 cat confdefs.h >>conftest.$ac_ext
31894 cat >>conftest.$ac_ext <<_ACEOF
31895 /* end confdefs.h. */
31896 #include <sys/types.h>
31899 main ()
31901 if (sizeof (sigset_t))
31902 return 0;
31904 return 0;
31906 _ACEOF
31907 rm -f conftest.$ac_objext
31908 if { (ac_try="$ac_compile"
31909 case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912 esac
31913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31914 $as_echo "$ac_try_echo") >&5
31915 (eval "$ac_compile") 2>conftest.er1
31916 ac_status=$?
31917 grep -v '^ *+' conftest.er1 >conftest.err
31918 rm -f conftest.er1
31919 cat conftest.err >&5
31920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } && {
31922 test -z "$ac_c_werror_flag" ||
31923 test ! -s conftest.err
31924 } && test -s conftest.$ac_objext; then
31925 cat >conftest.$ac_ext <<_ACEOF
31926 /* confdefs.h. */
31927 _ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h. */
31931 #include <sys/types.h>
31934 main ()
31936 if (sizeof ((sigset_t)))
31937 return 0;
31939 return 0;
31941 _ACEOF
31942 rm -f conftest.$ac_objext
31943 if { (ac_try="$ac_compile"
31944 case "(($ac_try" in
31945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31946 *) ac_try_echo=$ac_try;;
31947 esac
31948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31949 $as_echo "$ac_try_echo") >&5
31950 (eval "$ac_compile") 2>conftest.er1
31951 ac_status=$?
31952 grep -v '^ *+' conftest.er1 >conftest.err
31953 rm -f conftest.er1
31954 cat conftest.err >&5
31955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } && {
31957 test -z "$ac_c_werror_flag" ||
31958 test ! -s conftest.err
31959 } && test -s conftest.$ac_objext; then
31961 else
31962 $as_echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31965 ac_cv_type_sigset_t=yes
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 else
31970 $as_echo "$as_me: failed program was:" >&5
31971 sed 's/^/| /' conftest.$ac_ext >&5
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31978 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
31979 $as_echo "$ac_cv_type_sigset_t" >&6; }
31980 if test "x$ac_cv_type_sigset_t" = x""yes; then
31982 cat >>confdefs.h <<_ACEOF
31983 #define HAVE_SIGSET_T 1
31984 _ACEOF
31988 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
31989 $as_echo_n "checking for off_t... " >&6; }
31990 if test "${ac_cv_type_off_t+set}" = set; then
31991 $as_echo_n "(cached) " >&6
31992 else
31993 ac_cv_type_off_t=no
31994 cat >conftest.$ac_ext <<_ACEOF
31995 /* confdefs.h. */
31996 _ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32000 #include <sys/types.h>
32003 main ()
32005 if (sizeof (off_t))
32006 return 0;
32008 return 0;
32010 _ACEOF
32011 rm -f conftest.$ac_objext
32012 if { (ac_try="$ac_compile"
32013 case "(($ac_try" in
32014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32015 *) ac_try_echo=$ac_try;;
32016 esac
32017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32018 $as_echo "$ac_try_echo") >&5
32019 (eval "$ac_compile") 2>conftest.er1
32020 ac_status=$?
32021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
32024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } && {
32026 test -z "$ac_c_werror_flag" ||
32027 test ! -s conftest.err
32028 } && test -s conftest.$ac_objext; then
32029 cat >conftest.$ac_ext <<_ACEOF
32030 /* confdefs.h. */
32031 _ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 #include <sys/types.h>
32038 main ()
32040 if (sizeof ((off_t)))
32041 return 0;
32043 return 0;
32045 _ACEOF
32046 rm -f conftest.$ac_objext
32047 if { (ac_try="$ac_compile"
32048 case "(($ac_try" in
32049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050 *) ac_try_echo=$ac_try;;
32051 esac
32052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32053 $as_echo "$ac_try_echo") >&5
32054 (eval "$ac_compile") 2>conftest.er1
32055 ac_status=$?
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
32059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } && {
32061 test -z "$ac_c_werror_flag" ||
32062 test ! -s conftest.err
32063 } && test -s conftest.$ac_objext; then
32065 else
32066 $as_echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_cv_type_off_t=yes
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32073 else
32074 $as_echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32082 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32083 $as_echo "$ac_cv_type_off_t" >&6; }
32084 if test "x$ac_cv_type_off_t" = x""yes; then
32086 cat >>confdefs.h <<_ACEOF
32087 #define HAVE_OFF_T 1
32088 _ACEOF
32093 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
32094 $as_echo_n "checking for size_t... " >&6; }
32095 if test "${ac_cv_type_size_t+set}" = set; then
32096 $as_echo_n "(cached) " >&6
32097 else
32098 ac_cv_type_size_t=no
32099 cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h. */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 #include <stdio.h>
32108 main ()
32110 if (sizeof (size_t))
32111 return 0;
32113 return 0;
32115 _ACEOF
32116 rm -f conftest.$ac_objext
32117 if { (ac_try="$ac_compile"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32121 esac
32122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32123 $as_echo "$ac_try_echo") >&5
32124 (eval "$ac_compile") 2>conftest.er1
32125 ac_status=$?
32126 grep -v '^ *+' conftest.er1 >conftest.err
32127 rm -f conftest.er1
32128 cat conftest.err >&5
32129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } && {
32131 test -z "$ac_c_werror_flag" ||
32132 test ! -s conftest.err
32133 } && test -s conftest.$ac_objext; then
32134 cat >conftest.$ac_ext <<_ACEOF
32135 /* confdefs.h. */
32136 _ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32140 #include <stdio.h>
32143 main ()
32145 if (sizeof ((size_t)))
32146 return 0;
32148 return 0;
32150 _ACEOF
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32156 esac
32157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32158 $as_echo "$ac_try_echo") >&5
32159 (eval "$ac_compile") 2>conftest.er1
32160 ac_status=$?
32161 grep -v '^ *+' conftest.er1 >conftest.err
32162 rm -f conftest.er1
32163 cat conftest.err >&5
32164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } && {
32166 test -z "$ac_c_werror_flag" ||
32167 test ! -s conftest.err
32168 } && test -s conftest.$ac_objext; then
32170 else
32171 $as_echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_cv_type_size_t=yes
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 else
32179 $as_echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32187 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32188 $as_echo "$ac_cv_type_size_t" >&6; }
32189 if test "x$ac_cv_type_size_t" = x""yes; then
32191 cat >>confdefs.h <<_ACEOF
32192 #define HAVE_SIZE_T 1
32193 _ACEOF
32198 { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
32199 $as_echo_n "checking for u_int32_t... " >&6; }
32200 if test "${ac_cv_type_u_int32_t+set}" = set; then
32201 $as_echo_n "(cached) " >&6
32202 else
32203 ac_cv_type_u_int32_t=no
32204 cat >conftest.$ac_ext <<_ACEOF
32205 /* confdefs.h. */
32206 _ACEOF
32207 cat confdefs.h >>conftest.$ac_ext
32208 cat >>conftest.$ac_ext <<_ACEOF
32209 /* end confdefs.h. */
32210 $ac_includes_default
32212 main ()
32214 if (sizeof (u_int32_t))
32215 return 0;
32217 return 0;
32219 _ACEOF
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224 *) ac_try_echo=$ac_try;;
32225 esac
32226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32227 $as_echo "$ac_try_echo") >&5
32228 (eval "$ac_compile") 2>conftest.er1
32229 ac_status=$?
32230 grep -v '^ *+' conftest.er1 >conftest.err
32231 rm -f conftest.er1
32232 cat conftest.err >&5
32233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); } && {
32235 test -z "$ac_c_werror_flag" ||
32236 test ! -s conftest.err
32237 } && test -s conftest.$ac_objext; then
32238 cat >conftest.$ac_ext <<_ACEOF
32239 /* confdefs.h. */
32240 _ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h. */
32244 $ac_includes_default
32246 main ()
32248 if (sizeof ((u_int32_t)))
32249 return 0;
32251 return 0;
32253 _ACEOF
32254 rm -f conftest.$ac_objext
32255 if { (ac_try="$ac_compile"
32256 case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259 esac
32260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32261 $as_echo "$ac_try_echo") >&5
32262 (eval "$ac_compile") 2>conftest.er1
32263 ac_status=$?
32264 grep -v '^ *+' conftest.er1 >conftest.err
32265 rm -f conftest.er1
32266 cat conftest.err >&5
32267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); } && {
32269 test -z "$ac_c_werror_flag" ||
32270 test ! -s conftest.err
32271 } && test -s conftest.$ac_objext; then
32273 else
32274 $as_echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32277 ac_cv_type_u_int32_t=yes
32280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32281 else
32282 $as_echo "$as_me: failed program was:" >&5
32283 sed 's/^/| /' conftest.$ac_ext >&5
32288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32290 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
32291 $as_echo "$ac_cv_type_u_int32_t" >&6; }
32292 if test "x$ac_cv_type_u_int32_t" = x""yes; then
32294 cat >>confdefs.h <<_ACEOF
32295 #define HAVE_U_INT32_T 1
32296 _ACEOF
32302 { $as_echo "$as_me:$LINENO: checking if pthread_yield takes zero arguments" >&5
32303 $as_echo_n "checking if pthread_yield takes zero arguments... " >&6; }
32304 if test "${ac_cv_pthread_yield_zero_arg+set}" = set; then
32305 $as_echo_n "(cached) " >&6
32306 else
32307 cat >conftest.$ac_ext <<_ACEOF
32308 /* confdefs.h. */
32309 _ACEOF
32310 cat confdefs.h >>conftest.$ac_ext
32311 cat >>conftest.$ac_ext <<_ACEOF
32312 /* end confdefs.h. */
32313 #define _GNU_SOURCE
32314 #include <pthread.h>
32315 #ifdef __cplusplus
32316 extern "C"
32317 #endif
32320 main ()
32323 pthread_yield();
32326 return 0;
32328 _ACEOF
32329 rm -f conftest.$ac_objext conftest$ac_exeext
32330 if { (ac_try="$ac_link"
32331 case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32334 esac
32335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32336 $as_echo "$ac_try_echo") >&5
32337 (eval "$ac_link") 2>conftest.er1
32338 ac_status=$?
32339 grep -v '^ *+' conftest.er1 >conftest.err
32340 rm -f conftest.er1
32341 cat conftest.err >&5
32342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } && {
32344 test -z "$ac_c_werror_flag" ||
32345 test ! -s conftest.err
32346 } && test -s conftest$ac_exeext && {
32347 test "$cross_compiling" = yes ||
32348 $as_test_x conftest$ac_exeext
32349 }; then
32350 ac_cv_pthread_yield_zero_arg=yes
32351 else
32352 $as_echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32355 ac_cv_pthread_yield_zero_arg=yeso
32358 rm -rf conftest.dSYM
32359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32360 conftest$ac_exeext conftest.$ac_ext
32362 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_yield_zero_arg" >&5
32363 $as_echo "$ac_cv_pthread_yield_zero_arg" >&6; }
32364 if test "$ac_cv_pthread_yield_zero_arg" = "yes"
32365 then
32367 cat >>confdefs.h <<\_ACEOF
32368 #define HAVE_PTHREAD_YIELD_ZERO_ARG 1
32369 _ACEOF
32373 { $as_echo "$as_me:$LINENO: checking if pthread_yield takes 1 argument" >&5
32374 $as_echo_n "checking if pthread_yield takes 1 argument... " >&6; }
32375 if test "${ac_cv_pthread_yield_one_arg+set}" = set; then
32376 $as_echo_n "(cached) " >&6
32377 else
32378 cat >conftest.$ac_ext <<_ACEOF
32379 /* confdefs.h. */
32380 _ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32384 #define _GNU_SOURCE
32385 #include <pthread.h>
32386 #ifdef __cplusplus
32387 extern "C"
32388 #endif
32391 main ()
32394 pthread_yield(0);
32397 return 0;
32399 _ACEOF
32400 rm -f conftest.$ac_objext conftest$ac_exeext
32401 if { (ac_try="$ac_link"
32402 case "(($ac_try" in
32403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404 *) ac_try_echo=$ac_try;;
32405 esac
32406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32407 $as_echo "$ac_try_echo") >&5
32408 (eval "$ac_link") 2>conftest.er1
32409 ac_status=$?
32410 grep -v '^ *+' conftest.er1 >conftest.err
32411 rm -f conftest.er1
32412 cat conftest.err >&5
32413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } && {
32415 test -z "$ac_c_werror_flag" ||
32416 test ! -s conftest.err
32417 } && test -s conftest$ac_exeext && {
32418 test "$cross_compiling" = yes ||
32419 $as_test_x conftest$ac_exeext
32420 }; then
32421 ac_cv_pthread_yield_one_arg=yes
32422 else
32423 $as_echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_pthread_yield_one_arg=no
32429 rm -rf conftest.dSYM
32430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32431 conftest$ac_exeext conftest.$ac_ext
32433 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_yield_one_arg" >&5
32434 $as_echo "$ac_cv_pthread_yield_one_arg" >&6; }
32435 if test "$ac_cv_pthread_yield_one_arg" = "yes"
32436 then
32438 cat >>confdefs.h <<\_ACEOF
32439 #define HAVE_PTHREAD_YIELD_ONE_ARG 1
32440 _ACEOF
32446 ######################################################################
32447 # For readline/libedit (We simply move the mimimum amount of stuff from
32448 # the readline/libedit configure.in here)
32452 for ac_header in malloc.h sys/cdefs.h
32454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32457 $as_echo_n "checking for $ac_header... " >&6; }
32458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32459 $as_echo_n "(cached) " >&6
32461 ac_res=`eval 'as_val=${'$as_ac_Header'}
32462 $as_echo "$as_val"'`
32463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32464 $as_echo "$ac_res" >&6; }
32465 else
32466 # Is the header compilable?
32467 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32468 $as_echo_n "checking $ac_header usability... " >&6; }
32469 cat >conftest.$ac_ext <<_ACEOF
32470 /* confdefs.h. */
32471 _ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h. */
32475 $ac_includes_default
32476 #include <$ac_header>
32477 _ACEOF
32478 rm -f conftest.$ac_objext
32479 if { (ac_try="$ac_compile"
32480 case "(($ac_try" in
32481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482 *) ac_try_echo=$ac_try;;
32483 esac
32484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32485 $as_echo "$ac_try_echo") >&5
32486 (eval "$ac_compile") 2>conftest.er1
32487 ac_status=$?
32488 grep -v '^ *+' conftest.er1 >conftest.err
32489 rm -f conftest.er1
32490 cat conftest.err >&5
32491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); } && {
32493 test -z "$ac_c_werror_flag" ||
32494 test ! -s conftest.err
32495 } && test -s conftest.$ac_objext; then
32496 ac_header_compiler=yes
32497 else
32498 $as_echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32501 ac_header_compiler=no
32504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32506 $as_echo "$ac_header_compiler" >&6; }
32508 # Is the header present?
32509 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32510 $as_echo_n "checking $ac_header presence... " >&6; }
32511 cat >conftest.$ac_ext <<_ACEOF
32512 /* confdefs.h. */
32513 _ACEOF
32514 cat confdefs.h >>conftest.$ac_ext
32515 cat >>conftest.$ac_ext <<_ACEOF
32516 /* end confdefs.h. */
32517 #include <$ac_header>
32518 _ACEOF
32519 if { (ac_try="$ac_cpp conftest.$ac_ext"
32520 case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523 esac
32524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32525 $as_echo "$ac_try_echo") >&5
32526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32527 ac_status=$?
32528 grep -v '^ *+' conftest.er1 >conftest.err
32529 rm -f conftest.er1
32530 cat conftest.err >&5
32531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } >/dev/null && {
32533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32534 test ! -s conftest.err
32535 }; then
32536 ac_header_preproc=yes
32537 else
32538 $as_echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32541 ac_header_preproc=no
32544 rm -f conftest.err conftest.$ac_ext
32545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32546 $as_echo "$ac_header_preproc" >&6; }
32548 # So? What about this header?
32549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32550 yes:no: )
32551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32552 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32555 ac_header_preproc=yes
32557 no:yes:* )
32558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32559 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32561 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32563 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32565 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32569 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32572 esac
32573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32574 $as_echo_n "checking for $ac_header... " >&6; }
32575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32576 $as_echo_n "(cached) " >&6
32577 else
32578 eval "$as_ac_Header=\$ac_header_preproc"
32580 ac_res=`eval 'as_val=${'$as_ac_Header'}
32581 $as_echo "$as_val"'`
32582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32583 $as_echo "$ac_res" >&6; }
32586 as_val=`eval 'as_val=${'$as_ac_Header'}
32587 $as_echo "$as_val"'`
32588 if test "x$as_val" = x""yes; then
32589 cat >>confdefs.h <<_ACEOF
32590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32591 _ACEOF
32595 done
32598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32599 # for constant arguments. Useless!
32600 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
32601 $as_echo_n "checking for working alloca.h... " >&6; }
32602 if test "${ac_cv_working_alloca_h+set}" = set; then
32603 $as_echo_n "(cached) " >&6
32604 else
32605 cat >conftest.$ac_ext <<_ACEOF
32606 /* confdefs.h. */
32607 _ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32611 #include <alloca.h>
32613 main ()
32615 char *p = (char *) alloca (2 * sizeof (int));
32616 if (p) return 0;
32618 return 0;
32620 _ACEOF
32621 rm -f conftest.$ac_objext conftest$ac_exeext
32622 if { (ac_try="$ac_link"
32623 case "(($ac_try" in
32624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625 *) ac_try_echo=$ac_try;;
32626 esac
32627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32628 $as_echo "$ac_try_echo") >&5
32629 (eval "$ac_link") 2>conftest.er1
32630 ac_status=$?
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
32634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } && {
32636 test -z "$ac_c_werror_flag" ||
32637 test ! -s conftest.err
32638 } && test -s conftest$ac_exeext && {
32639 test "$cross_compiling" = yes ||
32640 $as_test_x conftest$ac_exeext
32641 }; then
32642 ac_cv_working_alloca_h=yes
32643 else
32644 $as_echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32647 ac_cv_working_alloca_h=no
32650 rm -rf conftest.dSYM
32651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32652 conftest$ac_exeext conftest.$ac_ext
32654 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32655 $as_echo "$ac_cv_working_alloca_h" >&6; }
32656 if test $ac_cv_working_alloca_h = yes; then
32658 cat >>confdefs.h <<\_ACEOF
32659 #define HAVE_ALLOCA_H 1
32660 _ACEOF
32664 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
32665 $as_echo_n "checking for alloca... " >&6; }
32666 if test "${ac_cv_func_alloca_works+set}" = set; then
32667 $as_echo_n "(cached) " >&6
32668 else
32669 cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h. */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32675 #ifdef __GNUC__
32676 # define alloca __builtin_alloca
32677 #else
32678 # ifdef _MSC_VER
32679 # include <malloc.h>
32680 # define alloca _alloca
32681 # else
32682 # ifdef HAVE_ALLOCA_H
32683 # include <alloca.h>
32684 # else
32685 # ifdef _AIX
32686 #pragma alloca
32687 # else
32688 # ifndef alloca /* predefined by HP cc +Olibcalls */
32689 char *alloca ();
32690 # endif
32691 # endif
32692 # endif
32693 # endif
32694 #endif
32697 main ()
32699 char *p = (char *) alloca (1);
32700 if (p) return 0;
32702 return 0;
32704 _ACEOF
32705 rm -f conftest.$ac_objext conftest$ac_exeext
32706 if { (ac_try="$ac_link"
32707 case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710 esac
32711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32712 $as_echo "$ac_try_echo") >&5
32713 (eval "$ac_link") 2>conftest.er1
32714 ac_status=$?
32715 grep -v '^ *+' conftest.er1 >conftest.err
32716 rm -f conftest.er1
32717 cat conftest.err >&5
32718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } && {
32720 test -z "$ac_c_werror_flag" ||
32721 test ! -s conftest.err
32722 } && test -s conftest$ac_exeext && {
32723 test "$cross_compiling" = yes ||
32724 $as_test_x conftest$ac_exeext
32725 }; then
32726 ac_cv_func_alloca_works=yes
32727 else
32728 $as_echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32731 ac_cv_func_alloca_works=no
32734 rm -rf conftest.dSYM
32735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32736 conftest$ac_exeext conftest.$ac_ext
32738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32739 $as_echo "$ac_cv_func_alloca_works" >&6; }
32741 if test $ac_cv_func_alloca_works = yes; then
32743 cat >>confdefs.h <<\_ACEOF
32744 #define HAVE_ALLOCA 1
32745 _ACEOF
32747 else
32748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32749 # that cause trouble. Some versions do not even contain alloca or
32750 # contain a buggy version. If you still want to use their alloca,
32751 # use ar to extract alloca.o from them instead of compiling alloca.c.
32753 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32755 cat >>confdefs.h <<\_ACEOF
32756 #define C_ALLOCA 1
32757 _ACEOF
32760 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32761 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
32762 if test "${ac_cv_os_cray+set}" = set; then
32763 $as_echo_n "(cached) " >&6
32764 else
32765 cat >conftest.$ac_ext <<_ACEOF
32766 /* confdefs.h. */
32767 _ACEOF
32768 cat confdefs.h >>conftest.$ac_ext
32769 cat >>conftest.$ac_ext <<_ACEOF
32770 /* end confdefs.h. */
32771 #if defined CRAY && ! defined CRAY2
32772 webecray
32773 #else
32774 wenotbecray
32775 #endif
32777 _ACEOF
32778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32779 $EGREP "webecray" >/dev/null 2>&1; then
32780 ac_cv_os_cray=yes
32781 else
32782 ac_cv_os_cray=no
32784 rm -f conftest*
32787 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32788 $as_echo "$ac_cv_os_cray" >&6; }
32789 if test $ac_cv_os_cray = yes; then
32790 for ac_func in _getb67 GETB67 getb67; do
32791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32793 $as_echo_n "checking for $ac_func... " >&6; }
32794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32795 $as_echo_n "(cached) " >&6
32796 else
32797 cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h. */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h. */
32803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32805 #define $ac_func innocuous_$ac_func
32807 /* System header to define __stub macros and hopefully few prototypes,
32808 which can conflict with char $ac_func (); below.
32809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32810 <limits.h> exists even on freestanding compilers. */
32812 #ifdef __STDC__
32813 # include <limits.h>
32814 #else
32815 # include <assert.h>
32816 #endif
32818 #undef $ac_func
32820 /* Override any GCC internal prototype to avoid an error.
32821 Use char because int might match the return type of a GCC
32822 builtin and then its argument prototype would still apply. */
32823 #ifdef __cplusplus
32824 extern "C"
32825 #endif
32826 char $ac_func ();
32827 /* The GNU C library defines this for functions which it implements
32828 to always fail with ENOSYS. Some functions are actually named
32829 something starting with __ and the normal name is an alias. */
32830 #if defined __stub_$ac_func || defined __stub___$ac_func
32831 choke me
32832 #endif
32835 main ()
32837 return $ac_func ();
32839 return 0;
32841 _ACEOF
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (ac_try="$ac_link"
32844 case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32847 esac
32848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32849 $as_echo "$ac_try_echo") >&5
32850 (eval "$ac_link") 2>conftest.er1
32851 ac_status=$?
32852 grep -v '^ *+' conftest.er1 >conftest.err
32853 rm -f conftest.er1
32854 cat conftest.err >&5
32855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } && {
32857 test -z "$ac_c_werror_flag" ||
32858 test ! -s conftest.err
32859 } && test -s conftest$ac_exeext && {
32860 test "$cross_compiling" = yes ||
32861 $as_test_x conftest$ac_exeext
32862 }; then
32863 eval "$as_ac_var=yes"
32864 else
32865 $as_echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32868 eval "$as_ac_var=no"
32871 rm -rf conftest.dSYM
32872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32873 conftest$ac_exeext conftest.$ac_ext
32875 ac_res=`eval 'as_val=${'$as_ac_var'}
32876 $as_echo "$as_val"'`
32877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32878 $as_echo "$ac_res" >&6; }
32879 as_val=`eval 'as_val=${'$as_ac_var'}
32880 $as_echo "$as_val"'`
32881 if test "x$as_val" = x""yes; then
32883 cat >>confdefs.h <<_ACEOF
32884 #define CRAY_STACKSEG_END $ac_func
32885 _ACEOF
32887 break
32890 done
32893 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32894 $as_echo_n "checking stack direction for C alloca... " >&6; }
32895 if test "${ac_cv_c_stack_direction+set}" = set; then
32896 $as_echo_n "(cached) " >&6
32897 else
32898 if test "$cross_compiling" = yes; then
32899 ac_cv_c_stack_direction=0
32900 else
32901 cat >conftest.$ac_ext <<_ACEOF
32902 /* confdefs.h. */
32903 _ACEOF
32904 cat confdefs.h >>conftest.$ac_ext
32905 cat >>conftest.$ac_ext <<_ACEOF
32906 /* end confdefs.h. */
32907 $ac_includes_default
32909 find_stack_direction ()
32911 static char *addr = 0;
32912 auto char dummy;
32913 if (addr == 0)
32915 addr = &dummy;
32916 return find_stack_direction ();
32918 else
32919 return (&dummy > addr) ? 1 : -1;
32923 main ()
32925 return find_stack_direction () < 0;
32927 _ACEOF
32928 rm -f conftest$ac_exeext
32929 if { (ac_try="$ac_link"
32930 case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933 esac
32934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32935 $as_echo "$ac_try_echo") >&5
32936 (eval "$ac_link") 2>&5
32937 ac_status=$?
32938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32940 { (case "(($ac_try" in
32941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942 *) ac_try_echo=$ac_try;;
32943 esac
32944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32945 $as_echo "$ac_try_echo") >&5
32946 (eval "$ac_try") 2>&5
32947 ac_status=$?
32948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); }; }; then
32950 ac_cv_c_stack_direction=1
32951 else
32952 $as_echo "$as_me: program exited with status $ac_status" >&5
32953 $as_echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32956 ( exit $ac_status )
32957 ac_cv_c_stack_direction=-1
32959 rm -rf conftest.dSYM
32960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32965 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32966 $as_echo "$ac_cv_c_stack_direction" >&6; }
32968 cat >>confdefs.h <<_ACEOF
32969 #define STACK_DIRECTION $ac_cv_c_stack_direction
32970 _ACEOF
32975 if test $ac_cv_c_compiler_gnu = yes; then
32976 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
32977 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
32978 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
32979 $as_echo_n "(cached) " >&6
32980 else
32981 ac_pattern="Autoconf.*'x'"
32982 cat >conftest.$ac_ext <<_ACEOF
32983 /* confdefs.h. */
32984 _ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h. */
32988 #include <sgtty.h>
32989 Autoconf TIOCGETP
32990 _ACEOF
32991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32992 $EGREP "$ac_pattern" >/dev/null 2>&1; then
32993 ac_cv_prog_gcc_traditional=yes
32994 else
32995 ac_cv_prog_gcc_traditional=no
32997 rm -f conftest*
33000 if test $ac_cv_prog_gcc_traditional = no; then
33001 cat >conftest.$ac_ext <<_ACEOF
33002 /* confdefs.h. */
33003 _ACEOF
33004 cat confdefs.h >>conftest.$ac_ext
33005 cat >>conftest.$ac_ext <<_ACEOF
33006 /* end confdefs.h. */
33007 #include <termio.h>
33008 Autoconf TCGETA
33009 _ACEOF
33010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33011 $EGREP "$ac_pattern" >/dev/null 2>&1; then
33012 ac_cv_prog_gcc_traditional=yes
33014 rm -f conftest*
33018 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
33019 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
33020 if test $ac_cv_prog_gcc_traditional = yes; then
33021 CC="$CC -traditional"
33025 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33026 $as_echo_n "checking return type of signal handlers... " >&6; }
33027 if test "${ac_cv_type_signal+set}" = set; then
33028 $as_echo_n "(cached) " >&6
33029 else
33030 cat >conftest.$ac_ext <<_ACEOF
33031 /* confdefs.h. */
33032 _ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h. */
33036 #include <sys/types.h>
33037 #include <signal.h>
33040 main ()
33042 return *(signal (0, 0)) (0) == 1;
33044 return 0;
33046 _ACEOF
33047 rm -f conftest.$ac_objext
33048 if { (ac_try="$ac_compile"
33049 case "(($ac_try" in
33050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051 *) ac_try_echo=$ac_try;;
33052 esac
33053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33054 $as_echo "$ac_try_echo") >&5
33055 (eval "$ac_compile") 2>conftest.er1
33056 ac_status=$?
33057 grep -v '^ *+' conftest.er1 >conftest.err
33058 rm -f conftest.er1
33059 cat conftest.err >&5
33060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); } && {
33062 test -z "$ac_c_werror_flag" ||
33063 test ! -s conftest.err
33064 } && test -s conftest.$ac_objext; then
33065 ac_cv_type_signal=int
33066 else
33067 $as_echo "$as_me: failed program was:" >&5
33068 sed 's/^/| /' conftest.$ac_ext >&5
33070 ac_cv_type_signal=void
33073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33075 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33076 $as_echo "$ac_cv_type_signal" >&6; }
33078 cat >>confdefs.h <<_ACEOF
33079 #define RETSIGTYPE $ac_cv_type_signal
33080 _ACEOF
33086 for ac_func in re_comp regcomp strdup
33088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33090 $as_echo_n "checking for $ac_func... " >&6; }
33091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33092 $as_echo_n "(cached) " >&6
33093 else
33094 cat >conftest.$ac_ext <<_ACEOF
33095 /* confdefs.h. */
33096 _ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h. */
33100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33102 #define $ac_func innocuous_$ac_func
33104 /* System header to define __stub macros and hopefully few prototypes,
33105 which can conflict with char $ac_func (); below.
33106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33107 <limits.h> exists even on freestanding compilers. */
33109 #ifdef __STDC__
33110 # include <limits.h>
33111 #else
33112 # include <assert.h>
33113 #endif
33115 #undef $ac_func
33117 /* Override any GCC internal prototype to avoid an error.
33118 Use char because int might match the return type of a GCC
33119 builtin and then its argument prototype would still apply. */
33120 #ifdef __cplusplus
33121 extern "C"
33122 #endif
33123 char $ac_func ();
33124 /* The GNU C library defines this for functions which it implements
33125 to always fail with ENOSYS. Some functions are actually named
33126 something starting with __ and the normal name is an alias. */
33127 #if defined __stub_$ac_func || defined __stub___$ac_func
33128 choke me
33129 #endif
33132 main ()
33134 return $ac_func ();
33136 return 0;
33138 _ACEOF
33139 rm -f conftest.$ac_objext conftest$ac_exeext
33140 if { (ac_try="$ac_link"
33141 case "(($ac_try" in
33142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143 *) ac_try_echo=$ac_try;;
33144 esac
33145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33146 $as_echo "$ac_try_echo") >&5
33147 (eval "$ac_link") 2>conftest.er1
33148 ac_status=$?
33149 grep -v '^ *+' conftest.er1 >conftest.err
33150 rm -f conftest.er1
33151 cat conftest.err >&5
33152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } && {
33154 test -z "$ac_c_werror_flag" ||
33155 test ! -s conftest.err
33156 } && test -s conftest$ac_exeext && {
33157 test "$cross_compiling" = yes ||
33158 $as_test_x conftest$ac_exeext
33159 }; then
33160 eval "$as_ac_var=yes"
33161 else
33162 $as_echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.$ac_ext >&5
33165 eval "$as_ac_var=no"
33168 rm -rf conftest.dSYM
33169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33170 conftest$ac_exeext conftest.$ac_ext
33172 ac_res=`eval 'as_val=${'$as_ac_var'}
33173 $as_echo "$as_val"'`
33174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33175 $as_echo "$ac_res" >&6; }
33176 as_val=`eval 'as_val=${'$as_ac_var'}
33177 $as_echo "$as_val"'`
33178 if test "x$as_val" = x""yes; then
33179 cat >>confdefs.h <<_ACEOF
33180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33181 _ACEOF
33184 done
33187 if test "${ac_cv_header_vis_h+set}" = set; then
33188 { $as_echo "$as_me:$LINENO: checking for vis.h" >&5
33189 $as_echo_n "checking for vis.h... " >&6; }
33190 if test "${ac_cv_header_vis_h+set}" = set; then
33191 $as_echo_n "(cached) " >&6
33193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vis_h" >&5
33194 $as_echo "$ac_cv_header_vis_h" >&6; }
33195 else
33196 # Is the header compilable?
33197 { $as_echo "$as_me:$LINENO: checking vis.h usability" >&5
33198 $as_echo_n "checking vis.h usability... " >&6; }
33199 cat >conftest.$ac_ext <<_ACEOF
33200 /* confdefs.h. */
33201 _ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33205 $ac_includes_default
33206 #include <vis.h>
33207 _ACEOF
33208 rm -f conftest.$ac_objext
33209 if { (ac_try="$ac_compile"
33210 case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33213 esac
33214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33215 $as_echo "$ac_try_echo") >&5
33216 (eval "$ac_compile") 2>conftest.er1
33217 ac_status=$?
33218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
33221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } && {
33223 test -z "$ac_c_werror_flag" ||
33224 test ! -s conftest.err
33225 } && test -s conftest.$ac_objext; then
33226 ac_header_compiler=yes
33227 else
33228 $as_echo "$as_me: failed program was:" >&5
33229 sed 's/^/| /' conftest.$ac_ext >&5
33231 ac_header_compiler=no
33234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33236 $as_echo "$ac_header_compiler" >&6; }
33238 # Is the header present?
33239 { $as_echo "$as_me:$LINENO: checking vis.h presence" >&5
33240 $as_echo_n "checking vis.h presence... " >&6; }
33241 cat >conftest.$ac_ext <<_ACEOF
33242 /* confdefs.h. */
33243 _ACEOF
33244 cat confdefs.h >>conftest.$ac_ext
33245 cat >>conftest.$ac_ext <<_ACEOF
33246 /* end confdefs.h. */
33247 #include <vis.h>
33248 _ACEOF
33249 if { (ac_try="$ac_cpp conftest.$ac_ext"
33250 case "(($ac_try" in
33251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33252 *) ac_try_echo=$ac_try;;
33253 esac
33254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33255 $as_echo "$ac_try_echo") >&5
33256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33257 ac_status=$?
33258 grep -v '^ *+' conftest.er1 >conftest.err
33259 rm -f conftest.er1
33260 cat conftest.err >&5
33261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } >/dev/null && {
33263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33264 test ! -s conftest.err
33265 }; then
33266 ac_header_preproc=yes
33267 else
33268 $as_echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 ac_header_preproc=no
33274 rm -f conftest.err conftest.$ac_ext
33275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33276 $as_echo "$ac_header_preproc" >&6; }
33278 # So? What about this header?
33279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33280 yes:no: )
33281 { $as_echo "$as_me:$LINENO: WARNING: vis.h: accepted by the compiler, rejected by the preprocessor!" >&5
33282 $as_echo "$as_me: WARNING: vis.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33283 { $as_echo "$as_me:$LINENO: WARNING: vis.h: proceeding with the compiler's result" >&5
33284 $as_echo "$as_me: WARNING: vis.h: proceeding with the compiler's result" >&2;}
33285 ac_header_preproc=yes
33287 no:yes:* )
33288 { $as_echo "$as_me:$LINENO: WARNING: vis.h: present but cannot be compiled" >&5
33289 $as_echo "$as_me: WARNING: vis.h: present but cannot be compiled" >&2;}
33290 { $as_echo "$as_me:$LINENO: WARNING: vis.h: check for missing prerequisite headers?" >&5
33291 $as_echo "$as_me: WARNING: vis.h: check for missing prerequisite headers?" >&2;}
33292 { $as_echo "$as_me:$LINENO: WARNING: vis.h: see the Autoconf documentation" >&5
33293 $as_echo "$as_me: WARNING: vis.h: see the Autoconf documentation" >&2;}
33294 { $as_echo "$as_me:$LINENO: WARNING: vis.h: section \"Present But Cannot Be Compiled\"" >&5
33295 $as_echo "$as_me: WARNING: vis.h: section \"Present But Cannot Be Compiled\"" >&2;}
33296 { $as_echo "$as_me:$LINENO: WARNING: vis.h: proceeding with the preprocessor's result" >&5
33297 $as_echo "$as_me: WARNING: vis.h: proceeding with the preprocessor's result" >&2;}
33298 { $as_echo "$as_me:$LINENO: WARNING: vis.h: in the future, the compiler will take precedence" >&5
33299 $as_echo "$as_me: WARNING: vis.h: in the future, the compiler will take precedence" >&2;}
33302 esac
33303 { $as_echo "$as_me:$LINENO: checking for vis.h" >&5
33304 $as_echo_n "checking for vis.h... " >&6; }
33305 if test "${ac_cv_header_vis_h+set}" = set; then
33306 $as_echo_n "(cached) " >&6
33307 else
33308 ac_cv_header_vis_h=$ac_header_preproc
33310 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vis_h" >&5
33311 $as_echo "$ac_cv_header_vis_h" >&6; }
33314 if test "x$ac_cv_header_vis_h" = x""yes; then
33315 { $as_echo "$as_me:$LINENO: checking for strvis" >&5
33316 $as_echo_n "checking for strvis... " >&6; }
33317 if test "${ac_cv_func_strvis+set}" = set; then
33318 $as_echo_n "(cached) " >&6
33319 else
33320 cat >conftest.$ac_ext <<_ACEOF
33321 /* confdefs.h. */
33322 _ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h. */
33326 /* Define strvis to an innocuous variant, in case <limits.h> declares strvis.
33327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33328 #define strvis innocuous_strvis
33330 /* System header to define __stub macros and hopefully few prototypes,
33331 which can conflict with char strvis (); below.
33332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33333 <limits.h> exists even on freestanding compilers. */
33335 #ifdef __STDC__
33336 # include <limits.h>
33337 #else
33338 # include <assert.h>
33339 #endif
33341 #undef strvis
33343 /* Override any GCC internal prototype to avoid an error.
33344 Use char because int might match the return type of a GCC
33345 builtin and then its argument prototype would still apply. */
33346 #ifdef __cplusplus
33347 extern "C"
33348 #endif
33349 char strvis ();
33350 /* The GNU C library defines this for functions which it implements
33351 to always fail with ENOSYS. Some functions are actually named
33352 something starting with __ and the normal name is an alias. */
33353 #if defined __stub_strvis || defined __stub___strvis
33354 choke me
33355 #endif
33358 main ()
33360 return strvis ();
33362 return 0;
33364 _ACEOF
33365 rm -f conftest.$ac_objext conftest$ac_exeext
33366 if { (ac_try="$ac_link"
33367 case "(($ac_try" in
33368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33369 *) ac_try_echo=$ac_try;;
33370 esac
33371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33372 $as_echo "$ac_try_echo") >&5
33373 (eval "$ac_link") 2>conftest.er1
33374 ac_status=$?
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
33378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } && {
33380 test -z "$ac_c_werror_flag" ||
33381 test ! -s conftest.err
33382 } && test -s conftest$ac_exeext && {
33383 test "$cross_compiling" = yes ||
33384 $as_test_x conftest$ac_exeext
33385 }; then
33386 ac_cv_func_strvis=yes
33387 else
33388 $as_echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33391 ac_cv_func_strvis=no
33394 rm -rf conftest.dSYM
33395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33396 conftest$ac_exeext conftest.$ac_ext
33398 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strvis" >&5
33399 $as_echo "$ac_cv_func_strvis" >&6; }
33400 if test "x$ac_cv_func_strvis" = x""yes; then
33402 cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_VIS_H 1
33404 _ACEOF
33414 for ac_func in strlcat strlcpy
33416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33417 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33418 $as_echo_n "checking for $ac_func... " >&6; }
33419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33420 $as_echo_n "(cached) " >&6
33421 else
33422 cat >conftest.$ac_ext <<_ACEOF
33423 /* confdefs.h. */
33424 _ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h. */
33428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33430 #define $ac_func innocuous_$ac_func
33432 /* System header to define __stub macros and hopefully few prototypes,
33433 which can conflict with char $ac_func (); below.
33434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33435 <limits.h> exists even on freestanding compilers. */
33437 #ifdef __STDC__
33438 # include <limits.h>
33439 #else
33440 # include <assert.h>
33441 #endif
33443 #undef $ac_func
33445 /* Override any GCC internal prototype to avoid an error.
33446 Use char because int might match the return type of a GCC
33447 builtin and then its argument prototype would still apply. */
33448 #ifdef __cplusplus
33449 extern "C"
33450 #endif
33451 char $ac_func ();
33452 /* The GNU C library defines this for functions which it implements
33453 to always fail with ENOSYS. Some functions are actually named
33454 something starting with __ and the normal name is an alias. */
33455 #if defined __stub_$ac_func || defined __stub___$ac_func
33456 choke me
33457 #endif
33460 main ()
33462 return $ac_func ();
33464 return 0;
33466 _ACEOF
33467 rm -f conftest.$ac_objext conftest$ac_exeext
33468 if { (ac_try="$ac_link"
33469 case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33472 esac
33473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33474 $as_echo "$ac_try_echo") >&5
33475 (eval "$ac_link") 2>conftest.er1
33476 ac_status=$?
33477 grep -v '^ *+' conftest.er1 >conftest.err
33478 rm -f conftest.er1
33479 cat conftest.err >&5
33480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } && {
33482 test -z "$ac_c_werror_flag" ||
33483 test ! -s conftest.err
33484 } && test -s conftest$ac_exeext && {
33485 test "$cross_compiling" = yes ||
33486 $as_test_x conftest$ac_exeext
33487 }; then
33488 eval "$as_ac_var=yes"
33489 else
33490 $as_echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33493 eval "$as_ac_var=no"
33496 rm -rf conftest.dSYM
33497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33498 conftest$ac_exeext conftest.$ac_ext
33500 ac_res=`eval 'as_val=${'$as_ac_var'}
33501 $as_echo "$as_val"'`
33502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33503 $as_echo "$ac_res" >&6; }
33504 as_val=`eval 'as_val=${'$as_ac_var'}
33505 $as_echo "$as_val"'`
33506 if test "x$as_val" = x""yes; then
33507 cat >>confdefs.h <<_ACEOF
33508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33509 _ACEOF
33512 done
33519 for ac_func in issetugid getuid geteuid getgid getegid
33521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33523 $as_echo_n "checking for $ac_func... " >&6; }
33524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33525 $as_echo_n "(cached) " >&6
33526 else
33527 cat >conftest.$ac_ext <<_ACEOF
33528 /* confdefs.h. */
33529 _ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h. */
33533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33535 #define $ac_func innocuous_$ac_func
33537 /* System header to define __stub macros and hopefully few prototypes,
33538 which can conflict with char $ac_func (); below.
33539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33540 <limits.h> exists even on freestanding compilers. */
33542 #ifdef __STDC__
33543 # include <limits.h>
33544 #else
33545 # include <assert.h>
33546 #endif
33548 #undef $ac_func
33550 /* Override any GCC internal prototype to avoid an error.
33551 Use char because int might match the return type of a GCC
33552 builtin and then its argument prototype would still apply. */
33553 #ifdef __cplusplus
33554 extern "C"
33555 #endif
33556 char $ac_func ();
33557 /* The GNU C library defines this for functions which it implements
33558 to always fail with ENOSYS. Some functions are actually named
33559 something starting with __ and the normal name is an alias. */
33560 #if defined __stub_$ac_func || defined __stub___$ac_func
33561 choke me
33562 #endif
33565 main ()
33567 return $ac_func ();
33569 return 0;
33571 _ACEOF
33572 rm -f conftest.$ac_objext conftest$ac_exeext
33573 if { (ac_try="$ac_link"
33574 case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33577 esac
33578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33579 $as_echo "$ac_try_echo") >&5
33580 (eval "$ac_link") 2>conftest.er1
33581 ac_status=$?
33582 grep -v '^ *+' conftest.er1 >conftest.err
33583 rm -f conftest.er1
33584 cat conftest.err >&5
33585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); } && {
33587 test -z "$ac_c_werror_flag" ||
33588 test ! -s conftest.err
33589 } && test -s conftest$ac_exeext && {
33590 test "$cross_compiling" = yes ||
33591 $as_test_x conftest$ac_exeext
33592 }; then
33593 eval "$as_ac_var=yes"
33594 else
33595 $as_echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33598 eval "$as_ac_var=no"
33601 rm -rf conftest.dSYM
33602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33603 conftest$ac_exeext conftest.$ac_ext
33605 ac_res=`eval 'as_val=${'$as_ac_var'}
33606 $as_echo "$as_val"'`
33607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33608 $as_echo "$ac_res" >&6; }
33609 as_val=`eval 'as_val=${'$as_ac_var'}
33610 $as_echo "$as_val"'`
33611 if test "x$as_val" = x""yes; then
33612 cat >>confdefs.h <<_ACEOF
33613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33614 _ACEOF
33617 done
33620 for ac_func in fgetln
33622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33623 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33624 $as_echo_n "checking for $ac_func... " >&6; }
33625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33626 $as_echo_n "(cached) " >&6
33627 else
33628 cat >conftest.$ac_ext <<_ACEOF
33629 /* confdefs.h. */
33630 _ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33636 #define $ac_func innocuous_$ac_func
33638 /* System header to define __stub macros and hopefully few prototypes,
33639 which can conflict with char $ac_func (); below.
33640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33641 <limits.h> exists even on freestanding compilers. */
33643 #ifdef __STDC__
33644 # include <limits.h>
33645 #else
33646 # include <assert.h>
33647 #endif
33649 #undef $ac_func
33651 /* Override any GCC internal prototype to avoid an error.
33652 Use char because int might match the return type of a GCC
33653 builtin and then its argument prototype would still apply. */
33654 #ifdef __cplusplus
33655 extern "C"
33656 #endif
33657 char $ac_func ();
33658 /* The GNU C library defines this for functions which it implements
33659 to always fail with ENOSYS. Some functions are actually named
33660 something starting with __ and the normal name is an alias. */
33661 #if defined __stub_$ac_func || defined __stub___$ac_func
33662 choke me
33663 #endif
33666 main ()
33668 return $ac_func ();
33670 return 0;
33672 _ACEOF
33673 rm -f conftest.$ac_objext conftest$ac_exeext
33674 if { (ac_try="$ac_link"
33675 case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33678 esac
33679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33680 $as_echo "$ac_try_echo") >&5
33681 (eval "$ac_link") 2>conftest.er1
33682 ac_status=$?
33683 grep -v '^ *+' conftest.er1 >conftest.err
33684 rm -f conftest.er1
33685 cat conftest.err >&5
33686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } && {
33688 test -z "$ac_c_werror_flag" ||
33689 test ! -s conftest.err
33690 } && test -s conftest$ac_exeext && {
33691 test "$cross_compiling" = yes ||
33692 $as_test_x conftest$ac_exeext
33693 }; then
33694 eval "$as_ac_var=yes"
33695 else
33696 $as_echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33699 eval "$as_ac_var=no"
33702 rm -rf conftest.dSYM
33703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33704 conftest$ac_exeext conftest.$ac_ext
33706 ac_res=`eval 'as_val=${'$as_ac_var'}
33707 $as_echo "$as_val"'`
33708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33709 $as_echo "$ac_res" >&6; }
33710 as_val=`eval 'as_val=${'$as_ac_var'}
33711 $as_echo "$as_val"'`
33712 if test "x$as_val" = x""yes; then
33713 cat >>confdefs.h <<_ACEOF
33714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33715 _ACEOF
33718 done
33722 for ac_func in getline flockfile
33724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33726 $as_echo_n "checking for $ac_func... " >&6; }
33727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33728 $as_echo_n "(cached) " >&6
33729 else
33730 cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h. */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h. */
33736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33738 #define $ac_func innocuous_$ac_func
33740 /* System header to define __stub macros and hopefully few prototypes,
33741 which can conflict with char $ac_func (); below.
33742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743 <limits.h> exists even on freestanding compilers. */
33745 #ifdef __STDC__
33746 # include <limits.h>
33747 #else
33748 # include <assert.h>
33749 #endif
33751 #undef $ac_func
33753 /* Override any GCC internal prototype to avoid an error.
33754 Use char because int might match the return type of a GCC
33755 builtin and then its argument prototype would still apply. */
33756 #ifdef __cplusplus
33757 extern "C"
33758 #endif
33759 char $ac_func ();
33760 /* The GNU C library defines this for functions which it implements
33761 to always fail with ENOSYS. Some functions are actually named
33762 something starting with __ and the normal name is an alias. */
33763 #if defined __stub_$ac_func || defined __stub___$ac_func
33764 choke me
33765 #endif
33768 main ()
33770 return $ac_func ();
33772 return 0;
33774 _ACEOF
33775 rm -f conftest.$ac_objext conftest$ac_exeext
33776 if { (ac_try="$ac_link"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33780 esac
33781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33782 $as_echo "$ac_try_echo") >&5
33783 (eval "$ac_link") 2>conftest.er1
33784 ac_status=$?
33785 grep -v '^ *+' conftest.er1 >conftest.err
33786 rm -f conftest.er1
33787 cat conftest.err >&5
33788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } && {
33790 test -z "$ac_c_werror_flag" ||
33791 test ! -s conftest.err
33792 } && test -s conftest$ac_exeext && {
33793 test "$cross_compiling" = yes ||
33794 $as_test_x conftest$ac_exeext
33795 }; then
33796 eval "$as_ac_var=yes"
33797 else
33798 $as_echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33801 eval "$as_ac_var=no"
33804 rm -rf conftest.dSYM
33805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33806 conftest$ac_exeext conftest.$ac_ext
33808 ac_res=`eval 'as_val=${'$as_ac_var'}
33809 $as_echo "$as_val"'`
33810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33811 $as_echo "$ac_res" >&6; }
33812 as_val=`eval 'as_val=${'$as_ac_var'}
33813 $as_echo "$as_val"'`
33814 if test "x$as_val" = x""yes; then
33815 cat >>confdefs.h <<_ACEOF
33816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33817 _ACEOF
33820 done
33823 # from old readline settting:
33825 MAKE_SHELL=/bin/sh
33828 # Already-done: stdlib.h string.h unistd.h termios.h
33850 for ac_header in varargs.h stdarg.h dirent.h locale.h ndir.h sys/dir.h \
33851 sys/file.h sys/ndir.h sys/ptem.h sys/pte.h sys/select.h sys/stream.h \
33852 sys/mman.h curses.h termcap.h termio.h termbits.h asm/termbits.h grp.h \
33853 paths.h semaphore.h
33855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33858 $as_echo_n "checking for $ac_header... " >&6; }
33859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33860 $as_echo_n "(cached) " >&6
33862 ac_res=`eval 'as_val=${'$as_ac_Header'}
33863 $as_echo "$as_val"'`
33864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33865 $as_echo "$ac_res" >&6; }
33866 else
33867 # Is the header compilable?
33868 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33869 $as_echo_n "checking $ac_header usability... " >&6; }
33870 cat >conftest.$ac_ext <<_ACEOF
33871 /* confdefs.h. */
33872 _ACEOF
33873 cat confdefs.h >>conftest.$ac_ext
33874 cat >>conftest.$ac_ext <<_ACEOF
33875 /* end confdefs.h. */
33876 $ac_includes_default
33877 #include <$ac_header>
33878 _ACEOF
33879 rm -f conftest.$ac_objext
33880 if { (ac_try="$ac_compile"
33881 case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884 esac
33885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33886 $as_echo "$ac_try_echo") >&5
33887 (eval "$ac_compile") 2>conftest.er1
33888 ac_status=$?
33889 grep -v '^ *+' conftest.er1 >conftest.err
33890 rm -f conftest.er1
33891 cat conftest.err >&5
33892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); } && {
33894 test -z "$ac_c_werror_flag" ||
33895 test ! -s conftest.err
33896 } && test -s conftest.$ac_objext; then
33897 ac_header_compiler=yes
33898 else
33899 $as_echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33902 ac_header_compiler=no
33905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33907 $as_echo "$ac_header_compiler" >&6; }
33909 # Is the header present?
33910 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33911 $as_echo_n "checking $ac_header presence... " >&6; }
33912 cat >conftest.$ac_ext <<_ACEOF
33913 /* confdefs.h. */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918 #include <$ac_header>
33919 _ACEOF
33920 if { (ac_try="$ac_cpp conftest.$ac_ext"
33921 case "(($ac_try" in
33922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923 *) ac_try_echo=$ac_try;;
33924 esac
33925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33926 $as_echo "$ac_try_echo") >&5
33927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33928 ac_status=$?
33929 grep -v '^ *+' conftest.er1 >conftest.err
33930 rm -f conftest.er1
33931 cat conftest.err >&5
33932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); } >/dev/null && {
33934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33935 test ! -s conftest.err
33936 }; then
33937 ac_header_preproc=yes
33938 else
33939 $as_echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33942 ac_header_preproc=no
33945 rm -f conftest.err conftest.$ac_ext
33946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33947 $as_echo "$ac_header_preproc" >&6; }
33949 # So? What about this header?
33950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33951 yes:no: )
33952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33953 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33956 ac_header_preproc=yes
33958 no:yes:* )
33959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33960 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33962 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33964 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33966 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33970 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33973 esac
33974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33975 $as_echo_n "checking for $ac_header... " >&6; }
33976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33977 $as_echo_n "(cached) " >&6
33978 else
33979 eval "$as_ac_Header=\$ac_header_preproc"
33981 ac_res=`eval 'as_val=${'$as_ac_Header'}
33982 $as_echo "$as_val"'`
33983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33984 $as_echo "$ac_res" >&6; }
33987 as_val=`eval 'as_val=${'$as_ac_Header'}
33988 $as_echo "$as_val"'`
33989 if test "x$as_val" = x""yes; then
33990 cat >>confdefs.h <<_ACEOF
33991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33992 _ACEOF
33996 done
33999 # Already-done: strcasecmp
34007 for ac_func in lstat putenv select setenv setlocale strcoll tcgetattr
34009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34011 $as_echo_n "checking for $ac_func... " >&6; }
34012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34013 $as_echo_n "(cached) " >&6
34014 else
34015 cat >conftest.$ac_ext <<_ACEOF
34016 /* confdefs.h. */
34017 _ACEOF
34018 cat confdefs.h >>conftest.$ac_ext
34019 cat >>conftest.$ac_ext <<_ACEOF
34020 /* end confdefs.h. */
34021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34023 #define $ac_func innocuous_$ac_func
34025 /* System header to define __stub macros and hopefully few prototypes,
34026 which can conflict with char $ac_func (); below.
34027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34028 <limits.h> exists even on freestanding compilers. */
34030 #ifdef __STDC__
34031 # include <limits.h>
34032 #else
34033 # include <assert.h>
34034 #endif
34036 #undef $ac_func
34038 /* Override any GCC internal prototype to avoid an error.
34039 Use char because int might match the return type of a GCC
34040 builtin and then its argument prototype would still apply. */
34041 #ifdef __cplusplus
34042 extern "C"
34043 #endif
34044 char $ac_func ();
34045 /* The GNU C library defines this for functions which it implements
34046 to always fail with ENOSYS. Some functions are actually named
34047 something starting with __ and the normal name is an alias. */
34048 #if defined __stub_$ac_func || defined __stub___$ac_func
34049 choke me
34050 #endif
34053 main ()
34055 return $ac_func ();
34057 return 0;
34059 _ACEOF
34060 rm -f conftest.$ac_objext conftest$ac_exeext
34061 if { (ac_try="$ac_link"
34062 case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34065 esac
34066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34067 $as_echo "$ac_try_echo") >&5
34068 (eval "$ac_link") 2>conftest.er1
34069 ac_status=$?
34070 grep -v '^ *+' conftest.er1 >conftest.err
34071 rm -f conftest.er1
34072 cat conftest.err >&5
34073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); } && {
34075 test -z "$ac_c_werror_flag" ||
34076 test ! -s conftest.err
34077 } && test -s conftest$ac_exeext && {
34078 test "$cross_compiling" = yes ||
34079 $as_test_x conftest$ac_exeext
34080 }; then
34081 eval "$as_ac_var=yes"
34082 else
34083 $as_echo "$as_me: failed program was:" >&5
34084 sed 's/^/| /' conftest.$ac_ext >&5
34086 eval "$as_ac_var=no"
34089 rm -rf conftest.dSYM
34090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34091 conftest$ac_exeext conftest.$ac_ext
34093 ac_res=`eval 'as_val=${'$as_ac_var'}
34094 $as_echo "$as_val"'`
34095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34096 $as_echo "$ac_res" >&6; }
34097 as_val=`eval 'as_val=${'$as_ac_var'}
34098 $as_echo "$as_val"'`
34099 if test "x$as_val" = x""yes; then
34100 cat >>confdefs.h <<_ACEOF
34101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34102 _ACEOF
34105 done
34108 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
34109 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
34110 if test "${ac_cv_header_stat_broken+set}" = set; then
34111 $as_echo_n "(cached) " >&6
34112 else
34113 cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h. */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h. */
34119 #include <sys/types.h>
34120 #include <sys/stat.h>
34122 #if defined S_ISBLK && defined S_IFDIR
34123 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
34124 #endif
34126 #if defined S_ISBLK && defined S_IFCHR
34127 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
34128 #endif
34130 #if defined S_ISLNK && defined S_IFREG
34131 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
34132 #endif
34134 #if defined S_ISSOCK && defined S_IFREG
34135 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
34136 #endif
34138 _ACEOF
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34144 esac
34145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34146 $as_echo "$ac_try_echo") >&5
34147 (eval "$ac_compile") 2>conftest.er1
34148 ac_status=$?
34149 grep -v '^ *+' conftest.er1 >conftest.err
34150 rm -f conftest.er1
34151 cat conftest.err >&5
34152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } && {
34154 test -z "$ac_c_werror_flag" ||
34155 test ! -s conftest.err
34156 } && test -s conftest.$ac_objext; then
34157 ac_cv_header_stat_broken=no
34158 else
34159 $as_echo "$as_me: failed program was:" >&5
34160 sed 's/^/| /' conftest.$ac_ext >&5
34162 ac_cv_header_stat_broken=yes
34165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34167 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
34168 $as_echo "$ac_cv_header_stat_broken" >&6; }
34169 if test $ac_cv_header_stat_broken = yes; then
34171 cat >>confdefs.h <<\_ACEOF
34172 #define STAT_MACROS_BROKEN 1
34173 _ACEOF
34178 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34179 $as_echo_n "checking for type of signal functions... " >&6; }
34180 if test "${mysql_cv_signal_vintage+set}" = set; then
34181 $as_echo_n "(cached) " >&6
34182 else
34184 cat >conftest.$ac_ext <<_ACEOF
34185 /* confdefs.h. */
34186 _ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190 #include <signal.h>
34192 main ()
34195 sigset_t ss;
34196 struct sigaction sa;
34197 sigemptyset(&ss); sigsuspend(&ss);
34198 sigaction(SIGINT, &sa, (struct sigaction *) 0);
34199 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34202 return 0;
34204 _ACEOF
34205 rm -f conftest.$ac_objext conftest$ac_exeext
34206 if { (ac_try="$ac_link"
34207 case "(($ac_try" in
34208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209 *) ac_try_echo=$ac_try;;
34210 esac
34211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34212 $as_echo "$ac_try_echo") >&5
34213 (eval "$ac_link") 2>conftest.er1
34214 ac_status=$?
34215 grep -v '^ *+' conftest.er1 >conftest.err
34216 rm -f conftest.er1
34217 cat conftest.err >&5
34218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); } && {
34220 test -z "$ac_c_werror_flag" ||
34221 test ! -s conftest.err
34222 } && test -s conftest$ac_exeext && {
34223 test "$cross_compiling" = yes ||
34224 $as_test_x conftest$ac_exeext
34225 }; then
34226 mysql_cv_signal_vintage=posix
34227 else
34228 $as_echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34232 cat >conftest.$ac_ext <<_ACEOF
34233 /* confdefs.h. */
34234 _ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h. */
34238 #include <signal.h>
34240 main ()
34243 int mask = sigmask(SIGINT);
34244 sigsetmask(mask); sigblock(mask); sigpause(mask);
34247 return 0;
34249 _ACEOF
34250 rm -f conftest.$ac_objext conftest$ac_exeext
34251 if { (ac_try="$ac_link"
34252 case "(($ac_try" in
34253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34254 *) ac_try_echo=$ac_try;;
34255 esac
34256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34257 $as_echo "$ac_try_echo") >&5
34258 (eval "$ac_link") 2>conftest.er1
34259 ac_status=$?
34260 grep -v '^ *+' conftest.er1 >conftest.err
34261 rm -f conftest.er1
34262 cat conftest.err >&5
34263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } && {
34265 test -z "$ac_c_werror_flag" ||
34266 test ! -s conftest.err
34267 } && test -s conftest$ac_exeext && {
34268 test "$cross_compiling" = yes ||
34269 $as_test_x conftest$ac_exeext
34270 }; then
34271 mysql_cv_signal_vintage=4.2bsd
34272 else
34273 $as_echo "$as_me: failed program was:" >&5
34274 sed 's/^/| /' conftest.$ac_ext >&5
34277 cat >conftest.$ac_ext <<_ACEOF
34278 /* confdefs.h. */
34279 _ACEOF
34280 cat confdefs.h >>conftest.$ac_ext
34281 cat >>conftest.$ac_ext <<_ACEOF
34282 /* end confdefs.h. */
34284 #include <signal.h>
34285 RETSIGTYPE foo() { }
34287 main ()
34290 int mask = sigmask(SIGINT);
34291 sigset(SIGINT, foo); sigrelse(SIGINT);
34292 sighold(SIGINT); sigpause(SIGINT);
34295 return 0;
34297 _ACEOF
34298 rm -f conftest.$ac_objext conftest$ac_exeext
34299 if { (ac_try="$ac_link"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34303 esac
34304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34305 $as_echo "$ac_try_echo") >&5
34306 (eval "$ac_link") 2>conftest.er1
34307 ac_status=$?
34308 grep -v '^ *+' conftest.er1 >conftest.err
34309 rm -f conftest.er1
34310 cat conftest.err >&5
34311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); } && {
34313 test -z "$ac_c_werror_flag" ||
34314 test ! -s conftest.err
34315 } && test -s conftest$ac_exeext && {
34316 test "$cross_compiling" = yes ||
34317 $as_test_x conftest$ac_exeext
34318 }; then
34319 mysql_cv_signal_vintage=svr3
34320 else
34321 $as_echo "$as_me: failed program was:" >&5
34322 sed 's/^/| /' conftest.$ac_ext >&5
34324 mysql_cv_signal_vintage=v7
34328 rm -rf conftest.dSYM
34329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34330 conftest$ac_exeext conftest.$ac_ext
34334 rm -rf conftest.dSYM
34335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34336 conftest$ac_exeext conftest.$ac_ext
34340 rm -rf conftest.dSYM
34341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34342 conftest$ac_exeext conftest.$ac_ext
34346 { $as_echo "$as_me:$LINENO: result: $mysql_cv_signal_vintage" >&5
34347 $as_echo "$mysql_cv_signal_vintage" >&6; }
34348 if test "$mysql_cv_signal_vintage" = posix; then
34350 cat >>confdefs.h <<\_ACEOF
34351 #define HAVE_POSIX_SIGNALS 1
34352 _ACEOF
34354 elif test "$mysql_cv_signal_vintage" = "4.2bsd"; then
34356 cat >>confdefs.h <<\_ACEOF
34357 #define HAVE_BSD_SIGNALS 1
34358 _ACEOF
34360 elif test "$mysql_cv_signal_vintage" = svr3; then
34362 cat >>confdefs.h <<\_ACEOF
34363 #define HAVE_USG_SIGHOLD 1
34364 _ACEOF
34368 { $as_echo "$as_me:$LINENO: checking whether programs are able to redeclare getpw functions" >&5
34369 $as_echo_n "checking whether programs are able to redeclare getpw functions... " >&6; }
34370 if test "${mysql_cv_can_redecl_getpw+set}" = set; then
34371 $as_echo_n "(cached) " >&6
34372 else
34373 cat >conftest.$ac_ext <<_ACEOF
34374 /* confdefs.h. */
34375 _ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h. */
34379 #include <sys/types.h>
34380 #include <pwd.h>
34381 extern struct passwd *getpwent();
34383 main ()
34385 struct passwd *z; z = getpwent();
34387 return 0;
34389 _ACEOF
34390 rm -f conftest.$ac_objext
34391 if { (ac_try="$ac_compile"
34392 case "(($ac_try" in
34393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34394 *) ac_try_echo=$ac_try;;
34395 esac
34396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34397 $as_echo "$ac_try_echo") >&5
34398 (eval "$ac_compile") 2>conftest.er1
34399 ac_status=$?
34400 grep -v '^ *+' conftest.er1 >conftest.err
34401 rm -f conftest.er1
34402 cat conftest.err >&5
34403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); } && {
34405 test -z "$ac_c_werror_flag" ||
34406 test ! -s conftest.err
34407 } && test -s conftest.$ac_objext; then
34408 mysql_cv_can_redecl_getpw=yes
34409 else
34410 $as_echo "$as_me: failed program was:" >&5
34411 sed 's/^/| /' conftest.$ac_ext >&5
34413 mysql_cv_can_redecl_getpw=no
34416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419 { $as_echo "$as_me:$LINENO: result: $mysql_cv_can_redecl_getpw" >&5
34420 $as_echo "$mysql_cv_can_redecl_getpw" >&6; }
34421 if test "$mysql_cv_can_redecl_getpw" = "no"; then
34423 cat >>confdefs.h <<\_ACEOF
34424 #define HAVE_GETPW_DECLS 1
34425 _ACEOF
34429 { $as_echo "$as_me:$LINENO: checking for TIOCGWINSZ in sys/ioctl.h" >&5
34430 $as_echo_n "checking for TIOCGWINSZ in sys/ioctl.h... " >&6; }
34431 if test "${mysql_cv_tiocgwinsz_in_ioctl+set}" = set; then
34432 $as_echo_n "(cached) " >&6
34433 else
34434 cat >conftest.$ac_ext <<_ACEOF
34435 /* confdefs.h. */
34436 _ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h. */
34440 #include <sys/types.h>
34441 #include <sys/ioctl.h>
34443 main ()
34445 int x = TIOCGWINSZ;
34447 return 0;
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34455 esac
34456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34457 $as_echo "$ac_try_echo") >&5
34458 (eval "$ac_compile") 2>conftest.er1
34459 ac_status=$?
34460 grep -v '^ *+' conftest.er1 >conftest.err
34461 rm -f conftest.er1
34462 cat conftest.err >&5
34463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } && {
34465 test -z "$ac_c_werror_flag" ||
34466 test ! -s conftest.err
34467 } && test -s conftest.$ac_objext; then
34468 mysql_cv_tiocgwinsz_in_ioctl=yes
34469 else
34470 $as_echo "$as_me: failed program was:" >&5
34471 sed 's/^/| /' conftest.$ac_ext >&5
34473 mysql_cv_tiocgwinsz_in_ioctl=no
34476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34479 { $as_echo "$as_me:$LINENO: result: $mysql_cv_tiocgwinsz_in_ioctl" >&5
34480 $as_echo "$mysql_cv_tiocgwinsz_in_ioctl" >&6; }
34481 if test "$mysql_cv_tiocgwinsz_in_ioctl" = "yes"; then
34483 cat >>confdefs.h <<\_ACEOF
34484 #define GWINSZ_IN_SYS_IOCTL 1
34485 _ACEOF
34489 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
34490 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
34491 if test "${mysql_cv_fionread_in_ioctl+set}" = set; then
34492 $as_echo_n "(cached) " >&6
34493 else
34494 cat >conftest.$ac_ext <<_ACEOF
34495 /* confdefs.h. */
34496 _ACEOF
34497 cat confdefs.h >>conftest.$ac_ext
34498 cat >>conftest.$ac_ext <<_ACEOF
34499 /* end confdefs.h. */
34500 #include <sys/types.h>
34501 #include <sys/ioctl.h>
34503 main ()
34505 int x = FIONREAD;
34507 return 0;
34509 _ACEOF
34510 rm -f conftest.$ac_objext
34511 if { (ac_try="$ac_compile"
34512 case "(($ac_try" in
34513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514 *) ac_try_echo=$ac_try;;
34515 esac
34516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34517 $as_echo "$ac_try_echo") >&5
34518 (eval "$ac_compile") 2>conftest.er1
34519 ac_status=$?
34520 grep -v '^ *+' conftest.er1 >conftest.err
34521 rm -f conftest.er1
34522 cat conftest.err >&5
34523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); } && {
34525 test -z "$ac_c_werror_flag" ||
34526 test ! -s conftest.err
34527 } && test -s conftest.$ac_objext; then
34528 mysql_cv_fionread_in_ioctl=yes
34529 else
34530 $as_echo "$as_me: failed program was:" >&5
34531 sed 's/^/| /' conftest.$ac_ext >&5
34533 mysql_cv_fionread_in_ioctl=no
34536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34539 { $as_echo "$as_me:$LINENO: result: $mysql_cv_fionread_in_ioctl" >&5
34540 $as_echo "$mysql_cv_fionread_in_ioctl" >&6; }
34541 if test "$mysql_cv_fionread_in_ioctl" = "yes"; then
34543 cat >>confdefs.h <<\_ACEOF
34544 #define FIONREAD_IN_SYS_IOCTL 1
34545 _ACEOF
34549 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
34550 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
34551 if test "${mysql_cv_tiocstat_in_ioctl+set}" = set; then
34552 $as_echo_n "(cached) " >&6
34553 else
34554 cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h. */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 #include <sys/types.h>
34561 #include <sys/ioctl.h>
34563 main ()
34565 int x = TIOCSTAT;
34567 return 0;
34569 _ACEOF
34570 rm -f conftest.$ac_objext
34571 if { (ac_try="$ac_compile"
34572 case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34575 esac
34576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34577 $as_echo "$ac_try_echo") >&5
34578 (eval "$ac_compile") 2>conftest.er1
34579 ac_status=$?
34580 grep -v '^ *+' conftest.er1 >conftest.err
34581 rm -f conftest.er1
34582 cat conftest.err >&5
34583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } && {
34585 test -z "$ac_c_werror_flag" ||
34586 test ! -s conftest.err
34587 } && test -s conftest.$ac_objext; then
34588 mysql_cv_tiocstat_in_ioctl=yes
34589 else
34590 $as_echo "$as_me: failed program was:" >&5
34591 sed 's/^/| /' conftest.$ac_ext >&5
34593 mysql_cv_tiocstat_in_ioctl=no
34596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34599 { $as_echo "$as_me:$LINENO: result: $mysql_cv_tiocstat_in_ioctl" >&5
34600 $as_echo "$mysql_cv_tiocstat_in_ioctl" >&6; }
34601 if test "$mysql_cv_tiocstat_in_ioctl" = "yes"; then
34603 cat >>confdefs.h <<\_ACEOF
34604 #define TIOCSTAT_IN_SYS_IOCTL 1
34605 _ACEOF
34610 { $as_echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
34611 $as_echo_n "checking if struct dirent has a d_ino member... " >&6; }
34612 if test "${mysql_cv_dirent_has_dino+set}" = set; then
34613 $as_echo_n "(cached) " >&6
34614 else
34615 cat >conftest.$ac_ext <<_ACEOF
34616 /* confdefs.h. */
34617 _ACEOF
34618 cat confdefs.h >>conftest.$ac_ext
34619 cat >>conftest.$ac_ext <<_ACEOF
34620 /* end confdefs.h. */
34622 #include <stdio.h>
34623 #include <sys/types.h>
34624 #ifdef HAVE_UNISTD_H
34625 # include <unistd.h>
34626 #endif /* HAVE_UNISTD_H */
34627 #if defined(HAVE_DIRENT_H)
34628 # include <dirent.h>
34629 #else
34630 # define dirent direct
34631 # ifdef HAVE_SYS_NDIR_H
34632 # include <sys/ndir.h>
34633 # endif /* SYSNDIR */
34634 # ifdef HAVE_SYS_DIR_H
34635 # include <sys/dir.h>
34636 # endif /* SYSDIR */
34637 # ifdef HAVE_NDIR_H
34638 # include <ndir.h>
34639 # endif
34640 #endif /* HAVE_DIRENT_H */
34643 main ()
34646 struct dirent d; int z; z = d.d_ino;
34649 return 0;
34651 _ACEOF
34652 rm -f conftest.$ac_objext
34653 if { (ac_try="$ac_compile"
34654 case "(($ac_try" in
34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34657 esac
34658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34659 $as_echo "$ac_try_echo") >&5
34660 (eval "$ac_compile") 2>conftest.er1
34661 ac_status=$?
34662 grep -v '^ *+' conftest.er1 >conftest.err
34663 rm -f conftest.er1
34664 cat conftest.err >&5
34665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); } && {
34667 test -z "$ac_c_werror_flag" ||
34668 test ! -s conftest.err
34669 } && test -s conftest.$ac_objext; then
34670 mysql_cv_dirent_has_dino=yes
34671 else
34672 $as_echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34675 mysql_cv_dirent_has_dino=no
34678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34681 { $as_echo "$as_me:$LINENO: result: $mysql_cv_dirent_has_dino" >&5
34682 $as_echo "$mysql_cv_dirent_has_dino" >&6; }
34683 if test "$mysql_cv_dirent_has_dino" = "yes"; then
34685 cat >>confdefs.h <<\_ACEOF
34686 #define STRUCT_DIRENT_HAS_D_INO 1
34687 _ACEOF
34692 { $as_echo "$as_me:$LINENO: checking if struct dirent has a d_namlen member" >&5
34693 $as_echo_n "checking if struct dirent has a d_namlen member... " >&6; }
34694 if test "${mysql_cv_dirent_has_dnamlen+set}" = set; then
34695 $as_echo_n "(cached) " >&6
34696 else
34697 cat >conftest.$ac_ext <<_ACEOF
34698 /* confdefs.h. */
34699 _ACEOF
34700 cat confdefs.h >>conftest.$ac_ext
34701 cat >>conftest.$ac_ext <<_ACEOF
34702 /* end confdefs.h. */
34704 #include <stdio.h>
34705 #include <sys/types.h>
34706 #ifdef HAVE_UNISTD_H
34707 # include <unistd.h>
34708 #endif /* HAVE_UNISTD_H */
34709 #if defined(HAVE_DIRENT_H)
34710 # include <dirent.h>
34711 #else
34712 # define dirent direct
34713 # ifdef HAVE_SYS_NDIR_H
34714 # include <sys/ndir.h>
34715 # endif /* SYSNDIR */
34716 # ifdef HAVE_SYS_DIR_H
34717 # include <sys/dir.h>
34718 # endif /* SYSDIR */
34719 # ifdef HAVE_NDIR_H
34720 # include <ndir.h>
34721 # endif
34722 #endif /* HAVE_DIRENT_H */
34725 main ()
34728 struct dirent d; int z; z = (int)d.d_namlen;
34731 return 0;
34733 _ACEOF
34734 rm -f conftest.$ac_objext
34735 if { (ac_try="$ac_compile"
34736 case "(($ac_try" in
34737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738 *) ac_try_echo=$ac_try;;
34739 esac
34740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34741 $as_echo "$ac_try_echo") >&5
34742 (eval "$ac_compile") 2>conftest.er1
34743 ac_status=$?
34744 grep -v '^ *+' conftest.er1 >conftest.err
34745 rm -f conftest.er1
34746 cat conftest.err >&5
34747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); } && {
34749 test -z "$ac_c_werror_flag" ||
34750 test ! -s conftest.err
34751 } && test -s conftest.$ac_objext; then
34752 mysql_cv_dirent_has_dnamlen=yes
34753 else
34754 $as_echo "$as_me: failed program was:" >&5
34755 sed 's/^/| /' conftest.$ac_ext >&5
34757 mysql_cv_dirent_has_dnamlen=no
34760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 { $as_echo "$as_me:$LINENO: result: $mysql_cv_dirent_has_dnamlen" >&5
34764 $as_echo "$mysql_cv_dirent_has_dnamlen" >&6; }
34765 if test "$mysql_cv_dirent_has_dnamlen" = "yes"; then
34767 cat >>confdefs.h <<\_ACEOF
34768 #define STRUCT_DIRENT_HAS_D_NAMLEN 1
34769 _ACEOF
34773 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
34774 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
34775 if test "${mysql_cv_void_sighandler+set}" = set; then
34776 $as_echo_n "(cached) " >&6
34777 else
34778 cat >conftest.$ac_ext <<_ACEOF
34779 /* confdefs.h. */
34780 _ACEOF
34781 cat confdefs.h >>conftest.$ac_ext
34782 cat >>conftest.$ac_ext <<_ACEOF
34783 /* end confdefs.h. */
34784 #include <sys/types.h>
34785 #include <signal.h>
34786 #ifdef signal
34787 #undef signal
34788 #endif
34789 #ifdef __cplusplus
34790 extern "C"
34791 #endif
34792 void (*signal ()) ();
34794 main ()
34796 int i;
34798 return 0;
34800 _ACEOF
34801 rm -f conftest.$ac_objext
34802 if { (ac_try="$ac_compile"
34803 case "(($ac_try" in
34804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805 *) ac_try_echo=$ac_try;;
34806 esac
34807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34808 $as_echo "$ac_try_echo") >&5
34809 (eval "$ac_compile") 2>conftest.er1
34810 ac_status=$?
34811 grep -v '^ *+' conftest.er1 >conftest.err
34812 rm -f conftest.er1
34813 cat conftest.err >&5
34814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); } && {
34816 test -z "$ac_c_werror_flag" ||
34817 test ! -s conftest.err
34818 } && test -s conftest.$ac_objext; then
34819 mysql_cv_void_sighandler=yes
34820 else
34821 $as_echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34824 mysql_cv_void_sighandler=no
34827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34829 { $as_echo "$as_me:$LINENO: result: $mysql_cv_void_sighandler" >&5
34830 $as_echo "$mysql_cv_void_sighandler" >&6; }
34831 if test "$mysql_cv_void_sighandler" = "yes"; then
34833 cat >>confdefs.h <<\_ACEOF
34834 #define VOID_SIGHANDLER 1
34835 _ACEOF
34841 for ac_header in wctype.h
34843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34846 $as_echo_n "checking for $ac_header... " >&6; }
34847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34848 $as_echo_n "(cached) " >&6
34850 ac_res=`eval 'as_val=${'$as_ac_Header'}
34851 $as_echo "$as_val"'`
34852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34853 $as_echo "$ac_res" >&6; }
34854 else
34855 # Is the header compilable?
34856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34857 $as_echo_n "checking $ac_header usability... " >&6; }
34858 cat >conftest.$ac_ext <<_ACEOF
34859 /* confdefs.h. */
34860 _ACEOF
34861 cat confdefs.h >>conftest.$ac_ext
34862 cat >>conftest.$ac_ext <<_ACEOF
34863 /* end confdefs.h. */
34864 $ac_includes_default
34865 #include <$ac_header>
34866 _ACEOF
34867 rm -f conftest.$ac_objext
34868 if { (ac_try="$ac_compile"
34869 case "(($ac_try" in
34870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34871 *) ac_try_echo=$ac_try;;
34872 esac
34873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34874 $as_echo "$ac_try_echo") >&5
34875 (eval "$ac_compile") 2>conftest.er1
34876 ac_status=$?
34877 grep -v '^ *+' conftest.er1 >conftest.err
34878 rm -f conftest.er1
34879 cat conftest.err >&5
34880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); } && {
34882 test -z "$ac_c_werror_flag" ||
34883 test ! -s conftest.err
34884 } && test -s conftest.$ac_objext; then
34885 ac_header_compiler=yes
34886 else
34887 $as_echo "$as_me: failed program was:" >&5
34888 sed 's/^/| /' conftest.$ac_ext >&5
34890 ac_header_compiler=no
34893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34895 $as_echo "$ac_header_compiler" >&6; }
34897 # Is the header present?
34898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34899 $as_echo_n "checking $ac_header presence... " >&6; }
34900 cat >conftest.$ac_ext <<_ACEOF
34901 /* confdefs.h. */
34902 _ACEOF
34903 cat confdefs.h >>conftest.$ac_ext
34904 cat >>conftest.$ac_ext <<_ACEOF
34905 /* end confdefs.h. */
34906 #include <$ac_header>
34907 _ACEOF
34908 if { (ac_try="$ac_cpp conftest.$ac_ext"
34909 case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34912 esac
34913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34914 $as_echo "$ac_try_echo") >&5
34915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34916 ac_status=$?
34917 grep -v '^ *+' conftest.er1 >conftest.err
34918 rm -f conftest.er1
34919 cat conftest.err >&5
34920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); } >/dev/null && {
34922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34923 test ! -s conftest.err
34924 }; then
34925 ac_header_preproc=yes
34926 else
34927 $as_echo "$as_me: failed program was:" >&5
34928 sed 's/^/| /' conftest.$ac_ext >&5
34930 ac_header_preproc=no
34933 rm -f conftest.err conftest.$ac_ext
34934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34935 $as_echo "$ac_header_preproc" >&6; }
34937 # So? What about this header?
34938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34939 yes:no: )
34940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34944 ac_header_preproc=yes
34946 no:yes:* )
34947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34950 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34954 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34961 esac
34962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34963 $as_echo_n "checking for $ac_header... " >&6; }
34964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34965 $as_echo_n "(cached) " >&6
34966 else
34967 eval "$as_ac_Header=\$ac_header_preproc"
34969 ac_res=`eval 'as_val=${'$as_ac_Header'}
34970 $as_echo "$as_val"'`
34971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34972 $as_echo "$ac_res" >&6; }
34975 as_val=`eval 'as_val=${'$as_ac_Header'}
34976 $as_echo "$as_val"'`
34977 if test "x$as_val" = x""yes; then
34978 cat >>confdefs.h <<_ACEOF
34979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34980 _ACEOF
34984 done
34987 for ac_header in wchar.h
34989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34992 $as_echo_n "checking for $ac_header... " >&6; }
34993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34994 $as_echo_n "(cached) " >&6
34996 ac_res=`eval 'as_val=${'$as_ac_Header'}
34997 $as_echo "$as_val"'`
34998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34999 $as_echo "$ac_res" >&6; }
35000 else
35001 # Is the header compilable?
35002 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35003 $as_echo_n "checking $ac_header usability... " >&6; }
35004 cat >conftest.$ac_ext <<_ACEOF
35005 /* confdefs.h. */
35006 _ACEOF
35007 cat confdefs.h >>conftest.$ac_ext
35008 cat >>conftest.$ac_ext <<_ACEOF
35009 /* end confdefs.h. */
35010 $ac_includes_default
35011 #include <$ac_header>
35012 _ACEOF
35013 rm -f conftest.$ac_objext
35014 if { (ac_try="$ac_compile"
35015 case "(($ac_try" in
35016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35017 *) ac_try_echo=$ac_try;;
35018 esac
35019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35020 $as_echo "$ac_try_echo") >&5
35021 (eval "$ac_compile") 2>conftest.er1
35022 ac_status=$?
35023 grep -v '^ *+' conftest.er1 >conftest.err
35024 rm -f conftest.er1
35025 cat conftest.err >&5
35026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); } && {
35028 test -z "$ac_c_werror_flag" ||
35029 test ! -s conftest.err
35030 } && test -s conftest.$ac_objext; then
35031 ac_header_compiler=yes
35032 else
35033 $as_echo "$as_me: failed program was:" >&5
35034 sed 's/^/| /' conftest.$ac_ext >&5
35036 ac_header_compiler=no
35039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35040 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35041 $as_echo "$ac_header_compiler" >&6; }
35043 # Is the header present?
35044 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35045 $as_echo_n "checking $ac_header presence... " >&6; }
35046 cat >conftest.$ac_ext <<_ACEOF
35047 /* confdefs.h. */
35048 _ACEOF
35049 cat confdefs.h >>conftest.$ac_ext
35050 cat >>conftest.$ac_ext <<_ACEOF
35051 /* end confdefs.h. */
35052 #include <$ac_header>
35053 _ACEOF
35054 if { (ac_try="$ac_cpp conftest.$ac_ext"
35055 case "(($ac_try" in
35056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35057 *) ac_try_echo=$ac_try;;
35058 esac
35059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35060 $as_echo "$ac_try_echo") >&5
35061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35062 ac_status=$?
35063 grep -v '^ *+' conftest.er1 >conftest.err
35064 rm -f conftest.er1
35065 cat conftest.err >&5
35066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); } >/dev/null && {
35068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35069 test ! -s conftest.err
35070 }; then
35071 ac_header_preproc=yes
35072 else
35073 $as_echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35076 ac_header_preproc=no
35079 rm -f conftest.err conftest.$ac_ext
35080 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35081 $as_echo "$ac_header_preproc" >&6; }
35083 # So? What about this header?
35084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35085 yes:no: )
35086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35087 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35090 ac_header_preproc=yes
35092 no:yes:* )
35093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35094 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35096 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35098 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35100 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35104 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35107 esac
35108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35109 $as_echo_n "checking for $ac_header... " >&6; }
35110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35111 $as_echo_n "(cached) " >&6
35112 else
35113 eval "$as_ac_Header=\$ac_header_preproc"
35115 ac_res=`eval 'as_val=${'$as_ac_Header'}
35116 $as_echo "$as_val"'`
35117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35118 $as_echo "$ac_res" >&6; }
35121 as_val=`eval 'as_val=${'$as_ac_Header'}
35122 $as_echo "$as_val"'`
35123 if test "x$as_val" = x""yes; then
35124 cat >>confdefs.h <<_ACEOF
35125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35126 _ACEOF
35130 done
35133 for ac_header in langinfo.h
35135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35138 $as_echo_n "checking for $ac_header... " >&6; }
35139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35140 $as_echo_n "(cached) " >&6
35142 ac_res=`eval 'as_val=${'$as_ac_Header'}
35143 $as_echo "$as_val"'`
35144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35145 $as_echo "$ac_res" >&6; }
35146 else
35147 # Is the header compilable?
35148 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35149 $as_echo_n "checking $ac_header usability... " >&6; }
35150 cat >conftest.$ac_ext <<_ACEOF
35151 /* confdefs.h. */
35152 _ACEOF
35153 cat confdefs.h >>conftest.$ac_ext
35154 cat >>conftest.$ac_ext <<_ACEOF
35155 /* end confdefs.h. */
35156 $ac_includes_default
35157 #include <$ac_header>
35158 _ACEOF
35159 rm -f conftest.$ac_objext
35160 if { (ac_try="$ac_compile"
35161 case "(($ac_try" in
35162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35163 *) ac_try_echo=$ac_try;;
35164 esac
35165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35166 $as_echo "$ac_try_echo") >&5
35167 (eval "$ac_compile") 2>conftest.er1
35168 ac_status=$?
35169 grep -v '^ *+' conftest.er1 >conftest.err
35170 rm -f conftest.er1
35171 cat conftest.err >&5
35172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); } && {
35174 test -z "$ac_c_werror_flag" ||
35175 test ! -s conftest.err
35176 } && test -s conftest.$ac_objext; then
35177 ac_header_compiler=yes
35178 else
35179 $as_echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35182 ac_header_compiler=no
35185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35187 $as_echo "$ac_header_compiler" >&6; }
35189 # Is the header present?
35190 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35191 $as_echo_n "checking $ac_header presence... " >&6; }
35192 cat >conftest.$ac_ext <<_ACEOF
35193 /* confdefs.h. */
35194 _ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h. */
35198 #include <$ac_header>
35199 _ACEOF
35200 if { (ac_try="$ac_cpp conftest.$ac_ext"
35201 case "(($ac_try" in
35202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203 *) ac_try_echo=$ac_try;;
35204 esac
35205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35206 $as_echo "$ac_try_echo") >&5
35207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35208 ac_status=$?
35209 grep -v '^ *+' conftest.er1 >conftest.err
35210 rm -f conftest.er1
35211 cat conftest.err >&5
35212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); } >/dev/null && {
35214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35215 test ! -s conftest.err
35216 }; then
35217 ac_header_preproc=yes
35218 else
35219 $as_echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35222 ac_header_preproc=no
35225 rm -f conftest.err conftest.$ac_ext
35226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35227 $as_echo "$ac_header_preproc" >&6; }
35229 # So? What about this header?
35230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35231 yes:no: )
35232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35233 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35236 ac_header_preproc=yes
35238 no:yes:* )
35239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35240 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35242 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35244 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35246 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35250 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35253 esac
35254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35255 $as_echo_n "checking for $ac_header... " >&6; }
35256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35257 $as_echo_n "(cached) " >&6
35258 else
35259 eval "$as_ac_Header=\$ac_header_preproc"
35261 ac_res=`eval 'as_val=${'$as_ac_Header'}
35262 $as_echo "$as_val"'`
35263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35264 $as_echo "$ac_res" >&6; }
35267 as_val=`eval 'as_val=${'$as_ac_Header'}
35268 $as_echo "$as_val"'`
35269 if test "x$as_val" = x""yes; then
35270 cat >>confdefs.h <<_ACEOF
35271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35272 _ACEOF
35276 done
35279 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
35280 $as_echo_n "checking for mbrlen... " >&6; }
35281 if test "${ac_cv_func_mbrlen+set}" = set; then
35282 $as_echo_n "(cached) " >&6
35283 else
35284 cat >conftest.$ac_ext <<_ACEOF
35285 /* confdefs.h. */
35286 _ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h. */
35290 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
35291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35292 #define mbrlen innocuous_mbrlen
35294 /* System header to define __stub macros and hopefully few prototypes,
35295 which can conflict with char mbrlen (); below.
35296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35297 <limits.h> exists even on freestanding compilers. */
35299 #ifdef __STDC__
35300 # include <limits.h>
35301 #else
35302 # include <assert.h>
35303 #endif
35305 #undef mbrlen
35307 /* Override any GCC internal prototype to avoid an error.
35308 Use char because int might match the return type of a GCC
35309 builtin and then its argument prototype would still apply. */
35310 #ifdef __cplusplus
35311 extern "C"
35312 #endif
35313 char mbrlen ();
35314 /* The GNU C library defines this for functions which it implements
35315 to always fail with ENOSYS. Some functions are actually named
35316 something starting with __ and the normal name is an alias. */
35317 #if defined __stub_mbrlen || defined __stub___mbrlen
35318 choke me
35319 #endif
35322 main ()
35324 return mbrlen ();
35326 return 0;
35328 _ACEOF
35329 rm -f conftest.$ac_objext conftest$ac_exeext
35330 if { (ac_try="$ac_link"
35331 case "(($ac_try" in
35332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333 *) ac_try_echo=$ac_try;;
35334 esac
35335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35336 $as_echo "$ac_try_echo") >&5
35337 (eval "$ac_link") 2>conftest.er1
35338 ac_status=$?
35339 grep -v '^ *+' conftest.er1 >conftest.err
35340 rm -f conftest.er1
35341 cat conftest.err >&5
35342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } && {
35344 test -z "$ac_c_werror_flag" ||
35345 test ! -s conftest.err
35346 } && test -s conftest$ac_exeext && {
35347 test "$cross_compiling" = yes ||
35348 $as_test_x conftest$ac_exeext
35349 }; then
35350 ac_cv_func_mbrlen=yes
35351 else
35352 $as_echo "$as_me: failed program was:" >&5
35353 sed 's/^/| /' conftest.$ac_ext >&5
35355 ac_cv_func_mbrlen=no
35358 rm -rf conftest.dSYM
35359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35360 conftest$ac_exeext conftest.$ac_ext
35362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
35363 $as_echo "$ac_cv_func_mbrlen" >&6; }
35364 if test "x$ac_cv_func_mbrlen" = x""yes; then
35366 cat >>confdefs.h <<\_ACEOF
35367 #define HAVE_MBRLEN /**/
35368 _ACEOF
35372 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
35373 $as_echo_n "checking for mbscmp... " >&6; }
35374 if test "${ac_cv_func_mbscmp+set}" = set; then
35375 $as_echo_n "(cached) " >&6
35376 else
35377 cat >conftest.$ac_ext <<_ACEOF
35378 /* confdefs.h. */
35379 _ACEOF
35380 cat confdefs.h >>conftest.$ac_ext
35381 cat >>conftest.$ac_ext <<_ACEOF
35382 /* end confdefs.h. */
35383 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
35384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35385 #define mbscmp innocuous_mbscmp
35387 /* System header to define __stub macros and hopefully few prototypes,
35388 which can conflict with char mbscmp (); below.
35389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35390 <limits.h> exists even on freestanding compilers. */
35392 #ifdef __STDC__
35393 # include <limits.h>
35394 #else
35395 # include <assert.h>
35396 #endif
35398 #undef mbscmp
35400 /* Override any GCC internal prototype to avoid an error.
35401 Use char because int might match the return type of a GCC
35402 builtin and then its argument prototype would still apply. */
35403 #ifdef __cplusplus
35404 extern "C"
35405 #endif
35406 char mbscmp ();
35407 /* The GNU C library defines this for functions which it implements
35408 to always fail with ENOSYS. Some functions are actually named
35409 something starting with __ and the normal name is an alias. */
35410 #if defined __stub_mbscmp || defined __stub___mbscmp
35411 choke me
35412 #endif
35415 main ()
35417 return mbscmp ();
35419 return 0;
35421 _ACEOF
35422 rm -f conftest.$ac_objext conftest$ac_exeext
35423 if { (ac_try="$ac_link"
35424 case "(($ac_try" in
35425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426 *) ac_try_echo=$ac_try;;
35427 esac
35428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35429 $as_echo "$ac_try_echo") >&5
35430 (eval "$ac_link") 2>conftest.er1
35431 ac_status=$?
35432 grep -v '^ *+' conftest.er1 >conftest.err
35433 rm -f conftest.er1
35434 cat conftest.err >&5
35435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); } && {
35437 test -z "$ac_c_werror_flag" ||
35438 test ! -s conftest.err
35439 } && test -s conftest$ac_exeext && {
35440 test "$cross_compiling" = yes ||
35441 $as_test_x conftest$ac_exeext
35442 }; then
35443 ac_cv_func_mbscmp=yes
35444 else
35445 $as_echo "$as_me: failed program was:" >&5
35446 sed 's/^/| /' conftest.$ac_ext >&5
35448 ac_cv_func_mbscmp=no
35451 rm -rf conftest.dSYM
35452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35453 conftest$ac_exeext conftest.$ac_ext
35455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
35456 $as_echo "$ac_cv_func_mbscmp" >&6; }
35457 if test "x$ac_cv_func_mbscmp" = x""yes; then
35459 cat >>confdefs.h <<\_ACEOF
35460 #define HAVE_MBSCMP /**/
35461 _ACEOF
35465 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
35466 $as_echo_n "checking for mbsrtowcs... " >&6; }
35467 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
35468 $as_echo_n "(cached) " >&6
35469 else
35470 cat >conftest.$ac_ext <<_ACEOF
35471 /* confdefs.h. */
35472 _ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h. */
35476 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
35477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35478 #define mbsrtowcs innocuous_mbsrtowcs
35480 /* System header to define __stub macros and hopefully few prototypes,
35481 which can conflict with char mbsrtowcs (); below.
35482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35483 <limits.h> exists even on freestanding compilers. */
35485 #ifdef __STDC__
35486 # include <limits.h>
35487 #else
35488 # include <assert.h>
35489 #endif
35491 #undef mbsrtowcs
35493 /* Override any GCC internal prototype to avoid an error.
35494 Use char because int might match the return type of a GCC
35495 builtin and then its argument prototype would still apply. */
35496 #ifdef __cplusplus
35497 extern "C"
35498 #endif
35499 char mbsrtowcs ();
35500 /* The GNU C library defines this for functions which it implements
35501 to always fail with ENOSYS. Some functions are actually named
35502 something starting with __ and the normal name is an alias. */
35503 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
35504 choke me
35505 #endif
35508 main ()
35510 return mbsrtowcs ();
35512 return 0;
35514 _ACEOF
35515 rm -f conftest.$ac_objext conftest$ac_exeext
35516 if { (ac_try="$ac_link"
35517 case "(($ac_try" in
35518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35519 *) ac_try_echo=$ac_try;;
35520 esac
35521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35522 $as_echo "$ac_try_echo") >&5
35523 (eval "$ac_link") 2>conftest.er1
35524 ac_status=$?
35525 grep -v '^ *+' conftest.er1 >conftest.err
35526 rm -f conftest.er1
35527 cat conftest.err >&5
35528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); } && {
35530 test -z "$ac_c_werror_flag" ||
35531 test ! -s conftest.err
35532 } && test -s conftest$ac_exeext && {
35533 test "$cross_compiling" = yes ||
35534 $as_test_x conftest$ac_exeext
35535 }; then
35536 ac_cv_func_mbsrtowcs=yes
35537 else
35538 $as_echo "$as_me: failed program was:" >&5
35539 sed 's/^/| /' conftest.$ac_ext >&5
35541 ac_cv_func_mbsrtowcs=no
35544 rm -rf conftest.dSYM
35545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35546 conftest$ac_exeext conftest.$ac_ext
35548 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
35549 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
35550 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
35552 cat >>confdefs.h <<\_ACEOF
35553 #define HAVE_MBSRTOWCS /**/
35554 _ACEOF
35559 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
35560 $as_echo_n "checking for wcrtomb... " >&6; }
35561 if test "${ac_cv_func_wcrtomb+set}" = set; then
35562 $as_echo_n "(cached) " >&6
35563 else
35564 cat >conftest.$ac_ext <<_ACEOF
35565 /* confdefs.h. */
35566 _ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h. */
35570 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
35571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35572 #define wcrtomb innocuous_wcrtomb
35574 /* System header to define __stub macros and hopefully few prototypes,
35575 which can conflict with char wcrtomb (); below.
35576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35577 <limits.h> exists even on freestanding compilers. */
35579 #ifdef __STDC__
35580 # include <limits.h>
35581 #else
35582 # include <assert.h>
35583 #endif
35585 #undef wcrtomb
35587 /* Override any GCC internal prototype to avoid an error.
35588 Use char because int might match the return type of a GCC
35589 builtin and then its argument prototype would still apply. */
35590 #ifdef __cplusplus
35591 extern "C"
35592 #endif
35593 char wcrtomb ();
35594 /* The GNU C library defines this for functions which it implements
35595 to always fail with ENOSYS. Some functions are actually named
35596 something starting with __ and the normal name is an alias. */
35597 #if defined __stub_wcrtomb || defined __stub___wcrtomb
35598 choke me
35599 #endif
35602 main ()
35604 return wcrtomb ();
35606 return 0;
35608 _ACEOF
35609 rm -f conftest.$ac_objext conftest$ac_exeext
35610 if { (ac_try="$ac_link"
35611 case "(($ac_try" in
35612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35613 *) ac_try_echo=$ac_try;;
35614 esac
35615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35616 $as_echo "$ac_try_echo") >&5
35617 (eval "$ac_link") 2>conftest.er1
35618 ac_status=$?
35619 grep -v '^ *+' conftest.er1 >conftest.err
35620 rm -f conftest.er1
35621 cat conftest.err >&5
35622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); } && {
35624 test -z "$ac_c_werror_flag" ||
35625 test ! -s conftest.err
35626 } && test -s conftest$ac_exeext && {
35627 test "$cross_compiling" = yes ||
35628 $as_test_x conftest$ac_exeext
35629 }; then
35630 ac_cv_func_wcrtomb=yes
35631 else
35632 $as_echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35635 ac_cv_func_wcrtomb=no
35638 rm -rf conftest.dSYM
35639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35640 conftest$ac_exeext conftest.$ac_ext
35642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
35643 $as_echo "$ac_cv_func_wcrtomb" >&6; }
35644 if test "x$ac_cv_func_wcrtomb" = x""yes; then
35646 cat >>confdefs.h <<\_ACEOF
35647 #define HAVE_WCRTOMB /**/
35648 _ACEOF
35652 { $as_echo "$as_me:$LINENO: checking for mbrtowc" >&5
35653 $as_echo_n "checking for mbrtowc... " >&6; }
35654 if test "${ac_cv_func_mbrtowc+set}" = set; then
35655 $as_echo_n "(cached) " >&6
35656 else
35657 cat >conftest.$ac_ext <<_ACEOF
35658 /* confdefs.h. */
35659 _ACEOF
35660 cat confdefs.h >>conftest.$ac_ext
35661 cat >>conftest.$ac_ext <<_ACEOF
35662 /* end confdefs.h. */
35663 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
35664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35665 #define mbrtowc innocuous_mbrtowc
35667 /* System header to define __stub macros and hopefully few prototypes,
35668 which can conflict with char mbrtowc (); below.
35669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35670 <limits.h> exists even on freestanding compilers. */
35672 #ifdef __STDC__
35673 # include <limits.h>
35674 #else
35675 # include <assert.h>
35676 #endif
35678 #undef mbrtowc
35680 /* Override any GCC internal prototype to avoid an error.
35681 Use char because int might match the return type of a GCC
35682 builtin and then its argument prototype would still apply. */
35683 #ifdef __cplusplus
35684 extern "C"
35685 #endif
35686 char mbrtowc ();
35687 /* The GNU C library defines this for functions which it implements
35688 to always fail with ENOSYS. Some functions are actually named
35689 something starting with __ and the normal name is an alias. */
35690 #if defined __stub_mbrtowc || defined __stub___mbrtowc
35691 choke me
35692 #endif
35695 main ()
35697 return mbrtowc ();
35699 return 0;
35701 _ACEOF
35702 rm -f conftest.$ac_objext conftest$ac_exeext
35703 if { (ac_try="$ac_link"
35704 case "(($ac_try" in
35705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35706 *) ac_try_echo=$ac_try;;
35707 esac
35708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35709 $as_echo "$ac_try_echo") >&5
35710 (eval "$ac_link") 2>conftest.er1
35711 ac_status=$?
35712 grep -v '^ *+' conftest.er1 >conftest.err
35713 rm -f conftest.er1
35714 cat conftest.err >&5
35715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716 (exit $ac_status); } && {
35717 test -z "$ac_c_werror_flag" ||
35718 test ! -s conftest.err
35719 } && test -s conftest$ac_exeext && {
35720 test "$cross_compiling" = yes ||
35721 $as_test_x conftest$ac_exeext
35722 }; then
35723 ac_cv_func_mbrtowc=yes
35724 else
35725 $as_echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35728 ac_cv_func_mbrtowc=no
35731 rm -rf conftest.dSYM
35732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35733 conftest$ac_exeext conftest.$ac_ext
35735 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
35736 $as_echo "$ac_cv_func_mbrtowc" >&6; }
35737 if test "x$ac_cv_func_mbrtowc" = x""yes; then
35739 cat >>confdefs.h <<\_ACEOF
35740 #define HAVE_MBRTOWC /**/
35741 _ACEOF
35745 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
35746 $as_echo_n "checking for wcscoll... " >&6; }
35747 if test "${ac_cv_func_wcscoll+set}" = set; then
35748 $as_echo_n "(cached) " >&6
35749 else
35750 cat >conftest.$ac_ext <<_ACEOF
35751 /* confdefs.h. */
35752 _ACEOF
35753 cat confdefs.h >>conftest.$ac_ext
35754 cat >>conftest.$ac_ext <<_ACEOF
35755 /* end confdefs.h. */
35756 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
35757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35758 #define wcscoll innocuous_wcscoll
35760 /* System header to define __stub macros and hopefully few prototypes,
35761 which can conflict with char wcscoll (); below.
35762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35763 <limits.h> exists even on freestanding compilers. */
35765 #ifdef __STDC__
35766 # include <limits.h>
35767 #else
35768 # include <assert.h>
35769 #endif
35771 #undef wcscoll
35773 /* Override any GCC internal prototype to avoid an error.
35774 Use char because int might match the return type of a GCC
35775 builtin and then its argument prototype would still apply. */
35776 #ifdef __cplusplus
35777 extern "C"
35778 #endif
35779 char wcscoll ();
35780 /* The GNU C library defines this for functions which it implements
35781 to always fail with ENOSYS. Some functions are actually named
35782 something starting with __ and the normal name is an alias. */
35783 #if defined __stub_wcscoll || defined __stub___wcscoll
35784 choke me
35785 #endif
35788 main ()
35790 return wcscoll ();
35792 return 0;
35794 _ACEOF
35795 rm -f conftest.$ac_objext conftest$ac_exeext
35796 if { (ac_try="$ac_link"
35797 case "(($ac_try" in
35798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35799 *) ac_try_echo=$ac_try;;
35800 esac
35801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35802 $as_echo "$ac_try_echo") >&5
35803 (eval "$ac_link") 2>conftest.er1
35804 ac_status=$?
35805 grep -v '^ *+' conftest.er1 >conftest.err
35806 rm -f conftest.er1
35807 cat conftest.err >&5
35808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); } && {
35810 test -z "$ac_c_werror_flag" ||
35811 test ! -s conftest.err
35812 } && test -s conftest$ac_exeext && {
35813 test "$cross_compiling" = yes ||
35814 $as_test_x conftest$ac_exeext
35815 }; then
35816 ac_cv_func_wcscoll=yes
35817 else
35818 $as_echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35821 ac_cv_func_wcscoll=no
35824 rm -rf conftest.dSYM
35825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35826 conftest$ac_exeext conftest.$ac_ext
35828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
35829 $as_echo "$ac_cv_func_wcscoll" >&6; }
35830 if test "x$ac_cv_func_wcscoll" = x""yes; then
35832 cat >>confdefs.h <<\_ACEOF
35833 #define HAVE_WCSCOLL /**/
35834 _ACEOF
35838 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
35839 $as_echo_n "checking for wcsdup... " >&6; }
35840 if test "${ac_cv_func_wcsdup+set}" = set; then
35841 $as_echo_n "(cached) " >&6
35842 else
35843 cat >conftest.$ac_ext <<_ACEOF
35844 /* confdefs.h. */
35845 _ACEOF
35846 cat confdefs.h >>conftest.$ac_ext
35847 cat >>conftest.$ac_ext <<_ACEOF
35848 /* end confdefs.h. */
35849 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
35850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35851 #define wcsdup innocuous_wcsdup
35853 /* System header to define __stub macros and hopefully few prototypes,
35854 which can conflict with char wcsdup (); below.
35855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35856 <limits.h> exists even on freestanding compilers. */
35858 #ifdef __STDC__
35859 # include <limits.h>
35860 #else
35861 # include <assert.h>
35862 #endif
35864 #undef wcsdup
35866 /* Override any GCC internal prototype to avoid an error.
35867 Use char because int might match the return type of a GCC
35868 builtin and then its argument prototype would still apply. */
35869 #ifdef __cplusplus
35870 extern "C"
35871 #endif
35872 char wcsdup ();
35873 /* The GNU C library defines this for functions which it implements
35874 to always fail with ENOSYS. Some functions are actually named
35875 something starting with __ and the normal name is an alias. */
35876 #if defined __stub_wcsdup || defined __stub___wcsdup
35877 choke me
35878 #endif
35881 main ()
35883 return wcsdup ();
35885 return 0;
35887 _ACEOF
35888 rm -f conftest.$ac_objext conftest$ac_exeext
35889 if { (ac_try="$ac_link"
35890 case "(($ac_try" in
35891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35892 *) ac_try_echo=$ac_try;;
35893 esac
35894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35895 $as_echo "$ac_try_echo") >&5
35896 (eval "$ac_link") 2>conftest.er1
35897 ac_status=$?
35898 grep -v '^ *+' conftest.er1 >conftest.err
35899 rm -f conftest.er1
35900 cat conftest.err >&5
35901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); } && {
35903 test -z "$ac_c_werror_flag" ||
35904 test ! -s conftest.err
35905 } && test -s conftest$ac_exeext && {
35906 test "$cross_compiling" = yes ||
35907 $as_test_x conftest$ac_exeext
35908 }; then
35909 ac_cv_func_wcsdup=yes
35910 else
35911 $as_echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35914 ac_cv_func_wcsdup=no
35917 rm -rf conftest.dSYM
35918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35919 conftest$ac_exeext conftest.$ac_ext
35921 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
35922 $as_echo "$ac_cv_func_wcsdup" >&6; }
35923 if test "x$ac_cv_func_wcsdup" = x""yes; then
35925 cat >>confdefs.h <<\_ACEOF
35926 #define HAVE_WCSDUP /**/
35927 _ACEOF
35931 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
35932 $as_echo_n "checking for wcwidth... " >&6; }
35933 if test "${ac_cv_func_wcwidth+set}" = set; then
35934 $as_echo_n "(cached) " >&6
35935 else
35936 cat >conftest.$ac_ext <<_ACEOF
35937 /* confdefs.h. */
35938 _ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h. */
35942 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
35943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35944 #define wcwidth innocuous_wcwidth
35946 /* System header to define __stub macros and hopefully few prototypes,
35947 which can conflict with char wcwidth (); below.
35948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35949 <limits.h> exists even on freestanding compilers. */
35951 #ifdef __STDC__
35952 # include <limits.h>
35953 #else
35954 # include <assert.h>
35955 #endif
35957 #undef wcwidth
35959 /* Override any GCC internal prototype to avoid an error.
35960 Use char because int might match the return type of a GCC
35961 builtin and then its argument prototype would still apply. */
35962 #ifdef __cplusplus
35963 extern "C"
35964 #endif
35965 char wcwidth ();
35966 /* The GNU C library defines this for functions which it implements
35967 to always fail with ENOSYS. Some functions are actually named
35968 something starting with __ and the normal name is an alias. */
35969 #if defined __stub_wcwidth || defined __stub___wcwidth
35970 choke me
35971 #endif
35974 main ()
35976 return wcwidth ();
35978 return 0;
35980 _ACEOF
35981 rm -f conftest.$ac_objext conftest$ac_exeext
35982 if { (ac_try="$ac_link"
35983 case "(($ac_try" in
35984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35985 *) ac_try_echo=$ac_try;;
35986 esac
35987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35988 $as_echo "$ac_try_echo") >&5
35989 (eval "$ac_link") 2>conftest.er1
35990 ac_status=$?
35991 grep -v '^ *+' conftest.er1 >conftest.err
35992 rm -f conftest.er1
35993 cat conftest.err >&5
35994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } && {
35996 test -z "$ac_c_werror_flag" ||
35997 test ! -s conftest.err
35998 } && test -s conftest$ac_exeext && {
35999 test "$cross_compiling" = yes ||
36000 $as_test_x conftest$ac_exeext
36001 }; then
36002 ac_cv_func_wcwidth=yes
36003 else
36004 $as_echo "$as_me: failed program was:" >&5
36005 sed 's/^/| /' conftest.$ac_ext >&5
36007 ac_cv_func_wcwidth=no
36010 rm -rf conftest.dSYM
36011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36012 conftest$ac_exeext conftest.$ac_ext
36014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
36015 $as_echo "$ac_cv_func_wcwidth" >&6; }
36016 if test "x$ac_cv_func_wcwidth" = x""yes; then
36018 cat >>confdefs.h <<\_ACEOF
36019 #define HAVE_WCWIDTH /**/
36020 _ACEOF
36024 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
36025 $as_echo_n "checking for wctype... " >&6; }
36026 if test "${ac_cv_func_wctype+set}" = set; then
36027 $as_echo_n "(cached) " >&6
36028 else
36029 cat >conftest.$ac_ext <<_ACEOF
36030 /* confdefs.h. */
36031 _ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h. */
36035 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
36036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36037 #define wctype innocuous_wctype
36039 /* System header to define __stub macros and hopefully few prototypes,
36040 which can conflict with char wctype (); below.
36041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36042 <limits.h> exists even on freestanding compilers. */
36044 #ifdef __STDC__
36045 # include <limits.h>
36046 #else
36047 # include <assert.h>
36048 #endif
36050 #undef wctype
36052 /* Override any GCC internal prototype to avoid an error.
36053 Use char because int might match the return type of a GCC
36054 builtin and then its argument prototype would still apply. */
36055 #ifdef __cplusplus
36056 extern "C"
36057 #endif
36058 char wctype ();
36059 /* The GNU C library defines this for functions which it implements
36060 to always fail with ENOSYS. Some functions are actually named
36061 something starting with __ and the normal name is an alias. */
36062 #if defined __stub_wctype || defined __stub___wctype
36063 choke me
36064 #endif
36067 main ()
36069 return wctype ();
36071 return 0;
36073 _ACEOF
36074 rm -f conftest.$ac_objext conftest$ac_exeext
36075 if { (ac_try="$ac_link"
36076 case "(($ac_try" in
36077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36078 *) ac_try_echo=$ac_try;;
36079 esac
36080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36081 $as_echo "$ac_try_echo") >&5
36082 (eval "$ac_link") 2>conftest.er1
36083 ac_status=$?
36084 grep -v '^ *+' conftest.er1 >conftest.err
36085 rm -f conftest.er1
36086 cat conftest.err >&5
36087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); } && {
36089 test -z "$ac_c_werror_flag" ||
36090 test ! -s conftest.err
36091 } && test -s conftest$ac_exeext && {
36092 test "$cross_compiling" = yes ||
36093 $as_test_x conftest$ac_exeext
36094 }; then
36095 ac_cv_func_wctype=yes
36096 else
36097 $as_echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36100 ac_cv_func_wctype=no
36103 rm -rf conftest.dSYM
36104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36105 conftest$ac_exeext conftest.$ac_ext
36107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
36108 $as_echo "$ac_cv_func_wctype" >&6; }
36109 if test "x$ac_cv_func_wctype" = x""yes; then
36111 cat >>confdefs.h <<\_ACEOF
36112 #define HAVE_WCTYPE /**/
36113 _ACEOF
36118 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
36119 $as_echo_n "checking for mbstate_t... " >&6; }
36120 if test "${mysql_cv_have_mbstate_t+set}" = set; then
36121 $as_echo_n "(cached) " >&6
36122 else
36123 cat >conftest.$ac_ext <<_ACEOF
36124 /* confdefs.h. */
36125 _ACEOF
36126 cat confdefs.h >>conftest.$ac_ext
36127 cat >>conftest.$ac_ext <<_ACEOF
36128 /* end confdefs.h. */
36130 #include <wchar.h>
36132 main ()
36135 mbstate_t ps;
36136 mbstate_t *psp;
36137 psp = (mbstate_t *)0;
36140 return 0;
36142 _ACEOF
36143 rm -f conftest.$ac_objext
36144 if { (ac_try="$ac_compile"
36145 case "(($ac_try" in
36146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36147 *) ac_try_echo=$ac_try;;
36148 esac
36149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36150 $as_echo "$ac_try_echo") >&5
36151 (eval "$ac_compile") 2>conftest.er1
36152 ac_status=$?
36153 grep -v '^ *+' conftest.er1 >conftest.err
36154 rm -f conftest.er1
36155 cat conftest.err >&5
36156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); } && {
36158 test -z "$ac_c_werror_flag" ||
36159 test ! -s conftest.err
36160 } && test -s conftest.$ac_objext; then
36161 mysql_cv_have_mbstate_t=yes
36162 else
36163 $as_echo "$as_me: failed program was:" >&5
36164 sed 's/^/| /' conftest.$ac_ext >&5
36166 mysql_cv_have_mbstate_t=no
36169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36171 { $as_echo "$as_me:$LINENO: result: $mysql_cv_have_mbstate_t" >&5
36172 $as_echo "$mysql_cv_have_mbstate_t" >&6; }
36173 if test $mysql_cv_have_mbstate_t = yes; then
36175 cat >>confdefs.h <<\_ACEOF
36176 #define HAVE_MBSTATE_T /**/
36177 _ACEOF
36186 for ac_func in iswlower iswupper towlower towupper iswctype
36188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36190 $as_echo_n "checking for $ac_func... " >&6; }
36191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36192 $as_echo_n "(cached) " >&6
36193 else
36194 cat >conftest.$ac_ext <<_ACEOF
36195 /* confdefs.h. */
36196 _ACEOF
36197 cat confdefs.h >>conftest.$ac_ext
36198 cat >>conftest.$ac_ext <<_ACEOF
36199 /* end confdefs.h. */
36200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36202 #define $ac_func innocuous_$ac_func
36204 /* System header to define __stub macros and hopefully few prototypes,
36205 which can conflict with char $ac_func (); below.
36206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36207 <limits.h> exists even on freestanding compilers. */
36209 #ifdef __STDC__
36210 # include <limits.h>
36211 #else
36212 # include <assert.h>
36213 #endif
36215 #undef $ac_func
36217 /* Override any GCC internal prototype to avoid an error.
36218 Use char because int might match the return type of a GCC
36219 builtin and then its argument prototype would still apply. */
36220 #ifdef __cplusplus
36221 extern "C"
36222 #endif
36223 char $ac_func ();
36224 /* The GNU C library defines this for functions which it implements
36225 to always fail with ENOSYS. Some functions are actually named
36226 something starting with __ and the normal name is an alias. */
36227 #if defined __stub_$ac_func || defined __stub___$ac_func
36228 choke me
36229 #endif
36232 main ()
36234 return $ac_func ();
36236 return 0;
36238 _ACEOF
36239 rm -f conftest.$ac_objext conftest$ac_exeext
36240 if { (ac_try="$ac_link"
36241 case "(($ac_try" in
36242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36243 *) ac_try_echo=$ac_try;;
36244 esac
36245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36246 $as_echo "$ac_try_echo") >&5
36247 (eval "$ac_link") 2>conftest.er1
36248 ac_status=$?
36249 grep -v '^ *+' conftest.er1 >conftest.err
36250 rm -f conftest.er1
36251 cat conftest.err >&5
36252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); } && {
36254 test -z "$ac_c_werror_flag" ||
36255 test ! -s conftest.err
36256 } && test -s conftest$ac_exeext && {
36257 test "$cross_compiling" = yes ||
36258 $as_test_x conftest$ac_exeext
36259 }; then
36260 eval "$as_ac_var=yes"
36261 else
36262 $as_echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36265 eval "$as_ac_var=no"
36268 rm -rf conftest.dSYM
36269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36270 conftest$ac_exeext conftest.$ac_ext
36272 ac_res=`eval 'as_val=${'$as_ac_var'}
36273 $as_echo "$as_val"'`
36274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36275 $as_echo "$ac_res" >&6; }
36276 as_val=`eval 'as_val=${'$as_ac_var'}
36277 $as_echo "$as_val"'`
36278 if test "x$as_val" = x""yes; then
36279 cat >>confdefs.h <<_ACEOF
36280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36281 _ACEOF
36284 done
36287 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
36288 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
36289 if test "${mysql_cv_langinfo_codeset+set}" = set; then
36290 $as_echo_n "(cached) " >&6
36291 else
36292 cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h. */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h. */
36298 #include <langinfo.h>
36300 main ()
36302 char* cs = nl_langinfo(CODESET);
36304 return 0;
36306 _ACEOF
36307 rm -f conftest.$ac_objext conftest$ac_exeext
36308 if { (ac_try="$ac_link"
36309 case "(($ac_try" in
36310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311 *) ac_try_echo=$ac_try;;
36312 esac
36313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36314 $as_echo "$ac_try_echo") >&5
36315 (eval "$ac_link") 2>conftest.er1
36316 ac_status=$?
36317 grep -v '^ *+' conftest.er1 >conftest.err
36318 rm -f conftest.er1
36319 cat conftest.err >&5
36320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); } && {
36322 test -z "$ac_c_werror_flag" ||
36323 test ! -s conftest.err
36324 } && test -s conftest$ac_exeext && {
36325 test "$cross_compiling" = yes ||
36326 $as_test_x conftest$ac_exeext
36327 }; then
36328 mysql_cv_langinfo_codeset=yes
36329 else
36330 $as_echo "$as_me: failed program was:" >&5
36331 sed 's/^/| /' conftest.$ac_ext >&5
36333 mysql_cv_langinfo_codeset=no
36336 rm -rf conftest.dSYM
36337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36338 conftest$ac_exeext conftest.$ac_ext
36340 { $as_echo "$as_me:$LINENO: result: $mysql_cv_langinfo_codeset" >&5
36341 $as_echo "$mysql_cv_langinfo_codeset" >&6; }
36342 if test $mysql_cv_langinfo_codeset = yes; then
36344 cat >>confdefs.h <<\_ACEOF
36345 #define HAVE_LANGINFO_CODESET /**/
36346 _ACEOF
36350 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
36351 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
36352 if test "${bash_cv_type_wchar_t+set}" = set; then
36353 $as_echo_n "(cached) " >&6
36354 else
36355 cat >conftest.$ac_ext <<_ACEOF
36356 /* confdefs.h. */
36357 _ACEOF
36358 cat confdefs.h >>conftest.$ac_ext
36359 cat >>conftest.$ac_ext <<_ACEOF
36360 /* end confdefs.h. */
36361 #include <wchar.h>
36364 main ()
36367 wchar_t foo;
36368 foo = 0;
36371 return 0;
36373 _ACEOF
36374 rm -f conftest.$ac_objext
36375 if { (ac_try="$ac_compile"
36376 case "(($ac_try" in
36377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378 *) ac_try_echo=$ac_try;;
36379 esac
36380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36381 $as_echo "$ac_try_echo") >&5
36382 (eval "$ac_compile") 2>conftest.er1
36383 ac_status=$?
36384 grep -v '^ *+' conftest.er1 >conftest.err
36385 rm -f conftest.er1
36386 cat conftest.err >&5
36387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } && {
36389 test -z "$ac_c_werror_flag" ||
36390 test ! -s conftest.err
36391 } && test -s conftest.$ac_objext; then
36392 bash_cv_type_wchar_t=yes
36393 else
36394 $as_echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36397 bash_cv_type_wchar_t=no
36400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36402 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
36403 $as_echo "$bash_cv_type_wchar_t" >&6; }
36404 if test $bash_cv_type_wchar_t = yes; then
36406 cat >>confdefs.h <<\_ACEOF
36407 #define HAVE_WCHAR_T 1
36408 _ACEOF
36412 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
36413 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
36414 if test "${bash_cv_type_wctype_t+set}" = set; then
36415 $as_echo_n "(cached) " >&6
36416 else
36417 cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h. */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h. */
36423 #include <wctype.h>
36425 main ()
36428 wctype_t foo;
36429 foo = 0;
36432 return 0;
36434 _ACEOF
36435 rm -f conftest.$ac_objext
36436 if { (ac_try="$ac_compile"
36437 case "(($ac_try" in
36438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36439 *) ac_try_echo=$ac_try;;
36440 esac
36441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36442 $as_echo "$ac_try_echo") >&5
36443 (eval "$ac_compile") 2>conftest.er1
36444 ac_status=$?
36445 grep -v '^ *+' conftest.er1 >conftest.err
36446 rm -f conftest.er1
36447 cat conftest.err >&5
36448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); } && {
36450 test -z "$ac_c_werror_flag" ||
36451 test ! -s conftest.err
36452 } && test -s conftest.$ac_objext; then
36453 bash_cv_type_wctype_t=yes
36454 else
36455 $as_echo "$as_me: failed program was:" >&5
36456 sed 's/^/| /' conftest.$ac_ext >&5
36458 bash_cv_type_wctype_t=no
36461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36463 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
36464 $as_echo "$bash_cv_type_wctype_t" >&6; }
36465 if test $bash_cv_type_wctype_t = yes; then
36467 cat >>confdefs.h <<\_ACEOF
36468 #define HAVE_WCTYPE_T 1
36469 _ACEOF
36473 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
36474 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
36475 if test "${bash_cv_type_wint_t+set}" = set; then
36476 $as_echo_n "(cached) " >&6
36477 else
36478 cat >conftest.$ac_ext <<_ACEOF
36479 /* confdefs.h. */
36480 _ACEOF
36481 cat confdefs.h >>conftest.$ac_ext
36482 cat >>conftest.$ac_ext <<_ACEOF
36483 /* end confdefs.h. */
36484 #include <wctype.h>
36486 main ()
36489 wint_t foo;
36490 foo = 0;
36493 return 0;
36495 _ACEOF
36496 rm -f conftest.$ac_objext
36497 if { (ac_try="$ac_compile"
36498 case "(($ac_try" in
36499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36500 *) ac_try_echo=$ac_try;;
36501 esac
36502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36503 $as_echo "$ac_try_echo") >&5
36504 (eval "$ac_compile") 2>conftest.er1
36505 ac_status=$?
36506 grep -v '^ *+' conftest.er1 >conftest.err
36507 rm -f conftest.er1
36508 cat conftest.err >&5
36509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); } && {
36511 test -z "$ac_c_werror_flag" ||
36512 test ! -s conftest.err
36513 } && test -s conftest.$ac_objext; then
36514 bash_cv_type_wint_t=yes
36515 else
36516 $as_echo "$as_me: failed program was:" >&5
36517 sed 's/^/| /' conftest.$ac_ext >&5
36519 bash_cv_type_wint_t=no
36522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36524 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
36525 $as_echo "$bash_cv_type_wint_t" >&6; }
36526 if test $bash_cv_type_wint_t = yes; then
36528 cat >>confdefs.h <<\_ACEOF
36529 #define HAVE_WINT_T 1
36530 _ACEOF
36535 if test "$with_named_curses" = "no"
36536 then
36538 if test "${mysql_cv_termcap_lib+set}" = set; then
36539 $as_echo_n "(cached) " >&6
36540 else
36541 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncursesw" >&5
36542 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
36543 if test "${ac_cv_lib_ncursesw_tgetent+set}" = set; then
36544 $as_echo_n "(cached) " >&6
36545 else
36546 ac_check_lib_save_LIBS=$LIBS
36547 LIBS="-lncursesw $LIBS"
36548 cat >conftest.$ac_ext <<_ACEOF
36549 /* confdefs.h. */
36550 _ACEOF
36551 cat confdefs.h >>conftest.$ac_ext
36552 cat >>conftest.$ac_ext <<_ACEOF
36553 /* end confdefs.h. */
36555 /* Override any GCC internal prototype to avoid an error.
36556 Use char because int might match the return type of a GCC
36557 builtin and then its argument prototype would still apply. */
36558 #ifdef __cplusplus
36559 extern "C"
36560 #endif
36561 char tgetent ();
36563 main ()
36565 return tgetent ();
36567 return 0;
36569 _ACEOF
36570 rm -f conftest.$ac_objext conftest$ac_exeext
36571 if { (ac_try="$ac_link"
36572 case "(($ac_try" in
36573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36574 *) ac_try_echo=$ac_try;;
36575 esac
36576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36577 $as_echo "$ac_try_echo") >&5
36578 (eval "$ac_link") 2>conftest.er1
36579 ac_status=$?
36580 grep -v '^ *+' conftest.er1 >conftest.err
36581 rm -f conftest.er1
36582 cat conftest.err >&5
36583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584 (exit $ac_status); } && {
36585 test -z "$ac_c_werror_flag" ||
36586 test ! -s conftest.err
36587 } && test -s conftest$ac_exeext && {
36588 test "$cross_compiling" = yes ||
36589 $as_test_x conftest$ac_exeext
36590 }; then
36591 ac_cv_lib_ncursesw_tgetent=yes
36592 else
36593 $as_echo "$as_me: failed program was:" >&5
36594 sed 's/^/| /' conftest.$ac_ext >&5
36596 ac_cv_lib_ncursesw_tgetent=no
36599 rm -rf conftest.dSYM
36600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36601 conftest$ac_exeext conftest.$ac_ext
36602 LIBS=$ac_check_lib_save_LIBS
36604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_tgetent" >&5
36605 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
36606 if test "x$ac_cv_lib_ncursesw_tgetent" = x""yes; then
36607 mysql_cv_termcap_lib=libncursesw
36608 else
36609 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
36610 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
36611 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
36612 $as_echo_n "(cached) " >&6
36613 else
36614 ac_check_lib_save_LIBS=$LIBS
36615 LIBS="-lncurses $LIBS"
36616 cat >conftest.$ac_ext <<_ACEOF
36617 /* confdefs.h. */
36618 _ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h. */
36623 /* Override any GCC internal prototype to avoid an error.
36624 Use char because int might match the return type of a GCC
36625 builtin and then its argument prototype would still apply. */
36626 #ifdef __cplusplus
36627 extern "C"
36628 #endif
36629 char tgetent ();
36631 main ()
36633 return tgetent ();
36635 return 0;
36637 _ACEOF
36638 rm -f conftest.$ac_objext conftest$ac_exeext
36639 if { (ac_try="$ac_link"
36640 case "(($ac_try" in
36641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36642 *) ac_try_echo=$ac_try;;
36643 esac
36644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36645 $as_echo "$ac_try_echo") >&5
36646 (eval "$ac_link") 2>conftest.er1
36647 ac_status=$?
36648 grep -v '^ *+' conftest.er1 >conftest.err
36649 rm -f conftest.er1
36650 cat conftest.err >&5
36651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); } && {
36653 test -z "$ac_c_werror_flag" ||
36654 test ! -s conftest.err
36655 } && test -s conftest$ac_exeext && {
36656 test "$cross_compiling" = yes ||
36657 $as_test_x conftest$ac_exeext
36658 }; then
36659 ac_cv_lib_ncurses_tgetent=yes
36660 else
36661 $as_echo "$as_me: failed program was:" >&5
36662 sed 's/^/| /' conftest.$ac_ext >&5
36664 ac_cv_lib_ncurses_tgetent=no
36667 rm -rf conftest.dSYM
36668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36669 conftest$ac_exeext conftest.$ac_ext
36670 LIBS=$ac_check_lib_save_LIBS
36672 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
36673 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
36674 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
36675 mysql_cv_termcap_lib=libncurses
36676 else
36677 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
36678 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
36679 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
36680 $as_echo_n "(cached) " >&6
36681 else
36682 ac_check_lib_save_LIBS=$LIBS
36683 LIBS="-lcurses $LIBS"
36684 cat >conftest.$ac_ext <<_ACEOF
36685 /* confdefs.h. */
36686 _ACEOF
36687 cat confdefs.h >>conftest.$ac_ext
36688 cat >>conftest.$ac_ext <<_ACEOF
36689 /* end confdefs.h. */
36691 /* Override any GCC internal prototype to avoid an error.
36692 Use char because int might match the return type of a GCC
36693 builtin and then its argument prototype would still apply. */
36694 #ifdef __cplusplus
36695 extern "C"
36696 #endif
36697 char tgetent ();
36699 main ()
36701 return tgetent ();
36703 return 0;
36705 _ACEOF
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (ac_try="$ac_link"
36708 case "(($ac_try" in
36709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710 *) ac_try_echo=$ac_try;;
36711 esac
36712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36713 $as_echo "$ac_try_echo") >&5
36714 (eval "$ac_link") 2>conftest.er1
36715 ac_status=$?
36716 grep -v '^ *+' conftest.er1 >conftest.err
36717 rm -f conftest.er1
36718 cat conftest.err >&5
36719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } && {
36721 test -z "$ac_c_werror_flag" ||
36722 test ! -s conftest.err
36723 } && test -s conftest$ac_exeext && {
36724 test "$cross_compiling" = yes ||
36725 $as_test_x conftest$ac_exeext
36726 }; then
36727 ac_cv_lib_curses_tgetent=yes
36728 else
36729 $as_echo "$as_me: failed program was:" >&5
36730 sed 's/^/| /' conftest.$ac_ext >&5
36732 ac_cv_lib_curses_tgetent=no
36735 rm -rf conftest.dSYM
36736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36737 conftest$ac_exeext conftest.$ac_ext
36738 LIBS=$ac_check_lib_save_LIBS
36740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
36741 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
36742 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
36743 mysql_cv_termcap_lib=libcurses
36744 else
36745 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
36746 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
36747 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
36748 $as_echo_n "(cached) " >&6
36749 else
36750 ac_check_lib_save_LIBS=$LIBS
36751 LIBS="-ltermcap $LIBS"
36752 cat >conftest.$ac_ext <<_ACEOF
36753 /* confdefs.h. */
36754 _ACEOF
36755 cat confdefs.h >>conftest.$ac_ext
36756 cat >>conftest.$ac_ext <<_ACEOF
36757 /* end confdefs.h. */
36759 /* Override any GCC internal prototype to avoid an error.
36760 Use char because int might match the return type of a GCC
36761 builtin and then its argument prototype would still apply. */
36762 #ifdef __cplusplus
36763 extern "C"
36764 #endif
36765 char tgetent ();
36767 main ()
36769 return tgetent ();
36771 return 0;
36773 _ACEOF
36774 rm -f conftest.$ac_objext conftest$ac_exeext
36775 if { (ac_try="$ac_link"
36776 case "(($ac_try" in
36777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36778 *) ac_try_echo=$ac_try;;
36779 esac
36780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36781 $as_echo "$ac_try_echo") >&5
36782 (eval "$ac_link") 2>conftest.er1
36783 ac_status=$?
36784 grep -v '^ *+' conftest.er1 >conftest.err
36785 rm -f conftest.er1
36786 cat conftest.err >&5
36787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); } && {
36789 test -z "$ac_c_werror_flag" ||
36790 test ! -s conftest.err
36791 } && test -s conftest$ac_exeext && {
36792 test "$cross_compiling" = yes ||
36793 $as_test_x conftest$ac_exeext
36794 }; then
36795 ac_cv_lib_termcap_tgetent=yes
36796 else
36797 $as_echo "$as_me: failed program was:" >&5
36798 sed 's/^/| /' conftest.$ac_ext >&5
36800 ac_cv_lib_termcap_tgetent=no
36803 rm -rf conftest.dSYM
36804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36805 conftest$ac_exeext conftest.$ac_ext
36806 LIBS=$ac_check_lib_save_LIBS
36808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
36809 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
36810 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
36811 mysql_cv_termcap_lib=libtermcap
36812 else
36813 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
36814 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
36815 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
36816 $as_echo_n "(cached) " >&6
36817 else
36818 ac_check_lib_save_LIBS=$LIBS
36819 LIBS="-ltinfo $LIBS"
36820 cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h. */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h. */
36827 /* Override any GCC internal prototype to avoid an error.
36828 Use char because int might match the return type of a GCC
36829 builtin and then its argument prototype would still apply. */
36830 #ifdef __cplusplus
36831 extern "C"
36832 #endif
36833 char tgetent ();
36835 main ()
36837 return tgetent ();
36839 return 0;
36841 _ACEOF
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (ac_try="$ac_link"
36844 case "(($ac_try" in
36845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846 *) ac_try_echo=$ac_try;;
36847 esac
36848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36849 $as_echo "$ac_try_echo") >&5
36850 (eval "$ac_link") 2>conftest.er1
36851 ac_status=$?
36852 grep -v '^ *+' conftest.er1 >conftest.err
36853 rm -f conftest.er1
36854 cat conftest.err >&5
36855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); } && {
36857 test -z "$ac_c_werror_flag" ||
36858 test ! -s conftest.err
36859 } && test -s conftest$ac_exeext && {
36860 test "$cross_compiling" = yes ||
36861 $as_test_x conftest$ac_exeext
36862 }; then
36863 ac_cv_lib_tinfo_tgetent=yes
36864 else
36865 $as_echo "$as_me: failed program was:" >&5
36866 sed 's/^/| /' conftest.$ac_ext >&5
36868 ac_cv_lib_tinfo_tgetent=no
36871 rm -rf conftest.dSYM
36872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36873 conftest$ac_exeext conftest.$ac_ext
36874 LIBS=$ac_check_lib_save_LIBS
36876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
36877 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
36878 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
36879 mysql_cv_termcap_lib=libtinfo
36880 else
36881 mysql_cv_termcap_lib=NOT_FOUND
36894 { $as_echo "$as_me:$LINENO: checking for termcap functions library" >&5
36895 $as_echo_n "checking for termcap functions library... " >&6; }
36896 if test "$mysql_cv_termcap_lib" = "NOT_FOUND"; then
36897 { { $as_echo "$as_me:$LINENO: error: No curses/termcap library found" >&5
36898 $as_echo "$as_me: error: No curses/termcap library found" >&2;}
36899 { (exit 1); exit 1; }; }
36900 elif test "$mysql_cv_termcap_lib" = "libtermcap"; then
36901 TERMCAP_LIB=-ltermcap
36902 elif test "$mysql_cv_termcap_lib" = "libncursesw"; then
36903 TERMCAP_LIB=-lncursesw
36904 elif test "$mysql_cv_termcap_lib" = "libncurses"; then
36905 TERMCAP_LIB=-lncurses
36906 elif test "$mysql_cv_termcap_lib" = "libtinfo"; then
36907 TERMCAP_LIB=-ltinfo
36908 else
36909 TERMCAP_LIB=-lcurses
36911 { $as_echo "$as_me:$LINENO: result: $TERMCAP_LIB" >&5
36912 $as_echo "$TERMCAP_LIB" >&6; }
36914 else
36915 TERMCAP_LIB="$with_named_curses"
36919 # Check if the termcap function 'tgoto' is already declared in
36920 # system header files or if it need to be declared locally
36921 { $as_echo "$as_me:$LINENO: checking whether tgoto is declared" >&5
36922 $as_echo_n "checking whether tgoto is declared... " >&6; }
36923 if test "${ac_cv_have_decl_tgoto+set}" = set; then
36924 $as_echo_n "(cached) " >&6
36925 else
36926 cat >conftest.$ac_ext <<_ACEOF
36927 /* confdefs.h. */
36928 _ACEOF
36929 cat confdefs.h >>conftest.$ac_ext
36930 cat >>conftest.$ac_ext <<_ACEOF
36931 /* end confdefs.h. */
36933 #ifdef HAVE_CURSES_H
36934 # include <curses.h>
36935 #elif HAVE_NCURSES_H
36936 # include <ncurses.h>
36937 #endif
36938 #ifdef HAVE_TERM_H
36939 # include <term.h>
36940 #endif
36944 main ()
36946 #ifndef tgoto
36947 (void) tgoto;
36948 #endif
36951 return 0;
36953 _ACEOF
36954 rm -f conftest.$ac_objext
36955 if { (ac_try="$ac_compile"
36956 case "(($ac_try" in
36957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958 *) ac_try_echo=$ac_try;;
36959 esac
36960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36961 $as_echo "$ac_try_echo") >&5
36962 (eval "$ac_compile") 2>conftest.er1
36963 ac_status=$?
36964 grep -v '^ *+' conftest.er1 >conftest.err
36965 rm -f conftest.er1
36966 cat conftest.err >&5
36967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } && {
36969 test -z "$ac_c_werror_flag" ||
36970 test ! -s conftest.err
36971 } && test -s conftest.$ac_objext; then
36972 ac_cv_have_decl_tgoto=yes
36973 else
36974 $as_echo "$as_me: failed program was:" >&5
36975 sed 's/^/| /' conftest.$ac_ext >&5
36977 ac_cv_have_decl_tgoto=no
36980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36982 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgoto" >&5
36983 $as_echo "$ac_cv_have_decl_tgoto" >&6; }
36984 if test "x$ac_cv_have_decl_tgoto" = x""yes; then
36986 cat >>confdefs.h <<_ACEOF
36987 #define HAVE_DECL_TGOTO 1
36988 _ACEOF
36991 else
36992 cat >>confdefs.h <<_ACEOF
36993 #define HAVE_DECL_TGOTO 0
36994 _ACEOF
37001 LIBEDIT_LOBJECTS=""
37002 { $as_echo "$as_me:$LINENO: checking for strunvis" >&5
37003 $as_echo_n "checking for strunvis... " >&6; }
37004 if test "${ac_cv_func_strunvis+set}" = set; then
37005 $as_echo_n "(cached) " >&6
37006 else
37007 cat >conftest.$ac_ext <<_ACEOF
37008 /* confdefs.h. */
37009 _ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h. */
37013 /* Define strunvis to an innocuous variant, in case <limits.h> declares strunvis.
37014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37015 #define strunvis innocuous_strunvis
37017 /* System header to define __stub macros and hopefully few prototypes,
37018 which can conflict with char strunvis (); below.
37019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37020 <limits.h> exists even on freestanding compilers. */
37022 #ifdef __STDC__
37023 # include <limits.h>
37024 #else
37025 # include <assert.h>
37026 #endif
37028 #undef strunvis
37030 /* Override any GCC internal prototype to avoid an error.
37031 Use char because int might match the return type of a GCC
37032 builtin and then its argument prototype would still apply. */
37033 #ifdef __cplusplus
37034 extern "C"
37035 #endif
37036 char strunvis ();
37037 /* The GNU C library defines this for functions which it implements
37038 to always fail with ENOSYS. Some functions are actually named
37039 something starting with __ and the normal name is an alias. */
37040 #if defined __stub_strunvis || defined __stub___strunvis
37041 choke me
37042 #endif
37045 main ()
37047 return strunvis ();
37049 return 0;
37051 _ACEOF
37052 rm -f conftest.$ac_objext conftest$ac_exeext
37053 if { (ac_try="$ac_link"
37054 case "(($ac_try" in
37055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37056 *) ac_try_echo=$ac_try;;
37057 esac
37058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37059 $as_echo "$ac_try_echo") >&5
37060 (eval "$ac_link") 2>conftest.er1
37061 ac_status=$?
37062 grep -v '^ *+' conftest.er1 >conftest.err
37063 rm -f conftest.er1
37064 cat conftest.err >&5
37065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); } && {
37067 test -z "$ac_c_werror_flag" ||
37068 test ! -s conftest.err
37069 } && test -s conftest$ac_exeext && {
37070 test "$cross_compiling" = yes ||
37071 $as_test_x conftest$ac_exeext
37072 }; then
37073 ac_cv_func_strunvis=yes
37074 else
37075 $as_echo "$as_me: failed program was:" >&5
37076 sed 's/^/| /' conftest.$ac_ext >&5
37078 ac_cv_func_strunvis=no
37081 rm -rf conftest.dSYM
37082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37083 conftest$ac_exeext conftest.$ac_ext
37085 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strunvis" >&5
37086 $as_echo "$ac_cv_func_strunvis" >&6; }
37087 if test "x$ac_cv_func_strunvis" = x""yes; then
37089 else
37090 LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS unvis.o"
37093 { $as_echo "$as_me:$LINENO: checking for strvis" >&5
37094 $as_echo_n "checking for strvis... " >&6; }
37095 if test "${ac_cv_func_strvis+set}" = set; then
37096 $as_echo_n "(cached) " >&6
37097 else
37098 cat >conftest.$ac_ext <<_ACEOF
37099 /* confdefs.h. */
37100 _ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h. */
37104 /* Define strvis to an innocuous variant, in case <limits.h> declares strvis.
37105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37106 #define strvis innocuous_strvis
37108 /* System header to define __stub macros and hopefully few prototypes,
37109 which can conflict with char strvis (); below.
37110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37111 <limits.h> exists even on freestanding compilers. */
37113 #ifdef __STDC__
37114 # include <limits.h>
37115 #else
37116 # include <assert.h>
37117 #endif
37119 #undef strvis
37121 /* Override any GCC internal prototype to avoid an error.
37122 Use char because int might match the return type of a GCC
37123 builtin and then its argument prototype would still apply. */
37124 #ifdef __cplusplus
37125 extern "C"
37126 #endif
37127 char strvis ();
37128 /* The GNU C library defines this for functions which it implements
37129 to always fail with ENOSYS. Some functions are actually named
37130 something starting with __ and the normal name is an alias. */
37131 #if defined __stub_strvis || defined __stub___strvis
37132 choke me
37133 #endif
37136 main ()
37138 return strvis ();
37140 return 0;
37142 _ACEOF
37143 rm -f conftest.$ac_objext conftest$ac_exeext
37144 if { (ac_try="$ac_link"
37145 case "(($ac_try" in
37146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147 *) ac_try_echo=$ac_try;;
37148 esac
37149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37150 $as_echo "$ac_try_echo") >&5
37151 (eval "$ac_link") 2>conftest.er1
37152 ac_status=$?
37153 grep -v '^ *+' conftest.er1 >conftest.err
37154 rm -f conftest.er1
37155 cat conftest.err >&5
37156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); } && {
37158 test -z "$ac_c_werror_flag" ||
37159 test ! -s conftest.err
37160 } && test -s conftest$ac_exeext && {
37161 test "$cross_compiling" = yes ||
37162 $as_test_x conftest$ac_exeext
37163 }; then
37164 ac_cv_func_strvis=yes
37165 else
37166 $as_echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37169 ac_cv_func_strvis=no
37172 rm -rf conftest.dSYM
37173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37174 conftest$ac_exeext conftest.$ac_ext
37176 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strvis" >&5
37177 $as_echo "$ac_cv_func_strvis" >&6; }
37178 if test "x$ac_cv_func_strvis" = x""yes; then
37180 else
37181 LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS vis.o"
37184 { $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
37185 $as_echo_n "checking for strlcpy... " >&6; }
37186 if test "${ac_cv_func_strlcpy+set}" = set; then
37187 $as_echo_n "(cached) " >&6
37188 else
37189 cat >conftest.$ac_ext <<_ACEOF
37190 /* confdefs.h. */
37191 _ACEOF
37192 cat confdefs.h >>conftest.$ac_ext
37193 cat >>conftest.$ac_ext <<_ACEOF
37194 /* end confdefs.h. */
37195 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
37196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37197 #define strlcpy innocuous_strlcpy
37199 /* System header to define __stub macros and hopefully few prototypes,
37200 which can conflict with char strlcpy (); below.
37201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37202 <limits.h> exists even on freestanding compilers. */
37204 #ifdef __STDC__
37205 # include <limits.h>
37206 #else
37207 # include <assert.h>
37208 #endif
37210 #undef strlcpy
37212 /* Override any GCC internal prototype to avoid an error.
37213 Use char because int might match the return type of a GCC
37214 builtin and then its argument prototype would still apply. */
37215 #ifdef __cplusplus
37216 extern "C"
37217 #endif
37218 char strlcpy ();
37219 /* The GNU C library defines this for functions which it implements
37220 to always fail with ENOSYS. Some functions are actually named
37221 something starting with __ and the normal name is an alias. */
37222 #if defined __stub_strlcpy || defined __stub___strlcpy
37223 choke me
37224 #endif
37227 main ()
37229 return strlcpy ();
37231 return 0;
37233 _ACEOF
37234 rm -f conftest.$ac_objext conftest$ac_exeext
37235 if { (ac_try="$ac_link"
37236 case "(($ac_try" in
37237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37238 *) ac_try_echo=$ac_try;;
37239 esac
37240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37241 $as_echo "$ac_try_echo") >&5
37242 (eval "$ac_link") 2>conftest.er1
37243 ac_status=$?
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
37247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } && {
37249 test -z "$ac_c_werror_flag" ||
37250 test ! -s conftest.err
37251 } && test -s conftest$ac_exeext && {
37252 test "$cross_compiling" = yes ||
37253 $as_test_x conftest$ac_exeext
37254 }; then
37255 ac_cv_func_strlcpy=yes
37256 else
37257 $as_echo "$as_me: failed program was:" >&5
37258 sed 's/^/| /' conftest.$ac_ext >&5
37260 ac_cv_func_strlcpy=no
37263 rm -rf conftest.dSYM
37264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37265 conftest$ac_exeext conftest.$ac_ext
37267 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
37268 $as_echo "$ac_cv_func_strlcpy" >&6; }
37269 if test "x$ac_cv_func_strlcpy" = x""yes; then
37271 else
37272 LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS strlcpy.o"
37275 { $as_echo "$as_me:$LINENO: checking for strlcat" >&5
37276 $as_echo_n "checking for strlcat... " >&6; }
37277 if test "${ac_cv_func_strlcat+set}" = set; then
37278 $as_echo_n "(cached) " >&6
37279 else
37280 cat >conftest.$ac_ext <<_ACEOF
37281 /* confdefs.h. */
37282 _ACEOF
37283 cat confdefs.h >>conftest.$ac_ext
37284 cat >>conftest.$ac_ext <<_ACEOF
37285 /* end confdefs.h. */
37286 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
37287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37288 #define strlcat innocuous_strlcat
37290 /* System header to define __stub macros and hopefully few prototypes,
37291 which can conflict with char strlcat (); below.
37292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37293 <limits.h> exists even on freestanding compilers. */
37295 #ifdef __STDC__
37296 # include <limits.h>
37297 #else
37298 # include <assert.h>
37299 #endif
37301 #undef strlcat
37303 /* Override any GCC internal prototype to avoid an error.
37304 Use char because int might match the return type of a GCC
37305 builtin and then its argument prototype would still apply. */
37306 #ifdef __cplusplus
37307 extern "C"
37308 #endif
37309 char strlcat ();
37310 /* The GNU C library defines this for functions which it implements
37311 to always fail with ENOSYS. Some functions are actually named
37312 something starting with __ and the normal name is an alias. */
37313 #if defined __stub_strlcat || defined __stub___strlcat
37314 choke me
37315 #endif
37318 main ()
37320 return strlcat ();
37322 return 0;
37324 _ACEOF
37325 rm -f conftest.$ac_objext conftest$ac_exeext
37326 if { (ac_try="$ac_link"
37327 case "(($ac_try" in
37328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37329 *) ac_try_echo=$ac_try;;
37330 esac
37331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37332 $as_echo "$ac_try_echo") >&5
37333 (eval "$ac_link") 2>conftest.er1
37334 ac_status=$?
37335 grep -v '^ *+' conftest.er1 >conftest.err
37336 rm -f conftest.er1
37337 cat conftest.err >&5
37338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); } && {
37340 test -z "$ac_c_werror_flag" ||
37341 test ! -s conftest.err
37342 } && test -s conftest$ac_exeext && {
37343 test "$cross_compiling" = yes ||
37344 $as_test_x conftest$ac_exeext
37345 }; then
37346 ac_cv_func_strlcat=yes
37347 else
37348 $as_echo "$as_me: failed program was:" >&5
37349 sed 's/^/| /' conftest.$ac_ext >&5
37351 ac_cv_func_strlcat=no
37354 rm -rf conftest.dSYM
37355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37356 conftest$ac_exeext conftest.$ac_ext
37358 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
37359 $as_echo "$ac_cv_func_strlcat" >&6; }
37360 if test "x$ac_cv_func_strlcat" = x""yes; then
37362 else
37363 LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS strlcat.o"
37366 { $as_echo "$as_me:$LINENO: checking for fgetln" >&5
37367 $as_echo_n "checking for fgetln... " >&6; }
37368 if test "${ac_cv_func_fgetln+set}" = set; then
37369 $as_echo_n "(cached) " >&6
37370 else
37371 cat >conftest.$ac_ext <<_ACEOF
37372 /* confdefs.h. */
37373 _ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h. */
37377 /* Define fgetln to an innocuous variant, in case <limits.h> declares fgetln.
37378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37379 #define fgetln innocuous_fgetln
37381 /* System header to define __stub macros and hopefully few prototypes,
37382 which can conflict with char fgetln (); below.
37383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37384 <limits.h> exists even on freestanding compilers. */
37386 #ifdef __STDC__
37387 # include <limits.h>
37388 #else
37389 # include <assert.h>
37390 #endif
37392 #undef fgetln
37394 /* Override any GCC internal prototype to avoid an error.
37395 Use char because int might match the return type of a GCC
37396 builtin and then its argument prototype would still apply. */
37397 #ifdef __cplusplus
37398 extern "C"
37399 #endif
37400 char fgetln ();
37401 /* The GNU C library defines this for functions which it implements
37402 to always fail with ENOSYS. Some functions are actually named
37403 something starting with __ and the normal name is an alias. */
37404 #if defined __stub_fgetln || defined __stub___fgetln
37405 choke me
37406 #endif
37409 main ()
37411 return fgetln ();
37413 return 0;
37415 _ACEOF
37416 rm -f conftest.$ac_objext conftest$ac_exeext
37417 if { (ac_try="$ac_link"
37418 case "(($ac_try" in
37419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37420 *) ac_try_echo=$ac_try;;
37421 esac
37422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37423 $as_echo "$ac_try_echo") >&5
37424 (eval "$ac_link") 2>conftest.er1
37425 ac_status=$?
37426 grep -v '^ *+' conftest.er1 >conftest.err
37427 rm -f conftest.er1
37428 cat conftest.err >&5
37429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); } && {
37431 test -z "$ac_c_werror_flag" ||
37432 test ! -s conftest.err
37433 } && test -s conftest$ac_exeext && {
37434 test "$cross_compiling" = yes ||
37435 $as_test_x conftest$ac_exeext
37436 }; then
37437 ac_cv_func_fgetln=yes
37438 else
37439 $as_echo "$as_me: failed program was:" >&5
37440 sed 's/^/| /' conftest.$ac_ext >&5
37442 ac_cv_func_fgetln=no
37445 rm -rf conftest.dSYM
37446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37447 conftest$ac_exeext conftest.$ac_ext
37449 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fgetln" >&5
37450 $as_echo "$ac_cv_func_fgetln" >&6; }
37451 if test "x$ac_cv_func_fgetln" = x""yes; then
37453 else
37454 LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS fgetln.o"
37458 enable_readline="yes"
37460 # End of readline/libedit stuff
37461 #########################################################################
37465 # The following code disables intrinsic function support while we test for
37466 # library functions. This is to avoid configure problems with Intel ecc
37467 # compiler
37469 ORG_CFLAGS="$CFLAGS"
37470 if test "$GCC" != "yes"; then
37472 { $as_echo "$as_me:$LINENO: checking -nolib_inline" >&5
37473 $as_echo_n "checking -nolib_inline... " >&6; }
37474 OLD_CFLAGS="$CFLAGS"
37475 if test "${mysql_cv_option_nolib_inline+set}" = set; then
37476 $as_echo_n "(cached) " >&6
37477 else
37479 CFLAGS="$OLD_CFLAGS -nolib_inline"
37480 cat >conftest.$ac_ext <<_ACEOF
37481 /* confdefs.h. */
37482 _ACEOF
37483 cat confdefs.h >>conftest.$ac_ext
37484 cat >>conftest.$ac_ext <<_ACEOF
37485 /* end confdefs.h. */
37486 int main(){exit(0);}
37488 main ()
37490 mysql_cv_option_nolib_inline=yes
37492 return 0;
37494 _ACEOF
37495 rm -f conftest.$ac_objext conftest$ac_exeext
37496 if { (ac_try="$ac_link"
37497 case "(($ac_try" in
37498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499 *) ac_try_echo=$ac_try;;
37500 esac
37501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37502 $as_echo "$ac_try_echo") >&5
37503 (eval "$ac_link") 2>conftest.er1
37504 ac_status=$?
37505 grep -v '^ *+' conftest.er1 >conftest.err
37506 rm -f conftest.er1
37507 cat conftest.err >&5
37508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); } && {
37510 test -z "$ac_c_werror_flag" ||
37511 test ! -s conftest.err
37512 } && test -s conftest$ac_exeext && {
37513 test "$cross_compiling" = yes ||
37514 $as_test_x conftest$ac_exeext
37515 }; then
37516 mysql_cv_option_nolib_inline=no
37517 else
37518 $as_echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37521 mysql_cv_option_nolib_inline=no
37524 rm -rf conftest.dSYM
37525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37526 conftest$ac_exeext conftest.$ac_ext
37531 CFLAGS="$OLD_CFLAGS"
37533 if test x"$mysql_cv_option_nolib_inline" = "xyes" ; then
37534 CFLAGS="$CFLAGS -nolib_inline"
37535 { $as_echo "$as_me:$LINENO: result: yes" >&5
37536 $as_echo "yes" >&6; }
37538 else
37539 { $as_echo "$as_me:$LINENO: result: no" >&5
37540 $as_echo "no" >&6; }
37546 #AC_FUNC_MMAP
37547 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37548 $as_echo_n "checking return type of signal handlers... " >&6; }
37549 if test "${ac_cv_type_signal+set}" = set; then
37550 $as_echo_n "(cached) " >&6
37551 else
37552 cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h. */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h. */
37558 #include <sys/types.h>
37559 #include <signal.h>
37562 main ()
37564 return *(signal (0, 0)) (0) == 1;
37566 return 0;
37568 _ACEOF
37569 rm -f conftest.$ac_objext
37570 if { (ac_try="$ac_compile"
37571 case "(($ac_try" in
37572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37573 *) ac_try_echo=$ac_try;;
37574 esac
37575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37576 $as_echo "$ac_try_echo") >&5
37577 (eval "$ac_compile") 2>conftest.er1
37578 ac_status=$?
37579 grep -v '^ *+' conftest.er1 >conftest.err
37580 rm -f conftest.er1
37581 cat conftest.err >&5
37582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); } && {
37584 test -z "$ac_c_werror_flag" ||
37585 test ! -s conftest.err
37586 } && test -s conftest.$ac_objext; then
37587 ac_cv_type_signal=int
37588 else
37589 $as_echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37592 ac_cv_type_signal=void
37595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37598 $as_echo "$ac_cv_type_signal" >&6; }
37600 cat >>confdefs.h <<_ACEOF
37601 #define RETSIGTYPE $ac_cv_type_signal
37602 _ACEOF
37605 { $as_echo "$as_me:$LINENO: checking return type of qsort" >&5
37606 $as_echo_n "checking return type of qsort... " >&6; }
37607 if test "${mysql_cv_type_qsort+set}" = set; then
37608 $as_echo_n "(cached) " >&6
37609 else
37610 cat >conftest.$ac_ext <<_ACEOF
37611 /* confdefs.h. */
37612 _ACEOF
37613 cat confdefs.h >>conftest.$ac_ext
37614 cat >>conftest.$ac_ext <<_ACEOF
37615 /* end confdefs.h. */
37616 #include <stdlib.h>
37617 #ifdef __cplusplus
37618 extern "C"
37619 #endif
37620 void qsort(void *base, size_t nel, size_t width,
37621 int (*compar) (const void *, const void *));
37624 main ()
37626 int i;
37628 return 0;
37630 _ACEOF
37631 rm -f conftest.$ac_objext
37632 if { (ac_try="$ac_compile"
37633 case "(($ac_try" in
37634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37635 *) ac_try_echo=$ac_try;;
37636 esac
37637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37638 $as_echo "$ac_try_echo") >&5
37639 (eval "$ac_compile") 2>conftest.er1
37640 ac_status=$?
37641 grep -v '^ *+' conftest.er1 >conftest.err
37642 rm -f conftest.er1
37643 cat conftest.err >&5
37644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } && {
37646 test -z "$ac_c_werror_flag" ||
37647 test ! -s conftest.err
37648 } && test -s conftest.$ac_objext; then
37649 mysql_cv_type_qsort=void
37650 else
37651 $as_echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37654 mysql_cv_type_qsort=int
37657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37659 { $as_echo "$as_me:$LINENO: result: $mysql_cv_type_qsort" >&5
37660 $as_echo "$mysql_cv_type_qsort" >&6; }
37662 cat >>confdefs.h <<_ACEOF
37663 #define RETQSORTTYPE $mysql_cv_type_qsort
37664 _ACEOF
37666 if test "$mysql_cv_type_qsort" = "void"
37667 then
37669 cat >>confdefs.h <<_ACEOF
37670 #define QSORT_TYPE_IS_VOID 1
37671 _ACEOF
37679 for ac_header in $ac_header_list
37681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37684 $as_echo_n "checking for $ac_header... " >&6; }
37685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37686 $as_echo_n "(cached) " >&6
37688 ac_res=`eval 'as_val=${'$as_ac_Header'}
37689 $as_echo "$as_val"'`
37690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37691 $as_echo "$ac_res" >&6; }
37692 else
37693 # Is the header compilable?
37694 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37695 $as_echo_n "checking $ac_header usability... " >&6; }
37696 cat >conftest.$ac_ext <<_ACEOF
37697 /* confdefs.h. */
37698 _ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702 $ac_includes_default
37703 #include <$ac_header>
37704 _ACEOF
37705 rm -f conftest.$ac_objext
37706 if { (ac_try="$ac_compile"
37707 case "(($ac_try" in
37708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709 *) ac_try_echo=$ac_try;;
37710 esac
37711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37712 $as_echo "$ac_try_echo") >&5
37713 (eval "$ac_compile") 2>conftest.er1
37714 ac_status=$?
37715 grep -v '^ *+' conftest.er1 >conftest.err
37716 rm -f conftest.er1
37717 cat conftest.err >&5
37718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } && {
37720 test -z "$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37722 } && test -s conftest.$ac_objext; then
37723 ac_header_compiler=yes
37724 else
37725 $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37728 ac_header_compiler=no
37731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37733 $as_echo "$ac_header_compiler" >&6; }
37735 # Is the header present?
37736 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37737 $as_echo_n "checking $ac_header presence... " >&6; }
37738 cat >conftest.$ac_ext <<_ACEOF
37739 /* confdefs.h. */
37740 _ACEOF
37741 cat confdefs.h >>conftest.$ac_ext
37742 cat >>conftest.$ac_ext <<_ACEOF
37743 /* end confdefs.h. */
37744 #include <$ac_header>
37745 _ACEOF
37746 if { (ac_try="$ac_cpp conftest.$ac_ext"
37747 case "(($ac_try" in
37748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37749 *) ac_try_echo=$ac_try;;
37750 esac
37751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37752 $as_echo "$ac_try_echo") >&5
37753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37754 ac_status=$?
37755 grep -v '^ *+' conftest.er1 >conftest.err
37756 rm -f conftest.er1
37757 cat conftest.err >&5
37758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); } >/dev/null && {
37760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37761 test ! -s conftest.err
37762 }; then
37763 ac_header_preproc=yes
37764 else
37765 $as_echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37768 ac_header_preproc=no
37771 rm -f conftest.err conftest.$ac_ext
37772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37773 $as_echo "$ac_header_preproc" >&6; }
37775 # So? What about this header?
37776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37777 yes:no: )
37778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37779 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37782 ac_header_preproc=yes
37784 no:yes:* )
37785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37786 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37788 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37790 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37792 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37796 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37799 esac
37800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37801 $as_echo_n "checking for $ac_header... " >&6; }
37802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37803 $as_echo_n "(cached) " >&6
37804 else
37805 eval "$as_ac_Header=\$ac_header_preproc"
37807 ac_res=`eval 'as_val=${'$as_ac_Header'}
37808 $as_echo "$as_val"'`
37809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37810 $as_echo "$ac_res" >&6; }
37813 as_val=`eval 'as_val=${'$as_ac_Header'}
37814 $as_echo "$as_val"'`
37815 if test "x$as_val" = x""yes; then
37816 cat >>confdefs.h <<_ACEOF
37817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37818 _ACEOF
37822 done
37832 { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
37833 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
37834 if test "${ac_cv_func_utime_null+set}" = set; then
37835 $as_echo_n "(cached) " >&6
37836 else
37837 rm -f conftest.data; >conftest.data
37838 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
37839 if test "$cross_compiling" = yes; then
37840 ac_cv_func_utime_null=no
37841 else
37842 cat >conftest.$ac_ext <<_ACEOF
37843 /* confdefs.h. */
37844 _ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h. */
37848 $ac_includes_default
37849 #ifdef HAVE_UTIME_H
37850 # include <utime.h>
37851 #endif
37853 main ()
37855 struct stat s, t;
37856 return ! (stat ("conftest.data", &s) == 0
37857 && utime ("conftest.data", 0) == 0
37858 && stat ("conftest.data", &t) == 0
37859 && t.st_mtime >= s.st_mtime
37860 && t.st_mtime - s.st_mtime < 120);
37862 return 0;
37864 _ACEOF
37865 rm -f conftest$ac_exeext
37866 if { (ac_try="$ac_link"
37867 case "(($ac_try" in
37868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869 *) ac_try_echo=$ac_try;;
37870 esac
37871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37872 $as_echo "$ac_try_echo") >&5
37873 (eval "$ac_link") 2>&5
37874 ac_status=$?
37875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37877 { (case "(($ac_try" in
37878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37879 *) ac_try_echo=$ac_try;;
37880 esac
37881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37882 $as_echo "$ac_try_echo") >&5
37883 (eval "$ac_try") 2>&5
37884 ac_status=$?
37885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; }; then
37887 ac_cv_func_utime_null=yes
37888 else
37889 $as_echo "$as_me: program exited with status $ac_status" >&5
37890 $as_echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37893 ( exit $ac_status )
37894 ac_cv_func_utime_null=no
37896 rm -rf conftest.dSYM
37897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37902 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
37903 $as_echo "$ac_cv_func_utime_null" >&6; }
37904 if test $ac_cv_func_utime_null = yes; then
37906 cat >>confdefs.h <<\_ACEOF
37907 #define HAVE_UTIME_NULL 1
37908 _ACEOF
37911 rm -f conftest.data
37914 for ac_func in vprintf
37916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37918 $as_echo_n "checking for $ac_func... " >&6; }
37919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37920 $as_echo_n "(cached) " >&6
37921 else
37922 cat >conftest.$ac_ext <<_ACEOF
37923 /* confdefs.h. */
37924 _ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h. */
37928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37930 #define $ac_func innocuous_$ac_func
37932 /* System header to define __stub macros and hopefully few prototypes,
37933 which can conflict with char $ac_func (); below.
37934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37935 <limits.h> exists even on freestanding compilers. */
37937 #ifdef __STDC__
37938 # include <limits.h>
37939 #else
37940 # include <assert.h>
37941 #endif
37943 #undef $ac_func
37945 /* Override any GCC internal prototype to avoid an error.
37946 Use char because int might match the return type of a GCC
37947 builtin and then its argument prototype would still apply. */
37948 #ifdef __cplusplus
37949 extern "C"
37950 #endif
37951 char $ac_func ();
37952 /* The GNU C library defines this for functions which it implements
37953 to always fail with ENOSYS. Some functions are actually named
37954 something starting with __ and the normal name is an alias. */
37955 #if defined __stub_$ac_func || defined __stub___$ac_func
37956 choke me
37957 #endif
37960 main ()
37962 return $ac_func ();
37964 return 0;
37966 _ACEOF
37967 rm -f conftest.$ac_objext conftest$ac_exeext
37968 if { (ac_try="$ac_link"
37969 case "(($ac_try" in
37970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37971 *) ac_try_echo=$ac_try;;
37972 esac
37973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37974 $as_echo "$ac_try_echo") >&5
37975 (eval "$ac_link") 2>conftest.er1
37976 ac_status=$?
37977 grep -v '^ *+' conftest.er1 >conftest.err
37978 rm -f conftest.er1
37979 cat conftest.err >&5
37980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981 (exit $ac_status); } && {
37982 test -z "$ac_c_werror_flag" ||
37983 test ! -s conftest.err
37984 } && test -s conftest$ac_exeext && {
37985 test "$cross_compiling" = yes ||
37986 $as_test_x conftest$ac_exeext
37987 }; then
37988 eval "$as_ac_var=yes"
37989 else
37990 $as_echo "$as_me: failed program was:" >&5
37991 sed 's/^/| /' conftest.$ac_ext >&5
37993 eval "$as_ac_var=no"
37996 rm -rf conftest.dSYM
37997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37998 conftest$ac_exeext conftest.$ac_ext
38000 ac_res=`eval 'as_val=${'$as_ac_var'}
38001 $as_echo "$as_val"'`
38002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38003 $as_echo "$ac_res" >&6; }
38004 as_val=`eval 'as_val=${'$as_ac_var'}
38005 $as_echo "$as_val"'`
38006 if test "x$as_val" = x""yes; then
38007 cat >>confdefs.h <<_ACEOF
38008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38009 _ACEOF
38011 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
38012 $as_echo_n "checking for _doprnt... " >&6; }
38013 if test "${ac_cv_func__doprnt+set}" = set; then
38014 $as_echo_n "(cached) " >&6
38015 else
38016 cat >conftest.$ac_ext <<_ACEOF
38017 /* confdefs.h. */
38018 _ACEOF
38019 cat confdefs.h >>conftest.$ac_ext
38020 cat >>conftest.$ac_ext <<_ACEOF
38021 /* end confdefs.h. */
38022 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38024 #define _doprnt innocuous__doprnt
38026 /* System header to define __stub macros and hopefully few prototypes,
38027 which can conflict with char _doprnt (); below.
38028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38029 <limits.h> exists even on freestanding compilers. */
38031 #ifdef __STDC__
38032 # include <limits.h>
38033 #else
38034 # include <assert.h>
38035 #endif
38037 #undef _doprnt
38039 /* Override any GCC internal prototype to avoid an error.
38040 Use char because int might match the return type of a GCC
38041 builtin and then its argument prototype would still apply. */
38042 #ifdef __cplusplus
38043 extern "C"
38044 #endif
38045 char _doprnt ();
38046 /* The GNU C library defines this for functions which it implements
38047 to always fail with ENOSYS. Some functions are actually named
38048 something starting with __ and the normal name is an alias. */
38049 #if defined __stub__doprnt || defined __stub____doprnt
38050 choke me
38051 #endif
38054 main ()
38056 return _doprnt ();
38058 return 0;
38060 _ACEOF
38061 rm -f conftest.$ac_objext conftest$ac_exeext
38062 if { (ac_try="$ac_link"
38063 case "(($ac_try" in
38064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065 *) ac_try_echo=$ac_try;;
38066 esac
38067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38068 $as_echo "$ac_try_echo") >&5
38069 (eval "$ac_link") 2>conftest.er1
38070 ac_status=$?
38071 grep -v '^ *+' conftest.er1 >conftest.err
38072 rm -f conftest.er1
38073 cat conftest.err >&5
38074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); } && {
38076 test -z "$ac_c_werror_flag" ||
38077 test ! -s conftest.err
38078 } && test -s conftest$ac_exeext && {
38079 test "$cross_compiling" = yes ||
38080 $as_test_x conftest$ac_exeext
38081 }; then
38082 ac_cv_func__doprnt=yes
38083 else
38084 $as_echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38087 ac_cv_func__doprnt=no
38090 rm -rf conftest.dSYM
38091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38092 conftest$ac_exeext conftest.$ac_ext
38094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38095 $as_echo "$ac_cv_func__doprnt" >&6; }
38096 if test "x$ac_cv_func__doprnt" = x""yes; then
38098 cat >>confdefs.h <<\_ACEOF
38099 #define HAVE_DOPRNT 1
38100 _ACEOF
38105 done
38109 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
38110 $as_echo_n "checking whether fdatasync is declared... " >&6; }
38111 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
38112 $as_echo_n "(cached) " >&6
38113 else
38114 cat >conftest.$ac_ext <<_ACEOF
38115 /* confdefs.h. */
38116 _ACEOF
38117 cat confdefs.h >>conftest.$ac_ext
38118 cat >>conftest.$ac_ext <<_ACEOF
38119 /* end confdefs.h. */
38120 $ac_includes_default
38122 main ()
38124 #ifndef fdatasync
38125 (void) fdatasync;
38126 #endif
38129 return 0;
38131 _ACEOF
38132 rm -f conftest.$ac_objext
38133 if { (ac_try="$ac_compile"
38134 case "(($ac_try" in
38135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38136 *) ac_try_echo=$ac_try;;
38137 esac
38138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38139 $as_echo "$ac_try_echo") >&5
38140 (eval "$ac_compile") 2>conftest.er1
38141 ac_status=$?
38142 grep -v '^ *+' conftest.er1 >conftest.err
38143 rm -f conftest.er1
38144 cat conftest.err >&5
38145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); } && {
38147 test -z "$ac_c_werror_flag" ||
38148 test ! -s conftest.err
38149 } && test -s conftest.$ac_objext; then
38150 ac_cv_have_decl_fdatasync=yes
38151 else
38152 $as_echo "$as_me: failed program was:" >&5
38153 sed 's/^/| /' conftest.$ac_ext >&5
38155 ac_cv_have_decl_fdatasync=no
38158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38160 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
38161 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
38162 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
38164 cat >>confdefs.h <<_ACEOF
38165 #define HAVE_DECL_FDATASYNC 1
38166 _ACEOF
38169 else
38170 cat >>confdefs.h <<_ACEOF
38171 #define HAVE_DECL_FDATASYNC 0
38172 _ACEOF
38176 { $as_echo "$as_me:$LINENO: checking whether bzero is declared" >&5
38177 $as_echo_n "checking whether bzero is declared... " >&6; }
38178 if test "${ac_cv_have_decl_bzero+set}" = set; then
38179 $as_echo_n "(cached) " >&6
38180 else
38181 cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h. */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h. */
38187 $ac_includes_default
38189 main ()
38191 #ifndef bzero
38192 (void) bzero;
38193 #endif
38196 return 0;
38198 _ACEOF
38199 rm -f conftest.$ac_objext
38200 if { (ac_try="$ac_compile"
38201 case "(($ac_try" in
38202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38203 *) ac_try_echo=$ac_try;;
38204 esac
38205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38206 $as_echo "$ac_try_echo") >&5
38207 (eval "$ac_compile") 2>conftest.er1
38208 ac_status=$?
38209 grep -v '^ *+' conftest.er1 >conftest.err
38210 rm -f conftest.er1
38211 cat conftest.err >&5
38212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); } && {
38214 test -z "$ac_c_werror_flag" ||
38215 test ! -s conftest.err
38216 } && test -s conftest.$ac_objext; then
38217 ac_cv_have_decl_bzero=yes
38218 else
38219 $as_echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38222 ac_cv_have_decl_bzero=no
38225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38227 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_bzero" >&5
38228 $as_echo "$ac_cv_have_decl_bzero" >&6; }
38229 if test "x$ac_cv_have_decl_bzero" = x""yes; then
38231 cat >>confdefs.h <<_ACEOF
38232 #define HAVE_DECL_BZERO 1
38233 _ACEOF
38236 else
38237 cat >>confdefs.h <<_ACEOF
38238 #define HAVE_DECL_BZERO 0
38239 _ACEOF
38348 for ac_func in alarm bfill bmove bsearch bzero \
38349 chsize cuserid fchmod fcntl \
38350 fconvert fdatasync fesetround finite fpresetsticky fpsetmask fsync ftruncate \
38351 getcwd gethostbyaddr_r gethostbyname_r getpass getpassphrase getpwnam \
38352 getpwuid getrlimit getrusage getwd index initgroups isnan \
38353 localtime_r gethrtime gmtime_r \
38354 locking longjmp lrand48 madvise mallinfo memcpy memmove \
38355 mkstemp mlockall perror poll pread pthread_attr_create mmap mmap64 getpagesize \
38356 pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
38357 pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
38358 pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
38359 pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
38360 realpath rename rint rwlock_init setupterm \
38361 shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
38362 sighold sigset sigthreadmask port_create sleep \
38363 snprintf socket stpcpy strcasecmp strerror strsignal strnlen strpbrk strstr \
38364 strtol strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr \
38365 posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd printstack \
38366 fedisableexcept
38368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38370 $as_echo_n "checking for $ac_func... " >&6; }
38371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38372 $as_echo_n "(cached) " >&6
38373 else
38374 cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h. */
38376 _ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h. */
38380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38382 #define $ac_func innocuous_$ac_func
38384 /* System header to define __stub macros and hopefully few prototypes,
38385 which can conflict with char $ac_func (); below.
38386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38387 <limits.h> exists even on freestanding compilers. */
38389 #ifdef __STDC__
38390 # include <limits.h>
38391 #else
38392 # include <assert.h>
38393 #endif
38395 #undef $ac_func
38397 /* Override any GCC internal prototype to avoid an error.
38398 Use char because int might match the return type of a GCC
38399 builtin and then its argument prototype would still apply. */
38400 #ifdef __cplusplus
38401 extern "C"
38402 #endif
38403 char $ac_func ();
38404 /* The GNU C library defines this for functions which it implements
38405 to always fail with ENOSYS. Some functions are actually named
38406 something starting with __ and the normal name is an alias. */
38407 #if defined __stub_$ac_func || defined __stub___$ac_func
38408 choke me
38409 #endif
38412 main ()
38414 return $ac_func ();
38416 return 0;
38418 _ACEOF
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (ac_try="$ac_link"
38421 case "(($ac_try" in
38422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38423 *) ac_try_echo=$ac_try;;
38424 esac
38425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38426 $as_echo "$ac_try_echo") >&5
38427 (eval "$ac_link") 2>conftest.er1
38428 ac_status=$?
38429 grep -v '^ *+' conftest.er1 >conftest.err
38430 rm -f conftest.er1
38431 cat conftest.err >&5
38432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); } && {
38434 test -z "$ac_c_werror_flag" ||
38435 test ! -s conftest.err
38436 } && test -s conftest$ac_exeext && {
38437 test "$cross_compiling" = yes ||
38438 $as_test_x conftest$ac_exeext
38439 }; then
38440 eval "$as_ac_var=yes"
38441 else
38442 $as_echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38445 eval "$as_ac_var=no"
38448 rm -rf conftest.dSYM
38449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38450 conftest$ac_exeext conftest.$ac_ext
38452 ac_res=`eval 'as_val=${'$as_ac_var'}
38453 $as_echo "$as_val"'`
38454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38455 $as_echo "$ac_res" >&6; }
38456 as_val=`eval 'as_val=${'$as_ac_var'}
38457 $as_echo "$as_val"'`
38458 if test "x$as_val" = x""yes; then
38459 cat >>confdefs.h <<_ACEOF
38460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38461 _ACEOF
38464 done
38470 case "$target" in
38471 *-*-aix4* | *-*-sco*)
38472 # (grr) aix 4.3 has a stub for clock_gettime, (returning ENOSYS)
38473 # and using AC_TRY_RUN is hard when cross-compiling
38474 # We also disable for SCO for the time being, the headers for the
38475 # thread library we use conflicts with other headers.
38478 for ac_func in clock_gettime
38480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38481 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38482 $as_echo_n "checking for $ac_func... " >&6; }
38483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38484 $as_echo_n "(cached) " >&6
38485 else
38486 cat >conftest.$ac_ext <<_ACEOF
38487 /* confdefs.h. */
38488 _ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h. */
38492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38494 #define $ac_func innocuous_$ac_func
38496 /* System header to define __stub macros and hopefully few prototypes,
38497 which can conflict with char $ac_func (); below.
38498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38499 <limits.h> exists even on freestanding compilers. */
38501 #ifdef __STDC__
38502 # include <limits.h>
38503 #else
38504 # include <assert.h>
38505 #endif
38507 #undef $ac_func
38509 /* Override any GCC internal prototype to avoid an error.
38510 Use char because int might match the return type of a GCC
38511 builtin and then its argument prototype would still apply. */
38512 #ifdef __cplusplus
38513 extern "C"
38514 #endif
38515 char $ac_func ();
38516 /* The GNU C library defines this for functions which it implements
38517 to always fail with ENOSYS. Some functions are actually named
38518 something starting with __ and the normal name is an alias. */
38519 #if defined __stub_$ac_func || defined __stub___$ac_func
38520 choke me
38521 #endif
38524 main ()
38526 return $ac_func ();
38528 return 0;
38530 _ACEOF
38531 rm -f conftest.$ac_objext conftest$ac_exeext
38532 if { (ac_try="$ac_link"
38533 case "(($ac_try" in
38534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38535 *) ac_try_echo=$ac_try;;
38536 esac
38537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38538 $as_echo "$ac_try_echo") >&5
38539 (eval "$ac_link") 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } && {
38546 test -z "$ac_c_werror_flag" ||
38547 test ! -s conftest.err
38548 } && test -s conftest$ac_exeext && {
38549 test "$cross_compiling" = yes ||
38550 $as_test_x conftest$ac_exeext
38551 }; then
38552 eval "$as_ac_var=yes"
38553 else
38554 $as_echo "$as_me: failed program was:" >&5
38555 sed 's/^/| /' conftest.$ac_ext >&5
38557 eval "$as_ac_var=no"
38560 rm -rf conftest.dSYM
38561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38562 conftest$ac_exeext conftest.$ac_ext
38564 ac_res=`eval 'as_val=${'$as_ac_var'}
38565 $as_echo "$as_val"'`
38566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38567 $as_echo "$ac_res" >&6; }
38568 as_val=`eval 'as_val=${'$as_ac_var'}
38569 $as_echo "$as_val"'`
38570 if test "x$as_val" = x""yes; then
38571 cat >>confdefs.h <<_ACEOF
38572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38573 _ACEOF
38576 done
38579 esac
38581 case "$mysql_cv_sys_os" in
38582 OS400) # i5/OS (OS/400) emits a SIGILL (Function not implemented) when
38583 # unsupported priority values are passed to pthread_setschedprio.
38584 # Since the only supported value is 1, treat it as inexistent.
38586 SunOS) # Bug#42599 error: `pthread_setschedprio' was not declared in this scope
38587 # In some installations, the pthread.h header used by GCC does not
38588 # declare the pthread_setscheprio prototype, but the function is
38589 # implemented. Since the function is used in C++ code, ensure that
38590 # the function prototype is present.
38591 { $as_echo "$as_me:$LINENO: checking whether pthread_setschedprio is declared" >&5
38592 $as_echo_n "checking whether pthread_setschedprio is declared... " >&6; }
38593 ac_ext=cpp
38594 ac_cpp='$CXXCPP $CPPFLAGS'
38595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38599 cat >conftest.$ac_ext <<_ACEOF
38601 /* confdefs.h. */
38602 _ACEOF
38603 cat confdefs.h >>conftest.$ac_ext
38604 cat >>conftest.$ac_ext <<_ACEOF
38605 /* end confdefs.h. */
38606 #include <pthread.h>
38608 main ()
38610 (void)(pthread_setschedprio);
38612 return 0;
38614 _ACEOF
38615 rm -f conftest.$ac_objext
38616 if { (ac_try="$ac_compile"
38617 case "(($ac_try" in
38618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38619 *) ac_try_echo=$ac_try;;
38620 esac
38621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38622 $as_echo "$ac_try_echo") >&5
38623 (eval "$ac_compile") 2>conftest.er1
38624 ac_status=$?
38625 grep -v '^ *+' conftest.er1 >conftest.err
38626 rm -f conftest.er1
38627 cat conftest.err >&5
38628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } && {
38630 test -z "$ac_cxx_werror_flag" ||
38631 test ! -s conftest.err
38632 } && test -s conftest.$ac_objext; then
38633 ac_cv_func_pthread_setschedprio=yes
38634 else
38635 $as_echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38638 ac_cv_func_pthread_setschedprio=no
38641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642 ac_ext=c
38643 ac_cpp='$CPP $CPPFLAGS'
38644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setschedprio" >&5
38649 $as_echo "$ac_cv_func_pthread_setschedprio" >&6; }
38650 if test "$ac_cv_func_pthread_setschedprio" = yes; then
38652 cat >>confdefs.h <<\_ACEOF
38653 #define HAVE_PTHREAD_SETSCHEDPRIO 1
38654 _ACEOF
38659 for ac_func in pthread_setschedprio
38661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38662 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38663 $as_echo_n "checking for $ac_func... " >&6; }
38664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38665 $as_echo_n "(cached) " >&6
38666 else
38667 cat >conftest.$ac_ext <<_ACEOF
38668 /* confdefs.h. */
38669 _ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h. */
38673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38675 #define $ac_func innocuous_$ac_func
38677 /* System header to define __stub macros and hopefully few prototypes,
38678 which can conflict with char $ac_func (); below.
38679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38680 <limits.h> exists even on freestanding compilers. */
38682 #ifdef __STDC__
38683 # include <limits.h>
38684 #else
38685 # include <assert.h>
38686 #endif
38688 #undef $ac_func
38690 /* Override any GCC internal prototype to avoid an error.
38691 Use char because int might match the return type of a GCC
38692 builtin and then its argument prototype would still apply. */
38693 #ifdef __cplusplus
38694 extern "C"
38695 #endif
38696 char $ac_func ();
38697 /* The GNU C library defines this for functions which it implements
38698 to always fail with ENOSYS. Some functions are actually named
38699 something starting with __ and the normal name is an alias. */
38700 #if defined __stub_$ac_func || defined __stub___$ac_func
38701 choke me
38702 #endif
38705 main ()
38707 return $ac_func ();
38709 return 0;
38711 _ACEOF
38712 rm -f conftest.$ac_objext conftest$ac_exeext
38713 if { (ac_try="$ac_link"
38714 case "(($ac_try" in
38715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38716 *) ac_try_echo=$ac_try;;
38717 esac
38718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38719 $as_echo "$ac_try_echo") >&5
38720 (eval "$ac_link") 2>conftest.er1
38721 ac_status=$?
38722 grep -v '^ *+' conftest.er1 >conftest.err
38723 rm -f conftest.er1
38724 cat conftest.err >&5
38725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); } && {
38727 test -z "$ac_c_werror_flag" ||
38728 test ! -s conftest.err
38729 } && test -s conftest$ac_exeext && {
38730 test "$cross_compiling" = yes ||
38731 $as_test_x conftest$ac_exeext
38732 }; then
38733 eval "$as_ac_var=yes"
38734 else
38735 $as_echo "$as_me: failed program was:" >&5
38736 sed 's/^/| /' conftest.$ac_ext >&5
38738 eval "$as_ac_var=no"
38741 rm -rf conftest.dSYM
38742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38743 conftest$ac_exeext conftest.$ac_ext
38745 ac_res=`eval 'as_val=${'$as_ac_var'}
38746 $as_echo "$as_val"'`
38747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38748 $as_echo "$ac_res" >&6; }
38749 as_val=`eval 'as_val=${'$as_ac_var'}
38750 $as_echo "$as_val"'`
38751 if test "x$as_val" = x""yes; then
38752 cat >>confdefs.h <<_ACEOF
38753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38754 _ACEOF
38757 done
38760 esac
38762 # Check that isinf() is available in math.h and can be used in both C and C++
38763 # code
38764 { $as_echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
38765 $as_echo_n "checking for isinf in <math.h>... " >&6; }
38766 cat >conftest.$ac_ext <<_ACEOF
38767 /* confdefs.h. */
38768 _ACEOF
38769 cat confdefs.h >>conftest.$ac_ext
38770 cat >>conftest.$ac_ext <<_ACEOF
38771 /* end confdefs.h. */
38772 #include <math.h>
38774 main ()
38776 float f = 0.0; int r = isinf(f); return r
38778 return 0;
38780 _ACEOF
38781 rm -f conftest.$ac_objext conftest$ac_exeext
38782 if { (ac_try="$ac_link"
38783 case "(($ac_try" in
38784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38785 *) ac_try_echo=$ac_try;;
38786 esac
38787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38788 $as_echo "$ac_try_echo") >&5
38789 (eval "$ac_link") 2>conftest.er1
38790 ac_status=$?
38791 grep -v '^ *+' conftest.er1 >conftest.err
38792 rm -f conftest.er1
38793 cat conftest.err >&5
38794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); } && {
38796 test -z "$ac_c_werror_flag" ||
38797 test ! -s conftest.err
38798 } && test -s conftest$ac_exeext && {
38799 test "$cross_compiling" = yes ||
38800 $as_test_x conftest$ac_exeext
38801 }; then
38802 { $as_echo "$as_me:$LINENO: result: yes" >&5
38803 $as_echo "yes" >&6; }
38804 { $as_echo "$as_me:$LINENO: checking whether isinf() is safe to use in C code" >&5
38805 $as_echo_n "checking whether isinf() is safe to use in C code... " >&6; }
38806 if test "$cross_compiling" = yes; then
38808 # Let's be optimistic when cross-compiling, since the only compiler known
38809 # to be affected by this isinf() bug is GCC 4.3 on 32-bit x86.
38810 { $as_echo "$as_me:$LINENO: result: cross-compiling, assuming 'yes'" >&5
38811 $as_echo "cross-compiling, assuming 'yes'" >&6; }
38813 else
38814 cat >conftest.$ac_ext <<_ACEOF
38815 /* confdefs.h. */
38816 _ACEOF
38817 cat confdefs.h >>conftest.$ac_ext
38818 cat >>conftest.$ac_ext <<_ACEOF
38819 /* end confdefs.h. */
38821 #include <math.h>
38822 int main()
38824 double a= 10.0;
38825 double b= 1e308;
38827 return !isinf(a * b);
38830 _ACEOF
38831 rm -f conftest$ac_exeext
38832 if { (ac_try="$ac_link"
38833 case "(($ac_try" in
38834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38835 *) ac_try_echo=$ac_try;;
38836 esac
38837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38838 $as_echo "$ac_try_echo") >&5
38839 (eval "$ac_link") 2>&5
38840 ac_status=$?
38841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38843 { (case "(($ac_try" in
38844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38845 *) ac_try_echo=$ac_try;;
38846 esac
38847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38848 $as_echo "$ac_try_echo") >&5
38849 (eval "$ac_try") 2>&5
38850 ac_status=$?
38851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; }; then
38853 { $as_echo "$as_me:$LINENO: result: yes" >&5
38854 $as_echo "yes" >&6; }
38855 else
38856 $as_echo "$as_me: program exited with status $ac_status" >&5
38857 $as_echo "$as_me: failed program was:" >&5
38858 sed 's/^/| /' conftest.$ac_ext >&5
38860 ( exit $ac_status )
38861 { $as_echo "$as_me:$LINENO: result: no" >&5
38862 $as_echo "no" >&6; }
38864 cat >>confdefs.h <<\_ACEOF
38865 #define HAVE_BROKEN_ISINF 1
38866 _ACEOF
38870 rm -rf conftest.dSYM
38871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38875 { $as_echo "$as_me:$LINENO: checking whether isinf() can be used in C++ code" >&5
38876 $as_echo_n "checking whether isinf() can be used in C++ code... " >&6; }
38878 ac_ext=cpp
38879 ac_cpp='$CXXCPP $CPPFLAGS'
38880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38884 cat >conftest.$ac_ext <<_ACEOF
38885 /* confdefs.h. */
38886 _ACEOF
38887 cat confdefs.h >>conftest.$ac_ext
38888 cat >>conftest.$ac_ext <<_ACEOF
38889 /* end confdefs.h. */
38890 #include <math.h>
38892 main ()
38894 float f = 0.0; int r = isinf(f); return r
38896 return 0;
38898 _ACEOF
38899 rm -f conftest.$ac_objext conftest$ac_exeext
38900 if { (ac_try="$ac_link"
38901 case "(($ac_try" in
38902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38903 *) ac_try_echo=$ac_try;;
38904 esac
38905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38906 $as_echo "$ac_try_echo") >&5
38907 (eval "$ac_link") 2>conftest.er1
38908 ac_status=$?
38909 grep -v '^ *+' conftest.er1 >conftest.err
38910 rm -f conftest.er1
38911 cat conftest.err >&5
38912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); } && {
38914 test -z "$ac_cxx_werror_flag" ||
38915 test ! -s conftest.err
38916 } && test -s conftest$ac_exeext && {
38917 test "$cross_compiling" = yes ||
38918 $as_test_x conftest$ac_exeext
38919 }; then
38920 { $as_echo "$as_me:$LINENO: result: yes" >&5
38921 $as_echo "yes" >&6; }
38923 cat >>confdefs.h <<\_ACEOF
38924 #define HAVE_ISINF 1
38925 _ACEOF
38927 else
38928 $as_echo "$as_me: failed program was:" >&5
38929 sed 's/^/| /' conftest.$ac_ext >&5
38931 { $as_echo "$as_me:$LINENO: result: no" >&5
38932 $as_echo "no" >&6; }
38935 rm -rf conftest.dSYM
38936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38937 conftest$ac_exeext conftest.$ac_ext
38938 ac_ext=c
38939 ac_cpp='$CPP $CPPFLAGS'
38940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38944 else
38945 $as_echo "$as_me: failed program was:" >&5
38946 sed 's/^/| /' conftest.$ac_ext >&5
38948 { $as_echo "$as_me:$LINENO: result: no" >&5
38949 $as_echo "no" >&6; }
38952 rm -rf conftest.dSYM
38953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38954 conftest$ac_exeext conftest.$ac_ext
38956 CFLAGS="$ORG_CFLAGS"
38958 # Sanity check: We chould not have any fseeko symbol unless
38959 # large_file_support=yes
38960 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
38961 $as_echo_n "checking for fseeko... " >&6; }
38962 if test "${ac_cv_func_fseeko+set}" = set; then
38963 $as_echo_n "(cached) " >&6
38964 else
38965 cat >conftest.$ac_ext <<_ACEOF
38966 /* confdefs.h. */
38967 _ACEOF
38968 cat confdefs.h >>conftest.$ac_ext
38969 cat >>conftest.$ac_ext <<_ACEOF
38970 /* end confdefs.h. */
38971 /* Define fseeko to an innocuous variant, in case <limits.h> declares fseeko.
38972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38973 #define fseeko innocuous_fseeko
38975 /* System header to define __stub macros and hopefully few prototypes,
38976 which can conflict with char fseeko (); below.
38977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38978 <limits.h> exists even on freestanding compilers. */
38980 #ifdef __STDC__
38981 # include <limits.h>
38982 #else
38983 # include <assert.h>
38984 #endif
38986 #undef fseeko
38988 /* Override any GCC internal prototype to avoid an error.
38989 Use char because int might match the return type of a GCC
38990 builtin and then its argument prototype would still apply. */
38991 #ifdef __cplusplus
38992 extern "C"
38993 #endif
38994 char fseeko ();
38995 /* The GNU C library defines this for functions which it implements
38996 to always fail with ENOSYS. Some functions are actually named
38997 something starting with __ and the normal name is an alias. */
38998 #if defined __stub_fseeko || defined __stub___fseeko
38999 choke me
39000 #endif
39003 main ()
39005 return fseeko ();
39007 return 0;
39009 _ACEOF
39010 rm -f conftest.$ac_objext conftest$ac_exeext
39011 if { (ac_try="$ac_link"
39012 case "(($ac_try" in
39013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39014 *) ac_try_echo=$ac_try;;
39015 esac
39016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39017 $as_echo "$ac_try_echo") >&5
39018 (eval "$ac_link") 2>conftest.er1
39019 ac_status=$?
39020 grep -v '^ *+' conftest.er1 >conftest.err
39021 rm -f conftest.er1
39022 cat conftest.err >&5
39023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); } && {
39025 test -z "$ac_c_werror_flag" ||
39026 test ! -s conftest.err
39027 } && test -s conftest$ac_exeext && {
39028 test "$cross_compiling" = yes ||
39029 $as_test_x conftest$ac_exeext
39030 }; then
39031 ac_cv_func_fseeko=yes
39032 else
39033 $as_echo "$as_me: failed program was:" >&5
39034 sed 's/^/| /' conftest.$ac_ext >&5
39036 ac_cv_func_fseeko=no
39039 rm -rf conftest.dSYM
39040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39041 conftest$ac_exeext conftest.$ac_ext
39043 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
39044 $as_echo "$ac_cv_func_fseeko" >&6; }
39045 if test "x$ac_cv_func_fseeko" = x""yes; then
39046 if test "$large_file_support" = no -a "$TARGET_LINUX" = "true";
39047 then
39048 { { $as_echo "$as_me:$LINENO: error: \"Found fseeko symbol but large_file_support is not enabled!\"" >&5
39049 $as_echo "$as_me: error: \"Found fseeko symbol but large_file_support is not enabled!\"" >&2;}
39050 { (exit 1); exit 1; }; }
39056 # Check definition of gethostbyaddr_r (glibc2 defines this with 8 arguments)
39057 ac_save_CXXFLAGS="$CXXFLAGS"
39058 { $as_echo "$as_me:$LINENO: checking style of gethost* routines" >&5
39059 $as_echo_n "checking style of gethost* routines... " >&6; }
39060 if test "${mysql_cv_gethost_style+set}" = set; then
39061 $as_echo_n "(cached) " >&6
39062 else
39064 ac_ext=cpp
39065 ac_cpp='$CXXCPP $CPPFLAGS'
39066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39071 # Test whether madvise() is declared in C++ code -- it is not on some
39072 # systems, such as Solaris
39073 { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
39074 $as_echo_n "checking whether madvise is declared... " >&6; }
39075 if test "${ac_cv_have_decl_madvise+set}" = set; then
39076 $as_echo_n "(cached) " >&6
39077 else
39078 cat >conftest.$ac_ext <<_ACEOF
39079 /* confdefs.h. */
39080 _ACEOF
39081 cat confdefs.h >>conftest.$ac_ext
39082 cat >>conftest.$ac_ext <<_ACEOF
39083 /* end confdefs.h. */
39084 #if HAVE_SYS_MMAN_H
39085 #include <sys/types.h>
39086 #include <sys/mman.h>
39087 #endif
39090 main ()
39092 #ifndef madvise
39093 (void) madvise;
39094 #endif
39097 return 0;
39099 _ACEOF
39100 rm -f conftest.$ac_objext
39101 if { (ac_try="$ac_compile"
39102 case "(($ac_try" in
39103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39104 *) ac_try_echo=$ac_try;;
39105 esac
39106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39107 $as_echo "$ac_try_echo") >&5
39108 (eval "$ac_compile") 2>conftest.er1
39109 ac_status=$?
39110 grep -v '^ *+' conftest.er1 >conftest.err
39111 rm -f conftest.er1
39112 cat conftest.err >&5
39113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } && {
39115 test -z "$ac_cxx_werror_flag" ||
39116 test ! -s conftest.err
39117 } && test -s conftest.$ac_objext; then
39118 ac_cv_have_decl_madvise=yes
39119 else
39120 $as_echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39123 ac_cv_have_decl_madvise=no
39126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39128 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
39129 $as_echo "$ac_cv_have_decl_madvise" >&6; }
39130 if test "x$ac_cv_have_decl_madvise" = x""yes; then
39132 cat >>confdefs.h <<_ACEOF
39133 #define HAVE_DECL_MADVISE 1
39134 _ACEOF
39137 else
39138 cat >>confdefs.h <<_ACEOF
39139 #define HAVE_DECL_MADVISE 0
39140 _ACEOF
39147 # Do not treat warnings as errors if we are linking against other libc
39148 # this is to work around gcc not being permissive on non-system includes
39149 # with respect to ANSI C++
39150 # We also remove the -fbranch-probabilities option as this will give warnings
39151 # about not profiled code, which confuses configure
39152 # We also must remove -W and -Wcheck which on icc produces warnings that
39153 # we don't want to catch with -Werror
39155 if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
39156 then
39157 CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
39160 cat >conftest.$ac_ext <<_ACEOF
39161 /* confdefs.h. */
39162 _ACEOF
39163 cat confdefs.h >>conftest.$ac_ext
39164 cat >>conftest.$ac_ext <<_ACEOF
39165 /* end confdefs.h. */
39166 #undef inline
39167 #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
39168 #define _REENTRANT
39169 #endif
39170 #include <pthread.h>
39171 #include <sys/types.h>
39172 #include <sys/socket.h>
39173 #include <netinet/in.h>
39174 #include <arpa/inet.h>
39175 #include <netdb.h>
39177 main ()
39179 int skr;
39180 struct hostent *foo = gethostbyaddr_r((const char *) 0,
39181 0, 0, (struct hostent *) 0, (char *) NULL, 0, &skr); return (foo == 0);
39183 return 0;
39185 _ACEOF
39186 rm -f conftest.$ac_objext
39187 if { (ac_try="$ac_compile"
39188 case "(($ac_try" in
39189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39190 *) ac_try_echo=$ac_try;;
39191 esac
39192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39193 $as_echo "$ac_try_echo") >&5
39194 (eval "$ac_compile") 2>conftest.er1
39195 ac_status=$?
39196 grep -v '^ *+' conftest.er1 >conftest.err
39197 rm -f conftest.er1
39198 cat conftest.err >&5
39199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39200 (exit $ac_status); } && {
39201 test -z "$ac_cxx_werror_flag" ||
39202 test ! -s conftest.err
39203 } && test -s conftest.$ac_objext; then
39204 mysql_cv_gethost_style=solaris
39205 else
39206 $as_echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39209 mysql_cv_gethost_style=other
39212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39214 { $as_echo "$as_me:$LINENO: result: $mysql_cv_gethost_style" >&5
39215 $as_echo "$mysql_cv_gethost_style" >&6; }
39216 ac_ext=c
39217 ac_cpp='$CPP $CPPFLAGS'
39218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39222 CXXFLAGS="$ac_save_CXXFLAGS"
39223 if test "$mysql_cv_gethost_style" = "solaris"
39224 then
39226 cat >>confdefs.h <<\_ACEOF
39227 #define HAVE_SOLARIS_STYLE_GETHOST 1
39228 _ACEOF
39232 #---START: Used in for client configure
39234 # Check definition of gethostbyname_r (glibc2.0.100 is different from Solaris)
39235 ac_save_CXXFLAGS="$CXXFLAGS"
39236 { $as_echo "$as_me:$LINENO: checking style of gethostbyname_r routines" >&5
39237 $as_echo_n "checking style of gethostbyname_r routines... " >&6; }
39238 if test "${mysql_cv_gethostbyname_style+set}" = set; then
39239 $as_echo_n "(cached) " >&6
39240 else
39242 ac_ext=cpp
39243 ac_cpp='$CXXCPP $CPPFLAGS'
39244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39248 if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
39249 then
39250 CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
39252 cat >conftest.$ac_ext <<_ACEOF
39253 /* confdefs.h. */
39254 _ACEOF
39255 cat confdefs.h >>conftest.$ac_ext
39256 cat >>conftest.$ac_ext <<_ACEOF
39257 /* end confdefs.h. */
39258 #undef inline
39259 #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
39260 #define _REENTRANT
39261 #endif
39262 #include <pthread.h>
39263 #include <sys/types.h>
39264 #include <sys/socket.h>
39265 #include <netinet/in.h>
39266 #include <arpa/inet.h>
39267 #include <netdb.h>
39269 main ()
39271 int skr;
39273 skr = gethostbyname_r((const char *) 0,
39274 (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, &skr);
39276 return 0;
39278 _ACEOF
39279 rm -f conftest.$ac_objext
39280 if { (ac_try="$ac_compile"
39281 case "(($ac_try" in
39282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39283 *) ac_try_echo=$ac_try;;
39284 esac
39285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39286 $as_echo "$ac_try_echo") >&5
39287 (eval "$ac_compile") 2>conftest.er1
39288 ac_status=$?
39289 grep -v '^ *+' conftest.er1 >conftest.err
39290 rm -f conftest.er1
39291 cat conftest.err >&5
39292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); } && {
39294 test -z "$ac_cxx_werror_flag" ||
39295 test ! -s conftest.err
39296 } && test -s conftest.$ac_objext; then
39297 mysql_cv_gethostbyname_style=glibc2
39298 else
39299 $as_echo "$as_me: failed program was:" >&5
39300 sed 's/^/| /' conftest.$ac_ext >&5
39302 mysql_cv_gethostbyname_style=other
39305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39307 { $as_echo "$as_me:$LINENO: result: $mysql_cv_gethostbyname_style" >&5
39308 $as_echo "$mysql_cv_gethostbyname_style" >&6; }
39309 ac_ext=c
39310 ac_cpp='$CPP $CPPFLAGS'
39311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39315 CXXFLAGS="$ac_save_CXXFLAGS"
39316 if test "$mysql_cv_gethostbyname_style" = "glibc2"
39317 then
39319 cat >>confdefs.h <<\_ACEOF
39320 #define HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE 1
39321 _ACEOF
39325 # Check 3rd argument of getthostbyname_r
39326 ac_save_CXXFLAGS="$CXXFLAGS"
39327 { $as_echo "$as_me:$LINENO: checking 3 argument to gethostbyname_r routines" >&5
39328 $as_echo_n "checking 3 argument to gethostbyname_r routines... " >&6; }
39329 if test "${mysql_cv_gethostbyname_arg+set}" = set; then
39330 $as_echo_n "(cached) " >&6
39331 else
39333 ac_ext=cpp
39334 ac_cpp='$CXXCPP $CPPFLAGS'
39335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39339 if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
39340 then
39341 CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
39343 cat >conftest.$ac_ext <<_ACEOF
39344 /* confdefs.h. */
39345 _ACEOF
39346 cat confdefs.h >>conftest.$ac_ext
39347 cat >>conftest.$ac_ext <<_ACEOF
39348 /* end confdefs.h. */
39349 #undef inline
39350 #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
39351 #define _REENTRANT
39352 #endif
39353 #include <pthread.h>
39354 #include <sys/types.h>
39355 #include <sys/socket.h>
39356 #include <netinet/in.h>
39357 #include <arpa/inet.h>
39358 #include <netdb.h>
39360 main ()
39362 int skr;
39364 skr = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 0);
39366 return 0;
39368 _ACEOF
39369 rm -f conftest.$ac_objext
39370 if { (ac_try="$ac_compile"
39371 case "(($ac_try" in
39372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39373 *) ac_try_echo=$ac_try;;
39374 esac
39375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39376 $as_echo "$ac_try_echo") >&5
39377 (eval "$ac_compile") 2>conftest.er1
39378 ac_status=$?
39379 grep -v '^ *+' conftest.er1 >conftest.err
39380 rm -f conftest.er1
39381 cat conftest.err >&5
39382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); } && {
39384 test -z "$ac_cxx_werror_flag" ||
39385 test ! -s conftest.err
39386 } && test -s conftest.$ac_objext; then
39387 mysql_cv_gethostbyname_arg=hostent_data
39388 else
39389 $as_echo "$as_me: failed program was:" >&5
39390 sed 's/^/| /' conftest.$ac_ext >&5
39392 mysql_cv_gethostbyname_arg=char
39395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39397 { $as_echo "$as_me:$LINENO: result: $mysql_cv_gethostbyname_arg" >&5
39398 $as_echo "$mysql_cv_gethostbyname_arg" >&6; }
39399 ac_ext=c
39400 ac_cpp='$CPP $CPPFLAGS'
39401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39405 CXXFLAGS="$ac_save_CXXFLAGS"
39406 if test "$mysql_cv_gethostbyname_arg" = "hostent_data"
39407 then
39409 cat >>confdefs.h <<\_ACEOF
39410 #define HAVE_GETHOSTBYNAME_R_RETURN_INT 1
39411 _ACEOF
39416 # Check definition of pthread_getspecific
39417 { $as_echo "$as_me:$LINENO: checking \"args to pthread_getspecific\"" >&5
39418 $as_echo_n "checking \"args to pthread_getspecific\"... " >&6; }
39419 if test "${mysql_cv_getspecific_args+set}" = set; then
39420 $as_echo_n "(cached) " >&6
39421 else
39422 cat >conftest.$ac_ext <<_ACEOF
39423 /* confdefs.h. */
39424 _ACEOF
39425 cat confdefs.h >>conftest.$ac_ext
39426 cat >>conftest.$ac_ext <<_ACEOF
39427 /* end confdefs.h. */
39428 #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
39429 #define _REENTRANT
39430 #endif
39431 #define _POSIX_PTHREAD_SEMANTICS
39432 #include <pthread.h>
39434 main ()
39436 void *pthread_getspecific(pthread_key_t key);
39437 pthread_getspecific((pthread_key_t) NULL);
39439 return 0;
39441 _ACEOF
39442 rm -f conftest.$ac_objext
39443 if { (ac_try="$ac_compile"
39444 case "(($ac_try" in
39445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39446 *) ac_try_echo=$ac_try;;
39447 esac
39448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39449 $as_echo "$ac_try_echo") >&5
39450 (eval "$ac_compile") 2>conftest.er1
39451 ac_status=$?
39452 grep -v '^ *+' conftest.er1 >conftest.err
39453 rm -f conftest.er1
39454 cat conftest.err >&5
39455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); } && {
39457 test -z "$ac_c_werror_flag" ||
39458 test ! -s conftest.err
39459 } && test -s conftest.$ac_objext; then
39460 mysql_cv_getspecific_args=POSIX
39461 else
39462 $as_echo "$as_me: failed program was:" >&5
39463 sed 's/^/| /' conftest.$ac_ext >&5
39465 mysql_cv_getspecific_args=other
39468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39470 { $as_echo "$as_me:$LINENO: result: $mysql_cv_getspecific_args" >&5
39471 $as_echo "$mysql_cv_getspecific_args" >&6; }
39472 if test "$mysql_cv_getspecific_args" = "other"
39473 then
39475 cat >>confdefs.h <<\_ACEOF
39476 #define HAVE_NONPOSIX_PTHREAD_GETSPECIFIC 1
39477 _ACEOF
39481 # Check definition of pthread_mutex_init
39482 { $as_echo "$as_me:$LINENO: checking \"args to pthread_mutex_init\"" >&5
39483 $as_echo_n "checking \"args to pthread_mutex_init\"... " >&6; }
39484 if test "${mysql_cv_mutex_init_args+set}" = set; then
39485 $as_echo_n "(cached) " >&6
39486 else
39487 cat >conftest.$ac_ext <<_ACEOF
39488 /* confdefs.h. */
39489 _ACEOF
39490 cat confdefs.h >>conftest.$ac_ext
39491 cat >>conftest.$ac_ext <<_ACEOF
39492 /* end confdefs.h. */
39493 #if !defined(SCO) && !defined(__osf__)
39494 #define _REENTRANT
39495 #endif
39496 #define _POSIX_PTHREAD_SEMANTICS
39497 #include <pthread.h>
39499 main ()
39502 pthread_mutexattr_t attr;
39503 pthread_mutex_t mp;
39504 pthread_mutex_init(&mp,&attr);
39506 return 0;
39508 _ACEOF
39509 rm -f conftest.$ac_objext
39510 if { (ac_try="$ac_compile"
39511 case "(($ac_try" in
39512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513 *) ac_try_echo=$ac_try;;
39514 esac
39515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39516 $as_echo "$ac_try_echo") >&5
39517 (eval "$ac_compile") 2>conftest.er1
39518 ac_status=$?
39519 grep -v '^ *+' conftest.er1 >conftest.err
39520 rm -f conftest.er1
39521 cat conftest.err >&5
39522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); } && {
39524 test -z "$ac_c_werror_flag" ||
39525 test ! -s conftest.err
39526 } && test -s conftest.$ac_objext; then
39527 mysql_cv_mutex_init_args=POSIX
39528 else
39529 $as_echo "$as_me: failed program was:" >&5
39530 sed 's/^/| /' conftest.$ac_ext >&5
39532 mysql_cv_mutex_init_args=other
39535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39537 { $as_echo "$as_me:$LINENO: result: $mysql_cv_mutex_init_args" >&5
39538 $as_echo "$mysql_cv_mutex_init_args" >&6; }
39539 if test "$mysql_cv_mutex_init_args" = "other"
39540 then
39542 cat >>confdefs.h <<\_ACEOF
39543 #define HAVE_NONPOSIX_PTHREAD_MUTEX_INIT 1
39544 _ACEOF
39547 #---END:
39549 #---START: Used in for client configure
39550 # Check definition of readdir_r
39551 { $as_echo "$as_me:$LINENO: checking \"args to readdir_r\"" >&5
39552 $as_echo_n "checking \"args to readdir_r\"... " >&6; }
39553 if test "${mysql_cv_readdir_r+set}" = set; then
39554 $as_echo_n "(cached) " >&6
39555 else
39556 cat >conftest.$ac_ext <<_ACEOF
39557 /* confdefs.h. */
39558 _ACEOF
39559 cat confdefs.h >>conftest.$ac_ext
39560 cat >>conftest.$ac_ext <<_ACEOF
39561 /* end confdefs.h. */
39562 #if !defined(SCO) && !defined(__osf__)
39563 #define _REENTRANT
39564 #endif
39565 #define _POSIX_PTHREAD_SEMANTICS
39566 #include <pthread.h>
39567 #include <dirent.h>
39569 main ()
39571 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
39572 readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL);
39574 return 0;
39576 _ACEOF
39577 rm -f conftest.$ac_objext conftest$ac_exeext
39578 if { (ac_try="$ac_link"
39579 case "(($ac_try" in
39580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39581 *) ac_try_echo=$ac_try;;
39582 esac
39583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39584 $as_echo "$ac_try_echo") >&5
39585 (eval "$ac_link") 2>conftest.er1
39586 ac_status=$?
39587 grep -v '^ *+' conftest.er1 >conftest.err
39588 rm -f conftest.er1
39589 cat conftest.err >&5
39590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } && {
39592 test -z "$ac_c_werror_flag" ||
39593 test ! -s conftest.err
39594 } && test -s conftest$ac_exeext && {
39595 test "$cross_compiling" = yes ||
39596 $as_test_x conftest$ac_exeext
39597 }; then
39598 mysql_cv_readdir_r=POSIX
39599 else
39600 $as_echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39603 mysql_cv_readdir_r=other
39606 rm -rf conftest.dSYM
39607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39608 conftest$ac_exeext conftest.$ac_ext
39610 { $as_echo "$as_me:$LINENO: result: $mysql_cv_readdir_r" >&5
39611 $as_echo "$mysql_cv_readdir_r" >&6; }
39612 if test "$mysql_cv_readdir_r" = "POSIX"
39613 then
39615 cat >>confdefs.h <<\_ACEOF
39616 #define HAVE_READDIR_R 1
39617 _ACEOF
39621 # Check definition of posix sigwait()
39622 { $as_echo "$as_me:$LINENO: checking \"style of sigwait\"" >&5
39623 $as_echo_n "checking \"style of sigwait\"... " >&6; }
39624 if test "${mysql_cv_sigwait+set}" = set; then
39625 $as_echo_n "(cached) " >&6
39626 else
39627 cat >conftest.$ac_ext <<_ACEOF
39628 /* confdefs.h. */
39629 _ACEOF
39630 cat confdefs.h >>conftest.$ac_ext
39631 cat >>conftest.$ac_ext <<_ACEOF
39632 /* end confdefs.h. */
39633 #if !defined(SCO) && !defined(__osf__)
39634 #define _REENTRANT
39635 #endif
39636 #define _POSIX_PTHREAD_SEMANTICS
39637 #include <pthread.h>
39638 #include <signal.h>
39640 main ()
39642 #ifndef _AIX
39643 sigset_t set;
39644 int sig;
39645 sigwait(&set,&sig);
39646 #endif
39648 return 0;
39650 _ACEOF
39651 rm -f conftest.$ac_objext conftest$ac_exeext
39652 if { (ac_try="$ac_link"
39653 case "(($ac_try" in
39654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39655 *) ac_try_echo=$ac_try;;
39656 esac
39657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39658 $as_echo "$ac_try_echo") >&5
39659 (eval "$ac_link") 2>conftest.er1
39660 ac_status=$?
39661 grep -v '^ *+' conftest.er1 >conftest.err
39662 rm -f conftest.er1
39663 cat conftest.err >&5
39664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); } && {
39666 test -z "$ac_c_werror_flag" ||
39667 test ! -s conftest.err
39668 } && test -s conftest$ac_exeext && {
39669 test "$cross_compiling" = yes ||
39670 $as_test_x conftest$ac_exeext
39671 }; then
39672 mysql_cv_sigwait=POSIX
39673 else
39674 $as_echo "$as_me: failed program was:" >&5
39675 sed 's/^/| /' conftest.$ac_ext >&5
39677 mysql_cv_sigwait=other
39680 rm -rf conftest.dSYM
39681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39682 conftest$ac_exeext conftest.$ac_ext
39684 { $as_echo "$as_me:$LINENO: result: $mysql_cv_sigwait" >&5
39685 $as_echo "$mysql_cv_sigwait" >&6; }
39686 if test "$mysql_cv_sigwait" = "POSIX"
39687 then
39689 cat >>confdefs.h <<\_ACEOF
39690 #define HAVE_SIGWAIT 1
39691 _ACEOF
39695 if test "$mysql_cv_sigwait" != "POSIX"
39696 then
39697 unset mysql_cv_sigwait
39698 # Check definition of posix sigwait()
39699 { $as_echo "$as_me:$LINENO: checking \"style of sigwait\"" >&5
39700 $as_echo_n "checking \"style of sigwait\"... " >&6; }
39701 if test "${mysql_cv_sigwait+set}" = set; then
39702 $as_echo_n "(cached) " >&6
39703 else
39704 cat >conftest.$ac_ext <<_ACEOF
39705 /* confdefs.h. */
39706 _ACEOF
39707 cat confdefs.h >>conftest.$ac_ext
39708 cat >>conftest.$ac_ext <<_ACEOF
39709 /* end confdefs.h. */
39710 #if !defined(SCO) && !defined(__osf__)
39711 #define _REENTRANT
39712 #endif
39713 #define _POSIX_PTHREAD_SEMANTICS
39714 #include <pthread.h>
39715 #include <signal.h>
39717 main ()
39719 sigset_t set;
39720 int sig;
39721 sigwait(&set);
39723 return 0;
39725 _ACEOF
39726 rm -f conftest.$ac_objext conftest$ac_exeext
39727 if { (ac_try="$ac_link"
39728 case "(($ac_try" in
39729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39730 *) ac_try_echo=$ac_try;;
39731 esac
39732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39733 $as_echo "$ac_try_echo") >&5
39734 (eval "$ac_link") 2>conftest.er1
39735 ac_status=$?
39736 grep -v '^ *+' conftest.er1 >conftest.err
39737 rm -f conftest.er1
39738 cat conftest.err >&5
39739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39740 (exit $ac_status); } && {
39741 test -z "$ac_c_werror_flag" ||
39742 test ! -s conftest.err
39743 } && test -s conftest$ac_exeext && {
39744 test "$cross_compiling" = yes ||
39745 $as_test_x conftest$ac_exeext
39746 }; then
39747 mysql_cv_sigwait=NONPOSIX
39748 else
39749 $as_echo "$as_me: failed program was:" >&5
39750 sed 's/^/| /' conftest.$ac_ext >&5
39752 mysql_cv_sigwait=other
39755 rm -rf conftest.dSYM
39756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39757 conftest$ac_exeext conftest.$ac_ext
39759 { $as_echo "$as_me:$LINENO: result: $mysql_cv_sigwait" >&5
39760 $as_echo "$mysql_cv_sigwait" >&6; }
39761 if test "$mysql_cv_sigwait" = "NONPOSIX"
39762 then
39764 cat >>confdefs.h <<\_ACEOF
39765 #define HAVE_NONPOSIX_SIGWAIT 1
39766 _ACEOF
39770 #---END:
39772 # Check if pthread_attr_setscope() exists
39773 { $as_echo "$as_me:$LINENO: checking \"for pthread_attr_setscope\"" >&5
39774 $as_echo_n "checking \"for pthread_attr_setscope\"... " >&6; }
39775 if test "${mysql_cv_pthread_attr_setscope+set}" = set; then
39776 $as_echo_n "(cached) " >&6
39777 else
39778 cat >conftest.$ac_ext <<_ACEOF
39779 /* confdefs.h. */
39780 _ACEOF
39781 cat confdefs.h >>conftest.$ac_ext
39782 cat >>conftest.$ac_ext <<_ACEOF
39783 /* end confdefs.h. */
39784 #if !defined(SCO) && !defined(__osf__)
39785 #define _REENTRANT
39786 #endif
39787 #define _POSIX_PTHREAD_SEMANTICS
39788 #include <pthread.h>
39790 main ()
39792 pthread_attr_t thr_attr;
39793 pthread_attr_setscope(&thr_attr,0);
39795 return 0;
39797 _ACEOF
39798 rm -f conftest.$ac_objext conftest$ac_exeext
39799 if { (ac_try="$ac_link"
39800 case "(($ac_try" in
39801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39802 *) ac_try_echo=$ac_try;;
39803 esac
39804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39805 $as_echo "$ac_try_echo") >&5
39806 (eval "$ac_link") 2>conftest.er1
39807 ac_status=$?
39808 grep -v '^ *+' conftest.er1 >conftest.err
39809 rm -f conftest.er1
39810 cat conftest.err >&5
39811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); } && {
39813 test -z "$ac_c_werror_flag" ||
39814 test ! -s conftest.err
39815 } && test -s conftest$ac_exeext && {
39816 test "$cross_compiling" = yes ||
39817 $as_test_x conftest$ac_exeext
39818 }; then
39819 mysql_cv_pthread_attr_setscope=yes
39820 else
39821 $as_echo "$as_me: failed program was:" >&5
39822 sed 's/^/| /' conftest.$ac_ext >&5
39824 mysql_cv_pthread_attr_setscope=no
39827 rm -rf conftest.dSYM
39828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39829 conftest$ac_exeext conftest.$ac_ext
39831 { $as_echo "$as_me:$LINENO: result: $mysql_cv_pthread_attr_setscope" >&5
39832 $as_echo "$mysql_cv_pthread_attr_setscope" >&6; }
39833 if test "$mysql_cv_pthread_attr_setscope" = "yes"
39834 then
39836 cat >>confdefs.h <<\_ACEOF
39837 #define HAVE_PTHREAD_ATTR_SETSCOPE 1
39838 _ACEOF
39842 # Check for bad includes
39843 { $as_echo "$as_me:$LINENO: checking \"can netinet files be included\"" >&5
39844 $as_echo_n "checking \"can netinet files be included\"... " >&6; }
39845 cat >conftest.$ac_ext <<_ACEOF
39846 /* confdefs.h. */
39847 _ACEOF
39848 cat confdefs.h >>conftest.$ac_ext
39849 cat >>conftest.$ac_ext <<_ACEOF
39850 /* end confdefs.h. */
39851 #include <sys/types.h>
39852 #include <sys/socket.h>
39853 #include <netinet/in_systm.h>
39854 #include <netinet/in.h>
39855 #include <netinet/ip.h>
39856 #include <netinet/tcp.h>
39858 main ()
39860 printf("1\n");
39862 return 0;
39864 _ACEOF
39865 rm -f conftest.$ac_objext
39866 if { (ac_try="$ac_compile"
39867 case "(($ac_try" in
39868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39869 *) ac_try_echo=$ac_try;;
39870 esac
39871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39872 $as_echo "$ac_try_echo") >&5
39873 (eval "$ac_compile") 2>conftest.er1
39874 ac_status=$?
39875 grep -v '^ *+' conftest.er1 >conftest.err
39876 rm -f conftest.er1
39877 cat conftest.err >&5
39878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); } && {
39880 test -z "$ac_c_werror_flag" ||
39881 test ! -s conftest.err
39882 } && test -s conftest.$ac_objext; then
39883 netinet_inc=yes
39884 else
39885 $as_echo "$as_me: failed program was:" >&5
39886 sed 's/^/| /' conftest.$ac_ext >&5
39888 netinet_inc=no
39891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39892 if test "$netinet_inc" = "no"
39893 then
39895 cat >>confdefs.h <<\_ACEOF
39896 #define HAVE_BROKEN_NETINET_INCLUDES 1
39897 _ACEOF
39900 { $as_echo "$as_me:$LINENO: result: \"$netinet_inc\"" >&5
39901 $as_echo "\"$netinet_inc\"" >&6; }
39903 { $as_echo "$as_me:$LINENO: checking support for weak symbols" >&5
39904 $as_echo_n "checking support for weak symbols... " >&6; }
39905 if test "${mysql_cv_weak_symbol+set}" = set; then
39906 $as_echo_n "(cached) " >&6
39907 else
39908 cat >conftest.$ac_ext <<_ACEOF
39909 /* confdefs.h. */
39910 _ACEOF
39911 cat confdefs.h >>conftest.$ac_ext
39912 cat >>conftest.$ac_ext <<_ACEOF
39913 /* end confdefs.h. */
39916 main ()
39919 extern void __attribute__((weak)) foo(void);
39922 return 0;
39924 _ACEOF
39925 rm -f conftest.$ac_objext conftest$ac_exeext
39926 if { (ac_try="$ac_link"
39927 case "(($ac_try" in
39928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39929 *) ac_try_echo=$ac_try;;
39930 esac
39931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39932 $as_echo "$ac_try_echo") >&5
39933 (eval "$ac_link") 2>conftest.er1
39934 ac_status=$?
39935 grep -v '^ *+' conftest.er1 >conftest.err
39936 rm -f conftest.er1
39937 cat conftest.err >&5
39938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939 (exit $ac_status); } && {
39940 test -z "$ac_c_werror_flag" ||
39941 test ! -s conftest.err
39942 } && test -s conftest$ac_exeext && {
39943 test "$cross_compiling" = yes ||
39944 $as_test_x conftest$ac_exeext
39945 }; then
39946 mysql_cv_weak_symbol=yes
39947 else
39948 $as_echo "$as_me: failed program was:" >&5
39949 sed 's/^/| /' conftest.$ac_ext >&5
39951 mysql_cv_weak_symbol=no
39954 rm -rf conftest.dSYM
39955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39956 conftest$ac_exeext conftest.$ac_ext
39958 { $as_echo "$as_me:$LINENO: result: $mysql_cv_weak_symbol" >&5
39959 $as_echo "$mysql_cv_weak_symbol" >&6; }
39961 if test "x$mysql_cv_weak_symbol" = xyes; then
39963 cat >>confdefs.h <<\_ACEOF
39964 #define HAVE_WEAK_SYMBOL 1
39965 _ACEOF
39969 { $as_echo "$as_me:$LINENO: checking whether __bss_start is defined" >&5
39970 $as_echo_n "checking whether __bss_start is defined... " >&6; }
39971 if test "${mysql_cv_bss_start+set}" = set; then
39972 $as_echo_n "(cached) " >&6
39973 else
39974 cat >conftest.$ac_ext <<_ACEOF
39975 /* confdefs.h. */
39976 _ACEOF
39977 cat confdefs.h >>conftest.$ac_ext
39978 cat >>conftest.$ac_ext <<_ACEOF
39979 /* end confdefs.h. */
39982 main ()
39985 extern char *__bss_start;
39986 return __bss_start ? 1 : 0;
39989 return 0;
39991 _ACEOF
39992 rm -f conftest.$ac_objext conftest$ac_exeext
39993 if { (ac_try="$ac_link"
39994 case "(($ac_try" in
39995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39996 *) ac_try_echo=$ac_try;;
39997 esac
39998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39999 $as_echo "$ac_try_echo") >&5
40000 (eval "$ac_link") 2>conftest.er1
40001 ac_status=$?
40002 grep -v '^ *+' conftest.er1 >conftest.err
40003 rm -f conftest.er1
40004 cat conftest.err >&5
40005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); } && {
40007 test -z "$ac_c_werror_flag" ||
40008 test ! -s conftest.err
40009 } && test -s conftest$ac_exeext && {
40010 test "$cross_compiling" = yes ||
40011 $as_test_x conftest$ac_exeext
40012 }; then
40013 mysql_cv_bss_start=yes
40014 else
40015 $as_echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40018 mysql_cv_bss_start=no
40021 rm -rf conftest.dSYM
40022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40023 conftest$ac_exeext conftest.$ac_ext
40025 { $as_echo "$as_me:$LINENO: result: $mysql_cv_bss_start" >&5
40026 $as_echo "$mysql_cv_bss_start" >&6; }
40028 if test "x$mysql_cv_bss_start" = xyes; then
40030 cat >>confdefs.h <<\_ACEOF
40031 #define HAVE_BSS_START 1
40032 _ACEOF
40037 ac_ext=cpp
40038 ac_cpp='$CXXCPP $CPPFLAGS'
40039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40045 for ac_header in cxxabi.h
40047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40049 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40050 $as_echo_n "checking for $ac_header... " >&6; }
40051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40052 $as_echo_n "(cached) " >&6
40054 ac_res=`eval 'as_val=${'$as_ac_Header'}
40055 $as_echo "$as_val"'`
40056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40057 $as_echo "$ac_res" >&6; }
40058 else
40059 # Is the header compilable?
40060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40061 $as_echo_n "checking $ac_header usability... " >&6; }
40062 cat >conftest.$ac_ext <<_ACEOF
40063 /* confdefs.h. */
40064 _ACEOF
40065 cat confdefs.h >>conftest.$ac_ext
40066 cat >>conftest.$ac_ext <<_ACEOF
40067 /* end confdefs.h. */
40068 $ac_includes_default
40069 #include <$ac_header>
40070 _ACEOF
40071 rm -f conftest.$ac_objext
40072 if { (ac_try="$ac_compile"
40073 case "(($ac_try" in
40074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40075 *) ac_try_echo=$ac_try;;
40076 esac
40077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40078 $as_echo "$ac_try_echo") >&5
40079 (eval "$ac_compile") 2>conftest.er1
40080 ac_status=$?
40081 grep -v '^ *+' conftest.er1 >conftest.err
40082 rm -f conftest.er1
40083 cat conftest.err >&5
40084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40085 (exit $ac_status); } && {
40086 test -z "$ac_cxx_werror_flag" ||
40087 test ! -s conftest.err
40088 } && test -s conftest.$ac_objext; then
40089 ac_header_compiler=yes
40090 else
40091 $as_echo "$as_me: failed program was:" >&5
40092 sed 's/^/| /' conftest.$ac_ext >&5
40094 ac_header_compiler=no
40097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40099 $as_echo "$ac_header_compiler" >&6; }
40101 # Is the header present?
40102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40103 $as_echo_n "checking $ac_header presence... " >&6; }
40104 cat >conftest.$ac_ext <<_ACEOF
40105 /* confdefs.h. */
40106 _ACEOF
40107 cat confdefs.h >>conftest.$ac_ext
40108 cat >>conftest.$ac_ext <<_ACEOF
40109 /* end confdefs.h. */
40110 #include <$ac_header>
40111 _ACEOF
40112 if { (ac_try="$ac_cpp conftest.$ac_ext"
40113 case "(($ac_try" in
40114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40115 *) ac_try_echo=$ac_try;;
40116 esac
40117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40118 $as_echo "$ac_try_echo") >&5
40119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40120 ac_status=$?
40121 grep -v '^ *+' conftest.er1 >conftest.err
40122 rm -f conftest.er1
40123 cat conftest.err >&5
40124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40125 (exit $ac_status); } >/dev/null && {
40126 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40127 test ! -s conftest.err
40128 }; then
40129 ac_header_preproc=yes
40130 else
40131 $as_echo "$as_me: failed program was:" >&5
40132 sed 's/^/| /' conftest.$ac_ext >&5
40134 ac_header_preproc=no
40137 rm -f conftest.err conftest.$ac_ext
40138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40139 $as_echo "$ac_header_preproc" >&6; }
40141 # So? What about this header?
40142 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40143 yes:no: )
40144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40148 ac_header_preproc=yes
40150 no:yes:* )
40151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40154 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40158 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40165 esac
40166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40167 $as_echo_n "checking for $ac_header... " >&6; }
40168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40169 $as_echo_n "(cached) " >&6
40170 else
40171 eval "$as_ac_Header=\$ac_header_preproc"
40173 ac_res=`eval 'as_val=${'$as_ac_Header'}
40174 $as_echo "$as_val"'`
40175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40176 $as_echo "$ac_res" >&6; }
40179 as_val=`eval 'as_val=${'$as_ac_Header'}
40180 $as_echo "$as_val"'`
40181 if test "x$as_val" = x""yes; then
40182 cat >>confdefs.h <<_ACEOF
40183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40184 _ACEOF
40188 done
40190 { $as_echo "$as_me:$LINENO: checking for abi::__cxa_demangle" >&5
40191 $as_echo_n "checking for abi::__cxa_demangle... " >&6; }
40192 if test "${mysql_cv_cxa_demangle+set}" = set; then
40193 $as_echo_n "(cached) " >&6
40194 else
40195 cat >conftest.$ac_ext <<_ACEOF
40196 /* confdefs.h. */
40197 _ACEOF
40198 cat confdefs.h >>conftest.$ac_ext
40199 cat >>conftest.$ac_ext <<_ACEOF
40200 /* end confdefs.h. */
40201 #include <cxxabi.h>
40203 main ()
40206 char *foo= 0; int bar= 0;
40207 foo= abi::__cxa_demangle(foo, foo, 0, &bar);
40210 return 0;
40212 _ACEOF
40213 rm -f conftest.$ac_objext conftest$ac_exeext
40214 if { (ac_try="$ac_link"
40215 case "(($ac_try" in
40216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40217 *) ac_try_echo=$ac_try;;
40218 esac
40219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40220 $as_echo "$ac_try_echo") >&5
40221 (eval "$ac_link") 2>conftest.er1
40222 ac_status=$?
40223 grep -v '^ *+' conftest.er1 >conftest.err
40224 rm -f conftest.er1
40225 cat conftest.err >&5
40226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227 (exit $ac_status); } && {
40228 test -z "$ac_cxx_werror_flag" ||
40229 test ! -s conftest.err
40230 } && test -s conftest$ac_exeext && {
40231 test "$cross_compiling" = yes ||
40232 $as_test_x conftest$ac_exeext
40233 }; then
40234 mysql_cv_cxa_demangle=yes
40235 else
40236 $as_echo "$as_me: failed program was:" >&5
40237 sed 's/^/| /' conftest.$ac_ext >&5
40239 mysql_cv_cxa_demangle=no
40242 rm -rf conftest.dSYM
40243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40244 conftest$ac_exeext conftest.$ac_ext
40246 { $as_echo "$as_me:$LINENO: result: $mysql_cv_cxa_demangle" >&5
40247 $as_echo "$mysql_cv_cxa_demangle" >&6; }
40248 ac_ext=c
40249 ac_cpp='$CPP $CPPFLAGS'
40250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40255 if test "x$mysql_cv_cxa_demangle" = xyes; then
40257 cat >>confdefs.h <<\_ACEOF
40258 #define HAVE_ABI_CXA_DEMANGLE 1
40259 _ACEOF
40263 #--------------------------------------------------------------------
40264 # Check for requested features
40265 #--------------------------------------------------------------------
40269 # Check whether --with-big-tables was given.
40270 if test "${with_big_tables+set}" = set; then
40271 withval=$with_big_tables; bigtables="$withval"
40272 else
40273 bigtables=no
40276 { $as_echo "$as_me:$LINENO: checking for big tables support" >&5
40277 $as_echo_n "checking for big tables support... " >&6; }
40279 case "$bigtables" in
40280 yes )
40282 cat >>confdefs.h <<\_ACEOF
40283 #define BIG_TABLES 1
40284 _ACEOF
40286 { $as_echo "$as_me:$LINENO: result: yes" >&5
40287 $as_echo "yes" >&6; }
40290 { $as_echo "$as_me:$LINENO: result: no" >&5
40291 $as_echo "no" >&6; }
40293 esac
40298 # Check whether --with-max-indexes was given.
40299 if test "${with_max_indexes+set}" = set; then
40300 withval=$with_max_indexes; max_indexes="$withval"
40301 else
40302 max_indexes=64
40305 { $as_echo "$as_me:$LINENO: checking max indexes per table" >&5
40306 $as_echo_n "checking max indexes per table... " >&6; }
40308 cat >>confdefs.h <<_ACEOF
40309 #define MAX_INDEXES $max_indexes
40310 _ACEOF
40312 { $as_echo "$as_me:$LINENO: result: $max_indexes" >&5
40313 $as_echo "$max_indexes" >&6; }
40317 cat >>confdefs.h <<\_ACEOF
40318 #define HAVE_VIO_READ_BUFF 1
40319 _ACEOF
40324 ac_config_files="$ac_config_files extra/yassl/Makefile extra/yassl/taocrypt/Makefile extra/yassl/taocrypt/benchmark/Makefile extra/yassl/taocrypt/src/Makefile extra/yassl/taocrypt/test/Makefile extra/yassl/src/Makefile extra/yassl/testsuite/Makefile"
40327 { $as_echo "$as_me:$LINENO: checking for SSL" >&5
40328 $as_echo_n "checking for SSL... " >&6; }
40330 # Check whether --with-ssl was given.
40331 if test "${with_ssl+set}" = set; then
40332 withval=$with_ssl; mysql_ssl_dir="$withval"
40333 else
40334 mysql_ssl_dir=no
40338 if test "$with_yassl"
40339 then
40340 { { $as_echo "$as_me:$LINENO: error: The flag --with-yassl is deprecated, use --with-ssl" >&5
40341 $as_echo "$as_me: error: The flag --with-yassl is deprecated, use --with-ssl" >&2;}
40342 { (exit 1); exit 1; }; }
40345 if test "$with_openssl"
40346 then
40347 { { $as_echo "$as_me:$LINENO: error: The flag --with-openssl is deprecated, use --with-ssl" >&5
40348 $as_echo "$as_me: error: The flag --with-openssl is deprecated, use --with-ssl" >&2;}
40349 { (exit 1); exit 1; }; }
40352 case "$mysql_ssl_dir" in
40353 "no")
40355 # Don't include SSL support
40357 { $as_echo "$as_me:$LINENO: result: disabled" >&5
40358 $as_echo "disabled" >&6; }
40361 "bundled"|"yes")
40363 # Use the bundled SSL implementation (yaSSL)
40367 with_bundled_yassl="yes"
40369 yassl_dir="yassl"
40372 yassl_libs="\$(top_builddir)/extra/yassl/src/libyassl.la \
40373 \$(top_builddir)/extra/yassl/taocrypt/src/libtaocrypt.la"
40377 cat >>confdefs.h <<\_ACEOF
40378 #define HAVE_OPENSSL 1
40379 _ACEOF
40382 cat >>confdefs.h <<\_ACEOF
40383 #define HAVE_YASSL 1
40384 _ACEOF
40387 # System specific checks
40388 yassl_integer_extra_cxxflags=""
40389 case $host_cpu--$CXX_VERSION in
40390 sparc*--*Sun*C++*5.6*)
40391 # Disable inlining when compiling taocrypt/src/
40392 yassl_taocrypt_extra_cxxflags="+d"
40393 { $as_echo "$as_me:$LINENO: disabling inlining for yassl/taocrypt/src/" >&5
40394 $as_echo "$as_me: disabling inlining for yassl/taocrypt/src/" >&6;}
40396 esac
40399 # Thread safe check
40400 yassl_thread_cxxflags=""
40401 yassl_thread_safe=""
40402 if test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no"; then
40403 yassl_thread_cxxflags="-DMULTI_THREADED"
40404 yassl_thread_safe="(thread-safe)"
40408 # Link extra/yassl/include/openssl subdir to include/
40409 yassl_h_ln_cmd="\$(LN) -s \$(top_srcdir)/extra/yassl/include/openssl openssl"
40412 { $as_echo "$as_me:$LINENO: result: using bundled yaSSL $yassl_thread_safe" >&5
40413 $as_echo "using bundled yaSSL $yassl_thread_safe" >&6; }
40419 # A location where to search for OpenSSL was specified
40422 location="$mysql_ssl_dir"
40425 # Set include paths
40427 openssl_include="$location/include"
40428 openssl_includes=""
40430 # Don't set ssl_includes to /usr/include as this gives us a lot of
40431 # compiler warnings when using gcc 3.x
40432 if test "$openssl_include" != "/usr/include"
40433 then
40434 openssl_includes="-I$openssl_include"
40438 # Try to link with openSSL libs in <location>
40440 openssl_libs="-L$location/lib/ -lssl -lcrypto"
40442 ssl_incs="$openssl_includes"
40443 ssl_libs="$openssl_libs"
40444 save_CPPFLAGS="$CPPFLAGS"
40445 save_LIBS="$LIBS"
40446 CPPFLAGS="$ssl_incs $CPPFLAGS"
40447 LIBS="$LIBS $ssl_libs"
40448 cat >conftest.$ac_ext <<_ACEOF
40449 /* confdefs.h. */
40450 _ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h. */
40454 #include <openssl/ssl.h>
40456 main ()
40458 return SSL_library_init();
40460 return 0;
40462 _ACEOF
40463 rm -f conftest.$ac_objext conftest$ac_exeext
40464 if { (ac_try="$ac_link"
40465 case "(($ac_try" in
40466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40467 *) ac_try_echo=$ac_try;;
40468 esac
40469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40470 $as_echo "$ac_try_echo") >&5
40471 (eval "$ac_link") 2>conftest.er1
40472 ac_status=$?
40473 grep -v '^ *+' conftest.er1 >conftest.err
40474 rm -f conftest.er1
40475 cat conftest.err >&5
40476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); } && {
40478 test -z "$ac_c_werror_flag" ||
40479 test ! -s conftest.err
40480 } && test -s conftest$ac_exeext && {
40481 test "$cross_compiling" = yes ||
40482 $as_test_x conftest$ac_exeext
40483 }; then
40484 mysql_ssl_found="yes"
40485 else
40486 $as_echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40489 mysql_ssl_found="no"
40492 rm -rf conftest.dSYM
40493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40494 conftest$ac_exeext conftest.$ac_ext
40495 CPPFLAGS="$save_CPPFLAGS"
40496 LIBS="$save_LIBS"
40499 if test "$mysql_ssl_found" == "no"
40500 then
40502 # BUG 764: Compile failure with OpenSSL on Red Hat Linux (krb5.h missing)
40503 # Try to link with include paths to kerberos set
40505 openssl_includes="$openssl_includes -I/usr/kerberos/include"
40507 ssl_incs="$openssl_includes"
40508 ssl_libs="$openssl_libs"
40509 save_CPPFLAGS="$CPPFLAGS"
40510 save_LIBS="$LIBS"
40511 CPPFLAGS="$ssl_incs $CPPFLAGS"
40512 LIBS="$LIBS $ssl_libs"
40513 cat >conftest.$ac_ext <<_ACEOF
40514 /* confdefs.h. */
40515 _ACEOF
40516 cat confdefs.h >>conftest.$ac_ext
40517 cat >>conftest.$ac_ext <<_ACEOF
40518 /* end confdefs.h. */
40519 #include <openssl/ssl.h>
40521 main ()
40523 return SSL_library_init();
40525 return 0;
40527 _ACEOF
40528 rm -f conftest.$ac_objext conftest$ac_exeext
40529 if { (ac_try="$ac_link"
40530 case "(($ac_try" in
40531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40532 *) ac_try_echo=$ac_try;;
40533 esac
40534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40535 $as_echo "$ac_try_echo") >&5
40536 (eval "$ac_link") 2>conftest.er1
40537 ac_status=$?
40538 grep -v '^ *+' conftest.er1 >conftest.err
40539 rm -f conftest.er1
40540 cat conftest.err >&5
40541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } && {
40543 test -z "$ac_c_werror_flag" ||
40544 test ! -s conftest.err
40545 } && test -s conftest$ac_exeext && {
40546 test "$cross_compiling" = yes ||
40547 $as_test_x conftest$ac_exeext
40548 }; then
40549 mysql_ssl_found="yes"
40550 else
40551 $as_echo "$as_me: failed program was:" >&5
40552 sed 's/^/| /' conftest.$ac_ext >&5
40554 mysql_ssl_found="no"
40557 rm -rf conftest.dSYM
40558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40559 conftest$ac_exeext conftest.$ac_ext
40560 CPPFLAGS="$save_CPPFLAGS"
40561 LIBS="$save_LIBS"
40565 if test "$mysql_ssl_found" == "no"
40566 then
40567 { { $as_echo "$as_me:$LINENO: error: Could not link with SSL libs at $location" >&5
40568 $as_echo "$as_me: error: Could not link with SSL libs at $location" >&2;}
40569 { (exit 1); exit 1; }; }
40572 # openssl-devel-0.9.6 requires dlopen() and we can't link staticly
40573 # on many platforms (We should actually test this here, but it's quite
40574 # hard to do as we are doing libtool for linking.)
40575 case "$CLIENT_EXTRA_LDFLAGS $MYSQLD_EXTRA_LDFLAGS" in
40576 *-all-static*)
40577 { { $as_echo "$as_me:$LINENO: error: You can't use the --all-static link option when using openssl." >&5
40578 $as_echo "$as_me: error: You can't use the --all-static link option when using openssl." >&2;}
40579 { (exit 1); exit 1; }; }
40581 esac
40586 NON_THREADED_CLIENT_LIBS="$NON_THREADED_CLIENT_LIBS $openssl_libs"
40589 cat >>confdefs.h <<\_ACEOF
40590 #define HAVE_OPENSSL 1
40591 _ACEOF
40593 { $as_echo "$as_me:$LINENO: result: using openSSL from $location" >&5
40594 $as_echo "using openSSL from $location" >&6; }
40597 esac
40598 if test "$with_bundled_yassl" = "yes" ; then
40599 HAVE_YASSL_TRUE=
40600 HAVE_YASSL_FALSE='#'
40601 else
40602 HAVE_YASSL_TRUE='#'
40603 HAVE_YASSL_FALSE=
40608 #--------------------------------------------------------------------
40609 # Declare our plugin modules
40610 # Has to be done late, as the plugin may need to check for existence of
40611 # functions tested above
40612 #--------------------------------------------------------------------
40696 if test "${with_partition+set}" = set; then
40697 with_plugin_partition="$with_partition"
40887 if test "${with_archive_storage_engine+set}" = set; then
40888 with_plugin_archive="$with_archive_storage_engine"
41001 if test "${with_blackhole_storage_engine+set}" = set; then
41002 with_plugin_blackhole="$with_blackhole_storage_engine"
41088 if test "${with_csv_storage_engine+set}" = set; then
41089 with_plugin_csv="$with_csv_storage_engine"
41214 if test "${with_example_storage_engine+set}" = set; then
41215 with_plugin_example="$with_example_storage_engine"
41318 if test "${with_federated_storage_engine+set}" = set; then
41319 with_plugin_federated="$with_federated_storage_engine"
41535 if test "${with_innodb+set}" = set; then
41536 with_plugin_innobase="$with_innodb"
41584 # vim: set ft=config:
41591 # Copyright (c) 2006, 2010, Innobase Oy. All Rights Reserved.
41593 # This program is free software; you can redistribute it and/or modify it under
41594 # the terms of the GNU General Public License as published by the Free Software
41595 # Foundation; version 2 of the License.
41597 # This program is distributed in the hope that it will be useful, but WITHOUT
41598 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
41599 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
41601 # You should have received a copy of the GNU General Public License along with
41602 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
41603 # Fifth Floor, Boston, MA 02110-1301, USA
41689 if test "${with_innodb_plugin_storage_engine+set}" = set; then
41690 with_plugin_innodb_plugin="$with_innodb_plugin_storage_engine"
41705 # Enable if you know what you are doing (trying to link both InnoDB and
41706 # InnoDB Plugin statically into MySQL does not work).
41707 #MYSQL_PLUGIN_STATIC(innodb_plugin, [libinnobase.a])
41731 # vim: set ft=config:
41986 if test "${with_ndbcluster+set}" = set; then
41987 with_plugin_ndbcluster="$with_ndbcluster"
42090 # Check whether --with-plugins was given.
42091 if test "${with_plugins+set}" = set; then
42092 withval=$with_plugins; mysql_plugins="`echo $withval | tr ',.:;*' ' '`"
42093 else
42094 mysql_plugins='none'
42100 case "$mysql_plugins" in
42101 all )
42102 mysql_plugins='partition daemon_example ftexample archive blackhole csv example federated heap innobase innodb_plugin myisam myisammrg ndbcluster'
42104 none )
42105 mysql_plugins=''
42109 max )
42111 mysql_plugins='partition archive blackhole example federated innobase innodb_plugin ndbcluster'
42116 max-no-ndb )
42118 mysql_plugins='partition archive blackhole example federated innobase innodb_plugin'
42126 esac
42128 for plugin in $mysql_plugins; do
42129 case "$plugin" in
42130 all | none )
42131 { { $as_echo "$as_me:$LINENO: error: bad plugin name: $plugin" >&5
42132 $as_echo "$as_me: error: bad plugin name: $plugin" >&2;}
42133 { (exit 1); exit 1; }; }
42140 partition )
42144 mysql_plugin_partition=yes
42154 daemon_example )
42158 { $as_echo "$as_me:$LINENO: WARNING: Daemon Example Plugin can only be built as a plugin" >&5
42159 $as_echo "$as_me: WARNING: Daemon Example Plugin can only be built as a plugin" >&2;}
42169 ftexample )
42173 { $as_echo "$as_me:$LINENO: WARNING: Simple Parser can only be built as a plugin" >&5
42174 $as_echo "$as_me: WARNING: Simple Parser can only be built as a plugin" >&2;}
42184 archive )
42188 mysql_plugin_archive=yes
42198 blackhole )
42202 mysql_plugin_blackhole=yes
42212 csv )
42216 mysql_plugin_csv=yes
42226 example )
42230 { $as_echo "$as_me:$LINENO: WARNING: Example Storage Engine can only be built as a plugin" >&5
42231 $as_echo "$as_me: WARNING: Example Storage Engine can only be built as a plugin" >&2;}
42241 federated )
42245 mysql_plugin_federated=yes
42255 heap )
42259 mysql_plugin_heap=yes
42267 innobase )
42271 mysql_plugin_innobase=yes
42279 innodb_plugin )
42283 { $as_echo "$as_me:$LINENO: WARNING: InnoDB Storage Engine can only be built as a plugin" >&5
42284 $as_echo "$as_me: WARNING: InnoDB Storage Engine can only be built as a plugin" >&2;}
42294 myisam )
42298 mysql_plugin_myisam=yes
42308 myisammrg )
42312 mysql_plugin_myisammrg=yes
42320 ndbcluster )
42324 mysql_plugin_ndbcluster=yes
42361 { { $as_echo "$as_me:$LINENO: error: unknown plugin: $plugin" >&5
42362 $as_echo "$as_me: error: unknown plugin: $plugin" >&2;}
42363 { (exit 1); exit 1; }; }
42365 esac
42366 done
42437 if test "X$mysql_plugin_ndbcluster" = Xyes -a \
42438 "X$with_plugin_ndbcluster" != Xno -o \
42439 "X$with_plugin_ndbcluster" = Xyes; then
42443 mysql_plugin_partition=yes
42444 if test "X$with_plugin_partition" = Xno; then
42445 { { $as_echo "$as_me:$LINENO: error: depends upon disabled plugin partition" >&5
42446 $as_echo "$as_me: error: depends upon disabled plugin partition" >&2;}
42447 { (exit 1); exit 1; }; }
42499 { $as_echo "$as_me:$LINENO: checking whether to use Partition Support" >&5
42500 $as_echo_n "checking whether to use Partition Support... " >&6; }
42501 mysql_use_plugin_dir=""
42504 # Plugin is not disabled, determine if it should be built,
42505 # or only distributed
42510 case "$with_mysqld_ldflags " in
42511 *"-all-static "*)
42512 # No need to build shared plugins when mysqld is linked with
42513 # -all-static as it won't be able to load them.
42514 if test "X$mysql_plugin_partition" != Xyes -a \
42515 "X$with_plugin_partition" != Xyes; then
42516 with_plugin_partition=no
42519 esac
42523 if test "X$with_plugin_partition" = Xno; then
42524 { $as_echo "$as_me:$LINENO: result: no" >&5
42525 $as_echo "no" >&6; }
42526 else
42528 if test "X$mysql_plugin_partition" != Xyes -a \
42529 "X$with_plugin_partition" != Xyes; then
42531 with_plugin_partition=no
42532 { $as_echo "$as_me:$LINENO: result: no" >&5
42533 $as_echo "no" >&6; }
42535 else
42539 cat >>confdefs.h <<\_ACEOF
42540 #define WITH_PARTITION_STORAGE_ENGINE 1
42541 _ACEOF
42543 plugin_partition_static_target="yes"
42545 plugin_partition_shared_target=""
42550 mysql_plugin_defs="$mysql_plugin_defs, builtin_partition_plugin"
42551 with_plugin_partition=yes
42552 { $as_echo "$as_me:$LINENO: result: yes" >&5
42553 $as_echo "yes" >&6; }
42567 { $as_echo "$as_me:$LINENO: checking whether to use Daemon Example Plugin" >&5
42568 $as_echo_n "checking whether to use Daemon Example Plugin... " >&6; }
42569 mysql_use_plugin_dir=""
42572 # Plugin is not disabled, determine if it should be built,
42573 # or only distributed
42576 if test ! -d "$srcdir/plugin/daemon_example"; then
42577 # Plugin directory was removed after autoconf was run; treat
42578 # this as a disabled plugin
42579 if test "X$with_plugin_daemon_example" = Xyes; then
42580 { $as_echo "$as_me:$LINENO: result: error" >&5
42581 $as_echo "error" >&6; }
42582 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
42583 $as_echo "$as_me: error: disabled" >&2;}
42584 { (exit 1); exit 1; }; }
42587 # The result message will be printed below
42588 with_plugin_daemon_example=no
42593 case "$with_mysqld_ldflags " in
42594 *"-all-static "*)
42595 # No need to build shared plugins when mysqld is linked with
42596 # -all-static as it won't be able to load them.
42597 if test "X$mysql_plugin_daemon_example" != Xyes -a \
42598 "X$with_plugin_daemon_example" != Xyes; then
42599 with_plugin_daemon_example=no
42602 esac
42606 if test "X$with_plugin_daemon_example" = Xno; then
42607 { $as_echo "$as_me:$LINENO: result: no" >&5
42608 $as_echo "no" >&6; }
42609 else
42610 with_plugin_daemon_example=''
42611 if test "X$mysql_plugin_daemon_example" != Xyes -a \
42612 "X$with_plugin_daemon_example" != Xyes; then
42615 if test -d "$srcdir/plugin/daemon_example" ; then
42616 mysql_use_plugin_dir="plugin/daemon_example"
42618 plugin_daemon_example_shared_target="libdaemon_example.la"
42620 plugin_daemon_example_static_target=""
42622 with_plugin_daemon_example=yes
42623 { $as_echo "$as_me:$LINENO: result: plugin" >&5
42624 $as_echo "plugin" >&6; }
42626 else
42627 mysql_plugin_daemon_example=no
42628 { $as_echo "$as_me:$LINENO: result: no" >&5
42629 $as_echo "no" >&6; }
42633 else
42636 { $as_echo "$as_me:$LINENO: result: error" >&5
42637 $as_echo "error" >&6; }
42638 { { $as_echo "$as_me:$LINENO: error: Plugin daemon_example does not support static linking" >&5
42639 $as_echo "$as_me: error: Plugin daemon_example does not support static linking" >&2;}
42640 { (exit 1); exit 1; }; }
42643 mysql_plugin_defs="$mysql_plugin_defs, builtin_daemon_example_plugin"
42644 with_plugin_daemon_example=yes
42645 { $as_echo "$as_me:$LINENO: result: yes" >&5
42646 $as_echo "yes" >&6; }
42652 if test -d "$srcdir/plugin/daemon_example"; then
42653 # Even if we don't build a plugin, we bundle its source into the dist
42654 # file. So its Makefile (and Makefiles for any subdirs) must be
42655 # generated for 'make dist' to work.
42658 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
42659 # a subdir; for our purposes, it's enough to just check for existing
42660 # Makefile.am files and add them in here
42661 ac_config_files="$ac_config_files plugin/daemon_example/Makefile"
42667 mysql_pg_distdirs="$mysql_pg_distdirs daemon_example"
42668 if test -n "$mysql_use_plugin_dir" ; then
42669 mysql_pg_dirs="$mysql_pg_dirs daemon_example"
42670 mysql_pg_unittest_dirs="$mysql_pg_unittest_dirs ../plugin/daemon_example"
42682 { $as_echo "$as_me:$LINENO: checking whether to use Simple Parser" >&5
42683 $as_echo_n "checking whether to use Simple Parser... " >&6; }
42684 mysql_use_plugin_dir=""
42687 # Plugin is not disabled, determine if it should be built,
42688 # or only distributed
42691 if test ! -d "$srcdir/plugin/fulltext"; then
42692 # Plugin directory was removed after autoconf was run; treat
42693 # this as a disabled plugin
42694 if test "X$with_plugin_ftexample" = Xyes; then
42695 { $as_echo "$as_me:$LINENO: result: error" >&5
42696 $as_echo "error" >&6; }
42697 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
42698 $as_echo "$as_me: error: disabled" >&2;}
42699 { (exit 1); exit 1; }; }
42702 # The result message will be printed below
42703 with_plugin_ftexample=no
42708 case "$with_mysqld_ldflags " in
42709 *"-all-static "*)
42710 # No need to build shared plugins when mysqld is linked with
42711 # -all-static as it won't be able to load them.
42712 if test "X$mysql_plugin_ftexample" != Xyes -a \
42713 "X$with_plugin_ftexample" != Xyes; then
42714 with_plugin_ftexample=no
42717 esac
42721 if test "X$with_plugin_ftexample" = Xno; then
42722 { $as_echo "$as_me:$LINENO: result: no" >&5
42723 $as_echo "no" >&6; }
42724 else
42725 with_plugin_ftexample=''
42726 if test "X$mysql_plugin_ftexample" != Xyes -a \
42727 "X$with_plugin_ftexample" != Xyes; then
42730 if test -d "$srcdir/plugin/fulltext" ; then
42731 mysql_use_plugin_dir="plugin/fulltext"
42733 plugin_ftexample_shared_target="mypluglib.la"
42735 plugin_ftexample_static_target=""
42737 with_plugin_ftexample=yes
42738 { $as_echo "$as_me:$LINENO: result: plugin" >&5
42739 $as_echo "plugin" >&6; }
42741 else
42742 mysql_plugin_ftexample=no
42743 { $as_echo "$as_me:$LINENO: result: no" >&5
42744 $as_echo "no" >&6; }
42748 else
42751 { $as_echo "$as_me:$LINENO: result: error" >&5
42752 $as_echo "error" >&6; }
42753 { { $as_echo "$as_me:$LINENO: error: Plugin ftexample does not support static linking" >&5
42754 $as_echo "$as_me: error: Plugin ftexample does not support static linking" >&2;}
42755 { (exit 1); exit 1; }; }
42758 mysql_plugin_defs="$mysql_plugin_defs, builtin_ftexample_plugin"
42759 with_plugin_ftexample=yes
42760 { $as_echo "$as_me:$LINENO: result: yes" >&5
42761 $as_echo "yes" >&6; }
42767 if test -d "$srcdir/plugin/fulltext"; then
42768 # Even if we don't build a plugin, we bundle its source into the dist
42769 # file. So its Makefile (and Makefiles for any subdirs) must be
42770 # generated for 'make dist' to work.
42773 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
42774 # a subdir; for our purposes, it's enough to just check for existing
42775 # Makefile.am files and add them in here
42776 ac_config_files="$ac_config_files plugin/fulltext/Makefile"
42782 mysql_pg_distdirs="$mysql_pg_distdirs fulltext"
42783 if test -n "$mysql_use_plugin_dir" ; then
42784 mysql_pg_dirs="$mysql_pg_dirs fulltext"
42785 mysql_pg_unittest_dirs="$mysql_pg_unittest_dirs ../plugin/fulltext"
42800 { $as_echo "$as_me:$LINENO: checking whether to use Archive Storage Engine" >&5
42801 $as_echo_n "checking whether to use Archive Storage Engine... " >&6; }
42802 mysql_use_plugin_dir=""
42805 # Plugin is not disabled, determine if it should be built,
42806 # or only distributed
42809 if test ! -d "$srcdir/storage/archive"; then
42810 # Plugin directory was removed after autoconf was run; treat
42811 # this as a disabled plugin
42812 if test "X$with_plugin_archive" = Xyes; then
42813 { $as_echo "$as_me:$LINENO: result: error" >&5
42814 $as_echo "error" >&6; }
42815 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
42816 $as_echo "$as_me: error: disabled" >&2;}
42817 { (exit 1); exit 1; }; }
42820 # The result message will be printed below
42821 with_plugin_archive=no
42826 case "$with_mysqld_ldflags " in
42827 *"-all-static "*)
42828 # No need to build shared plugins when mysqld is linked with
42829 # -all-static as it won't be able to load them.
42830 if test "X$mysql_plugin_archive" != Xyes -a \
42831 "X$with_plugin_archive" != Xyes; then
42832 with_plugin_archive=no
42835 esac
42839 if test "X$with_plugin_archive" = Xno; then
42840 { $as_echo "$as_me:$LINENO: result: no" >&5
42841 $as_echo "no" >&6; }
42842 else
42844 if test "X$mysql_plugin_archive" != Xyes -a \
42845 "X$with_plugin_archive" != Xyes; then
42848 if test -d "$srcdir/storage/archive" ; then
42849 mysql_use_plugin_dir="storage/archive"
42851 plugin_archive_shared_target="ha_archive.la"
42853 plugin_archive_static_target=""
42855 with_plugin_archive=yes
42856 { $as_echo "$as_me:$LINENO: result: plugin" >&5
42857 $as_echo "plugin" >&6; }
42859 else
42860 mysql_plugin_archive=no
42861 { $as_echo "$as_me:$LINENO: result: no" >&5
42862 $as_echo "no" >&6; }
42866 else
42870 mysql_use_plugin_dir="storage/archive"
42871 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/archive/libarchive.a"
42875 cat >>confdefs.h <<\_ACEOF
42876 #define WITH_ARCHIVE_STORAGE_ENGINE 1
42877 _ACEOF
42880 plugin_archive_static_target="libarchive.a"
42882 plugin_archive_shared_target=""
42885 mysql_plugin_defs="$mysql_plugin_defs, builtin_archive_plugin"
42886 with_plugin_archive=yes
42887 { $as_echo "$as_me:$LINENO: result: yes" >&5
42888 $as_echo "yes" >&6; }
42894 if test -d "$srcdir/storage/archive"; then
42895 # Even if we don't build a plugin, we bundle its source into the dist
42896 # file. So its Makefile (and Makefiles for any subdirs) must be
42897 # generated for 'make dist' to work.
42900 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
42901 # a subdir; for our purposes, it's enough to just check for existing
42902 # Makefile.am files and add them in here
42903 ac_config_files="$ac_config_files storage/archive/Makefile"
42909 mysql_se_distdirs="$mysql_se_distdirs archive"
42910 if test -n "$mysql_use_plugin_dir" ; then
42911 mysql_se_dirs="$mysql_se_dirs archive"
42912 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/archive"
42927 { $as_echo "$as_me:$LINENO: checking whether to use Blackhole Storage Engine" >&5
42928 $as_echo_n "checking whether to use Blackhole Storage Engine... " >&6; }
42929 mysql_use_plugin_dir=""
42932 # Plugin is not disabled, determine if it should be built,
42933 # or only distributed
42936 if test ! -d "$srcdir/storage/blackhole"; then
42937 # Plugin directory was removed after autoconf was run; treat
42938 # this as a disabled plugin
42939 if test "X$with_plugin_blackhole" = Xyes; then
42940 { $as_echo "$as_me:$LINENO: result: error" >&5
42941 $as_echo "error" >&6; }
42942 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
42943 $as_echo "$as_me: error: disabled" >&2;}
42944 { (exit 1); exit 1; }; }
42947 # The result message will be printed below
42948 with_plugin_blackhole=no
42953 case "$with_mysqld_ldflags " in
42954 *"-all-static "*)
42955 # No need to build shared plugins when mysqld is linked with
42956 # -all-static as it won't be able to load them.
42957 if test "X$mysql_plugin_blackhole" != Xyes -a \
42958 "X$with_plugin_blackhole" != Xyes; then
42959 with_plugin_blackhole=no
42962 esac
42966 if test "X$with_plugin_blackhole" = Xno; then
42967 { $as_echo "$as_me:$LINENO: result: no" >&5
42968 $as_echo "no" >&6; }
42969 else
42971 if test "X$mysql_plugin_blackhole" != Xyes -a \
42972 "X$with_plugin_blackhole" != Xyes; then
42975 if test -d "$srcdir/storage/blackhole" ; then
42976 mysql_use_plugin_dir="storage/blackhole"
42978 plugin_blackhole_shared_target="ha_blackhole.la"
42980 plugin_blackhole_static_target=""
42982 with_plugin_blackhole=yes
42983 { $as_echo "$as_me:$LINENO: result: plugin" >&5
42984 $as_echo "plugin" >&6; }
42986 else
42987 mysql_plugin_blackhole=no
42988 { $as_echo "$as_me:$LINENO: result: no" >&5
42989 $as_echo "no" >&6; }
42993 else
42997 mysql_use_plugin_dir="storage/blackhole"
42998 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/blackhole/libblackhole.a"
43002 cat >>confdefs.h <<\_ACEOF
43003 #define WITH_BLACKHOLE_STORAGE_ENGINE 1
43004 _ACEOF
43007 plugin_blackhole_static_target="libblackhole.a"
43009 plugin_blackhole_shared_target=""
43012 mysql_plugin_defs="$mysql_plugin_defs, builtin_blackhole_plugin"
43013 with_plugin_blackhole=yes
43014 { $as_echo "$as_me:$LINENO: result: yes" >&5
43015 $as_echo "yes" >&6; }
43021 if test -d "$srcdir/storage/blackhole"; then
43022 # Even if we don't build a plugin, we bundle its source into the dist
43023 # file. So its Makefile (and Makefiles for any subdirs) must be
43024 # generated for 'make dist' to work.
43027 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43028 # a subdir; for our purposes, it's enough to just check for existing
43029 # Makefile.am files and add them in here
43030 ac_config_files="$ac_config_files storage/blackhole/Makefile"
43036 mysql_se_distdirs="$mysql_se_distdirs blackhole"
43037 if test -n "$mysql_use_plugin_dir" ; then
43038 mysql_se_dirs="$mysql_se_dirs blackhole"
43039 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/blackhole"
43054 { $as_echo "$as_me:$LINENO: checking whether to use CSV Storage Engine" >&5
43055 $as_echo_n "checking whether to use CSV Storage Engine... " >&6; }
43056 mysql_use_plugin_dir=""
43059 # Plugin is not disabled, determine if it should be built,
43060 # or only distributed
43063 if test ! -d "$srcdir/storage/csv"; then
43064 # Plugin directory was removed after autoconf was run; treat
43065 # this as a disabled plugin
43066 if test "X$with_plugin_csv" = Xyes; then
43067 { $as_echo "$as_me:$LINENO: result: error" >&5
43068 $as_echo "error" >&6; }
43069 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43070 $as_echo "$as_me: error: disabled" >&2;}
43071 { (exit 1); exit 1; }; }
43074 # The result message will be printed below
43075 with_plugin_csv=no
43080 if test "X$with_plugin_csv" = Xno; then
43081 { $as_echo "$as_me:$LINENO: result: error" >&5
43082 $as_echo "error" >&6; }
43083 { { $as_echo "$as_me:$LINENO: error: cannot disable mandatory plugin" >&5
43084 $as_echo "$as_me: error: cannot disable mandatory plugin" >&2;}
43085 { (exit 1); exit 1; }; }
43087 mysql_plugin_csv=yes
43091 if test "X$with_plugin_csv" = Xno; then
43092 { $as_echo "$as_me:$LINENO: result: no" >&5
43093 $as_echo "no" >&6; }
43094 else
43096 if test "X$mysql_plugin_csv" != Xyes -a \
43097 "X$with_plugin_csv" != Xyes; then
43099 with_plugin_csv=no
43100 { $as_echo "$as_me:$LINENO: result: no" >&5
43101 $as_echo "no" >&6; }
43103 else
43107 mysql_use_plugin_dir="storage/csv"
43108 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/csv/libcsv.a"
43112 cat >>confdefs.h <<\_ACEOF
43113 #define WITH_CSV_STORAGE_ENGINE 1
43114 _ACEOF
43117 plugin_csv_static_target="libcsv.a"
43119 plugin_csv_shared_target=""
43122 mysql_plugin_defs="$mysql_plugin_defs, builtin_csv_plugin"
43123 with_plugin_csv=yes
43124 { $as_echo "$as_me:$LINENO: result: yes" >&5
43125 $as_echo "yes" >&6; }
43131 if test -d "$srcdir/storage/csv"; then
43132 # Even if we don't build a plugin, we bundle its source into the dist
43133 # file. So its Makefile (and Makefiles for any subdirs) must be
43134 # generated for 'make dist' to work.
43137 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43138 # a subdir; for our purposes, it's enough to just check for existing
43139 # Makefile.am files and add them in here
43140 ac_config_files="$ac_config_files storage/csv/Makefile"
43146 mysql_se_distdirs="$mysql_se_distdirs csv"
43147 if test -n "$mysql_use_plugin_dir" ; then
43148 mysql_se_dirs="$mysql_se_dirs csv"
43149 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/csv"
43164 { $as_echo "$as_me:$LINENO: checking whether to use Example Storage Engine" >&5
43165 $as_echo_n "checking whether to use Example Storage Engine... " >&6; }
43166 mysql_use_plugin_dir=""
43169 # Plugin is not disabled, determine if it should be built,
43170 # or only distributed
43173 if test ! -d "$srcdir/storage/example"; then
43174 # Plugin directory was removed after autoconf was run; treat
43175 # this as a disabled plugin
43176 if test "X$with_plugin_example" = Xyes; then
43177 { $as_echo "$as_me:$LINENO: result: error" >&5
43178 $as_echo "error" >&6; }
43179 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43180 $as_echo "$as_me: error: disabled" >&2;}
43181 { (exit 1); exit 1; }; }
43184 # The result message will be printed below
43185 with_plugin_example=no
43190 case "$with_mysqld_ldflags " in
43191 *"-all-static "*)
43192 # No need to build shared plugins when mysqld is linked with
43193 # -all-static as it won't be able to load them.
43194 if test "X$mysql_plugin_example" != Xyes -a \
43195 "X$with_plugin_example" != Xyes; then
43196 with_plugin_example=no
43199 esac
43203 if test "X$with_plugin_example" = Xno; then
43204 { $as_echo "$as_me:$LINENO: result: no" >&5
43205 $as_echo "no" >&6; }
43206 else
43207 with_plugin_example=''
43208 if test "X$mysql_plugin_example" != Xyes -a \
43209 "X$with_plugin_example" != Xyes; then
43212 if test -d "$srcdir/storage/example" ; then
43213 mysql_use_plugin_dir="storage/example"
43215 plugin_example_shared_target="ha_example.la"
43217 plugin_example_static_target=""
43219 with_plugin_example=yes
43220 { $as_echo "$as_me:$LINENO: result: plugin" >&5
43221 $as_echo "plugin" >&6; }
43223 else
43224 mysql_plugin_example=no
43225 { $as_echo "$as_me:$LINENO: result: no" >&5
43226 $as_echo "no" >&6; }
43230 else
43233 { $as_echo "$as_me:$LINENO: result: error" >&5
43234 $as_echo "error" >&6; }
43235 { { $as_echo "$as_me:$LINENO: error: Plugin example does not support static linking" >&5
43236 $as_echo "$as_me: error: Plugin example does not support static linking" >&2;}
43237 { (exit 1); exit 1; }; }
43240 mysql_plugin_defs="$mysql_plugin_defs, builtin_example_plugin"
43241 with_plugin_example=yes
43242 { $as_echo "$as_me:$LINENO: result: yes" >&5
43243 $as_echo "yes" >&6; }
43249 if test -d "$srcdir/storage/example"; then
43250 # Even if we don't build a plugin, we bundle its source into the dist
43251 # file. So its Makefile (and Makefiles for any subdirs) must be
43252 # generated for 'make dist' to work.
43255 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43256 # a subdir; for our purposes, it's enough to just check for existing
43257 # Makefile.am files and add them in here
43258 ac_config_files="$ac_config_files storage/example/Makefile"
43264 mysql_se_distdirs="$mysql_se_distdirs example"
43265 if test -n "$mysql_use_plugin_dir" ; then
43266 mysql_se_dirs="$mysql_se_dirs example"
43267 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/example"
43282 { $as_echo "$as_me:$LINENO: checking whether to use Federated Storage Engine" >&5
43283 $as_echo_n "checking whether to use Federated Storage Engine... " >&6; }
43284 mysql_use_plugin_dir=""
43287 # Plugin is not disabled, determine if it should be built,
43288 # or only distributed
43291 if test ! -d "$srcdir/storage/federated"; then
43292 # Plugin directory was removed after autoconf was run; treat
43293 # this as a disabled plugin
43294 if test "X$with_plugin_federated" = Xyes; then
43295 { $as_echo "$as_me:$LINENO: result: error" >&5
43296 $as_echo "error" >&6; }
43297 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43298 $as_echo "$as_me: error: disabled" >&2;}
43299 { (exit 1); exit 1; }; }
43302 # The result message will be printed below
43303 with_plugin_federated=no
43308 case "$with_mysqld_ldflags " in
43309 *"-all-static "*)
43310 # No need to build shared plugins when mysqld is linked with
43311 # -all-static as it won't be able to load them.
43312 if test "X$mysql_plugin_federated" != Xyes -a \
43313 "X$with_plugin_federated" != Xyes; then
43314 with_plugin_federated=no
43317 esac
43321 if test "X$with_plugin_federated" = Xno; then
43322 { $as_echo "$as_me:$LINENO: result: no" >&5
43323 $as_echo "no" >&6; }
43324 else
43326 if test "X$mysql_plugin_federated" != Xyes -a \
43327 "X$with_plugin_federated" != Xyes; then
43330 if test -d "$srcdir/storage/federated" ; then
43331 mysql_use_plugin_dir="storage/federated"
43333 plugin_federated_shared_target="ha_federated.la"
43335 plugin_federated_static_target=""
43337 with_plugin_federated=yes
43338 { $as_echo "$as_me:$LINENO: result: plugin" >&5
43339 $as_echo "plugin" >&6; }
43341 else
43342 mysql_plugin_federated=no
43343 { $as_echo "$as_me:$LINENO: result: no" >&5
43344 $as_echo "no" >&6; }
43348 else
43352 mysql_use_plugin_dir="storage/federated"
43353 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/federated/libfederated.a"
43357 cat >>confdefs.h <<\_ACEOF
43358 #define WITH_FEDERATED_STORAGE_ENGINE 1
43359 _ACEOF
43362 plugin_federated_static_target="libfederated.a"
43364 plugin_federated_shared_target=""
43367 mysql_plugin_defs="$mysql_plugin_defs, builtin_federated_plugin"
43368 with_plugin_federated=yes
43369 { $as_echo "$as_me:$LINENO: result: yes" >&5
43370 $as_echo "yes" >&6; }
43372 condition_dependent_plugin_modules="$condition_dependent_plugin_modules ha_federated.cc"
43373 condition_dependent_plugin_objects="$condition_dependent_plugin_objects ha_federated.o"
43374 condition_dependent_plugin_links="$condition_dependent_plugin_links storage/federated/ha_federated.cc"
43375 condition_dependent_plugin_includes="$condition_dependent_plugin_includes -I\$(top_srcdir)/storage/federated/"
43381 if test -d "$srcdir/storage/federated"; then
43382 # Even if we don't build a plugin, we bundle its source into the dist
43383 # file. So its Makefile (and Makefiles for any subdirs) must be
43384 # generated for 'make dist' to work.
43387 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43388 # a subdir; for our purposes, it's enough to just check for existing
43389 # Makefile.am files and add them in here
43390 ac_config_files="$ac_config_files storage/federated/Makefile"
43396 mysql_se_distdirs="$mysql_se_distdirs federated"
43397 if test -n "$mysql_use_plugin_dir" ; then
43398 mysql_se_dirs="$mysql_se_dirs federated"
43399 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/federated"
43414 { $as_echo "$as_me:$LINENO: checking whether to use Memory Storage Engine" >&5
43415 $as_echo_n "checking whether to use Memory Storage Engine... " >&6; }
43416 mysql_use_plugin_dir=""
43419 # Plugin is not disabled, determine if it should be built,
43420 # or only distributed
43423 if test ! -d "$srcdir/storage/heap"; then
43424 # Plugin directory was removed after autoconf was run; treat
43425 # this as a disabled plugin
43426 if test "X$with_plugin_heap" = Xyes; then
43427 { $as_echo "$as_me:$LINENO: result: error" >&5
43428 $as_echo "error" >&6; }
43429 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43430 $as_echo "$as_me: error: disabled" >&2;}
43431 { (exit 1); exit 1; }; }
43434 # The result message will be printed below
43435 with_plugin_heap=no
43440 if test "X$with_plugin_heap" = Xno; then
43441 { $as_echo "$as_me:$LINENO: result: error" >&5
43442 $as_echo "error" >&6; }
43443 { { $as_echo "$as_me:$LINENO: error: cannot disable mandatory plugin" >&5
43444 $as_echo "$as_me: error: cannot disable mandatory plugin" >&2;}
43445 { (exit 1); exit 1; }; }
43447 mysql_plugin_heap=yes
43451 if test "X$with_plugin_heap" = Xno; then
43452 { $as_echo "$as_me:$LINENO: result: no" >&5
43453 $as_echo "no" >&6; }
43454 else
43456 if test "X$mysql_plugin_heap" != Xyes -a \
43457 "X$with_plugin_heap" != Xyes; then
43459 with_plugin_heap=no
43460 { $as_echo "$as_me:$LINENO: result: no" >&5
43461 $as_echo "no" >&6; }
43463 else
43467 mysql_use_plugin_dir="storage/heap"
43468 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/heap/libheap.a"
43472 cat >>confdefs.h <<\_ACEOF
43473 #define WITH_HEAP_STORAGE_ENGINE 1
43474 _ACEOF
43477 plugin_heap_static_target="libheap.a"
43479 plugin_heap_shared_target=""
43482 mysql_plugin_defs="$mysql_plugin_defs, builtin_heap_plugin"
43483 with_plugin_heap=yes
43484 { $as_echo "$as_me:$LINENO: result: yes" >&5
43485 $as_echo "yes" >&6; }
43487 condition_dependent_plugin_modules="$condition_dependent_plugin_modules ha_heap.cc"
43488 condition_dependent_plugin_objects="$condition_dependent_plugin_objects ha_heap.o"
43489 condition_dependent_plugin_links="$condition_dependent_plugin_links storage/heap/ha_heap.cc"
43490 condition_dependent_plugin_includes="$condition_dependent_plugin_includes -I\$(top_srcdir)/storage/heap/"
43496 if test -d "$srcdir/storage/heap"; then
43497 # Even if we don't build a plugin, we bundle its source into the dist
43498 # file. So its Makefile (and Makefiles for any subdirs) must be
43499 # generated for 'make dist' to work.
43502 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43503 # a subdir; for our purposes, it's enough to just check for existing
43504 # Makefile.am files and add them in here
43505 ac_config_files="$ac_config_files storage/heap/Makefile"
43511 mysql_se_distdirs="$mysql_se_distdirs heap"
43512 if test -n "$mysql_use_plugin_dir" ; then
43513 mysql_se_dirs="$mysql_se_dirs heap"
43514 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/heap"
43529 { $as_echo "$as_me:$LINENO: checking whether to use InnoDB Storage Engine" >&5
43530 $as_echo_n "checking whether to use InnoDB Storage Engine... " >&6; }
43531 mysql_use_plugin_dir=""
43534 # Plugin is not disabled, determine if it should be built,
43535 # or only distributed
43538 if test ! -d "$srcdir/storage/innobase"; then
43539 # Plugin directory was removed after autoconf was run; treat
43540 # this as a disabled plugin
43541 if test "X$with_plugin_innobase" = Xyes; then
43542 { $as_echo "$as_me:$LINENO: result: error" >&5
43543 $as_echo "error" >&6; }
43544 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43545 $as_echo "$as_me: error: disabled" >&2;}
43546 { (exit 1); exit 1; }; }
43549 # The result message will be printed below
43550 with_plugin_innobase=no
43555 case "$with_mysqld_ldflags " in
43556 *"-all-static "*)
43557 # No need to build shared plugins when mysqld is linked with
43558 # -all-static as it won't be able to load them.
43559 if test "X$mysql_plugin_innobase" != Xyes -a \
43560 "X$with_plugin_innobase" != Xyes; then
43561 with_plugin_innobase=no
43564 esac
43568 if test "X$with_plugin_innobase" = Xno; then
43569 { $as_echo "$as_me:$LINENO: result: no" >&5
43570 $as_echo "no" >&6; }
43571 else
43573 if test "X$mysql_plugin_innobase" != Xyes -a \
43574 "X$with_plugin_innobase" != Xyes; then
43577 if test -d "$srcdir/storage/innobase" ; then
43578 mysql_use_plugin_dir="storage/innobase"
43580 plugin_innobase_shared_target="ha_innodb.la"
43582 plugin_innobase_static_target=""
43584 with_plugin_innobase=yes
43585 { $as_echo "$as_me:$LINENO: result: plugin" >&5
43586 $as_echo "plugin" >&6; }
43588 else
43589 mysql_plugin_innobase=no
43590 { $as_echo "$as_me:$LINENO: result: no" >&5
43591 $as_echo "no" >&6; }
43595 else
43599 mysql_use_plugin_dir="storage/innobase"
43600 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/innobase/libinnobase.a"
43604 cat >>confdefs.h <<\_ACEOF
43605 #define WITH_INNOBASE_STORAGE_ENGINE 1
43606 _ACEOF
43609 plugin_innobase_static_target="libinnobase.a"
43611 plugin_innobase_shared_target=""
43614 mysql_plugin_defs="$mysql_plugin_defs, builtin_innobase_plugin"
43615 with_plugin_innobase=yes
43616 { $as_echo "$as_me:$LINENO: result: yes" >&5
43617 $as_echo "yes" >&6; }
43623 if test -d "$srcdir/storage/innobase"; then
43624 # Even if we don't build a plugin, we bundle its source into the dist
43625 # file. So its Makefile (and Makefiles for any subdirs) must be
43626 # generated for 'make dist' to work.
43629 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43630 # a subdir; for our purposes, it's enough to just check for existing
43631 # Makefile.am files and add them in here
43632 ac_config_files="$ac_config_files storage/innobase/Makefile"
43638 mysql_se_distdirs="$mysql_se_distdirs innobase"
43639 if test -n "$mysql_use_plugin_dir" ; then
43640 mysql_se_dirs="$mysql_se_dirs innobase"
43641 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/innobase"
43656 { $as_echo "$as_me:$LINENO: checking whether to use InnoDB Storage Engine" >&5
43657 $as_echo_n "checking whether to use InnoDB Storage Engine... " >&6; }
43658 mysql_use_plugin_dir=""
43661 # Plugin is not disabled, determine if it should be built,
43662 # or only distributed
43665 if test ! -d "$srcdir/storage/innodb_plugin"; then
43666 # Plugin directory was removed after autoconf was run; treat
43667 # this as a disabled plugin
43668 if test "X$with_plugin_innodb_plugin" = Xyes; then
43669 { $as_echo "$as_me:$LINENO: result: error" >&5
43670 $as_echo "error" >&6; }
43671 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43672 $as_echo "$as_me: error: disabled" >&2;}
43673 { (exit 1); exit 1; }; }
43676 # The result message will be printed below
43677 with_plugin_innodb_plugin=no
43682 case "$with_mysqld_ldflags " in
43683 *"-all-static "*)
43684 # No need to build shared plugins when mysqld is linked with
43685 # -all-static as it won't be able to load them.
43686 if test "X$mysql_plugin_innodb_plugin" != Xyes -a \
43687 "X$with_plugin_innodb_plugin" != Xyes; then
43688 with_plugin_innodb_plugin=no
43691 esac
43695 if test "X$with_plugin_innodb_plugin" = Xno; then
43696 { $as_echo "$as_me:$LINENO: result: no" >&5
43697 $as_echo "no" >&6; }
43698 else
43699 with_plugin_innodb_plugin=''
43700 if test "X$mysql_plugin_innodb_plugin" != Xyes -a \
43701 "X$with_plugin_innodb_plugin" != Xyes; then
43704 if test -d "$srcdir/storage/innodb_plugin" ; then
43705 mysql_use_plugin_dir="storage/innodb_plugin"
43707 plugin_innodb_plugin_shared_target="ha_innodb_plugin.la"
43709 plugin_innodb_plugin_static_target=""
43711 with_plugin_innodb_plugin=yes
43712 { $as_echo "$as_me:$LINENO: result: plugin" >&5
43713 $as_echo "plugin" >&6; }
43715 else
43716 mysql_plugin_innodb_plugin=no
43717 { $as_echo "$as_me:$LINENO: result: no" >&5
43718 $as_echo "no" >&6; }
43722 else
43725 { $as_echo "$as_me:$LINENO: result: error" >&5
43726 $as_echo "error" >&6; }
43727 { { $as_echo "$as_me:$LINENO: error: Plugin innodb_plugin does not support static linking" >&5
43728 $as_echo "$as_me: error: Plugin innodb_plugin does not support static linking" >&2;}
43729 { (exit 1); exit 1; }; }
43732 mysql_plugin_defs="$mysql_plugin_defs, builtin_innodb_plugin_plugin"
43733 with_plugin_innodb_plugin=yes
43734 { $as_echo "$as_me:$LINENO: result: yes" >&5
43735 $as_echo "yes" >&6; }
43741 if test -d "$srcdir/storage/innodb_plugin"; then
43742 # Even if we don't build a plugin, we bundle its source into the dist
43743 # file. So its Makefile (and Makefiles for any subdirs) must be
43744 # generated for 'make dist' to work.
43747 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43748 # a subdir; for our purposes, it's enough to just check for existing
43749 # Makefile.am files and add them in here
43750 ac_config_files="$ac_config_files storage/innodb_plugin/Makefile"
43756 mysql_se_distdirs="$mysql_se_distdirs innodb_plugin"
43757 if test -n "$mysql_use_plugin_dir" ; then
43758 mysql_se_dirs="$mysql_se_dirs innodb_plugin"
43759 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/innodb_plugin"
43774 { $as_echo "$as_me:$LINENO: checking whether to use MyISAM Storage Engine" >&5
43775 $as_echo_n "checking whether to use MyISAM Storage Engine... " >&6; }
43776 mysql_use_plugin_dir=""
43779 # Plugin is not disabled, determine if it should be built,
43780 # or only distributed
43783 if test ! -d "$srcdir/storage/myisam"; then
43784 # Plugin directory was removed after autoconf was run; treat
43785 # this as a disabled plugin
43786 if test "X$with_plugin_myisam" = Xyes; then
43787 { $as_echo "$as_me:$LINENO: result: error" >&5
43788 $as_echo "error" >&6; }
43789 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43790 $as_echo "$as_me: error: disabled" >&2;}
43791 { (exit 1); exit 1; }; }
43794 # The result message will be printed below
43795 with_plugin_myisam=no
43800 if test "X$with_plugin_myisam" = Xno; then
43801 { $as_echo "$as_me:$LINENO: result: error" >&5
43802 $as_echo "error" >&6; }
43803 { { $as_echo "$as_me:$LINENO: error: cannot disable mandatory plugin" >&5
43804 $as_echo "$as_me: error: cannot disable mandatory plugin" >&2;}
43805 { (exit 1); exit 1; }; }
43807 mysql_plugin_myisam=yes
43811 if test "X$with_plugin_myisam" = Xno; then
43812 { $as_echo "$as_me:$LINENO: result: no" >&5
43813 $as_echo "no" >&6; }
43814 else
43816 if test "X$mysql_plugin_myisam" != Xyes -a \
43817 "X$with_plugin_myisam" != Xyes; then
43819 with_plugin_myisam=no
43820 { $as_echo "$as_me:$LINENO: result: no" >&5
43821 $as_echo "no" >&6; }
43823 else
43827 mysql_use_plugin_dir="storage/myisam"
43828 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/myisam/libmyisam.a"
43832 cat >>confdefs.h <<\_ACEOF
43833 #define WITH_MYISAM_STORAGE_ENGINE 1
43834 _ACEOF
43837 plugin_myisam_static_target="libmyisam.a"
43839 plugin_myisam_shared_target=""
43842 mysql_plugin_defs="$mysql_plugin_defs, builtin_myisam_plugin"
43843 with_plugin_myisam=yes
43844 { $as_echo "$as_me:$LINENO: result: yes" >&5
43845 $as_echo "yes" >&6; }
43847 condition_dependent_plugin_modules="$condition_dependent_plugin_modules ha_myisam.cc"
43848 condition_dependent_plugin_objects="$condition_dependent_plugin_objects ha_myisam.o"
43849 condition_dependent_plugin_links="$condition_dependent_plugin_links storage/myisam/ha_myisam.cc"
43850 condition_dependent_plugin_includes="$condition_dependent_plugin_includes -I\$(top_srcdir)/storage/myisam/"
43856 if test -d "$srcdir/storage/myisam"; then
43857 # Even if we don't build a plugin, we bundle its source into the dist
43858 # file. So its Makefile (and Makefiles for any subdirs) must be
43859 # generated for 'make dist' to work.
43862 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43863 # a subdir; for our purposes, it's enough to just check for existing
43864 # Makefile.am files and add them in here
43865 ac_config_files="$ac_config_files storage/myisam/Makefile"
43871 mysql_se_distdirs="$mysql_se_distdirs myisam"
43872 if test -n "$mysql_use_plugin_dir" ; then
43873 mysql_se_dirs="$mysql_se_dirs myisam"
43874 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/myisam"
43889 { $as_echo "$as_me:$LINENO: checking whether to use MyISAM MERGE Engine" >&5
43890 $as_echo_n "checking whether to use MyISAM MERGE Engine... " >&6; }
43891 mysql_use_plugin_dir=""
43894 # Plugin is not disabled, determine if it should be built,
43895 # or only distributed
43898 if test ! -d "$srcdir/storage/myisammrg"; then
43899 # Plugin directory was removed after autoconf was run; treat
43900 # this as a disabled plugin
43901 if test "X$with_plugin_myisammrg" = Xyes; then
43902 { $as_echo "$as_me:$LINENO: result: error" >&5
43903 $as_echo "error" >&6; }
43904 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
43905 $as_echo "$as_me: error: disabled" >&2;}
43906 { (exit 1); exit 1; }; }
43909 # The result message will be printed below
43910 with_plugin_myisammrg=no
43915 if test "X$with_plugin_myisammrg" = Xno; then
43916 { $as_echo "$as_me:$LINENO: result: error" >&5
43917 $as_echo "error" >&6; }
43918 { { $as_echo "$as_me:$LINENO: error: cannot disable mandatory plugin" >&5
43919 $as_echo "$as_me: error: cannot disable mandatory plugin" >&2;}
43920 { (exit 1); exit 1; }; }
43922 mysql_plugin_myisammrg=yes
43926 if test "X$with_plugin_myisammrg" = Xno; then
43927 { $as_echo "$as_me:$LINENO: result: no" >&5
43928 $as_echo "no" >&6; }
43929 else
43931 if test "X$mysql_plugin_myisammrg" != Xyes -a \
43932 "X$with_plugin_myisammrg" != Xyes; then
43934 with_plugin_myisammrg=no
43935 { $as_echo "$as_me:$LINENO: result: no" >&5
43936 $as_echo "no" >&6; }
43938 else
43942 mysql_use_plugin_dir="storage/myisammrg"
43943 mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/storage/myisammrg/libmyisammrg.a"
43947 cat >>confdefs.h <<\_ACEOF
43948 #define WITH_MYISAMMRG_STORAGE_ENGINE 1
43949 _ACEOF
43952 plugin_myisammrg_static_target="libmyisammrg.a"
43954 plugin_myisammrg_shared_target=""
43957 mysql_plugin_defs="$mysql_plugin_defs, builtin_myisammrg_plugin"
43958 with_plugin_myisammrg=yes
43959 { $as_echo "$as_me:$LINENO: result: yes" >&5
43960 $as_echo "yes" >&6; }
43962 condition_dependent_plugin_modules="$condition_dependent_plugin_modules ha_myisammrg.cc"
43963 condition_dependent_plugin_objects="$condition_dependent_plugin_objects ha_myisammrg.o"
43964 condition_dependent_plugin_links="$condition_dependent_plugin_links storage/myisammrg/ha_myisammrg.cc"
43965 condition_dependent_plugin_includes="$condition_dependent_plugin_includes -I\$(top_srcdir)/storage/myisammrg/"
43971 if test -d "$srcdir/storage/myisammrg"; then
43972 # Even if we don't build a plugin, we bundle its source into the dist
43973 # file. So its Makefile (and Makefiles for any subdirs) must be
43974 # generated for 'make dist' to work.
43977 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
43978 # a subdir; for our purposes, it's enough to just check for existing
43979 # Makefile.am files and add them in here
43980 ac_config_files="$ac_config_files storage/myisammrg/Makefile"
43986 mysql_se_distdirs="$mysql_se_distdirs myisammrg"
43987 if test -n "$mysql_use_plugin_dir" ; then
43988 mysql_se_dirs="$mysql_se_dirs myisammrg"
43989 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/myisammrg"
44004 { $as_echo "$as_me:$LINENO: checking whether to use Cluster Storage Engine" >&5
44005 $as_echo_n "checking whether to use Cluster Storage Engine... " >&6; }
44006 mysql_use_plugin_dir=""
44009 # Plugin is not disabled, determine if it should be built,
44010 # or only distributed
44013 if test ! -d "$srcdir/storage/ndb"; then
44014 # Plugin directory was removed after autoconf was run; treat
44015 # this as a disabled plugin
44016 if test "X$with_plugin_ndbcluster" = Xyes; then
44017 { $as_echo "$as_me:$LINENO: result: error" >&5
44018 $as_echo "error" >&6; }
44019 { { $as_echo "$as_me:$LINENO: error: disabled" >&5
44020 $as_echo "$as_me: error: disabled" >&2;}
44021 { (exit 1); exit 1; }; }
44024 # The result message will be printed below
44025 with_plugin_ndbcluster=no
44030 case "$with_mysqld_ldflags " in
44031 *"-all-static "*)
44032 # No need to build shared plugins when mysqld is linked with
44033 # -all-static as it won't be able to load them.
44034 if test "X$mysql_plugin_ndbcluster" != Xyes -a \
44035 "X$with_plugin_ndbcluster" != Xyes; then
44036 with_plugin_ndbcluster=no
44039 esac
44043 if test "X$with_plugin_ndbcluster" = Xno; then
44044 { $as_echo "$as_me:$LINENO: result: no" >&5
44045 $as_echo "no" >&6; }
44046 else
44048 if test "X$mysql_plugin_ndbcluster" != Xyes -a \
44049 "X$with_plugin_ndbcluster" != Xyes; then
44051 with_plugin_ndbcluster=no
44052 { $as_echo "$as_me:$LINENO: result: no" >&5
44053 $as_echo "no" >&6; }
44055 else
44059 mysql_use_plugin_dir="storage/ndb"
44061 mysql_plugin_libs="$mysql_plugin_libs \$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)"
44064 cat >>confdefs.h <<\_ACEOF
44065 #define WITH_NDBCLUSTER_STORAGE_ENGINE 1
44066 _ACEOF
44069 plugin_ndbcluster_static_target="\$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)"
44071 plugin_ndbcluster_shared_target=""
44074 mysql_plugin_defs="$mysql_plugin_defs, builtin_ndbcluster_plugin"
44075 with_plugin_ndbcluster=yes
44076 { $as_echo "$as_me:$LINENO: result: yes" >&5
44077 $as_echo "yes" >&6; }
44083 if test -d "$srcdir/storage/ndb"; then
44084 # Even if we don't build a plugin, we bundle its source into the dist
44085 # file. So its Makefile (and Makefiles for any subdirs) must be
44086 # generated for 'make dist' to work.
44089 # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
44090 # a subdir; for our purposes, it's enough to just check for existing
44091 # Makefile.am files and add them in here
44092 ac_config_files="$ac_config_files storage/ndb/src/mgmsrv/Makefile storage/ndb/src/Makefile storage/ndb/src/ndbapi/Makefile storage/ndb/src/mgmclient/Makefile storage/ndb/src/mgmapi/Makefile storage/ndb/src/common/debugger/Makefile storage/ndb/src/common/debugger/signaldata/Makefile storage/ndb/src/common/transporter/Makefile storage/ndb/src/common/util/Makefile storage/ndb/src/common/portlib/Makefile storage/ndb/src/common/mgmcommon/Makefile storage/ndb/src/common/Makefile storage/ndb/src/common/logger/Makefile storage/ndb/src/kernel/blocks/dbdict/Makefile storage/ndb/src/kernel/blocks/Makefile storage/ndb/src/kernel/blocks/dbtup/Makefile storage/ndb/src/kernel/blocks/backup/Makefile storage/ndb/src/kernel/blocks/dbdih/Makefile storage/ndb/src/kernel/blocks/dblqh/Makefile storage/ndb/src/kernel/vm/Makefile storage/ndb/src/kernel/Makefile storage/ndb/src/kernel/error/Makefile storage/ndb/src/cw/Makefile storage/ndb/src/cw/cpcd/Makefile storage/ndb/tools/Makefile storage/ndb/docs/Makefile storage/ndb/Makefile storage/ndb/include/Makefile storage/ndb/test/tools/Makefile storage/ndb/test/src/Makefile storage/ndb/test/ndbapi/bank/Makefile storage/ndb/test/ndbapi/Makefile storage/ndb/test/run-test/Makefile storage/ndb/test/Makefile"
44098 mysql_se_distdirs="$mysql_se_distdirs ndb"
44099 if test -n "$mysql_use_plugin_dir" ; then
44100 mysql_se_dirs="$mysql_se_dirs ndb"
44101 mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../storage/ndb"
44141 if test "X$with_plugin_partition" = Xyes; then
44142 if test "X$plugin_partition_static_target" = X -a \
44143 "X$plugin_partition_shared_target" = X; then
44144 { { $as_echo "$as_me:$LINENO: error: that's strange, partition failed sanity check" >&5
44145 $as_echo "$as_me: error: that's strange, partition failed sanity check" >&2;}
44146 { (exit 1); exit 1; }; }
44159 if test "X$with_plugin_daemon_example" = Xyes; then
44160 if test "X$plugin_daemon_example_static_target" = X -a \
44161 "X$plugin_daemon_example_shared_target" = X; then
44162 { { $as_echo "$as_me:$LINENO: error: that's strange, daemon_example failed sanity check" >&5
44163 $as_echo "$as_me: error: that's strange, daemon_example failed sanity check" >&2;}
44164 { (exit 1); exit 1; }; }
44177 if test "X$with_plugin_ftexample" = Xyes; then
44178 if test "X$plugin_ftexample_static_target" = X -a \
44179 "X$plugin_ftexample_shared_target" = X; then
44180 { { $as_echo "$as_me:$LINENO: error: that's strange, ftexample failed sanity check" >&5
44181 $as_echo "$as_me: error: that's strange, ftexample failed sanity check" >&2;}
44182 { (exit 1); exit 1; }; }
44195 if test "X$with_plugin_archive" = Xyes; then
44196 if test "X$plugin_archive_static_target" = X -a \
44197 "X$plugin_archive_shared_target" = X; then
44198 { { $as_echo "$as_me:$LINENO: error: that's strange, archive failed sanity check" >&5
44199 $as_echo "$as_me: error: that's strange, archive failed sanity check" >&2;}
44200 { (exit 1); exit 1; }; }
44213 if test "X$with_plugin_blackhole" = Xyes; then
44214 if test "X$plugin_blackhole_static_target" = X -a \
44215 "X$plugin_blackhole_shared_target" = X; then
44216 { { $as_echo "$as_me:$LINENO: error: that's strange, blackhole failed sanity check" >&5
44217 $as_echo "$as_me: error: that's strange, blackhole failed sanity check" >&2;}
44218 { (exit 1); exit 1; }; }
44231 if test "X$with_plugin_csv" = Xyes; then
44232 if test "X$plugin_csv_static_target" = X -a \
44233 "X$plugin_csv_shared_target" = X; then
44234 { { $as_echo "$as_me:$LINENO: error: that's strange, csv failed sanity check" >&5
44235 $as_echo "$as_me: error: that's strange, csv failed sanity check" >&2;}
44236 { (exit 1); exit 1; }; }
44249 if test "X$with_plugin_example" = Xyes; then
44250 if test "X$plugin_example_static_target" = X -a \
44251 "X$plugin_example_shared_target" = X; then
44252 { { $as_echo "$as_me:$LINENO: error: that's strange, example failed sanity check" >&5
44253 $as_echo "$as_me: error: that's strange, example failed sanity check" >&2;}
44254 { (exit 1); exit 1; }; }
44267 if test "X$with_plugin_federated" = Xyes; then
44268 if test "X$plugin_federated_static_target" = X -a \
44269 "X$plugin_federated_shared_target" = X; then
44270 { { $as_echo "$as_me:$LINENO: error: that's strange, federated failed sanity check" >&5
44271 $as_echo "$as_me: error: that's strange, federated failed sanity check" >&2;}
44272 { (exit 1); exit 1; }; }
44285 if test "X$with_plugin_heap" = Xyes; then
44286 if test "X$plugin_heap_static_target" = X -a \
44287 "X$plugin_heap_shared_target" = X; then
44288 { { $as_echo "$as_me:$LINENO: error: that's strange, heap failed sanity check" >&5
44289 $as_echo "$as_me: error: that's strange, heap failed sanity check" >&2;}
44290 { (exit 1); exit 1; }; }
44303 if test "X$with_plugin_innobase" = Xyes; then
44304 if test "X$plugin_innobase_static_target" = X -a \
44305 "X$plugin_innobase_shared_target" = X; then
44306 { { $as_echo "$as_me:$LINENO: error: that's strange, innobase failed sanity check" >&5
44307 $as_echo "$as_me: error: that's strange, innobase failed sanity check" >&2;}
44308 { (exit 1); exit 1; }; }
44311 { $as_echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
44312 $as_echo_n "checking for aio_read in -lrt... " >&6; }
44313 if test "${ac_cv_lib_rt_aio_read+set}" = set; then
44314 $as_echo_n "(cached) " >&6
44315 else
44316 ac_check_lib_save_LIBS=$LIBS
44317 LIBS="-lrt $LIBS"
44318 cat >conftest.$ac_ext <<_ACEOF
44319 /* confdefs.h. */
44320 _ACEOF
44321 cat confdefs.h >>conftest.$ac_ext
44322 cat >>conftest.$ac_ext <<_ACEOF
44323 /* end confdefs.h. */
44325 /* Override any GCC internal prototype to avoid an error.
44326 Use char because int might match the return type of a GCC
44327 builtin and then its argument prototype would still apply. */
44328 #ifdef __cplusplus
44329 extern "C"
44330 #endif
44331 char aio_read ();
44333 main ()
44335 return aio_read ();
44337 return 0;
44339 _ACEOF
44340 rm -f conftest.$ac_objext conftest$ac_exeext
44341 if { (ac_try="$ac_link"
44342 case "(($ac_try" in
44343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44344 *) ac_try_echo=$ac_try;;
44345 esac
44346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44347 $as_echo "$ac_try_echo") >&5
44348 (eval "$ac_link") 2>conftest.er1
44349 ac_status=$?
44350 grep -v '^ *+' conftest.er1 >conftest.err
44351 rm -f conftest.er1
44352 cat conftest.err >&5
44353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44354 (exit $ac_status); } && {
44355 test -z "$ac_c_werror_flag" ||
44356 test ! -s conftest.err
44357 } && test -s conftest$ac_exeext && {
44358 test "$cross_compiling" = yes ||
44359 $as_test_x conftest$ac_exeext
44360 }; then
44361 ac_cv_lib_rt_aio_read=yes
44362 else
44363 $as_echo "$as_me: failed program was:" >&5
44364 sed 's/^/| /' conftest.$ac_ext >&5
44366 ac_cv_lib_rt_aio_read=no
44369 rm -rf conftest.dSYM
44370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44371 conftest$ac_exeext conftest.$ac_ext
44372 LIBS=$ac_check_lib_save_LIBS
44374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
44375 $as_echo "$ac_cv_lib_rt_aio_read" >&6; }
44376 if test "x$ac_cv_lib_rt_aio_read" = x""yes; then
44377 innodb_system_libs="-lrt"
44383 for ac_header in aio.h sched.h
44385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44388 $as_echo_n "checking for $ac_header... " >&6; }
44389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44390 $as_echo_n "(cached) " >&6
44392 ac_res=`eval 'as_val=${'$as_ac_Header'}
44393 $as_echo "$as_val"'`
44394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44395 $as_echo "$ac_res" >&6; }
44396 else
44397 # Is the header compilable?
44398 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
44399 $as_echo_n "checking $ac_header usability... " >&6; }
44400 cat >conftest.$ac_ext <<_ACEOF
44401 /* confdefs.h. */
44402 _ACEOF
44403 cat confdefs.h >>conftest.$ac_ext
44404 cat >>conftest.$ac_ext <<_ACEOF
44405 /* end confdefs.h. */
44406 $ac_includes_default
44407 #include <$ac_header>
44408 _ACEOF
44409 rm -f conftest.$ac_objext
44410 if { (ac_try="$ac_compile"
44411 case "(($ac_try" in
44412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44413 *) ac_try_echo=$ac_try;;
44414 esac
44415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44416 $as_echo "$ac_try_echo") >&5
44417 (eval "$ac_compile") 2>conftest.er1
44418 ac_status=$?
44419 grep -v '^ *+' conftest.er1 >conftest.err
44420 rm -f conftest.er1
44421 cat conftest.err >&5
44422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); } && {
44424 test -z "$ac_c_werror_flag" ||
44425 test ! -s conftest.err
44426 } && test -s conftest.$ac_objext; then
44427 ac_header_compiler=yes
44428 else
44429 $as_echo "$as_me: failed program was:" >&5
44430 sed 's/^/| /' conftest.$ac_ext >&5
44432 ac_header_compiler=no
44435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44436 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44437 $as_echo "$ac_header_compiler" >&6; }
44439 # Is the header present?
44440 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
44441 $as_echo_n "checking $ac_header presence... " >&6; }
44442 cat >conftest.$ac_ext <<_ACEOF
44443 /* confdefs.h. */
44444 _ACEOF
44445 cat confdefs.h >>conftest.$ac_ext
44446 cat >>conftest.$ac_ext <<_ACEOF
44447 /* end confdefs.h. */
44448 #include <$ac_header>
44449 _ACEOF
44450 if { (ac_try="$ac_cpp conftest.$ac_ext"
44451 case "(($ac_try" in
44452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44453 *) ac_try_echo=$ac_try;;
44454 esac
44455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44456 $as_echo "$ac_try_echo") >&5
44457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44458 ac_status=$?
44459 grep -v '^ *+' conftest.er1 >conftest.err
44460 rm -f conftest.er1
44461 cat conftest.err >&5
44462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44463 (exit $ac_status); } >/dev/null && {
44464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44465 test ! -s conftest.err
44466 }; then
44467 ac_header_preproc=yes
44468 else
44469 $as_echo "$as_me: failed program was:" >&5
44470 sed 's/^/| /' conftest.$ac_ext >&5
44472 ac_header_preproc=no
44475 rm -f conftest.err conftest.$ac_ext
44476 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44477 $as_echo "$ac_header_preproc" >&6; }
44479 # So? What about this header?
44480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44481 yes:no: )
44482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44483 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44486 ac_header_preproc=yes
44488 no:yes:* )
44489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44490 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44492 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44494 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44496 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44498 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44500 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44503 esac
44504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44505 $as_echo_n "checking for $ac_header... " >&6; }
44506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44507 $as_echo_n "(cached) " >&6
44508 else
44509 eval "$as_ac_Header=\$ac_header_preproc"
44511 ac_res=`eval 'as_val=${'$as_ac_Header'}
44512 $as_echo "$as_val"'`
44513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44514 $as_echo "$ac_res" >&6; }
44517 as_val=`eval 'as_val=${'$as_ac_Header'}
44518 $as_echo "$as_val"'`
44519 if test "x$as_val" = x""yes; then
44520 cat >>confdefs.h <<_ACEOF
44521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44522 _ACEOF
44526 done
44528 # The cast to long int works around a bug in the HP C Compiler
44529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
44530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
44531 # This bug is HP SR number 8606223364.
44532 { $as_echo "$as_me:$LINENO: checking size of int" >&5
44533 $as_echo_n "checking size of int... " >&6; }
44534 if test "${ac_cv_sizeof_int+set}" = set; then
44535 $as_echo_n "(cached) " >&6
44536 else
44537 if test "$cross_compiling" = yes; then
44538 # Depending upon the size, compute the lo and hi bounds.
44539 cat >conftest.$ac_ext <<_ACEOF
44540 /* confdefs.h. */
44541 _ACEOF
44542 cat confdefs.h >>conftest.$ac_ext
44543 cat >>conftest.$ac_ext <<_ACEOF
44544 /* end confdefs.h. */
44545 $ac_includes_default
44547 main ()
44549 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
44550 test_array [0] = 0
44553 return 0;
44555 _ACEOF
44556 rm -f conftest.$ac_objext
44557 if { (ac_try="$ac_compile"
44558 case "(($ac_try" in
44559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44560 *) ac_try_echo=$ac_try;;
44561 esac
44562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44563 $as_echo "$ac_try_echo") >&5
44564 (eval "$ac_compile") 2>conftest.er1
44565 ac_status=$?
44566 grep -v '^ *+' conftest.er1 >conftest.err
44567 rm -f conftest.er1
44568 cat conftest.err >&5
44569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44570 (exit $ac_status); } && {
44571 test -z "$ac_c_werror_flag" ||
44572 test ! -s conftest.err
44573 } && test -s conftest.$ac_objext; then
44574 ac_lo=0 ac_mid=0
44575 while :; do
44576 cat >conftest.$ac_ext <<_ACEOF
44577 /* confdefs.h. */
44578 _ACEOF
44579 cat confdefs.h >>conftest.$ac_ext
44580 cat >>conftest.$ac_ext <<_ACEOF
44581 /* end confdefs.h. */
44582 $ac_includes_default
44584 main ()
44586 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
44587 test_array [0] = 0
44590 return 0;
44592 _ACEOF
44593 rm -f conftest.$ac_objext
44594 if { (ac_try="$ac_compile"
44595 case "(($ac_try" in
44596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44597 *) ac_try_echo=$ac_try;;
44598 esac
44599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44600 $as_echo "$ac_try_echo") >&5
44601 (eval "$ac_compile") 2>conftest.er1
44602 ac_status=$?
44603 grep -v '^ *+' conftest.er1 >conftest.err
44604 rm -f conftest.er1
44605 cat conftest.err >&5
44606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607 (exit $ac_status); } && {
44608 test -z "$ac_c_werror_flag" ||
44609 test ! -s conftest.err
44610 } && test -s conftest.$ac_objext; then
44611 ac_hi=$ac_mid; break
44612 else
44613 $as_echo "$as_me: failed program was:" >&5
44614 sed 's/^/| /' conftest.$ac_ext >&5
44616 ac_lo=`expr $ac_mid + 1`
44617 if test $ac_lo -le $ac_mid; then
44618 ac_lo= ac_hi=
44619 break
44621 ac_mid=`expr 2 '*' $ac_mid + 1`
44624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44625 done
44626 else
44627 $as_echo "$as_me: failed program was:" >&5
44628 sed 's/^/| /' conftest.$ac_ext >&5
44630 cat >conftest.$ac_ext <<_ACEOF
44631 /* confdefs.h. */
44632 _ACEOF
44633 cat confdefs.h >>conftest.$ac_ext
44634 cat >>conftest.$ac_ext <<_ACEOF
44635 /* end confdefs.h. */
44636 $ac_includes_default
44638 main ()
44640 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
44641 test_array [0] = 0
44644 return 0;
44646 _ACEOF
44647 rm -f conftest.$ac_objext
44648 if { (ac_try="$ac_compile"
44649 case "(($ac_try" in
44650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44651 *) ac_try_echo=$ac_try;;
44652 esac
44653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44654 $as_echo "$ac_try_echo") >&5
44655 (eval "$ac_compile") 2>conftest.er1
44656 ac_status=$?
44657 grep -v '^ *+' conftest.er1 >conftest.err
44658 rm -f conftest.er1
44659 cat conftest.err >&5
44660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44661 (exit $ac_status); } && {
44662 test -z "$ac_c_werror_flag" ||
44663 test ! -s conftest.err
44664 } && test -s conftest.$ac_objext; then
44665 ac_hi=-1 ac_mid=-1
44666 while :; do
44667 cat >conftest.$ac_ext <<_ACEOF
44668 /* confdefs.h. */
44669 _ACEOF
44670 cat confdefs.h >>conftest.$ac_ext
44671 cat >>conftest.$ac_ext <<_ACEOF
44672 /* end confdefs.h. */
44673 $ac_includes_default
44675 main ()
44677 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
44678 test_array [0] = 0
44681 return 0;
44683 _ACEOF
44684 rm -f conftest.$ac_objext
44685 if { (ac_try="$ac_compile"
44686 case "(($ac_try" in
44687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44688 *) ac_try_echo=$ac_try;;
44689 esac
44690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44691 $as_echo "$ac_try_echo") >&5
44692 (eval "$ac_compile") 2>conftest.er1
44693 ac_status=$?
44694 grep -v '^ *+' conftest.er1 >conftest.err
44695 rm -f conftest.er1
44696 cat conftest.err >&5
44697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698 (exit $ac_status); } && {
44699 test -z "$ac_c_werror_flag" ||
44700 test ! -s conftest.err
44701 } && test -s conftest.$ac_objext; then
44702 ac_lo=$ac_mid; break
44703 else
44704 $as_echo "$as_me: failed program was:" >&5
44705 sed 's/^/| /' conftest.$ac_ext >&5
44707 ac_hi=`expr '(' $ac_mid ')' - 1`
44708 if test $ac_mid -le $ac_hi; then
44709 ac_lo= ac_hi=
44710 break
44712 ac_mid=`expr 2 '*' $ac_mid`
44715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44716 done
44717 else
44718 $as_echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44721 ac_lo= ac_hi=
44724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44728 # Binary search between lo and hi bounds.
44729 while test "x$ac_lo" != "x$ac_hi"; do
44730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
44731 cat >conftest.$ac_ext <<_ACEOF
44732 /* confdefs.h. */
44733 _ACEOF
44734 cat confdefs.h >>conftest.$ac_ext
44735 cat >>conftest.$ac_ext <<_ACEOF
44736 /* end confdefs.h. */
44737 $ac_includes_default
44739 main ()
44741 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
44742 test_array [0] = 0
44745 return 0;
44747 _ACEOF
44748 rm -f conftest.$ac_objext
44749 if { (ac_try="$ac_compile"
44750 case "(($ac_try" in
44751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44752 *) ac_try_echo=$ac_try;;
44753 esac
44754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44755 $as_echo "$ac_try_echo") >&5
44756 (eval "$ac_compile") 2>conftest.er1
44757 ac_status=$?
44758 grep -v '^ *+' conftest.er1 >conftest.err
44759 rm -f conftest.er1
44760 cat conftest.err >&5
44761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44762 (exit $ac_status); } && {
44763 test -z "$ac_c_werror_flag" ||
44764 test ! -s conftest.err
44765 } && test -s conftest.$ac_objext; then
44766 ac_hi=$ac_mid
44767 else
44768 $as_echo "$as_me: failed program was:" >&5
44769 sed 's/^/| /' conftest.$ac_ext >&5
44771 ac_lo=`expr '(' $ac_mid ')' + 1`
44774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44775 done
44776 case $ac_lo in
44777 ?*) ac_cv_sizeof_int=$ac_lo;;
44778 '') if test "$ac_cv_type_int" = yes; then
44779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
44780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
44781 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
44782 See \`config.log' for more details." >&5
44783 $as_echo "$as_me: error: cannot compute sizeof (int)
44784 See \`config.log' for more details." >&2;}
44785 { (exit 77); exit 77; }; }; }
44786 else
44787 ac_cv_sizeof_int=0
44788 fi ;;
44789 esac
44790 else
44791 cat >conftest.$ac_ext <<_ACEOF
44792 /* confdefs.h. */
44793 _ACEOF
44794 cat confdefs.h >>conftest.$ac_ext
44795 cat >>conftest.$ac_ext <<_ACEOF
44796 /* end confdefs.h. */
44797 $ac_includes_default
44798 static long int longval () { return (long int) (sizeof (int)); }
44799 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
44800 #include <stdio.h>
44801 #include <stdlib.h>
44803 main ()
44806 FILE *f = fopen ("conftest.val", "w");
44807 if (! f)
44808 return 1;
44809 if (((long int) (sizeof (int))) < 0)
44811 long int i = longval ();
44812 if (i != ((long int) (sizeof (int))))
44813 return 1;
44814 fprintf (f, "%ld", i);
44816 else
44818 unsigned long int i = ulongval ();
44819 if (i != ((long int) (sizeof (int))))
44820 return 1;
44821 fprintf (f, "%lu", i);
44823 /* Do not output a trailing newline, as this causes \r\n confusion
44824 on some platforms. */
44825 return ferror (f) || fclose (f) != 0;
44828 return 0;
44830 _ACEOF
44831 rm -f conftest$ac_exeext
44832 if { (ac_try="$ac_link"
44833 case "(($ac_try" in
44834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44835 *) ac_try_echo=$ac_try;;
44836 esac
44837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44838 $as_echo "$ac_try_echo") >&5
44839 (eval "$ac_link") 2>&5
44840 ac_status=$?
44841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44843 { (case "(($ac_try" in
44844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44845 *) ac_try_echo=$ac_try;;
44846 esac
44847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44848 $as_echo "$ac_try_echo") >&5
44849 (eval "$ac_try") 2>&5
44850 ac_status=$?
44851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852 (exit $ac_status); }; }; then
44853 ac_cv_sizeof_int=`cat conftest.val`
44854 else
44855 $as_echo "$as_me: program exited with status $ac_status" >&5
44856 $as_echo "$as_me: failed program was:" >&5
44857 sed 's/^/| /' conftest.$ac_ext >&5
44859 ( exit $ac_status )
44860 if test "$ac_cv_type_int" = yes; then
44861 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
44862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
44863 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
44864 See \`config.log' for more details." >&5
44865 $as_echo "$as_me: error: cannot compute sizeof (int)
44866 See \`config.log' for more details." >&2;}
44867 { (exit 77); exit 77; }; }; }
44868 else
44869 ac_cv_sizeof_int=0
44872 rm -rf conftest.dSYM
44873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44875 rm -f conftest.val
44877 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
44878 $as_echo "$ac_cv_sizeof_int" >&6; }
44882 cat >>confdefs.h <<_ACEOF
44883 #define SIZEOF_INT $ac_cv_sizeof_int
44884 _ACEOF
44887 # The cast to long int works around a bug in the HP C Compiler
44888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
44889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
44890 # This bug is HP SR number 8606223364.
44891 { $as_echo "$as_me:$LINENO: checking size of long" >&5
44892 $as_echo_n "checking size of long... " >&6; }
44893 if test "${ac_cv_sizeof_long+set}" = set; then
44894 $as_echo_n "(cached) " >&6
44895 else
44896 if test "$cross_compiling" = yes; then
44897 # Depending upon the size, compute the lo and hi bounds.
44898 cat >conftest.$ac_ext <<_ACEOF
44899 /* confdefs.h. */
44900 _ACEOF
44901 cat confdefs.h >>conftest.$ac_ext
44902 cat >>conftest.$ac_ext <<_ACEOF
44903 /* end confdefs.h. */
44904 $ac_includes_default
44906 main ()
44908 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
44909 test_array [0] = 0
44912 return 0;
44914 _ACEOF
44915 rm -f conftest.$ac_objext
44916 if { (ac_try="$ac_compile"
44917 case "(($ac_try" in
44918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44919 *) ac_try_echo=$ac_try;;
44920 esac
44921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44922 $as_echo "$ac_try_echo") >&5
44923 (eval "$ac_compile") 2>conftest.er1
44924 ac_status=$?
44925 grep -v '^ *+' conftest.er1 >conftest.err
44926 rm -f conftest.er1
44927 cat conftest.err >&5
44928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44929 (exit $ac_status); } && {
44930 test -z "$ac_c_werror_flag" ||
44931 test ! -s conftest.err
44932 } && test -s conftest.$ac_objext; then
44933 ac_lo=0 ac_mid=0
44934 while :; do
44935 cat >conftest.$ac_ext <<_ACEOF
44936 /* confdefs.h. */
44937 _ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h. */
44941 $ac_includes_default
44943 main ()
44945 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
44946 test_array [0] = 0
44949 return 0;
44951 _ACEOF
44952 rm -f conftest.$ac_objext
44953 if { (ac_try="$ac_compile"
44954 case "(($ac_try" in
44955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44956 *) ac_try_echo=$ac_try;;
44957 esac
44958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44959 $as_echo "$ac_try_echo") >&5
44960 (eval "$ac_compile") 2>conftest.er1
44961 ac_status=$?
44962 grep -v '^ *+' conftest.er1 >conftest.err
44963 rm -f conftest.er1
44964 cat conftest.err >&5
44965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44966 (exit $ac_status); } && {
44967 test -z "$ac_c_werror_flag" ||
44968 test ! -s conftest.err
44969 } && test -s conftest.$ac_objext; then
44970 ac_hi=$ac_mid; break
44971 else
44972 $as_echo "$as_me: failed program was:" >&5
44973 sed 's/^/| /' conftest.$ac_ext >&5
44975 ac_lo=`expr $ac_mid + 1`
44976 if test $ac_lo -le $ac_mid; then
44977 ac_lo= ac_hi=
44978 break
44980 ac_mid=`expr 2 '*' $ac_mid + 1`
44983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44984 done
44985 else
44986 $as_echo "$as_me: failed program was:" >&5
44987 sed 's/^/| /' conftest.$ac_ext >&5
44989 cat >conftest.$ac_ext <<_ACEOF
44990 /* confdefs.h. */
44991 _ACEOF
44992 cat confdefs.h >>conftest.$ac_ext
44993 cat >>conftest.$ac_ext <<_ACEOF
44994 /* end confdefs.h. */
44995 $ac_includes_default
44997 main ()
44999 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
45000 test_array [0] = 0
45003 return 0;
45005 _ACEOF
45006 rm -f conftest.$ac_objext
45007 if { (ac_try="$ac_compile"
45008 case "(($ac_try" in
45009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45010 *) ac_try_echo=$ac_try;;
45011 esac
45012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45013 $as_echo "$ac_try_echo") >&5
45014 (eval "$ac_compile") 2>conftest.er1
45015 ac_status=$?
45016 grep -v '^ *+' conftest.er1 >conftest.err
45017 rm -f conftest.er1
45018 cat conftest.err >&5
45019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45020 (exit $ac_status); } && {
45021 test -z "$ac_c_werror_flag" ||
45022 test ! -s conftest.err
45023 } && test -s conftest.$ac_objext; then
45024 ac_hi=-1 ac_mid=-1
45025 while :; do
45026 cat >conftest.$ac_ext <<_ACEOF
45027 /* confdefs.h. */
45028 _ACEOF
45029 cat confdefs.h >>conftest.$ac_ext
45030 cat >>conftest.$ac_ext <<_ACEOF
45031 /* end confdefs.h. */
45032 $ac_includes_default
45034 main ()
45036 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
45037 test_array [0] = 0
45040 return 0;
45042 _ACEOF
45043 rm -f conftest.$ac_objext
45044 if { (ac_try="$ac_compile"
45045 case "(($ac_try" in
45046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45047 *) ac_try_echo=$ac_try;;
45048 esac
45049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45050 $as_echo "$ac_try_echo") >&5
45051 (eval "$ac_compile") 2>conftest.er1
45052 ac_status=$?
45053 grep -v '^ *+' conftest.er1 >conftest.err
45054 rm -f conftest.er1
45055 cat conftest.err >&5
45056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45057 (exit $ac_status); } && {
45058 test -z "$ac_c_werror_flag" ||
45059 test ! -s conftest.err
45060 } && test -s conftest.$ac_objext; then
45061 ac_lo=$ac_mid; break
45062 else
45063 $as_echo "$as_me: failed program was:" >&5
45064 sed 's/^/| /' conftest.$ac_ext >&5
45066 ac_hi=`expr '(' $ac_mid ')' - 1`
45067 if test $ac_mid -le $ac_hi; then
45068 ac_lo= ac_hi=
45069 break
45071 ac_mid=`expr 2 '*' $ac_mid`
45074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45075 done
45076 else
45077 $as_echo "$as_me: failed program was:" >&5
45078 sed 's/^/| /' conftest.$ac_ext >&5
45080 ac_lo= ac_hi=
45083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45087 # Binary search between lo and hi bounds.
45088 while test "x$ac_lo" != "x$ac_hi"; do
45089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
45090 cat >conftest.$ac_ext <<_ACEOF
45091 /* confdefs.h. */
45092 _ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h. */
45096 $ac_includes_default
45098 main ()
45100 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
45101 test_array [0] = 0
45104 return 0;
45106 _ACEOF
45107 rm -f conftest.$ac_objext
45108 if { (ac_try="$ac_compile"
45109 case "(($ac_try" in
45110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45111 *) ac_try_echo=$ac_try;;
45112 esac
45113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45114 $as_echo "$ac_try_echo") >&5
45115 (eval "$ac_compile") 2>conftest.er1
45116 ac_status=$?
45117 grep -v '^ *+' conftest.er1 >conftest.err
45118 rm -f conftest.er1
45119 cat conftest.err >&5
45120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121 (exit $ac_status); } && {
45122 test -z "$ac_c_werror_flag" ||
45123 test ! -s conftest.err
45124 } && test -s conftest.$ac_objext; then
45125 ac_hi=$ac_mid
45126 else
45127 $as_echo "$as_me: failed program was:" >&5
45128 sed 's/^/| /' conftest.$ac_ext >&5
45130 ac_lo=`expr '(' $ac_mid ')' + 1`
45133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45134 done
45135 case $ac_lo in
45136 ?*) ac_cv_sizeof_long=$ac_lo;;
45137 '') if test "$ac_cv_type_long" = yes; then
45138 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
45139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45140 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
45141 See \`config.log' for more details." >&5
45142 $as_echo "$as_me: error: cannot compute sizeof (long)
45143 See \`config.log' for more details." >&2;}
45144 { (exit 77); exit 77; }; }; }
45145 else
45146 ac_cv_sizeof_long=0
45147 fi ;;
45148 esac
45149 else
45150 cat >conftest.$ac_ext <<_ACEOF
45151 /* confdefs.h. */
45152 _ACEOF
45153 cat confdefs.h >>conftest.$ac_ext
45154 cat >>conftest.$ac_ext <<_ACEOF
45155 /* end confdefs.h. */
45156 $ac_includes_default
45157 static long int longval () { return (long int) (sizeof (long)); }
45158 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
45159 #include <stdio.h>
45160 #include <stdlib.h>
45162 main ()
45165 FILE *f = fopen ("conftest.val", "w");
45166 if (! f)
45167 return 1;
45168 if (((long int) (sizeof (long))) < 0)
45170 long int i = longval ();
45171 if (i != ((long int) (sizeof (long))))
45172 return 1;
45173 fprintf (f, "%ld", i);
45175 else
45177 unsigned long int i = ulongval ();
45178 if (i != ((long int) (sizeof (long))))
45179 return 1;
45180 fprintf (f, "%lu", i);
45182 /* Do not output a trailing newline, as this causes \r\n confusion
45183 on some platforms. */
45184 return ferror (f) || fclose (f) != 0;
45187 return 0;
45189 _ACEOF
45190 rm -f conftest$ac_exeext
45191 if { (ac_try="$ac_link"
45192 case "(($ac_try" in
45193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45194 *) ac_try_echo=$ac_try;;
45195 esac
45196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45197 $as_echo "$ac_try_echo") >&5
45198 (eval "$ac_link") 2>&5
45199 ac_status=$?
45200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45202 { (case "(($ac_try" in
45203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45204 *) ac_try_echo=$ac_try;;
45205 esac
45206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45207 $as_echo "$ac_try_echo") >&5
45208 (eval "$ac_try") 2>&5
45209 ac_status=$?
45210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45211 (exit $ac_status); }; }; then
45212 ac_cv_sizeof_long=`cat conftest.val`
45213 else
45214 $as_echo "$as_me: program exited with status $ac_status" >&5
45215 $as_echo "$as_me: failed program was:" >&5
45216 sed 's/^/| /' conftest.$ac_ext >&5
45218 ( exit $ac_status )
45219 if test "$ac_cv_type_long" = yes; then
45220 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
45221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45222 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
45223 See \`config.log' for more details." >&5
45224 $as_echo "$as_me: error: cannot compute sizeof (long)
45225 See \`config.log' for more details." >&2;}
45226 { (exit 77); exit 77; }; }; }
45227 else
45228 ac_cv_sizeof_long=0
45231 rm -rf conftest.dSYM
45232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45234 rm -f conftest.val
45236 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
45237 $as_echo "$ac_cv_sizeof_long" >&6; }
45241 cat >>confdefs.h <<_ACEOF
45242 #define SIZEOF_LONG $ac_cv_sizeof_long
45243 _ACEOF
45246 # The cast to long int works around a bug in the HP C Compiler
45247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
45248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
45249 # This bug is HP SR number 8606223364.
45250 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
45251 $as_echo_n "checking size of void*... " >&6; }
45252 if test "${ac_cv_sizeof_voidp+set}" = set; then
45253 $as_echo_n "(cached) " >&6
45254 else
45255 if test "$cross_compiling" = yes; then
45256 # Depending upon the size, compute the lo and hi bounds.
45257 cat >conftest.$ac_ext <<_ACEOF
45258 /* confdefs.h. */
45259 _ACEOF
45260 cat confdefs.h >>conftest.$ac_ext
45261 cat >>conftest.$ac_ext <<_ACEOF
45262 /* end confdefs.h. */
45263 $ac_includes_default
45265 main ()
45267 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
45268 test_array [0] = 0
45271 return 0;
45273 _ACEOF
45274 rm -f conftest.$ac_objext
45275 if { (ac_try="$ac_compile"
45276 case "(($ac_try" in
45277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45278 *) ac_try_echo=$ac_try;;
45279 esac
45280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45281 $as_echo "$ac_try_echo") >&5
45282 (eval "$ac_compile") 2>conftest.er1
45283 ac_status=$?
45284 grep -v '^ *+' conftest.er1 >conftest.err
45285 rm -f conftest.er1
45286 cat conftest.err >&5
45287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45288 (exit $ac_status); } && {
45289 test -z "$ac_c_werror_flag" ||
45290 test ! -s conftest.err
45291 } && test -s conftest.$ac_objext; then
45292 ac_lo=0 ac_mid=0
45293 while :; do
45294 cat >conftest.$ac_ext <<_ACEOF
45295 /* confdefs.h. */
45296 _ACEOF
45297 cat confdefs.h >>conftest.$ac_ext
45298 cat >>conftest.$ac_ext <<_ACEOF
45299 /* end confdefs.h. */
45300 $ac_includes_default
45302 main ()
45304 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
45305 test_array [0] = 0
45308 return 0;
45310 _ACEOF
45311 rm -f conftest.$ac_objext
45312 if { (ac_try="$ac_compile"
45313 case "(($ac_try" in
45314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45315 *) ac_try_echo=$ac_try;;
45316 esac
45317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45318 $as_echo "$ac_try_echo") >&5
45319 (eval "$ac_compile") 2>conftest.er1
45320 ac_status=$?
45321 grep -v '^ *+' conftest.er1 >conftest.err
45322 rm -f conftest.er1
45323 cat conftest.err >&5
45324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325 (exit $ac_status); } && {
45326 test -z "$ac_c_werror_flag" ||
45327 test ! -s conftest.err
45328 } && test -s conftest.$ac_objext; then
45329 ac_hi=$ac_mid; break
45330 else
45331 $as_echo "$as_me: failed program was:" >&5
45332 sed 's/^/| /' conftest.$ac_ext >&5
45334 ac_lo=`expr $ac_mid + 1`
45335 if test $ac_lo -le $ac_mid; then
45336 ac_lo= ac_hi=
45337 break
45339 ac_mid=`expr 2 '*' $ac_mid + 1`
45342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45343 done
45344 else
45345 $as_echo "$as_me: failed program was:" >&5
45346 sed 's/^/| /' conftest.$ac_ext >&5
45348 cat >conftest.$ac_ext <<_ACEOF
45349 /* confdefs.h. */
45350 _ACEOF
45351 cat confdefs.h >>conftest.$ac_ext
45352 cat >>conftest.$ac_ext <<_ACEOF
45353 /* end confdefs.h. */
45354 $ac_includes_default
45356 main ()
45358 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
45359 test_array [0] = 0
45362 return 0;
45364 _ACEOF
45365 rm -f conftest.$ac_objext
45366 if { (ac_try="$ac_compile"
45367 case "(($ac_try" in
45368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45369 *) ac_try_echo=$ac_try;;
45370 esac
45371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45372 $as_echo "$ac_try_echo") >&5
45373 (eval "$ac_compile") 2>conftest.er1
45374 ac_status=$?
45375 grep -v '^ *+' conftest.er1 >conftest.err
45376 rm -f conftest.er1
45377 cat conftest.err >&5
45378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45379 (exit $ac_status); } && {
45380 test -z "$ac_c_werror_flag" ||
45381 test ! -s conftest.err
45382 } && test -s conftest.$ac_objext; then
45383 ac_hi=-1 ac_mid=-1
45384 while :; do
45385 cat >conftest.$ac_ext <<_ACEOF
45386 /* confdefs.h. */
45387 _ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h. */
45391 $ac_includes_default
45393 main ()
45395 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
45396 test_array [0] = 0
45399 return 0;
45401 _ACEOF
45402 rm -f conftest.$ac_objext
45403 if { (ac_try="$ac_compile"
45404 case "(($ac_try" in
45405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45406 *) ac_try_echo=$ac_try;;
45407 esac
45408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45409 $as_echo "$ac_try_echo") >&5
45410 (eval "$ac_compile") 2>conftest.er1
45411 ac_status=$?
45412 grep -v '^ *+' conftest.er1 >conftest.err
45413 rm -f conftest.er1
45414 cat conftest.err >&5
45415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45416 (exit $ac_status); } && {
45417 test -z "$ac_c_werror_flag" ||
45418 test ! -s conftest.err
45419 } && test -s conftest.$ac_objext; then
45420 ac_lo=$ac_mid; break
45421 else
45422 $as_echo "$as_me: failed program was:" >&5
45423 sed 's/^/| /' conftest.$ac_ext >&5
45425 ac_hi=`expr '(' $ac_mid ')' - 1`
45426 if test $ac_mid -le $ac_hi; then
45427 ac_lo= ac_hi=
45428 break
45430 ac_mid=`expr 2 '*' $ac_mid`
45433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45434 done
45435 else
45436 $as_echo "$as_me: failed program was:" >&5
45437 sed 's/^/| /' conftest.$ac_ext >&5
45439 ac_lo= ac_hi=
45442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45446 # Binary search between lo and hi bounds.
45447 while test "x$ac_lo" != "x$ac_hi"; do
45448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
45449 cat >conftest.$ac_ext <<_ACEOF
45450 /* confdefs.h. */
45451 _ACEOF
45452 cat confdefs.h >>conftest.$ac_ext
45453 cat >>conftest.$ac_ext <<_ACEOF
45454 /* end confdefs.h. */
45455 $ac_includes_default
45457 main ()
45459 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
45460 test_array [0] = 0
45463 return 0;
45465 _ACEOF
45466 rm -f conftest.$ac_objext
45467 if { (ac_try="$ac_compile"
45468 case "(($ac_try" in
45469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45470 *) ac_try_echo=$ac_try;;
45471 esac
45472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45473 $as_echo "$ac_try_echo") >&5
45474 (eval "$ac_compile") 2>conftest.er1
45475 ac_status=$?
45476 grep -v '^ *+' conftest.er1 >conftest.err
45477 rm -f conftest.er1
45478 cat conftest.err >&5
45479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480 (exit $ac_status); } && {
45481 test -z "$ac_c_werror_flag" ||
45482 test ! -s conftest.err
45483 } && test -s conftest.$ac_objext; then
45484 ac_hi=$ac_mid
45485 else
45486 $as_echo "$as_me: failed program was:" >&5
45487 sed 's/^/| /' conftest.$ac_ext >&5
45489 ac_lo=`expr '(' $ac_mid ')' + 1`
45492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45493 done
45494 case $ac_lo in
45495 ?*) ac_cv_sizeof_voidp=$ac_lo;;
45496 '') if test "$ac_cv_type_voidp" = yes; then
45497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
45498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45499 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
45500 See \`config.log' for more details." >&5
45501 $as_echo "$as_me: error: cannot compute sizeof (void*)
45502 See \`config.log' for more details." >&2;}
45503 { (exit 77); exit 77; }; }; }
45504 else
45505 ac_cv_sizeof_voidp=0
45506 fi ;;
45507 esac
45508 else
45509 cat >conftest.$ac_ext <<_ACEOF
45510 /* confdefs.h. */
45511 _ACEOF
45512 cat confdefs.h >>conftest.$ac_ext
45513 cat >>conftest.$ac_ext <<_ACEOF
45514 /* end confdefs.h. */
45515 $ac_includes_default
45516 static long int longval () { return (long int) (sizeof (void*)); }
45517 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
45518 #include <stdio.h>
45519 #include <stdlib.h>
45521 main ()
45524 FILE *f = fopen ("conftest.val", "w");
45525 if (! f)
45526 return 1;
45527 if (((long int) (sizeof (void*))) < 0)
45529 long int i = longval ();
45530 if (i != ((long int) (sizeof (void*))))
45531 return 1;
45532 fprintf (f, "%ld", i);
45534 else
45536 unsigned long int i = ulongval ();
45537 if (i != ((long int) (sizeof (void*))))
45538 return 1;
45539 fprintf (f, "%lu", i);
45541 /* Do not output a trailing newline, as this causes \r\n confusion
45542 on some platforms. */
45543 return ferror (f) || fclose (f) != 0;
45546 return 0;
45548 _ACEOF
45549 rm -f conftest$ac_exeext
45550 if { (ac_try="$ac_link"
45551 case "(($ac_try" in
45552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45553 *) ac_try_echo=$ac_try;;
45554 esac
45555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45556 $as_echo "$ac_try_echo") >&5
45557 (eval "$ac_link") 2>&5
45558 ac_status=$?
45559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45561 { (case "(($ac_try" in
45562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45563 *) ac_try_echo=$ac_try;;
45564 esac
45565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45566 $as_echo "$ac_try_echo") >&5
45567 (eval "$ac_try") 2>&5
45568 ac_status=$?
45569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45570 (exit $ac_status); }; }; then
45571 ac_cv_sizeof_voidp=`cat conftest.val`
45572 else
45573 $as_echo "$as_me: program exited with status $ac_status" >&5
45574 $as_echo "$as_me: failed program was:" >&5
45575 sed 's/^/| /' conftest.$ac_ext >&5
45577 ( exit $ac_status )
45578 if test "$ac_cv_type_voidp" = yes; then
45579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
45580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45581 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
45582 See \`config.log' for more details." >&5
45583 $as_echo "$as_me: error: cannot compute sizeof (void*)
45584 See \`config.log' for more details." >&2;}
45585 { (exit 77); exit 77; }; }; }
45586 else
45587 ac_cv_sizeof_voidp=0
45590 rm -rf conftest.dSYM
45591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45593 rm -f conftest.val
45595 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
45596 $as_echo "$ac_cv_sizeof_voidp" >&6; }
45600 cat >>confdefs.h <<_ACEOF
45601 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
45602 _ACEOF
45606 for ac_func in sched_yield
45608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45609 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45610 $as_echo_n "checking for $ac_func... " >&6; }
45611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45612 $as_echo_n "(cached) " >&6
45613 else
45614 cat >conftest.$ac_ext <<_ACEOF
45615 /* confdefs.h. */
45616 _ACEOF
45617 cat confdefs.h >>conftest.$ac_ext
45618 cat >>conftest.$ac_ext <<_ACEOF
45619 /* end confdefs.h. */
45620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45622 #define $ac_func innocuous_$ac_func
45624 /* System header to define __stub macros and hopefully few prototypes,
45625 which can conflict with char $ac_func (); below.
45626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45627 <limits.h> exists even on freestanding compilers. */
45629 #ifdef __STDC__
45630 # include <limits.h>
45631 #else
45632 # include <assert.h>
45633 #endif
45635 #undef $ac_func
45637 /* Override any GCC internal prototype to avoid an error.
45638 Use char because int might match the return type of a GCC
45639 builtin and then its argument prototype would still apply. */
45640 #ifdef __cplusplus
45641 extern "C"
45642 #endif
45643 char $ac_func ();
45644 /* The GNU C library defines this for functions which it implements
45645 to always fail with ENOSYS. Some functions are actually named
45646 something starting with __ and the normal name is an alias. */
45647 #if defined __stub_$ac_func || defined __stub___$ac_func
45648 choke me
45649 #endif
45652 main ()
45654 return $ac_func ();
45656 return 0;
45658 _ACEOF
45659 rm -f conftest.$ac_objext conftest$ac_exeext
45660 if { (ac_try="$ac_link"
45661 case "(($ac_try" in
45662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45663 *) ac_try_echo=$ac_try;;
45664 esac
45665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45666 $as_echo "$ac_try_echo") >&5
45667 (eval "$ac_link") 2>conftest.er1
45668 ac_status=$?
45669 grep -v '^ *+' conftest.er1 >conftest.err
45670 rm -f conftest.er1
45671 cat conftest.err >&5
45672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45673 (exit $ac_status); } && {
45674 test -z "$ac_c_werror_flag" ||
45675 test ! -s conftest.err
45676 } && test -s conftest$ac_exeext && {
45677 test "$cross_compiling" = yes ||
45678 $as_test_x conftest$ac_exeext
45679 }; then
45680 eval "$as_ac_var=yes"
45681 else
45682 $as_echo "$as_me: failed program was:" >&5
45683 sed 's/^/| /' conftest.$ac_ext >&5
45685 eval "$as_ac_var=no"
45688 rm -rf conftest.dSYM
45689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45690 conftest$ac_exeext conftest.$ac_ext
45692 ac_res=`eval 'as_val=${'$as_ac_var'}
45693 $as_echo "$as_val"'`
45694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45695 $as_echo "$ac_res" >&6; }
45696 as_val=`eval 'as_val=${'$as_ac_var'}
45697 $as_echo "$as_val"'`
45698 if test "x$as_val" = x""yes; then
45699 cat >>confdefs.h <<_ACEOF
45700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45701 _ACEOF
45704 done
45707 for ac_func in fdatasync
45709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45710 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45711 $as_echo_n "checking for $ac_func... " >&6; }
45712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45713 $as_echo_n "(cached) " >&6
45714 else
45715 cat >conftest.$ac_ext <<_ACEOF
45716 /* confdefs.h. */
45717 _ACEOF
45718 cat confdefs.h >>conftest.$ac_ext
45719 cat >>conftest.$ac_ext <<_ACEOF
45720 /* end confdefs.h. */
45721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45723 #define $ac_func innocuous_$ac_func
45725 /* System header to define __stub macros and hopefully few prototypes,
45726 which can conflict with char $ac_func (); below.
45727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45728 <limits.h> exists even on freestanding compilers. */
45730 #ifdef __STDC__
45731 # include <limits.h>
45732 #else
45733 # include <assert.h>
45734 #endif
45736 #undef $ac_func
45738 /* Override any GCC internal prototype to avoid an error.
45739 Use char because int might match the return type of a GCC
45740 builtin and then its argument prototype would still apply. */
45741 #ifdef __cplusplus
45742 extern "C"
45743 #endif
45744 char $ac_func ();
45745 /* The GNU C library defines this for functions which it implements
45746 to always fail with ENOSYS. Some functions are actually named
45747 something starting with __ and the normal name is an alias. */
45748 #if defined __stub_$ac_func || defined __stub___$ac_func
45749 choke me
45750 #endif
45753 main ()
45755 return $ac_func ();
45757 return 0;
45759 _ACEOF
45760 rm -f conftest.$ac_objext conftest$ac_exeext
45761 if { (ac_try="$ac_link"
45762 case "(($ac_try" in
45763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45764 *) ac_try_echo=$ac_try;;
45765 esac
45766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45767 $as_echo "$ac_try_echo") >&5
45768 (eval "$ac_link") 2>conftest.er1
45769 ac_status=$?
45770 grep -v '^ *+' conftest.er1 >conftest.err
45771 rm -f conftest.er1
45772 cat conftest.err >&5
45773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45774 (exit $ac_status); } && {
45775 test -z "$ac_c_werror_flag" ||
45776 test ! -s conftest.err
45777 } && test -s conftest$ac_exeext && {
45778 test "$cross_compiling" = yes ||
45779 $as_test_x conftest$ac_exeext
45780 }; then
45781 eval "$as_ac_var=yes"
45782 else
45783 $as_echo "$as_me: failed program was:" >&5
45784 sed 's/^/| /' conftest.$ac_ext >&5
45786 eval "$as_ac_var=no"
45789 rm -rf conftest.dSYM
45790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45791 conftest$ac_exeext conftest.$ac_ext
45793 ac_res=`eval 'as_val=${'$as_ac_var'}
45794 $as_echo "$as_val"'`
45795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45796 $as_echo "$ac_res" >&6; }
45797 as_val=`eval 'as_val=${'$as_ac_var'}
45798 $as_echo "$as_val"'`
45799 if test "x$as_val" = x""yes; then
45800 cat >>confdefs.h <<_ACEOF
45801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45802 _ACEOF
45805 done
45808 for ac_func in localtime_r
45810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45812 $as_echo_n "checking for $ac_func... " >&6; }
45813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45814 $as_echo_n "(cached) " >&6
45815 else
45816 cat >conftest.$ac_ext <<_ACEOF
45817 /* confdefs.h. */
45818 _ACEOF
45819 cat confdefs.h >>conftest.$ac_ext
45820 cat >>conftest.$ac_ext <<_ACEOF
45821 /* end confdefs.h. */
45822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45824 #define $ac_func innocuous_$ac_func
45826 /* System header to define __stub macros and hopefully few prototypes,
45827 which can conflict with char $ac_func (); below.
45828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45829 <limits.h> exists even on freestanding compilers. */
45831 #ifdef __STDC__
45832 # include <limits.h>
45833 #else
45834 # include <assert.h>
45835 #endif
45837 #undef $ac_func
45839 /* Override any GCC internal prototype to avoid an error.
45840 Use char because int might match the return type of a GCC
45841 builtin and then its argument prototype would still apply. */
45842 #ifdef __cplusplus
45843 extern "C"
45844 #endif
45845 char $ac_func ();
45846 /* The GNU C library defines this for functions which it implements
45847 to always fail with ENOSYS. Some functions are actually named
45848 something starting with __ and the normal name is an alias. */
45849 #if defined __stub_$ac_func || defined __stub___$ac_func
45850 choke me
45851 #endif
45854 main ()
45856 return $ac_func ();
45858 return 0;
45860 _ACEOF
45861 rm -f conftest.$ac_objext conftest$ac_exeext
45862 if { (ac_try="$ac_link"
45863 case "(($ac_try" in
45864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45865 *) ac_try_echo=$ac_try;;
45866 esac
45867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45868 $as_echo "$ac_try_echo") >&5
45869 (eval "$ac_link") 2>conftest.er1
45870 ac_status=$?
45871 grep -v '^ *+' conftest.er1 >conftest.err
45872 rm -f conftest.er1
45873 cat conftest.err >&5
45874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45875 (exit $ac_status); } && {
45876 test -z "$ac_c_werror_flag" ||
45877 test ! -s conftest.err
45878 } && test -s conftest$ac_exeext && {
45879 test "$cross_compiling" = yes ||
45880 $as_test_x conftest$ac_exeext
45881 }; then
45882 eval "$as_ac_var=yes"
45883 else
45884 $as_echo "$as_me: failed program was:" >&5
45885 sed 's/^/| /' conftest.$ac_ext >&5
45887 eval "$as_ac_var=no"
45890 rm -rf conftest.dSYM
45891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45892 conftest$ac_exeext conftest.$ac_ext
45894 ac_res=`eval 'as_val=${'$as_ac_var'}
45895 $as_echo "$as_val"'`
45896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45897 $as_echo "$ac_res" >&6; }
45898 as_val=`eval 'as_val=${'$as_ac_var'}
45899 $as_echo "$as_val"'`
45900 if test "x$as_val" = x""yes; then
45901 cat >>confdefs.h <<_ACEOF
45902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45903 _ACEOF
45906 done
45909 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
45910 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
45911 if test "${ac_cv_c_bigendian+set}" = set; then
45912 $as_echo_n "(cached) " >&6
45913 else
45914 ac_cv_c_bigendian=unknown
45915 # See if we're dealing with a universal compiler.
45916 cat >conftest.$ac_ext <<_ACEOF
45917 /* confdefs.h. */
45918 _ACEOF
45919 cat confdefs.h >>conftest.$ac_ext
45920 cat >>conftest.$ac_ext <<_ACEOF
45921 /* end confdefs.h. */
45922 #ifndef __APPLE_CC__
45923 not a universal capable compiler
45924 #endif
45925 typedef int dummy;
45927 _ACEOF
45928 rm -f conftest.$ac_objext
45929 if { (ac_try="$ac_compile"
45930 case "(($ac_try" in
45931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45932 *) ac_try_echo=$ac_try;;
45933 esac
45934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45935 $as_echo "$ac_try_echo") >&5
45936 (eval "$ac_compile") 2>conftest.er1
45937 ac_status=$?
45938 grep -v '^ *+' conftest.er1 >conftest.err
45939 rm -f conftest.er1
45940 cat conftest.err >&5
45941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 (exit $ac_status); } && {
45943 test -z "$ac_c_werror_flag" ||
45944 test ! -s conftest.err
45945 } && test -s conftest.$ac_objext; then
45947 # Check for potential -arch flags. It is not universal unless
45948 # there are some -arch flags. Note that *ppc* also matches
45949 # ppc64. This check is also rather less than ideal.
45950 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
45951 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
45952 esac
45953 else
45954 $as_echo "$as_me: failed program was:" >&5
45955 sed 's/^/| /' conftest.$ac_ext >&5
45960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45961 if test $ac_cv_c_bigendian = unknown; then
45962 # See if sys/param.h defines the BYTE_ORDER macro.
45963 cat >conftest.$ac_ext <<_ACEOF
45964 /* confdefs.h. */
45965 _ACEOF
45966 cat confdefs.h >>conftest.$ac_ext
45967 cat >>conftest.$ac_ext <<_ACEOF
45968 /* end confdefs.h. */
45969 #include <sys/types.h>
45970 #include <sys/param.h>
45973 main ()
45975 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
45976 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
45977 && LITTLE_ENDIAN)
45978 bogus endian macros
45979 #endif
45982 return 0;
45984 _ACEOF
45985 rm -f conftest.$ac_objext
45986 if { (ac_try="$ac_compile"
45987 case "(($ac_try" in
45988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45989 *) ac_try_echo=$ac_try;;
45990 esac
45991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45992 $as_echo "$ac_try_echo") >&5
45993 (eval "$ac_compile") 2>conftest.er1
45994 ac_status=$?
45995 grep -v '^ *+' conftest.er1 >conftest.err
45996 rm -f conftest.er1
45997 cat conftest.err >&5
45998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999 (exit $ac_status); } && {
46000 test -z "$ac_c_werror_flag" ||
46001 test ! -s conftest.err
46002 } && test -s conftest.$ac_objext; then
46003 # It does; now see whether it defined to BIG_ENDIAN or not.
46004 cat >conftest.$ac_ext <<_ACEOF
46005 /* confdefs.h. */
46006 _ACEOF
46007 cat confdefs.h >>conftest.$ac_ext
46008 cat >>conftest.$ac_ext <<_ACEOF
46009 /* end confdefs.h. */
46010 #include <sys/types.h>
46011 #include <sys/param.h>
46014 main ()
46016 #if BYTE_ORDER != BIG_ENDIAN
46017 not big endian
46018 #endif
46021 return 0;
46023 _ACEOF
46024 rm -f conftest.$ac_objext
46025 if { (ac_try="$ac_compile"
46026 case "(($ac_try" in
46027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46028 *) ac_try_echo=$ac_try;;
46029 esac
46030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46031 $as_echo "$ac_try_echo") >&5
46032 (eval "$ac_compile") 2>conftest.er1
46033 ac_status=$?
46034 grep -v '^ *+' conftest.er1 >conftest.err
46035 rm -f conftest.er1
46036 cat conftest.err >&5
46037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038 (exit $ac_status); } && {
46039 test -z "$ac_c_werror_flag" ||
46040 test ! -s conftest.err
46041 } && test -s conftest.$ac_objext; then
46042 ac_cv_c_bigendian=yes
46043 else
46044 $as_echo "$as_me: failed program was:" >&5
46045 sed 's/^/| /' conftest.$ac_ext >&5
46047 ac_cv_c_bigendian=no
46050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46051 else
46052 $as_echo "$as_me: failed program was:" >&5
46053 sed 's/^/| /' conftest.$ac_ext >&5
46058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46060 if test $ac_cv_c_bigendian = unknown; then
46061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
46062 cat >conftest.$ac_ext <<_ACEOF
46063 /* confdefs.h. */
46064 _ACEOF
46065 cat confdefs.h >>conftest.$ac_ext
46066 cat >>conftest.$ac_ext <<_ACEOF
46067 /* end confdefs.h. */
46068 #include <limits.h>
46071 main ()
46073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
46074 bogus endian macros
46075 #endif
46078 return 0;
46080 _ACEOF
46081 rm -f conftest.$ac_objext
46082 if { (ac_try="$ac_compile"
46083 case "(($ac_try" in
46084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46085 *) ac_try_echo=$ac_try;;
46086 esac
46087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46088 $as_echo "$ac_try_echo") >&5
46089 (eval "$ac_compile") 2>conftest.er1
46090 ac_status=$?
46091 grep -v '^ *+' conftest.er1 >conftest.err
46092 rm -f conftest.er1
46093 cat conftest.err >&5
46094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095 (exit $ac_status); } && {
46096 test -z "$ac_c_werror_flag" ||
46097 test ! -s conftest.err
46098 } && test -s conftest.$ac_objext; then
46099 # It does; now see whether it defined to _BIG_ENDIAN or not.
46100 cat >conftest.$ac_ext <<_ACEOF
46101 /* confdefs.h. */
46102 _ACEOF
46103 cat confdefs.h >>conftest.$ac_ext
46104 cat >>conftest.$ac_ext <<_ACEOF
46105 /* end confdefs.h. */
46106 #include <limits.h>
46109 main ()
46111 #ifndef _BIG_ENDIAN
46112 not big endian
46113 #endif
46116 return 0;
46118 _ACEOF
46119 rm -f conftest.$ac_objext
46120 if { (ac_try="$ac_compile"
46121 case "(($ac_try" in
46122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46123 *) ac_try_echo=$ac_try;;
46124 esac
46125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46126 $as_echo "$ac_try_echo") >&5
46127 (eval "$ac_compile") 2>conftest.er1
46128 ac_status=$?
46129 grep -v '^ *+' conftest.er1 >conftest.err
46130 rm -f conftest.er1
46131 cat conftest.err >&5
46132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133 (exit $ac_status); } && {
46134 test -z "$ac_c_werror_flag" ||
46135 test ! -s conftest.err
46136 } && test -s conftest.$ac_objext; then
46137 ac_cv_c_bigendian=yes
46138 else
46139 $as_echo "$as_me: failed program was:" >&5
46140 sed 's/^/| /' conftest.$ac_ext >&5
46142 ac_cv_c_bigendian=no
46145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46146 else
46147 $as_echo "$as_me: failed program was:" >&5
46148 sed 's/^/| /' conftest.$ac_ext >&5
46153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46155 if test $ac_cv_c_bigendian = unknown; then
46156 # Compile a test program.
46157 if test "$cross_compiling" = yes; then
46158 # Try to guess by grepping values from an object file.
46159 cat >conftest.$ac_ext <<_ACEOF
46160 /* confdefs.h. */
46161 _ACEOF
46162 cat confdefs.h >>conftest.$ac_ext
46163 cat >>conftest.$ac_ext <<_ACEOF
46164 /* end confdefs.h. */
46165 short int ascii_mm[] =
46166 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
46167 short int ascii_ii[] =
46168 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
46169 int use_ascii (int i) {
46170 return ascii_mm[i] + ascii_ii[i];
46172 short int ebcdic_ii[] =
46173 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
46174 short int ebcdic_mm[] =
46175 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
46176 int use_ebcdic (int i) {
46177 return ebcdic_mm[i] + ebcdic_ii[i];
46179 extern int foo;
46182 main ()
46184 return use_ascii (foo) == use_ebcdic (foo);
46186 return 0;
46188 _ACEOF
46189 rm -f conftest.$ac_objext
46190 if { (ac_try="$ac_compile"
46191 case "(($ac_try" in
46192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46193 *) ac_try_echo=$ac_try;;
46194 esac
46195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46196 $as_echo "$ac_try_echo") >&5
46197 (eval "$ac_compile") 2>conftest.er1
46198 ac_status=$?
46199 grep -v '^ *+' conftest.er1 >conftest.err
46200 rm -f conftest.er1
46201 cat conftest.err >&5
46202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); } && {
46204 test -z "$ac_c_werror_flag" ||
46205 test ! -s conftest.err
46206 } && test -s conftest.$ac_objext; then
46207 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
46208 ac_cv_c_bigendian=yes
46210 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
46211 if test "$ac_cv_c_bigendian" = unknown; then
46212 ac_cv_c_bigendian=no
46213 else
46214 # finding both strings is unlikely to happen, but who knows?
46215 ac_cv_c_bigendian=unknown
46218 else
46219 $as_echo "$as_me: failed program was:" >&5
46220 sed 's/^/| /' conftest.$ac_ext >&5
46225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46226 else
46227 cat >conftest.$ac_ext <<_ACEOF
46228 /* confdefs.h. */
46229 _ACEOF
46230 cat confdefs.h >>conftest.$ac_ext
46231 cat >>conftest.$ac_ext <<_ACEOF
46232 /* end confdefs.h. */
46233 $ac_includes_default
46235 main ()
46238 /* Are we little or big endian? From Harbison&Steele. */
46239 union
46241 long int l;
46242 char c[sizeof (long int)];
46243 } u;
46244 u.l = 1;
46245 return u.c[sizeof (long int) - 1] == 1;
46248 return 0;
46250 _ACEOF
46251 rm -f conftest$ac_exeext
46252 if { (ac_try="$ac_link"
46253 case "(($ac_try" in
46254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46255 *) ac_try_echo=$ac_try;;
46256 esac
46257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46258 $as_echo "$ac_try_echo") >&5
46259 (eval "$ac_link") 2>&5
46260 ac_status=$?
46261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46263 { (case "(($ac_try" in
46264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265 *) ac_try_echo=$ac_try;;
46266 esac
46267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46268 $as_echo "$ac_try_echo") >&5
46269 (eval "$ac_try") 2>&5
46270 ac_status=$?
46271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46272 (exit $ac_status); }; }; then
46273 ac_cv_c_bigendian=no
46274 else
46275 $as_echo "$as_me: program exited with status $ac_status" >&5
46276 $as_echo "$as_me: failed program was:" >&5
46277 sed 's/^/| /' conftest.$ac_ext >&5
46279 ( exit $ac_status )
46280 ac_cv_c_bigendian=yes
46282 rm -rf conftest.dSYM
46283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46289 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
46290 $as_echo "$ac_cv_c_bigendian" >&6; }
46291 case $ac_cv_c_bigendian in #(
46292 yes)
46293 cat >>confdefs.h <<\_ACEOF
46294 #define WORDS_BIGENDIAN 1
46295 _ACEOF
46296 ;; #(
46298 ;; #(
46299 universal)
46301 cat >>confdefs.h <<\_ACEOF
46302 #define AC_APPLE_UNIVERSAL_BUILD 1
46303 _ACEOF
46305 ;; #(
46307 { { $as_echo "$as_me:$LINENO: error: unknown endianness
46308 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
46309 $as_echo "$as_me: error: unknown endianness
46310 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
46311 { (exit 1); exit 1; }; } ;;
46312 esac
46314 case "$target_os" in
46315 lin*)
46316 CFLAGS="$CFLAGS -DUNIV_LINUX";;
46317 hpux10*)
46318 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX -DUNIV_HPUX10";;
46319 hp*)
46320 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX";;
46321 aix*)
46322 CFLAGS="$CFLAGS -DUNIV_AIX";;
46323 irix*|osf*|sysv5uw7*|openbsd*)
46324 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE";;
46325 *solaris*|*SunOS*)
46326 CFLAGS="$CFLAGS -DUNIV_SOLARIS";;
46327 esac
46328 INNODB_DYNAMIC_CFLAGS="-DMYSQL_DYNAMIC_PLUGIN"
46329 case "$target_cpu" in
46330 x86_64)
46331 # The AMD64 ABI forbids absolute addresses in shared libraries
46333 *86)
46334 # Use absolute addresses on IA-32
46335 INNODB_DYNAMIC_CFLAGS="$INNODB_DYNAMIC_CFLAGS -prefer-non-pic"
46337 esac
46350 if test "X$with_plugin_innodb_plugin" = Xyes; then
46351 if test "X$plugin_innodb_plugin_static_target" = X -a \
46352 "X$plugin_innodb_plugin_shared_target" = X; then
46353 { { $as_echo "$as_me:$LINENO: error: that's strange, innodb_plugin failed sanity check" >&5
46354 $as_echo "$as_me: error: that's strange, innodb_plugin failed sanity check" >&2;}
46355 { (exit 1); exit 1; }; }
46359 for ac_header in sched.h
46361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46364 $as_echo_n "checking for $ac_header... " >&6; }
46365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46366 $as_echo_n "(cached) " >&6
46368 ac_res=`eval 'as_val=${'$as_ac_Header'}
46369 $as_echo "$as_val"'`
46370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46371 $as_echo "$ac_res" >&6; }
46372 else
46373 # Is the header compilable?
46374 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46375 $as_echo_n "checking $ac_header usability... " >&6; }
46376 cat >conftest.$ac_ext <<_ACEOF
46377 /* confdefs.h. */
46378 _ACEOF
46379 cat confdefs.h >>conftest.$ac_ext
46380 cat >>conftest.$ac_ext <<_ACEOF
46381 /* end confdefs.h. */
46382 $ac_includes_default
46383 #include <$ac_header>
46384 _ACEOF
46385 rm -f conftest.$ac_objext
46386 if { (ac_try="$ac_compile"
46387 case "(($ac_try" in
46388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46389 *) ac_try_echo=$ac_try;;
46390 esac
46391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46392 $as_echo "$ac_try_echo") >&5
46393 (eval "$ac_compile") 2>conftest.er1
46394 ac_status=$?
46395 grep -v '^ *+' conftest.er1 >conftest.err
46396 rm -f conftest.er1
46397 cat conftest.err >&5
46398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399 (exit $ac_status); } && {
46400 test -z "$ac_c_werror_flag" ||
46401 test ! -s conftest.err
46402 } && test -s conftest.$ac_objext; then
46403 ac_header_compiler=yes
46404 else
46405 $as_echo "$as_me: failed program was:" >&5
46406 sed 's/^/| /' conftest.$ac_ext >&5
46408 ac_header_compiler=no
46411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46412 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46413 $as_echo "$ac_header_compiler" >&6; }
46415 # Is the header present?
46416 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
46417 $as_echo_n "checking $ac_header presence... " >&6; }
46418 cat >conftest.$ac_ext <<_ACEOF
46419 /* confdefs.h. */
46420 _ACEOF
46421 cat confdefs.h >>conftest.$ac_ext
46422 cat >>conftest.$ac_ext <<_ACEOF
46423 /* end confdefs.h. */
46424 #include <$ac_header>
46425 _ACEOF
46426 if { (ac_try="$ac_cpp conftest.$ac_ext"
46427 case "(($ac_try" in
46428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46429 *) ac_try_echo=$ac_try;;
46430 esac
46431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46432 $as_echo "$ac_try_echo") >&5
46433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46434 ac_status=$?
46435 grep -v '^ *+' conftest.er1 >conftest.err
46436 rm -f conftest.er1
46437 cat conftest.err >&5
46438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46439 (exit $ac_status); } >/dev/null && {
46440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46441 test ! -s conftest.err
46442 }; then
46443 ac_header_preproc=yes
46444 else
46445 $as_echo "$as_me: failed program was:" >&5
46446 sed 's/^/| /' conftest.$ac_ext >&5
46448 ac_header_preproc=no
46451 rm -f conftest.err conftest.$ac_ext
46452 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46453 $as_echo "$ac_header_preproc" >&6; }
46455 # So? What about this header?
46456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46457 yes:no: )
46458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46459 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46462 ac_header_preproc=yes
46464 no:yes:* )
46465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46466 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46468 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46470 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46472 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46474 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46476 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46479 esac
46480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46481 $as_echo_n "checking for $ac_header... " >&6; }
46482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46483 $as_echo_n "(cached) " >&6
46484 else
46485 eval "$as_ac_Header=\$ac_header_preproc"
46487 ac_res=`eval 'as_val=${'$as_ac_Header'}
46488 $as_echo "$as_val"'`
46489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46490 $as_echo "$ac_res" >&6; }
46493 as_val=`eval 'as_val=${'$as_ac_Header'}
46494 $as_echo "$as_val"'`
46495 if test "x$as_val" = x""yes; then
46496 cat >>confdefs.h <<_ACEOF
46497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46498 _ACEOF
46502 done
46504 # The cast to long int works around a bug in the HP C Compiler
46505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
46506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
46507 # This bug is HP SR number 8606223364.
46508 { $as_echo "$as_me:$LINENO: checking size of int" >&5
46509 $as_echo_n "checking size of int... " >&6; }
46510 if test "${ac_cv_sizeof_int+set}" = set; then
46511 $as_echo_n "(cached) " >&6
46512 else
46513 if test "$cross_compiling" = yes; then
46514 # Depending upon the size, compute the lo and hi bounds.
46515 cat >conftest.$ac_ext <<_ACEOF
46516 /* confdefs.h. */
46517 _ACEOF
46518 cat confdefs.h >>conftest.$ac_ext
46519 cat >>conftest.$ac_ext <<_ACEOF
46520 /* end confdefs.h. */
46521 $ac_includes_default
46523 main ()
46525 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
46526 test_array [0] = 0
46529 return 0;
46531 _ACEOF
46532 rm -f conftest.$ac_objext
46533 if { (ac_try="$ac_compile"
46534 case "(($ac_try" in
46535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46536 *) ac_try_echo=$ac_try;;
46537 esac
46538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46539 $as_echo "$ac_try_echo") >&5
46540 (eval "$ac_compile") 2>conftest.er1
46541 ac_status=$?
46542 grep -v '^ *+' conftest.er1 >conftest.err
46543 rm -f conftest.er1
46544 cat conftest.err >&5
46545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46546 (exit $ac_status); } && {
46547 test -z "$ac_c_werror_flag" ||
46548 test ! -s conftest.err
46549 } && test -s conftest.$ac_objext; then
46550 ac_lo=0 ac_mid=0
46551 while :; do
46552 cat >conftest.$ac_ext <<_ACEOF
46553 /* confdefs.h. */
46554 _ACEOF
46555 cat confdefs.h >>conftest.$ac_ext
46556 cat >>conftest.$ac_ext <<_ACEOF
46557 /* end confdefs.h. */
46558 $ac_includes_default
46560 main ()
46562 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
46563 test_array [0] = 0
46566 return 0;
46568 _ACEOF
46569 rm -f conftest.$ac_objext
46570 if { (ac_try="$ac_compile"
46571 case "(($ac_try" in
46572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46573 *) ac_try_echo=$ac_try;;
46574 esac
46575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46576 $as_echo "$ac_try_echo") >&5
46577 (eval "$ac_compile") 2>conftest.er1
46578 ac_status=$?
46579 grep -v '^ *+' conftest.er1 >conftest.err
46580 rm -f conftest.er1
46581 cat conftest.err >&5
46582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46583 (exit $ac_status); } && {
46584 test -z "$ac_c_werror_flag" ||
46585 test ! -s conftest.err
46586 } && test -s conftest.$ac_objext; then
46587 ac_hi=$ac_mid; break
46588 else
46589 $as_echo "$as_me: failed program was:" >&5
46590 sed 's/^/| /' conftest.$ac_ext >&5
46592 ac_lo=`expr $ac_mid + 1`
46593 if test $ac_lo -le $ac_mid; then
46594 ac_lo= ac_hi=
46595 break
46597 ac_mid=`expr 2 '*' $ac_mid + 1`
46600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46601 done
46602 else
46603 $as_echo "$as_me: failed program was:" >&5
46604 sed 's/^/| /' conftest.$ac_ext >&5
46606 cat >conftest.$ac_ext <<_ACEOF
46607 /* confdefs.h. */
46608 _ACEOF
46609 cat confdefs.h >>conftest.$ac_ext
46610 cat >>conftest.$ac_ext <<_ACEOF
46611 /* end confdefs.h. */
46612 $ac_includes_default
46614 main ()
46616 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
46617 test_array [0] = 0
46620 return 0;
46622 _ACEOF
46623 rm -f conftest.$ac_objext
46624 if { (ac_try="$ac_compile"
46625 case "(($ac_try" in
46626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46627 *) ac_try_echo=$ac_try;;
46628 esac
46629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46630 $as_echo "$ac_try_echo") >&5
46631 (eval "$ac_compile") 2>conftest.er1
46632 ac_status=$?
46633 grep -v '^ *+' conftest.er1 >conftest.err
46634 rm -f conftest.er1
46635 cat conftest.err >&5
46636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46637 (exit $ac_status); } && {
46638 test -z "$ac_c_werror_flag" ||
46639 test ! -s conftest.err
46640 } && test -s conftest.$ac_objext; then
46641 ac_hi=-1 ac_mid=-1
46642 while :; do
46643 cat >conftest.$ac_ext <<_ACEOF
46644 /* confdefs.h. */
46645 _ACEOF
46646 cat confdefs.h >>conftest.$ac_ext
46647 cat >>conftest.$ac_ext <<_ACEOF
46648 /* end confdefs.h. */
46649 $ac_includes_default
46651 main ()
46653 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
46654 test_array [0] = 0
46657 return 0;
46659 _ACEOF
46660 rm -f conftest.$ac_objext
46661 if { (ac_try="$ac_compile"
46662 case "(($ac_try" in
46663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46664 *) ac_try_echo=$ac_try;;
46665 esac
46666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46667 $as_echo "$ac_try_echo") >&5
46668 (eval "$ac_compile") 2>conftest.er1
46669 ac_status=$?
46670 grep -v '^ *+' conftest.er1 >conftest.err
46671 rm -f conftest.er1
46672 cat conftest.err >&5
46673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); } && {
46675 test -z "$ac_c_werror_flag" ||
46676 test ! -s conftest.err
46677 } && test -s conftest.$ac_objext; then
46678 ac_lo=$ac_mid; break
46679 else
46680 $as_echo "$as_me: failed program was:" >&5
46681 sed 's/^/| /' conftest.$ac_ext >&5
46683 ac_hi=`expr '(' $ac_mid ')' - 1`
46684 if test $ac_mid -le $ac_hi; then
46685 ac_lo= ac_hi=
46686 break
46688 ac_mid=`expr 2 '*' $ac_mid`
46691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46692 done
46693 else
46694 $as_echo "$as_me: failed program was:" >&5
46695 sed 's/^/| /' conftest.$ac_ext >&5
46697 ac_lo= ac_hi=
46700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46704 # Binary search between lo and hi bounds.
46705 while test "x$ac_lo" != "x$ac_hi"; do
46706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
46707 cat >conftest.$ac_ext <<_ACEOF
46708 /* confdefs.h. */
46709 _ACEOF
46710 cat confdefs.h >>conftest.$ac_ext
46711 cat >>conftest.$ac_ext <<_ACEOF
46712 /* end confdefs.h. */
46713 $ac_includes_default
46715 main ()
46717 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
46718 test_array [0] = 0
46721 return 0;
46723 _ACEOF
46724 rm -f conftest.$ac_objext
46725 if { (ac_try="$ac_compile"
46726 case "(($ac_try" in
46727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46728 *) ac_try_echo=$ac_try;;
46729 esac
46730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46731 $as_echo "$ac_try_echo") >&5
46732 (eval "$ac_compile") 2>conftest.er1
46733 ac_status=$?
46734 grep -v '^ *+' conftest.er1 >conftest.err
46735 rm -f conftest.er1
46736 cat conftest.err >&5
46737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46738 (exit $ac_status); } && {
46739 test -z "$ac_c_werror_flag" ||
46740 test ! -s conftest.err
46741 } && test -s conftest.$ac_objext; then
46742 ac_hi=$ac_mid
46743 else
46744 $as_echo "$as_me: failed program was:" >&5
46745 sed 's/^/| /' conftest.$ac_ext >&5
46747 ac_lo=`expr '(' $ac_mid ')' + 1`
46750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46751 done
46752 case $ac_lo in
46753 ?*) ac_cv_sizeof_int=$ac_lo;;
46754 '') if test "$ac_cv_type_int" = yes; then
46755 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
46756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46757 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
46758 See \`config.log' for more details." >&5
46759 $as_echo "$as_me: error: cannot compute sizeof (int)
46760 See \`config.log' for more details." >&2;}
46761 { (exit 77); exit 77; }; }; }
46762 else
46763 ac_cv_sizeof_int=0
46764 fi ;;
46765 esac
46766 else
46767 cat >conftest.$ac_ext <<_ACEOF
46768 /* confdefs.h. */
46769 _ACEOF
46770 cat confdefs.h >>conftest.$ac_ext
46771 cat >>conftest.$ac_ext <<_ACEOF
46772 /* end confdefs.h. */
46773 $ac_includes_default
46774 static long int longval () { return (long int) (sizeof (int)); }
46775 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
46776 #include <stdio.h>
46777 #include <stdlib.h>
46779 main ()
46782 FILE *f = fopen ("conftest.val", "w");
46783 if (! f)
46784 return 1;
46785 if (((long int) (sizeof (int))) < 0)
46787 long int i = longval ();
46788 if (i != ((long int) (sizeof (int))))
46789 return 1;
46790 fprintf (f, "%ld", i);
46792 else
46794 unsigned long int i = ulongval ();
46795 if (i != ((long int) (sizeof (int))))
46796 return 1;
46797 fprintf (f, "%lu", i);
46799 /* Do not output a trailing newline, as this causes \r\n confusion
46800 on some platforms. */
46801 return ferror (f) || fclose (f) != 0;
46804 return 0;
46806 _ACEOF
46807 rm -f conftest$ac_exeext
46808 if { (ac_try="$ac_link"
46809 case "(($ac_try" in
46810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46811 *) ac_try_echo=$ac_try;;
46812 esac
46813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46814 $as_echo "$ac_try_echo") >&5
46815 (eval "$ac_link") 2>&5
46816 ac_status=$?
46817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46819 { (case "(($ac_try" in
46820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46821 *) ac_try_echo=$ac_try;;
46822 esac
46823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46824 $as_echo "$ac_try_echo") >&5
46825 (eval "$ac_try") 2>&5
46826 ac_status=$?
46827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828 (exit $ac_status); }; }; then
46829 ac_cv_sizeof_int=`cat conftest.val`
46830 else
46831 $as_echo "$as_me: program exited with status $ac_status" >&5
46832 $as_echo "$as_me: failed program was:" >&5
46833 sed 's/^/| /' conftest.$ac_ext >&5
46835 ( exit $ac_status )
46836 if test "$ac_cv_type_int" = yes; then
46837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
46838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46839 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
46840 See \`config.log' for more details." >&5
46841 $as_echo "$as_me: error: cannot compute sizeof (int)
46842 See \`config.log' for more details." >&2;}
46843 { (exit 77); exit 77; }; }; }
46844 else
46845 ac_cv_sizeof_int=0
46848 rm -rf conftest.dSYM
46849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46851 rm -f conftest.val
46853 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
46854 $as_echo "$ac_cv_sizeof_int" >&6; }
46858 cat >>confdefs.h <<_ACEOF
46859 #define SIZEOF_INT $ac_cv_sizeof_int
46860 _ACEOF
46863 # The cast to long int works around a bug in the HP C Compiler
46864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
46865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
46866 # This bug is HP SR number 8606223364.
46867 { $as_echo "$as_me:$LINENO: checking size of long" >&5
46868 $as_echo_n "checking size of long... " >&6; }
46869 if test "${ac_cv_sizeof_long+set}" = set; then
46870 $as_echo_n "(cached) " >&6
46871 else
46872 if test "$cross_compiling" = yes; then
46873 # Depending upon the size, compute the lo and hi bounds.
46874 cat >conftest.$ac_ext <<_ACEOF
46875 /* confdefs.h. */
46876 _ACEOF
46877 cat confdefs.h >>conftest.$ac_ext
46878 cat >>conftest.$ac_ext <<_ACEOF
46879 /* end confdefs.h. */
46880 $ac_includes_default
46882 main ()
46884 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
46885 test_array [0] = 0
46888 return 0;
46890 _ACEOF
46891 rm -f conftest.$ac_objext
46892 if { (ac_try="$ac_compile"
46893 case "(($ac_try" in
46894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46895 *) ac_try_echo=$ac_try;;
46896 esac
46897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46898 $as_echo "$ac_try_echo") >&5
46899 (eval "$ac_compile") 2>conftest.er1
46900 ac_status=$?
46901 grep -v '^ *+' conftest.er1 >conftest.err
46902 rm -f conftest.er1
46903 cat conftest.err >&5
46904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46905 (exit $ac_status); } && {
46906 test -z "$ac_c_werror_flag" ||
46907 test ! -s conftest.err
46908 } && test -s conftest.$ac_objext; then
46909 ac_lo=0 ac_mid=0
46910 while :; do
46911 cat >conftest.$ac_ext <<_ACEOF
46912 /* confdefs.h. */
46913 _ACEOF
46914 cat confdefs.h >>conftest.$ac_ext
46915 cat >>conftest.$ac_ext <<_ACEOF
46916 /* end confdefs.h. */
46917 $ac_includes_default
46919 main ()
46921 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
46922 test_array [0] = 0
46925 return 0;
46927 _ACEOF
46928 rm -f conftest.$ac_objext
46929 if { (ac_try="$ac_compile"
46930 case "(($ac_try" in
46931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46932 *) ac_try_echo=$ac_try;;
46933 esac
46934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46935 $as_echo "$ac_try_echo") >&5
46936 (eval "$ac_compile") 2>conftest.er1
46937 ac_status=$?
46938 grep -v '^ *+' conftest.er1 >conftest.err
46939 rm -f conftest.er1
46940 cat conftest.err >&5
46941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942 (exit $ac_status); } && {
46943 test -z "$ac_c_werror_flag" ||
46944 test ! -s conftest.err
46945 } && test -s conftest.$ac_objext; then
46946 ac_hi=$ac_mid; break
46947 else
46948 $as_echo "$as_me: failed program was:" >&5
46949 sed 's/^/| /' conftest.$ac_ext >&5
46951 ac_lo=`expr $ac_mid + 1`
46952 if test $ac_lo -le $ac_mid; then
46953 ac_lo= ac_hi=
46954 break
46956 ac_mid=`expr 2 '*' $ac_mid + 1`
46959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46960 done
46961 else
46962 $as_echo "$as_me: failed program was:" >&5
46963 sed 's/^/| /' conftest.$ac_ext >&5
46965 cat >conftest.$ac_ext <<_ACEOF
46966 /* confdefs.h. */
46967 _ACEOF
46968 cat confdefs.h >>conftest.$ac_ext
46969 cat >>conftest.$ac_ext <<_ACEOF
46970 /* end confdefs.h. */
46971 $ac_includes_default
46973 main ()
46975 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
46976 test_array [0] = 0
46979 return 0;
46981 _ACEOF
46982 rm -f conftest.$ac_objext
46983 if { (ac_try="$ac_compile"
46984 case "(($ac_try" in
46985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46986 *) ac_try_echo=$ac_try;;
46987 esac
46988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46989 $as_echo "$ac_try_echo") >&5
46990 (eval "$ac_compile") 2>conftest.er1
46991 ac_status=$?
46992 grep -v '^ *+' conftest.er1 >conftest.err
46993 rm -f conftest.er1
46994 cat conftest.err >&5
46995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46996 (exit $ac_status); } && {
46997 test -z "$ac_c_werror_flag" ||
46998 test ! -s conftest.err
46999 } && test -s conftest.$ac_objext; then
47000 ac_hi=-1 ac_mid=-1
47001 while :; do
47002 cat >conftest.$ac_ext <<_ACEOF
47003 /* confdefs.h. */
47004 _ACEOF
47005 cat confdefs.h >>conftest.$ac_ext
47006 cat >>conftest.$ac_ext <<_ACEOF
47007 /* end confdefs.h. */
47008 $ac_includes_default
47010 main ()
47012 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
47013 test_array [0] = 0
47016 return 0;
47018 _ACEOF
47019 rm -f conftest.$ac_objext
47020 if { (ac_try="$ac_compile"
47021 case "(($ac_try" in
47022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47023 *) ac_try_echo=$ac_try;;
47024 esac
47025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47026 $as_echo "$ac_try_echo") >&5
47027 (eval "$ac_compile") 2>conftest.er1
47028 ac_status=$?
47029 grep -v '^ *+' conftest.er1 >conftest.err
47030 rm -f conftest.er1
47031 cat conftest.err >&5
47032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47033 (exit $ac_status); } && {
47034 test -z "$ac_c_werror_flag" ||
47035 test ! -s conftest.err
47036 } && test -s conftest.$ac_objext; then
47037 ac_lo=$ac_mid; break
47038 else
47039 $as_echo "$as_me: failed program was:" >&5
47040 sed 's/^/| /' conftest.$ac_ext >&5
47042 ac_hi=`expr '(' $ac_mid ')' - 1`
47043 if test $ac_mid -le $ac_hi; then
47044 ac_lo= ac_hi=
47045 break
47047 ac_mid=`expr 2 '*' $ac_mid`
47050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47051 done
47052 else
47053 $as_echo "$as_me: failed program was:" >&5
47054 sed 's/^/| /' conftest.$ac_ext >&5
47056 ac_lo= ac_hi=
47059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47063 # Binary search between lo and hi bounds.
47064 while test "x$ac_lo" != "x$ac_hi"; do
47065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
47066 cat >conftest.$ac_ext <<_ACEOF
47067 /* confdefs.h. */
47068 _ACEOF
47069 cat confdefs.h >>conftest.$ac_ext
47070 cat >>conftest.$ac_ext <<_ACEOF
47071 /* end confdefs.h. */
47072 $ac_includes_default
47074 main ()
47076 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
47077 test_array [0] = 0
47080 return 0;
47082 _ACEOF
47083 rm -f conftest.$ac_objext
47084 if { (ac_try="$ac_compile"
47085 case "(($ac_try" in
47086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47087 *) ac_try_echo=$ac_try;;
47088 esac
47089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47090 $as_echo "$ac_try_echo") >&5
47091 (eval "$ac_compile") 2>conftest.er1
47092 ac_status=$?
47093 grep -v '^ *+' conftest.er1 >conftest.err
47094 rm -f conftest.er1
47095 cat conftest.err >&5
47096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47097 (exit $ac_status); } && {
47098 test -z "$ac_c_werror_flag" ||
47099 test ! -s conftest.err
47100 } && test -s conftest.$ac_objext; then
47101 ac_hi=$ac_mid
47102 else
47103 $as_echo "$as_me: failed program was:" >&5
47104 sed 's/^/| /' conftest.$ac_ext >&5
47106 ac_lo=`expr '(' $ac_mid ')' + 1`
47109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47110 done
47111 case $ac_lo in
47112 ?*) ac_cv_sizeof_long=$ac_lo;;
47113 '') if test "$ac_cv_type_long" = yes; then
47114 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47116 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
47117 See \`config.log' for more details." >&5
47118 $as_echo "$as_me: error: cannot compute sizeof (long)
47119 See \`config.log' for more details." >&2;}
47120 { (exit 77); exit 77; }; }; }
47121 else
47122 ac_cv_sizeof_long=0
47123 fi ;;
47124 esac
47125 else
47126 cat >conftest.$ac_ext <<_ACEOF
47127 /* confdefs.h. */
47128 _ACEOF
47129 cat confdefs.h >>conftest.$ac_ext
47130 cat >>conftest.$ac_ext <<_ACEOF
47131 /* end confdefs.h. */
47132 $ac_includes_default
47133 static long int longval () { return (long int) (sizeof (long)); }
47134 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
47135 #include <stdio.h>
47136 #include <stdlib.h>
47138 main ()
47141 FILE *f = fopen ("conftest.val", "w");
47142 if (! f)
47143 return 1;
47144 if (((long int) (sizeof (long))) < 0)
47146 long int i = longval ();
47147 if (i != ((long int) (sizeof (long))))
47148 return 1;
47149 fprintf (f, "%ld", i);
47151 else
47153 unsigned long int i = ulongval ();
47154 if (i != ((long int) (sizeof (long))))
47155 return 1;
47156 fprintf (f, "%lu", i);
47158 /* Do not output a trailing newline, as this causes \r\n confusion
47159 on some platforms. */
47160 return ferror (f) || fclose (f) != 0;
47163 return 0;
47165 _ACEOF
47166 rm -f conftest$ac_exeext
47167 if { (ac_try="$ac_link"
47168 case "(($ac_try" in
47169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47170 *) ac_try_echo=$ac_try;;
47171 esac
47172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47173 $as_echo "$ac_try_echo") >&5
47174 (eval "$ac_link") 2>&5
47175 ac_status=$?
47176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47178 { (case "(($ac_try" in
47179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47180 *) ac_try_echo=$ac_try;;
47181 esac
47182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47183 $as_echo "$ac_try_echo") >&5
47184 (eval "$ac_try") 2>&5
47185 ac_status=$?
47186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47187 (exit $ac_status); }; }; then
47188 ac_cv_sizeof_long=`cat conftest.val`
47189 else
47190 $as_echo "$as_me: program exited with status $ac_status" >&5
47191 $as_echo "$as_me: failed program was:" >&5
47192 sed 's/^/| /' conftest.$ac_ext >&5
47194 ( exit $ac_status )
47195 if test "$ac_cv_type_long" = yes; then
47196 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47198 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
47199 See \`config.log' for more details." >&5
47200 $as_echo "$as_me: error: cannot compute sizeof (long)
47201 See \`config.log' for more details." >&2;}
47202 { (exit 77); exit 77; }; }; }
47203 else
47204 ac_cv_sizeof_long=0
47207 rm -rf conftest.dSYM
47208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47210 rm -f conftest.val
47212 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
47213 $as_echo "$ac_cv_sizeof_long" >&6; }
47217 cat >>confdefs.h <<_ACEOF
47218 #define SIZEOF_LONG $ac_cv_sizeof_long
47219 _ACEOF
47222 # The cast to long int works around a bug in the HP C Compiler
47223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47225 # This bug is HP SR number 8606223364.
47226 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
47227 $as_echo_n "checking size of void*... " >&6; }
47228 if test "${ac_cv_sizeof_voidp+set}" = set; then
47229 $as_echo_n "(cached) " >&6
47230 else
47231 if test "$cross_compiling" = yes; then
47232 # Depending upon the size, compute the lo and hi bounds.
47233 cat >conftest.$ac_ext <<_ACEOF
47234 /* confdefs.h. */
47235 _ACEOF
47236 cat confdefs.h >>conftest.$ac_ext
47237 cat >>conftest.$ac_ext <<_ACEOF
47238 /* end confdefs.h. */
47239 $ac_includes_default
47241 main ()
47243 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
47244 test_array [0] = 0
47247 return 0;
47249 _ACEOF
47250 rm -f conftest.$ac_objext
47251 if { (ac_try="$ac_compile"
47252 case "(($ac_try" in
47253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47254 *) ac_try_echo=$ac_try;;
47255 esac
47256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47257 $as_echo "$ac_try_echo") >&5
47258 (eval "$ac_compile") 2>conftest.er1
47259 ac_status=$?
47260 grep -v '^ *+' conftest.er1 >conftest.err
47261 rm -f conftest.er1
47262 cat conftest.err >&5
47263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47264 (exit $ac_status); } && {
47265 test -z "$ac_c_werror_flag" ||
47266 test ! -s conftest.err
47267 } && test -s conftest.$ac_objext; then
47268 ac_lo=0 ac_mid=0
47269 while :; do
47270 cat >conftest.$ac_ext <<_ACEOF
47271 /* confdefs.h. */
47272 _ACEOF
47273 cat confdefs.h >>conftest.$ac_ext
47274 cat >>conftest.$ac_ext <<_ACEOF
47275 /* end confdefs.h. */
47276 $ac_includes_default
47278 main ()
47280 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
47281 test_array [0] = 0
47284 return 0;
47286 _ACEOF
47287 rm -f conftest.$ac_objext
47288 if { (ac_try="$ac_compile"
47289 case "(($ac_try" in
47290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47291 *) ac_try_echo=$ac_try;;
47292 esac
47293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47294 $as_echo "$ac_try_echo") >&5
47295 (eval "$ac_compile") 2>conftest.er1
47296 ac_status=$?
47297 grep -v '^ *+' conftest.er1 >conftest.err
47298 rm -f conftest.er1
47299 cat conftest.err >&5
47300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47301 (exit $ac_status); } && {
47302 test -z "$ac_c_werror_flag" ||
47303 test ! -s conftest.err
47304 } && test -s conftest.$ac_objext; then
47305 ac_hi=$ac_mid; break
47306 else
47307 $as_echo "$as_me: failed program was:" >&5
47308 sed 's/^/| /' conftest.$ac_ext >&5
47310 ac_lo=`expr $ac_mid + 1`
47311 if test $ac_lo -le $ac_mid; then
47312 ac_lo= ac_hi=
47313 break
47315 ac_mid=`expr 2 '*' $ac_mid + 1`
47318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47319 done
47320 else
47321 $as_echo "$as_me: failed program was:" >&5
47322 sed 's/^/| /' conftest.$ac_ext >&5
47324 cat >conftest.$ac_ext <<_ACEOF
47325 /* confdefs.h. */
47326 _ACEOF
47327 cat confdefs.h >>conftest.$ac_ext
47328 cat >>conftest.$ac_ext <<_ACEOF
47329 /* end confdefs.h. */
47330 $ac_includes_default
47332 main ()
47334 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
47335 test_array [0] = 0
47338 return 0;
47340 _ACEOF
47341 rm -f conftest.$ac_objext
47342 if { (ac_try="$ac_compile"
47343 case "(($ac_try" in
47344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47345 *) ac_try_echo=$ac_try;;
47346 esac
47347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47348 $as_echo "$ac_try_echo") >&5
47349 (eval "$ac_compile") 2>conftest.er1
47350 ac_status=$?
47351 grep -v '^ *+' conftest.er1 >conftest.err
47352 rm -f conftest.er1
47353 cat conftest.err >&5
47354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47355 (exit $ac_status); } && {
47356 test -z "$ac_c_werror_flag" ||
47357 test ! -s conftest.err
47358 } && test -s conftest.$ac_objext; then
47359 ac_hi=-1 ac_mid=-1
47360 while :; do
47361 cat >conftest.$ac_ext <<_ACEOF
47362 /* confdefs.h. */
47363 _ACEOF
47364 cat confdefs.h >>conftest.$ac_ext
47365 cat >>conftest.$ac_ext <<_ACEOF
47366 /* end confdefs.h. */
47367 $ac_includes_default
47369 main ()
47371 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
47372 test_array [0] = 0
47375 return 0;
47377 _ACEOF
47378 rm -f conftest.$ac_objext
47379 if { (ac_try="$ac_compile"
47380 case "(($ac_try" in
47381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47382 *) ac_try_echo=$ac_try;;
47383 esac
47384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47385 $as_echo "$ac_try_echo") >&5
47386 (eval "$ac_compile") 2>conftest.er1
47387 ac_status=$?
47388 grep -v '^ *+' conftest.er1 >conftest.err
47389 rm -f conftest.er1
47390 cat conftest.err >&5
47391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47392 (exit $ac_status); } && {
47393 test -z "$ac_c_werror_flag" ||
47394 test ! -s conftest.err
47395 } && test -s conftest.$ac_objext; then
47396 ac_lo=$ac_mid; break
47397 else
47398 $as_echo "$as_me: failed program was:" >&5
47399 sed 's/^/| /' conftest.$ac_ext >&5
47401 ac_hi=`expr '(' $ac_mid ')' - 1`
47402 if test $ac_mid -le $ac_hi; then
47403 ac_lo= ac_hi=
47404 break
47406 ac_mid=`expr 2 '*' $ac_mid`
47409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47410 done
47411 else
47412 $as_echo "$as_me: failed program was:" >&5
47413 sed 's/^/| /' conftest.$ac_ext >&5
47415 ac_lo= ac_hi=
47418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47422 # Binary search between lo and hi bounds.
47423 while test "x$ac_lo" != "x$ac_hi"; do
47424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
47425 cat >conftest.$ac_ext <<_ACEOF
47426 /* confdefs.h. */
47427 _ACEOF
47428 cat confdefs.h >>conftest.$ac_ext
47429 cat >>conftest.$ac_ext <<_ACEOF
47430 /* end confdefs.h. */
47431 $ac_includes_default
47433 main ()
47435 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
47436 test_array [0] = 0
47439 return 0;
47441 _ACEOF
47442 rm -f conftest.$ac_objext
47443 if { (ac_try="$ac_compile"
47444 case "(($ac_try" in
47445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47446 *) ac_try_echo=$ac_try;;
47447 esac
47448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47449 $as_echo "$ac_try_echo") >&5
47450 (eval "$ac_compile") 2>conftest.er1
47451 ac_status=$?
47452 grep -v '^ *+' conftest.er1 >conftest.err
47453 rm -f conftest.er1
47454 cat conftest.err >&5
47455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47456 (exit $ac_status); } && {
47457 test -z "$ac_c_werror_flag" ||
47458 test ! -s conftest.err
47459 } && test -s conftest.$ac_objext; then
47460 ac_hi=$ac_mid
47461 else
47462 $as_echo "$as_me: failed program was:" >&5
47463 sed 's/^/| /' conftest.$ac_ext >&5
47465 ac_lo=`expr '(' $ac_mid ')' + 1`
47468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47469 done
47470 case $ac_lo in
47471 ?*) ac_cv_sizeof_voidp=$ac_lo;;
47472 '') if test "$ac_cv_type_voidp" = yes; then
47473 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47475 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
47476 See \`config.log' for more details." >&5
47477 $as_echo "$as_me: error: cannot compute sizeof (void*)
47478 See \`config.log' for more details." >&2;}
47479 { (exit 77); exit 77; }; }; }
47480 else
47481 ac_cv_sizeof_voidp=0
47482 fi ;;
47483 esac
47484 else
47485 cat >conftest.$ac_ext <<_ACEOF
47486 /* confdefs.h. */
47487 _ACEOF
47488 cat confdefs.h >>conftest.$ac_ext
47489 cat >>conftest.$ac_ext <<_ACEOF
47490 /* end confdefs.h. */
47491 $ac_includes_default
47492 static long int longval () { return (long int) (sizeof (void*)); }
47493 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
47494 #include <stdio.h>
47495 #include <stdlib.h>
47497 main ()
47500 FILE *f = fopen ("conftest.val", "w");
47501 if (! f)
47502 return 1;
47503 if (((long int) (sizeof (void*))) < 0)
47505 long int i = longval ();
47506 if (i != ((long int) (sizeof (void*))))
47507 return 1;
47508 fprintf (f, "%ld", i);
47510 else
47512 unsigned long int i = ulongval ();
47513 if (i != ((long int) (sizeof (void*))))
47514 return 1;
47515 fprintf (f, "%lu", i);
47517 /* Do not output a trailing newline, as this causes \r\n confusion
47518 on some platforms. */
47519 return ferror (f) || fclose (f) != 0;
47522 return 0;
47524 _ACEOF
47525 rm -f conftest$ac_exeext
47526 if { (ac_try="$ac_link"
47527 case "(($ac_try" in
47528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47529 *) ac_try_echo=$ac_try;;
47530 esac
47531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47532 $as_echo "$ac_try_echo") >&5
47533 (eval "$ac_link") 2>&5
47534 ac_status=$?
47535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47537 { (case "(($ac_try" in
47538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47539 *) ac_try_echo=$ac_try;;
47540 esac
47541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47542 $as_echo "$ac_try_echo") >&5
47543 (eval "$ac_try") 2>&5
47544 ac_status=$?
47545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47546 (exit $ac_status); }; }; then
47547 ac_cv_sizeof_voidp=`cat conftest.val`
47548 else
47549 $as_echo "$as_me: program exited with status $ac_status" >&5
47550 $as_echo "$as_me: failed program was:" >&5
47551 sed 's/^/| /' conftest.$ac_ext >&5
47553 ( exit $ac_status )
47554 if test "$ac_cv_type_voidp" = yes; then
47555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47557 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
47558 See \`config.log' for more details." >&5
47559 $as_echo "$as_me: error: cannot compute sizeof (void*)
47560 See \`config.log' for more details." >&2;}
47561 { (exit 77); exit 77; }; }; }
47562 else
47563 ac_cv_sizeof_voidp=0
47566 rm -rf conftest.dSYM
47567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47569 rm -f conftest.val
47571 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
47572 $as_echo "$ac_cv_sizeof_voidp" >&6; }
47576 cat >>confdefs.h <<_ACEOF
47577 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
47578 _ACEOF
47584 for ac_func in sched_yield fdatasync localtime_r
47586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47588 $as_echo_n "checking for $ac_func... " >&6; }
47589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47590 $as_echo_n "(cached) " >&6
47591 else
47592 cat >conftest.$ac_ext <<_ACEOF
47593 /* confdefs.h. */
47594 _ACEOF
47595 cat confdefs.h >>conftest.$ac_ext
47596 cat >>conftest.$ac_ext <<_ACEOF
47597 /* end confdefs.h. */
47598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47600 #define $ac_func innocuous_$ac_func
47602 /* System header to define __stub macros and hopefully few prototypes,
47603 which can conflict with char $ac_func (); below.
47604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47605 <limits.h> exists even on freestanding compilers. */
47607 #ifdef __STDC__
47608 # include <limits.h>
47609 #else
47610 # include <assert.h>
47611 #endif
47613 #undef $ac_func
47615 /* Override any GCC internal prototype to avoid an error.
47616 Use char because int might match the return type of a GCC
47617 builtin and then its argument prototype would still apply. */
47618 #ifdef __cplusplus
47619 extern "C"
47620 #endif
47621 char $ac_func ();
47622 /* The GNU C library defines this for functions which it implements
47623 to always fail with ENOSYS. Some functions are actually named
47624 something starting with __ and the normal name is an alias. */
47625 #if defined __stub_$ac_func || defined __stub___$ac_func
47626 choke me
47627 #endif
47630 main ()
47632 return $ac_func ();
47634 return 0;
47636 _ACEOF
47637 rm -f conftest.$ac_objext conftest$ac_exeext
47638 if { (ac_try="$ac_link"
47639 case "(($ac_try" in
47640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47641 *) ac_try_echo=$ac_try;;
47642 esac
47643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47644 $as_echo "$ac_try_echo") >&5
47645 (eval "$ac_link") 2>conftest.er1
47646 ac_status=$?
47647 grep -v '^ *+' conftest.er1 >conftest.err
47648 rm -f conftest.er1
47649 cat conftest.err >&5
47650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651 (exit $ac_status); } && {
47652 test -z "$ac_c_werror_flag" ||
47653 test ! -s conftest.err
47654 } && test -s conftest$ac_exeext && {
47655 test "$cross_compiling" = yes ||
47656 $as_test_x conftest$ac_exeext
47657 }; then
47658 eval "$as_ac_var=yes"
47659 else
47660 $as_echo "$as_me: failed program was:" >&5
47661 sed 's/^/| /' conftest.$ac_ext >&5
47663 eval "$as_ac_var=no"
47666 rm -rf conftest.dSYM
47667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47668 conftest$ac_exeext conftest.$ac_ext
47670 ac_res=`eval 'as_val=${'$as_ac_var'}
47671 $as_echo "$as_val"'`
47672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47673 $as_echo "$ac_res" >&6; }
47674 as_val=`eval 'as_val=${'$as_ac_var'}
47675 $as_echo "$as_val"'`
47676 if test "x$as_val" = x""yes; then
47677 cat >>confdefs.h <<_ACEOF
47678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47679 _ACEOF
47682 done
47685 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
47686 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
47687 if test "${ac_cv_c_bigendian+set}" = set; then
47688 $as_echo_n "(cached) " >&6
47689 else
47690 ac_cv_c_bigendian=unknown
47691 # See if we're dealing with a universal compiler.
47692 cat >conftest.$ac_ext <<_ACEOF
47693 /* confdefs.h. */
47694 _ACEOF
47695 cat confdefs.h >>conftest.$ac_ext
47696 cat >>conftest.$ac_ext <<_ACEOF
47697 /* end confdefs.h. */
47698 #ifndef __APPLE_CC__
47699 not a universal capable compiler
47700 #endif
47701 typedef int dummy;
47703 _ACEOF
47704 rm -f conftest.$ac_objext
47705 if { (ac_try="$ac_compile"
47706 case "(($ac_try" in
47707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47708 *) ac_try_echo=$ac_try;;
47709 esac
47710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47711 $as_echo "$ac_try_echo") >&5
47712 (eval "$ac_compile") 2>conftest.er1
47713 ac_status=$?
47714 grep -v '^ *+' conftest.er1 >conftest.err
47715 rm -f conftest.er1
47716 cat conftest.err >&5
47717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47718 (exit $ac_status); } && {
47719 test -z "$ac_c_werror_flag" ||
47720 test ! -s conftest.err
47721 } && test -s conftest.$ac_objext; then
47723 # Check for potential -arch flags. It is not universal unless
47724 # there are some -arch flags. Note that *ppc* also matches
47725 # ppc64. This check is also rather less than ideal.
47726 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
47727 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
47728 esac
47729 else
47730 $as_echo "$as_me: failed program was:" >&5
47731 sed 's/^/| /' conftest.$ac_ext >&5
47736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47737 if test $ac_cv_c_bigendian = unknown; then
47738 # See if sys/param.h defines the BYTE_ORDER macro.
47739 cat >conftest.$ac_ext <<_ACEOF
47740 /* confdefs.h. */
47741 _ACEOF
47742 cat confdefs.h >>conftest.$ac_ext
47743 cat >>conftest.$ac_ext <<_ACEOF
47744 /* end confdefs.h. */
47745 #include <sys/types.h>
47746 #include <sys/param.h>
47749 main ()
47751 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
47752 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
47753 && LITTLE_ENDIAN)
47754 bogus endian macros
47755 #endif
47758 return 0;
47760 _ACEOF
47761 rm -f conftest.$ac_objext
47762 if { (ac_try="$ac_compile"
47763 case "(($ac_try" in
47764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47765 *) ac_try_echo=$ac_try;;
47766 esac
47767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47768 $as_echo "$ac_try_echo") >&5
47769 (eval "$ac_compile") 2>conftest.er1
47770 ac_status=$?
47771 grep -v '^ *+' conftest.er1 >conftest.err
47772 rm -f conftest.er1
47773 cat conftest.err >&5
47774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47775 (exit $ac_status); } && {
47776 test -z "$ac_c_werror_flag" ||
47777 test ! -s conftest.err
47778 } && test -s conftest.$ac_objext; then
47779 # It does; now see whether it defined to BIG_ENDIAN or not.
47780 cat >conftest.$ac_ext <<_ACEOF
47781 /* confdefs.h. */
47782 _ACEOF
47783 cat confdefs.h >>conftest.$ac_ext
47784 cat >>conftest.$ac_ext <<_ACEOF
47785 /* end confdefs.h. */
47786 #include <sys/types.h>
47787 #include <sys/param.h>
47790 main ()
47792 #if BYTE_ORDER != BIG_ENDIAN
47793 not big endian
47794 #endif
47797 return 0;
47799 _ACEOF
47800 rm -f conftest.$ac_objext
47801 if { (ac_try="$ac_compile"
47802 case "(($ac_try" in
47803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47804 *) ac_try_echo=$ac_try;;
47805 esac
47806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47807 $as_echo "$ac_try_echo") >&5
47808 (eval "$ac_compile") 2>conftest.er1
47809 ac_status=$?
47810 grep -v '^ *+' conftest.er1 >conftest.err
47811 rm -f conftest.er1
47812 cat conftest.err >&5
47813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47814 (exit $ac_status); } && {
47815 test -z "$ac_c_werror_flag" ||
47816 test ! -s conftest.err
47817 } && test -s conftest.$ac_objext; then
47818 ac_cv_c_bigendian=yes
47819 else
47820 $as_echo "$as_me: failed program was:" >&5
47821 sed 's/^/| /' conftest.$ac_ext >&5
47823 ac_cv_c_bigendian=no
47826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47827 else
47828 $as_echo "$as_me: failed program was:" >&5
47829 sed 's/^/| /' conftest.$ac_ext >&5
47834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47836 if test $ac_cv_c_bigendian = unknown; then
47837 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
47838 cat >conftest.$ac_ext <<_ACEOF
47839 /* confdefs.h. */
47840 _ACEOF
47841 cat confdefs.h >>conftest.$ac_ext
47842 cat >>conftest.$ac_ext <<_ACEOF
47843 /* end confdefs.h. */
47844 #include <limits.h>
47847 main ()
47849 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
47850 bogus endian macros
47851 #endif
47854 return 0;
47856 _ACEOF
47857 rm -f conftest.$ac_objext
47858 if { (ac_try="$ac_compile"
47859 case "(($ac_try" in
47860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47861 *) ac_try_echo=$ac_try;;
47862 esac
47863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47864 $as_echo "$ac_try_echo") >&5
47865 (eval "$ac_compile") 2>conftest.er1
47866 ac_status=$?
47867 grep -v '^ *+' conftest.er1 >conftest.err
47868 rm -f conftest.er1
47869 cat conftest.err >&5
47870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47871 (exit $ac_status); } && {
47872 test -z "$ac_c_werror_flag" ||
47873 test ! -s conftest.err
47874 } && test -s conftest.$ac_objext; then
47875 # It does; now see whether it defined to _BIG_ENDIAN or not.
47876 cat >conftest.$ac_ext <<_ACEOF
47877 /* confdefs.h. */
47878 _ACEOF
47879 cat confdefs.h >>conftest.$ac_ext
47880 cat >>conftest.$ac_ext <<_ACEOF
47881 /* end confdefs.h. */
47882 #include <limits.h>
47885 main ()
47887 #ifndef _BIG_ENDIAN
47888 not big endian
47889 #endif
47892 return 0;
47894 _ACEOF
47895 rm -f conftest.$ac_objext
47896 if { (ac_try="$ac_compile"
47897 case "(($ac_try" in
47898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47899 *) ac_try_echo=$ac_try;;
47900 esac
47901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47902 $as_echo "$ac_try_echo") >&5
47903 (eval "$ac_compile") 2>conftest.er1
47904 ac_status=$?
47905 grep -v '^ *+' conftest.er1 >conftest.err
47906 rm -f conftest.er1
47907 cat conftest.err >&5
47908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47909 (exit $ac_status); } && {
47910 test -z "$ac_c_werror_flag" ||
47911 test ! -s conftest.err
47912 } && test -s conftest.$ac_objext; then
47913 ac_cv_c_bigendian=yes
47914 else
47915 $as_echo "$as_me: failed program was:" >&5
47916 sed 's/^/| /' conftest.$ac_ext >&5
47918 ac_cv_c_bigendian=no
47921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47922 else
47923 $as_echo "$as_me: failed program was:" >&5
47924 sed 's/^/| /' conftest.$ac_ext >&5
47929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47931 if test $ac_cv_c_bigendian = unknown; then
47932 # Compile a test program.
47933 if test "$cross_compiling" = yes; then
47934 # Try to guess by grepping values from an object file.
47935 cat >conftest.$ac_ext <<_ACEOF
47936 /* confdefs.h. */
47937 _ACEOF
47938 cat confdefs.h >>conftest.$ac_ext
47939 cat >>conftest.$ac_ext <<_ACEOF
47940 /* end confdefs.h. */
47941 short int ascii_mm[] =
47942 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
47943 short int ascii_ii[] =
47944 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
47945 int use_ascii (int i) {
47946 return ascii_mm[i] + ascii_ii[i];
47948 short int ebcdic_ii[] =
47949 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
47950 short int ebcdic_mm[] =
47951 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
47952 int use_ebcdic (int i) {
47953 return ebcdic_mm[i] + ebcdic_ii[i];
47955 extern int foo;
47958 main ()
47960 return use_ascii (foo) == use_ebcdic (foo);
47962 return 0;
47964 _ACEOF
47965 rm -f conftest.$ac_objext
47966 if { (ac_try="$ac_compile"
47967 case "(($ac_try" in
47968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47969 *) ac_try_echo=$ac_try;;
47970 esac
47971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47972 $as_echo "$ac_try_echo") >&5
47973 (eval "$ac_compile") 2>conftest.er1
47974 ac_status=$?
47975 grep -v '^ *+' conftest.er1 >conftest.err
47976 rm -f conftest.er1
47977 cat conftest.err >&5
47978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47979 (exit $ac_status); } && {
47980 test -z "$ac_c_werror_flag" ||
47981 test ! -s conftest.err
47982 } && test -s conftest.$ac_objext; then
47983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
47984 ac_cv_c_bigendian=yes
47986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
47987 if test "$ac_cv_c_bigendian" = unknown; then
47988 ac_cv_c_bigendian=no
47989 else
47990 # finding both strings is unlikely to happen, but who knows?
47991 ac_cv_c_bigendian=unknown
47994 else
47995 $as_echo "$as_me: failed program was:" >&5
47996 sed 's/^/| /' conftest.$ac_ext >&5
48001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48002 else
48003 cat >conftest.$ac_ext <<_ACEOF
48004 /* confdefs.h. */
48005 _ACEOF
48006 cat confdefs.h >>conftest.$ac_ext
48007 cat >>conftest.$ac_ext <<_ACEOF
48008 /* end confdefs.h. */
48009 $ac_includes_default
48011 main ()
48014 /* Are we little or big endian? From Harbison&Steele. */
48015 union
48017 long int l;
48018 char c[sizeof (long int)];
48019 } u;
48020 u.l = 1;
48021 return u.c[sizeof (long int) - 1] == 1;
48024 return 0;
48026 _ACEOF
48027 rm -f conftest$ac_exeext
48028 if { (ac_try="$ac_link"
48029 case "(($ac_try" in
48030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48031 *) ac_try_echo=$ac_try;;
48032 esac
48033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48034 $as_echo "$ac_try_echo") >&5
48035 (eval "$ac_link") 2>&5
48036 ac_status=$?
48037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48039 { (case "(($ac_try" in
48040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48041 *) ac_try_echo=$ac_try;;
48042 esac
48043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48044 $as_echo "$ac_try_echo") >&5
48045 (eval "$ac_try") 2>&5
48046 ac_status=$?
48047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48048 (exit $ac_status); }; }; then
48049 ac_cv_c_bigendian=no
48050 else
48051 $as_echo "$as_me: program exited with status $ac_status" >&5
48052 $as_echo "$as_me: failed program was:" >&5
48053 sed 's/^/| /' conftest.$ac_ext >&5
48055 ( exit $ac_status )
48056 ac_cv_c_bigendian=yes
48058 rm -rf conftest.dSYM
48059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48065 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48066 $as_echo "$ac_cv_c_bigendian" >&6; }
48067 case $ac_cv_c_bigendian in #(
48068 yes)
48069 cat >>confdefs.h <<\_ACEOF
48070 #define WORDS_BIGENDIAN 1
48071 _ACEOF
48072 ;; #(
48074 ;; #(
48075 universal)
48077 cat >>confdefs.h <<\_ACEOF
48078 #define AC_APPLE_UNIVERSAL_BUILD 1
48079 _ACEOF
48081 ;; #(
48083 { { $as_echo "$as_me:$LINENO: error: unknown endianness
48084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48085 $as_echo "$as_me: error: unknown endianness
48086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48087 { (exit 1); exit 1; }; } ;;
48088 esac
48090 case "$target_os" in
48091 lin*)
48092 CFLAGS="$CFLAGS -DUNIV_LINUX";;
48093 hpux10*)
48094 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX -DUNIV_HPUX10";;
48095 hp*)
48096 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE -DUNIV_HPUX";;
48097 aix*)
48098 CFLAGS="$CFLAGS -DUNIV_AIX";;
48099 irix*|osf*|sysv5uw7*|openbsd*)
48100 CFLAGS="$CFLAGS -DUNIV_MUST_NOT_INLINE";;
48101 *solaris*|*SunOS*)
48102 CFLAGS="$CFLAGS -DUNIV_SOLARIS";;
48103 esac
48105 INNODB_DYNAMIC_CFLAGS="-DMYSQL_DYNAMIC_PLUGIN"
48107 case "$target_cpu" in
48108 x86_64)
48109 # The AMD64 ABI forbids absolute addresses in shared libraries
48111 *86)
48112 # Use absolute addresses on IA-32
48113 INNODB_DYNAMIC_CFLAGS="$INNODB_DYNAMIC_CFLAGS -prefer-non-pic"
48115 esac
48118 { $as_echo "$as_me:$LINENO: checking whether GCC atomic builtins are available" >&5
48119 $as_echo_n "checking whether GCC atomic builtins are available... " >&6; }
48120 # either define HAVE_IB_GCC_ATOMIC_BUILTINS or not
48121 if test "$cross_compiling" = yes; then
48122 $as_echo "Skipping...! bwq518"
48123 # { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48124 #$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48125 #{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48126 #See \`config.log' for more details." >&5
48127 #$as_echo "$as_me: error: cannot run test program while cross compiling
48128 #See \`config.log' for more details." >&2;}
48129 # { (exit 1); exit 1; }; }; }
48130 else
48131 cat >conftest.$ac_ext <<_ACEOF
48132 /* confdefs.h. */
48133 _ACEOF
48134 cat confdefs.h >>conftest.$ac_ext
48135 cat >>conftest.$ac_ext <<_ACEOF
48136 /* end confdefs.h. */
48138 int main()
48140 long x;
48141 long y;
48142 long res;
48143 char c;
48145 x = 10;
48146 y = 123;
48147 res = __sync_bool_compare_and_swap(&x, x, y);
48148 if (!res || x != y) {
48149 return(1);
48152 x = 10;
48153 y = 123;
48154 res = __sync_bool_compare_and_swap(&x, x + 1, y);
48155 if (res || x != 10) {
48156 return(1);
48159 x = 10;
48160 y = 123;
48161 res = __sync_add_and_fetch(&x, y);
48162 if (res != 123 + 10 || x != 123 + 10) {
48163 return(1);
48166 c = 10;
48167 res = __sync_lock_test_and_set(&c, 123);
48168 if (res != 10 || c != 123) {
48169 return(1);
48172 return(0);
48175 _ACEOF
48176 rm -f conftest$ac_exeext
48177 if { (ac_try="$ac_link"
48178 case "(($ac_try" in
48179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48180 *) ac_try_echo=$ac_try;;
48181 esac
48182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48183 $as_echo "$ac_try_echo") >&5
48184 (eval "$ac_link") 2>&5
48185 ac_status=$?
48186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48188 { (case "(($ac_try" in
48189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48190 *) ac_try_echo=$ac_try;;
48191 esac
48192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48193 $as_echo "$ac_try_echo") >&5
48194 (eval "$ac_try") 2>&5
48195 ac_status=$?
48196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48197 (exit $ac_status); }; }; then
48200 cat >>confdefs.h <<\_ACEOF
48201 #define HAVE_IB_GCC_ATOMIC_BUILTINS 1
48202 _ACEOF
48204 { $as_echo "$as_me:$LINENO: result: yes" >&5
48205 $as_echo "yes" >&6; }
48207 else
48208 $as_echo "$as_me: program exited with status $ac_status" >&5
48209 $as_echo "$as_me: failed program was:" >&5
48210 sed 's/^/| /' conftest.$ac_ext >&5
48212 ( exit $ac_status )
48214 { $as_echo "$as_me:$LINENO: result: no" >&5
48215 $as_echo "no" >&6; }
48219 rm -rf conftest.dSYM
48220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48225 { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by GCC atomic builtins" >&5
48226 $as_echo_n "checking whether pthread_t can be used by GCC atomic builtins... " >&6; }
48227 # either define HAVE_IB_ATOMIC_PTHREAD_T_GCC or not
48228 if test "$cross_compiling" = yes; then
48229 $as_echo "Skipping...! bwq518"
48230 # { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48231 #$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48232 #{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48233 #See \`config.log' for more details." >&5
48234 #$as_echo "$as_me: error: cannot run test program while cross compiling
48235 #See \`config.log' for more details." >&2;}
48236 # { (exit 1); exit 1; }; }; }
48237 else
48238 cat >conftest.$ac_ext <<_ACEOF
48239 /* confdefs.h. */
48240 _ACEOF
48241 cat confdefs.h >>conftest.$ac_ext
48242 cat >>conftest.$ac_ext <<_ACEOF
48243 /* end confdefs.h. */
48245 #include <pthread.h>
48246 #include <string.h>
48248 int main(int argc, char** argv) {
48249 pthread_t x1;
48250 pthread_t x2;
48251 pthread_t x3;
48253 memset(&x1, 0x0, sizeof(x1));
48254 memset(&x2, 0x0, sizeof(x2));
48255 memset(&x3, 0x0, sizeof(x3));
48257 __sync_bool_compare_and_swap(&x1, x2, x3);
48259 return(0);
48262 _ACEOF
48263 rm -f conftest$ac_exeext
48264 if { (ac_try="$ac_link"
48265 case "(($ac_try" in
48266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48267 *) ac_try_echo=$ac_try;;
48268 esac
48269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48270 $as_echo "$ac_try_echo") >&5
48271 (eval "$ac_link") 2>&5
48272 ac_status=$?
48273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48275 { (case "(($ac_try" in
48276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48277 *) ac_try_echo=$ac_try;;
48278 esac
48279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48280 $as_echo "$ac_try_echo") >&5
48281 (eval "$ac_try") 2>&5
48282 ac_status=$?
48283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284 (exit $ac_status); }; }; then
48287 cat >>confdefs.h <<\_ACEOF
48288 #define HAVE_IB_ATOMIC_PTHREAD_T_GCC 1
48289 _ACEOF
48291 { $as_echo "$as_me:$LINENO: result: yes" >&5
48292 $as_echo "yes" >&6; }
48294 else
48295 $as_echo "$as_me: program exited with status $ac_status" >&5
48296 $as_echo "$as_me: failed program was:" >&5
48297 sed 's/^/| /' conftest.$ac_ext >&5
48299 ( exit $ac_status )
48301 { $as_echo "$as_me:$LINENO: result: no" >&5
48302 $as_echo "no" >&6; }
48306 rm -rf conftest.dSYM
48307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48312 { $as_echo "$as_me:$LINENO: checking whether Solaris libc atomic functions are available" >&5
48313 $as_echo_n "checking whether Solaris libc atomic functions are available... " >&6; }
48314 # Define HAVE_IB_SOLARIS_ATOMICS if _all_ of the following
48315 # functions are present.
48321 for ac_func in atomic_add_long_nv \
48322 atomic_cas_32 \
48323 atomic_cas_64 \
48324 atomic_cas_ulong \
48325 atomic_swap_uchar
48327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48329 $as_echo_n "checking for $ac_func... " >&6; }
48330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48331 $as_echo_n "(cached) " >&6
48332 else
48333 cat >conftest.$ac_ext <<_ACEOF
48334 /* confdefs.h. */
48335 _ACEOF
48336 cat confdefs.h >>conftest.$ac_ext
48337 cat >>conftest.$ac_ext <<_ACEOF
48338 /* end confdefs.h. */
48339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48341 #define $ac_func innocuous_$ac_func
48343 /* System header to define __stub macros and hopefully few prototypes,
48344 which can conflict with char $ac_func (); below.
48345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48346 <limits.h> exists even on freestanding compilers. */
48348 #ifdef __STDC__
48349 # include <limits.h>
48350 #else
48351 # include <assert.h>
48352 #endif
48354 #undef $ac_func
48356 /* Override any GCC internal prototype to avoid an error.
48357 Use char because int might match the return type of a GCC
48358 builtin and then its argument prototype would still apply. */
48359 #ifdef __cplusplus
48360 extern "C"
48361 #endif
48362 char $ac_func ();
48363 /* The GNU C library defines this for functions which it implements
48364 to always fail with ENOSYS. Some functions are actually named
48365 something starting with __ and the normal name is an alias. */
48366 #if defined __stub_$ac_func || defined __stub___$ac_func
48367 choke me
48368 #endif
48371 main ()
48373 return $ac_func ();
48375 return 0;
48377 _ACEOF
48378 rm -f conftest.$ac_objext conftest$ac_exeext
48379 if { (ac_try="$ac_link"
48380 case "(($ac_try" in
48381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48382 *) ac_try_echo=$ac_try;;
48383 esac
48384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48385 $as_echo "$ac_try_echo") >&5
48386 (eval "$ac_link") 2>conftest.er1
48387 ac_status=$?
48388 grep -v '^ *+' conftest.er1 >conftest.err
48389 rm -f conftest.er1
48390 cat conftest.err >&5
48391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48392 (exit $ac_status); } && {
48393 test -z "$ac_c_werror_flag" ||
48394 test ! -s conftest.err
48395 } && test -s conftest$ac_exeext && {
48396 test "$cross_compiling" = yes ||
48397 $as_test_x conftest$ac_exeext
48398 }; then
48399 eval "$as_ac_var=yes"
48400 else
48401 $as_echo "$as_me: failed program was:" >&5
48402 sed 's/^/| /' conftest.$ac_ext >&5
48404 eval "$as_ac_var=no"
48407 rm -rf conftest.dSYM
48408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48409 conftest$ac_exeext conftest.$ac_ext
48411 ac_res=`eval 'as_val=${'$as_ac_var'}
48412 $as_echo "$as_val"'`
48413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48414 $as_echo "$ac_res" >&6; }
48415 as_val=`eval 'as_val=${'$as_ac_var'}
48416 $as_echo "$as_val"'`
48417 if test "x$as_val" = x""yes; then
48418 cat >>confdefs.h <<_ACEOF
48419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48420 _ACEOF
48423 done
48426 if test "${ac_cv_func_atomic_add_long_nv}" = "yes" -a \
48427 "${ac_cv_func_atomic_cas_32}" = "yes" -a \
48428 "${ac_cv_func_atomic_cas_64}" = "yes" -a \
48429 "${ac_cv_func_atomic_cas_ulong}" = "yes" -a \
48430 "${ac_cv_func_atomic_swap_uchar}" = "yes" ; then
48433 cat >>confdefs.h <<\_ACEOF
48434 #define HAVE_IB_SOLARIS_ATOMICS 1
48435 _ACEOF
48439 { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by Solaris libc atomic functions" >&5
48440 $as_echo_n "checking whether pthread_t can be used by Solaris libc atomic functions... " >&6; }
48441 # either define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS or not
48442 if test "$cross_compiling" = yes; then
48443 $as_echo "Skipping...! bwq518"
48444 # { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48445 #$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48446 #{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48447 #See \`config.log' for more details." >&5
48448 #$as_echo "$as_me: error: cannot run test program while cross compiling
48449 #See \`config.log' for more details." >&2;}
48450 # { (exit 1); exit 1; }; }; }
48451 else
48452 cat >conftest.$ac_ext <<_ACEOF
48453 /* confdefs.h. */
48454 _ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h. */
48459 #include <pthread.h>
48460 #include <string.h>
48462 int main(int argc, char** argv) {
48463 pthread_t x1;
48464 pthread_t x2;
48465 pthread_t x3;
48467 memset(&x1, 0x0, sizeof(x1));
48468 memset(&x2, 0x0, sizeof(x2));
48469 memset(&x3, 0x0, sizeof(x3));
48471 if (sizeof(pthread_t) == 4) {
48473 atomic_cas_32(&x1, x2, x3);
48475 } else if (sizeof(pthread_t) == 8) {
48477 atomic_cas_64(&x1, x2, x3);
48479 } else {
48481 return(1);
48484 return(0);
48487 _ACEOF
48488 rm -f conftest$ac_exeext
48489 if { (ac_try="$ac_link"
48490 case "(($ac_try" in
48491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48492 *) ac_try_echo=$ac_try;;
48493 esac
48494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48495 $as_echo "$ac_try_echo") >&5
48496 (eval "$ac_link") 2>&5
48497 ac_status=$?
48498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48500 { (case "(($ac_try" in
48501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48502 *) ac_try_echo=$ac_try;;
48503 esac
48504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48505 $as_echo "$ac_try_echo") >&5
48506 (eval "$ac_try") 2>&5
48507 ac_status=$?
48508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48509 (exit $ac_status); }; }; then
48512 cat >>confdefs.h <<\_ACEOF
48513 #define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS 1
48514 _ACEOF
48516 { $as_echo "$as_me:$LINENO: result: yes" >&5
48517 $as_echo "yes" >&6; }
48519 else
48520 $as_echo "$as_me: program exited with status $ac_status" >&5
48521 $as_echo "$as_me: failed program was:" >&5
48522 sed 's/^/| /' conftest.$ac_ext >&5
48524 ( exit $ac_status )
48526 { $as_echo "$as_me:$LINENO: result: no" >&5
48527 $as_echo "no" >&6; }
48531 rm -rf conftest.dSYM
48532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48537 # this is needed to know which one of atomic_cas_32() or atomic_cas_64()
48538 # to use in the source
48539 # The cast to long int works around a bug in the HP C Compiler
48540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48542 # This bug is HP SR number 8606223364.
48543 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
48544 $as_echo_n "checking size of pthread_t... " >&6; }
48545 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
48546 $as_echo_n "(cached) " >&6
48547 else
48548 if test "$cross_compiling" = yes; then
48549 # Depending upon the size, compute the lo and hi bounds.
48550 cat >conftest.$ac_ext <<_ACEOF
48551 /* confdefs.h. */
48552 _ACEOF
48553 cat confdefs.h >>conftest.$ac_ext
48554 cat >>conftest.$ac_ext <<_ACEOF
48555 /* end confdefs.h. */
48556 #include <pthread.h>
48559 main ()
48561 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)];
48562 test_array [0] = 0
48565 return 0;
48567 _ACEOF
48568 rm -f conftest.$ac_objext
48569 if { (ac_try="$ac_compile"
48570 case "(($ac_try" in
48571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48572 *) ac_try_echo=$ac_try;;
48573 esac
48574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48575 $as_echo "$ac_try_echo") >&5
48576 (eval "$ac_compile") 2>conftest.er1
48577 ac_status=$?
48578 grep -v '^ *+' conftest.er1 >conftest.err
48579 rm -f conftest.er1
48580 cat conftest.err >&5
48581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582 (exit $ac_status); } && {
48583 test -z "$ac_c_werror_flag" ||
48584 test ! -s conftest.err
48585 } && test -s conftest.$ac_objext; then
48586 ac_lo=0 ac_mid=0
48587 while :; do
48588 cat >conftest.$ac_ext <<_ACEOF
48589 /* confdefs.h. */
48590 _ACEOF
48591 cat confdefs.h >>conftest.$ac_ext
48592 cat >>conftest.$ac_ext <<_ACEOF
48593 /* end confdefs.h. */
48594 #include <pthread.h>
48597 main ()
48599 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
48600 test_array [0] = 0
48603 return 0;
48605 _ACEOF
48606 rm -f conftest.$ac_objext
48607 if { (ac_try="$ac_compile"
48608 case "(($ac_try" in
48609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48610 *) ac_try_echo=$ac_try;;
48611 esac
48612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48613 $as_echo "$ac_try_echo") >&5
48614 (eval "$ac_compile") 2>conftest.er1
48615 ac_status=$?
48616 grep -v '^ *+' conftest.er1 >conftest.err
48617 rm -f conftest.er1
48618 cat conftest.err >&5
48619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620 (exit $ac_status); } && {
48621 test -z "$ac_c_werror_flag" ||
48622 test ! -s conftest.err
48623 } && test -s conftest.$ac_objext; then
48624 ac_hi=$ac_mid; break
48625 else
48626 $as_echo "$as_me: failed program was:" >&5
48627 sed 's/^/| /' conftest.$ac_ext >&5
48629 ac_lo=`expr $ac_mid + 1`
48630 if test $ac_lo -le $ac_mid; then
48631 ac_lo= ac_hi=
48632 break
48634 ac_mid=`expr 2 '*' $ac_mid + 1`
48637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48638 done
48639 else
48640 $as_echo "$as_me: failed program was:" >&5
48641 sed 's/^/| /' conftest.$ac_ext >&5
48643 cat >conftest.$ac_ext <<_ACEOF
48644 /* confdefs.h. */
48645 _ACEOF
48646 cat confdefs.h >>conftest.$ac_ext
48647 cat >>conftest.$ac_ext <<_ACEOF
48648 /* end confdefs.h. */
48649 #include <pthread.h>
48652 main ()
48654 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)];
48655 test_array [0] = 0
48658 return 0;
48660 _ACEOF
48661 rm -f conftest.$ac_objext
48662 if { (ac_try="$ac_compile"
48663 case "(($ac_try" in
48664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48665 *) ac_try_echo=$ac_try;;
48666 esac
48667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48668 $as_echo "$ac_try_echo") >&5
48669 (eval "$ac_compile") 2>conftest.er1
48670 ac_status=$?
48671 grep -v '^ *+' conftest.er1 >conftest.err
48672 rm -f conftest.er1
48673 cat conftest.err >&5
48674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48675 (exit $ac_status); } && {
48676 test -z "$ac_c_werror_flag" ||
48677 test ! -s conftest.err
48678 } && test -s conftest.$ac_objext; then
48679 ac_hi=-1 ac_mid=-1
48680 while :; do
48681 cat >conftest.$ac_ext <<_ACEOF
48682 /* confdefs.h. */
48683 _ACEOF
48684 cat confdefs.h >>conftest.$ac_ext
48685 cat >>conftest.$ac_ext <<_ACEOF
48686 /* end confdefs.h. */
48687 #include <pthread.h>
48690 main ()
48692 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)];
48693 test_array [0] = 0
48696 return 0;
48698 _ACEOF
48699 rm -f conftest.$ac_objext
48700 if { (ac_try="$ac_compile"
48701 case "(($ac_try" in
48702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48703 *) ac_try_echo=$ac_try;;
48704 esac
48705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48706 $as_echo "$ac_try_echo") >&5
48707 (eval "$ac_compile") 2>conftest.er1
48708 ac_status=$?
48709 grep -v '^ *+' conftest.er1 >conftest.err
48710 rm -f conftest.er1
48711 cat conftest.err >&5
48712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713 (exit $ac_status); } && {
48714 test -z "$ac_c_werror_flag" ||
48715 test ! -s conftest.err
48716 } && test -s conftest.$ac_objext; then
48717 ac_lo=$ac_mid; break
48718 else
48719 $as_echo "$as_me: failed program was:" >&5
48720 sed 's/^/| /' conftest.$ac_ext >&5
48722 ac_hi=`expr '(' $ac_mid ')' - 1`
48723 if test $ac_mid -le $ac_hi; then
48724 ac_lo= ac_hi=
48725 break
48727 ac_mid=`expr 2 '*' $ac_mid`
48730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48731 done
48732 else
48733 $as_echo "$as_me: failed program was:" >&5
48734 sed 's/^/| /' conftest.$ac_ext >&5
48736 ac_lo= ac_hi=
48739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48743 # Binary search between lo and hi bounds.
48744 while test "x$ac_lo" != "x$ac_hi"; do
48745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48746 cat >conftest.$ac_ext <<_ACEOF
48747 /* confdefs.h. */
48748 _ACEOF
48749 cat confdefs.h >>conftest.$ac_ext
48750 cat >>conftest.$ac_ext <<_ACEOF
48751 /* end confdefs.h. */
48752 #include <pthread.h>
48755 main ()
48757 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
48758 test_array [0] = 0
48761 return 0;
48763 _ACEOF
48764 rm -f conftest.$ac_objext
48765 if { (ac_try="$ac_compile"
48766 case "(($ac_try" in
48767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48768 *) ac_try_echo=$ac_try;;
48769 esac
48770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48771 $as_echo "$ac_try_echo") >&5
48772 (eval "$ac_compile") 2>conftest.er1
48773 ac_status=$?
48774 grep -v '^ *+' conftest.er1 >conftest.err
48775 rm -f conftest.er1
48776 cat conftest.err >&5
48777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48778 (exit $ac_status); } && {
48779 test -z "$ac_c_werror_flag" ||
48780 test ! -s conftest.err
48781 } && test -s conftest.$ac_objext; then
48782 ac_hi=$ac_mid
48783 else
48784 $as_echo "$as_me: failed program was:" >&5
48785 sed 's/^/| /' conftest.$ac_ext >&5
48787 ac_lo=`expr '(' $ac_mid ')' + 1`
48790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48791 done
48792 case $ac_lo in
48793 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
48794 '') if test "$ac_cv_type_pthread_t" = yes; then
48795 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48797 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
48798 See \`config.log' for more details." >&5
48799 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
48800 See \`config.log' for more details." >&2;}
48801 { (exit 77); exit 77; }; }; }
48802 else
48803 ac_cv_sizeof_pthread_t=0
48804 fi ;;
48805 esac
48806 else
48807 cat >conftest.$ac_ext <<_ACEOF
48808 /* confdefs.h. */
48809 _ACEOF
48810 cat confdefs.h >>conftest.$ac_ext
48811 cat >>conftest.$ac_ext <<_ACEOF
48812 /* end confdefs.h. */
48813 #include <pthread.h>
48815 static long int longval () { return (long int) (sizeof (pthread_t)); }
48816 static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); }
48817 #include <stdio.h>
48818 #include <stdlib.h>
48820 main ()
48823 FILE *f = fopen ("conftest.val", "w");
48824 if (! f)
48825 return 1;
48826 if (((long int) (sizeof (pthread_t))) < 0)
48828 long int i = longval ();
48829 if (i != ((long int) (sizeof (pthread_t))))
48830 return 1;
48831 fprintf (f, "%ld", i);
48833 else
48835 unsigned long int i = ulongval ();
48836 if (i != ((long int) (sizeof (pthread_t))))
48837 return 1;
48838 fprintf (f, "%lu", i);
48840 /* Do not output a trailing newline, as this causes \r\n confusion
48841 on some platforms. */
48842 return ferror (f) || fclose (f) != 0;
48845 return 0;
48847 _ACEOF
48848 rm -f conftest$ac_exeext
48849 if { (ac_try="$ac_link"
48850 case "(($ac_try" in
48851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48852 *) ac_try_echo=$ac_try;;
48853 esac
48854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48855 $as_echo "$ac_try_echo") >&5
48856 (eval "$ac_link") 2>&5
48857 ac_status=$?
48858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48860 { (case "(($ac_try" in
48861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48862 *) ac_try_echo=$ac_try;;
48863 esac
48864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48865 $as_echo "$ac_try_echo") >&5
48866 (eval "$ac_try") 2>&5
48867 ac_status=$?
48868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48869 (exit $ac_status); }; }; then
48870 ac_cv_sizeof_pthread_t=`cat conftest.val`
48871 else
48872 $as_echo "$as_me: program exited with status $ac_status" >&5
48873 $as_echo "$as_me: failed program was:" >&5
48874 sed 's/^/| /' conftest.$ac_ext >&5
48876 ( exit $ac_status )
48877 if test "$ac_cv_type_pthread_t" = yes; then
48878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48880 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
48881 See \`config.log' for more details." >&5
48882 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
48883 See \`config.log' for more details." >&2;}
48884 { (exit 77); exit 77; }; }; }
48885 else
48886 ac_cv_sizeof_pthread_t=0
48889 rm -rf conftest.dSYM
48890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48892 rm -f conftest.val
48894 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
48895 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
48899 cat >>confdefs.h <<_ACEOF
48900 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
48901 _ACEOF
48905 # Check for x86 PAUSE instruction
48906 { $as_echo "$as_me:$LINENO: checking for x86 PAUSE instruction" >&5
48907 $as_echo_n "checking for x86 PAUSE instruction... " >&6; }
48908 # We have to actually try running the test program, because of a bug
48909 # in Solaris on x86_64, where it wrongly reports that PAUSE is not
48910 # supported when trying to run an application. See
48911 # http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6478684
48912 # We use ib_ prefix to avoid collisoins if this code is added to
48913 # mysql's configure.in.
48914 if test "$cross_compiling" = yes; then
48916 { $as_echo "$as_me:$LINENO: result: no" >&5
48917 $as_echo "no" >&6; }
48920 else
48921 cat >conftest.$ac_ext <<_ACEOF
48922 /* confdefs.h. */
48923 _ACEOF
48924 cat confdefs.h >>conftest.$ac_ext
48925 cat >>conftest.$ac_ext <<_ACEOF
48926 /* end confdefs.h. */
48928 int main() {
48929 __asm__ __volatile__ ("pause");
48930 return(0);
48933 _ACEOF
48934 rm -f conftest$ac_exeext
48935 if { (ac_try="$ac_link"
48936 case "(($ac_try" in
48937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48938 *) ac_try_echo=$ac_try;;
48939 esac
48940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48941 $as_echo "$ac_try_echo") >&5
48942 (eval "$ac_link") 2>&5
48943 ac_status=$?
48944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48946 { (case "(($ac_try" in
48947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48948 *) ac_try_echo=$ac_try;;
48949 esac
48950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48951 $as_echo "$ac_try_echo") >&5
48952 (eval "$ac_try") 2>&5
48953 ac_status=$?
48954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48955 (exit $ac_status); }; }; then
48958 cat >>confdefs.h <<\_ACEOF
48959 #define HAVE_IB_PAUSE_INSTRUCTION 1
48960 _ACEOF
48962 { $as_echo "$as_me:$LINENO: result: yes" >&5
48963 $as_echo "yes" >&6; }
48965 else
48966 $as_echo "$as_me: program exited with status $ac_status" >&5
48967 $as_echo "$as_me: failed program was:" >&5
48968 sed 's/^/| /' conftest.$ac_ext >&5
48970 ( exit $ac_status )
48972 { $as_echo "$as_me:$LINENO: result: no" >&5
48973 $as_echo "no" >&6; }
48976 rm -rf conftest.dSYM
48977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48992 if test "X$with_plugin_myisam" = Xyes; then
48993 if test "X$plugin_myisam_static_target" = X -a \
48994 "X$plugin_myisam_shared_target" = X; then
48995 { { $as_echo "$as_me:$LINENO: error: that's strange, myisam failed sanity check" >&5
48996 $as_echo "$as_me: error: that's strange, myisam failed sanity check" >&2;}
48997 { (exit 1); exit 1; }; }
49010 if test "X$with_plugin_myisammrg" = Xyes; then
49011 if test "X$plugin_myisammrg_static_target" = X -a \
49012 "X$plugin_myisammrg_shared_target" = X; then
49013 { { $as_echo "$as_me:$LINENO: error: that's strange, myisammrg failed sanity check" >&5
49014 $as_echo "$as_me: error: that's strange, myisammrg failed sanity check" >&2;}
49015 { (exit 1); exit 1; }; }
49028 if test "X$with_plugin_ndbcluster" = Xyes; then
49029 if test "X$plugin_ndbcluster_static_target" = X -a \
49030 "X$plugin_ndbcluster_shared_target" = X; then
49031 { { $as_echo "$as_me:$LINENO: error: that's strange, ndbcluster failed sanity check" >&5
49032 $as_echo "$as_me: error: that's strange, ndbcluster failed sanity check" >&2;}
49033 { (exit 1); exit 1; }; }
49037 { $as_echo "$as_me:$LINENO: result: Using NDB Cluster" >&5
49038 $as_echo "Using NDB Cluster" >&6; }
49039 with_partition="yes"
49040 ndb_cxxflags_fix=""
49041 TEST_NDBCLUSTER="--ndbcluster"
49043 ndbcluster_includes="-I\$(top_builddir)/storage/ndb/include -I\$(top_srcdir)/storage/ndb/include -I\$(top_srcdir)/storage/ndb/include/ndbapi -I\$(top_srcdir)/storage/ndb/include/mgmapi"
49044 ndbcluster_libs="\$(top_builddir)/storage/ndb/src/.libs/libndbclient.a"
49045 ndbcluster_system_libs=""
49046 ndb_mgmclient_libs="\$(top_builddir)/storage/ndb/src/mgmclient/libndbmgmclient.la"
49050 # Check whether --with-ndb-sci was given.
49051 if test "${with_ndb_sci+set}" = set; then
49052 withval=$with_ndb_sci; mysql_sci_dir=${withval}
49053 else
49054 mysql_sci_dir=""
49058 case "$mysql_sci_dir" in
49059 "no" )
49060 have_ndb_sci=no
49061 { $as_echo "$as_me:$LINENO: result: -- not including sci transporter" >&5
49062 $as_echo "-- not including sci transporter" >&6; }
49065 if test -f "$mysql_sci_dir/lib/libsisci.a" -a \
49066 -f "$mysql_sci_dir/include/sisci_api.h"; then
49067 NDB_SCI_INCLUDES="-I$mysql_sci_dir/include"
49068 NDB_SCI_LIBS="$mysql_sci_dir/lib/libsisci.a"
49069 { $as_echo "$as_me:$LINENO: result: -- including sci transporter" >&5
49070 $as_echo "-- including sci transporter" >&6; }
49072 cat >>confdefs.h <<\_ACEOF
49073 #define NDB_SCI_TRANSPORTER 1
49074 _ACEOF
49078 have_ndb_sci="yes"
49079 { $as_echo "$as_me:$LINENO: result: found sci transporter in $mysql_sci_dir/{include, lib}" >&5
49080 $as_echo "found sci transporter in $mysql_sci_dir/{include, lib}" >&6; }
49081 else
49082 { $as_echo "$as_me:$LINENO: result: could not find sci transporter in $mysql_sci_dir/{include, lib}" >&5
49083 $as_echo "could not find sci transporter in $mysql_sci_dir/{include, lib}" >&6; }
49086 esac
49089 # Check whether --with-ndb-test was given.
49090 if test "${with_ndb_test+set}" = set; then
49091 withval=$with_ndb_test; ndb_test="$withval"
49092 else
49093 ndb_test=no
49097 # Check whether --with-ndb-docs was given.
49098 if test "${with_ndb_docs+set}" = set; then
49099 withval=$with_ndb_docs; ndb_docs="$withval"
49100 else
49101 ndb_docs=no
49105 # Check whether --with-ndb-port was given.
49106 if test "${with_ndb_port+set}" = set; then
49107 withval=$with_ndb_port; ndb_port="$withval"
49108 else
49109 ndb_port="default"
49113 # Check whether --with-ndb-port-base was given.
49114 if test "${with_ndb_port_base+set}" = set; then
49115 withval=$with_ndb_port_base; ndb_port_base="$withval"
49116 else
49117 ndb_port_base="default"
49121 # Check whether --with-ndb-debug was given.
49122 if test "${with_ndb_debug+set}" = set; then
49123 withval=$with_ndb_debug; ndb_debug="$withval"
49124 else
49125 ndb_debug="default"
49129 # Check whether --with-ndb-ccflags was given.
49130 if test "${with_ndb_ccflags+set}" = set; then
49131 withval=$with_ndb_ccflags; ndb_ccflags=${withval}
49132 else
49133 ndb_ccflags=""
49137 # Check whether --with-ndb-binlog was given.
49138 if test "${with_ndb_binlog+set}" = set; then
49139 withval=$with_ndb_binlog; ndb_binlog="$withval"
49140 else
49141 ndb_binlog="default"
49145 case "$ndb_ccflags" in
49146 "yes")
49147 { $as_echo "$as_me:$LINENO: result: The --ndb-ccflags option requires a parameter (passed to CC for ndb compilation)" >&5
49148 $as_echo "The --ndb-ccflags option requires a parameter (passed to CC for ndb compilation)" >&6; }
49151 ndb_cxxflags_fix="$ndb_cxxflags_fix $ndb_ccflags"
49153 esac
49155 { $as_echo "$as_me:$LINENO: checking for NDB Cluster options" >&5
49156 $as_echo_n "checking for NDB Cluster options... " >&6; }
49157 { $as_echo "$as_me:$LINENO: result: " >&5
49158 $as_echo "" >&6; }
49160 have_ndb_test=no
49161 case "$ndb_test" in
49162 yes )
49163 { $as_echo "$as_me:$LINENO: result: -- including ndbapi test programs" >&5
49164 $as_echo "-- including ndbapi test programs" >&6; }
49165 have_ndb_test="yes"
49168 { $as_echo "$as_me:$LINENO: result: -- not including ndbapi test programs" >&5
49169 $as_echo "-- not including ndbapi test programs" >&6; }
49171 esac
49173 have_ndb_docs=no
49174 case "$ndb_docs" in
49175 yes )
49176 { $as_echo "$as_me:$LINENO: result: -- including ndbapi and mgmapi documentation" >&5
49177 $as_echo "-- including ndbapi and mgmapi documentation" >&6; }
49178 have_ndb_docs="yes"
49181 { $as_echo "$as_me:$LINENO: result: -- not including ndbapi and mgmapi documentation" >&5
49182 $as_echo "-- not including ndbapi and mgmapi documentation" >&6; }
49184 esac
49186 case "$ndb_debug" in
49187 yes )
49188 { $as_echo "$as_me:$LINENO: result: -- including ndb extra debug options" >&5
49189 $as_echo "-- including ndb extra debug options" >&6; }
49190 have_ndb_debug="yes"
49192 full )
49193 { $as_echo "$as_me:$LINENO: result: -- including ndb extra extra debug options" >&5
49194 $as_echo "-- including ndb extra extra debug options" >&6; }
49195 have_ndb_debug="full"
49197 no )
49198 { $as_echo "$as_me:$LINENO: result: -- not including ndb extra debug options" >&5
49199 $as_echo "-- not including ndb extra debug options" >&6; }
49200 have_ndb_debug="no"
49203 have_ndb_debug="default"
49205 esac
49207 { $as_echo "$as_me:$LINENO: result: done." >&5
49208 $as_echo "done." >&6; }
49212 #workaround for Sun Forte/x86 see BUG#4681
49213 case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu in
49214 *solaris*-i?86-no)
49215 CFLAGS="$CFLAGS -DBIG_TABLES"
49216 CXXFLAGS="$CXXFLAGS -DBIG_TABLES"
49220 esac
49222 # workaround for Sun Forte compile problem for ndb
49223 case $SYSTEM_TYPE-$ac_cv_c_compiler_gnu in
49224 *solaris*-no)
49225 ndb_cxxflags_fix="$ndb_cxxflags_fix -instances=static"
49229 esac
49231 # ndb fail for whatever strange reason to link Sun Forte/x86
49232 # unless using incremental linker
49233 case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu-$have_ndbcluster in
49234 *solaris*-i?86-no-yes)
49235 CXXFLAGS="$CXXFLAGS -xildon"
49239 esac
49242 MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster"
49244 if test "$have_ndb_debug" = "default"
49245 then
49246 have_ndb_debug=$with_debug
49249 if test "$have_ndb_debug" = "yes"
49250 then
49251 # Medium debug.
49252 NDB_DEFS="-DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
49253 elif test "$have_ndb_debug" = "full"
49254 then
49255 NDB_DEFS="-DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
49256 else
49257 # no extra ndb debug but still do asserts if debug version
49258 if test "$with_debug" = "yes" -o "$with_debug" = "full"
49259 then
49260 NDB_DEFS=""
49261 else
49262 NDB_DEFS="-DNDEBUG"
49266 if test X"$ndb_port" = Xdefault
49267 then
49268 ndb_port="1186"
49271 have_ndb_binlog="no"
49272 if test X"$ndb_binlog" = Xdefault ||
49273 test X"$ndb_binlog" = Xyes
49274 then
49275 have_ndb_binlog="yes"
49278 if test X"$have_ndb_binlog" = Xyes
49279 then
49281 cat >>confdefs.h <<\_ACEOF
49282 #define WITH_NDB_BINLOG 1
49283 _ACEOF
49285 { $as_echo "$as_me:$LINENO: result: Including Ndb Cluster Binlog" >&5
49286 $as_echo "Including Ndb Cluster Binlog" >&6; }
49287 else
49288 { $as_echo "$as_me:$LINENO: result: Not including Ndb Cluster Binlog" >&5
49289 $as_echo "Not including Ndb Cluster Binlog" >&6; }
49292 ndb_transporter_opt_objs=""
49293 if test "$ac_cv_func_shmget" = "yes" &&
49294 test "$ac_cv_func_shmat" = "yes" &&
49295 test "$ac_cv_func_shmdt" = "yes" &&
49296 test "$ac_cv_func_shmctl" = "yes" &&
49297 test "$ac_cv_func_sigaction" = "yes" &&
49298 test "$ac_cv_func_sigemptyset" = "yes" &&
49299 test "$ac_cv_func_sigaddset" = "yes" &&
49300 test "$ac_cv_func_pthread_sigmask" = "yes"
49301 then
49303 cat >>confdefs.h <<\_ACEOF
49304 #define NDB_SHM_TRANSPORTER 1
49305 _ACEOF
49307 { $as_echo "$as_me:$LINENO: result: Including ndb shared memory transporter" >&5
49308 $as_echo "Including ndb shared memory transporter" >&6; }
49309 ndb_transporter_opt_objs="$ndb_transporter_opt_objs SHM_Transporter.lo SHM_Transporter.unix.lo"
49310 else
49311 { $as_echo "$as_me:$LINENO: result: Not including ndb shared memory transporter" >&5
49312 $as_echo "Not including ndb shared memory transporter" >&6; }
49315 if test X"$have_ndb_sci" = Xyes
49316 then
49317 ndb_transporter_opt_objs="$ndb_transporter_opt_objs SCI_Transporter.lo"
49320 ndb_opt_subdirs=
49321 ndb_bin_am_ldflags="-static"
49322 if test X"$have_ndb_test" = Xyes
49323 then
49324 ndb_opt_subdirs="test"
49325 ndb_bin_am_ldflags=""
49328 if test X"$have_ndb_docs" = Xyes
49329 then
49330 ndb_opt_subdirs="$ndb_opt_subdirs docs"
49331 ndb_bin_am_ldflags=""
49334 # building dynamic breaks on AIX. (If you want to try it and get unresolved
49335 # __vec__delete2 and some such, try linking against libhC.)
49336 case "$host_os" in
49337 aix3.* | aix4.0.* | aix4.1.*) ;;
49338 *) ndb_bin_am_ldflags="-static";;
49339 esac
49341 # libndbclient versioning when linked with GNU ld.
49342 if $LD --version 2>/dev/null|grep GNU >/dev/null 2>&1 ; then
49343 NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
49344 ac_config_files="$ac_config_files storage/ndb/src/libndb.ver"
49358 cat >>confdefs.h <<_ACEOF
49359 #define NDB_VERSION_MAJOR $NDB_VERSION_MAJOR
49360 _ACEOF
49363 cat >>confdefs.h <<_ACEOF
49364 #define NDB_VERSION_MINOR $NDB_VERSION_MINOR
49365 _ACEOF
49368 cat >>confdefs.h <<_ACEOF
49369 #define NDB_VERSION_BUILD $NDB_VERSION_BUILD
49370 _ACEOF
49373 cat >>confdefs.h <<_ACEOF
49374 #define NDB_VERSION_STATUS "$NDB_VERSION_STATUS"
49375 _ACEOF
49392 NDB_SIZEOF_CHARP="$ac_cv_sizeof_charp"
49393 NDB_SIZEOF_CHAR="$ac_cv_sizeof_char"
49394 NDB_SIZEOF_SHORT="$ac_cv_sizeof_short"
49395 NDB_SIZEOF_INT="$ac_cv_sizeof_int"
49396 NDB_SIZEOF_LONG="$ac_cv_sizeof_long"
49397 NDB_SIZEOF_LONG_LONG="$ac_cv_sizeof_long_long"
49405 ac_config_files="$ac_config_files storage/ndb/include/ndb_version.h storage/ndb/include/ndb_global.h storage/ndb/include/ndb_types.h"
49455 # Only build client code?
49457 # Check whether --with-server was given.
49458 if test "${with_server+set}" = set; then
49459 withval=$with_server; with_server=$withval
49460 else
49461 with_server=yes
49467 # Check whether --with-embedded-server was given.
49468 if test "${with_embedded_server+set}" = set; then
49469 withval=$with_embedded_server; with_embedded_server=$withval
49470 else
49471 with_embedded_server=no
49477 # Check whether --with-query_cache was given.
49478 if test "${with_query_cache+set}" = set; then
49479 withval=$with_query_cache; with_query_cache=$withval
49480 else
49481 with_query_cache=yes
49486 if test "$with_query_cache" = "yes"
49487 then
49489 cat >>confdefs.h <<\_ACEOF
49490 #define HAVE_QUERY_CACHE 1
49491 _ACEOF
49496 # Check whether --with-geometry was given.
49497 if test "${with_geometry+set}" = set; then
49498 withval=$with_geometry; with_geometry=$withval
49499 else
49500 with_geometry=yes
49505 if test "$with_geometry" = "yes"
49506 then
49508 cat >>confdefs.h <<\_ACEOF
49509 #define HAVE_SPATIAL 1
49510 _ACEOF
49513 cat >>confdefs.h <<\_ACEOF
49514 #define HAVE_RTREE_KEYS 1
49515 _ACEOF
49520 # Check whether --with-embedded_privilege_control was given.
49521 if test "${with_embedded_privilege_control+set}" = set; then
49522 withval=$with_embedded_privilege_control; with_embedded_privilege_control=$withval
49523 else
49524 with_embedded_privilege_control=no
49529 if test "$with_embedded_privilege_control" = "yes"
49530 then
49532 cat >>confdefs.h <<\_ACEOF
49533 #define HAVE_EMBEDDED_PRIVILEGE_CONTROL 1
49534 _ACEOF
49538 tools_dirs=""
49541 # Check whether --with-mysqlmanager was given.
49542 if test "${with_mysqlmanager+set}" = set; then
49543 withval=$with_mysqlmanager;
49547 if test "$with_mysqlmanager" = "yes" -o \
49548 '(' "$with_mysqlmanager:$with_server" = ":yes" -a \
49549 -d "$srcdir/server-tools" ')' ; then
49550 tools_dirs="server-tools"
49555 #MYSQL_CHECK_CPU
49557 libmysqld_dirs=
49558 if test "$with_embedded_server" = "yes"
49559 then
49560 libmysqld_dirs=libmysqld
49562 # We can't build embedded library without building the server, because
49563 # we depend on libmysys, libmystrings, libmyisam, etc.
49564 with_server=yes
49566 # XXX: We need to add @libmysqld_extra_libs@ (or whatever) so that
49567 # mysql_config --libmysqld-libs will print out something like
49568 # -L/path/to/lib/mysql -lmysqld -lmyisam -lmysys -lmystrings -ldbug ...
49571 # Shall we build the docs?
49573 # Check whether --with-docs was given.
49574 if test "${with_docs+set}" = set; then
49575 withval=$with_docs; with_docs=$withval
49576 else
49577 with_docs=yes
49582 if test "$with_docs" = "yes"
49583 then
49584 docs_dirs="Docs"
49585 if test -f "$srcdir/Docs/manual.chm" ; then
49586 extra_docs="manual.chm"
49588 else
49589 docs_dirs=""
49590 extra_docs=""
49595 # Shall we build the man pages?
49597 # Check whether --with-man was given.
49598 if test "${with_man+set}" = set; then
49599 withval=$with_man; with_man=$withval
49600 else
49601 with_man=yes
49606 # Don't build readline, i have it already
49608 # Check whether --with-readline was given.
49609 if test "${with_readline+set}" = set; then
49610 withval=$with_readline; with_readline=$withval
49611 else
49612 with_readline=undefined
49618 # Check whether --with-libedit was given.
49619 if test "${with_libedit+set}" = set; then
49620 withval=$with_libedit; with_libedit=$withval
49621 else
49622 with_libedit=undefined
49627 if test "$with_readline/$with_libedit" = "undefined/undefined" -a ! -e "$srcdir/cmd-line-utils"
49628 then
49629 with_readline=no
49630 with_libedit=no
49634 # We support next variants of compilation:
49635 # --with-readline
49636 # | yes | no | undefined
49637 # --with-libedit | | |
49638 # ---------------+----------------+------+----------------------------------
49639 # yes | ERROR! | use libedit from mysql sources
49640 # ---------------+----------------+------+----------------------------------
49641 # no | use readline | use system readline or external libedit
49642 # | from mysql | according to results of m4 tests
49643 # ---------------+ sources (if it + +----------------------------------
49644 # undefined | is presented) | | use libedit from mysql sources
49647 compile_readline="no"
49648 compile_libedit="no"
49650 if test "$with_libedit" = "yes" && test "$with_readline" = "yes"
49651 then
49652 { { $as_echo "$as_me:$LINENO: error: You can not use --with-readline and --with-libedit at the same time, please choose one of it" >&5
49653 $as_echo "$as_me: error: You can not use --with-readline and --with-libedit at the same time, please choose one of it" >&2;}
49654 { (exit 1); exit 1; }; }
49657 readline_topdir=""
49658 readline_basedir=""
49659 readline_dir=""
49660 readline_h_ln_cmd=""
49661 readline_link=""
49662 want_to_use_readline="no"
49664 case $SYSTEM_TYPE in
49665 *netware*)
49666 # For NetWare, do not need readline
49667 echo "Skipping readline"
49670 if test "$with_libedit" = "yes" || test "$with_libedit" = "undefined" && test "$with_readline" = "undefined"
49671 then
49672 readline_topdir="cmd-line-utils"
49673 readline_basedir="libedit"
49674 readline_dir="$readline_topdir/$readline_basedir"
49675 readline_link="\$(top_builddir)/cmd-line-utils/libedit/libedit.a"
49676 readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/libedit/readline readline"
49677 compile_libedit=yes
49678 cat >>confdefs.h <<_ACEOF
49679 #define HAVE_HIST_ENTRY 1
49680 _ACEOF
49682 cat >>confdefs.h <<_ACEOF
49683 #define USE_LIBEDIT_INTERFACE 1
49684 _ACEOF
49686 elif test "$with_readline" = "yes"
49687 then
49688 readline_topdir="cmd-line-utils"
49689 readline_basedir="readline"
49690 readline_dir="$readline_topdir/$readline_basedir"
49691 readline_link="\$(top_builddir)/cmd-line-utils/readline/libreadline.a"
49692 readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/readline readline"
49693 compile_readline=yes
49694 want_to_use_readline="yes"
49695 cat >>confdefs.h <<_ACEOF
49696 #define USE_NEW_READLINE_INTERFACE 1
49697 _ACEOF
49699 else
49700 # Use system readline library
49702 ac_ext=cpp
49703 ac_cpp='$CXXCPP $CPPFLAGS'
49704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49709 { $as_echo "$as_me:$LINENO: checking libedit variant of rl_completion_entry_function" >&5
49710 $as_echo_n "checking libedit variant of rl_completion_entry_function... " >&6; }
49711 if test "${mysql_cv_libedit_interface+set}" = set; then
49712 $as_echo_n "(cached) " >&6
49713 else
49714 cat >conftest.$ac_ext <<_ACEOF
49715 /* confdefs.h. */
49716 _ACEOF
49717 cat confdefs.h >>conftest.$ac_ext
49718 cat >>conftest.$ac_ext <<_ACEOF
49719 /* end confdefs.h. */
49721 #include "stdio.h"
49722 #include "readline/readline.h"
49725 main ()
49728 char res= *(*rl_completion_entry_function)(0,0);
49729 completion_matches(0,0);
49732 return 0;
49734 _ACEOF
49735 rm -f conftest.$ac_objext
49736 if { (ac_try="$ac_compile"
49737 case "(($ac_try" in
49738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49739 *) ac_try_echo=$ac_try;;
49740 esac
49741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49742 $as_echo "$ac_try_echo") >&5
49743 (eval "$ac_compile") 2>conftest.er1
49744 ac_status=$?
49745 grep -v '^ *+' conftest.er1 >conftest.err
49746 rm -f conftest.er1
49747 cat conftest.err >&5
49748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49749 (exit $ac_status); } && {
49750 test -z "$ac_cxx_werror_flag" ||
49751 test ! -s conftest.err
49752 } && test -s conftest.$ac_objext; then
49754 mysql_cv_libedit_interface=yes
49756 cat >>confdefs.h <<_ACEOF
49757 #define USE_LIBEDIT_INTERFACE 1
49758 _ACEOF
49761 else
49762 $as_echo "$as_me: failed program was:" >&5
49763 sed 's/^/| /' conftest.$ac_ext >&5
49765 mysql_cv_libedit_interface=no
49769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49772 { $as_echo "$as_me:$LINENO: result: $mysql_cv_libedit_interface" >&5
49773 $as_echo "$mysql_cv_libedit_interface" >&6; }
49776 { $as_echo "$as_me:$LINENO: checking defined rl_compentry_func_t and rl_completion_func_t" >&5
49777 $as_echo_n "checking defined rl_compentry_func_t and rl_completion_func_t... " >&6; }
49778 if test "${mysql_cv_new_rl_interface+set}" = set; then
49779 $as_echo_n "(cached) " >&6
49780 else
49781 cat >conftest.$ac_ext <<_ACEOF
49782 /* confdefs.h. */
49783 _ACEOF
49784 cat confdefs.h >>conftest.$ac_ext
49785 cat >>conftest.$ac_ext <<_ACEOF
49786 /* end confdefs.h. */
49788 #include "stdio.h"
49789 #include "readline/readline.h"
49792 main ()
49795 rl_completion_func_t *func1= (rl_completion_func_t*)0;
49796 rl_compentry_func_t *func2= (rl_compentry_func_t*)0;
49799 return 0;
49801 _ACEOF
49802 rm -f conftest.$ac_objext
49803 if { (ac_try="$ac_compile"
49804 case "(($ac_try" in
49805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49806 *) ac_try_echo=$ac_try;;
49807 esac
49808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49809 $as_echo "$ac_try_echo") >&5
49810 (eval "$ac_compile") 2>conftest.er1
49811 ac_status=$?
49812 grep -v '^ *+' conftest.er1 >conftest.err
49813 rm -f conftest.er1
49814 cat conftest.err >&5
49815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49816 (exit $ac_status); } && {
49817 test -z "$ac_cxx_werror_flag" ||
49818 test ! -s conftest.err
49819 } && test -s conftest.$ac_objext; then
49821 mysql_cv_new_rl_interface=yes
49823 cat >>confdefs.h <<_ACEOF
49824 #define USE_NEW_READLINE_INTERFACE 1
49825 _ACEOF
49828 else
49829 $as_echo "$as_me: failed program was:" >&5
49830 sed 's/^/| /' conftest.$ac_ext >&5
49832 mysql_cv_new_rl_interface=no
49836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49839 { $as_echo "$as_me:$LINENO: result: $mysql_cv_new_rl_interface" >&5
49840 $as_echo "$mysql_cv_new_rl_interface" >&6; }
49843 { $as_echo "$as_me:$LINENO: checking HIST_ENTRY is declared in readline/readline.h" >&5
49844 $as_echo_n "checking HIST_ENTRY is declared in readline/readline.h... " >&6; }
49845 if test "${mysql_cv_hist_entry_declared+set}" = set; then
49846 $as_echo_n "(cached) " >&6
49847 else
49848 cat >conftest.$ac_ext <<_ACEOF
49849 /* confdefs.h. */
49850 _ACEOF
49851 cat confdefs.h >>conftest.$ac_ext
49852 cat >>conftest.$ac_ext <<_ACEOF
49853 /* end confdefs.h. */
49855 #include "stdio.h"
49856 #include "readline/readline.h"
49859 main ()
49862 HIST_ENTRY entry;
49865 return 0;
49867 _ACEOF
49868 rm -f conftest.$ac_objext
49869 if { (ac_try="$ac_compile"
49870 case "(($ac_try" in
49871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49872 *) ac_try_echo=$ac_try;;
49873 esac
49874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49875 $as_echo "$ac_try_echo") >&5
49876 (eval "$ac_compile") 2>conftest.er1
49877 ac_status=$?
49878 grep -v '^ *+' conftest.er1 >conftest.err
49879 rm -f conftest.er1
49880 cat conftest.err >&5
49881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49882 (exit $ac_status); } && {
49883 test -z "$ac_cxx_werror_flag" ||
49884 test ! -s conftest.err
49885 } && test -s conftest.$ac_objext; then
49887 mysql_cv_hist_entry_declared=yes
49889 cat >>confdefs.h <<_ACEOF
49890 #define HAVE_HIST_ENTRY 1
49891 _ACEOF
49894 else
49895 $as_echo "$as_me: failed program was:" >&5
49896 sed 's/^/| /' conftest.$ac_ext >&5
49898 mysql_cv_libedit_interface=no
49902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49905 { $as_echo "$as_me:$LINENO: result: $mysql_cv_hist_entry_declared" >&5
49906 $as_echo "$mysql_cv_hist_entry_declared" >&6; }
49908 ac_ext=c
49909 ac_cpp='$CPP $CPPFLAGS'
49910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49914 if test "$mysql_cv_new_rl_interface" = "yes" && test -d "$srcdir/cmd-line-utils/readline"
49915 then
49916 # Use the new readline interface, but only if the package includes a bundled libreadline
49917 # this way we avoid linking commercial source with GPL readline
49918 readline_link="-lreadline"
49919 want_to_use_readline="yes"
49920 elif test "$mysql_cv_libedit_interface" = "yes"
49921 then
49922 # Use libedit
49923 readline_link="-ledit"
49924 else
49925 { { $as_echo "$as_me:$LINENO: error: Could not find system readline or libedit libraries
49926 Use --with-readline or --with-libedit to use the bundled
49927 versions of libedit or readline" >&5
49928 $as_echo "$as_me: error: Could not find system readline or libedit libraries
49929 Use --with-readline or --with-libedit to use the bundled
49930 versions of libedit or readline" >&2;}
49931 { (exit 1); exit 1; }; }
49935 # if there is no readline, but we want to build with readline, we fail
49936 if test "$want_to_use_readline" = "yes" && test ! -d "$srcdir/cmd-line-utils/readline"
49937 then
49938 { { $as_echo "$as_me:$LINENO: error: This commercially licensed MySQL source package can't
49939 be built with libreadline. Please use --with-libedit to use
49940 the bundled version of libedit instead." >&5
49941 $as_echo "$as_me: error: This commercially licensed MySQL source package can't
49942 be built with libreadline. Please use --with-libedit to use
49943 the bundled version of libedit instead." >&2;}
49944 { (exit 1); exit 1; }; }
49947 esac
49957 # Include man pages, if desired, adapted to the configured parts.
49958 if test X"$with_man" = Xyes
49959 then
49960 # First, create the list of all man pages present.
49961 MANLISTFIL=manlist.$$
49962 TMPLISTFIL=`echo $MANLISTFIL | sed -e 's/manlist/tmplist/'`
49963 if test -f $MANLISTFIL -o -f $TMPLISTFIL
49964 then
49965 echo "Temp file '$MANLISTFIL' or '$TMPLISTFIL' already exists in '`pwd`' - aborting"
49966 exit 1
49968 touch $MANLISTFIL $TMPLISTFIL
49970 ls $srcdir/man/*.[18] > $MANLISTFIL
49972 # Then, remove all those pages from the list which are specific to parts
49973 # (table handlers, features, ...) which are not configured in this run.
49974 { $as_echo "$as_me:$LINENO: checking \"for man pages to remove\"" >&5
49975 $as_echo_n "checking \"for man pages to remove\"... " >&6; }
49976 MAN_DROP="dropping"
49977 if test X"$with_plugin_ndbcluster" != Xyes
49978 then
49979 MAN_DROP="$MAN_DROP ndbcluster"
49980 grep -v '/ndb' $MANLISTFIL > $TMPLISTFIL ; mv -f $TMPLISTFIL $MANLISTFIL
49982 if test X"$with_embedded_server" != Xyes
49983 then
49984 MAN_DROP="$MAN_DROP embedded"
49985 grep -v 'embedded' $MANLISTFIL > $TMPLISTFIL ; mv -f $TMPLISTFIL $MANLISTFIL
49987 if test X"$with_plugin_innobase" != Xyes -a X"$with_plugin_innodb_plugin" != Xyes
49988 then
49989 MAN_DROP="$MAN_DROP innodb"
49990 grep -v 'inno' $MANLISTFIL > $TMPLISTFIL ; mv -f $TMPLISTFIL $MANLISTFIL
49992 { $as_echo "$as_me:$LINENO: result: $MAN_DROP" >&5
49993 $as_echo "$MAN_DROP" >&6; }
49995 # Finally, split the man pages into sections 1 and 8.
49996 # Get rid of line breaks.
49997 man1_files=`sed -n -e '/\.1$/s/^.*man\///p' <$MANLISTFIL`
49998 man8_files=`sed -n -e '/\.8$/s/^.*man\///p' <$MANLISTFIL`
50000 man_dirs="man"
50001 man1_files=`echo $man1_files`
50002 man8_files=`echo $man8_files`
50003 rm -f $MANLISTFIL $TMPLISTFIL
50004 else
50005 man_dirs=""
50006 man1_files=""
50007 man8_files=""
50013 # If we have threads generate some library functions and test programs
50014 sql_server_dirs=
50015 sql_server=
50016 server_scripts=
50018 sql_client_dirs="strings mysys dbug extra regex libmysql"
50020 if test "$THREAD_SAFE_CLIENT" != "no"; then
50021 THREAD_SAFE_CLIENT_TRUE=
50022 THREAD_SAFE_CLIENT_FALSE='#'
50023 else
50024 THREAD_SAFE_CLIENT_TRUE='#'
50025 THREAD_SAFE_CLIENT_FALSE=
50029 if test "$THREAD_SAFE_CLIENT" != "no"
50030 then
50031 sql_client_dirs="$sql_client_dirs libmysql_r"
50033 cat >>confdefs.h <<\_ACEOF
50034 #define THREAD_SAFE_CLIENT 1
50035 _ACEOF
50038 sql_client_dirs="$sql_client_dirs client"
50040 CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS"
50048 # If configuring for NetWare, build the netware directory
50049 netware_dir=
50050 if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null
50051 then
50052 netware_dir="netware"
50055 if test "$netware_dir" = "netware"; then
50056 HAVE_NETWARE_TRUE=
50057 HAVE_NETWARE_FALSE='#'
50058 else
50059 HAVE_NETWARE_TRUE='#'
50060 HAVE_NETWARE_FALSE=
50064 if test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no"
50065 then
50067 cat >>confdefs.h <<\_ACEOF
50068 #define THREAD 1
50069 _ACEOF
50071 # Avoid _PROGRAMS names
50072 THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o"
50075 if test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no"; then
50076 NEED_THREAD_TRUE=
50077 NEED_THREAD_FALSE='#'
50078 else
50079 NEED_THREAD_TRUE='#'
50080 NEED_THREAD_FALSE=
50084 if test "$with_server" != "no"
50085 then
50086 server_scripts="mysqld_safe mysql_install_db"
50087 sql_server_dirs="strings mysys dbug extra regex storage plugin"
50089 sql_server="vio sql"
50092 # "innochecksum" is not in the "innobase/" subdirectory, but should be switched
50093 if test X"$with_plugin_innobase" = Xyes -o X"$with_plugin_innodb_plugin" = Xyes ; then
50094 BUILD_INNODB_TOOLS_TRUE=
50095 BUILD_INNODB_TOOLS_FALSE='#'
50096 else
50097 BUILD_INNODB_TOOLS_TRUE='#'
50098 BUILD_INNODB_TOOLS_FALSE=
50102 # IMPORTANT - do not modify LIBS past this line - this hack is the only way
50103 # I know to add the static NSS magic if we have static NSS libraries with
50104 # glibc - Sasha
50106 LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB"
50107 LIBS="$LIBS $STATIC_NSS_FLAGS"
50118 # Now that sql_client_dirs and sql_server_dirs are stable, determine the union.
50119 # We support client-only builds by "--without-server", but not vice versa,
50120 # so we start with the client list, then add each server item not yet present.
50121 sql_union_dirs=" $sql_client_dirs "
50122 for DIR in $sql_server_dirs
50124 if echo " $sql_union_dirs " | grep " $DIR " >/dev/null
50125 then
50126 : # already present, skip
50127 else
50128 sql_union_dirs="$sql_union_dirs $DIR "
50130 done
50134 # Setup maintainer mode options by the end to not disturb
50135 # system and other checks.
50138 if test "$USE_MYSQL_MAINTAINER_MODE" = "yes"; then
50140 # Detect ICC posing as GCC.
50141 cat >conftest.$ac_ext <<_ACEOF
50142 /* confdefs.h. */
50143 _ACEOF
50144 cat confdefs.h >>conftest.$ac_ext
50145 cat >>conftest.$ac_ext <<_ACEOF
50146 /* end confdefs.h. */
50147 __INTEL_COMPILER
50148 _ACEOF
50149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50150 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
50151 INTEL_COMPILER=no
50152 else
50153 INTEL_COMPILER=yes
50155 rm -f conftest*
50157 # Setup GCC warning options.
50158 if test "$GCC" = "yes" -a "$INTEL_COMPILER" = "no"; then
50160 C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror"
50161 CXX_WARNINGS="${C_WARNINGS} -Wno-unused-parameter"
50162 C_WARNINGS="${C_WARNINGS} -Wdeclaration-after-statement"
50167 # Test whether the warning options work.
50168 # Test C options
50169 if test -n "$C_WARNINGS"; then
50171 save_CFLAGS="$CFLAGS"
50172 { $as_echo "$as_me:$LINENO: checking whether to use C warning options ${C_WARNINGS}" >&5
50173 $as_echo_n "checking whether to use C warning options ${C_WARNINGS}... " >&6; }
50174 ac_ext=c
50175 ac_cpp='$CPP $CPPFLAGS'
50176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50180 CFLAGS="$CFLAGS ${C_WARNINGS}"
50181 cat >conftest.$ac_ext <<_ACEOF
50182 /* confdefs.h. */
50183 _ACEOF
50184 cat confdefs.h >>conftest.$ac_ext
50185 cat >>conftest.$ac_ext <<_ACEOF
50186 /* end confdefs.h. */
50189 main ()
50193 return 0;
50195 _ACEOF
50196 rm -f conftest.$ac_objext
50197 if { (ac_try="$ac_compile"
50198 case "(($ac_try" in
50199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50200 *) ac_try_echo=$ac_try;;
50201 esac
50202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50203 $as_echo "$ac_try_echo") >&5
50204 (eval "$ac_compile") 2>conftest.er1
50205 ac_status=$?
50206 grep -v '^ *+' conftest.er1 >conftest.err
50207 rm -f conftest.er1
50208 cat conftest.err >&5
50209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50210 (exit $ac_status); } && {
50211 test -z "$ac_c_werror_flag" ||
50212 test ! -s conftest.err
50213 } && test -s conftest.$ac_objext; then
50214 myac_c_warning_flags=yes
50215 else
50216 $as_echo "$as_me: failed program was:" >&5
50217 sed 's/^/| /' conftest.$ac_ext >&5
50219 myac_c_warning_flags=no
50222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50223 ac_ext=c
50224 ac_cpp='$CPP $CPPFLAGS'
50225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50229 { $as_echo "$as_me:$LINENO: result: $myac_c_warning_flags" >&5
50230 $as_echo "$myac_c_warning_flags" >&6; }
50231 CFLAGS="$save_CFLAGS"
50236 # Test C++ options
50237 if test -n "$CXX_WARNINGS"; then
50239 save_CXXFLAGS="$CXXFLAGS"
50240 { $as_echo "$as_me:$LINENO: checking whether to use C++ warning options ${CXX_WARNINGS}" >&5
50241 $as_echo_n "checking whether to use C++ warning options ${CXX_WARNINGS}... " >&6; }
50242 ac_ext=cpp
50243 ac_cpp='$CXXCPP $CPPFLAGS'
50244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50248 CXXFLAGS="$CXXFLAGS ${CXX_WARNINGS}"
50249 cat >conftest.$ac_ext <<_ACEOF
50250 /* confdefs.h. */
50251 _ACEOF
50252 cat confdefs.h >>conftest.$ac_ext
50253 cat >>conftest.$ac_ext <<_ACEOF
50254 /* end confdefs.h. */
50257 main ()
50261 return 0;
50263 _ACEOF
50264 rm -f conftest.$ac_objext
50265 if { (ac_try="$ac_compile"
50266 case "(($ac_try" in
50267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50268 *) ac_try_echo=$ac_try;;
50269 esac
50270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50271 $as_echo "$ac_try_echo") >&5
50272 (eval "$ac_compile") 2>conftest.er1
50273 ac_status=$?
50274 grep -v '^ *+' conftest.er1 >conftest.err
50275 rm -f conftest.er1
50276 cat conftest.err >&5
50277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50278 (exit $ac_status); } && {
50279 test -z "$ac_cxx_werror_flag" ||
50280 test ! -s conftest.err
50281 } && test -s conftest.$ac_objext; then
50282 myac_cxx_warning_flags=yes
50283 else
50284 $as_echo "$as_me: failed program was:" >&5
50285 sed 's/^/| /' conftest.$ac_ext >&5
50287 myac_cxx_warning_flags=no
50290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50291 ac_ext=c
50292 ac_cpp='$CPP $CPPFLAGS'
50293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50297 { $as_echo "$as_me:$LINENO: result: $myac_cxx_warning_flags" >&5
50298 $as_echo "$myac_cxx_warning_flags" >&6; }
50299 CXXFLAGS="$save_CXXFLAGS"
50304 # Set compile flag variables.
50305 if test "$myac_c_warning_flags" = "yes"; then
50307 AM_CFLAGS="${AM_CFLAGS} ${C_WARNINGS}"
50311 if test "$myac_cxx_warning_flags" = "yes"; then
50313 AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS}"
50322 # Some usefull subst
50326 # Set configuration options for make_binary_distribution
50327 case $SYSTEM_TYPE in
50328 *netware*)
50329 MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --no-strip"
50332 : # no change for other platforms yet
50334 esac
50337 # Output results
50338 if test -d "$srcdir/cmd-line-utils/readline" ; then
50339 ac_config_files="$ac_config_files cmd-line-utils/readline/Makefile"
50343 ac_config_files="$ac_config_files Makefile extra/Makefile mysys/Makefile unittest/Makefile unittest/mytap/Makefile unittest/mytap/t/Makefile unittest/mysys/Makefile unittest/strings/Makefile unittest/examples/Makefile unittest/my_decimal/Makefile strings/Makefile regex/Makefile storage/Makefile man/Makefile BUILD/Makefile vio/Makefile libmysql/Makefile libmysql_r/Makefile client/Makefile sql/Makefile sql/share/Makefile sql/sql_builtin.cc sql-common/Makefile dbug/Makefile scripts/Makefile include/Makefile tests/Makefile Docs/Makefile support-files/Makefile support-files/MacOSX/Makefile support-files/RHEL4-SElinux/Makefile server-tools/Makefile server-tools/instance-manager/Makefile cmd-line-utils/Makefile cmd-line-utils/libedit/Makefile libmysqld/Makefile libmysqld/examples/Makefile mysql-test/Makefile mysql-test/lib/My/SafeProcess/Makefile netware/Makefile sql-bench/Makefile include/mysql_version.h plugin/Makefile win/Makefile"
50346 ac_config_commands="$ac_config_commands default"
50349 # Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
50352 cat >confcache <<\_ACEOF
50353 # This file is a shell script that caches the results of configure
50354 # tests run on this system so they can be shared between configure
50355 # scripts and configure runs, see configure's option --config-cache.
50356 # It is not useful on other systems. If it contains results you don't
50357 # want to keep, you may remove or edit it.
50359 # config.status only pays attention to the cache file if you give it
50360 # the --recheck option to rerun configure.
50362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50364 # following values.
50366 _ACEOF
50368 # The following way of writing the cache mishandles newlines in values,
50369 # but we know of no workaround that is simple, portable, and efficient.
50370 # So, we kill variables containing newlines.
50371 # Ultrix sh set writes to stderr and can't be redirected directly,
50372 # and sets the high bit in the cache file unless we assign to the vars.
50374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50375 eval ac_val=\$$ac_var
50376 case $ac_val in #(
50377 *${as_nl}*)
50378 case $ac_var in #(
50379 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
50380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
50381 esac
50382 case $ac_var in #(
50383 _ | IFS | as_nl) ;; #(
50384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
50385 *) $as_unset $ac_var ;;
50386 esac ;;
50387 esac
50388 done
50390 (set) 2>&1 |
50391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
50392 *${as_nl}ac_space=\ *)
50393 # `set' does not quote correctly, so add quotes (double-quote
50394 # substitution turns \\\\ into \\, and sed turns \\ into \).
50395 sed -n \
50396 "s/'/'\\\\''/g;
50397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50398 ;; #(
50400 # `set' quotes correctly as required by POSIX, so do not add quotes.
50401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50403 esac |
50404 sort
50406 sed '
50407 /^ac_cv_env_/b end
50408 t clear
50409 :clear
50410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50411 t end
50412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50413 :end' >>confcache
50414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50415 if test -w "$cache_file"; then
50416 test "x$cache_file" != "x/dev/null" &&
50417 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
50418 $as_echo "$as_me: updating cache $cache_file" >&6;}
50419 cat confcache >$cache_file
50420 else
50421 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50422 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50425 rm -f confcache
50427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50428 # Let make expand exec_prefix.
50429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50431 DEFS=-DHAVE_CONFIG_H
50433 ac_libobjs=
50434 ac_ltlibobjs=
50435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50436 # 1. Remove the extension, and $U if already installed.
50437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
50439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
50440 # will be set to the directory where LIBOBJS objects are built.
50441 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50442 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50443 done
50444 LIBOBJS=$ac_libobjs
50446 LTLIBOBJS=$ac_ltlibobjs
50449 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50450 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
50451 Usually this means the macro was only invoked conditionally." >&5
50452 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
50453 Usually this means the macro was only invoked conditionally." >&2;}
50454 { (exit 1); exit 1; }; }
50456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50457 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50458 Usually this means the macro was only invoked conditionally." >&5
50459 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50460 Usually this means the macro was only invoked conditionally." >&2;}
50461 { (exit 1); exit 1; }; }
50463 if test -z "${DARWIN_MWCC_TRUE}" && test -z "${DARWIN_MWCC_FALSE}"; then
50464 { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN_MWCC\" was never defined.
50465 Usually this means the macro was only invoked conditionally." >&5
50466 $as_echo "$as_me: error: conditional \"DARWIN_MWCC\" was never defined.
50467 Usually this means the macro was only invoked conditionally." >&2;}
50468 { (exit 1); exit 1; }; }
50470 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50471 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50472 Usually this means the macro was only invoked conditionally." >&5
50473 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50474 Usually this means the macro was only invoked conditionally." >&2;}
50475 { (exit 1); exit 1; }; }
50477 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50478 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
50479 Usually this means the macro was only invoked conditionally." >&5
50480 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
50481 Usually this means the macro was only invoked conditionally." >&2;}
50482 { (exit 1); exit 1; }; }
50484 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50485 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
50486 Usually this means the macro was only invoked conditionally." >&5
50487 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
50488 Usually this means the macro was only invoked conditionally." >&2;}
50489 { (exit 1); exit 1; }; }
50491 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
50492 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
50493 Usually this means the macro was only invoked conditionally." >&5
50494 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
50495 Usually this means the macro was only invoked conditionally." >&2;}
50496 { (exit 1); exit 1; }; }
50498 if test -z "${ASSEMBLER_x86_TRUE}" && test -z "${ASSEMBLER_x86_FALSE}"; then
50499 { { $as_echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_x86\" was never defined.
50500 Usually this means the macro was only invoked conditionally." >&5
50501 $as_echo "$as_me: error: conditional \"ASSEMBLER_x86\" was never defined.
50502 Usually this means the macro was only invoked conditionally." >&2;}
50503 { (exit 1); exit 1; }; }
50505 if test -z "${ASSEMBLER_sparc32_TRUE}" && test -z "${ASSEMBLER_sparc32_FALSE}"; then
50506 { { $as_echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_sparc32\" was never defined.
50507 Usually this means the macro was only invoked conditionally." >&5
50508 $as_echo "$as_me: error: conditional \"ASSEMBLER_sparc32\" was never defined.
50509 Usually this means the macro was only invoked conditionally." >&2;}
50510 { (exit 1); exit 1; }; }
50512 if test -z "${ASSEMBLER_sparc64_TRUE}" && test -z "${ASSEMBLER_sparc64_FALSE}"; then
50513 { { $as_echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_sparc64\" was never defined.
50514 Usually this means the macro was only invoked conditionally." >&5
50515 $as_echo "$as_me: error: conditional \"ASSEMBLER_sparc64\" was never defined.
50516 Usually this means the macro was only invoked conditionally." >&2;}
50517 { (exit 1); exit 1; }; }
50519 if test -z "${ASSEMBLER_TRUE}" && test -z "${ASSEMBLER_FALSE}"; then
50520 { { $as_echo "$as_me:$LINENO: error: conditional \"ASSEMBLER\" was never defined.
50521 Usually this means the macro was only invoked conditionally." >&5
50522 $as_echo "$as_me: error: conditional \"ASSEMBLER\" was never defined.
50523 Usually this means the macro was only invoked conditionally." >&2;}
50524 { (exit 1); exit 1; }; }
50527 if test -z "${HAVE_YASSL_TRUE}" && test -z "${HAVE_YASSL_FALSE}"; then
50528 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_YASSL\" was never defined.
50529 Usually this means the macro was only invoked conditionally." >&5
50530 $as_echo "$as_me: error: conditional \"HAVE_YASSL\" was never defined.
50531 Usually this means the macro was only invoked conditionally." >&2;}
50532 { (exit 1); exit 1; }; }
50536 if test -z "${THREAD_SAFE_CLIENT_TRUE}" && test -z "${THREAD_SAFE_CLIENT_FALSE}"; then
50537 { { $as_echo "$as_me:$LINENO: error: conditional \"THREAD_SAFE_CLIENT\" was never defined.
50538 Usually this means the macro was only invoked conditionally." >&5
50539 $as_echo "$as_me: error: conditional \"THREAD_SAFE_CLIENT\" was never defined.
50540 Usually this means the macro was only invoked conditionally." >&2;}
50541 { (exit 1); exit 1; }; }
50543 if test -z "${HAVE_NETWARE_TRUE}" && test -z "${HAVE_NETWARE_FALSE}"; then
50544 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NETWARE\" was never defined.
50545 Usually this means the macro was only invoked conditionally." >&5
50546 $as_echo "$as_me: error: conditional \"HAVE_NETWARE\" was never defined.
50547 Usually this means the macro was only invoked conditionally." >&2;}
50548 { (exit 1); exit 1; }; }
50550 if test -z "${NEED_THREAD_TRUE}" && test -z "${NEED_THREAD_FALSE}"; then
50551 { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_THREAD\" was never defined.
50552 Usually this means the macro was only invoked conditionally." >&5
50553 $as_echo "$as_me: error: conditional \"NEED_THREAD\" was never defined.
50554 Usually this means the macro was only invoked conditionally." >&2;}
50555 { (exit 1); exit 1; }; }
50557 if test -z "${BUILD_INNODB_TOOLS_TRUE}" && test -z "${BUILD_INNODB_TOOLS_FALSE}"; then
50558 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_INNODB_TOOLS\" was never defined.
50559 Usually this means the macro was only invoked conditionally." >&5
50560 $as_echo "$as_me: error: conditional \"BUILD_INNODB_TOOLS\" was never defined.
50561 Usually this means the macro was only invoked conditionally." >&2;}
50562 { (exit 1); exit 1; }; }
50565 : ${CONFIG_STATUS=./config.status}
50566 ac_write_fail=0
50567 ac_clean_files_save=$ac_clean_files
50568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50569 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50571 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50572 #! $SHELL
50573 # Generated by $as_me.
50574 # Run this file to recreate the current configuration.
50575 # Compiler output produced by configure, useful for debugging
50576 # configure, is in config.log if it exists.
50578 debug=false
50579 ac_cs_recheck=false
50580 ac_cs_silent=false
50581 SHELL=\${CONFIG_SHELL-$SHELL}
50582 _ACEOF
50584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50585 ## --------------------- ##
50586 ## M4sh Initialization. ##
50587 ## --------------------- ##
50589 # Be more Bourne compatible
50590 DUALCASE=1; export DUALCASE # for MKS sh
50591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50592 emulate sh
50593 NULLCMD=:
50594 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50595 # is contrary to our usage. Disable this feature.
50596 alias -g '${1+"$@"}'='"$@"'
50597 setopt NO_GLOB_SUBST
50598 else
50599 case `(set -o) 2>/dev/null` in
50600 *posix*) set -o posix ;;
50601 esac
50608 # PATH needs CR
50609 # Avoid depending upon Character Ranges.
50610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50613 as_cr_digits='0123456789'
50614 as_cr_alnum=$as_cr_Letters$as_cr_digits
50616 as_nl='
50618 export as_nl
50619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
50620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50623 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50624 as_echo='printf %s\n'
50625 as_echo_n='printf %s'
50626 else
50627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50629 as_echo_n='/usr/ucb/echo -n'
50630 else
50631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50632 as_echo_n_body='eval
50633 arg=$1;
50634 case $arg in
50635 *"$as_nl"*)
50636 expr "X$arg" : "X\\(.*\\)$as_nl";
50637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50638 esac;
50639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50641 export as_echo_n_body
50642 as_echo_n='sh -c $as_echo_n_body as_echo'
50644 export as_echo_body
50645 as_echo='sh -c $as_echo_body as_echo'
50648 # The user is always right.
50649 if test "${PATH_SEPARATOR+set}" != set; then
50650 PATH_SEPARATOR=:
50651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50653 PATH_SEPARATOR=';'
50657 # Support unset when possible.
50658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50659 as_unset=unset
50660 else
50661 as_unset=false
50665 # IFS
50666 # We need space, tab and new line, in precisely that order. Quoting is
50667 # there to prevent editors from complaining about space-tab.
50668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50669 # splitting by setting IFS to empty value.)
50670 IFS=" "" $as_nl"
50672 # Find who we are. Look in the path if we contain no directory separator.
50673 case $0 in
50674 *[\\/]* ) as_myself=$0 ;;
50675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50676 for as_dir in $PATH
50678 IFS=$as_save_IFS
50679 test -z "$as_dir" && as_dir=.
50680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50681 done
50682 IFS=$as_save_IFS
50685 esac
50686 # We did not find ourselves, most probably we were run as `sh COMMAND'
50687 # in which case we are not to be found in the path.
50688 if test "x$as_myself" = x; then
50689 as_myself=$0
50691 if test ! -f "$as_myself"; then
50692 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50693 { (exit 1); exit 1; }
50696 # Work around bugs in pre-3.0 UWIN ksh.
50697 for as_var in ENV MAIL MAILPATH
50698 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50699 done
50700 PS1='$ '
50701 PS2='> '
50702 PS4='+ '
50704 # NLS nuisances.
50705 LC_ALL=C
50706 export LC_ALL
50707 LANGUAGE=C
50708 export LANGUAGE
50710 # Required to use basename.
50711 if expr a : '\(a\)' >/dev/null 2>&1 &&
50712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50713 as_expr=expr
50714 else
50715 as_expr=false
50718 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50719 as_basename=basename
50720 else
50721 as_basename=false
50725 # Name of the executable.
50726 as_me=`$as_basename -- "$0" ||
50727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50728 X"$0" : 'X\(//\)$' \| \
50729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50730 $as_echo X/"$0" |
50731 sed '/^.*\/\([^/][^/]*\)\/*$/{
50732 s//\1/
50735 /^X\/\(\/\/\)$/{
50736 s//\1/
50739 /^X\/\(\/\).*/{
50740 s//\1/
50743 s/.*/./; q'`
50745 # CDPATH.
50746 $as_unset CDPATH
50750 as_lineno_1=$LINENO
50751 as_lineno_2=$LINENO
50752 test "x$as_lineno_1" != "x$as_lineno_2" &&
50753 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50756 # uniformly replaced by the line number. The first 'sed' inserts a
50757 # line-number line after each line using $LINENO; the second 'sed'
50758 # does the real work. The second script uses 'N' to pair each
50759 # line-number line with the line containing $LINENO, and appends
50760 # trailing '-' during substitution so that $LINENO is not a special
50761 # case at line end.
50762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50763 # scripts with optimization help from Paolo Bonzini. Blame Lee
50764 # E. McMahon (1931-1989) for sed's syntax. :-)
50765 sed -n '
50767 /[$]LINENO/=
50768 ' <$as_myself |
50769 sed '
50770 s/[$]LINENO.*/&-/
50771 t lineno
50773 :lineno
50775 :loop
50776 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50777 t loop
50778 s/-\n.*//
50779 ' >$as_me.lineno &&
50780 chmod +x "$as_me.lineno" ||
50781 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50782 { (exit 1); exit 1; }; }
50784 # Don't try to exec as it changes $[0], causing all sort of problems
50785 # (the dirname of $[0] is not the place where we might find the
50786 # original and so on. Autoconf is especially sensitive to this).
50787 . "./$as_me.lineno"
50788 # Exit status is that of the last command.
50789 exit
50793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50794 as_dirname=dirname
50795 else
50796 as_dirname=false
50799 ECHO_C= ECHO_N= ECHO_T=
50800 case `echo -n x` in
50801 -n*)
50802 case `echo 'x\c'` in
50803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
50804 *) ECHO_C='\c';;
50805 esac;;
50807 ECHO_N='-n';;
50808 esac
50809 if expr a : '\(a\)' >/dev/null 2>&1 &&
50810 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50811 as_expr=expr
50812 else
50813 as_expr=false
50816 rm -f conf$$ conf$$.exe conf$$.file
50817 if test -d conf$$.dir; then
50818 rm -f conf$$.dir/conf$$.file
50819 else
50820 rm -f conf$$.dir
50821 mkdir conf$$.dir 2>/dev/null
50823 if (echo >conf$$.file) 2>/dev/null; then
50824 if ln -s conf$$.file conf$$ 2>/dev/null; then
50825 as_ln_s='ln -s'
50826 # ... but there are two gotchas:
50827 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50828 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50829 # In both cases, we have to default to `cp -p'.
50830 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50831 as_ln_s='cp -p'
50832 elif ln conf$$.file conf$$ 2>/dev/null; then
50833 as_ln_s=ln
50834 else
50835 as_ln_s='cp -p'
50837 else
50838 as_ln_s='cp -p'
50840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50841 rmdir conf$$.dir 2>/dev/null
50843 if mkdir -p . 2>/dev/null; then
50844 as_mkdir_p=:
50845 else
50846 test -d ./-p && rmdir ./-p
50847 as_mkdir_p=false
50850 if test -x / >/dev/null 2>&1; then
50851 as_test_x='test -x'
50852 else
50853 if ls -dL / >/dev/null 2>&1; then
50854 as_ls_L_option=L
50855 else
50856 as_ls_L_option=
50858 as_test_x='
50859 eval sh -c '\''
50860 if test -d "$1"; then
50861 test -d "$1/.";
50862 else
50863 case $1 in
50864 -*)set "./$1";;
50865 esac;
50866 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50867 ???[sx]*):;;*)false;;esac;fi
50868 '\'' sh
50871 as_executable_p=$as_test_x
50873 # Sed expression to map a string onto a valid CPP name.
50874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50876 # Sed expression to map a string onto a valid variable name.
50877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50880 exec 6>&1
50882 # Save the log message, to keep $[0] and so on meaningful, and to
50883 # report actual input values of CONFIG_FILES etc. instead of their
50884 # values after options handling.
50885 ac_log="
50886 This file was extended by MySQL Server $as_me 5.1.73, which was
50887 generated by GNU Autoconf 2.63. Invocation command line was
50889 CONFIG_FILES = $CONFIG_FILES
50890 CONFIG_HEADERS = $CONFIG_HEADERS
50891 CONFIG_LINKS = $CONFIG_LINKS
50892 CONFIG_COMMANDS = $CONFIG_COMMANDS
50893 $ $0 $@
50895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50898 _ACEOF
50900 case $ac_config_files in *"
50901 "*) set x $ac_config_files; shift; ac_config_files=$*;;
50902 esac
50904 case $ac_config_headers in *"
50905 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
50906 esac
50909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50910 # Files that config.status was made for.
50911 config_files="$ac_config_files"
50912 config_headers="$ac_config_headers"
50913 config_commands="$ac_config_commands"
50915 _ACEOF
50917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50918 ac_cs_usage="\
50919 \`$as_me' instantiates files from templates according to the
50920 current configuration.
50922 Usage: $0 [OPTION]... [FILE]...
50924 -h, --help print this help, then exit
50925 -V, --version print version number and configuration settings, then exit
50926 -q, --quiet, --silent
50927 do not print progress messages
50928 -d, --debug don't remove temporary files
50929 --recheck update $as_me by reconfiguring in the same conditions
50930 --file=FILE[:TEMPLATE]
50931 instantiate the configuration file FILE
50932 --header=FILE[:TEMPLATE]
50933 instantiate the configuration header FILE
50935 Configuration files:
50936 $config_files
50938 Configuration headers:
50939 $config_headers
50941 Configuration commands:
50942 $config_commands
50944 Report bugs to <bug-autoconf@gnu.org>."
50946 _ACEOF
50947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50948 ac_cs_version="\\
50949 MySQL Server config.status 5.1.73
50950 configured by $0, generated by GNU Autoconf 2.63,
50951 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50953 Copyright (C) 2008 Free Software Foundation, Inc.
50954 This config.status script is free software; the Free Software Foundation
50955 gives unlimited permission to copy, distribute and modify it."
50957 ac_pwd='$ac_pwd'
50958 srcdir='$srcdir'
50959 INSTALL='$INSTALL'
50960 MKDIR_P='$MKDIR_P'
50961 AWK='$AWK'
50962 test -n "\$AWK" || AWK=awk
50963 _ACEOF
50965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50966 # The default lists apply if the user does not specify any file.
50967 ac_need_defaults=:
50968 while test $# != 0
50970 case $1 in
50971 --*=*)
50972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50974 ac_shift=:
50977 ac_option=$1
50978 ac_optarg=$2
50979 ac_shift=shift
50981 esac
50983 case $ac_option in
50984 # Handling of the options.
50985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50986 ac_cs_recheck=: ;;
50987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50988 $as_echo "$ac_cs_version"; exit ;;
50989 --debug | --debu | --deb | --de | --d | -d )
50990 debug=: ;;
50991 --file | --fil | --fi | --f )
50992 $ac_shift
50993 case $ac_optarg in
50994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50995 esac
50996 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
50997 ac_need_defaults=false;;
50998 --header | --heade | --head | --hea )
50999 $ac_shift
51000 case $ac_optarg in
51001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51002 esac
51003 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
51004 ac_need_defaults=false;;
51005 --he | --h)
51006 # Conflict between --help and --header
51007 { $as_echo "$as_me: error: ambiguous option: $1
51008 Try \`$0 --help' for more information." >&2
51009 { (exit 1); exit 1; }; };;
51010 --help | --hel | -h )
51011 $as_echo "$ac_cs_usage"; exit ;;
51012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51014 ac_cs_silent=: ;;
51016 # This is an error.
51017 -*) { $as_echo "$as_me: error: unrecognized option: $1
51018 Try \`$0 --help' for more information." >&2
51019 { (exit 1); exit 1; }; } ;;
51021 *) ac_config_targets="$ac_config_targets $1"
51022 ac_need_defaults=false ;;
51024 esac
51025 shift
51026 done
51028 ac_configure_extra_args=
51030 if $ac_cs_silent; then
51031 exec 6>/dev/null
51032 ac_configure_extra_args="$ac_configure_extra_args --silent"
51035 _ACEOF
51036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51037 if \$ac_cs_recheck; then
51038 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51039 shift
51040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
51041 CONFIG_SHELL='$SHELL'
51042 export CONFIG_SHELL
51043 exec "\$@"
51046 _ACEOF
51047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51048 exec 5>>config.log
51050 echo
51051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51052 ## Running $as_me. ##
51053 _ASBOX
51054 $as_echo "$ac_log"
51055 } >&5
51057 _ACEOF
51058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51060 # INIT-COMMANDS
51062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51065 # The HP-UX ksh and POSIX shell print the target directory to stdout
51066 # if CDPATH is set.
51067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51069 sed_quote_subst='$sed_quote_subst'
51070 double_quote_subst='$double_quote_subst'
51071 delay_variable_subst='$delay_variable_subst'
51072 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
51073 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
51074 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
51075 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
51076 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
51077 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
51078 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
51079 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
51080 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
51081 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
51082 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
51083 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
51084 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
51085 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
51086 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
51087 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
51088 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
51089 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
51090 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
51091 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
51092 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
51093 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
51094 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
51095 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
51096 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
51097 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
51098 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
51099 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51100 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
51101 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
51102 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
51103 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
51104 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
51105 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
51106 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
51107 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51108 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51109 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51110 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
51111 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
51112 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
51113 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
51114 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
51115 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
51116 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"`'
51117 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"`'
51118 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
51119 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
51120 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
51121 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
51122 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
51123 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
51124 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
51125 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
51126 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
51127 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
51128 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
51129 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
51130 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
51131 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
51132 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
51133 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
51134 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51135 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51136 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
51137 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
51138 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
51139 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
51140 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
51141 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51142 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51143 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51144 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51145 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51146 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51147 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
51148 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
51149 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
51150 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
51151 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
51152 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
51153 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
51154 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
51155 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
51156 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
51157 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
51158 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
51159 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
51160 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
51161 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
51162 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51163 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
51164 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
51165 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51166 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
51167 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
51168 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
51169 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
51170 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
51171 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
51172 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
51173 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
51174 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
51175 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
51176 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
51177 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51178 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51179 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
51180 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
51181 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
51182 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
51183 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
51184 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
51185 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
51186 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
51187 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
51188 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
51189 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
51190 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
51191 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
51192 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
51193 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
51194 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
51195 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
51196 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51197 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51198 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51199 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51200 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51201 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51202 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51203 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51204 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51205 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51206 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51207 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51208 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51209 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51210 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51211 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51212 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51213 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51214 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51215 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51216 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51217 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51218 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51219 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51220 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51221 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51222 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51223 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51224 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51225 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51226 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51227 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51228 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51229 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51230 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51231 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51232 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51233 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51234 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51235 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51236 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51237 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51238 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51239 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51240 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51241 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51242 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
51244 LTCC='$LTCC'
51245 LTCFLAGS='$LTCFLAGS'
51246 compiler='$compiler_DEFAULT'
51248 # Quote evaled strings.
51249 for var in SED \
51250 GREP \
51251 EGREP \
51252 FGREP \
51253 LD \
51254 NM \
51255 LN_S \
51256 lt_SP2NL \
51257 lt_NL2SP \
51258 reload_flag \
51259 OBJDUMP \
51260 deplibs_check_method \
51261 file_magic_cmd \
51262 AR \
51263 AR_FLAGS \
51264 STRIP \
51265 RANLIB \
51266 CC \
51267 CFLAGS \
51268 compiler \
51269 lt_cv_sys_global_symbol_pipe \
51270 lt_cv_sys_global_symbol_to_cdecl \
51271 lt_cv_sys_global_symbol_to_c_name_address \
51272 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
51273 SHELL \
51274 ECHO \
51275 lt_prog_compiler_no_builtin_flag \
51276 lt_prog_compiler_wl \
51277 lt_prog_compiler_pic \
51278 lt_prog_compiler_static \
51279 lt_cv_prog_compiler_c_o \
51280 need_locks \
51281 DSYMUTIL \
51282 NMEDIT \
51283 LIPO \
51284 OTOOL \
51285 OTOOL64 \
51286 shrext_cmds \
51287 export_dynamic_flag_spec \
51288 whole_archive_flag_spec \
51289 compiler_needs_object \
51290 with_gnu_ld \
51291 allow_undefined_flag \
51292 no_undefined_flag \
51293 hardcode_libdir_flag_spec \
51294 hardcode_libdir_flag_spec_ld \
51295 hardcode_libdir_separator \
51296 fix_srcfile_path \
51297 exclude_expsyms \
51298 include_expsyms \
51299 file_list_spec \
51300 variables_saved_for_relink \
51301 libname_spec \
51302 library_names_spec \
51303 soname_spec \
51304 finish_eval \
51305 old_striplib \
51306 striplib \
51307 compiler_lib_search_dirs \
51308 predep_objects \
51309 postdep_objects \
51310 predeps \
51311 postdeps \
51312 compiler_lib_search_path \
51313 LD_CXX \
51314 compiler_CXX \
51315 lt_prog_compiler_no_builtin_flag_CXX \
51316 lt_prog_compiler_wl_CXX \
51317 lt_prog_compiler_pic_CXX \
51318 lt_prog_compiler_static_CXX \
51319 lt_cv_prog_compiler_c_o_CXX \
51320 export_dynamic_flag_spec_CXX \
51321 whole_archive_flag_spec_CXX \
51322 compiler_needs_object_CXX \
51323 with_gnu_ld_CXX \
51324 allow_undefined_flag_CXX \
51325 no_undefined_flag_CXX \
51326 hardcode_libdir_flag_spec_CXX \
51327 hardcode_libdir_flag_spec_ld_CXX \
51328 hardcode_libdir_separator_CXX \
51329 fix_srcfile_path_CXX \
51330 exclude_expsyms_CXX \
51331 include_expsyms_CXX \
51332 file_list_spec_CXX \
51333 compiler_lib_search_dirs_CXX \
51334 predep_objects_CXX \
51335 postdep_objects_CXX \
51336 predeps_CXX \
51337 postdeps_CXX \
51338 compiler_lib_search_path_CXX; do
51339 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
51340 *[\\\\\\\`\\"\\\$]*)
51341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
51344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51346 esac
51347 done
51349 # Double-quote double-evaled strings.
51350 for var in reload_cmds \
51351 old_postinstall_cmds \
51352 old_postuninstall_cmds \
51353 old_archive_cmds \
51354 extract_expsyms_cmds \
51355 old_archive_from_new_cmds \
51356 old_archive_from_expsyms_cmds \
51357 archive_cmds \
51358 archive_expsym_cmds \
51359 module_cmds \
51360 module_expsym_cmds \
51361 export_symbols_cmds \
51362 prelink_cmds \
51363 postinstall_cmds \
51364 postuninstall_cmds \
51365 finish_cmds \
51366 sys_lib_search_path_spec \
51367 sys_lib_dlsearch_path_spec \
51368 old_archive_cmds_CXX \
51369 old_archive_from_new_cmds_CXX \
51370 old_archive_from_expsyms_cmds_CXX \
51371 archive_cmds_CXX \
51372 archive_expsym_cmds_CXX \
51373 module_cmds_CXX \
51374 module_expsym_cmds_CXX \
51375 export_symbols_cmds_CXX \
51376 prelink_cmds_CXX; do
51377 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
51378 *[\\\\\\\`\\"\\\$]*)
51379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
51382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51384 esac
51385 done
51387 # Fix-up fallback echo if it was mangled by the above quoting rules.
51388 case \$lt_ECHO in
51389 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
51391 esac
51393 ac_aux_dir='$ac_aux_dir'
51394 xsi_shell='$xsi_shell'
51395 lt_shell_append='$lt_shell_append'
51397 # See if we are running on zsh, and set the options which allow our
51398 # commands through without removal of \ escapes INIT.
51399 if test -n "\${ZSH_VERSION+set}" ; then
51400 setopt NO_GLOB_SUBST
51404 PACKAGE='$PACKAGE'
51405 VERSION='$VERSION'
51406 TIMESTAMP='$TIMESTAMP'
51407 RM='$RM'
51408 ofile='$ofile'
51414 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
51416 _ACEOF
51418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51420 # Handling of arguments.
51421 for ac_config_target in $ac_config_targets
51423 case $ac_config_target in
51424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51425 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
51426 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
51427 "libmysql/libmysql.ver") CONFIG_FILES="$CONFIG_FILES libmysql/libmysql.ver" ;;
51428 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
51429 "extra/yassl/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/Makefile" ;;
51430 "extra/yassl/taocrypt/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/Makefile" ;;
51431 "extra/yassl/taocrypt/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/benchmark/Makefile" ;;
51432 "extra/yassl/taocrypt/src/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/src/Makefile" ;;
51433 "extra/yassl/taocrypt/test/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/test/Makefile" ;;
51434 "extra/yassl/src/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/src/Makefile" ;;
51435 "extra/yassl/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES extra/yassl/testsuite/Makefile" ;;
51436 "plugin/daemon_example/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/daemon_example/Makefile" ;;
51437 "plugin/fulltext/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/fulltext/Makefile" ;;
51438 "storage/archive/Makefile") CONFIG_FILES="$CONFIG_FILES storage/archive/Makefile" ;;
51439 "storage/blackhole/Makefile") CONFIG_FILES="$CONFIG_FILES storage/blackhole/Makefile" ;;
51440 "storage/csv/Makefile") CONFIG_FILES="$CONFIG_FILES storage/csv/Makefile" ;;
51441 "storage/example/Makefile") CONFIG_FILES="$CONFIG_FILES storage/example/Makefile" ;;
51442 "storage/federated/Makefile") CONFIG_FILES="$CONFIG_FILES storage/federated/Makefile" ;;
51443 "storage/heap/Makefile") CONFIG_FILES="$CONFIG_FILES storage/heap/Makefile" ;;
51444 "storage/innobase/Makefile") CONFIG_FILES="$CONFIG_FILES storage/innobase/Makefile" ;;
51445 "storage/innodb_plugin/Makefile") CONFIG_FILES="$CONFIG_FILES storage/innodb_plugin/Makefile" ;;
51446 "storage/myisam/Makefile") CONFIG_FILES="$CONFIG_FILES storage/myisam/Makefile" ;;
51447 "storage/myisammrg/Makefile") CONFIG_FILES="$CONFIG_FILES storage/myisammrg/Makefile" ;;
51448 "storage/ndb/src/mgmsrv/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/mgmsrv/Makefile" ;;
51449 "storage/ndb/src/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/Makefile" ;;
51450 "storage/ndb/src/ndbapi/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/ndbapi/Makefile" ;;
51451 "storage/ndb/src/mgmclient/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/mgmclient/Makefile" ;;
51452 "storage/ndb/src/mgmapi/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/mgmapi/Makefile" ;;
51453 "storage/ndb/src/common/debugger/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/debugger/Makefile" ;;
51454 "storage/ndb/src/common/debugger/signaldata/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/debugger/signaldata/Makefile" ;;
51455 "storage/ndb/src/common/transporter/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/transporter/Makefile" ;;
51456 "storage/ndb/src/common/util/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/util/Makefile" ;;
51457 "storage/ndb/src/common/portlib/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/portlib/Makefile" ;;
51458 "storage/ndb/src/common/mgmcommon/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/mgmcommon/Makefile" ;;
51459 "storage/ndb/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/Makefile" ;;
51460 "storage/ndb/src/common/logger/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/common/logger/Makefile" ;;
51461 "storage/ndb/src/kernel/blocks/dbdict/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/dbdict/Makefile" ;;
51462 "storage/ndb/src/kernel/blocks/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/Makefile" ;;
51463 "storage/ndb/src/kernel/blocks/dbtup/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/dbtup/Makefile" ;;
51464 "storage/ndb/src/kernel/blocks/backup/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/backup/Makefile" ;;
51465 "storage/ndb/src/kernel/blocks/dbdih/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/dbdih/Makefile" ;;
51466 "storage/ndb/src/kernel/blocks/dblqh/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/blocks/dblqh/Makefile" ;;
51467 "storage/ndb/src/kernel/vm/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/vm/Makefile" ;;
51468 "storage/ndb/src/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/Makefile" ;;
51469 "storage/ndb/src/kernel/error/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/kernel/error/Makefile" ;;
51470 "storage/ndb/src/cw/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/cw/Makefile" ;;
51471 "storage/ndb/src/cw/cpcd/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/cw/cpcd/Makefile" ;;
51472 "storage/ndb/tools/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/tools/Makefile" ;;
51473 "storage/ndb/docs/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/docs/Makefile" ;;
51474 "storage/ndb/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/Makefile" ;;
51475 "storage/ndb/include/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/include/Makefile" ;;
51476 "storage/ndb/test/tools/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/tools/Makefile" ;;
51477 "storage/ndb/test/src/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/src/Makefile" ;;
51478 "storage/ndb/test/ndbapi/bank/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/ndbapi/bank/Makefile" ;;
51479 "storage/ndb/test/ndbapi/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/ndbapi/Makefile" ;;
51480 "storage/ndb/test/run-test/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/run-test/Makefile" ;;
51481 "storage/ndb/test/Makefile") CONFIG_FILES="$CONFIG_FILES storage/ndb/test/Makefile" ;;
51482 "storage/ndb/src/libndb.ver") CONFIG_FILES="$CONFIG_FILES storage/ndb/src/libndb.ver" ;;
51483 "storage/ndb/include/ndb_version.h") CONFIG_FILES="$CONFIG_FILES storage/ndb/include/ndb_version.h" ;;
51484 "storage/ndb/include/ndb_global.h") CONFIG_FILES="$CONFIG_FILES storage/ndb/include/ndb_global.h" ;;
51485 "storage/ndb/include/ndb_types.h") CONFIG_FILES="$CONFIG_FILES storage/ndb/include/ndb_types.h" ;;
51486 "cmd-line-utils/readline/Makefile") CONFIG_FILES="$CONFIG_FILES cmd-line-utils/readline/Makefile" ;;
51487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51488 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
51489 "mysys/Makefile") CONFIG_FILES="$CONFIG_FILES mysys/Makefile" ;;
51490 "unittest/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/Makefile" ;;
51491 "unittest/mytap/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/mytap/Makefile" ;;
51492 "unittest/mytap/t/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/mytap/t/Makefile" ;;
51493 "unittest/mysys/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/mysys/Makefile" ;;
51494 "unittest/strings/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/strings/Makefile" ;;
51495 "unittest/examples/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/examples/Makefile" ;;
51496 "unittest/my_decimal/Makefile") CONFIG_FILES="$CONFIG_FILES unittest/my_decimal/Makefile" ;;
51497 "strings/Makefile") CONFIG_FILES="$CONFIG_FILES strings/Makefile" ;;
51498 "regex/Makefile") CONFIG_FILES="$CONFIG_FILES regex/Makefile" ;;
51499 "storage/Makefile") CONFIG_FILES="$CONFIG_FILES storage/Makefile" ;;
51500 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
51501 "BUILD/Makefile") CONFIG_FILES="$CONFIG_FILES BUILD/Makefile" ;;
51502 "vio/Makefile") CONFIG_FILES="$CONFIG_FILES vio/Makefile" ;;
51503 "libmysql/Makefile") CONFIG_FILES="$CONFIG_FILES libmysql/Makefile" ;;
51504 "libmysql_r/Makefile") CONFIG_FILES="$CONFIG_FILES libmysql_r/Makefile" ;;
51505 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
51506 "sql/Makefile") CONFIG_FILES="$CONFIG_FILES sql/Makefile" ;;
51507 "sql/share/Makefile") CONFIG_FILES="$CONFIG_FILES sql/share/Makefile" ;;
51508 "sql/sql_builtin.cc") CONFIG_FILES="$CONFIG_FILES sql/sql_builtin.cc" ;;
51509 "sql-common/Makefile") CONFIG_FILES="$CONFIG_FILES sql-common/Makefile" ;;
51510 "dbug/Makefile") CONFIG_FILES="$CONFIG_FILES dbug/Makefile" ;;
51511 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
51512 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
51513 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51514 "Docs/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/Makefile" ;;
51515 "support-files/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Makefile" ;;
51516 "support-files/MacOSX/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/MacOSX/Makefile" ;;
51517 "support-files/RHEL4-SElinux/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/RHEL4-SElinux/Makefile" ;;
51518 "server-tools/Makefile") CONFIG_FILES="$CONFIG_FILES server-tools/Makefile" ;;
51519 "server-tools/instance-manager/Makefile") CONFIG_FILES="$CONFIG_FILES server-tools/instance-manager/Makefile" ;;
51520 "cmd-line-utils/Makefile") CONFIG_FILES="$CONFIG_FILES cmd-line-utils/Makefile" ;;
51521 "cmd-line-utils/libedit/Makefile") CONFIG_FILES="$CONFIG_FILES cmd-line-utils/libedit/Makefile" ;;
51522 "libmysqld/Makefile") CONFIG_FILES="$CONFIG_FILES libmysqld/Makefile" ;;
51523 "libmysqld/examples/Makefile") CONFIG_FILES="$CONFIG_FILES libmysqld/examples/Makefile" ;;
51524 "mysql-test/Makefile") CONFIG_FILES="$CONFIG_FILES mysql-test/Makefile" ;;
51525 "mysql-test/lib/My/SafeProcess/Makefile") CONFIG_FILES="$CONFIG_FILES mysql-test/lib/My/SafeProcess/Makefile" ;;
51526 "netware/Makefile") CONFIG_FILES="$CONFIG_FILES netware/Makefile" ;;
51527 "sql-bench/Makefile") CONFIG_FILES="$CONFIG_FILES sql-bench/Makefile" ;;
51528 "include/mysql_version.h") CONFIG_FILES="$CONFIG_FILES include/mysql_version.h" ;;
51529 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
51530 "win/Makefile") CONFIG_FILES="$CONFIG_FILES win/Makefile" ;;
51531 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51533 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51534 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51535 { (exit 1); exit 1; }; };;
51536 esac
51537 done
51540 # If the user did not use the arguments to specify the items to instantiate,
51541 # then the envvar interface is used. Set only those that are not.
51542 # We use the long form for the default assignment because of an extremely
51543 # bizarre bug on SunOS 4.1.3.
51544 if $ac_need_defaults; then
51545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51550 # Have a temporary directory for convenience. Make it in the build tree
51551 # simply because there is no reason against having it here, and in addition,
51552 # creating and moving files from /tmp can sometimes cause problems.
51553 # Hook for its removal unless debugging.
51554 # Note that there is a small window in which the directory will not be cleaned:
51555 # after its creation but before its name has been assigned to `$tmp'.
51556 $debug ||
51558 tmp=
51559 trap 'exit_status=$?
51560 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51562 trap '{ (exit 1); exit 1; }' 1 2 13 15
51564 # Create a (secure) tmp directory for tmp files.
51567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51568 test -n "$tmp" && test -d "$tmp"
51569 } ||
51571 tmp=./conf$$-$RANDOM
51572 (umask 077 && mkdir "$tmp")
51573 } ||
51575 $as_echo "$as_me: cannot create a temporary directory in ." >&2
51576 { (exit 1); exit 1; }
51579 # Set up the scripts for CONFIG_FILES section.
51580 # No need to generate them if there are no CONFIG_FILES.
51581 # This happens for instance with `./config.status config.h'.
51582 if test -n "$CONFIG_FILES"; then
51585 ac_cr=' '
51586 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
51587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
51588 ac_cs_awk_cr='\\r'
51589 else
51590 ac_cs_awk_cr=$ac_cr
51593 echo 'BEGIN {' >"$tmp/subs1.awk" &&
51594 _ACEOF
51598 echo "cat >conf$$subs.awk <<_ACEOF" &&
51599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
51600 echo "_ACEOF"
51601 } >conf$$subs.sh ||
51602 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51603 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51604 { (exit 1); exit 1; }; }
51605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
51606 ac_delim='%!_!# '
51607 for ac_last_try in false false false false false :; do
51608 . ./conf$$subs.sh ||
51609 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51610 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51611 { (exit 1); exit 1; }; }
51613 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
51614 if test $ac_delim_n = $ac_delim_num; then
51615 break
51616 elif $ac_last_try; then
51617 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51618 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51619 { (exit 1); exit 1; }; }
51620 else
51621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51623 done
51624 rm -f conf$$subs.sh
51626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51627 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
51628 _ACEOF
51629 sed -n '
51631 s/^/S["/; s/!.*/"]=/
51634 s/^[^!]*!//
51635 :repl
51636 t repl
51637 s/'"$ac_delim"'$//
51638 t delim
51641 s/\(.\{148\}\).*/\1/
51642 t more1
51643 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
51646 b repl
51647 :more1
51648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51651 s/.\{148\}//
51652 t nl
51653 :delim
51655 s/\(.\{148\}\).*/\1/
51656 t more2
51657 s/["\\]/\\&/g; s/^/"/; s/$/"/
51660 :more2
51661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51664 s/.\{148\}//
51665 t delim
51666 ' <conf$$subs.awk | sed '
51667 /^[^""]/{
51669 s/\n//
51671 ' >>$CONFIG_STATUS || ac_write_fail=1
51672 rm -f conf$$subs.awk
51673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51674 _ACAWK
51675 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
51676 for (key in S) S_is_set[key] = 1
51677 FS = "\a"
51681 line = $ 0
51682 nfields = split(line, field, "@")
51683 substed = 0
51684 len = length(field[1])
51685 for (i = 2; i < nfields; i++) {
51686 key = field[i]
51687 keylen = length(key)
51688 if (S_is_set[key]) {
51689 value = S[key]
51690 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
51691 len += length(value) + length(field[++i])
51692 substed = 1
51693 } else
51694 len += 1 + keylen
51697 print line
51700 _ACAWK
51701 _ACEOF
51702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51703 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
51704 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
51705 else
51707 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
51708 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
51709 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
51710 { (exit 1); exit 1; }; }
51711 _ACEOF
51713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51715 # trailing colons and then remove the whole line if VPATH becomes empty
51716 # (actually we leave an empty line to preserve line numbers).
51717 if test "x$srcdir" = x.; then
51718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51719 s/:*\$(srcdir):*/:/
51720 s/:*\${srcdir}:*/:/
51721 s/:*@srcdir@:*/:/
51722 s/^\([^=]*=[ ]*\):*/\1/
51723 s/:*$//
51724 s/^[^=]*=[ ]*$//
51728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51729 fi # test -n "$CONFIG_FILES"
51731 # Set up the scripts for CONFIG_HEADERS section.
51732 # No need to generate them if there are no CONFIG_HEADERS.
51733 # This happens for instance with `./config.status Makefile'.
51734 if test -n "$CONFIG_HEADERS"; then
51735 cat >"$tmp/defines.awk" <<\_ACAWK ||
51736 BEGIN {
51737 _ACEOF
51739 # Transform confdefs.h into an awk script `defines.awk', embedded as
51740 # here-document in config.status, that substitutes the proper values into
51741 # config.h.in to produce config.h.
51743 # Create a delimiter string that does not exist in confdefs.h, to ease
51744 # handling of long lines.
51745 ac_delim='%!_!# '
51746 for ac_last_try in false false :; do
51747 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
51748 if test -z "$ac_t"; then
51749 break
51750 elif $ac_last_try; then
51751 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
51752 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
51753 { (exit 1); exit 1; }; }
51754 else
51755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51757 done
51759 # For the awk script, D is an array of macro values keyed by name,
51760 # likewise P contains macro parameters if any. Preserve backslash
51761 # newline sequences.
51763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51764 sed -n '
51765 s/.\{148\}/&'"$ac_delim"'/g
51766 t rset
51767 :rset
51768 s/^[ ]*#[ ]*define[ ][ ]*/ /
51769 t def
51771 :def
51772 s/\\$//
51773 t bsnl
51774 s/["\\]/\\&/g
51775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
51776 D["\1"]=" \3"/p
51777 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
51779 :bsnl
51780 s/["\\]/\\&/g
51781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
51782 D["\1"]=" \3\\\\\\n"\\/p
51783 t cont
51784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
51785 t cont
51787 :cont
51789 s/.\{148\}/&'"$ac_delim"'/g
51790 t clear
51791 :clear
51792 s/\\$//
51793 t bsnlc
51794 s/["\\]/\\&/g; s/^/"/; s/$/"/p
51796 :bsnlc
51797 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
51798 b cont
51799 ' <confdefs.h | sed '
51800 s/'"$ac_delim"'/"\\\
51801 "/g' >>$CONFIG_STATUS || ac_write_fail=1
51803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51804 for (key in D) D_is_set[key] = 1
51805 FS = "\a"
51807 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
51808 line = \$ 0
51809 split(line, arg, " ")
51810 if (arg[1] == "#") {
51811 defundef = arg[2]
51812 mac1 = arg[3]
51813 } else {
51814 defundef = substr(arg[1], 2)
51815 mac1 = arg[2]
51817 split(mac1, mac2, "(") #)
51818 macro = mac2[1]
51819 prefix = substr(line, 1, index(line, defundef) - 1)
51820 if (D_is_set[macro]) {
51821 # Preserve the white space surrounding the "#".
51822 print prefix "define", macro P[macro] D[macro]
51823 next
51824 } else {
51825 # Replace #undef with comments. This is necessary, for example,
51826 # in the case of _POSIX_SOURCE, which is predefined and required
51827 # on some systems where configure will not decide to define it.
51828 if (defundef == "undef") {
51829 print "/*", prefix defundef, macro, "*/"
51830 next
51834 { print }
51835 _ACAWK
51836 _ACEOF
51837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51838 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
51839 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
51840 { (exit 1); exit 1; }; }
51841 fi # test -n "$CONFIG_HEADERS"
51844 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
51845 shift
51846 for ac_tag
51848 case $ac_tag in
51849 :[FHLC]) ac_mode=$ac_tag; continue;;
51850 esac
51851 case $ac_mode$ac_tag in
51852 :[FHL]*:*);;
51853 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
51854 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
51855 { (exit 1); exit 1; }; };;
51856 :[FH]-) ac_tag=-:-;;
51857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51858 esac
51859 ac_save_IFS=$IFS
51860 IFS=:
51861 set x $ac_tag
51862 IFS=$ac_save_IFS
51863 shift
51864 ac_file=$1
51865 shift
51867 case $ac_mode in
51868 :L) ac_source=$1;;
51869 :[FH])
51870 ac_file_inputs=
51871 for ac_f
51873 case $ac_f in
51874 -) ac_f="$tmp/stdin";;
51875 *) # Look for the file first in the build tree, then in the source tree
51876 # (if the path is not absolute). The absolute path cannot be DOS-style,
51877 # because $ac_f cannot contain `:'.
51878 test -f "$ac_f" ||
51879 case $ac_f in
51880 [\\/$]*) false;;
51881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51882 esac ||
51883 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51884 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51885 { (exit 1); exit 1; }; };;
51886 esac
51887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
51888 ac_file_inputs="$ac_file_inputs '$ac_f'"
51889 done
51891 # Let's still pretend it is `configure' which instantiates (i.e., don't
51892 # use $as_me), people would be surprised to read:
51893 # /* config.h. Generated by config.status. */
51894 configure_input='Generated from '`
51895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
51896 `' by configure.'
51897 if test x"$ac_file" != x-; then
51898 configure_input="$ac_file. $configure_input"
51899 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
51900 $as_echo "$as_me: creating $ac_file" >&6;}
51902 # Neutralize special characters interpreted by sed in replacement strings.
51903 case $configure_input in #(
51904 *\&* | *\|* | *\\* )
51905 ac_sed_conf_input=`$as_echo "$configure_input" |
51906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
51907 *) ac_sed_conf_input=$configure_input;;
51908 esac
51910 case $ac_tag in
51911 *:-:* | *:-) cat >"$tmp/stdin" \
51912 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
51913 $as_echo "$as_me: error: could not create $ac_file" >&2;}
51914 { (exit 1); exit 1; }; } ;;
51915 esac
51917 esac
51919 ac_dir=`$as_dirname -- "$ac_file" ||
51920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51921 X"$ac_file" : 'X\(//\)[^/]' \| \
51922 X"$ac_file" : 'X\(//\)$' \| \
51923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51924 $as_echo X"$ac_file" |
51925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51926 s//\1/
51929 /^X\(\/\/\)[^/].*/{
51930 s//\1/
51933 /^X\(\/\/\)$/{
51934 s//\1/
51937 /^X\(\/\).*/{
51938 s//\1/
51941 s/.*/./; q'`
51942 { as_dir="$ac_dir"
51943 case $as_dir in #(
51944 -*) as_dir=./$as_dir;;
51945 esac
51946 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51947 as_dirs=
51948 while :; do
51949 case $as_dir in #(
51950 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
51951 *) as_qdir=$as_dir;;
51952 esac
51953 as_dirs="'$as_qdir' $as_dirs"
51954 as_dir=`$as_dirname -- "$as_dir" ||
51955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51956 X"$as_dir" : 'X\(//\)[^/]' \| \
51957 X"$as_dir" : 'X\(//\)$' \| \
51958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51959 $as_echo X"$as_dir" |
51960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51961 s//\1/
51964 /^X\(\/\/\)[^/].*/{
51965 s//\1/
51968 /^X\(\/\/\)$/{
51969 s//\1/
51972 /^X\(\/\).*/{
51973 s//\1/
51976 s/.*/./; q'`
51977 test -d "$as_dir" && break
51978 done
51979 test -z "$as_dirs" || eval "mkdir $as_dirs"
51980 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51981 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
51982 { (exit 1); exit 1; }; }; }
51983 ac_builddir=.
51985 case "$ac_dir" in
51986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
51989 # A ".." for each directory in $ac_dir_suffix.
51990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
51991 case $ac_top_builddir_sub in
51992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51994 esac ;;
51995 esac
51996 ac_abs_top_builddir=$ac_pwd
51997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51998 # for backward compatibility:
51999 ac_top_builddir=$ac_top_build_prefix
52001 case $srcdir in
52002 .) # We are building in place.
52003 ac_srcdir=.
52004 ac_top_srcdir=$ac_top_builddir_sub
52005 ac_abs_top_srcdir=$ac_pwd ;;
52006 [\\/]* | ?:[\\/]* ) # Absolute name.
52007 ac_srcdir=$srcdir$ac_dir_suffix;
52008 ac_top_srcdir=$srcdir
52009 ac_abs_top_srcdir=$srcdir ;;
52010 *) # Relative name.
52011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52012 ac_top_srcdir=$ac_top_build_prefix$srcdir
52013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52014 esac
52015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52018 case $ac_mode in
52021 # CONFIG_FILE
52024 case $INSTALL in
52025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52027 esac
52028 ac_MKDIR_P=$MKDIR_P
52029 case $MKDIR_P in
52030 [\\/$]* | ?:[\\/]* ) ;;
52031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
52032 esac
52033 _ACEOF
52035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52036 # If the template does not know about datarootdir, expand it.
52037 # FIXME: This hack should be removed a few years after 2.60.
52038 ac_datarootdir_hack=; ac_datarootdir_seen=
52040 ac_sed_dataroot='
52041 /datarootdir/ {
52045 /@datadir@/p
52046 /@docdir@/p
52047 /@infodir@/p
52048 /@localedir@/p
52049 /@mandir@/p
52051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
52052 *datarootdir*) ac_datarootdir_seen=yes;;
52053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52054 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52056 _ACEOF
52057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52058 ac_datarootdir_hack='
52059 s&@datadir@&$datadir&g
52060 s&@docdir@&$docdir&g
52061 s&@infodir@&$infodir&g
52062 s&@localedir@&$localedir&g
52063 s&@mandir@&$mandir&g
52064 s&\\\${datarootdir}&$datarootdir&g' ;;
52065 esac
52066 _ACEOF
52068 # Neutralize VPATH when `$srcdir' = `.'.
52069 # Shell code in configure.ac might set extrasub.
52070 # FIXME: do we really want to maintain this feature?
52071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52072 ac_sed_extra="$ac_vpsub
52073 $extrasub
52074 _ACEOF
52075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52078 s|@configure_input@|$ac_sed_conf_input|;t t
52079 s&@top_builddir@&$ac_top_builddir_sub&;t t
52080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
52081 s&@srcdir@&$ac_srcdir&;t t
52082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52083 s&@top_srcdir@&$ac_top_srcdir&;t t
52084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52085 s&@builddir@&$ac_builddir&;t t
52086 s&@abs_builddir@&$ac_abs_builddir&;t t
52087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52088 s&@INSTALL@&$ac_INSTALL&;t t
52089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
52090 $ac_datarootdir_hack
52092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
52093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52095 { (exit 1); exit 1; }; }
52097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52100 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52101 which seems to be undefined. Please make sure it is defined." >&5
52102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52103 which seems to be undefined. Please make sure it is defined." >&2;}
52105 rm -f "$tmp/stdin"
52106 case $ac_file in
52107 -) cat "$tmp/out" && rm -f "$tmp/out";;
52108 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
52109 esac \
52110 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52111 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52112 { (exit 1); exit 1; }; }
52116 # CONFIG_HEADER
52118 if test x"$ac_file" != x-; then
52120 $as_echo "/* $configure_input */" \
52121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
52122 } >"$tmp/config.h" \
52123 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52124 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52125 { (exit 1); exit 1; }; }
52126 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
52127 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52128 $as_echo "$as_me: $ac_file is unchanged" >&6;}
52129 else
52130 rm -f "$ac_file"
52131 mv "$tmp/config.h" "$ac_file" \
52132 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52133 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52134 { (exit 1); exit 1; }; }
52136 else
52137 $as_echo "/* $configure_input */" \
52138 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
52139 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
52140 $as_echo "$as_me: error: could not create -" >&2;}
52141 { (exit 1); exit 1; }; }
52143 # Compute "$ac_file"'s index in $config_headers.
52144 _am_arg="$ac_file"
52145 _am_stamp_count=1
52146 for _am_header in $config_headers :; do
52147 case $_am_header in
52148 $_am_arg | $_am_arg:* )
52149 break ;;
52151 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52152 esac
52153 done
52154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
52155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52156 X"$_am_arg" : 'X\(//\)[^/]' \| \
52157 X"$_am_arg" : 'X\(//\)$' \| \
52158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
52159 $as_echo X"$_am_arg" |
52160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52161 s//\1/
52164 /^X\(\/\/\)[^/].*/{
52165 s//\1/
52168 /^X\(\/\/\)$/{
52169 s//\1/
52172 /^X\(\/\).*/{
52173 s//\1/
52176 s/.*/./; q'`/stamp-h$_am_stamp_count
52179 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
52180 $as_echo "$as_me: executing $ac_file commands" >&6;}
52182 esac
52185 case $ac_file$ac_mode in
52186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
52187 # are listed without --file. Let's play safe and only enable the eval
52188 # if we detect the quoting.
52189 case $CONFIG_FILES in
52190 *\'*) eval set x "$CONFIG_FILES" ;;
52191 *) set x $CONFIG_FILES ;;
52192 esac
52193 shift
52194 for mf
52196 # Strip MF so we end up with the name of the file.
52197 mf=`echo "$mf" | sed -e 's/:.*$//'`
52198 # Check whether this is an Automake generated Makefile or not.
52199 # We used to match only the files named `Makefile.in', but
52200 # some people rename them; so instead we look at the file content.
52201 # Grep'ing the first line is not enough: some people post-process
52202 # each Makefile.in and add a new line on top of each file to say so.
52203 # Grep'ing the whole file is not good either: AIX grep has a line
52204 # limit of 2048, but all sed's we know have understand at least 4000.
52205 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
52206 dirpart=`$as_dirname -- "$mf" ||
52207 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52208 X"$mf" : 'X\(//\)[^/]' \| \
52209 X"$mf" : 'X\(//\)$' \| \
52210 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
52211 $as_echo X"$mf" |
52212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52213 s//\1/
52216 /^X\(\/\/\)[^/].*/{
52217 s//\1/
52220 /^X\(\/\/\)$/{
52221 s//\1/
52224 /^X\(\/\).*/{
52225 s//\1/
52228 s/.*/./; q'`
52229 else
52230 continue
52232 # Extract the definition of DEPDIR, am__include, and am__quote
52233 # from the Makefile without running `make'.
52234 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52235 test -z "$DEPDIR" && continue
52236 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52237 test -z "am__include" && continue
52238 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52239 # When using ansi2knr, U may be empty or an underscore; expand it
52240 U=`sed -n 's/^U = //p' < "$mf"`
52241 # Find all dependency output files, they are included files with
52242 # $(DEPDIR) in their names. We invoke sed twice because it is the
52243 # simplest approach to changing $(DEPDIR) to its actual value in the
52244 # expansion.
52245 for file in `sed -n "
52246 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52247 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52248 # Make sure the directory exists.
52249 test -f "$dirpart/$file" && continue
52250 fdir=`$as_dirname -- "$file" ||
52251 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52252 X"$file" : 'X\(//\)[^/]' \| \
52253 X"$file" : 'X\(//\)$' \| \
52254 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
52255 $as_echo X"$file" |
52256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52257 s//\1/
52260 /^X\(\/\/\)[^/].*/{
52261 s//\1/
52264 /^X\(\/\/\)$/{
52265 s//\1/
52268 /^X\(\/\).*/{
52269 s//\1/
52272 s/.*/./; q'`
52273 { as_dir=$dirpart/$fdir
52274 case $as_dir in #(
52275 -*) as_dir=./$as_dir;;
52276 esac
52277 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52278 as_dirs=
52279 while :; do
52280 case $as_dir in #(
52281 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52282 *) as_qdir=$as_dir;;
52283 esac
52284 as_dirs="'$as_qdir' $as_dirs"
52285 as_dir=`$as_dirname -- "$as_dir" ||
52286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52287 X"$as_dir" : 'X\(//\)[^/]' \| \
52288 X"$as_dir" : 'X\(//\)$' \| \
52289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52290 $as_echo X"$as_dir" |
52291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52292 s//\1/
52295 /^X\(\/\/\)[^/].*/{
52296 s//\1/
52299 /^X\(\/\/\)$/{
52300 s//\1/
52303 /^X\(\/\).*/{
52304 s//\1/
52307 s/.*/./; q'`
52308 test -d "$as_dir" && break
52309 done
52310 test -z "$as_dirs" || eval "mkdir $as_dirs"
52311 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52312 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
52313 { (exit 1); exit 1; }; }; }
52314 # echo "creating $dirpart/$file"
52315 echo '# dummy' > "$dirpart/$file"
52316 done
52317 done
52319 "libtool":C)
52321 # See if we are running on zsh, and set the options which allow our
52322 # commands through without removal of \ escapes.
52323 if test -n "${ZSH_VERSION+set}" ; then
52324 setopt NO_GLOB_SUBST
52327 cfgfile="${ofile}T"
52328 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
52329 $RM "$cfgfile"
52331 cat <<_LT_EOF >> "$cfgfile"
52332 #! $SHELL
52334 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
52335 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
52336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
52337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
52339 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52340 # 2006, 2007, 2008 Free Software Foundation, Inc.
52341 # Written by Gordon Matzigkeit, 1996
52343 # This file is part of GNU Libtool.
52345 # GNU Libtool is free software; you can redistribute it and/or
52346 # modify it under the terms of the GNU General Public License as
52347 # published by the Free Software Foundation; either version 2 of
52348 # the License, or (at your option) any later version.
52350 # As a special exception to the GNU General Public License,
52351 # if you distribute this file as part of a program or library that
52352 # is built using GNU Libtool, you may include this file under the
52353 # same distribution terms that you use for the rest of that program.
52355 # GNU Libtool is distributed in the hope that it will be useful,
52356 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52357 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52358 # GNU General Public License for more details.
52360 # You should have received a copy of the GNU General Public License
52361 # along with GNU Libtool; see the file COPYING. If not, a copy
52362 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
52363 # obtained by writing to the Free Software Foundation, Inc.,
52364 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52367 # The names of the tagged configurations supported by this script.
52368 available_tags="CXX "
52370 # ### BEGIN LIBTOOL CONFIG
52372 # Which release of libtool.m4 was used?
52373 macro_version=$macro_version
52374 macro_revision=$macro_revision
52376 # Whether or not to build shared libraries.
52377 build_libtool_libs=$enable_shared
52379 # Whether or not to build static libraries.
52380 build_old_libs=$enable_static
52382 # What type of objects to build.
52383 pic_mode=$pic_mode
52385 # Whether or not to optimize for fast installation.
52386 fast_install=$enable_fast_install
52388 # The host system.
52389 host_alias=$host_alias
52390 host=$host
52391 host_os=$host_os
52393 # The build system.
52394 build_alias=$build_alias
52395 build=$build
52396 build_os=$build_os
52398 # A sed program that does not truncate output.
52399 SED=$lt_SED
52401 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
52402 Xsed="\$SED -e 1s/^X//"
52404 # A grep program that handles long lines.
52405 GREP=$lt_GREP
52407 # An ERE matcher.
52408 EGREP=$lt_EGREP
52410 # A literal string matcher.
52411 FGREP=$lt_FGREP
52413 # A BSD- or MS-compatible name lister.
52414 NM=$lt_NM
52416 # Whether we need soft or hard links.
52417 LN_S=$lt_LN_S
52419 # What is the maximum length of a command?
52420 max_cmd_len=$max_cmd_len
52422 # Object file suffix (normally "o").
52423 objext=$ac_objext
52425 # Executable file suffix (normally "").
52426 exeext=$exeext
52428 # whether the shell understands "unset".
52429 lt_unset=$lt_unset
52431 # turn spaces into newlines.
52432 SP2NL=$lt_lt_SP2NL
52434 # turn newlines into spaces.
52435 NL2SP=$lt_lt_NL2SP
52437 # How to create reloadable object files.
52438 reload_flag=$lt_reload_flag
52439 reload_cmds=$lt_reload_cmds
52441 # An object symbol dumper.
52442 OBJDUMP=$lt_OBJDUMP
52444 # Method to check whether dependent libraries are shared objects.
52445 deplibs_check_method=$lt_deplibs_check_method
52447 # Command to use when deplibs_check_method == "file_magic".
52448 file_magic_cmd=$lt_file_magic_cmd
52450 # The archiver.
52451 AR=$lt_AR
52452 AR_FLAGS=$lt_AR_FLAGS
52454 # A symbol stripping program.
52455 STRIP=$lt_STRIP
52457 # Commands used to install an old-style archive.
52458 RANLIB=$lt_RANLIB
52459 old_postinstall_cmds=$lt_old_postinstall_cmds
52460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
52462 # A C compiler.
52463 LTCC=$lt_CC
52465 # LTCC compiler flags.
52466 LTCFLAGS=$lt_CFLAGS
52468 # Take the output of nm and produce a listing of raw symbols and C names.
52469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
52471 # Transform the output of nm in a proper C declaration.
52472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
52474 # Transform the output of nm in a C name address pair.
52475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
52477 # Transform the output of nm in a C name address pair when lib prefix is needed.
52478 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
52480 # The name of the directory that contains temporary libtool files.
52481 objdir=$objdir
52483 # Shell to use when invoking shell scripts.
52484 SHELL=$lt_SHELL
52486 # An echo program that does not interpret backslashes.
52487 ECHO=$lt_ECHO
52489 # Used to examine libraries when file_magic_cmd begins with "file".
52490 MAGIC_CMD=$MAGIC_CMD
52492 # Must we lock files when doing compilation?
52493 need_locks=$lt_need_locks
52495 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
52496 DSYMUTIL=$lt_DSYMUTIL
52498 # Tool to change global to local symbols on Mac OS X.
52499 NMEDIT=$lt_NMEDIT
52501 # Tool to manipulate fat objects and archives on Mac OS X.
52502 LIPO=$lt_LIPO
52504 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
52505 OTOOL=$lt_OTOOL
52507 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
52508 OTOOL64=$lt_OTOOL64
52510 # Old archive suffix (normally "a").
52511 libext=$libext
52513 # Shared library suffix (normally ".so").
52514 shrext_cmds=$lt_shrext_cmds
52516 # The commands to extract the exported symbol list from a shared archive.
52517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
52519 # Variables whose values should be saved in libtool wrapper scripts and
52520 # restored at link time.
52521 variables_saved_for_relink=$lt_variables_saved_for_relink
52523 # Do we need the "lib" prefix for modules?
52524 need_lib_prefix=$need_lib_prefix
52526 # Do we need a version for libraries?
52527 need_version=$need_version
52529 # Library versioning type.
52530 version_type=$version_type
52532 # Shared library runtime path variable.
52533 runpath_var=$runpath_var
52535 # Shared library path variable.
52536 shlibpath_var=$shlibpath_var
52538 # Is shlibpath searched before the hard-coded library search path?
52539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
52541 # Format of library name prefix.
52542 libname_spec=$lt_libname_spec
52544 # List of archive names. First name is the real one, the rest are links.
52545 # The last name is the one that the linker finds with -lNAME
52546 library_names_spec=$lt_library_names_spec
52548 # The coded name of the library, if different from the real name.
52549 soname_spec=$lt_soname_spec
52551 # Command to use after installation of a shared archive.
52552 postinstall_cmds=$lt_postinstall_cmds
52554 # Command to use after uninstallation of a shared archive.
52555 postuninstall_cmds=$lt_postuninstall_cmds
52557 # Commands used to finish a libtool library installation in a directory.
52558 finish_cmds=$lt_finish_cmds
52560 # As "finish_cmds", except a single script fragment to be evaled but
52561 # not shown.
52562 finish_eval=$lt_finish_eval
52564 # Whether we should hardcode library paths into libraries.
52565 hardcode_into_libs=$hardcode_into_libs
52567 # Compile-time system search path for libraries.
52568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
52570 # Run-time system search path for libraries.
52571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
52573 # Whether dlopen is supported.
52574 dlopen_support=$enable_dlopen
52576 # Whether dlopen of programs is supported.
52577 dlopen_self=$enable_dlopen_self
52579 # Whether dlopen of statically linked programs is supported.
52580 dlopen_self_static=$enable_dlopen_self_static
52582 # Commands to strip libraries.
52583 old_striplib=$lt_old_striplib
52584 striplib=$lt_striplib
52587 # The linker used to build libraries.
52588 LD=$lt_LD
52590 # Commands used to build an old-style archive.
52591 old_archive_cmds=$lt_old_archive_cmds
52593 # A language specific compiler.
52594 CC=$lt_compiler
52596 # Is the compiler the GNU compiler?
52597 with_gcc=$GCC
52599 # Compiler flag to turn off builtin functions.
52600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
52602 # How to pass a linker flag through the compiler.
52603 wl=$lt_lt_prog_compiler_wl
52605 # Additional compiler flags for building library objects.
52606 pic_flag=$lt_lt_prog_compiler_pic
52608 # Compiler flag to prevent dynamic linking.
52609 link_static_flag=$lt_lt_prog_compiler_static
52611 # Does compiler simultaneously support -c and -o options?
52612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
52614 # Whether or not to add -lc for building shared libraries.
52615 build_libtool_need_lc=$archive_cmds_need_lc
52617 # Whether or not to disallow shared libs when runtime libs are static.
52618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
52620 # Compiler flag to allow reflexive dlopens.
52621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
52623 # Compiler flag to generate shared objects directly from archives.
52624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
52626 # Whether the compiler copes with passing no objects directly.
52627 compiler_needs_object=$lt_compiler_needs_object
52629 # Create an old-style archive from a shared archive.
52630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
52632 # Create a temporary old-style archive to link instead of a shared archive.
52633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
52635 # Commands used to build a shared archive.
52636 archive_cmds=$lt_archive_cmds
52637 archive_expsym_cmds=$lt_archive_expsym_cmds
52639 # Commands used to build a loadable module if different from building
52640 # a shared archive.
52641 module_cmds=$lt_module_cmds
52642 module_expsym_cmds=$lt_module_expsym_cmds
52644 # Whether we are building with GNU ld or not.
52645 with_gnu_ld=$lt_with_gnu_ld
52647 # Flag that allows shared libraries with undefined symbols to be built.
52648 allow_undefined_flag=$lt_allow_undefined_flag
52650 # Flag that enforces no undefined symbols.
52651 no_undefined_flag=$lt_no_undefined_flag
52653 # Flag to hardcode \$libdir into a binary during linking.
52654 # This must work even if \$libdir does not exist
52655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
52657 # If ld is used when linking, flag to hardcode \$libdir into a binary
52658 # during linking. This must work even if \$libdir does not exist.
52659 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
52661 # Whether we need a single "-rpath" flag with a separated argument.
52662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
52664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52665 # DIR into the resulting binary.
52666 hardcode_direct=$hardcode_direct
52668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52669 # DIR into the resulting binary and the resulting library dependency is
52670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
52671 # library is relocated.
52672 hardcode_direct_absolute=$hardcode_direct_absolute
52674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
52675 # into the resulting binary.
52676 hardcode_minus_L=$hardcode_minus_L
52678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
52679 # into the resulting binary.
52680 hardcode_shlibpath_var=$hardcode_shlibpath_var
52682 # Set to "yes" if building a shared library automatically hardcodes DIR
52683 # into the library and all subsequent libraries and executables linked
52684 # against it.
52685 hardcode_automatic=$hardcode_automatic
52687 # Set to yes if linker adds runtime paths of dependent libraries
52688 # to runtime path list.
52689 inherit_rpath=$inherit_rpath
52691 # Whether libtool must link a program against all its dependency libraries.
52692 link_all_deplibs=$link_all_deplibs
52694 # Fix the shell variable \$srcfile for the compiler.
52695 fix_srcfile_path=$lt_fix_srcfile_path
52697 # Set to "yes" if exported symbols are required.
52698 always_export_symbols=$always_export_symbols
52700 # The commands to list exported symbols.
52701 export_symbols_cmds=$lt_export_symbols_cmds
52703 # Symbols that should not be listed in the preloaded symbols.
52704 exclude_expsyms=$lt_exclude_expsyms
52706 # Symbols that must always be exported.
52707 include_expsyms=$lt_include_expsyms
52709 # Commands necessary for linking programs (against libraries) with templates.
52710 prelink_cmds=$lt_prelink_cmds
52712 # Specify filename containing input files.
52713 file_list_spec=$lt_file_list_spec
52715 # How to hardcode a shared library path into an executable.
52716 hardcode_action=$hardcode_action
52718 # The directories searched by this compiler when creating a shared library.
52719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
52721 # Dependencies to place before and after the objects being linked to
52722 # create a shared library.
52723 predep_objects=$lt_predep_objects
52724 postdep_objects=$lt_postdep_objects
52725 predeps=$lt_predeps
52726 postdeps=$lt_postdeps
52728 # The library search path used internally by the compiler when linking
52729 # a shared library.
52730 compiler_lib_search_path=$lt_compiler_lib_search_path
52732 # ### END LIBTOOL CONFIG
52734 _LT_EOF
52736 case $host_os in
52737 aix3*)
52738 cat <<\_LT_EOF >> "$cfgfile"
52739 # AIX sometimes has problems with the GCC collect2 program. For some
52740 # reason, if we set the COLLECT_NAMES environment variable, the problems
52741 # vanish in a puff of smoke.
52742 if test "X${COLLECT_NAMES+set}" != Xset; then
52743 COLLECT_NAMES=
52744 export COLLECT_NAMES
52746 _LT_EOF
52748 esac
52751 ltmain="$ac_aux_dir/ltmain.sh"
52754 # We use sed instead of cat because bash on DJGPP gets confused if
52755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
52756 # text mode, it properly converts lines to CR/LF. This bash problem
52757 # is reportedly fixed, but why not run on old versions too?
52758 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
52759 || (rm -f "$cfgfile"; exit 1)
52761 case $xsi_shell in
52762 yes)
52763 cat << \_LT_EOF >> "$cfgfile"
52765 # func_dirname file append nondir_replacement
52766 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
52767 # otherwise set result to NONDIR_REPLACEMENT.
52768 func_dirname ()
52770 case ${1} in
52771 */*) func_dirname_result="${1%/*}${2}" ;;
52772 * ) func_dirname_result="${3}" ;;
52773 esac
52776 # func_basename file
52777 func_basename ()
52779 func_basename_result="${1##*/}"
52782 # func_dirname_and_basename file append nondir_replacement
52783 # perform func_basename and func_dirname in a single function
52784 # call:
52785 # dirname: Compute the dirname of FILE. If nonempty,
52786 # add APPEND to the result, otherwise set result
52787 # to NONDIR_REPLACEMENT.
52788 # value returned in "$func_dirname_result"
52789 # basename: Compute filename of FILE.
52790 # value retuned in "$func_basename_result"
52791 # Implementation must be kept synchronized with func_dirname
52792 # and func_basename. For efficiency, we do not delegate to
52793 # those functions but instead duplicate the functionality here.
52794 func_dirname_and_basename ()
52796 case ${1} in
52797 */*) func_dirname_result="${1%/*}${2}" ;;
52798 * ) func_dirname_result="${3}" ;;
52799 esac
52800 func_basename_result="${1##*/}"
52803 # func_stripname prefix suffix name
52804 # strip PREFIX and SUFFIX off of NAME.
52805 # PREFIX and SUFFIX must not contain globbing or regex special
52806 # characters, hashes, percent signs, but SUFFIX may contain a leading
52807 # dot (in which case that matches only a dot).
52808 func_stripname ()
52810 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
52811 # positional parameters, so assign one to ordinary parameter first.
52812 func_stripname_result=${3}
52813 func_stripname_result=${func_stripname_result#"${1}"}
52814 func_stripname_result=${func_stripname_result%"${2}"}
52817 # func_opt_split
52818 func_opt_split ()
52820 func_opt_split_opt=${1%%=*}
52821 func_opt_split_arg=${1#*=}
52824 # func_lo2o object
52825 func_lo2o ()
52827 case ${1} in
52828 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
52829 *) func_lo2o_result=${1} ;;
52830 esac
52833 # func_xform libobj-or-source
52834 func_xform ()
52836 func_xform_result=${1%.*}.lo
52839 # func_arith arithmetic-term...
52840 func_arith ()
52842 func_arith_result=$(( $* ))
52845 # func_len string
52846 # STRING may not start with a hyphen.
52847 func_len ()
52849 func_len_result=${#1}
52852 _LT_EOF
52854 *) # Bourne compatible functions.
52855 cat << \_LT_EOF >> "$cfgfile"
52857 # func_dirname file append nondir_replacement
52858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
52859 # otherwise set result to NONDIR_REPLACEMENT.
52860 func_dirname ()
52862 # Extract subdirectory from the argument.
52863 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
52864 if test "X$func_dirname_result" = "X${1}"; then
52865 func_dirname_result="${3}"
52866 else
52867 func_dirname_result="$func_dirname_result${2}"
52871 # func_basename file
52872 func_basename ()
52874 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
52878 # func_stripname prefix suffix name
52879 # strip PREFIX and SUFFIX off of NAME.
52880 # PREFIX and SUFFIX must not contain globbing or regex special
52881 # characters, hashes, percent signs, but SUFFIX may contain a leading
52882 # dot (in which case that matches only a dot).
52883 # func_strip_suffix prefix name
52884 func_stripname ()
52886 case ${2} in
52887 .*) func_stripname_result=`$ECHO "X${3}" \
52888 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
52889 *) func_stripname_result=`$ECHO "X${3}" \
52890 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
52891 esac
52894 # sed scripts:
52895 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
52896 my_sed_long_arg='1s/^-[^=]*=//'
52898 # func_opt_split
52899 func_opt_split ()
52901 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
52902 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
52905 # func_lo2o object
52906 func_lo2o ()
52908 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
52911 # func_xform libobj-or-source
52912 func_xform ()
52914 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
52917 # func_arith arithmetic-term...
52918 func_arith ()
52920 func_arith_result=`expr "$@"`
52923 # func_len string
52924 # STRING may not start with a hyphen.
52925 func_len ()
52927 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
52930 _LT_EOF
52931 esac
52933 case $lt_shell_append in
52934 yes)
52935 cat << \_LT_EOF >> "$cfgfile"
52937 # func_append var value
52938 # Append VALUE to the end of shell variable VAR.
52939 func_append ()
52941 eval "$1+=\$2"
52943 _LT_EOF
52946 cat << \_LT_EOF >> "$cfgfile"
52948 # func_append var value
52949 # Append VALUE to the end of shell variable VAR.
52950 func_append ()
52952 eval "$1=\$$1\$2"
52955 _LT_EOF
52957 esac
52960 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
52961 || (rm -f "$cfgfile"; exit 1)
52963 mv -f "$cfgfile" "$ofile" ||
52964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
52965 chmod +x "$ofile"
52968 cat <<_LT_EOF >> "$ofile"
52970 # ### BEGIN LIBTOOL TAG CONFIG: CXX
52972 # The linker used to build libraries.
52973 LD=$lt_LD_CXX
52975 # Commands used to build an old-style archive.
52976 old_archive_cmds=$lt_old_archive_cmds_CXX
52978 # A language specific compiler.
52979 CC=$lt_compiler_CXX
52981 # Is the compiler the GNU compiler?
52982 with_gcc=$GCC_CXX
52984 # Compiler flag to turn off builtin functions.
52985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
52987 # How to pass a linker flag through the compiler.
52988 wl=$lt_lt_prog_compiler_wl_CXX
52990 # Additional compiler flags for building library objects.
52991 pic_flag=$lt_lt_prog_compiler_pic_CXX
52993 # Compiler flag to prevent dynamic linking.
52994 link_static_flag=$lt_lt_prog_compiler_static_CXX
52996 # Does compiler simultaneously support -c and -o options?
52997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
52999 # Whether or not to add -lc for building shared libraries.
53000 build_libtool_need_lc=$archive_cmds_need_lc_CXX
53002 # Whether or not to disallow shared libs when runtime libs are static.
53003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
53005 # Compiler flag to allow reflexive dlopens.
53006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
53008 # Compiler flag to generate shared objects directly from archives.
53009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
53011 # Whether the compiler copes with passing no objects directly.
53012 compiler_needs_object=$lt_compiler_needs_object_CXX
53014 # Create an old-style archive from a shared archive.
53015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
53017 # Create a temporary old-style archive to link instead of a shared archive.
53018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
53020 # Commands used to build a shared archive.
53021 archive_cmds=$lt_archive_cmds_CXX
53022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
53024 # Commands used to build a loadable module if different from building
53025 # a shared archive.
53026 module_cmds=$lt_module_cmds_CXX
53027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
53029 # Whether we are building with GNU ld or not.
53030 with_gnu_ld=$lt_with_gnu_ld_CXX
53032 # Flag that allows shared libraries with undefined symbols to be built.
53033 allow_undefined_flag=$lt_allow_undefined_flag_CXX
53035 # Flag that enforces no undefined symbols.
53036 no_undefined_flag=$lt_no_undefined_flag_CXX
53038 # Flag to hardcode \$libdir into a binary during linking.
53039 # This must work even if \$libdir does not exist
53040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
53042 # If ld is used when linking, flag to hardcode \$libdir into a binary
53043 # during linking. This must work even if \$libdir does not exist.
53044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
53046 # Whether we need a single "-rpath" flag with a separated argument.
53047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
53049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53050 # DIR into the resulting binary.
53051 hardcode_direct=$hardcode_direct_CXX
53053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53054 # DIR into the resulting binary and the resulting library dependency is
53055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
53056 # library is relocated.
53057 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
53059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53060 # into the resulting binary.
53061 hardcode_minus_L=$hardcode_minus_L_CXX
53063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53064 # into the resulting binary.
53065 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
53067 # Set to "yes" if building a shared library automatically hardcodes DIR
53068 # into the library and all subsequent libraries and executables linked
53069 # against it.
53070 hardcode_automatic=$hardcode_automatic_CXX
53072 # Set to yes if linker adds runtime paths of dependent libraries
53073 # to runtime path list.
53074 inherit_rpath=$inherit_rpath_CXX
53076 # Whether libtool must link a program against all its dependency libraries.
53077 link_all_deplibs=$link_all_deplibs_CXX
53079 # Fix the shell variable \$srcfile for the compiler.
53080 fix_srcfile_path=$lt_fix_srcfile_path_CXX
53082 # Set to "yes" if exported symbols are required.
53083 always_export_symbols=$always_export_symbols_CXX
53085 # The commands to list exported symbols.
53086 export_symbols_cmds=$lt_export_symbols_cmds_CXX
53088 # Symbols that should not be listed in the preloaded symbols.
53089 exclude_expsyms=$lt_exclude_expsyms_CXX
53091 # Symbols that must always be exported.
53092 include_expsyms=$lt_include_expsyms_CXX
53094 # Commands necessary for linking programs (against libraries) with templates.
53095 prelink_cmds=$lt_prelink_cmds_CXX
53097 # Specify filename containing input files.
53098 file_list_spec=$lt_file_list_spec_CXX
53100 # How to hardcode a shared library path into an executable.
53101 hardcode_action=$hardcode_action_CXX
53103 # The directories searched by this compiler when creating a shared library.
53104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
53106 # Dependencies to place before and after the objects being linked to
53107 # create a shared library.
53108 predep_objects=$lt_predep_objects_CXX
53109 postdep_objects=$lt_postdep_objects_CXX
53110 predeps=$lt_predeps_CXX
53111 postdeps=$lt_postdeps_CXX
53113 # The library search path used internally by the compiler when linking
53114 # a shared library.
53115 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
53117 # ### END LIBTOOL TAG CONFIG: CXX
53118 _LT_EOF
53122 esac
53123 done # for ac_tag
53126 { (exit 0); exit 0; }
53127 _ACEOF
53128 chmod +x $CONFIG_STATUS
53129 ac_clean_files=$ac_clean_files_save
53131 test $ac_write_fail = 0 ||
53132 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
53133 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
53134 { (exit 1); exit 1; }; }
53136 ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS'"
53138 # configure is writing to config.log, and then calls config.status.
53139 # config.status does its own redirection, appending to config.log.
53140 # Unfortunately, on DOS this fails, as config.log is still kept open
53141 # by configure, so config.status won't be able to write to it; its
53142 # output is simply discarded. So we exec the FD to /dev/null,
53143 # effectively closing config.log, so it can be properly (re)opened and
53144 # appended to by config.status. When coming back to configure, we
53145 # need to make the FD available again.
53146 if test "$no_create" != yes; then
53147 ac_cs_success=:
53148 ac_config_status_args=
53149 test "$silent" = yes &&
53150 ac_config_status_args="$ac_config_status_args --quiet"
53151 exec 5>/dev/null
53152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53153 exec 5>>config.log
53154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53155 # would make configure fail if this is the last instruction.
53156 $ac_cs_success || { (exit 1); exit 1; }
53158 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53159 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53160 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53164 # Add warning if user configures with --with-ndbcluster
53165 if test X"$with_plugin_ndbcluster" = Xyes ; then
53166 echo
53167 echo This version of MySQL Cluster is no longer maintained.
53168 echo Please use the separate sources provided for MySQL Cluster instead.
53169 echo See http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster.html
53170 echo for more details.
53173 # The first line "Thank you ..." is checked in ./Do-compile to verify that configure
53174 # ended sucessfully - don't remove it.
53175 echo
53176 echo "Thank you for choosing MySQL!"
53177 echo
53178 echo "Remember to check the platform specific part of the reference manual"
53179 echo "for hints about installing MySQL on your platform."
53180 echo "Also have a look at the files in the Docs directory."
53181 echo