1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# IFS 58# We need space, tab and new line, in precisely that order. Quoting is 59# there to prevent editors from complaining about space-tab. 60# (If _AS_PATH_WALK were called with IFS unset, it would disable word 61# splitting by setting IFS to empty value.) 62as_nl=' 63' 64IFS=" "" $as_nl" 65 66# Find who we are. Look in the path if we contain no directory separator. 67case $0 in 68 *[\\/]* ) as_myself=$0 ;; 69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70for as_dir in $PATH 71do 72 IFS=$as_save_IFS 73 test -z "$as_dir" && as_dir=. 74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 75done 76IFS=$as_save_IFS 77 78 ;; 79esac 80# We did not find ourselves, most probably we were run as `sh COMMAND' 81# in which case we are not to be found in the path. 82if test "x$as_myself" = x; then 83 as_myself=$0 84fi 85if test ! -f "$as_myself"; then 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 87 { (exit 1); exit 1; } 88fi 89 90# Work around bugs in pre-3.0 UWIN ksh. 91for as_var in ENV MAIL MAILPATH 92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 93done 94PS1='$ ' 95PS2='> ' 96PS4='+ ' 97 98# NLS nuisances. 99for as_var in \ 100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 102 LC_TELEPHONE LC_TIME 103do 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 105 eval $as_var=C; export $as_var 106 else 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 108 fi 109done 110 111# Required to use basename. 112if expr a : '\(a\)' >/dev/null 2>&1 && 113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 114 as_expr=expr 115else 116 as_expr=false 117fi 118 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120 as_basename=basename 121else 122 as_basename=false 123fi 124 125 126# Name of the executable. 127as_me=`$as_basename -- "$0" || 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 129 X"$0" : 'X\(//\)$' \| \ 130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 131echo X/"$0" | 132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 133 s//\1/ 134 q 135 } 136 /^X\/\(\/\/\)$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\).*/{ 141 s//\1/ 142 q 143 } 144 s/.*/./; q'` 145 146# CDPATH. 147$as_unset CDPATH 148 149 150if test "x$CONFIG_SHELL" = x; then 151 if (eval ":") 2>/dev/null; then 152 as_have_required=yes 153else 154 as_have_required=no 155fi 156 157 if test $as_have_required = yes && (eval ": 158(as_func_return () { 159 (exit \$1) 160} 161as_func_success () { 162 as_func_return 0 163} 164as_func_failure () { 165 as_func_return 1 166} 167as_func_ret_success () { 168 return 0 169} 170as_func_ret_failure () { 171 return 1 172} 173 174exitcode=0 175if as_func_success; then 176 : 177else 178 exitcode=1 179 echo as_func_success failed. 180fi 181 182if as_func_failure; then 183 exitcode=1 184 echo as_func_failure succeeded. 185fi 186 187if as_func_ret_success; then 188 : 189else 190 exitcode=1 191 echo as_func_ret_success failed. 192fi 193 194if as_func_ret_failure; then 195 exitcode=1 196 echo as_func_ret_failure succeeded. 197fi 198 199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 200 : 201else 202 exitcode=1 203 echo positional parameters were not saved. 204fi 205 206test \$exitcode = 0) || { (exit 1); exit 1; } 207 208( 209 as_lineno_1=\$LINENO 210 as_lineno_2=\$LINENO 211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 213") 2> /dev/null; then 214 : 215else 216 as_candidate_shells= 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 case $as_dir in 223 /*) 224 for as_base in sh bash ksh sh5; do 225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 226 done;; 227 esac 228done 229IFS=$as_save_IFS 230 231 232 for as_shell in $as_candidate_shells $SHELL; do 233 # Try only shells that exist, to save several forks. 234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 { ("$as_shell") 2> /dev/null <<\_ASEOF 236# Be Bourne compatible 237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 emulate sh 239 NULLCMD=: 240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 241 # is contrary to our usage. Disable this feature. 242 alias -g '${1+"$@"}'='"$@"' 243 setopt NO_GLOB_SUBST 244else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246fi 247BIN_SH=xpg4; export BIN_SH # for Tru64 248DUALCASE=1; export DUALCASE # for MKS sh 249 250: 251_ASEOF 252}; then 253 CONFIG_SHELL=$as_shell 254 as_have_required=yes 255 if { "$as_shell" 2> /dev/null <<\_ASEOF 256# Be Bourne compatible 257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 emulate sh 259 NULLCMD=: 260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 261 # is contrary to our usage. Disable this feature. 262 alias -g '${1+"$@"}'='"$@"' 263 setopt NO_GLOB_SUBST 264else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266fi 267BIN_SH=xpg4; export BIN_SH # for Tru64 268DUALCASE=1; export DUALCASE # for MKS sh 269 270: 271(as_func_return () { 272 (exit $1) 273} 274as_func_success () { 275 as_func_return 0 276} 277as_func_failure () { 278 as_func_return 1 279} 280as_func_ret_success () { 281 return 0 282} 283as_func_ret_failure () { 284 return 1 285} 286 287exitcode=0 288if as_func_success; then 289 : 290else 291 exitcode=1 292 echo as_func_success failed. 293fi 294 295if as_func_failure; then 296 exitcode=1 297 echo as_func_failure succeeded. 298fi 299 300if as_func_ret_success; then 301 : 302else 303 exitcode=1 304 echo as_func_ret_success failed. 305fi 306 307if as_func_ret_failure; then 308 exitcode=1 309 echo as_func_ret_failure succeeded. 310fi 311 312if ( set x; as_func_ret_success y && test x = "$1" ); then 313 : 314else 315 exitcode=1 316 echo positional parameters were not saved. 317fi 318 319test $exitcode = 0) || { (exit 1); exit 1; } 320 321( 322 as_lineno_1=$LINENO 323 as_lineno_2=$LINENO 324 test "x$as_lineno_1" != "x$as_lineno_2" && 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 326 327_ASEOF 328}; then 329 break 330fi 331 332fi 333 334 done 335 336 if test "x$CONFIG_SHELL" != x; then 337 for as_var in BASH_ENV ENV 338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 339 done 340 export CONFIG_SHELL 341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 342fi 343 344 345 if test $as_have_required = no; then 346 echo This script requires a shell more modern than all the 347 echo shells that I found on your system. Please install a 348 echo modern shell, or manually run the script under such a 349 echo shell if you do have one. 350 { (exit 1); exit 1; } 351fi 352 353 354fi 355 356fi 357 358 359 360(eval "as_func_return () { 361 (exit \$1) 362} 363as_func_success () { 364 as_func_return 0 365} 366as_func_failure () { 367 as_func_return 1 368} 369as_func_ret_success () { 370 return 0 371} 372as_func_ret_failure () { 373 return 1 374} 375 376exitcode=0 377if as_func_success; then 378 : 379else 380 exitcode=1 381 echo as_func_success failed. 382fi 383 384if as_func_failure; then 385 exitcode=1 386 echo as_func_failure succeeded. 387fi 388 389if as_func_ret_success; then 390 : 391else 392 exitcode=1 393 echo as_func_ret_success failed. 394fi 395 396if as_func_ret_failure; then 397 exitcode=1 398 echo as_func_ret_failure succeeded. 399fi 400 401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 402 : 403else 404 exitcode=1 405 echo positional parameters were not saved. 406fi 407 408test \$exitcode = 0") || { 409 echo No shell found that supports shell functions. 410 echo Please tell autoconf@gnu.org about your system, 411 echo including any error possibly output before this 412 echo message 413} 414 415 416 417 as_lineno_1=$LINENO 418 as_lineno_2=$LINENO 419 test "x$as_lineno_1" != "x$as_lineno_2" && 420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 421 422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 423 # uniformly replaced by the line number. The first 'sed' inserts a 424 # line-number line after each line using $LINENO; the second 'sed' 425 # does the real work. The second script uses 'N' to pair each 426 # line-number line with the line containing $LINENO, and appends 427 # trailing '-' during substitution so that $LINENO is not a special 428 # case at line end. 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 430 # scripts with optimization help from Paolo Bonzini. Blame Lee 431 # E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 449 { (exit 1); exit 1; }; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466ECHO_C= ECHO_N= ECHO_T= 467case `echo -n x` in 468-n*) 469 case `echo 'x\c'` in 470 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 471 *) ECHO_C='\c';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477if expr a : '\(a\)' >/dev/null 2>&1 && 478 test "X`expr 00001 : '.*\(...\)'`" = X001; then 479 as_expr=expr 480else 481 as_expr=false 482fi 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 490fi 491echo >conf$$.file 492if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p=: 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as 516# systems may use methods other than mode bits to determine executability. 517cat >conf$$.file <<_ASEOF 518#! /bin/sh 519exit 0 520_ASEOF 521chmod +x conf$$.file 522if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524else 525 as_executable_p=: 526fi 527rm -f conf$$.file 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555SHELL=${CONFIG_SHELL-/bin/sh} 556 557# Identity of this package. 558PACKAGE_NAME= 559PACKAGE_TARNAME= 560PACKAGE_VERSION= 561PACKAGE_STRING= 562PACKAGE_BUGREPORT= 563 564ac_unique_file="lib/libgadu.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#if HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#if HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#if STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# if HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#if HAVE_STRING_H 583# if !STDC_HEADERS && HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#if HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#if HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#if HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#if HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='SHELL 602PATH_SEPARATOR 603PACKAGE_NAME 604PACKAGE_TARNAME 605PACKAGE_VERSION 606PACKAGE_STRING 607PACKAGE_BUGREPORT 608exec_prefix 609prefix 610program_transform_name 611bindir 612sbindir 613libexecdir 614datarootdir 615datadir 616sysconfdir 617sharedstatedir 618localstatedir 619includedir 620oldincludedir 621docdir 622infodir 623htmldir 624dvidir 625pdfdir 626psdir 627libdir 628localedir 629mandir 630DEFS 631ECHO_C 632ECHO_N 633ECHO_T 634LIBS 635build_alias 636host_alias 637target_alias 638INSTALL_PROGRAM 639INSTALL_SCRIPT 640INSTALL_DATA 641CYGPATH_W 642PACKAGE 643VERSION 644ACLOCAL 645AUTOCONF 646AUTOMAKE 647AUTOHEADER 648MAKEINFO 649install_sh 650STRIP 651INSTALL_STRIP_PROGRAM 652mkdir_p 653AWK 654SET_MAKE 655am__leading_dot 656AMTAR 657am__tar 658am__untar 659CC 660CFLAGS 661LDFLAGS 662CPPFLAGS 663ac_ct_CC 664EXEEXT 665OBJEXT 666DEPDIR 667am__include 668am__quote 669AMDEP_TRUE 670AMDEP_FALSE 671AMDEPBACKSLASH 672CCDEPMODE 673am__fastdepCC_TRUE 674am__fastdepCC_FALSE 675CPP 676GREP 677EGREP 678PTHREAD_CC 679PTHREAD_LIBS 680PTHREAD_CFLAGS 681GNUTLS_CONFIG_SCRIPT 682GNUTLS_LIBS 683GNUTLS_CFLAGS' 684ac_subst_files='' 685 ac_precious_vars='build_alias 686host_alias 687target_alias 688CC 689CFLAGS 690LDFLAGS 691CPPFLAGS 692CPP' 693 694 695# Initialize some variables set by options. 696ac_init_help= 697ac_init_version=false 698# The variables have the same names as the options, with 699# dashes changed to underlines. 700cache_file=/dev/null 701exec_prefix=NONE 702no_create= 703no_recursion= 704prefix=NONE 705program_prefix=NONE 706program_suffix=NONE 707program_transform_name=s,x,x, 708silent= 709site= 710srcdir= 711verbose= 712x_includes=NONE 713x_libraries=NONE 714 715# Installation directory options. 716# These are left unexpanded so users can "make install exec_prefix=/foo" 717# and all the variables that are supposed to be based on exec_prefix 718# by default will actually change. 719# Use braces instead of parens because sh, perl, etc. also accept them. 720# (The list follows the same order as the GNU Coding Standards.) 721bindir='${exec_prefix}/bin' 722sbindir='${exec_prefix}/sbin' 723libexecdir='${exec_prefix}/libexec' 724datarootdir='${prefix}/share' 725datadir='${datarootdir}' 726sysconfdir='${prefix}/etc' 727sharedstatedir='${prefix}/com' 728localstatedir='${prefix}/var' 729includedir='${prefix}/include' 730oldincludedir='/usr/include' 731docdir='${datarootdir}/doc/${PACKAGE}' 732infodir='${datarootdir}/info' 733htmldir='${docdir}' 734dvidir='${docdir}' 735pdfdir='${docdir}' 736psdir='${docdir}' 737libdir='${exec_prefix}/lib' 738localedir='${datarootdir}/locale' 739mandir='${datarootdir}/man' 740 741ac_prev= 742ac_dashdash= 743for ac_option 744do 745 # If the previous option needs an argument, assign it. 746 if test -n "$ac_prev"; then 747 eval $ac_prev=\$ac_option 748 ac_prev= 749 continue 750 fi 751 752 case $ac_option in 753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 754 *) ac_optarg=yes ;; 755 esac 756 757 # Accept the important Cygnus configure options, so we can diagnose typos. 758 759 case $ac_dashdash$ac_option in 760 --) 761 ac_dashdash=yes ;; 762 763 -bindir | --bindir | --bindi | --bind | --bin | --bi) 764 ac_prev=bindir ;; 765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 766 bindir=$ac_optarg ;; 767 768 -build | --build | --buil | --bui | --bu) 769 ac_prev=build_alias ;; 770 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 771 build_alias=$ac_optarg ;; 772 773 -cache-file | --cache-file | --cache-fil | --cache-fi \ 774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 775 ac_prev=cache_file ;; 776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 778 cache_file=$ac_optarg ;; 779 780 --config-cache | -C) 781 cache_file=config.cache ;; 782 783 -datadir | --datadir | --datadi | --datad) 784 ac_prev=datadir ;; 785 -datadir=* | --datadir=* | --datadi=* | --datad=*) 786 datadir=$ac_optarg ;; 787 788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 789 | --dataroo | --dataro | --datar) 790 ac_prev=datarootdir ;; 791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 793 datarootdir=$ac_optarg ;; 794 795 -disable-* | --disable-*) 796 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 797 # Reject names that are not valid shell variable names. 798 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 799 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 800 { (exit 1); exit 1; }; } 801 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 802 eval enable_$ac_feature=no ;; 803 804 -docdir | --docdir | --docdi | --doc | --do) 805 ac_prev=docdir ;; 806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 807 docdir=$ac_optarg ;; 808 809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 810 ac_prev=dvidir ;; 811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 812 dvidir=$ac_optarg ;; 813 814 -enable-* | --enable-*) 815 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 816 # Reject names that are not valid shell variable names. 817 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 818 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 819 { (exit 1); exit 1; }; } 820 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 821 eval enable_$ac_feature=\$ac_optarg ;; 822 823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 825 | --exec | --exe | --ex) 826 ac_prev=exec_prefix ;; 827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 829 | --exec=* | --exe=* | --ex=*) 830 exec_prefix=$ac_optarg ;; 831 832 -gas | --gas | --ga | --g) 833 # Obsolete; use --with-gas. 834 with_gas=yes ;; 835 836 -help | --help | --hel | --he | -h) 837 ac_init_help=long ;; 838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 839 ac_init_help=recursive ;; 840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 841 ac_init_help=short ;; 842 843 -host | --host | --hos | --ho) 844 ac_prev=host_alias ;; 845 -host=* | --host=* | --hos=* | --ho=*) 846 host_alias=$ac_optarg ;; 847 848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 849 ac_prev=htmldir ;; 850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 851 | --ht=*) 852 htmldir=$ac_optarg ;; 853 854 -includedir | --includedir | --includedi | --included | --include \ 855 | --includ | --inclu | --incl | --inc) 856 ac_prev=includedir ;; 857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 858 | --includ=* | --inclu=* | --incl=* | --inc=*) 859 includedir=$ac_optarg ;; 860 861 -infodir | --infodir | --infodi | --infod | --info | --inf) 862 ac_prev=infodir ;; 863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 864 infodir=$ac_optarg ;; 865 866 -libdir | --libdir | --libdi | --libd) 867 ac_prev=libdir ;; 868 -libdir=* | --libdir=* | --libdi=* | --libd=*) 869 libdir=$ac_optarg ;; 870 871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 872 | --libexe | --libex | --libe) 873 ac_prev=libexecdir ;; 874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 875 | --libexe=* | --libex=* | --libe=*) 876 libexecdir=$ac_optarg ;; 877 878 -localedir | --localedir | --localedi | --localed | --locale) 879 ac_prev=localedir ;; 880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 881 localedir=$ac_optarg ;; 882 883 -localstatedir | --localstatedir | --localstatedi | --localstated \ 884 | --localstate | --localstat | --localsta | --localst | --locals) 885 ac_prev=localstatedir ;; 886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 888 localstatedir=$ac_optarg ;; 889 890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 891 ac_prev=mandir ;; 892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 893 mandir=$ac_optarg ;; 894 895 -nfp | --nfp | --nf) 896 # Obsolete; use --without-fp. 897 with_fp=no ;; 898 899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 900 | --no-cr | --no-c | -n) 901 no_create=yes ;; 902 903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 905 no_recursion=yes ;; 906 907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 909 | --oldin | --oldi | --old | --ol | --o) 910 ac_prev=oldincludedir ;; 911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 914 oldincludedir=$ac_optarg ;; 915 916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 917 ac_prev=prefix ;; 918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 919 prefix=$ac_optarg ;; 920 921 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 922 | --program-pre | --program-pr | --program-p) 923 ac_prev=program_prefix ;; 924 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 926 program_prefix=$ac_optarg ;; 927 928 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 929 | --program-suf | --program-su | --program-s) 930 ac_prev=program_suffix ;; 931 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 933 program_suffix=$ac_optarg ;; 934 935 -program-transform-name | --program-transform-name \ 936 | --program-transform-nam | --program-transform-na \ 937 | --program-transform-n | --program-transform- \ 938 | --program-transform | --program-transfor \ 939 | --program-transfo | --program-transf \ 940 | --program-trans | --program-tran \ 941 | --progr-tra | --program-tr | --program-t) 942 ac_prev=program_transform_name ;; 943 -program-transform-name=* | --program-transform-name=* \ 944 | --program-transform-nam=* | --program-transform-na=* \ 945 | --program-transform-n=* | --program-transform-=* \ 946 | --program-transform=* | --program-transfor=* \ 947 | --program-transfo=* | --program-transf=* \ 948 | --program-trans=* | --program-tran=* \ 949 | --progr-tra=* | --program-tr=* | --program-t=*) 950 program_transform_name=$ac_optarg ;; 951 952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 953 ac_prev=pdfdir ;; 954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 955 pdfdir=$ac_optarg ;; 956 957 -psdir | --psdir | --psdi | --psd | --ps) 958 ac_prev=psdir ;; 959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 960 psdir=$ac_optarg ;; 961 962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 963 | -silent | --silent | --silen | --sile | --sil) 964 silent=yes ;; 965 966 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 967 ac_prev=sbindir ;; 968 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 969 | --sbi=* | --sb=*) 970 sbindir=$ac_optarg ;; 971 972 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 973 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 974 | --sharedst | --shareds | --shared | --share | --shar \ 975 | --sha | --sh) 976 ac_prev=sharedstatedir ;; 977 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 978 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 979 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 980 | --sha=* | --sh=*) 981 sharedstatedir=$ac_optarg ;; 982 983 -site | --site | --sit) 984 ac_prev=site ;; 985 -site=* | --site=* | --sit=*) 986 site=$ac_optarg ;; 987 988 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 989 ac_prev=srcdir ;; 990 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 991 srcdir=$ac_optarg ;; 992 993 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 994 | --syscon | --sysco | --sysc | --sys | --sy) 995 ac_prev=sysconfdir ;; 996 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 997 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 998 sysconfdir=$ac_optarg ;; 999 1000 -target | --target | --targe | --targ | --tar | --ta | --t) 1001 ac_prev=target_alias ;; 1002 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1003 target_alias=$ac_optarg ;; 1004 1005 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1006 verbose=yes ;; 1007 1008 -version | --version | --versio | --versi | --vers | -V) 1009 ac_init_version=: ;; 1010 1011 -with-* | --with-*) 1012 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1015 { echo "$as_me: error: invalid package name: $ac_package" >&2 1016 { (exit 1); exit 1; }; } 1017 ac_package=`echo $ac_package| sed 's/-/_/g'` 1018 eval with_$ac_package=\$ac_optarg ;; 1019 1020 -without-* | --without-*) 1021 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid package name: $ac_package" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_package=`echo $ac_package | sed 's/-/_/g'` 1027 eval with_$ac_package=no ;; 1028 1029 --x) 1030 # Obsolete; use --with-x. 1031 with_x=yes ;; 1032 1033 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1034 | --x-incl | --x-inc | --x-in | --x-i) 1035 ac_prev=x_includes ;; 1036 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1037 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1038 x_includes=$ac_optarg ;; 1039 1040 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1041 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1042 ac_prev=x_libraries ;; 1043 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1044 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1045 x_libraries=$ac_optarg ;; 1046 1047 -*) { echo "$as_me: error: unrecognized option: $ac_option 1048Try \`$0 --help' for more information." >&2 1049 { (exit 1); exit 1; }; } 1050 ;; 1051 1052 *=*) 1053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1056 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1057 { (exit 1); exit 1; }; } 1058 eval $ac_envvar=\$ac_optarg 1059 export $ac_envvar ;; 1060 1061 *) 1062 # FIXME: should be removed in autoconf 3.0. 1063 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1064 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1065 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1066 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1067 ;; 1068 1069 esac 1070done 1071 1072if test -n "$ac_prev"; then 1073 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1074 { echo "$as_me: error: missing argument to $ac_option" >&2 1075 { (exit 1); exit 1; }; } 1076fi 1077 1078# Be sure to have absolute directory names. 1079for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1080 datadir sysconfdir sharedstatedir localstatedir includedir \ 1081 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1082 libdir localedir mandir 1083do 1084 eval ac_val=\$$ac_var 1085 case $ac_val in 1086 [\\/$]* | ?:[\\/]* ) continue;; 1087 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1088 esac 1089 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1090 { (exit 1); exit 1; }; } 1091done 1092 1093# There might be people who depend on the old broken behavior: `$host' 1094# used to hold the argument of --host etc. 1095# FIXME: To remove some day. 1096build=$build_alias 1097host=$host_alias 1098target=$target_alias 1099 1100# FIXME: To remove some day. 1101if test "x$host_alias" != x; then 1102 if test "x$build_alias" = x; then 1103 cross_compiling=maybe 1104 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1105 If a cross compiler is detected then cross compile mode will be used." >&2 1106 elif test "x$build_alias" != "x$host_alias"; then 1107 cross_compiling=yes 1108 fi 1109fi 1110 1111ac_tool_prefix= 1112test -n "$host_alias" && ac_tool_prefix=$host_alias- 1113 1114test "$silent" = yes && exec 6>/dev/null 1115 1116 1117ac_pwd=`pwd` && test -n "$ac_pwd" && 1118ac_ls_di=`ls -di .` && 1119ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1120 { echo "$as_me: error: Working directory cannot be determined" >&2 1121 { (exit 1); exit 1; }; } 1122test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1123 { echo "$as_me: error: pwd does not report name of working directory" >&2 1124 { (exit 1); exit 1; }; } 1125 1126 1127# Find the source files, if location was not specified. 1128if test -z "$srcdir"; then 1129 ac_srcdir_defaulted=yes 1130 # Try the directory containing this script, then the parent directory. 1131 ac_confdir=`$as_dirname -- "$0" || 1132$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1133 X"$0" : 'X\(//\)[^/]' \| \ 1134 X"$0" : 'X\(//\)$' \| \ 1135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1136echo X"$0" | 1137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1138 s//\1/ 1139 q 1140 } 1141 /^X\(\/\/\)[^/].*/{ 1142 s//\1/ 1143 q 1144 } 1145 /^X\(\/\/\)$/{ 1146 s//\1/ 1147 q 1148 } 1149 /^X\(\/\).*/{ 1150 s//\1/ 1151 q 1152 } 1153 s/.*/./; q'` 1154 srcdir=$ac_confdir 1155 if test ! -r "$srcdir/$ac_unique_file"; then 1156 srcdir=.. 1157 fi 1158else 1159 ac_srcdir_defaulted=no 1160fi 1161if test ! -r "$srcdir/$ac_unique_file"; then 1162 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1163 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1164 { (exit 1); exit 1; }; } 1165fi 1166ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1167ac_abs_confdir=`( 1168 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1169 { (exit 1); exit 1; }; } 1170 pwd)` 1171# When building in place, set srcdir=. 1172if test "$ac_abs_confdir" = "$ac_pwd"; then 1173 srcdir=. 1174fi 1175# Remove unnecessary trailing slashes from srcdir. 1176# Double slashes in file names in object file debugging info 1177# mess up M-x gdb in Emacs. 1178case $srcdir in 1179*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1180esac 1181for ac_var in $ac_precious_vars; do 1182 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1183 eval ac_env_${ac_var}_value=\$${ac_var} 1184 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1185 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1186done 1187 1188# 1189# Report the --help message. 1190# 1191if test "$ac_init_help" = "long"; then 1192 # Omit some internal or obsolete options to make the list less imposing. 1193 # This message is too long to be a string in the A/UX 3.1 sh. 1194 cat <<_ACEOF 1195\`configure' configures this package to adapt to many kinds of systems. 1196 1197Usage: $0 [OPTION]... [VAR=VALUE]... 1198 1199To assign environment variables (e.g., CC, CFLAGS...), specify them as 1200VAR=VALUE. See below for descriptions of some of the useful variables. 1201 1202Defaults for the options are specified in brackets. 1203 1204Configuration: 1205 -h, --help display this help and exit 1206 --help=short display options specific to this package 1207 --help=recursive display the short help of all the included packages 1208 -V, --version display version information and exit 1209 -q, --quiet, --silent do not print \`checking...' messages 1210 --cache-file=FILE cache test results in FILE [disabled] 1211 -C, --config-cache alias for \`--cache-file=config.cache' 1212 -n, --no-create do not create output files 1213 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1214 1215Installation directories: 1216 --prefix=PREFIX install architecture-independent files in PREFIX 1217 [$ac_default_prefix] 1218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1219 [PREFIX] 1220 1221By default, \`make install' will install all the files in 1222\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1223an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1224for instance \`--prefix=\$HOME'. 1225 1226For better control, use the options below. 1227 1228Fine tuning of the installation directories: 1229 --bindir=DIR user executables [EPREFIX/bin] 1230 --sbindir=DIR system admin executables [EPREFIX/sbin] 1231 --libexecdir=DIR program executables [EPREFIX/libexec] 1232 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1233 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1234 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1235 --libdir=DIR object code libraries [EPREFIX/lib] 1236 --includedir=DIR C header files [PREFIX/include] 1237 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1238 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1239 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1240 --infodir=DIR info documentation [DATAROOTDIR/info] 1241 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1242 --mandir=DIR man documentation [DATAROOTDIR/man] 1243 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1244 --htmldir=DIR html documentation [DOCDIR] 1245 --dvidir=DIR dvi documentation [DOCDIR] 1246 --pdfdir=DIR pdf documentation [DOCDIR] 1247 --psdir=DIR ps documentation [DOCDIR] 1248_ACEOF 1249 1250 cat <<\_ACEOF 1251 1252Program names: 1253 --program-prefix=PREFIX prepend PREFIX to installed program names 1254 --program-suffix=SUFFIX append SUFFIX to installed program names 1255 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1256_ACEOF 1257fi 1258 1259if test -n "$ac_init_help"; then 1260 1261 cat <<\_ACEOF 1262 1263Optional Features: 1264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1266 --disable-dependency-tracking speeds up one-time build 1267 --enable-dependency-tracking do not reject slow dependency extractors 1268 1269Optional Packages: 1270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1272 --with-c99-vsnprintf Target system has C99-compatible vsnprintf() 1273 1274Some influential environment variables: 1275 CC C compiler command 1276 CFLAGS C compiler flags 1277 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1278 nonstandard directory <lib dir> 1279 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1280 you have headers in a nonstandard directory <include dir> 1281 CPP C preprocessor 1282 1283Use these variables to override the choices made by `configure' or to help 1284it to find libraries and programs with nonstandard names/locations. 1285 1286_ACEOF 1287ac_status=$? 1288fi 1289 1290if test "$ac_init_help" = "recursive"; then 1291 # If there are subdirs, report their specific --help. 1292 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1293 test -d "$ac_dir" || continue 1294 ac_builddir=. 1295 1296case "$ac_dir" in 1297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1298*) 1299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1300 # A ".." for each directory in $ac_dir_suffix. 1301 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1302 case $ac_top_builddir_sub in 1303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1305 esac ;; 1306esac 1307ac_abs_top_builddir=$ac_pwd 1308ac_abs_builddir=$ac_pwd$ac_dir_suffix 1309# for backward compatibility: 1310ac_top_builddir=$ac_top_build_prefix 1311 1312case $srcdir in 1313 .) # We are building in place. 1314 ac_srcdir=. 1315 ac_top_srcdir=$ac_top_builddir_sub 1316 ac_abs_top_srcdir=$ac_pwd ;; 1317 [\\/]* | ?:[\\/]* ) # Absolute name. 1318 ac_srcdir=$srcdir$ac_dir_suffix; 1319 ac_top_srcdir=$srcdir 1320 ac_abs_top_srcdir=$srcdir ;; 1321 *) # Relative name. 1322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1323 ac_top_srcdir=$ac_top_build_prefix$srcdir 1324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1325esac 1326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1327 1328 cd "$ac_dir" || { ac_status=$?; continue; } 1329 # Check for guested configure. 1330 if test -f "$ac_srcdir/configure.gnu"; then 1331 echo && 1332 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1333 elif test -f "$ac_srcdir/configure"; then 1334 echo && 1335 $SHELL "$ac_srcdir/configure" --help=recursive 1336 else 1337 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1338 fi || ac_status=$? 1339 cd "$ac_pwd" || { ac_status=$?; break; } 1340 done 1341fi 1342 1343test -n "$ac_init_help" && exit $ac_status 1344if $ac_init_version; then 1345 cat <<\_ACEOF 1346configure 1347generated by GNU Autoconf 2.60 1348 1349Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1351This configure script is free software; the Free Software Foundation 1352gives unlimited permission to copy, distribute and modify it. 1353_ACEOF 1354 exit 1355fi 1356cat >config.log <<_ACEOF 1357This file contains any messages produced by compilers while 1358running configure, to aid debugging if configure makes a mistake. 1359 1360It was created by $as_me, which was 1361generated by GNU Autoconf 2.60. Invocation command line was 1362 1363 $ $0 $@ 1364 1365_ACEOF 1366exec 5>>config.log 1367{ 1368cat <<_ASUNAME 1369## --------- ## 1370## Platform. ## 1371## --------- ## 1372 1373hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1374uname -m = `(uname -m) 2>/dev/null || echo unknown` 1375uname -r = `(uname -r) 2>/dev/null || echo unknown` 1376uname -s = `(uname -s) 2>/dev/null || echo unknown` 1377uname -v = `(uname -v) 2>/dev/null || echo unknown` 1378 1379/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1380/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1381 1382/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1383/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1384/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1385/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1386/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1387/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1388/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1389 1390_ASUNAME 1391 1392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1393for as_dir in $PATH 1394do 1395 IFS=$as_save_IFS 1396 test -z "$as_dir" && as_dir=. 1397 echo "PATH: $as_dir" 1398done 1399IFS=$as_save_IFS 1400 1401} >&5 1402 1403cat >&5 <<_ACEOF 1404 1405 1406## ----------- ## 1407## Core tests. ## 1408## ----------- ## 1409 1410_ACEOF 1411 1412 1413# Keep a trace of the command line. 1414# Strip out --no-create and --no-recursion so they do not pile up. 1415# Strip out --silent because we don't want to record it for future runs. 1416# Also quote any args containing shell meta-characters. 1417# Make two passes to allow for proper duplicate-argument suppression. 1418ac_configure_args= 1419ac_configure_args0= 1420ac_configure_args1= 1421ac_must_keep_next=false 1422for ac_pass in 1 2 1423do 1424 for ac_arg 1425 do 1426 case $ac_arg in 1427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1429 | -silent | --silent | --silen | --sile | --sil) 1430 continue ;; 1431 *\'*) 1432 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1433 esac 1434 case $ac_pass in 1435 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1436 2) 1437 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1438 if test $ac_must_keep_next = true; then 1439 ac_must_keep_next=false # Got value, back to normal. 1440 else 1441 case $ac_arg in 1442 *=* | --config-cache | -C | -disable-* | --disable-* \ 1443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1445 | -with-* | --with-* | -without-* | --without-* | --x) 1446 case "$ac_configure_args0 " in 1447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1448 esac 1449 ;; 1450 -* ) ac_must_keep_next=true ;; 1451 esac 1452 fi 1453 ac_configure_args="$ac_configure_args '$ac_arg'" 1454 ;; 1455 esac 1456 done 1457done 1458$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1459$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1460 1461# When interrupted or exit'd, cleanup temporary files, and complete 1462# config.log. We remove comments because anyway the quotes in there 1463# would cause problems or look ugly. 1464# WARNING: Use '\'' to represent an apostrophe within the trap. 1465# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1466trap 'exit_status=$? 1467 # Save into config.log some information that might help in debugging. 1468 { 1469 echo 1470 1471 cat <<\_ASBOX 1472## ---------------- ## 1473## Cache variables. ## 1474## ---------------- ## 1475_ASBOX 1476 echo 1477 # The following way of writing the cache mishandles newlines in values, 1478( 1479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1480 eval ac_val=\$$ac_var 1481 case $ac_val in #( 1482 *${as_nl}*) 1483 case $ac_var in #( 1484 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1485echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1486 esac 1487 case $ac_var in #( 1488 _ | IFS | as_nl) ;; #( 1489 *) $as_unset $ac_var ;; 1490 esac ;; 1491 esac 1492 done 1493 (set) 2>&1 | 1494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1495 *${as_nl}ac_space=\ *) 1496 sed -n \ 1497 "s/'\''/'\''\\\\'\'''\''/g; 1498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1499 ;; #( 1500 *) 1501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1502 ;; 1503 esac | 1504 sort 1505) 1506 echo 1507 1508 cat <<\_ASBOX 1509## ----------------- ## 1510## Output variables. ## 1511## ----------------- ## 1512_ASBOX 1513 echo 1514 for ac_var in $ac_subst_vars 1515 do 1516 eval ac_val=\$$ac_var 1517 case $ac_val in 1518 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1519 esac 1520 echo "$ac_var='\''$ac_val'\''" 1521 done | sort 1522 echo 1523 1524 if test -n "$ac_subst_files"; then 1525 cat <<\_ASBOX 1526## ------------------- ## 1527## File substitutions. ## 1528## ------------------- ## 1529_ASBOX 1530 echo 1531 for ac_var in $ac_subst_files 1532 do 1533 eval ac_val=\$$ac_var 1534 case $ac_val in 1535 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1536 esac 1537 echo "$ac_var='\''$ac_val'\''" 1538 done | sort 1539 echo 1540 fi 1541 1542 if test -s confdefs.h; then 1543 cat <<\_ASBOX 1544## ----------- ## 1545## confdefs.h. ## 1546## ----------- ## 1547_ASBOX 1548 echo 1549 cat confdefs.h 1550 echo 1551 fi 1552 test "$ac_signal" != 0 && 1553 echo "$as_me: caught signal $ac_signal" 1554 echo "$as_me: exit $exit_status" 1555 } >&5 1556 rm -f core *.core core.conftest.* && 1557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1558 exit $exit_status 1559' 0 1560for ac_signal in 1 2 13 15; do 1561 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1562done 1563ac_signal=0 1564 1565# confdefs.h avoids OS command line length limits that DEFS can exceed. 1566rm -f -r conftest* confdefs.h 1567 1568# Predefined preprocessor variables. 1569 1570cat >>confdefs.h <<_ACEOF 1571#define PACKAGE_NAME "$PACKAGE_NAME" 1572_ACEOF 1573 1574 1575cat >>confdefs.h <<_ACEOF 1576#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1577_ACEOF 1578 1579 1580cat >>confdefs.h <<_ACEOF 1581#define PACKAGE_VERSION "$PACKAGE_VERSION" 1582_ACEOF 1583 1584 1585cat >>confdefs.h <<_ACEOF 1586#define PACKAGE_STRING "$PACKAGE_STRING" 1587_ACEOF 1588 1589 1590cat >>confdefs.h <<_ACEOF 1591#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1592_ACEOF 1593 1594 1595# Let the site file select an alternate cache file if it wants to. 1596# Prefer explicitly selected file to automatically selected ones. 1597if test -n "$CONFIG_SITE"; then 1598 set x "$CONFIG_SITE" 1599elif test "x$prefix" != xNONE; then 1600 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1601else 1602 set x "$ac_default_prefix/share/config.site" \ 1603 "$ac_default_prefix/etc/config.site" 1604fi 1605shift 1606for ac_site_file 1607do 1608 if test -r "$ac_site_file"; then 1609 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1610echo "$as_me: loading site script $ac_site_file" >&6;} 1611 sed 's/^/| /' "$ac_site_file" >&5 1612 . "$ac_site_file" 1613 fi 1614done 1615 1616if test -r "$cache_file"; then 1617 # Some versions of bash will fail to source /dev/null (special 1618 # files actually), so we avoid doing that. 1619 if test -f "$cache_file"; then 1620 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1621echo "$as_me: loading cache $cache_file" >&6;} 1622 case $cache_file in 1623 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1624 *) . "./$cache_file";; 1625 esac 1626 fi 1627else 1628 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1629echo "$as_me: creating cache $cache_file" >&6;} 1630 >$cache_file 1631fi 1632 1633# Check that the precious variables saved in the cache have kept the same 1634# value. 1635ac_cache_corrupted=false 1636for ac_var in $ac_precious_vars; do 1637 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1638 eval ac_new_set=\$ac_env_${ac_var}_set 1639 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1640 eval ac_new_val=\$ac_env_${ac_var}_value 1641 case $ac_old_set,$ac_new_set in 1642 set,) 1643 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1644echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1645 ac_cache_corrupted=: ;; 1646 ,set) 1647 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1648echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1649 ac_cache_corrupted=: ;; 1650 ,);; 1651 *) 1652 if test "x$ac_old_val" != "x$ac_new_val"; then 1653 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1654echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1655 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1656echo "$as_me: former value: $ac_old_val" >&2;} 1657 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1658echo "$as_me: current value: $ac_new_val" >&2;} 1659 ac_cache_corrupted=: 1660 fi;; 1661 esac 1662 # Pass precious variables to config.status. 1663 if test "$ac_new_set" = set; then 1664 case $ac_new_val in 1665 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1666 *) ac_arg=$ac_var=$ac_new_val ;; 1667 esac 1668 case " $ac_configure_args " in 1669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1670 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1671 esac 1672 fi 1673done 1674if $ac_cache_corrupted; then 1675 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1676echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1677 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1678echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1679 { (exit 1); exit 1; }; } 1680fi 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698ac_ext=c 1699ac_cpp='$CPP $CPPFLAGS' 1700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1702ac_compiler_gnu=$ac_cv_c_compiler_gnu 1703 1704 1705am__api_version="1.9" 1706ac_aux_dir= 1707for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1708 if test -f "$ac_dir/install-sh"; then 1709 ac_aux_dir=$ac_dir 1710 ac_install_sh="$ac_aux_dir/install-sh -c" 1711 break 1712 elif test -f "$ac_dir/install.sh"; then 1713 ac_aux_dir=$ac_dir 1714 ac_install_sh="$ac_aux_dir/install.sh -c" 1715 break 1716 elif test -f "$ac_dir/shtool"; then 1717 ac_aux_dir=$ac_dir 1718 ac_install_sh="$ac_aux_dir/shtool install -c" 1719 break 1720 fi 1721done 1722if test -z "$ac_aux_dir"; then 1723 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1724echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1725 { (exit 1); exit 1; }; } 1726fi 1727 1728# These three variables are undocumented and unsupported, 1729# and are intended to be withdrawn in a future Autoconf release. 1730# They can cause serious problems if a builder's source tree is in a directory 1731# whose full name contains unusual characters. 1732ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1733ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1734ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1735 1736 1737# Find a good install program. We prefer a C program (faster), 1738# so one script is as good as another. But avoid the broken or 1739# incompatible versions: 1740# SysV /etc/install, /usr/sbin/install 1741# SunOS /usr/etc/install 1742# IRIX /sbin/install 1743# AIX /bin/install 1744# AmigaOS /C/install, which installs bootblocks on floppy discs 1745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1746# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1748# OS/2's system install, which has a completely different semantic 1749# ./install, which can be erroneously created by make from ./install.sh. 1750{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1751echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1752if test -z "$INSTALL"; then 1753if test "${ac_cv_path_install+set}" = set; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1757for as_dir in $PATH 1758do 1759 IFS=$as_save_IFS 1760 test -z "$as_dir" && as_dir=. 1761 # Account for people who put trailing slashes in PATH elements. 1762case $as_dir/ in 1763 ./ | .// | /cC/* | \ 1764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1765 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1766 /usr/ucb/* ) ;; 1767 *) 1768 # OSF1 and SCO ODT 3.0 have their own names for install. 1769 # Don't use installbsd from OSF since it installs stuff as root 1770 # by default. 1771 for ac_prog in ginstall scoinst install; do 1772 for ac_exec_ext in '' $ac_executable_extensions; do 1773 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1774 if test $ac_prog = install && 1775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1776 # AIX install. It has an incompatible calling convention. 1777 : 1778 elif test $ac_prog = install && 1779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1780 # program-specific install script used by HP pwplus--don't use. 1781 : 1782 else 1783 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1784 break 3 1785 fi 1786 fi 1787 done 1788 done 1789 ;; 1790esac 1791done 1792IFS=$as_save_IFS 1793 1794 1795fi 1796 if test "${ac_cv_path_install+set}" = set; then 1797 INSTALL=$ac_cv_path_install 1798 else 1799 # As a last resort, use the slow shell script. Don't cache a 1800 # value for INSTALL within a source directory, because that will 1801 # break other packages using the cache if that directory is 1802 # removed, or if the value is a relative name. 1803 INSTALL=$ac_install_sh 1804 fi 1805fi 1806{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1807echo "${ECHO_T}$INSTALL" >&6; } 1808 1809# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1810# It thinks the first close brace ends the variable substitution. 1811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1812 1813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1814 1815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1816 1817{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1818echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1819# Just in case 1820sleep 1 1821echo timestamp > conftest.file 1822# Do `set' in a subshell so we don't clobber the current shell's 1823# arguments. Must try -L first in case configure is actually a 1824# symlink; some systems play weird games with the mod time of symlinks 1825# (eg FreeBSD returns the mod time of the symlink's containing 1826# directory). 1827if ( 1828 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1829 if test "$*" = "X"; then 1830 # -L didn't work. 1831 set X `ls -t $srcdir/configure conftest.file` 1832 fi 1833 rm -f conftest.file 1834 if test "$*" != "X $srcdir/configure conftest.file" \ 1835 && test "$*" != "X conftest.file $srcdir/configure"; then 1836 1837 # If neither matched, then we have a broken ls. This can happen 1838 # if, for instance, CONFIG_SHELL is bash and it inherits a 1839 # broken ls alias from the environment. This has actually 1840 # happened. Such a system could not be considered "sane". 1841 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1842alias in your environment" >&5 1843echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1844alias in your environment" >&2;} 1845 { (exit 1); exit 1; }; } 1846 fi 1847 1848 test "$2" = conftest.file 1849 ) 1850then 1851 # Ok. 1852 : 1853else 1854 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1855Check your system clock" >&5 1856echo "$as_me: error: newly created file is older than distributed files! 1857Check your system clock" >&2;} 1858 { (exit 1); exit 1; }; } 1859fi 1860{ echo "$as_me:$LINENO: result: yes" >&5 1861echo "${ECHO_T}yes" >&6; } 1862test "$program_prefix" != NONE && 1863 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1864# Use a double $ so make ignores it. 1865test "$program_suffix" != NONE && 1866 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1867# Double any \ or $. echo might interpret backslashes. 1868# By default was `s,x,x', remove it if useless. 1869cat <<\_ACEOF >conftest.sed 1870s/[\\$]/&&/g;s/;s,x,x,$// 1871_ACEOF 1872program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1873rm -f conftest.sed 1874 1875# expand $ac_aux_dir to an absolute path 1876am_aux_dir=`cd $ac_aux_dir && pwd` 1877 1878test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1879# Use eval to expand $SHELL 1880if eval "$MISSING --run true"; then 1881 am_missing_run="$MISSING --run " 1882else 1883 am_missing_run= 1884 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1885echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1886fi 1887 1888if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1889 # We used to keeping the `.' as first argument, in order to 1890 # allow $(mkdir_p) to be used without argument. As in 1891 # $(mkdir_p) $(somedir) 1892 # where $(somedir) is conditionally defined. However this is wrong 1893 # for two reasons: 1894 # 1. if the package is installed by a user who cannot write `.' 1895 # make install will fail, 1896 # 2. the above comment should most certainly read 1897 # $(mkdir_p) $(DESTDIR)$(somedir) 1898 # so it does not work when $(somedir) is undefined and 1899 # $(DESTDIR) is not. 1900 # To support the latter case, we have to write 1901 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1902 # so the `.' trick is pointless. 1903 mkdir_p='mkdir -p --' 1904else 1905 # On NextStep and OpenStep, the `mkdir' command does not 1906 # recognize any option. It will interpret all options as 1907 # directories to create, and then abort because `.' already 1908 # exists. 1909 for d in ./-p ./--version; 1910 do 1911 test -d $d && rmdir $d 1912 done 1913 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1914 if test -f "$ac_aux_dir/mkinstalldirs"; then 1915 mkdir_p='$(mkinstalldirs)' 1916 else 1917 mkdir_p='$(install_sh) -d' 1918 fi 1919fi 1920 1921for ac_prog in gawk mawk nawk awk 1922do 1923 # Extract the first word of "$ac_prog", so it can be a program name with args. 1924set dummy $ac_prog; ac_word=$2 1925{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1927if test "${ac_cv_prog_AWK+set}" = set; then 1928 echo $ECHO_N "(cached) $ECHO_C" >&6 1929else 1930 if test -n "$AWK"; then 1931 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1932else 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 test -z "$as_dir" && as_dir=. 1938 for ac_exec_ext in '' $ac_executable_extensions; do 1939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1940 ac_cv_prog_AWK="$ac_prog" 1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1942 break 2 1943 fi 1944done 1945done 1946IFS=$as_save_IFS 1947 1948fi 1949fi 1950AWK=$ac_cv_prog_AWK 1951if test -n "$AWK"; then 1952 { echo "$as_me:$LINENO: result: $AWK" >&5 1953echo "${ECHO_T}$AWK" >&6; } 1954else 1955 { echo "$as_me:$LINENO: result: no" >&5 1956echo "${ECHO_T}no" >&6; } 1957fi 1958 1959 1960 test -n "$AWK" && break 1961done 1962 1963{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1964echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 1965set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1966if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 cat >conftest.make <<\_ACEOF 1970SHELL = /bin/sh 1971all: 1972 @echo '@@@%%%=$(MAKE)=@@@%%%' 1973_ACEOF 1974# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1975case `${MAKE-make} -f conftest.make 2>/dev/null` in 1976 *@@@%%%=?*=@@@%%%*) 1977 eval ac_cv_prog_make_${ac_make}_set=yes;; 1978 *) 1979 eval ac_cv_prog_make_${ac_make}_set=no;; 1980esac 1981rm -f conftest.make 1982fi 1983if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 1984 { echo "$as_me:$LINENO: result: yes" >&5 1985echo "${ECHO_T}yes" >&6; } 1986 SET_MAKE= 1987else 1988 { echo "$as_me:$LINENO: result: no" >&5 1989echo "${ECHO_T}no" >&6; } 1990 SET_MAKE="MAKE=${MAKE-make}" 1991fi 1992 1993rm -rf .tst 2>/dev/null 1994mkdir .tst 2>/dev/null 1995if test -d .tst; then 1996 am__leading_dot=. 1997else 1998 am__leading_dot=_ 1999fi 2000rmdir .tst 2>/dev/null 2001 2002# test to see if srcdir already configured 2003if test "`cd $srcdir && pwd`" != "`pwd`" && 2004 test -f $srcdir/config.status; then 2005 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2006echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2007 { (exit 1); exit 1; }; } 2008fi 2009 2010# test whether we have cygpath 2011if test -z "$CYGPATH_W"; then 2012 if (cygpath --version) >/dev/null 2>/dev/null; then 2013 CYGPATH_W='cygpath -w' 2014 else 2015 CYGPATH_W=echo 2016 fi 2017fi 2018 2019 2020# Define the identity of the package. 2021 PACKAGE=libgadu 2022 VERSION=1.5 2023 2024 2025cat >>confdefs.h <<_ACEOF 2026#define PACKAGE "$PACKAGE" 2027_ACEOF 2028 2029 2030cat >>confdefs.h <<_ACEOF 2031#define VERSION "$VERSION" 2032_ACEOF 2033 2034# Some tools Automake needs. 2035 2036ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2037 2038 2039AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2040 2041 2042AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2043 2044 2045AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2046 2047 2048MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2049 2050install_sh=${install_sh-"$am_aux_dir/install-sh"} 2051 2052# Installed binaries are usually stripped using `strip' when the user 2053# run `make install-strip'. However `strip' might not be the right 2054# tool to use in cross-compilation environments, therefore Automake 2055# will honor the `STRIP' environment variable to overrule this program. 2056if test "$cross_compiling" != no; then 2057 if test -n "$ac_tool_prefix"; then 2058 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2059set dummy ${ac_tool_prefix}strip; ac_word=$2 2060{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2062if test "${ac_cv_prog_STRIP+set}" = set; then 2063 echo $ECHO_N "(cached) $ECHO_C" >&6 2064else 2065 if test -n "$STRIP"; then 2066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2067else 2068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2069for as_dir in $PATH 2070do 2071 IFS=$as_save_IFS 2072 test -z "$as_dir" && as_dir=. 2073 for ac_exec_ext in '' $ac_executable_extensions; do 2074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2075 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2077 break 2 2078 fi 2079done 2080done 2081IFS=$as_save_IFS 2082 2083fi 2084fi 2085STRIP=$ac_cv_prog_STRIP 2086if test -n "$STRIP"; then 2087 { echo "$as_me:$LINENO: result: $STRIP" >&5 2088echo "${ECHO_T}$STRIP" >&6; } 2089else 2090 { echo "$as_me:$LINENO: result: no" >&5 2091echo "${ECHO_T}no" >&6; } 2092fi 2093 2094 2095fi 2096if test -z "$ac_cv_prog_STRIP"; then 2097 ac_ct_STRIP=$STRIP 2098 # Extract the first word of "strip", so it can be a program name with args. 2099set dummy strip; ac_word=$2 2100{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2102if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104else 2105 if test -n "$ac_ct_STRIP"; then 2106 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2107else 2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2109for as_dir in $PATH 2110do 2111 IFS=$as_save_IFS 2112 test -z "$as_dir" && as_dir=. 2113 for ac_exec_ext in '' $ac_executable_extensions; do 2114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2115 ac_cv_prog_ac_ct_STRIP="strip" 2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2117 break 2 2118 fi 2119done 2120done 2121IFS=$as_save_IFS 2122 2123fi 2124fi 2125ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2126if test -n "$ac_ct_STRIP"; then 2127 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2128echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2129else 2130 { echo "$as_me:$LINENO: result: no" >&5 2131echo "${ECHO_T}no" >&6; } 2132fi 2133 2134 if test "x$ac_ct_STRIP" = x; then 2135 STRIP=":" 2136 else 2137 case $cross_compiling:$ac_tool_warned in 2138yes:) 2139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2140whose name does not start with the host triplet. If you think this 2141configuration is useful to you, please write to autoconf@gnu.org." >&5 2142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2143whose name does not start with the host triplet. If you think this 2144configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2145ac_tool_warned=yes ;; 2146esac 2147 STRIP=$ac_ct_STRIP 2148 fi 2149else 2150 STRIP="$ac_cv_prog_STRIP" 2151fi 2152 2153fi 2154INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2155 2156# We need awk for the "check" target. The system "awk" is bad on 2157# some platforms. 2158# Always define AMTAR for backward compatibility. 2159 2160AMTAR=${AMTAR-"${am_missing_run}tar"} 2161 2162am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2163 2164 2165 2166 2167 2168ac_config_headers="$ac_config_headers lib/libgadu-config.h" 2169 2170 2171 2172 2173 2174DEPDIR="${am__leading_dot}deps" 2175 2176ac_config_commands="$ac_config_commands depfiles" 2177 2178 2179am_make=${MAKE-make} 2180cat > confinc << 'END' 2181am__doit: 2182 @echo done 2183.PHONY: am__doit 2184END 2185# If we don't find an include directive, just comment out the code. 2186{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2187echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2188am__include="#" 2189am__quote= 2190_am_result=none 2191# First try GNU make style include. 2192echo "include confinc" > confmf 2193# We grep out `Entering directory' and `Leaving directory' 2194# messages which can occur if `w' ends up in MAKEFLAGS. 2195# In particular we don't look at `^make:' because GNU make might 2196# be invoked under some other name (usually "gmake"), in which 2197# case it prints its new name instead of `make'. 2198if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2199 am__include=include 2200 am__quote= 2201 _am_result=GNU 2202fi 2203# Now try BSD make style include. 2204if test "$am__include" = "#"; then 2205 echo '.include "confinc"' > confmf 2206 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2207 am__include=.include 2208 am__quote="\"" 2209 _am_result=BSD 2210 fi 2211fi 2212 2213 2214{ echo "$as_me:$LINENO: result: $_am_result" >&5 2215echo "${ECHO_T}$_am_result" >&6; } 2216rm -f confinc confmf 2217 2218# Check whether --enable-dependency-tracking was given. 2219if test "${enable_dependency_tracking+set}" = set; then 2220 enableval=$enable_dependency_tracking; 2221fi 2222 2223if test "x$enable_dependency_tracking" != xno; then 2224 am_depcomp="$ac_aux_dir/depcomp" 2225 AMDEPBACKSLASH='\' 2226fi 2227 2228 2229if test "x$enable_dependency_tracking" != xno; then 2230 AMDEP_TRUE= 2231 AMDEP_FALSE='#' 2232else 2233 AMDEP_TRUE='#' 2234 AMDEP_FALSE= 2235fi 2236 2237 2238 2239ac_ext=c 2240ac_cpp='$CPP $CPPFLAGS' 2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2243ac_compiler_gnu=$ac_cv_c_compiler_gnu 2244if test -n "$ac_tool_prefix"; then 2245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2246set dummy ${ac_tool_prefix}gcc; ac_word=$2 2247{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2249if test "${ac_cv_prog_CC+set}" = set; then 2250 echo $ECHO_N "(cached) $ECHO_C" >&6 2251else 2252 if test -n "$CC"; then 2253 ac_cv_prog_CC="$CC" # Let the user override the test. 2254else 2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2256for as_dir in $PATH 2257do 2258 IFS=$as_save_IFS 2259 test -z "$as_dir" && as_dir=. 2260 for ac_exec_ext in '' $ac_executable_extensions; do 2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2262 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2264 break 2 2265 fi 2266done 2267done 2268IFS=$as_save_IFS 2269 2270fi 2271fi 2272CC=$ac_cv_prog_CC 2273if test -n "$CC"; then 2274 { echo "$as_me:$LINENO: result: $CC" >&5 2275echo "${ECHO_T}$CC" >&6; } 2276else 2277 { echo "$as_me:$LINENO: result: no" >&5 2278echo "${ECHO_T}no" >&6; } 2279fi 2280 2281 2282fi 2283if test -z "$ac_cv_prog_CC"; then 2284 ac_ct_CC=$CC 2285 # Extract the first word of "gcc", so it can be a program name with args. 2286set dummy gcc; ac_word=$2 2287{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2290 echo $ECHO_N "(cached) $ECHO_C" >&6 2291else 2292 if test -n "$ac_ct_CC"; then 2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2294else 2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2296for as_dir in $PATH 2297do 2298 IFS=$as_save_IFS 2299 test -z "$as_dir" && as_dir=. 2300 for ac_exec_ext in '' $ac_executable_extensions; do 2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2302 ac_cv_prog_ac_ct_CC="gcc" 2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2304 break 2 2305 fi 2306done 2307done 2308IFS=$as_save_IFS 2309 2310fi 2311fi 2312ac_ct_CC=$ac_cv_prog_ac_ct_CC 2313if test -n "$ac_ct_CC"; then 2314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2315echo "${ECHO_T}$ac_ct_CC" >&6; } 2316else 2317 { echo "$as_me:$LINENO: result: no" >&5 2318echo "${ECHO_T}no" >&6; } 2319fi 2320 2321 if test "x$ac_ct_CC" = x; then 2322 CC="" 2323 else 2324 case $cross_compiling:$ac_tool_warned in 2325yes:) 2326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2327whose name does not start with the host triplet. If you think this 2328configuration is useful to you, please write to autoconf@gnu.org." >&5 2329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2330whose name does not start with the host triplet. If you think this 2331configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2332ac_tool_warned=yes ;; 2333esac 2334 CC=$ac_ct_CC 2335 fi 2336else 2337 CC="$ac_cv_prog_CC" 2338fi 2339 2340if test -z "$CC"; then 2341 if test -n "$ac_tool_prefix"; then 2342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2343set dummy ${ac_tool_prefix}cc; ac_word=$2 2344{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2346if test "${ac_cv_prog_CC+set}" = set; then 2347 echo $ECHO_N "(cached) $ECHO_C" >&6 2348else 2349 if test -n "$CC"; then 2350 ac_cv_prog_CC="$CC" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_CC="${ac_tool_prefix}cc" 2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369CC=$ac_cv_prog_CC 2370if test -n "$CC"; then 2371 { echo "$as_me:$LINENO: result: $CC" >&5 2372echo "${ECHO_T}$CC" >&6; } 2373else 2374 { echo "$as_me:$LINENO: result: no" >&5 2375echo "${ECHO_T}no" >&6; } 2376fi 2377 2378 2379 fi 2380fi 2381if test -z "$CC"; then 2382 # Extract the first word of "cc", so it can be a program name with args. 2383set dummy cc; ac_word=$2 2384{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2386if test "${ac_cv_prog_CC+set}" = set; then 2387 echo $ECHO_N "(cached) $ECHO_C" >&6 2388else 2389 if test -n "$CC"; then 2390 ac_cv_prog_CC="$CC" # Let the user override the test. 2391else 2392 ac_prog_rejected=no 2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394for as_dir in $PATH 2395do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 for ac_exec_ext in '' $ac_executable_extensions; do 2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2401 ac_prog_rejected=yes 2402 continue 2403 fi 2404 ac_cv_prog_CC="cc" 2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2406 break 2 2407 fi 2408done 2409done 2410IFS=$as_save_IFS 2411 2412if test $ac_prog_rejected = yes; then 2413 # We found a bogon in the path, so make sure we never use it. 2414 set dummy $ac_cv_prog_CC 2415 shift 2416 if test $# != 0; then 2417 # We chose a different compiler from the bogus one. 2418 # However, it has the same basename, so the bogon will be chosen 2419 # first if we set CC to just the basename; use the full file name. 2420 shift 2421 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2422 fi 2423fi 2424fi 2425fi 2426CC=$ac_cv_prog_CC 2427if test -n "$CC"; then 2428 { echo "$as_me:$LINENO: result: $CC" >&5 2429echo "${ECHO_T}$CC" >&6; } 2430else 2431 { echo "$as_me:$LINENO: result: no" >&5 2432echo "${ECHO_T}no" >&6; } 2433fi 2434 2435 2436fi 2437if test -z "$CC"; then 2438 if test -n "$ac_tool_prefix"; then 2439 for ac_prog in cl.exe 2440 do 2441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2442set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2443{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2445if test "${ac_cv_prog_CC+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447else 2448 if test -n "$CC"; then 2449 ac_cv_prog_CC="$CC" # Let the user override the test. 2450else 2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2452for as_dir in $PATH 2453do 2454 IFS=$as_save_IFS 2455 test -z "$as_dir" && as_dir=. 2456 for ac_exec_ext in '' $ac_executable_extensions; do 2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2460 break 2 2461 fi 2462done 2463done 2464IFS=$as_save_IFS 2465 2466fi 2467fi 2468CC=$ac_cv_prog_CC 2469if test -n "$CC"; then 2470 { echo "$as_me:$LINENO: result: $CC" >&5 2471echo "${ECHO_T}$CC" >&6; } 2472else 2473 { echo "$as_me:$LINENO: result: no" >&5 2474echo "${ECHO_T}no" >&6; } 2475fi 2476 2477 2478 test -n "$CC" && break 2479 done 2480fi 2481if test -z "$CC"; then 2482 ac_ct_CC=$CC 2483 for ac_prog in cl.exe 2484do 2485 # Extract the first word of "$ac_prog", so it can be a program name with args. 2486set dummy $ac_prog; ac_word=$2 2487{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2489if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491else 2492 if test -n "$ac_ct_CC"; then 2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2494else 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2502 ac_cv_prog_ac_ct_CC="$ac_prog" 2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506done 2507done 2508IFS=$as_save_IFS 2509 2510fi 2511fi 2512ac_ct_CC=$ac_cv_prog_ac_ct_CC 2513if test -n "$ac_ct_CC"; then 2514 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2515echo "${ECHO_T}$ac_ct_CC" >&6; } 2516else 2517 { echo "$as_me:$LINENO: result: no" >&5 2518echo "${ECHO_T}no" >&6; } 2519fi 2520 2521 2522 test -n "$ac_ct_CC" && break 2523done 2524 2525 if test "x$ac_ct_CC" = x; then 2526 CC="" 2527 else 2528 case $cross_compiling:$ac_tool_warned in 2529yes:) 2530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2531whose name does not start with the host triplet. If you think this 2532configuration is useful to you, please write to autoconf@gnu.org." >&5 2533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2534whose name does not start with the host triplet. If you think this 2535configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2536ac_tool_warned=yes ;; 2537esac 2538 CC=$ac_ct_CC 2539 fi 2540fi 2541 2542fi 2543 2544 2545test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2546See \`config.log' for more details." >&5 2547echo "$as_me: error: no acceptable C compiler found in \$PATH 2548See \`config.log' for more details." >&2;} 2549 { (exit 1); exit 1; }; } 2550 2551# Provide some information about the compiler. 2552echo "$as_me:$LINENO: checking for C compiler version" >&5 2553ac_compiler=`set X $ac_compile; echo $2` 2554{ (ac_try="$ac_compiler --version >&5" 2555case "(($ac_try" in 2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2557 *) ac_try_echo=$ac_try;; 2558esac 2559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2560 (eval "$ac_compiler --version >&5") 2>&5 2561 ac_status=$? 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); } 2564{ (ac_try="$ac_compiler -v >&5" 2565case "(($ac_try" in 2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2567 *) ac_try_echo=$ac_try;; 2568esac 2569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2570 (eval "$ac_compiler -v >&5") 2>&5 2571 ac_status=$? 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); } 2574{ (ac_try="$ac_compiler -V >&5" 2575case "(($ac_try" in 2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2577 *) ac_try_echo=$ac_try;; 2578esac 2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2580 (eval "$ac_compiler -V >&5") 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); } 2584 2585cat >conftest.$ac_ext <<_ACEOF 2586/* confdefs.h. */ 2587_ACEOF 2588cat confdefs.h >>conftest.$ac_ext 2589cat >>conftest.$ac_ext <<_ACEOF 2590/* end confdefs.h. */ 2591 2592int 2593main () 2594{ 2595 2596 ; 2597 return 0; 2598} 2599_ACEOF 2600ac_clean_files_save=$ac_clean_files 2601ac_clean_files="$ac_clean_files a.out a.exe b.out" 2602# Try to create an executable without -o first, disregard a.out. 2603# It will help us diagnose broken compilers, and finding out an intuition 2604# of exeext. 2605{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2606echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2607ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2608# 2609# List of possible output files, starting from the most likely. 2610# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2611# only as a last resort. b.out is created by i960 compilers. 2612ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2613# 2614# The IRIX 6 linker writes into existing files which may not be 2615# executable, retaining their permissions. Remove them first so a 2616# subsequent execution test works. 2617ac_rmfiles= 2618for ac_file in $ac_files 2619do 2620 case $ac_file in 2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2622 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2623 esac 2624done 2625rm -f $ac_rmfiles 2626 2627if { (ac_try="$ac_link_default" 2628case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631esac 2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2633 (eval "$ac_link_default") 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); }; then 2637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2638# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2639# in a Makefile. We should not override ac_cv_exeext if it was cached, 2640# so that the user can short-circuit this test for compilers unknown to 2641# Autoconf. 2642for ac_file in $ac_files 2643do 2644 test -f "$ac_file" || continue 2645 case $ac_file in 2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2647 ;; 2648 [ab].out ) 2649 # We found the default executable, but exeext='' is most 2650 # certainly right. 2651 break;; 2652 *.* ) 2653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2654 then :; else 2655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2656 fi 2657 # We set ac_cv_exeext here because the later test for it is not 2658 # safe: cross compilers may not add the suffix if given an `-o' 2659 # argument, so we may need to know it at that point already. 2660 # Even if this section looks crufty: it has the advantage of 2661 # actually working. 2662 break;; 2663 * ) 2664 break;; 2665 esac 2666done 2667test "$ac_cv_exeext" = no && ac_cv_exeext= 2668 2669else 2670 echo "$as_me: failed program was:" >&5 2671sed 's/^/| /' conftest.$ac_ext >&5 2672 2673{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2674See \`config.log' for more details." >&5 2675echo "$as_me: error: C compiler cannot create executables 2676See \`config.log' for more details." >&2;} 2677 { (exit 77); exit 77; }; } 2678fi 2679 2680ac_exeext=$ac_cv_exeext 2681{ echo "$as_me:$LINENO: result: $ac_file" >&5 2682echo "${ECHO_T}$ac_file" >&6; } 2683 2684# Check that the compiler produces executables we can run. If not, either 2685# the compiler is broken, or we cross compile. 2686{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2687echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2688# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2689# If not cross compiling, check that we can run a simple program. 2690if test "$cross_compiling" != yes; then 2691 if { ac_try='./$ac_file' 2692 { (case "(($ac_try" in 2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2694 *) ac_try_echo=$ac_try;; 2695esac 2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2697 (eval "$ac_try") 2>&5 2698 ac_status=$? 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); }; }; then 2701 cross_compiling=no 2702 else 2703 if test "$cross_compiling" = maybe; then 2704 cross_compiling=yes 2705 else 2706 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2707If you meant to cross compile, use \`--host'. 2708See \`config.log' for more details." >&5 2709echo "$as_me: error: cannot run C compiled programs. 2710If you meant to cross compile, use \`--host'. 2711See \`config.log' for more details." >&2;} 2712 { (exit 1); exit 1; }; } 2713 fi 2714 fi 2715fi 2716{ echo "$as_me:$LINENO: result: yes" >&5 2717echo "${ECHO_T}yes" >&6; } 2718 2719rm -f a.out a.exe conftest$ac_cv_exeext b.out 2720ac_clean_files=$ac_clean_files_save 2721# Check that the compiler produces executables we can run. If not, either 2722# the compiler is broken, or we cross compile. 2723{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2724echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2725{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2726echo "${ECHO_T}$cross_compiling" >&6; } 2727 2728{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2729echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2730if { (ac_try="$ac_link" 2731case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2736 (eval "$ac_link") 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); }; then 2740 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2741# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2742# work properly (i.e., refer to `conftest.exe'), while it won't with 2743# `rm'. 2744for ac_file in conftest.exe conftest conftest.*; do 2745 test -f "$ac_file" || continue 2746 case $ac_file in 2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2749 break;; 2750 * ) break;; 2751 esac 2752done 2753else 2754 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2755See \`config.log' for more details." >&5 2756echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2757See \`config.log' for more details." >&2;} 2758 { (exit 1); exit 1; }; } 2759fi 2760 2761rm -f conftest$ac_cv_exeext 2762{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2763echo "${ECHO_T}$ac_cv_exeext" >&6; } 2764 2765rm -f conftest.$ac_ext 2766EXEEXT=$ac_cv_exeext 2767ac_exeext=$EXEEXT 2768{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2769echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2770if test "${ac_cv_objext+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772else 2773 cat >conftest.$ac_ext <<_ACEOF 2774/* confdefs.h. */ 2775_ACEOF 2776cat confdefs.h >>conftest.$ac_ext 2777cat >>conftest.$ac_ext <<_ACEOF 2778/* end confdefs.h. */ 2779 2780int 2781main () 2782{ 2783 2784 ; 2785 return 0; 2786} 2787_ACEOF 2788rm -f conftest.o conftest.obj 2789if { (ac_try="$ac_compile" 2790case "(($ac_try" in 2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2792 *) ac_try_echo=$ac_try;; 2793esac 2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2795 (eval "$ac_compile") 2>&5 2796 ac_status=$? 2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2798 (exit $ac_status); }; then 2799 for ac_file in conftest.o conftest.obj conftest.*; do 2800 test -f "$ac_file" || continue; 2801 case $ac_file in 2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2804 break;; 2805 esac 2806done 2807else 2808 echo "$as_me: failed program was:" >&5 2809sed 's/^/| /' conftest.$ac_ext >&5 2810 2811{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2812See \`config.log' for more details." >&5 2813echo "$as_me: error: cannot compute suffix of object files: cannot compile 2814See \`config.log' for more details." >&2;} 2815 { (exit 1); exit 1; }; } 2816fi 2817 2818rm -f conftest.$ac_cv_objext conftest.$ac_ext 2819fi 2820{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2821echo "${ECHO_T}$ac_cv_objext" >&6; } 2822OBJEXT=$ac_cv_objext 2823ac_objext=$OBJEXT 2824{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2825echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2826if test "${ac_cv_c_compiler_gnu+set}" = set; then 2827 echo $ECHO_N "(cached) $ECHO_C" >&6 2828else 2829 cat >conftest.$ac_ext <<_ACEOF 2830/* confdefs.h. */ 2831_ACEOF 2832cat confdefs.h >>conftest.$ac_ext 2833cat >>conftest.$ac_ext <<_ACEOF 2834/* end confdefs.h. */ 2835 2836int 2837main () 2838{ 2839#ifndef __GNUC__ 2840 choke me 2841#endif 2842 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847rm -f conftest.$ac_objext 2848if { (ac_try="$ac_compile" 2849case "(($ac_try" in 2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *) ac_try_echo=$ac_try;; 2852esac 2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2854 (eval "$ac_compile") 2>conftest.er1 2855 ac_status=$? 2856 grep -v '^ *+' conftest.er1 >conftest.err 2857 rm -f conftest.er1 2858 cat conftest.err >&5 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); } && 2861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2862 { (case "(($ac_try" in 2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2864 *) ac_try_echo=$ac_try;; 2865esac 2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2867 (eval "$ac_try") 2>&5 2868 ac_status=$? 2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2870 (exit $ac_status); }; } && 2871 { ac_try='test -s conftest.$ac_objext' 2872 { (case "(($ac_try" in 2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2874 *) ac_try_echo=$ac_try;; 2875esac 2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2877 (eval "$ac_try") 2>&5 2878 ac_status=$? 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); }; }; then 2881 ac_compiler_gnu=yes 2882else 2883 echo "$as_me: failed program was:" >&5 2884sed 's/^/| /' conftest.$ac_ext >&5 2885 2886 ac_compiler_gnu=no 2887fi 2888 2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2890ac_cv_c_compiler_gnu=$ac_compiler_gnu 2891 2892fi 2893{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2894echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2895GCC=`test $ac_compiler_gnu = yes && echo yes` 2896ac_test_CFLAGS=${CFLAGS+set} 2897ac_save_CFLAGS=$CFLAGS 2898{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2899echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2900if test "${ac_cv_prog_cc_g+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902else 2903 ac_save_c_werror_flag=$ac_c_werror_flag 2904 ac_c_werror_flag=yes 2905 ac_cv_prog_cc_g=no 2906 CFLAGS="-g" 2907 cat >conftest.$ac_ext <<_ACEOF 2908/* confdefs.h. */ 2909_ACEOF 2910cat confdefs.h >>conftest.$ac_ext 2911cat >>conftest.$ac_ext <<_ACEOF 2912/* end confdefs.h. */ 2913 2914int 2915main () 2916{ 2917 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922rm -f conftest.$ac_objext 2923if { (ac_try="$ac_compile" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2929 (eval "$ac_compile") 2>conftest.er1 2930 ac_status=$? 2931 grep -v '^ *+' conftest.er1 >conftest.err 2932 rm -f conftest.er1 2933 cat conftest.err >&5 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); } && 2936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2937 { (case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2942 (eval "$ac_try") 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; } && 2946 { ac_try='test -s conftest.$ac_objext' 2947 { (case "(($ac_try" in 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949 *) ac_try_echo=$ac_try;; 2950esac 2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2952 (eval "$ac_try") 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; }; then 2956 ac_cv_prog_cc_g=yes 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961 CFLAGS="" 2962 cat >conftest.$ac_ext <<_ACEOF 2963/* confdefs.h. */ 2964_ACEOF 2965cat confdefs.h >>conftest.$ac_ext 2966cat >>conftest.$ac_ext <<_ACEOF 2967/* end confdefs.h. */ 2968 2969int 2970main () 2971{ 2972 2973 ; 2974 return 0; 2975} 2976_ACEOF 2977rm -f conftest.$ac_objext 2978if { (ac_try="$ac_compile" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2984 (eval "$ac_compile") 2>conftest.er1 2985 ac_status=$? 2986 grep -v '^ *+' conftest.er1 >conftest.err 2987 rm -f conftest.er1 2988 cat conftest.err >&5 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); } && 2991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2992 { (case "(($ac_try" in 2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2994 *) ac_try_echo=$ac_try;; 2995esac 2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2997 (eval "$ac_try") 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; } && 3001 { ac_try='test -s conftest.$ac_objext' 3002 { (case "(($ac_try" in 3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3004 *) ac_try_echo=$ac_try;; 3005esac 3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3007 (eval "$ac_try") 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; }; then 3011 : 3012else 3013 echo "$as_me: failed program was:" >&5 3014sed 's/^/| /' conftest.$ac_ext >&5 3015 3016 ac_c_werror_flag=$ac_save_c_werror_flag 3017 CFLAGS="-g" 3018 cat >conftest.$ac_ext <<_ACEOF 3019/* confdefs.h. */ 3020_ACEOF 3021cat confdefs.h >>conftest.$ac_ext 3022cat >>conftest.$ac_ext <<_ACEOF 3023/* end confdefs.h. */ 3024 3025int 3026main () 3027{ 3028 3029 ; 3030 return 0; 3031} 3032_ACEOF 3033rm -f conftest.$ac_objext 3034if { (ac_try="$ac_compile" 3035case "(($ac_try" in 3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3037 *) ac_try_echo=$ac_try;; 3038esac 3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3040 (eval "$ac_compile") 2>conftest.er1 3041 ac_status=$? 3042 grep -v '^ *+' conftest.er1 >conftest.err 3043 rm -f conftest.er1 3044 cat conftest.err >&5 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } && 3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3048 { (case "(($ac_try" in 3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3050 *) ac_try_echo=$ac_try;; 3051esac 3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3053 (eval "$ac_try") 2>&5 3054 ac_status=$? 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; } && 3057 { ac_try='test -s conftest.$ac_objext' 3058 { (case "(($ac_try" in 3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3060 *) ac_try_echo=$ac_try;; 3061esac 3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3063 (eval "$ac_try") 2>&5 3064 ac_status=$? 3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3066 (exit $ac_status); }; }; then 3067 ac_cv_prog_cc_g=yes 3068else 3069 echo "$as_me: failed program was:" >&5 3070sed 's/^/| /' conftest.$ac_ext >&5 3071 3072 3073fi 3074 3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3076fi 3077 3078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3079fi 3080 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082 ac_c_werror_flag=$ac_save_c_werror_flag 3083fi 3084{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3086if test "$ac_test_CFLAGS" = set; then 3087 CFLAGS=$ac_save_CFLAGS 3088elif test $ac_cv_prog_cc_g = yes; then 3089 if test "$GCC" = yes; then 3090 CFLAGS="-g -O2" 3091 else 3092 CFLAGS="-g" 3093 fi 3094else 3095 if test "$GCC" = yes; then 3096 CFLAGS="-O2" 3097 else 3098 CFLAGS= 3099 fi 3100fi 3101{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3102echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3103if test "${ac_cv_prog_cc_c89+set}" = set; then 3104 echo $ECHO_N "(cached) $ECHO_C" >&6 3105else 3106 ac_cv_prog_cc_c89=no 3107ac_save_CC=$CC 3108cat >conftest.$ac_ext <<_ACEOF 3109/* confdefs.h. */ 3110_ACEOF 3111cat confdefs.h >>conftest.$ac_ext 3112cat >>conftest.$ac_ext <<_ACEOF 3113/* end confdefs.h. */ 3114#include <stdarg.h> 3115#include <stdio.h> 3116#include <sys/types.h> 3117#include <sys/stat.h> 3118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3119struct buf { int x; }; 3120FILE * (*rcsopen) (struct buf *, struct stat *, int); 3121static char *e (p, i) 3122 char **p; 3123 int i; 3124{ 3125 return p[i]; 3126} 3127static char *f (char * (*g) (char **, int), char **p, ...) 3128{ 3129 char *s; 3130 va_list v; 3131 va_start (v,p); 3132 s = g (p, va_arg (v,int)); 3133 va_end (v); 3134 return s; 3135} 3136 3137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3138 function prototypes and stuff, but not '\xHH' hex character constants. 3139 These don't provoke an error unfortunately, instead are silently treated 3140 as 'x'. The following induces an error, until -std is added to get 3141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3142 array size at least. It's necessary to write '\x00'==0 to get something 3143 that's true only with -std. */ 3144int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3145 3146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3147 inside strings and character constants. */ 3148#define FOO(x) 'x' 3149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3150 3151int test (int i, double x); 3152struct s1 {int (*f) (int a);}; 3153struct s2 {int (*f) (double a);}; 3154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3155int argc; 3156char **argv; 3157int 3158main () 3159{ 3160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3167do 3168 CC="$ac_save_CC $ac_arg" 3169 rm -f conftest.$ac_objext 3170if { (ac_try="$ac_compile" 3171case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3176 (eval "$ac_compile") 2>conftest.er1 3177 ac_status=$? 3178 grep -v '^ *+' conftest.er1 >conftest.err 3179 rm -f conftest.er1 3180 cat conftest.err >&5 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); } && 3183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3184 { (case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3189 (eval "$ac_try") 2>&5 3190 ac_status=$? 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 (exit $ac_status); }; } && 3193 { ac_try='test -s conftest.$ac_objext' 3194 { (case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3199 (eval "$ac_try") 2>&5 3200 ac_status=$? 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); }; }; then 3203 ac_cv_prog_cc_c89=$ac_arg 3204else 3205 echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 3209fi 3210 3211rm -f core conftest.err conftest.$ac_objext 3212 test "x$ac_cv_prog_cc_c89" != "xno" && break 3213done 3214rm -f conftest.$ac_ext 3215CC=$ac_save_CC 3216 3217fi 3218# AC_CACHE_VAL 3219case "x$ac_cv_prog_cc_c89" in 3220 x) 3221 { echo "$as_me:$LINENO: result: none needed" >&5 3222echo "${ECHO_T}none needed" >&6; } ;; 3223 xno) 3224 { echo "$as_me:$LINENO: result: unsupported" >&5 3225echo "${ECHO_T}unsupported" >&6; } ;; 3226 *) 3227 CC="$CC $ac_cv_prog_cc_c89" 3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3229echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3230esac 3231 3232 3233ac_ext=c 3234ac_cpp='$CPP $CPPFLAGS' 3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238 3239depcc="$CC" am_compiler_list= 3240 3241{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3242echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3243if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3244 echo $ECHO_N "(cached) $ECHO_C" >&6 3245else 3246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3247 # We make a subdir and do the tests there. Otherwise we can end up 3248 # making bogus files that we don't know about and never remove. For 3249 # instance it was reported that on HP-UX the gcc test will end up 3250 # making a dummy file named `D' -- because `-MD' means `put the output 3251 # in D'. 3252 mkdir conftest.dir 3253 # Copy depcomp to subdir because otherwise we won't find it if we're 3254 # using a relative directory. 3255 cp "$am_depcomp" conftest.dir 3256 cd conftest.dir 3257 # We will build objects and dependencies in a subdirectory because 3258 # it helps to detect inapplicable dependency modes. For instance 3259 # both Tru64's cc and ICC support -MD to output dependencies as a 3260 # side effect of compilation, but ICC will put the dependencies in 3261 # the current directory while Tru64 will put them in the object 3262 # directory. 3263 mkdir sub 3264 3265 am_cv_CC_dependencies_compiler_type=none 3266 if test "$am_compiler_list" = ""; then 3267 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3268 fi 3269 for depmode in $am_compiler_list; do 3270 # Setup a source with many dependencies, because some compilers 3271 # like to wrap large dependency lists on column 80 (with \), and 3272 # we should not choose a depcomp mode which is confused by this. 3273 # 3274 # We need to recreate these files for each test, as the compiler may 3275 # overwrite some of them when testing with obscure command lines. 3276 # This happens at least with the AIX C compiler. 3277 : > sub/conftest.c 3278 for i in 1 2 3 4 5 6; do 3279 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3280 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3281 # Solaris 8's {/usr,}/bin/sh. 3282 touch sub/conftst$i.h 3283 done 3284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3285 3286 case $depmode in 3287 nosideeffect) 3288 # after this tag, mechanisms are not by side-effect, so they'll 3289 # only be used when explicitly requested 3290 if test "x$enable_dependency_tracking" = xyes; then 3291 continue 3292 else 3293 break 3294 fi 3295 ;; 3296 none) break ;; 3297 esac 3298 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3299 # mode. It turns out that the SunPro C++ compiler does not properly 3300 # handle `-M -o', and we need to detect this. 3301 if depmode=$depmode \ 3302 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3304 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3305 >/dev/null 2>conftest.err && 3306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3307 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3309 # icc doesn't choke on unknown options, it will just issue warnings 3310 # or remarks (even with -Werror). So we grep stderr for any message 3311 # that says an option was ignored or not supported. 3312 # When given -MP, icc 7.0 and 7.1 complain thusly: 3313 # icc: Command line warning: ignoring option '-M'; no argument required 3314 # The diagnosis changed in icc 8.0: 3315 # icc: Command line remark: option '-MP' not supported 3316 if (grep 'ignoring option' conftest.err || 3317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3318 am_cv_CC_dependencies_compiler_type=$depmode 3319 break 3320 fi 3321 fi 3322 done 3323 3324 cd .. 3325 rm -rf conftest.dir 3326else 3327 am_cv_CC_dependencies_compiler_type=none 3328fi 3329 3330fi 3331{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3332echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3333CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3334 3335 3336 3337if 3338 test "x$enable_dependency_tracking" != xno \ 3339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3340 am__fastdepCC_TRUE= 3341 am__fastdepCC_FALSE='#' 3342else 3343 am__fastdepCC_TRUE='#' 3344 am__fastdepCC_FALSE= 3345fi 3346 3347 3348 3349{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3350echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 3351if test "${ac_cv_c_const+set}" = set; then 3352 echo $ECHO_N "(cached) $ECHO_C" >&6 3353else 3354 cat >conftest.$ac_ext <<_ACEOF 3355/* confdefs.h. */ 3356_ACEOF 3357cat confdefs.h >>conftest.$ac_ext 3358cat >>conftest.$ac_ext <<_ACEOF 3359/* end confdefs.h. */ 3360 3361int 3362main () 3363{ 3364/* FIXME: Include the comments suggested by Paul. */ 3365#ifndef __cplusplus 3366 /* Ultrix mips cc rejects this. */ 3367 typedef int charset[2]; 3368 const charset x; 3369 /* SunOS 4.1.1 cc rejects this. */ 3370 char const *const *ccp; 3371 char **p; 3372 /* NEC SVR4.0.2 mips cc rejects this. */ 3373 struct point {int x, y;}; 3374 static struct point const zero = {0,0}; 3375 /* AIX XL C 1.02.0.0 rejects this. 3376 It does not let you subtract one const X* pointer from another in 3377 an arm of an if-expression whose if-part is not a constant 3378 expression */ 3379 const char *g = "string"; 3380 ccp = &g + (g ? g-g : 0); 3381 /* HPUX 7.0 cc rejects these. */ 3382 ++ccp; 3383 p = (char**) ccp; 3384 ccp = (char const *const *) p; 3385 { /* SCO 3.2v4 cc rejects this. */ 3386 char *t; 3387 char const *s = 0 ? (char *) 0 : (char const *) 0; 3388 3389 *t++ = 0; 3390 if (s) return 0; 3391 } 3392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3393 int x[] = {25, 17}; 3394 const int *foo = &x[0]; 3395 ++foo; 3396 } 3397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3398 typedef const int *iptr; 3399 iptr p = 0; 3400 ++p; 3401 } 3402 { /* AIX XL C 1.02.0.0 rejects this saying 3403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3404 struct s { int j; const int *ap[3]; }; 3405 struct s *b; b->j = 5; 3406 } 3407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3408 const int foo = 10; 3409 if (!foo) return 0; 3410 } 3411 return !x[0] && !zero.x; 3412#endif 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418rm -f conftest.$ac_objext 3419if { (ac_try="$ac_compile" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3425 (eval "$ac_compile") 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && 3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3433 { (case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3438 (eval "$ac_try") 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; } && 3442 { ac_try='test -s conftest.$ac_objext' 3443 { (case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3448 (eval "$ac_try") 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); }; }; then 3452 ac_cv_c_const=yes 3453else 3454 echo "$as_me: failed program was:" >&5 3455sed 's/^/| /' conftest.$ac_ext >&5 3456 3457 ac_cv_c_const=no 3458fi 3459 3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3461fi 3462{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3463echo "${ECHO_T}$ac_cv_c_const" >&6; } 3464if test $ac_cv_c_const = no; then 3465 3466cat >>confdefs.h <<\_ACEOF 3467#define const 3468_ACEOF 3469 3470fi 3471 3472 3473 3474 3475 3476 3477 3478echo "/* Generated automatically by configure. Do not edit. */" > lib/libgadu-config.h 3479cat lib/libgadu-config.h.in >> lib/libgadu-config.h 3480 3481 3482ac_ext=c 3483ac_cpp='$CPP $CPPFLAGS' 3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3486ac_compiler_gnu=$ac_cv_c_compiler_gnu 3487{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3488echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3489# On Suns, sometimes $CPP names a directory. 3490if test -n "$CPP" && test -d "$CPP"; then 3491 CPP= 3492fi 3493if test -z "$CPP"; then 3494 if test "${ac_cv_prog_CPP+set}" = set; then 3495 echo $ECHO_N "(cached) $ECHO_C" >&6 3496else 3497 # Double quotes because CPP needs to be expanded 3498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3499 do 3500 ac_preproc_ok=false 3501for ac_c_preproc_warn_flag in '' yes 3502do 3503 # Use a header file that comes with gcc, so configuring glibc 3504 # with a fresh cross-compiler works. 3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3506 # <limits.h> exists even on freestanding compilers. 3507 # On the NeXT, cc -E runs the code through the compiler's parser, 3508 # not just through cpp. "Syntax error" is here to catch this case. 3509 cat >conftest.$ac_ext <<_ACEOF 3510/* confdefs.h. */ 3511_ACEOF 3512cat confdefs.h >>conftest.$ac_ext 3513cat >>conftest.$ac_ext <<_ACEOF 3514/* end confdefs.h. */ 3515#ifdef __STDC__ 3516# include <limits.h> 3517#else 3518# include <assert.h> 3519#endif 3520 Syntax error 3521_ACEOF 3522if { (ac_try="$ac_cpp conftest.$ac_ext" 3523case "(($ac_try" in 3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3525 *) ac_try_echo=$ac_try;; 3526esac 3527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3529 ac_status=$? 3530 grep -v '^ *+' conftest.er1 >conftest.err 3531 rm -f conftest.er1 3532 cat conftest.err >&5 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); } >/dev/null; then 3535 if test -s conftest.err; then 3536 ac_cpp_err=$ac_c_preproc_warn_flag 3537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3538 else 3539 ac_cpp_err= 3540 fi 3541else 3542 ac_cpp_err=yes 3543fi 3544if test -z "$ac_cpp_err"; then 3545 : 3546else 3547 echo "$as_me: failed program was:" >&5 3548sed 's/^/| /' conftest.$ac_ext >&5 3549 3550 # Broken: fails on valid input. 3551continue 3552fi 3553 3554rm -f conftest.err conftest.$ac_ext 3555 3556 # OK, works on sane cases. Now check whether nonexistent headers 3557 # can be detected and how. 3558 cat >conftest.$ac_ext <<_ACEOF 3559/* confdefs.h. */ 3560_ACEOF 3561cat confdefs.h >>conftest.$ac_ext 3562cat >>conftest.$ac_ext <<_ACEOF 3563/* end confdefs.h. */ 3564#include <ac_nonexistent.h> 3565_ACEOF 3566if { (ac_try="$ac_cpp conftest.$ac_ext" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3573 ac_status=$? 3574 grep -v '^ *+' conftest.er1 >conftest.err 3575 rm -f conftest.er1 3576 cat conftest.err >&5 3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3578 (exit $ac_status); } >/dev/null; then 3579 if test -s conftest.err; then 3580 ac_cpp_err=$ac_c_preproc_warn_flag 3581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3582 else 3583 ac_cpp_err= 3584 fi 3585else 3586 ac_cpp_err=yes 3587fi 3588if test -z "$ac_cpp_err"; then 3589 # Broken: success on invalid input. 3590continue 3591else 3592 echo "$as_me: failed program was:" >&5 3593sed 's/^/| /' conftest.$ac_ext >&5 3594 3595 # Passes both tests. 3596ac_preproc_ok=: 3597break 3598fi 3599 3600rm -f conftest.err conftest.$ac_ext 3601 3602done 3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3604rm -f conftest.err conftest.$ac_ext 3605if $ac_preproc_ok; then 3606 break 3607fi 3608 3609 done 3610 ac_cv_prog_CPP=$CPP 3611 3612fi 3613 CPP=$ac_cv_prog_CPP 3614else 3615 ac_cv_prog_CPP=$CPP 3616fi 3617{ echo "$as_me:$LINENO: result: $CPP" >&5 3618echo "${ECHO_T}$CPP" >&6; } 3619ac_preproc_ok=false 3620for ac_c_preproc_warn_flag in '' yes 3621do 3622 # Use a header file that comes with gcc, so configuring glibc 3623 # with a fresh cross-compiler works. 3624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3625 # <limits.h> exists even on freestanding compilers. 3626 # On the NeXT, cc -E runs the code through the compiler's parser, 3627 # not just through cpp. "Syntax error" is here to catch this case. 3628 cat >conftest.$ac_ext <<_ACEOF 3629/* confdefs.h. */ 3630_ACEOF 3631cat confdefs.h >>conftest.$ac_ext 3632cat >>conftest.$ac_ext <<_ACEOF 3633/* end confdefs.h. */ 3634#ifdef __STDC__ 3635# include <limits.h> 3636#else 3637# include <assert.h> 3638#endif 3639 Syntax error 3640_ACEOF 3641if { (ac_try="$ac_cpp conftest.$ac_ext" 3642case "(($ac_try" in 3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3644 *) ac_try_echo=$ac_try;; 3645esac 3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3648 ac_status=$? 3649 grep -v '^ *+' conftest.er1 >conftest.err 3650 rm -f conftest.er1 3651 cat conftest.err >&5 3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3653 (exit $ac_status); } >/dev/null; then 3654 if test -s conftest.err; then 3655 ac_cpp_err=$ac_c_preproc_warn_flag 3656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3657 else 3658 ac_cpp_err= 3659 fi 3660else 3661 ac_cpp_err=yes 3662fi 3663if test -z "$ac_cpp_err"; then 3664 : 3665else 3666 echo "$as_me: failed program was:" >&5 3667sed 's/^/| /' conftest.$ac_ext >&5 3668 3669 # Broken: fails on valid input. 3670continue 3671fi 3672 3673rm -f conftest.err conftest.$ac_ext 3674 3675 # OK, works on sane cases. Now check whether nonexistent headers 3676 # can be detected and how. 3677 cat >conftest.$ac_ext <<_ACEOF 3678/* confdefs.h. */ 3679_ACEOF 3680cat confdefs.h >>conftest.$ac_ext 3681cat >>conftest.$ac_ext <<_ACEOF 3682/* end confdefs.h. */ 3683#include <ac_nonexistent.h> 3684_ACEOF 3685if { (ac_try="$ac_cpp conftest.$ac_ext" 3686case "(($ac_try" in 3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3688 *) ac_try_echo=$ac_try;; 3689esac 3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3692 ac_status=$? 3693 grep -v '^ *+' conftest.er1 >conftest.err 3694 rm -f conftest.er1 3695 cat conftest.err >&5 3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3697 (exit $ac_status); } >/dev/null; then 3698 if test -s conftest.err; then 3699 ac_cpp_err=$ac_c_preproc_warn_flag 3700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3701 else 3702 ac_cpp_err= 3703 fi 3704else 3705 ac_cpp_err=yes 3706fi 3707if test -z "$ac_cpp_err"; then 3708 # Broken: success on invalid input. 3709continue 3710else 3711 echo "$as_me: failed program was:" >&5 3712sed 's/^/| /' conftest.$ac_ext >&5 3713 3714 # Passes both tests. 3715ac_preproc_ok=: 3716break 3717fi 3718 3719rm -f conftest.err conftest.$ac_ext 3720 3721done 3722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3723rm -f conftest.err conftest.$ac_ext 3724if $ac_preproc_ok; then 3725 : 3726else 3727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3728See \`config.log' for more details." >&5 3729echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3730See \`config.log' for more details." >&2;} 3731 { (exit 1); exit 1; }; } 3732fi 3733 3734ac_ext=c 3735ac_cpp='$CPP $CPPFLAGS' 3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3738ac_compiler_gnu=$ac_cv_c_compiler_gnu 3739 3740 3741{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3742echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3743if test "${ac_cv_path_GREP+set}" = set; then 3744 echo $ECHO_N "(cached) $ECHO_C" >&6 3745else 3746 # Extract the first word of "grep ggrep" to use in msg output 3747if test -z "$GREP"; then 3748set dummy grep ggrep; ac_prog_name=$2 3749if test "${ac_cv_path_GREP+set}" = set; then 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751else 3752 ac_path_GREP_found=false 3753# Loop through the user's path and test for each of PROGNAME-LIST 3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3756do 3757 IFS=$as_save_IFS 3758 test -z "$as_dir" && as_dir=. 3759 for ac_prog in grep ggrep; do 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3762 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3763 # Check for GNU ac_path_GREP and select it if it is found. 3764 # Check for GNU $ac_path_GREP 3765case `"$ac_path_GREP" --version 2>&1` in 3766*GNU*) 3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3768*) 3769 ac_count=0 3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3771 while : 3772 do 3773 cat "conftest.in" "conftest.in" >"conftest.tmp" 3774 mv "conftest.tmp" "conftest.in" 3775 cp "conftest.in" "conftest.nl" 3776 echo 'GREP' >> "conftest.nl" 3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3779 ac_count=`expr $ac_count + 1` 3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3781 # Best one so far, save it but keep looking for a better one 3782 ac_cv_path_GREP="$ac_path_GREP" 3783 ac_path_GREP_max=$ac_count 3784 fi 3785 # 10*(2^10) chars as input seems more than enough 3786 test $ac_count -gt 10 && break 3787 done 3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3789esac 3790 3791 3792 $ac_path_GREP_found && break 3 3793 done 3794done 3795 3796done 3797IFS=$as_save_IFS 3798 3799 3800fi 3801 3802GREP="$ac_cv_path_GREP" 3803if test -z "$GREP"; then 3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3805echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3806 { (exit 1); exit 1; }; } 3807fi 3808 3809else 3810 ac_cv_path_GREP=$GREP 3811fi 3812 3813 3814fi 3815{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3816echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3817 GREP="$ac_cv_path_GREP" 3818 3819 3820{ echo "$as_me:$LINENO: checking for egrep" >&5 3821echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3822if test "${ac_cv_path_EGREP+set}" = set; then 3823 echo $ECHO_N "(cached) $ECHO_C" >&6 3824else 3825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3826 then ac_cv_path_EGREP="$GREP -E" 3827 else 3828 # Extract the first word of "egrep" to use in msg output 3829if test -z "$EGREP"; then 3830set dummy egrep; ac_prog_name=$2 3831if test "${ac_cv_path_EGREP+set}" = set; then 3832 echo $ECHO_N "(cached) $ECHO_C" >&6 3833else 3834 ac_path_EGREP_found=false 3835# Loop through the user's path and test for each of PROGNAME-LIST 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3838do 3839 IFS=$as_save_IFS 3840 test -z "$as_dir" && as_dir=. 3841 for ac_prog in egrep; do 3842 for ac_exec_ext in '' $ac_executable_extensions; do 3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3844 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3845 # Check for GNU ac_path_EGREP and select it if it is found. 3846 # Check for GNU $ac_path_EGREP 3847case `"$ac_path_EGREP" --version 2>&1` in 3848*GNU*) 3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3850*) 3851 ac_count=0 3852 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3853 while : 3854 do 3855 cat "conftest.in" "conftest.in" >"conftest.tmp" 3856 mv "conftest.tmp" "conftest.in" 3857 cp "conftest.in" "conftest.nl" 3858 echo 'EGREP' >> "conftest.nl" 3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3861 ac_count=`expr $ac_count + 1` 3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3863 # Best one so far, save it but keep looking for a better one 3864 ac_cv_path_EGREP="$ac_path_EGREP" 3865 ac_path_EGREP_max=$ac_count 3866 fi 3867 # 10*(2^10) chars as input seems more than enough 3868 test $ac_count -gt 10 && break 3869 done 3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3871esac 3872 3873 3874 $ac_path_EGREP_found && break 3 3875 done 3876done 3877 3878done 3879IFS=$as_save_IFS 3880 3881 3882fi 3883 3884EGREP="$ac_cv_path_EGREP" 3885if test -z "$EGREP"; then 3886 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3887echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3888 { (exit 1); exit 1; }; } 3889fi 3890 3891else 3892 ac_cv_path_EGREP=$EGREP 3893fi 3894 3895 3896 fi 3897fi 3898{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3899echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3900 EGREP="$ac_cv_path_EGREP" 3901 3902 3903{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3904echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3905if test "${ac_cv_header_stdc+set}" = set; then 3906 echo $ECHO_N "(cached) $ECHO_C" >&6 3907else 3908 cat >conftest.$ac_ext <<_ACEOF 3909/* confdefs.h. */ 3910_ACEOF 3911cat confdefs.h >>conftest.$ac_ext 3912cat >>conftest.$ac_ext <<_ACEOF 3913/* end confdefs.h. */ 3914#include <stdlib.h> 3915#include <stdarg.h> 3916#include <string.h> 3917#include <float.h> 3918 3919int 3920main () 3921{ 3922 3923 ; 3924 return 0; 3925} 3926_ACEOF 3927rm -f conftest.$ac_objext 3928if { (ac_try="$ac_compile" 3929case "(($ac_try" in 3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3931 *) ac_try_echo=$ac_try;; 3932esac 3933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3934 (eval "$ac_compile") 2>conftest.er1 3935 ac_status=$? 3936 grep -v '^ *+' conftest.er1 >conftest.err 3937 rm -f conftest.er1 3938 cat conftest.err >&5 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 (exit $ac_status); } && 3941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3942 { (case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3947 (eval "$ac_try") 2>&5 3948 ac_status=$? 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); }; } && 3951 { ac_try='test -s conftest.$ac_objext' 3952 { (case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3957 (eval "$ac_try") 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); }; }; then 3961 ac_cv_header_stdc=yes 3962else 3963 echo "$as_me: failed program was:" >&5 3964sed 's/^/| /' conftest.$ac_ext >&5 3965 3966 ac_cv_header_stdc=no 3967fi 3968 3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3970 3971if test $ac_cv_header_stdc = yes; then 3972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3973 cat >conftest.$ac_ext <<_ACEOF 3974/* confdefs.h. */ 3975_ACEOF 3976cat confdefs.h >>conftest.$ac_ext 3977cat >>conftest.$ac_ext <<_ACEOF 3978/* end confdefs.h. */ 3979#include <string.h> 3980 3981_ACEOF 3982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3983 $EGREP "memchr" >/dev/null 2>&1; then 3984 : 3985else 3986 ac_cv_header_stdc=no 3987fi 3988rm -f conftest* 3989 3990fi 3991 3992if test $ac_cv_header_stdc = yes; then 3993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3994 cat >conftest.$ac_ext <<_ACEOF 3995/* confdefs.h. */ 3996_ACEOF 3997cat confdefs.h >>conftest.$ac_ext 3998cat >>conftest.$ac_ext <<_ACEOF 3999/* end confdefs.h. */ 4000#include <stdlib.h> 4001 4002_ACEOF 4003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4004 $EGREP "free" >/dev/null 2>&1; then 4005 : 4006else 4007 ac_cv_header_stdc=no 4008fi 4009rm -f conftest* 4010 4011fi 4012 4013if test $ac_cv_header_stdc = yes; then 4014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4015 if test "$cross_compiling" = yes; then 4016 : 4017else 4018 cat >conftest.$ac_ext <<_ACEOF 4019/* confdefs.h. */ 4020_ACEOF 4021cat confdefs.h >>conftest.$ac_ext 4022cat >>conftest.$ac_ext <<_ACEOF 4023/* end confdefs.h. */ 4024#include <ctype.h> 4025#include <stdlib.h> 4026#if ((' ' & 0x0FF) == 0x020) 4027# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4028# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4029#else 4030# define ISLOWER(c) \ 4031 (('a' <= (c) && (c) <= 'i') \ 4032 || ('j' <= (c) && (c) <= 'r') \ 4033 || ('s' <= (c) && (c) <= 'z')) 4034# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4035#endif 4036 4037#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4038int 4039main () 4040{ 4041 int i; 4042 for (i = 0; i < 256; i++) 4043 if (XOR (islower (i), ISLOWER (i)) 4044 || toupper (i) != TOUPPER (i)) 4045 return 2; 4046 return 0; 4047} 4048_ACEOF 4049rm -f conftest$ac_exeext 4050if { (ac_try="$ac_link" 4051case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4056 (eval "$ac_link") 2>&5 4057 ac_status=$? 4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4060 { (case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4065 (eval "$ac_try") 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); }; }; then 4069 : 4070else 4071 echo "$as_me: program exited with status $ac_status" >&5 4072echo "$as_me: failed program was:" >&5 4073sed 's/^/| /' conftest.$ac_ext >&5 4074 4075( exit $ac_status ) 4076ac_cv_header_stdc=no 4077fi 4078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4079fi 4080 4081 4082fi 4083fi 4084{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4085echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4086if test $ac_cv_header_stdc = yes; then 4087 4088cat >>confdefs.h <<\_ACEOF 4089#define STDC_HEADERS 1 4090_ACEOF 4091 4092fi 4093 4094# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4105 inttypes.h stdint.h unistd.h 4106do 4107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4108{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4111 echo $ECHO_N "(cached) $ECHO_C" >&6 4112else 4113 cat >conftest.$ac_ext <<_ACEOF 4114/* confdefs.h. */ 4115_ACEOF 4116cat confdefs.h >>conftest.$ac_ext 4117cat >>conftest.$ac_ext <<_ACEOF 4118/* end confdefs.h. */ 4119$ac_includes_default 4120 4121#include <$ac_header> 4122_ACEOF 4123rm -f conftest.$ac_objext 4124if { (ac_try="$ac_compile" 4125case "(($ac_try" in 4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4127 *) ac_try_echo=$ac_try;; 4128esac 4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4130 (eval "$ac_compile") 2>conftest.er1 4131 ac_status=$? 4132 grep -v '^ *+' conftest.er1 >conftest.err 4133 rm -f conftest.er1 4134 cat conftest.err >&5 4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4136 (exit $ac_status); } && 4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4138 { (case "(($ac_try" in 4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4140 *) ac_try_echo=$ac_try;; 4141esac 4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4143 (eval "$ac_try") 2>&5 4144 ac_status=$? 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); }; } && 4147 { ac_try='test -s conftest.$ac_objext' 4148 { (case "(($ac_try" in 4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4150 *) ac_try_echo=$ac_try;; 4151esac 4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4153 (eval "$ac_try") 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); }; }; then 4157 eval "$as_ac_Header=yes" 4158else 4159 echo "$as_me: failed program was:" >&5 4160sed 's/^/| /' conftest.$ac_ext >&5 4161 4162 eval "$as_ac_Header=no" 4163fi 4164 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166fi 4167ac_res=`eval echo '${'$as_ac_Header'}'` 4168 { echo "$as_me:$LINENO: result: $ac_res" >&5 4169echo "${ECHO_T}$ac_res" >&6; } 4170if test `eval echo '${'$as_ac_Header'}'` = yes; then 4171 cat >>confdefs.h <<_ACEOF 4172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4173_ACEOF 4174 4175fi 4176 4177done 4178 4179 4180{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4181echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4182if test "${ac_cv_c_bigendian+set}" = set; then 4183 echo $ECHO_N "(cached) $ECHO_C" >&6 4184else 4185 # See if sys/param.h defines the BYTE_ORDER macro. 4186cat >conftest.$ac_ext <<_ACEOF 4187/* confdefs.h. */ 4188_ACEOF 4189cat confdefs.h >>conftest.$ac_ext 4190cat >>conftest.$ac_ext <<_ACEOF 4191/* end confdefs.h. */ 4192#include <sys/types.h> 4193#include <sys/param.h> 4194 4195int 4196main () 4197{ 4198#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4199 bogus endian macros 4200#endif 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206rm -f conftest.$ac_objext 4207if { (ac_try="$ac_compile" 4208case "(($ac_try" in 4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4210 *) ac_try_echo=$ac_try;; 4211esac 4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4213 (eval "$ac_compile") 2>conftest.er1 4214 ac_status=$? 4215 grep -v '^ *+' conftest.er1 >conftest.err 4216 rm -f conftest.er1 4217 cat conftest.err >&5 4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4219 (exit $ac_status); } && 4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4221 { (case "(($ac_try" in 4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4223 *) ac_try_echo=$ac_try;; 4224esac 4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4226 (eval "$ac_try") 2>&5 4227 ac_status=$? 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); }; } && 4230 { ac_try='test -s conftest.$ac_objext' 4231 { (case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4236 (eval "$ac_try") 2>&5 4237 ac_status=$? 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); }; }; then 4240 # It does; now see whether it defined to BIG_ENDIAN or not. 4241cat >conftest.$ac_ext <<_ACEOF 4242/* confdefs.h. */ 4243_ACEOF 4244cat confdefs.h >>conftest.$ac_ext 4245cat >>conftest.$ac_ext <<_ACEOF 4246/* end confdefs.h. */ 4247#include <sys/types.h> 4248#include <sys/param.h> 4249 4250int 4251main () 4252{ 4253#if BYTE_ORDER != BIG_ENDIAN 4254 not big endian 4255#endif 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261rm -f conftest.$ac_objext 4262if { (ac_try="$ac_compile" 4263case "(($ac_try" in 4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4265 *) ac_try_echo=$ac_try;; 4266esac 4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4268 (eval "$ac_compile") 2>conftest.er1 4269 ac_status=$? 4270 grep -v '^ *+' conftest.er1 >conftest.err 4271 rm -f conftest.er1 4272 cat conftest.err >&5 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); } && 4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4276 { (case "(($ac_try" in 4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4278 *) ac_try_echo=$ac_try;; 4279esac 4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4281 (eval "$ac_try") 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); }; } && 4285 { ac_try='test -s conftest.$ac_objext' 4286 { (case "(($ac_try" in 4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4288 *) ac_try_echo=$ac_try;; 4289esac 4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4291 (eval "$ac_try") 2>&5 4292 ac_status=$? 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294 (exit $ac_status); }; }; then 4295 ac_cv_c_bigendian=yes 4296else 4297 echo "$as_me: failed program was:" >&5 4298sed 's/^/| /' conftest.$ac_ext >&5 4299 4300 ac_cv_c_bigendian=no 4301fi 4302 4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4304else 4305 echo "$as_me: failed program was:" >&5 4306sed 's/^/| /' conftest.$ac_ext >&5 4307 4308 # It does not; compile a test program. 4309if test "$cross_compiling" = yes; then 4310 # try to guess the endianness by grepping values into an object file 4311 ac_cv_c_bigendian=unknown 4312 cat >conftest.$ac_ext <<_ACEOF 4313/* confdefs.h. */ 4314_ACEOF 4315cat confdefs.h >>conftest.$ac_ext 4316cat >>conftest.$ac_ext <<_ACEOF 4317/* end confdefs.h. */ 4318short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4319short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4320void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4321short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4322short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4323void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4324int 4325main () 4326{ 4327 _ascii (); _ebcdic (); 4328 ; 4329 return 0; 4330} 4331_ACEOF 4332rm -f conftest.$ac_objext 4333if { (ac_try="$ac_compile" 4334case "(($ac_try" in 4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4336 *) ac_try_echo=$ac_try;; 4337esac 4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4339 (eval "$ac_compile") 2>conftest.er1 4340 ac_status=$? 4341 grep -v '^ *+' conftest.er1 >conftest.err 4342 rm -f conftest.er1 4343 cat conftest.err >&5 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); } && 4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4347 { (case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350esac 4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4352 (eval "$ac_try") 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); }; } && 4356 { ac_try='test -s conftest.$ac_objext' 4357 { (case "(($ac_try" in 4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4359 *) ac_try_echo=$ac_try;; 4360esac 4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4362 (eval "$ac_try") 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; }; then 4366 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4367 ac_cv_c_bigendian=yes 4368fi 4369if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4370 if test "$ac_cv_c_bigendian" = unknown; then 4371 ac_cv_c_bigendian=no 4372 else 4373 # finding both strings is unlikely to happen, but who knows? 4374 ac_cv_c_bigendian=unknown 4375 fi 4376fi 4377else 4378 echo "$as_me: failed program was:" >&5 4379sed 's/^/| /' conftest.$ac_ext >&5 4380 4381 4382fi 4383 4384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4385else 4386 cat >conftest.$ac_ext <<_ACEOF 4387/* confdefs.h. */ 4388_ACEOF 4389cat confdefs.h >>conftest.$ac_ext 4390cat >>conftest.$ac_ext <<_ACEOF 4391/* end confdefs.h. */ 4392$ac_includes_default 4393int 4394main () 4395{ 4396 4397 /* Are we little or big endian? From Harbison&Steele. */ 4398 union 4399 { 4400 long int l; 4401 char c[sizeof (long int)]; 4402 } u; 4403 u.l = 1; 4404 return u.c[sizeof (long int) - 1] == 1; 4405 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410rm -f conftest$ac_exeext 4411if { (ac_try="$ac_link" 4412case "(($ac_try" in 4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4414 *) ac_try_echo=$ac_try;; 4415esac 4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4417 (eval "$ac_link") 2>&5 4418 ac_status=$? 4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4421 { (case "(($ac_try" in 4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4423 *) ac_try_echo=$ac_try;; 4424esac 4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4426 (eval "$ac_try") 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); }; }; then 4430 ac_cv_c_bigendian=no 4431else 4432 echo "$as_me: program exited with status $ac_status" >&5 4433echo "$as_me: failed program was:" >&5 4434sed 's/^/| /' conftest.$ac_ext >&5 4435 4436( exit $ac_status ) 4437ac_cv_c_bigendian=yes 4438fi 4439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4440fi 4441 4442 4443fi 4444 4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4446fi 4447{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4448echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4449case $ac_cv_c_bigendian in 4450 yes) 4451 4452cat >>confdefs.h <<\_ACEOF 4453#define WORDS_BIGENDIAN 1 4454_ACEOF 4455 ;; 4456 no) 4457 ;; 4458 *) 4459 { { echo "$as_me:$LINENO: error: unknown endianness 4460presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4461echo "$as_me: error: unknown endianness 4462presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4463 { (exit 1); exit 1; }; } ;; 4464esac 4465 4466 4467if test "x$ac_cv_c_bigendian" = "xyes"; then 4468 4469 cat >>confdefs.h <<\_ACEOF 4470#define __GG_LIBGADU_BIGENDIAN 1 4471_ACEOF 4472 4473 4474fi 4475 4476{ echo "$as_me:$LINENO: checking for uintXX_t types" >&5 4477echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } 4478 4479 if test "x" = "x"; then 4480 ac_stdint_h="stdint.h" 4481 else 4482 ac_stdint_h="" 4483 fi 4484 4485 rm -f $ac_stdint_h 4486 4487 ac_header_stdint="" 4488 for i in stdint.h inttypes.h sys/inttypes.h sys/int_types.h sys/types.h; do 4489 if test "x$ac_header_stdint" = "x"; then 4490 cat >conftest.$ac_ext <<_ACEOF 4491/* confdefs.h. */ 4492_ACEOF 4493cat confdefs.h >>conftest.$ac_ext 4494cat >>conftest.$ac_ext <<_ACEOF 4495/* end confdefs.h. */ 4496#include <$i> 4497int 4498main () 4499{ 4500uint32_t foo 4501 ; 4502 return 0; 4503} 4504_ACEOF 4505rm -f conftest.$ac_objext 4506if { (ac_try="$ac_compile" 4507case "(($ac_try" in 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509 *) ac_try_echo=$ac_try;; 4510esac 4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4512 (eval "$ac_compile") 2>conftest.er1 4513 ac_status=$? 4514 grep -v '^ *+' conftest.er1 >conftest.err 4515 rm -f conftest.er1 4516 cat conftest.err >&5 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); } && 4519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4520 { (case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523esac 4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4525 (eval "$ac_try") 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); }; } && 4529 { ac_try='test -s conftest.$ac_objext' 4530 { (case "(($ac_try" in 4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4532 *) ac_try_echo=$ac_try;; 4533esac 4534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4535 (eval "$ac_try") 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 ac_header_stdint=$i 4540else 4541 echo "$as_me: failed program was:" >&5 4542sed 's/^/| /' conftest.$ac_ext >&5 4543 4544 4545fi 4546 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4548 fi 4549 done 4550 4551 if test "x$ac_header_stdint" != "x" ; then 4552 { echo "$as_me:$LINENO: result: found in <$ac_header_stdint>" >&5 4553echo "${ECHO_T}found in <$ac_header_stdint>" >&6; } 4554 STDINT_H="$ac_header_stdint" 4555 if test "x$ac_header_stdint" != "xstdint.h" ; then 4556 echo "#include <$ac_header_stdint>" > $ac_stdint_h 4557 fi 4558 else 4559 { echo "$as_me:$LINENO: result: not found, using reasonable defaults" >&5 4560echo "${ECHO_T}not found, using reasonable defaults" >&6; } 4561 4562 STDINT_H="" 4563 4564 stdint_h_foobar=define 4565 4566 4567 4568 cat > $ac_stdint_h << EOF 4569#ifndef __AC_STDINT_H 4570#$stdint_h_foobar __AC_STDINT_H 1 4571 4572/* ISO C 9X: 7.18 Integer types <stdint.h> */ 4573 4574typedef unsigned char uint8_t; 4575typedef unsigned short uint16_t; 4576typedef unsigned int uint32_t; 4577 4578#ifndef __CYGWIN__ 4579#define __int8_t_defined 4580typedef signed char int8_t; 4581typedef signed short int16_t; 4582typedef signed int int32_t; 4583#endif 4584 4585#endif /* __AC_STDINT_H */ 4586EOF 4587 fi 4588 4589 4590if test "x$STDINT_H" = "x"; then 4591 cp stdint.h lib/libgadu-stdint.h 4592 STDINT_H=libgadu-stdint.h 4593fi 4594 4595sed "s/#include <stdint.h>/#include <$STDINT_H>/" < lib/libgadu-config.h > lib/libgadu-config.h- 4596mv -f lib/libgadu-config.h- lib/libgadu-config.h 4597 4598 4599 4600 4601for ac_func in gethostbyname_r 4602do 4603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4604{ echo "$as_me:$LINENO: checking for $ac_func" >&5 4605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 4606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4607 echo $ECHO_N "(cached) $ECHO_C" >&6 4608else 4609 cat >conftest.$ac_ext <<_ACEOF 4610/* confdefs.h. */ 4611_ACEOF 4612cat confdefs.h >>conftest.$ac_ext 4613cat >>conftest.$ac_ext <<_ACEOF 4614/* end confdefs.h. */ 4615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4616 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4617#define $ac_func innocuous_$ac_func 4618 4619/* System header to define __stub macros and hopefully few prototypes, 4620 which can conflict with char $ac_func (); below. 4621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4622 <limits.h> exists even on freestanding compilers. */ 4623 4624#ifdef __STDC__ 4625# include <limits.h> 4626#else 4627# include <assert.h> 4628#endif 4629 4630#undef $ac_func 4631 4632/* Override any GCC internal prototype to avoid an error. 4633 Use char because int might match the return type of a GCC 4634 builtin and then its argument prototype would still apply. */ 4635#ifdef __cplusplus 4636extern "C" 4637#endif 4638char $ac_func (); 4639/* The GNU C library defines this for functions which it implements 4640 to always fail with ENOSYS. Some functions are actually named 4641 something starting with __ and the normal name is an alias. */ 4642#if defined __stub_$ac_func || defined __stub___$ac_func 4643choke me 4644#endif 4645 4646int 4647main () 4648{ 4649return $ac_func (); 4650 ; 4651 return 0; 4652} 4653_ACEOF 4654rm -f conftest.$ac_objext conftest$ac_exeext 4655if { (ac_try="$ac_link" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4661 (eval "$ac_link") 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } && 4668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4669 { (case "(($ac_try" in 4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *) ac_try_echo=$ac_try;; 4672esac 4673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4674 (eval "$ac_try") 2>&5 4675 ac_status=$? 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); }; } && 4678 { ac_try='test -s conftest$ac_exeext' 4679 { (case "(($ac_try" in 4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4681 *) ac_try_echo=$ac_try;; 4682esac 4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4684 (eval "$ac_try") 2>&5 4685 ac_status=$? 4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687 (exit $ac_status); }; }; then 4688 eval "$as_ac_var=yes" 4689else 4690 echo "$as_me: failed program was:" >&5 4691sed 's/^/| /' conftest.$ac_ext >&5 4692 4693 eval "$as_ac_var=no" 4694fi 4695 4696rm -f core conftest.err conftest.$ac_objext \ 4697 conftest$ac_exeext conftest.$ac_ext 4698fi 4699ac_res=`eval echo '${'$as_ac_var'}'` 4700 { echo "$as_me:$LINENO: result: $ac_res" >&5 4701echo "${ECHO_T}$ac_res" >&6; } 4702if test `eval echo '${'$as_ac_var'}'` = yes; then 4703 cat >>confdefs.h <<_ACEOF 4704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4705_ACEOF 4706 4707 cat >>confdefs.h <<\_ACEOF 4708#define __GG_LIBGADU_HAVE_GETHOSTBYNAME_R 1 4709_ACEOF 4710 4711 4712fi 4713done 4714 4715 4716{ echo "$as_me:$LINENO: checking for va_copy" >&5 4717echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } 4718cat >conftest.$ac_ext <<_ACEOF 4719/* confdefs.h. */ 4720_ACEOF 4721cat confdefs.h >>conftest.$ac_ext 4722cat >>conftest.$ac_ext <<_ACEOF 4723/* end confdefs.h. */ 4724#include <stdarg.h> 4725int 4726main () 4727{ 4728va_list a, b; va_copy(a, b); 4729 ; 4730 return 0; 4731} 4732_ACEOF 4733rm -f conftest.$ac_objext conftest$ac_exeext 4734if { (ac_try="$ac_link" 4735case "(($ac_try" in 4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4737 *) ac_try_echo=$ac_try;; 4738esac 4739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4740 (eval "$ac_link") 2>conftest.er1 4741 ac_status=$? 4742 grep -v '^ *+' conftest.er1 >conftest.err 4743 rm -f conftest.er1 4744 cat conftest.err >&5 4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); } && 4747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4748 { (case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_try") 2>&5 4754 ac_status=$? 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); }; } && 4757 { ac_try='test -s conftest$ac_exeext' 4758 { (case "(($ac_try" in 4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4760 *) ac_try_echo=$ac_try;; 4761esac 4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4763 (eval "$ac_try") 2>&5 4764 ac_status=$? 4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4766 (exit $ac_status); }; }; then 4767 4768 { echo "$as_me:$LINENO: result: yes" >&5 4769echo "${ECHO_T}yes" >&6; } 4770 4771 cat >>confdefs.h <<\_ACEOF 4772#define __GG_LIBGADU_HAVE_VA_COPY 1 4773_ACEOF 4774 4775 4776 4777else 4778 echo "$as_me: failed program was:" >&5 4779sed 's/^/| /' conftest.$ac_ext >&5 4780 4781 4782 { echo "$as_me:$LINENO: result: no" >&5 4783echo "${ECHO_T}no" >&6; } 4784 4785fi 4786 4787rm -f core conftest.err conftest.$ac_objext \ 4788 conftest$ac_exeext conftest.$ac_ext 4789 4790{ echo "$as_me:$LINENO: checking for __va_copy" >&5 4791echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } 4792cat >conftest.$ac_ext <<_ACEOF 4793/* confdefs.h. */ 4794_ACEOF 4795cat confdefs.h >>conftest.$ac_ext 4796cat >>conftest.$ac_ext <<_ACEOF 4797/* end confdefs.h. */ 4798#include <stdarg.h> 4799int 4800main () 4801{ 4802va_list a, b; __va_copy(a, b); 4803 ; 4804 return 0; 4805} 4806_ACEOF 4807rm -f conftest.$ac_objext conftest$ac_exeext 4808if { (ac_try="$ac_link" 4809case "(($ac_try" in 4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811 *) ac_try_echo=$ac_try;; 4812esac 4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4814 (eval "$ac_link") 2>conftest.er1 4815 ac_status=$? 4816 grep -v '^ *+' conftest.er1 >conftest.err 4817 rm -f conftest.er1 4818 cat conftest.err >&5 4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4820 (exit $ac_status); } && 4821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4822 { (case "(($ac_try" in 4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4824 *) ac_try_echo=$ac_try;; 4825esac 4826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4827 (eval "$ac_try") 2>&5 4828 ac_status=$? 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); }; } && 4831 { ac_try='test -s conftest$ac_exeext' 4832 { (case "(($ac_try" in 4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4834 *) ac_try_echo=$ac_try;; 4835esac 4836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4837 (eval "$ac_try") 2>&5 4838 ac_status=$? 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); }; }; then 4841 4842 { echo "$as_me:$LINENO: result: yes" >&5 4843echo "${ECHO_T}yes" >&6; } 4844 4845 cat >>confdefs.h <<\_ACEOF 4846#define __GG_LIBGADU_HAVE___VA_COPY 1 4847_ACEOF 4848 4849 4850 4851else 4852 echo "$as_me: failed program was:" >&5 4853sed 's/^/| /' conftest.$ac_ext >&5 4854 4855 4856 { echo "$as_me:$LINENO: result: no" >&5 4857echo "${ECHO_T}no" >&6; } 4858 4859fi 4860 4861rm -f core conftest.err conftest.$ac_objext \ 4862 conftest$ac_exeext conftest.$ac_ext 4863 4864lib_static_enabled=yes 4865 4866 4867 4868# Check whether --with-c99-vsnprintf was given. 4869if test "${with_c99_vsnprintf+set}" = set; then 4870 withval=$with_c99_vsnprintf; 4871fi 4872 4873 4874if test "x$with_c99_vsnprintf" = "xyes"; then 4875 4876 cat >>confdefs.h <<\_ACEOF 4877#define __GG_LIBGADU_HAVE_C99_VSNPRINTF 1 4878_ACEOF 4879 4880 4881fi 4882 4883if test "x$with_c99_vsnprintf" = "x"; then 4884 { echo "$as_me:$LINENO: checking for C99-compatible vsnprintf()" >&5 4885echo $ECHO_N "checking for C99-compatible vsnprintf()... $ECHO_C" >&6; } 4886 if test "$cross_compiling" = yes; then 4887 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4888See \`config.log' for more details." >&5 4889echo "$as_me: error: cannot run test program while cross compiling 4890See \`config.log' for more details." >&2;} 4891 { (exit 1); exit 1; }; } 4892else 4893 cat >conftest.$ac_ext <<_ACEOF 4894/* confdefs.h. */ 4895_ACEOF 4896cat confdefs.h >>conftest.$ac_ext 4897cat >>conftest.$ac_ext <<_ACEOF 4898/* end confdefs.h. */ 4899 4900 #include <stdio.h> 4901 int main() 4902 { 4903 char tmp; 4904 return (snprintf(&tmp, sizeof(tmp), "test") != 4); 4905 } 4906 4907_ACEOF 4908rm -f conftest$ac_exeext 4909if { (ac_try="$ac_link" 4910case "(($ac_try" in 4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4912 *) ac_try_echo=$ac_try;; 4913esac 4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4915 (eval "$ac_link") 2>&5 4916 ac_status=$? 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4919 { (case "(($ac_try" in 4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4921 *) ac_try_echo=$ac_try;; 4922esac 4923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4924 (eval "$ac_try") 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); }; }; then 4928 4929 { echo "$as_me:$LINENO: result: yes" >&5 4930echo "${ECHO_T}yes" >&6; } 4931 4932 cat >>confdefs.h <<\_ACEOF 4933#define __GG_LIBGADU_HAVE_C99_VSNPRINTF 1 4934_ACEOF 4935 4936 4937 4938else 4939 echo "$as_me: program exited with status $ac_status" >&5 4940echo "$as_me: failed program was:" >&5 4941sed 's/^/| /' conftest.$ac_ext >&5 4942 4943( exit $ac_status ) 4944 4945 { echo "$as_me:$LINENO: result: no" >&5 4946echo "${ECHO_T}no" >&6; } 4947 4948fi 4949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4950fi 4951 4952 4953fi 4954 4955 4956 4957 4958ac_ext=c 4959ac_cpp='$CPP $CPPFLAGS' 4960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4962ac_compiler_gnu=$ac_cv_c_compiler_gnu 4963 4964acx_pthread_ok=no 4965 4966# We used to check for pthread.h first, but this fails if pthread.h 4967# requires special compiler flags (e.g. on True64 or Sequent). 4968# It gets checked for in the link test anyway. 4969 4970# First of all, check if the user has set any of the PTHREAD_LIBS, 4971# etcetera environment variables, and if threads linking works using 4972# them: 4973if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 4974 save_CFLAGS="$CFLAGS" 4975 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 4976 save_LIBS="$LIBS" 4977 LIBS="$PTHREAD_LIBS $LIBS" 4978 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 4979echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 4980 cat >conftest.$ac_ext <<_ACEOF 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986 4987/* Override any GCC internal prototype to avoid an error. 4988 Use char because int might match the return type of a GCC 4989 builtin and then its argument prototype would still apply. */ 4990#ifdef __cplusplus 4991extern "C" 4992#endif 4993char pthread_join (); 4994int 4995main () 4996{ 4997return pthread_join (); 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002rm -f conftest.$ac_objext conftest$ac_exeext 5003if { (ac_try="$ac_link" 5004case "(($ac_try" in 5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5006 *) ac_try_echo=$ac_try;; 5007esac 5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5009 (eval "$ac_link") 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } && 5016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5017 { (case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_try") 2>&5 5023 ac_status=$? 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); }; } && 5026 { ac_try='test -s conftest$ac_exeext' 5027 { (case "(($ac_try" in 5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5029 *) ac_try_echo=$ac_try;; 5030esac 5031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5032 (eval "$ac_try") 2>&5 5033 ac_status=$? 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); }; }; then 5036 acx_pthread_ok=yes 5037else 5038 echo "$as_me: failed program was:" >&5 5039sed 's/^/| /' conftest.$ac_ext >&5 5040 5041 5042fi 5043 5044rm -f core conftest.err conftest.$ac_objext \ 5045 conftest$ac_exeext conftest.$ac_ext 5046 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 5047echo "${ECHO_T}$acx_pthread_ok" >&6; } 5048 if test x"$acx_pthread_ok" = xno; then 5049 PTHREAD_LIBS="" 5050 PTHREAD_CFLAGS="" 5051 fi 5052 LIBS="$save_LIBS" 5053 CFLAGS="$save_CFLAGS" 5054fi 5055 5056# We must check for the threads library under a number of different 5057# names; the ordering is very important because some systems 5058# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 5059# libraries is broken (non-POSIX). 5060 5061# Create a list of thread flags to try. Items starting with a "-" are 5062# C compiler flags, and other items are library names, except for "none" 5063# which indicates that we try without any flags at all. 5064 5065acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" 5066 5067# The ordering *is* (sometimes) important. Some notes on the 5068# individual items follow: 5069 5070# pthreads: AIX (must check this before -lpthread) 5071# none: in case threads are in libc; should be tried before -Kthread and 5072# other compiler flags to prevent continual compiler warnings 5073# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 5074# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 5075# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 5076# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 5077# -pthreads: Solaris/gcc 5078# -mthreads: Mingw32/gcc, Lynx/gcc 5079# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 5080# doesn't hurt to check since this sometimes defines pthreads too; 5081# also defines -D_REENTRANT) 5082# pthread: Linux, etcetera 5083# --thread-safe: KAI C++ 5084 5085UNAME_SYSTEM=`(uname -s) 2> /dev/null` || UNAME_SYSTEM=unknown 5086 5087case "$UNAME_SYSTEM" in 5088 *SunOS*) 5089 5090 # On Solaris (at least, for some versions), libc contains stubbed 5091 # (non-functional) versions of the pthreads routines, so link-based 5092 # tests will erroneously succeed. (We need to link with -pthread or 5093 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 5094 # a function called by this macro, so we could check for that, but 5095 # who knows whether they'll stub that too in a future libc.) So, 5096 # we'll just look for -pthreads and -lpthread first: 5097 5098 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 5099 ;; 5100esac 5101 5102if test x"$acx_pthread_ok" = xno; then 5103for flag in $acx_pthread_flags; do 5104 5105 case $flag in 5106 none) 5107 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 5108echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 5109 ;; 5110 5111 -*) 5112 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 5113echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 5114 PTHREAD_CFLAGS="$flag" 5115 ;; 5116 5117 *) 5118 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 5119echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 5120 PTHREAD_LIBS="-l$flag" 5121 ;; 5122 esac 5123 5124 save_LIBS="$LIBS" 5125 save_CFLAGS="$CFLAGS" 5126 LIBS="$PTHREAD_LIBS $LIBS" 5127 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5128 5129 # Check for various functions. We must include pthread.h, 5130 # since some functions may be macros. (On the Sequent, we 5131 # need a special flag -Kthread to make this header compile.) 5132 # We check for pthread_join because it is in -lpthread on IRIX 5133 # while pthread_create is in libc. We check for pthread_attr_init 5134 # due to DEC craziness with -lpthreads. We check for 5135 # pthread_cleanup_push because it is one of the few pthread 5136 # functions on Solaris that doesn't have a non-functional libc stub. 5137 # We try pthread_create on general principles. 5138 cat >conftest.$ac_ext <<_ACEOF 5139/* confdefs.h. */ 5140_ACEOF 5141cat confdefs.h >>conftest.$ac_ext 5142cat >>conftest.$ac_ext <<_ACEOF 5143/* end confdefs.h. */ 5144#include <pthread.h> 5145int 5146main () 5147{ 5148pthread_t th; pthread_join(th, 0); 5149 pthread_attr_init(0); pthread_cleanup_push(0, 0); 5150 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 5151 ; 5152 return 0; 5153} 5154_ACEOF 5155rm -f conftest.$ac_objext conftest$ac_exeext 5156if { (ac_try="$ac_link" 5157case "(($ac_try" in 5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5159 *) ac_try_echo=$ac_try;; 5160esac 5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5162 (eval "$ac_link") 2>conftest.er1 5163 ac_status=$? 5164 grep -v '^ *+' conftest.er1 >conftest.err 5165 rm -f conftest.er1 5166 cat conftest.err >&5 5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5168 (exit $ac_status); } && 5169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5170 { (case "(($ac_try" in 5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5172 *) ac_try_echo=$ac_try;; 5173esac 5174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5175 (eval "$ac_try") 2>&5 5176 ac_status=$? 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); }; } && 5179 { ac_try='test -s conftest$ac_exeext' 5180 { (case "(($ac_try" in 5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5182 *) ac_try_echo=$ac_try;; 5183esac 5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5185 (eval "$ac_try") 2>&5 5186 ac_status=$? 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5188 (exit $ac_status); }; }; then 5189 acx_pthread_ok=yes 5190else 5191 echo "$as_me: failed program was:" >&5 5192sed 's/^/| /' conftest.$ac_ext >&5 5193 5194 5195fi 5196 5197rm -f core conftest.err conftest.$ac_objext \ 5198 conftest$ac_exeext conftest.$ac_ext 5199 5200 LIBS="$save_LIBS" 5201 CFLAGS="$save_CFLAGS" 5202 5203 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 5204echo "${ECHO_T}$acx_pthread_ok" >&6; } 5205 if test "x$acx_pthread_ok" = xyes; then 5206 break; 5207 fi 5208 5209 PTHREAD_LIBS="" 5210 PTHREAD_CFLAGS="" 5211done 5212fi 5213 5214# Various other checks: 5215if test "x$acx_pthread_ok" = xyes; then 5216 save_LIBS="$LIBS" 5217 LIBS="$PTHREAD_LIBS $LIBS" 5218 save_CFLAGS="$CFLAGS" 5219 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5220 5221 # Detect AIX lossage: threads are created detached by default 5222 # and the JOINABLE attribute has a nonstandard name (UNDETACHED). 5223 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 5224echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 5225 cat >conftest.$ac_ext <<_ACEOF 5226/* confdefs.h. */ 5227_ACEOF 5228cat confdefs.h >>conftest.$ac_ext 5229cat >>conftest.$ac_ext <<_ACEOF 5230/* end confdefs.h. */ 5231#include <pthread.h> 5232int 5233main () 5234{ 5235int attr=PTHREAD_CREATE_JOINABLE; 5236 ; 5237 return 0; 5238} 5239_ACEOF 5240rm -f conftest.$ac_objext conftest$ac_exeext 5241if { (ac_try="$ac_link" 5242case "(($ac_try" in 5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244 *) ac_try_echo=$ac_try;; 5245esac 5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5247 (eval "$ac_link") 2>conftest.er1 5248 ac_status=$? 5249 grep -v '^ *+' conftest.er1 >conftest.err 5250 rm -f conftest.er1 5251 cat conftest.err >&5 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); } && 5254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5255 { (case "(($ac_try" in 5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5257 *) ac_try_echo=$ac_try;; 5258esac 5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5260 (eval "$ac_try") 2>&5 5261 ac_status=$? 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); }; } && 5264 { ac_try='test -s conftest$ac_exeext' 5265 { (case "(($ac_try" in 5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5267 *) ac_try_echo=$ac_try;; 5268esac 5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5270 (eval "$ac_try") 2>&5 5271 ac_status=$? 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 (exit $ac_status); }; }; then 5274 ok=PTHREAD_CREATE_JOINABLE 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ok=unknown 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext \ 5283 conftest$ac_exeext conftest.$ac_ext 5284 if test x"$ok" = xunknown; then 5285 cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291#include <pthread.h> 5292int 5293main () 5294{ 5295int attr=PTHREAD_CREATE_UNDETACHED; 5296 ; 5297 return 0; 5298} 5299_ACEOF 5300rm -f conftest.$ac_objext conftest$ac_exeext 5301if { (ac_try="$ac_link" 5302case "(($ac_try" in 5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5304 *) ac_try_echo=$ac_try;; 5305esac 5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5307 (eval "$ac_link") 2>conftest.er1 5308 ac_status=$? 5309 grep -v '^ *+' conftest.er1 >conftest.err 5310 rm -f conftest.er1 5311 cat conftest.err >&5 5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5313 (exit $ac_status); } && 5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5315 { (case "(($ac_try" in 5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5317 *) ac_try_echo=$ac_try;; 5318esac 5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5320 (eval "$ac_try") 2>&5 5321 ac_status=$? 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); }; } && 5324 { ac_try='test -s conftest$ac_exeext' 5325 { (case "(($ac_try" in 5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5327 *) ac_try_echo=$ac_try;; 5328esac 5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5330 (eval "$ac_try") 2>&5 5331 ac_status=$? 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); }; }; then 5334 ok=PTHREAD_CREATE_UNDETACHED 5335else 5336 echo "$as_me: failed program was:" >&5 5337sed 's/^/| /' conftest.$ac_ext >&5 5338 5339 ok=unknown 5340fi 5341 5342rm -f core conftest.err conftest.$ac_objext \ 5343 conftest$ac_exeext conftest.$ac_ext 5344 fi 5345 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then 5346 5347cat >>confdefs.h <<\_ACEOF 5348#define PTHREAD_CREATE_JOINABLE $ok 5349_ACEOF 5350 5351 fi 5352 { echo "$as_me:$LINENO: result: ${ok}" >&5 5353echo "${ECHO_T}${ok}" >&6; } 5354 if test x"$ok" = xunknown; then 5355 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 5356echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} 5357 fi 5358 5359 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 5360echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 5361 flag=no 5362 case "$UNAME_SYSTEM" in 5363 *AIX* | *FreeBSD*) flag="-D_THREAD_SAFE";; 5364 *SunOS* | *OSF* | *HP-UX*) flag="-D_REENTRANT";; 5365 esac 5366 { echo "$as_me:$LINENO: result: ${flag}" >&5 5367echo "${ECHO_T}${flag}" >&6; } 5368 if test "x$flag" != xno; then 5369 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 5370 fi 5371 5372 LIBS="$save_LIBS" 5373 CFLAGS="$save_CFLAGS" 5374 5375 # More AIX lossage: must compile with cc_r 5376 # Extract the first word of "cc_r", so it can be a program name with args. 5377set dummy cc_r; ac_word=$2 5378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5380if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 if test -n "$PTHREAD_CC"; then 5384 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5393 ac_cv_prog_PTHREAD_CC="cc_r" 5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398done 5399IFS=$as_save_IFS 5400 5401 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 5402fi 5403fi 5404PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 5405if test -n "$PTHREAD_CC"; then 5406 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 5407echo "${ECHO_T}$PTHREAD_CC" >&6; } 5408else 5409 { echo "$as_me:$LINENO: result: no" >&5 5410echo "${ECHO_T}no" >&6; } 5411fi 5412 5413 5414else 5415 PTHREAD_CC="$CC" 5416fi 5417 5418 5419 5420 5421 5422# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 5423if test x"$acx_pthread_ok" = xyes; then 5424 5425 if test "x$PTHREAD_CFLAGS" = "x-pthread"; then 5426 PTHREAD_LIBS="$PTHREAD_LIBS -pthread" 5427 fi 5428 5429 LIBS="$PTHREAD_LIBS $LIBS" 5430 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5431 CFLAGS_LIBGADU="$CFLAGS_LIBGADU $PTHREAD_CFLAGS" 5432 CC="$PTHREAD_CC" 5433 5434 have_pthread=yes 5435 5436 5437 cat >>confdefs.h <<\_ACEOF 5438#define __GG_LIBGADU_HAVE_PTHREAD 1 5439_ACEOF 5440 5441 5442 5443 : 5444else 5445 acx_pthread_ok=no 5446 5447 { { echo "$as_me:$LINENO: error: Your system is not supporting pthreads" >&5 5448echo "$as_me: error: Your system is not supporting pthreads" >&2;} 5449 { (exit 1); exit 1; }; } 5450 5451fi 5452ac_ext=c 5453ac_cpp='$CPP $CPPFLAGS' 5454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5456ac_compiler_gnu=$ac_cv_c_compiler_gnu 5457 5458 5459 5460 5461{ echo "$as_me:$LINENO: checking for long long" >&5 5462echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 5463 5464cat >conftest.$ac_ext <<_ACEOF 5465/* confdefs.h. */ 5466_ACEOF 5467cat confdefs.h >>conftest.$ac_ext 5468cat >>conftest.$ac_ext <<_ACEOF 5469/* end confdefs.h. */ 5470 5471int 5472main () 5473{ 5474 5475 long long a = 1LL; 5476 unsigned long long b = 1LL; 5477 5478 ; 5479 return 0; 5480} 5481_ACEOF 5482rm -f conftest.$ac_objext 5483if { (ac_try="$ac_compile" 5484case "(($ac_try" in 5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5486 *) ac_try_echo=$ac_try;; 5487esac 5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5489 (eval "$ac_compile") 2>conftest.er1 5490 ac_status=$? 5491 grep -v '^ *+' conftest.er1 >conftest.err 5492 rm -f conftest.er1 5493 cat conftest.err >&5 5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5495 (exit $ac_status); } && 5496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5497 { (case "(($ac_try" in 5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5499 *) ac_try_echo=$ac_try;; 5500esac 5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5502 (eval "$ac_try") 2>&5 5503 ac_status=$? 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); }; } && 5506 { ac_try='test -s conftest.$ac_objext' 5507 { (case "(($ac_try" in 5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5509 *) ac_try_echo=$ac_try;; 5510esac 5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5512 (eval "$ac_try") 2>&5 5513 ac_status=$? 5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5515 (exit $ac_status); }; }; then 5516 5517 { echo "$as_me:$LINENO: result: yes" >&5 5518echo "${ECHO_T}yes" >&6; } 5519 5520 cat >>confdefs.h <<\_ACEOF 5521#define __GG_LIBGADU_HAVE_LONG_LONG 1 5522_ACEOF 5523 5524 5525 5526else 5527 echo "$as_me: failed program was:" >&5 5528sed 's/^/| /' conftest.$ac_ext >&5 5529 5530 5531fi 5532 5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5534 5535 5536 5537 5538# GNUTLS 5539if test "x$with_gnutls" != "xno"; then 5540 with_gnutls=yes 5541 # Extract the first word of "libgnutls-config", so it can be a program name with args. 5542set dummy libgnutls-config; ac_word=$2 5543{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5545if test "${ac_cv_path_GNUTLS_CONFIG_SCRIPT+set}" = set; then 5546 echo $ECHO_N "(cached) $ECHO_C" >&6 5547else 5548 case $GNUTLS_CONFIG_SCRIPT in 5549 [\\/]* | ?:[\\/]*) 5550 ac_cv_path_GNUTLS_CONFIG_SCRIPT="$GNUTLS_CONFIG_SCRIPT" # Let the user override the test with a path. 5551 ;; 5552 *) 5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554for as_dir in $PATH 5555do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5560 ac_cv_path_GNUTLS_CONFIG_SCRIPT="$as_dir/$ac_word$ac_exec_ext" 5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564done 5565done 5566IFS=$as_save_IFS 5567 5568 test -z "$ac_cv_path_GNUTLS_CONFIG_SCRIPT" && ac_cv_path_GNUTLS_CONFIG_SCRIPT="no" 5569 ;; 5570esac 5571fi 5572GNUTLS_CONFIG_SCRIPT=$ac_cv_path_GNUTLS_CONFIG_SCRIPT 5573if test -n "$GNUTLS_CONFIG_SCRIPT"; then 5574 { echo "$as_me:$LINENO: result: $GNUTLS_CONFIG_SCRIPT" >&5 5575echo "${ECHO_T}$GNUTLS_CONFIG_SCRIPT" >&6; } 5576else 5577 { echo "$as_me:$LINENO: result: no" >&5 5578echo "${ECHO_T}no" >&6; } 5579fi 5580 5581 5582 5583 if test "x$GNUTLS_CONFIG_SCRIPT" != "xno"; then 5584 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5 5585echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; } 5586if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then 5587 echo $ECHO_N "(cached) $ECHO_C" >&6 5588else 5589 ac_check_lib_save_LIBS=$LIBS 5590LIBS="-lgnutls `$GNUTLS_CONFIG_SCRIPT --libs` $LIBS" 5591cat >conftest.$ac_ext <<_ACEOF 5592/* confdefs.h. */ 5593_ACEOF 5594cat confdefs.h >>conftest.$ac_ext 5595cat >>conftest.$ac_ext <<_ACEOF 5596/* end confdefs.h. */ 5597 5598/* Override any GCC internal prototype to avoid an error. 5599 Use char because int might match the return type of a GCC 5600 builtin and then its argument prototype would still apply. */ 5601#ifdef __cplusplus 5602extern "C" 5603#endif 5604char gnutls_init (); 5605int 5606main () 5607{ 5608return gnutls_init (); 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613rm -f conftest.$ac_objext conftest$ac_exeext 5614if { (ac_try="$ac_link" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5620 (eval "$ac_link") 2>conftest.er1 5621 ac_status=$? 5622 grep -v '^ *+' conftest.er1 >conftest.err 5623 rm -f conftest.er1 5624 cat conftest.err >&5 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && 5627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5628 { (case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_try") 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); }; } && 5637 { ac_try='test -s conftest$ac_exeext' 5638 { (case "(($ac_try" in 5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5640 *) ac_try_echo=$ac_try;; 5641esac 5642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5643 (eval "$ac_try") 2>&5 5644 ac_status=$? 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); }; }; then 5647 ac_cv_lib_gnutls_gnutls_init=yes 5648else 5649 echo "$as_me: failed program was:" >&5 5650sed 's/^/| /' conftest.$ac_ext >&5 5651 5652 ac_cv_lib_gnutls_gnutls_init=no 5653fi 5654 5655rm -f core conftest.err conftest.$ac_objext \ 5656 conftest$ac_exeext conftest.$ac_ext 5657LIBS=$ac_check_lib_save_LIBS 5658fi 5659{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5 5660echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; } 5661if test $ac_cv_lib_gnutls_gnutls_init = yes; then 5662 with_gnutls=yes 5663else 5664 with_gnutls=no 5665fi 5666 5667 5668 if test "x$with_gnutls" != "xno"; then 5669 5670 GNUTLS_CFLAGS=`$GNUTLS_CONFIG_SCRIPT --cflags` 5671 GNUTLS_LIBS=`$GNUTLS_CONFIG_SCRIPT --libs` 5672 5673 5674 5675for ac_header in gnutls/gnutls.h gnutls/openssl.h 5676do 5677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5679 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5682 echo $ECHO_N "(cached) $ECHO_C" >&6 5683fi 5684ac_res=`eval echo '${'$as_ac_Header'}'` 5685 { echo "$as_me:$LINENO: result: $ac_res" >&5 5686echo "${ECHO_T}$ac_res" >&6; } 5687else 5688 # Is the header compilable? 5689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5691cat >conftest.$ac_ext <<_ACEOF 5692/* confdefs.h. */ 5693_ACEOF 5694cat confdefs.h >>conftest.$ac_ext 5695cat >>conftest.$ac_ext <<_ACEOF 5696/* end confdefs.h. */ 5697$ac_includes_default 5698#include <$ac_header> 5699_ACEOF 5700rm -f conftest.$ac_objext 5701if { (ac_try="$ac_compile" 5702case "(($ac_try" in 5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5704 *) ac_try_echo=$ac_try;; 5705esac 5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5707 (eval "$ac_compile") 2>conftest.er1 5708 ac_status=$? 5709 grep -v '^ *+' conftest.er1 >conftest.err 5710 rm -f conftest.er1 5711 cat conftest.err >&5 5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5713 (exit $ac_status); } && 5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5715 { (case "(($ac_try" in 5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5717 *) ac_try_echo=$ac_try;; 5718esac 5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5720 (eval "$ac_try") 2>&5 5721 ac_status=$? 5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); }; } && 5724 { ac_try='test -s conftest.$ac_objext' 5725 { (case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_try") 2>&5 5731 ac_status=$? 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); }; }; then 5734 ac_header_compiler=yes 5735else 5736 echo "$as_me: failed program was:" >&5 5737sed 's/^/| /' conftest.$ac_ext >&5 5738 5739 ac_header_compiler=no 5740fi 5741 5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5744echo "${ECHO_T}$ac_header_compiler" >&6; } 5745 5746# Is the header present? 5747{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5749cat >conftest.$ac_ext <<_ACEOF 5750/* confdefs.h. */ 5751_ACEOF 5752cat confdefs.h >>conftest.$ac_ext 5753cat >>conftest.$ac_ext <<_ACEOF 5754/* end confdefs.h. */ 5755#include <$ac_header> 5756_ACEOF 5757if { (ac_try="$ac_cpp conftest.$ac_ext" 5758case "(($ac_try" in 5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5760 *) ac_try_echo=$ac_try;; 5761esac 5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5764 ac_status=$? 5765 grep -v '^ *+' conftest.er1 >conftest.err 5766 rm -f conftest.er1 5767 cat conftest.err >&5 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); } >/dev/null; then 5770 if test -s conftest.err; then 5771 ac_cpp_err=$ac_c_preproc_warn_flag 5772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5773 else 5774 ac_cpp_err= 5775 fi 5776else 5777 ac_cpp_err=yes 5778fi 5779if test -z "$ac_cpp_err"; then 5780 ac_header_preproc=yes 5781else 5782 echo "$as_me: failed program was:" >&5 5783sed 's/^/| /' conftest.$ac_ext >&5 5784 5785 ac_header_preproc=no 5786fi 5787 5788rm -f conftest.err conftest.$ac_ext 5789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5790echo "${ECHO_T}$ac_header_preproc" >&6; } 5791 5792# So? What about this header? 5793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5794 yes:no: ) 5795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5799 ac_header_preproc=yes 5800 ;; 5801 no:yes:* ) 5802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5814 5815 ;; 5816esac 5817{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5820 echo $ECHO_N "(cached) $ECHO_C" >&6 5821else 5822 eval "$as_ac_Header=\$ac_header_preproc" 5823fi 5824ac_res=`eval echo '${'$as_ac_Header'}'` 5825 { echo "$as_me:$LINENO: result: $ac_res" >&5 5826echo "${ECHO_T}$ac_res" >&6; } 5827 5828fi 5829if test `eval echo '${'$as_ac_Header'}'` = yes; then 5830 cat >>confdefs.h <<_ACEOF 5831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5832_ACEOF 5833 have_gnutlsh=yes 5834else 5835 have_gnutlsh=no 5836fi 5837 5838done 5839 5840 if test "$have_gnutlsh" = yes; then 5841 with_gnutls=yes 5842 5843 5844 OBJS="$OBJS simlite.o" 5845 LDFLAGS="$GNUTLS_LIBS $LDFLAGS" 5846 LIBS_LIBGADU="$LIBS_LIBGADU $GNUTLS_LIBS" 5847 CFLAGS="$CFLAGS $GNUTLS_INCLUDES" 5848 CFLAGS_LIBGADU="$CFLAGS_LIBGADU $GNUTLS_INCLUDES" 5849 5850 cat >>confdefs.h <<\_ACEOF 5851#define __GG_LIBGADU_HAVE_GNUTLS 1 5852_ACEOF 5853 5854 5855 else 5856 with_gnutls=no 5857 { { echo "$as_me:$LINENO: error: *** unable to find gnutls/gnutls.h and gnutls/openssl.h headers ***" >&5 5858echo "$as_me: error: *** unable to find gnutls/gnutls.h and gnutls/openssl.h headers ***" >&2;} 5859 { (exit 1); exit 1; }; } 5860 fi 5861 fi 5862 else 5863 { { echo "$as_me:$LINENO: error: *** unable to find GNUTLS library (http://www.gnu.org/software/gnutls/) ***" >&5 5864echo "$as_me: error: *** unable to find GNUTLS library (http://www.gnu.org/software/gnutls/) ***" >&2;} 5865 { (exit 1); exit 1; }; } 5866 with_gnutls=no 5867 fi 5868else 5869 with_gnutls=no 5870fi 5871 5872 5873 5874ac_config_files="$ac_config_files Makefile" 5875 5876 5877echo 5878echo "configured options:" 5879 5880 5881if test "x$have_pthread" = "xyes"; then 5882 echo " - pthread: enabled" 5883else 5884 echo " - pthread: disabled" 5885fi 5886 5887 5888echo 5889 5890