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