1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59b. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 6# 2003, 2004 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# Find who we are. Look in the path if we contain no path at all 58# relative or not. 59case $0 in 60 *[\\/]* ) as_myself=$0 ;; 61 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 62for as_dir in $PATH 63do 64 IFS=$as_save_IFS 65 test -z "$as_dir" && as_dir=. 66 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 67done 68 69 ;; 70esac 71# We did not find ourselves, most probably we were run as `sh COMMAND' 72# in which case we are not to be found in the path. 73if test "x$as_myself" = x; then 74 as_myself=$0 75fi 76if test ! -f "$as_myself"; then 77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2 78 { (exit 1); exit 1; }; } 79fi 80 81# Work around bugs in pre-3.0 UWIN ksh. 82for as_var in ENV MAIL MAILPATH 83do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 84done 85PS1='$ ' 86PS2='> ' 87PS4='+ ' 88 89# NLS nuisances. 90for as_var in \ 91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 93 LC_TELEPHONE LC_TIME 94do 95 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 96 eval $as_var=C; export $as_var 97 else 98 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99 fi 100done 101 102# Required to use basename. 103if expr a : '\(a\)' >/dev/null 2>&1; then 104 as_expr=expr 105else 106 as_expr=false 107fi 108 109if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 110 as_basename=basename 111else 112 as_basename=false 113fi 114 115 116# Name of the executable. 117as_me=`$as_basename "$0" || 118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 119 X"$0" : 'X\(//\)$' \| \ 120 X"$0" : 'X\(/\)$' \| \ 121 . : '\(.\)' 2>/dev/null || 122echo X/"$0" | 123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 124 /^X\/\(\/\/\)$/{ s//\1/; q; } 125 /^X\/\(\/\).*/{ s//\1/; q; } 126 s/.*/./; q'` 127 128 129 130if test "x$CONFIG_SHELL" = x; then 131 if (eval ":") 2>/dev/null; then 132 as_have_required=yes 133else 134 as_have_required=no 135fi 136 137 if test $as_have_required = yes && (eval ": 138(func_return () { 139 (exit \$1) 140} 141func_success () { 142 func_return 0 143} 144func_failure () { 145 func_return 1 146} 147func_ret_success () { 148 return 0 149} 150func_ret_failure () { 151 return 1 152} 153 154exitcode=0 155if func_success; then 156 : 157else 158 exitcode=1 159 echo func_failure succeeded. 160fi 161 162if func_failure; then 163 exitcode=1 164 echo func_success failed. 165fi 166 167if func_ret_success; then 168 : 169else 170 exitcode=1 171 echo func_ret_success failed. 172fi 173 174if func_ret_failure; then 175 exitcode=1 176 echo func_ret_failure succeeded. 177fi 178 179test \$exitcode = 0) || { (exit 1); exit 1; } 180 181( 182 as_lineno_1=\$LINENO 183 as_lineno_2=\$LINENO 184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\` 185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 187") 2> /dev/null; then 188 : 189else 190 as_candidate_shells= 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 192for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 193do 194 IFS=$as_save_IFS 195 test -z "$as_dir" && as_dir=. 196 case $as_dir in 197 /*) 198 for as_base in sh bash ksh sh5; do 199 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 200 done 201 esac 202done 203 204 205 for as_shell in $as_candidate_shells $SHELL; do 206 if { $as_shell 2> /dev/null <<\_ASEOF 207# Be Bourne compatible 208if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 209 emulate sh 210 NULLCMD=: 211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 212 # is contrary to our usage. Disable this feature. 213 alias -g '${1+"$@"}'='"$@"' 214 setopt NO_GLOB_SUBST 215elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 216 set -o posix 217fi 218BIN_SH=xpg4; export BIN_SH # for Tru64 219DUALCASE=1; export DUALCASE # for MKS sh 220 221: 222_ASEOF 223}; then 224 CONFIG_SHELL=$as_shell 225 as_have_required=yes 226 if { $as_shell 2> /dev/null <<\_ASEOF 227# Be Bourne compatible 228if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 229 emulate sh 230 NULLCMD=: 231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 232 # is contrary to our usage. Disable this feature. 233 alias -g '${1+"$@"}'='"$@"' 234 setopt NO_GLOB_SUBST 235elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 236 set -o posix 237fi 238BIN_SH=xpg4; export BIN_SH # for Tru64 239DUALCASE=1; export DUALCASE # for MKS sh 240 241: 242(func_return () { 243 (exit $1) 244} 245func_success () { 246 func_return 0 247} 248func_failure () { 249 func_return 1 250} 251func_ret_success () { 252 return 0 253} 254func_ret_failure () { 255 return 1 256} 257 258exitcode=0 259if func_success; then 260 : 261else 262 exitcode=1 263 echo func_failure succeeded. 264fi 265 266if func_failure; then 267 exitcode=1 268 echo func_success failed. 269fi 270 271if func_ret_success; then 272 : 273else 274 exitcode=1 275 echo func_ret_success failed. 276fi 277 278if func_ret_failure; then 279 exitcode=1 280 echo func_ret_failure succeeded. 281fi 282 283test $exitcode = 0) || { (exit 1); exit 1; } 284 285( 286 as_lineno_1=$LINENO 287 as_lineno_2=$LINENO 288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 289 test "x$as_lineno_1" != "x$as_lineno_2" && 290 test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; } 291 292_ASEOF 293}; then 294 break 295fi 296 297fi 298 299 done 300 301 if test "x$CONFIG_SHELL" != x; then 302 for as_var in BASH_ENV ENV 303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 304 done 305 export CONFIG_SHELL 306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 307fi 308 309 310 if test $as_have_required = no; then 311 echo This script requires a shell more modern than all the 312 echo shells that I found on your system. Please install a 313 echo modern shell, or manually run the script under such a 314 echo shell if you do have one. 315 { (exit 1); exit 1; } 316fi 317 318 319fi 320 321fi 322 323 324 325(eval "func_return () { 326 (exit \$1) 327} 328func_success () { 329 func_return 0 330} 331func_failure () { 332 func_return 1 333} 334func_ret_success () { 335 return 0 336} 337func_ret_failure () { 338 return 1 339} 340 341exitcode=0 342if func_success; then 343 : 344else 345 exitcode=1 346 echo func_failure succeeded. 347fi 348 349if func_failure; then 350 exitcode=1 351 echo func_success failed. 352fi 353 354if func_ret_success; then 355 : 356else 357 exitcode=1 358 echo func_ret_success failed. 359fi 360 361if func_ret_failure; then 362 exitcode=1 363 echo func_ret_failure succeeded. 364fi 365 366test \$exitcode = 0") || { 367 echo No shell found that supports shell functions. 368 echo Please tell autoconf@gnu.org about your system, 369 echo including any error possibly output before this 370 echo message 371} 372 373 374 375 as_lineno_1=$LINENO 376 as_lineno_2=$LINENO 377 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 378 test "x$as_lineno_1" != "x$as_lineno_2" && 379 test "x$as_lineno_3" = "x$as_lineno_2" || { 380 381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 382 # uniformly replaced by the line number. The first 'sed' inserts a 383 # line-number line after each line using $LINENO; the second 'sed' 384 # does the real work. The second script uses 'N' to pair each 385 # line-number line with the line containing $LINENO, and appends 386 # trailing '-' during substitution so that $LINENO is not a special 387 # case at line end. 388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 389 # scripts with optimization help from Paolo Bonzini. Blame Lee 390 # E. McMahon (1931-1989) for sed's syntax. :-) 391 sed -n ' 392 p 393 /[$]LINENO/= 394 ' <$as_myself | 395 sed ' 396 s,[$]LINENO.*,&-, 397 t lineno 398 b 399 : lineno 400 N 401 : loop 402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2, 403 t loop 404 s,-\n.*,, 405 ' >$as_me.lineno && 406 chmod +x $as_me.lineno || 407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 408 { (exit 1); exit 1; }; } 409 410 # Don't try to exec as it changes $[0], causing all sort of problems 411 # (the dirname of $[0] is not the place where we might find the 412 # original and so on. Autoconf is especially sensible to this). 413 . ./$as_me.lineno 414 # Exit status is that of the last command. 415 exit 416} 417 418 419case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 420 *c*,-n*) ECHO_N= ECHO_C=' 421' ECHO_T=' ' ;; 422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 424esac 425 426if expr a : '\(a\)' >/dev/null 2>&1; then 427 as_expr=expr 428else 429 as_expr=false 430fi 431 432rm -f conf$$ conf$$.exe conf$$.file 433echo >conf$$.file 434if ln -s conf$$.file conf$$ 2>/dev/null; then 435 # We could just check for DJGPP; but this test a) works b) is more generic 436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 437 if test -f conf$$.exe; then 438 # Don't use ln at all; we don't have any links 439 as_ln_s='cp -p' 440 else 441 as_ln_s='ln -s' 442 fi 443elif ln conf$$.file conf$$ 2>/dev/null; then 444 as_ln_s=ln 445else 446 as_ln_s='cp -p' 447fi 448rm -f conf$$ conf$$.exe conf$$.file 449 450if mkdir -p . 2>/dev/null; then 451 as_mkdir_p=: 452else 453 test -d ./-p && rmdir ./-p 454 as_mkdir_p=false 455fi 456 457as_executable_p="test -f" 458 459# Sed expression to map a string onto a valid CPP name. 460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 461 462# Sed expression to map a string onto a valid variable name. 463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 464 465 466# IFS 467# We need space, tab and new line, in precisely that order. 468as_nl=' 469' 470IFS=" $as_nl" 471 472# CDPATH. 473$as_unset CDPATH 474 475 476# Name of the host. 477# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 478# so uname gets run too. 479ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 480 481exec 6>&1 482 483# 484# Initializations. 485# 486ac_default_prefix=/usr/local 487ac_config_libobj_dir=. 488cross_compiling=no 489subdirs= 490MFLAGS= 491MAKEFLAGS= 492SHELL=${CONFIG_SHELL-/bin/sh} 493 494# Maximum number of lines to put in a shell here document. 495# This variable seems obsolete. It should probably be removed, and 496# only ac_max_sed_lines should be used. 497: ${ac_max_here_lines=38} 498 499# Identity of this package. 500PACKAGE_NAME= 501PACKAGE_TARNAME= 502PACKAGE_VERSION= 503PACKAGE_STRING= 504PACKAGE_BUGREPORT= 505 506ac_unique_file="src/roff/groff/groff.cpp" 507# Factoring default headers for most tests. 508ac_includes_default="\ 509#include <stdio.h> 510#if HAVE_SYS_TYPES_H 511# include <sys/types.h> 512#endif 513#if HAVE_SYS_STAT_H 514# include <sys/stat.h> 515#endif 516#if STDC_HEADERS 517# include <stdlib.h> 518# include <stddef.h> 519#else 520# if HAVE_STDLIB_H 521# include <stdlib.h> 522# endif 523#endif 524#if HAVE_STRING_H 525# if !STDC_HEADERS && HAVE_MEMORY_H 526# include <memory.h> 527# endif 528# include <string.h> 529#endif 530#if HAVE_STRINGS_H 531# include <strings.h> 532#endif 533#if HAVE_INTTYPES_H 534# include <inttypes.h> 535#endif 536#if HAVE_STDINT_H 537# include <stdint.h> 538#endif 539#if HAVE_UNISTD_H 540# include <unistd.h> 541#endif" 542 543ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS' 544ac_subst_files='' 545 546# Initialize some variables set by options. 547ac_init_help= 548ac_init_version=false 549# The variables have the same names as the options, with 550# dashes changed to underlines. 551cache_file=/dev/null 552exec_prefix=NONE 553no_create= 554no_recursion= 555prefix=NONE 556program_prefix=NONE 557program_suffix=NONE 558program_transform_name=s,x,x, 559silent= 560site= 561srcdir= 562verbose= 563x_includes=NONE 564x_libraries=NONE 565 566# Installation directory options. 567# These are left unexpanded so users can "make install exec_prefix=/foo" 568# and all the variables that are supposed to be based on exec_prefix 569# by default will actually change. 570# Use braces instead of parens because sh, perl, etc. also accept them. 571bindir='${exec_prefix}/bin' 572sbindir='${exec_prefix}/sbin' 573libexecdir='${exec_prefix}/libexec' 574datadir='${prefix}/share' 575sysconfdir='${prefix}/etc' 576sharedstatedir='${prefix}/com' 577localstatedir='${prefix}/var' 578libdir='${exec_prefix}/lib' 579includedir='${prefix}/include' 580oldincludedir='/usr/include' 581infodir='${prefix}/info' 582mandir='${prefix}/man' 583 584ac_prev= 585ac_dashdash= 586for ac_option 587do 588 # If the previous option needs an argument, assign it. 589 if test -n "$ac_prev"; then 590 eval "$ac_prev=\$ac_option" 591 ac_prev= 592 continue 593 fi 594 595 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 596 597 # Accept the important Cygnus configure options, so we can diagnose typos. 598 599 case $ac_dashdash$ac_option in 600 --) 601 ac_dashdash=yes ;; 602 603 -bindir | --bindir | --bindi | --bind | --bin | --bi) 604 ac_prev=bindir ;; 605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 606 bindir=$ac_optarg ;; 607 608 -build | --build | --buil | --bui | --bu) 609 ac_prev=build_alias ;; 610 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 611 build_alias=$ac_optarg ;; 612 613 -cache-file | --cache-file | --cache-fil | --cache-fi \ 614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 615 ac_prev=cache_file ;; 616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 618 cache_file=$ac_optarg ;; 619 620 --config-cache | -C) 621 cache_file=config.cache ;; 622 623 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 624 ac_prev=datadir ;; 625 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 626 | --da=*) 627 datadir=$ac_optarg ;; 628 629 -disable-* | --disable-*) 630 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 631 # Reject names that are not valid shell variable names. 632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 634 { (exit 1); exit 1; }; } 635 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 636 eval "enable_$ac_feature=no" ;; 637 638 -enable-* | --enable-*) 639 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 640 # Reject names that are not valid shell variable names. 641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 643 { (exit 1); exit 1; }; } 644 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 645 case $ac_option in 646 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 647 *) ac_optarg=yes ;; 648 esac 649 eval "enable_$ac_feature='$ac_optarg'" ;; 650 651 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 652 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 653 | --exec | --exe | --ex) 654 ac_prev=exec_prefix ;; 655 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 656 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 657 | --exec=* | --exe=* | --ex=*) 658 exec_prefix=$ac_optarg ;; 659 660 -gas | --gas | --ga | --g) 661 # Obsolete; use --with-gas. 662 with_gas=yes ;; 663 664 -help | --help | --hel | --he | -h) 665 ac_init_help=long ;; 666 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 667 ac_init_help=recursive ;; 668 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 669 ac_init_help=short ;; 670 671 -host | --host | --hos | --ho) 672 ac_prev=host_alias ;; 673 -host=* | --host=* | --hos=* | --ho=*) 674 host_alias=$ac_optarg ;; 675 676 -includedir | --includedir | --includedi | --included | --include \ 677 | --includ | --inclu | --incl | --inc) 678 ac_prev=includedir ;; 679 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 680 | --includ=* | --inclu=* | --incl=* | --inc=*) 681 includedir=$ac_optarg ;; 682 683 -infodir | --infodir | --infodi | --infod | --info | --inf) 684 ac_prev=infodir ;; 685 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 686 infodir=$ac_optarg ;; 687 688 -libdir | --libdir | --libdi | --libd) 689 ac_prev=libdir ;; 690 -libdir=* | --libdir=* | --libdi=* | --libd=*) 691 libdir=$ac_optarg ;; 692 693 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 694 | --libexe | --libex | --libe) 695 ac_prev=libexecdir ;; 696 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 697 | --libexe=* | --libex=* | --libe=*) 698 libexecdir=$ac_optarg ;; 699 700 -localstatedir | --localstatedir | --localstatedi | --localstated \ 701 | --localstate | --localstat | --localsta | --localst \ 702 | --locals | --local | --loca | --loc | --lo) 703 ac_prev=localstatedir ;; 704 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 705 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 706 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 707 localstatedir=$ac_optarg ;; 708 709 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 710 ac_prev=mandir ;; 711 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 712 mandir=$ac_optarg ;; 713 714 -nfp | --nfp | --nf) 715 # Obsolete; use --without-fp. 716 with_fp=no ;; 717 718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 719 | --no-cr | --no-c | -n) 720 no_create=yes ;; 721 722 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 723 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 724 no_recursion=yes ;; 725 726 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 727 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 728 | --oldin | --oldi | --old | --ol | --o) 729 ac_prev=oldincludedir ;; 730 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 731 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 732 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 733 oldincludedir=$ac_optarg ;; 734 735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 736 ac_prev=prefix ;; 737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 738 prefix=$ac_optarg ;; 739 740 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 741 | --program-pre | --program-pr | --program-p) 742 ac_prev=program_prefix ;; 743 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 744 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 745 program_prefix=$ac_optarg ;; 746 747 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 748 | --program-suf | --program-su | --program-s) 749 ac_prev=program_suffix ;; 750 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 751 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 752 program_suffix=$ac_optarg ;; 753 754 -program-transform-name | --program-transform-name \ 755 | --program-transform-nam | --program-transform-na \ 756 | --program-transform-n | --program-transform- \ 757 | --program-transform | --program-transfor \ 758 | --program-transfo | --program-transf \ 759 | --program-trans | --program-tran \ 760 | --progr-tra | --program-tr | --program-t) 761 ac_prev=program_transform_name ;; 762 -program-transform-name=* | --program-transform-name=* \ 763 | --program-transform-nam=* | --program-transform-na=* \ 764 | --program-transform-n=* | --program-transform-=* \ 765 | --program-transform=* | --program-transfor=* \ 766 | --program-transfo=* | --program-transf=* \ 767 | --program-trans=* | --program-tran=* \ 768 | --progr-tra=* | --program-tr=* | --program-t=*) 769 program_transform_name=$ac_optarg ;; 770 771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 772 | -silent | --silent | --silen | --sile | --sil) 773 silent=yes ;; 774 775 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 776 ac_prev=sbindir ;; 777 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 778 | --sbi=* | --sb=*) 779 sbindir=$ac_optarg ;; 780 781 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 782 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 783 | --sharedst | --shareds | --shared | --share | --shar \ 784 | --sha | --sh) 785 ac_prev=sharedstatedir ;; 786 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 787 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 788 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 789 | --sha=* | --sh=*) 790 sharedstatedir=$ac_optarg ;; 791 792 -site | --site | --sit) 793 ac_prev=site ;; 794 -site=* | --site=* | --sit=*) 795 site=$ac_optarg ;; 796 797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 798 ac_prev=srcdir ;; 799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 800 srcdir=$ac_optarg ;; 801 802 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 803 | --syscon | --sysco | --sysc | --sys | --sy) 804 ac_prev=sysconfdir ;; 805 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 806 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 807 sysconfdir=$ac_optarg ;; 808 809 -target | --target | --targe | --targ | --tar | --ta | --t) 810 ac_prev=target_alias ;; 811 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 812 target_alias=$ac_optarg ;; 813 814 -v | -verbose | --verbose | --verbos | --verbo | --verb) 815 verbose=yes ;; 816 817 -version | --version | --versio | --versi | --vers | -V) 818 ac_init_version=: ;; 819 820 -with-* | --with-*) 821 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 822 # Reject names that are not valid shell variable names. 823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 824 { echo "$as_me: error: invalid package name: $ac_package" >&2 825 { (exit 1); exit 1; }; } 826 ac_package=`echo $ac_package| sed 's/-/_/g'` 827 case $ac_option in 828 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 829 *) ac_optarg=yes ;; 830 esac 831 eval "with_$ac_package='$ac_optarg'" ;; 832 833 -without-* | --without-*) 834 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 835 # Reject names that are not valid shell variable names. 836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 837 { echo "$as_me: error: invalid package name: $ac_package" >&2 838 { (exit 1); exit 1; }; } 839 ac_package=`echo $ac_package | sed 's/-/_/g'` 840 eval "with_$ac_package=no" ;; 841 842 --x) 843 # Obsolete; use --with-x. 844 with_x=yes ;; 845 846 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 847 | --x-incl | --x-inc | --x-in | --x-i) 848 ac_prev=x_includes ;; 849 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 850 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 851 x_includes=$ac_optarg ;; 852 853 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 854 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 855 ac_prev=x_libraries ;; 856 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 857 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 858 x_libraries=$ac_optarg ;; 859 860 -*) { echo "$as_me: error: unrecognized option: $ac_option 861Try \`$0 --help' for more information." >&2 862 { (exit 1); exit 1; }; } 863 ;; 864 865 *=*) 866 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 870 { (exit 1); exit 1; }; } 871 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 872 eval "$ac_envvar='$ac_optarg'" 873 export $ac_envvar ;; 874 875 *) 876 # FIXME: should be removed in autoconf 3.0. 877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 881 ;; 882 883 esac 884done 885 886if test -n "$ac_prev"; then 887 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 888 { echo "$as_me: error: missing argument to $ac_option" >&2 889 { (exit 1); exit 1; }; } 890fi 891 892# Be sure to have absolute directory names. 893for ac_var in exec_prefix prefix 894do 895 eval ac_val=$`echo $ac_var` 896 case $ac_val in 897 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 899 { (exit 1); exit 1; }; };; 900 esac 901done 902 903# Be sure to have absolute directory names. 904for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 905 localstatedir libdir includedir oldincludedir infodir mandir 906do 907 eval ac_val=$`echo $ac_var` 908 case $ac_val in 909 [\\/$]* | ?:[\\/]* ) ;; 910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 911 { (exit 1); exit 1; }; };; 912 esac 913done 914 915# There might be people who depend on the old broken behavior: `$host' 916# used to hold the argument of --host etc. 917# FIXME: To remove some day. 918build=$build_alias 919host=$host_alias 920target=$target_alias 921 922# FIXME: To remove some day. 923if test "x$host_alias" != x; then 924 if test "x$build_alias" = x; then 925 cross_compiling=maybe 926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 927 If a cross compiler is detected then cross compile mode will be used." >&2 928 elif test "x$build_alias" != "x$host_alias"; then 929 cross_compiling=yes 930 fi 931fi 932 933ac_tool_prefix= 934test -n "$host_alias" && ac_tool_prefix=$host_alias- 935 936test "$silent" = yes && exec 6>/dev/null 937 938 939# Find the source files, if location was not specified. 940if test -z "$srcdir"; then 941 ac_srcdir_defaulted=yes 942 # Try the directory containing this script, then its parent. 943 ac_confdir=`(dirname "$0") 2>/dev/null || 944$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 945 X"$0" : 'X\(//\)[^/]' \| \ 946 X"$0" : 'X\(//\)$' \| \ 947 X"$0" : 'X\(/\)' \| \ 948 . : '\(.\)' 2>/dev/null || 949echo X"$0" | 950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 951 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 952 /^X\(\/\/\)$/{ s//\1/; q; } 953 /^X\(\/\).*/{ s//\1/; q; } 954 s/.*/./; q'` 955 srcdir=$ac_confdir 956 if test ! -r $srcdir/$ac_unique_file; then 957 srcdir=.. 958 fi 959else 960 ac_srcdir_defaulted=no 961fi 962if test ! -r $srcdir/$ac_unique_file; then 963 if test "$ac_srcdir_defaulted" = yes; then 964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 965 { (exit 1); exit 1; }; } 966 else 967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 968 { (exit 1); exit 1; }; } 969 fi 970fi 971(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 973 { (exit 1); exit 1; }; } 974srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 975ac_env_build_alias_set=${build_alias+set} 976ac_env_build_alias_value=$build_alias 977ac_cv_env_build_alias_set=${build_alias+set} 978ac_cv_env_build_alias_value=$build_alias 979ac_env_host_alias_set=${host_alias+set} 980ac_env_host_alias_value=$host_alias 981ac_cv_env_host_alias_set=${host_alias+set} 982ac_cv_env_host_alias_value=$host_alias 983ac_env_target_alias_set=${target_alias+set} 984ac_env_target_alias_value=$target_alias 985ac_cv_env_target_alias_set=${target_alias+set} 986ac_cv_env_target_alias_value=$target_alias 987ac_env_CC_set=${CC+set} 988ac_env_CC_value=$CC 989ac_cv_env_CC_set=${CC+set} 990ac_cv_env_CC_value=$CC 991ac_env_CFLAGS_set=${CFLAGS+set} 992ac_env_CFLAGS_value=$CFLAGS 993ac_cv_env_CFLAGS_set=${CFLAGS+set} 994ac_cv_env_CFLAGS_value=$CFLAGS 995ac_env_LDFLAGS_set=${LDFLAGS+set} 996ac_env_LDFLAGS_value=$LDFLAGS 997ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 998ac_cv_env_LDFLAGS_value=$LDFLAGS 999ac_env_CPPFLAGS_set=${CPPFLAGS+set} 1000ac_env_CPPFLAGS_value=$CPPFLAGS 1001ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 1002ac_cv_env_CPPFLAGS_value=$CPPFLAGS 1003ac_env_CXX_set=${CXX+set} 1004ac_env_CXX_value=$CXX 1005ac_cv_env_CXX_set=${CXX+set} 1006ac_cv_env_CXX_value=$CXX 1007ac_env_CXXFLAGS_set=${CXXFLAGS+set} 1008ac_env_CXXFLAGS_value=$CXXFLAGS 1009ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 1010ac_cv_env_CXXFLAGS_value=$CXXFLAGS 1011ac_env_CPP_set=${CPP+set} 1012ac_env_CPP_value=$CPP 1013ac_cv_env_CPP_set=${CPP+set} 1014ac_cv_env_CPP_value=$CPP 1015 1016# 1017# Report the --help message. 1018# 1019if test "$ac_init_help" = "long"; then 1020 # Omit some internal or obsolete options to make the list less imposing. 1021 # This message is too long to be a string in the A/UX 3.1 sh. 1022 cat <<_ACEOF 1023\`configure' configures this package to adapt to many kinds of systems. 1024 1025Usage: $0 [OPTION]... [VAR=VALUE]... 1026 1027To assign environment variables (e.g., CC, CFLAGS...), specify them as 1028VAR=VALUE. See below for descriptions of some of the useful variables. 1029 1030Defaults for the options are specified in brackets. 1031 1032Configuration: 1033 -h, --help display this help and exit 1034 --help=short display options specific to this package 1035 --help=recursive display the short help of all the included packages 1036 -V, --version display version information and exit 1037 -q, --quiet, --silent do not print \`checking...' messages 1038 --cache-file=FILE cache test results in FILE [disabled] 1039 -C, --config-cache alias for \`--cache-file=config.cache' 1040 -n, --no-create do not create output files 1041 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1042 1043_ACEOF 1044 1045 cat <<_ACEOF 1046Installation directories: 1047 --prefix=PREFIX install architecture-independent files in PREFIX 1048 [$ac_default_prefix] 1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1050 [PREFIX] 1051 1052By default, \`make install' will install all the files in 1053\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1054an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1055for instance \`--prefix=\$HOME'. 1056 1057For better control, use the options below. 1058 1059Fine tuning of the installation directories: 1060 --bindir=DIR user executables [EPREFIX/bin] 1061 --sbindir=DIR system admin executables [EPREFIX/sbin] 1062 --libexecdir=DIR program executables [EPREFIX/libexec] 1063 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1067 --libdir=DIR object code libraries [EPREFIX/lib] 1068 --includedir=DIR C header files [PREFIX/include] 1069 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1070 --infodir=DIR info documentation [PREFIX/info] 1071 --mandir=DIR man documentation [PREFIX/man] 1072_ACEOF 1073 1074 cat <<\_ACEOF 1075 1076X features: 1077 --x-includes=DIR X include files are in DIR 1078 --x-libraries=DIR X library files are in DIR 1079_ACEOF 1080fi 1081 1082if test -n "$ac_init_help"; then 1083 1084 cat <<\_ACEOF 1085 1086Optional Packages: 1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1089 --with-x use the X Window System 1090 --with-appresdir=DIR X11 application resource files 1091 --with-alt-gs=LIST alternative names for ghostscript executable 1092 --with-gs=PROG actual [/path/]name of ghostscript executable 1093 --with-alt-awk=LIST alternative names for awk executable 1094 --with-awk=PROG actual [/path/]name of awk executable 1095 1096Some influential environment variables: 1097 CC C compiler command 1098 CFLAGS C compiler flags 1099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1100 nonstandard directory <lib dir> 1101 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1102 headers in a nonstandard directory <include dir> 1103 CXX C++ compiler command 1104 CXXFLAGS C++ compiler flags 1105 CPP C preprocessor 1106 1107Use these variables to override the choices made by `configure' or to help 1108it to find libraries and programs with nonstandard names/locations. 1109 1110_ACEOF 1111fi 1112 1113if test "$ac_init_help" = "recursive"; then 1114 # If there are subdirs, report their specific --help. 1115 ac_popdir=`pwd` 1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1117 test -d $ac_dir || continue 1118 ac_builddir=. 1119 1120if test "$ac_dir" != .; then 1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1122 # A "../" for each directory in $ac_dir_suffix. 1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1124else 1125 ac_dir_suffix= ac_top_builddir= 1126fi 1127 1128case $srcdir in 1129 .) # No --srcdir option. We are building in place. 1130 ac_srcdir=. 1131 if test -z "$ac_top_builddir"; then 1132 ac_top_srcdir=. 1133 else 1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1135 fi ;; 1136 [\\/]* | ?:[\\/]* ) # Absolute name. 1137 ac_srcdir=$srcdir$ac_dir_suffix; 1138 ac_top_srcdir=$srcdir ;; 1139 *) # Relative name. 1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1141 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1142esac 1143 1144# Do not use `cd foo && pwd` to compute absolute names, because 1145# the directories may not exist. 1146case `pwd` in 1147.) ac_abs_builddir="$ac_dir";; 1148*) 1149 case "$ac_dir" in 1150 .) ac_abs_builddir=`pwd`;; 1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1152 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1153 esac;; 1154esac 1155case $ac_abs_builddir in 1156.) ac_abs_top_builddir=${ac_top_builddir}.;; 1157*) 1158 case ${ac_top_builddir}. in 1159 .) ac_abs_top_builddir=$ac_abs_builddir;; 1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1162 esac;; 1163esac 1164case $ac_abs_builddir in 1165.) ac_abs_srcdir=$ac_srcdir;; 1166*) 1167 case $ac_srcdir in 1168 .) ac_abs_srcdir=$ac_abs_builddir;; 1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1171 esac;; 1172esac 1173case $ac_abs_builddir in 1174.) ac_abs_top_srcdir=$ac_top_srcdir;; 1175*) 1176 case $ac_top_srcdir in 1177 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1180 esac;; 1181esac 1182 1183 cd $ac_dir 1184 # Check for guested configure; otherwise get Cygnus style configure. 1185 if test -f $ac_srcdir/configure.gnu; then 1186 echo 1187 $SHELL $ac_srcdir/configure.gnu --help=recursive 1188 elif test -f $ac_srcdir/configure; then 1189 echo 1190 $SHELL $ac_srcdir/configure --help=recursive 1191 elif test -f $ac_srcdir/configure.ac || 1192 test -f $ac_srcdir/configure.in; then 1193 echo 1194 $ac_configure --help 1195 else 1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1197 fi 1198 cd "$ac_popdir" 1199 done 1200fi 1201 1202test -n "$ac_init_help" && exit 0 1203if $ac_init_version; then 1204 cat <<\_ACEOF 1205 1206Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 12072003, 2004 Free Software Foundation, Inc. 1208This configure script is free software; the Free Software Foundation 1209gives unlimited permission to copy, distribute and modify it. 1210_ACEOF 1211 exit 0 1212fi 1213exec 5>config.log 1214cat >&5 <<_ACEOF 1215This file contains any messages produced by compilers while 1216running configure, to aid debugging if configure makes a mistake. 1217 1218It was created by $as_me, which was 1219generated by GNU Autoconf 2.59b. Invocation command line was 1220 1221 $ $0 $@ 1222 1223_ACEOF 1224{ 1225cat <<_ASUNAME 1226## --------- ## 1227## Platform. ## 1228## --------- ## 1229 1230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1231uname -m = `(uname -m) 2>/dev/null || echo unknown` 1232uname -r = `(uname -r) 2>/dev/null || echo unknown` 1233uname -s = `(uname -s) 2>/dev/null || echo unknown` 1234uname -v = `(uname -v) 2>/dev/null || echo unknown` 1235 1236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1238 1239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1242hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1246 1247_ASUNAME 1248 1249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1250for as_dir in $PATH 1251do 1252 IFS=$as_save_IFS 1253 test -z "$as_dir" && as_dir=. 1254 echo "PATH: $as_dir" 1255done 1256 1257} >&5 1258 1259cat >&5 <<_ACEOF 1260 1261 1262## ----------- ## 1263## Core tests. ## 1264## ----------- ## 1265 1266_ACEOF 1267 1268 1269# Keep a trace of the command line. 1270# Strip out --no-create and --no-recursion so they do not pile up. 1271# Strip out --silent because we don't want to record it for future runs. 1272# Also quote any args containing shell meta-characters. 1273# Make two passes to allow for proper duplicate-argument suppression. 1274ac_configure_args= 1275ac_configure_args0= 1276ac_configure_args1= 1277ac_sep= 1278ac_must_keep_next=false 1279for ac_pass in 1 2 1280do 1281 for ac_arg 1282 do 1283 case $ac_arg in 1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1286 | -silent | --silent | --silen | --sile | --sil) 1287 continue ;; 1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1290 esac 1291 case $ac_pass in 1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1293 2) 1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1295 if test $ac_must_keep_next = true; then 1296 ac_must_keep_next=false # Got value, back to normal. 1297 else 1298 case $ac_arg in 1299 *=* | --config-cache | -C | -disable-* | --disable-* \ 1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1302 | -with-* | --with-* | -without-* | --without-* | --x) 1303 case "$ac_configure_args0 " in 1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1305 esac 1306 ;; 1307 -* ) ac_must_keep_next=true ;; 1308 esac 1309 fi 1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1311 # Get rid of the leading space. 1312 ac_sep=" " 1313 ;; 1314 esac 1315 done 1316done 1317$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1318$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1319 1320# When interrupted or exit'd, cleanup temporary files, and complete 1321# config.log. We remove comments because anyway the quotes in there 1322# would cause problems or look ugly. 1323# WARNING: Be sure not to use single quotes in there, as some shells, 1324# such as our DU 5.0 friend, will then `close' the trap. 1325trap 'exit_status=$? 1326 # Save into config.log some information that might help in debugging. 1327 { 1328 echo 1329 1330 cat <<\_ASBOX 1331## ---------------- ## 1332## Cache variables. ## 1333## ---------------- ## 1334_ASBOX 1335 echo 1336 # The following way of writing the cache mishandles newlines in values, 1337{ 1338 (set) 2>&1 | 1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1340 *ac_space=\ *) 1341 sed -n \ 1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1344 ;; 1345 *) 1346 sed -n \ 1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1348 ;; 1349 esac; 1350} 1351 echo 1352 1353 cat <<\_ASBOX 1354## ----------------- ## 1355## Output variables. ## 1356## ----------------- ## 1357_ASBOX 1358 echo 1359 for ac_var in $ac_subst_vars 1360 do 1361 eval ac_val=$`echo $ac_var` 1362 echo "$ac_var='"'"'$ac_val'"'"'" 1363 done | sort 1364 echo 1365 1366 if test -n "$ac_subst_files"; then 1367 cat <<\_ASBOX 1368## ------------- ## 1369## Output files. ## 1370## ------------- ## 1371_ASBOX 1372 echo 1373 for ac_var in $ac_subst_files 1374 do 1375 eval ac_val=$`echo $ac_var` 1376 echo "$ac_var='"'"'$ac_val'"'"'" 1377 done | sort 1378 echo 1379 fi 1380 1381 if test -s confdefs.h; then 1382 cat <<\_ASBOX 1383## ----------- ## 1384## confdefs.h. ## 1385## ----------- ## 1386_ASBOX 1387 echo 1388 sed "/^$/d" confdefs.h | sort 1389 echo 1390 fi 1391 test "$ac_signal" != 0 && 1392 echo "$as_me: caught signal $ac_signal" 1393 echo "$as_me: exit $exit_status" 1394 } >&5 1395 rm -f core *.core && 1396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1397 exit $exit_status 1398 ' 0 1399for ac_signal in 1 2 13 15; do 1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1401done 1402ac_signal=0 1403 1404# confdefs.h avoids OS command line length limits that DEFS can exceed. 1405rm -f -r conftest* confdefs.h 1406# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1407# NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes. 1408ac_space=' ' 1409echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h 1410 1411# Predefined preprocessor variables. 1412 1413cat >>confdefs.h <<_ACEOF 1414#define PACKAGE_NAME "$PACKAGE_NAME" 1415_ACEOF 1416 1417 1418cat >>confdefs.h <<_ACEOF 1419#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1420_ACEOF 1421 1422 1423cat >>confdefs.h <<_ACEOF 1424#define PACKAGE_VERSION "$PACKAGE_VERSION" 1425_ACEOF 1426 1427 1428cat >>confdefs.h <<_ACEOF 1429#define PACKAGE_STRING "$PACKAGE_STRING" 1430_ACEOF 1431 1432 1433cat >>confdefs.h <<_ACEOF 1434#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1435_ACEOF 1436 1437 1438# Let the site file select an alternate cache file if it wants to. 1439# Prefer explicitly selected file to automatically selected ones. 1440if test -z "$CONFIG_SITE"; then 1441 if test "x$prefix" != xNONE; then 1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1443 else 1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1445 fi 1446fi 1447for ac_site_file in $CONFIG_SITE; do 1448 if test -r "$ac_site_file"; then 1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1450echo "$as_me: loading site script $ac_site_file" >&6;} 1451 sed 's/^/| /' "$ac_site_file" >&5 1452 . "$ac_site_file" 1453 fi 1454done 1455 1456if test -r "$cache_file"; then 1457 # Some versions of bash will fail to source /dev/null (special 1458 # files actually), so we avoid doing that. 1459 if test -f "$cache_file"; then 1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1461echo "$as_me: loading cache $cache_file" >&6;} 1462 case $cache_file in 1463 [\\/]* | ?:[\\/]* ) . $cache_file;; 1464 *) . ./$cache_file;; 1465 esac 1466 fi 1467else 1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1469echo "$as_me: creating cache $cache_file" >&6;} 1470 >$cache_file 1471fi 1472 1473# Check that the precious variables saved in the cache have kept the same 1474# value. 1475ac_cache_corrupted=false 1476for ac_var in `(set) 2>&1 | 1477 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1479 eval ac_new_set=\$ac_env_${ac_var}_set 1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1481 eval ac_new_val="\$ac_env_${ac_var}_value" 1482 case $ac_old_set,$ac_new_set in 1483 set,) 1484 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1485echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1486 ac_cache_corrupted=: ;; 1487 ,set) 1488 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1489echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1490 ac_cache_corrupted=: ;; 1491 ,);; 1492 *) 1493 if test "x$ac_old_val" != "x$ac_new_val"; then 1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1495echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1497echo "$as_me: former value: $ac_old_val" >&2;} 1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1499echo "$as_me: current value: $ac_new_val" >&2;} 1500 ac_cache_corrupted=: 1501 fi;; 1502 esac 1503 # Pass precious variables to config.status. 1504 if test "$ac_new_set" = set; then 1505 case $ac_new_val in 1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1507 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1508 *) ac_arg=$ac_var=$ac_new_val ;; 1509 esac 1510 case " $ac_configure_args " in 1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1513 esac 1514 fi 1515done 1516if $ac_cache_corrupted; then 1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1518echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1519 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1520echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1521 { (exit 1); exit 1; }; } 1522fi 1523 1524ac_ext=c 1525ac_cpp='$CPP $CPPFLAGS' 1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1528ac_compiler_gnu=$ac_cv_c_compiler_gnu 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin" 1551 1552 1553 1554# checks for programs 1555ac_ext=c 1556ac_cpp='$CPP $CPPFLAGS' 1557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1559ac_compiler_gnu=$ac_cv_c_compiler_gnu 1560if test -n "$ac_tool_prefix"; then 1561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1562set dummy ${ac_tool_prefix}gcc; ac_word=$2 1563echo "$as_me:$LINENO: checking for $ac_word" >&5 1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1565if test "${ac_cv_prog_CC+set}" = set; then 1566 echo $ECHO_N "(cached) $ECHO_C" >&6 1567else 1568 if test -n "$CC"; then 1569 ac_cv_prog_CC="$CC" # Let the user override the test. 1570else 1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1572for as_dir in $PATH 1573do 1574 IFS=$as_save_IFS 1575 test -z "$as_dir" && as_dir=. 1576 for ac_exec_ext in '' $ac_executable_extensions; do 1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1578 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1580 break 2 1581 fi 1582done 1583done 1584 1585fi 1586fi 1587CC=$ac_cv_prog_CC 1588if test -n "$CC"; then 1589 echo "$as_me:$LINENO: result: $CC" >&5 1590echo "${ECHO_T}$CC" >&6 1591else 1592 echo "$as_me:$LINENO: result: no" >&5 1593echo "${ECHO_T}no" >&6 1594fi 1595 1596fi 1597if test -z "$ac_cv_prog_CC"; then 1598 ac_ct_CC=$CC 1599 # Extract the first word of "gcc", so it can be a program name with args. 1600set dummy gcc; ac_word=$2 1601echo "$as_me:$LINENO: checking for $ac_word" >&5 1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1604 echo $ECHO_N "(cached) $ECHO_C" >&6 1605else 1606 if test -n "$ac_ct_CC"; then 1607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1608else 1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1610for as_dir in $PATH 1611do 1612 IFS=$as_save_IFS 1613 test -z "$as_dir" && as_dir=. 1614 for ac_exec_ext in '' $ac_executable_extensions; do 1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1616 ac_cv_prog_ac_ct_CC="gcc" 1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1618 break 2 1619 fi 1620done 1621done 1622 1623fi 1624fi 1625ac_ct_CC=$ac_cv_prog_ac_ct_CC 1626if test -n "$ac_ct_CC"; then 1627 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1628echo "${ECHO_T}$ac_ct_CC" >&6 1629else 1630 echo "$as_me:$LINENO: result: no" >&5 1631echo "${ECHO_T}no" >&6 1632fi 1633 1634 if test "x$ac_ct_CC" = x; then 1635 CC="" 1636 else 1637 if test "$build" != "$host"; then 1638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1639whose name does not start with the host triplet. If you think this 1640configuration is useful to you, please write to autoconf@gnu.org." >&5 1641echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1642whose name does not start with the host triplet. If you think this 1643configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1644 fi 1645 CC=$ac_ct_CC 1646 fi 1647else 1648 CC="$ac_cv_prog_CC" 1649fi 1650 1651if test -z "$CC"; then 1652 if test -n "$ac_tool_prefix"; then 1653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1654set dummy ${ac_tool_prefix}cc; ac_word=$2 1655echo "$as_me:$LINENO: checking for $ac_word" >&5 1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1657if test "${ac_cv_prog_CC+set}" = set; then 1658 echo $ECHO_N "(cached) $ECHO_C" >&6 1659else 1660 if test -n "$CC"; then 1661 ac_cv_prog_CC="$CC" # Let the user override the test. 1662else 1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1664for as_dir in $PATH 1665do 1666 IFS=$as_save_IFS 1667 test -z "$as_dir" && as_dir=. 1668 for ac_exec_ext in '' $ac_executable_extensions; do 1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1670 ac_cv_prog_CC="${ac_tool_prefix}cc" 1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1672 break 2 1673 fi 1674done 1675done 1676 1677fi 1678fi 1679CC=$ac_cv_prog_CC 1680if test -n "$CC"; then 1681 echo "$as_me:$LINENO: result: $CC" >&5 1682echo "${ECHO_T}$CC" >&6 1683else 1684 echo "$as_me:$LINENO: result: no" >&5 1685echo "${ECHO_T}no" >&6 1686fi 1687 1688fi 1689if test -z "$ac_cv_prog_CC"; then 1690 ac_ct_CC=$CC 1691 # Extract the first word of "cc", so it can be a program name with args. 1692set dummy cc; ac_word=$2 1693echo "$as_me:$LINENO: checking for $ac_word" >&5 1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1696 echo $ECHO_N "(cached) $ECHO_C" >&6 1697else 1698 if test -n "$ac_ct_CC"; then 1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1700else 1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1702for as_dir in $PATH 1703do 1704 IFS=$as_save_IFS 1705 test -z "$as_dir" && as_dir=. 1706 for ac_exec_ext in '' $ac_executable_extensions; do 1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1708 ac_cv_prog_ac_ct_CC="cc" 1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1710 break 2 1711 fi 1712done 1713done 1714 1715fi 1716fi 1717ac_ct_CC=$ac_cv_prog_ac_ct_CC 1718if test -n "$ac_ct_CC"; then 1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1720echo "${ECHO_T}$ac_ct_CC" >&6 1721else 1722 echo "$as_me:$LINENO: result: no" >&5 1723echo "${ECHO_T}no" >&6 1724fi 1725 1726 if test "x$ac_ct_CC" = x; then 1727 CC="" 1728 else 1729 if test "$build" != "$host"; then 1730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1731whose name does not start with the host triplet. If you think this 1732configuration is useful to you, please write to autoconf@gnu.org." >&5 1733echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1734whose name does not start with the host triplet. If you think this 1735configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1736 fi 1737 CC=$ac_ct_CC 1738 fi 1739else 1740 CC="$ac_cv_prog_CC" 1741fi 1742 1743fi 1744if test -z "$CC"; then 1745 # Extract the first word of "cc", so it can be a program name with args. 1746set dummy cc; ac_word=$2 1747echo "$as_me:$LINENO: checking for $ac_word" >&5 1748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1749if test "${ac_cv_prog_CC+set}" = set; then 1750 echo $ECHO_N "(cached) $ECHO_C" >&6 1751else 1752 if test -n "$CC"; then 1753 ac_cv_prog_CC="$CC" # Let the user override the test. 1754else 1755 ac_prog_rejected=no 1756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1757for as_dir in $PATH 1758do 1759 IFS=$as_save_IFS 1760 test -z "$as_dir" && as_dir=. 1761 for ac_exec_ext in '' $ac_executable_extensions; do 1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1764 ac_prog_rejected=yes 1765 continue 1766 fi 1767 ac_cv_prog_CC="cc" 1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1769 break 2 1770 fi 1771done 1772done 1773 1774if test $ac_prog_rejected = yes; then 1775 # We found a bogon in the path, so make sure we never use it. 1776 set dummy $ac_cv_prog_CC 1777 shift 1778 if test $# != 0; then 1779 # We chose a different compiler from the bogus one. 1780 # However, it has the same basename, so the bogon will be chosen 1781 # first if we set CC to just the basename; use the full file name. 1782 shift 1783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1784 fi 1785fi 1786fi 1787fi 1788CC=$ac_cv_prog_CC 1789if test -n "$CC"; then 1790 echo "$as_me:$LINENO: result: $CC" >&5 1791echo "${ECHO_T}$CC" >&6 1792else 1793 echo "$as_me:$LINENO: result: no" >&5 1794echo "${ECHO_T}no" >&6 1795fi 1796 1797fi 1798if test -z "$CC"; then 1799 if test -n "$ac_tool_prefix"; then 1800 for ac_prog in cl 1801 do 1802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1804echo "$as_me:$LINENO: checking for $ac_word" >&5 1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1806if test "${ac_cv_prog_CC+set}" = set; then 1807 echo $ECHO_N "(cached) $ECHO_C" >&6 1808else 1809 if test -n "$CC"; then 1810 ac_cv_prog_CC="$CC" # Let the user override the test. 1811else 1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1813for as_dir in $PATH 1814do 1815 IFS=$as_save_IFS 1816 test -z "$as_dir" && as_dir=. 1817 for ac_exec_ext in '' $ac_executable_extensions; do 1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1821 break 2 1822 fi 1823done 1824done 1825 1826fi 1827fi 1828CC=$ac_cv_prog_CC 1829if test -n "$CC"; then 1830 echo "$as_me:$LINENO: result: $CC" >&5 1831echo "${ECHO_T}$CC" >&6 1832else 1833 echo "$as_me:$LINENO: result: no" >&5 1834echo "${ECHO_T}no" >&6 1835fi 1836 1837 test -n "$CC" && break 1838 done 1839fi 1840if test -z "$CC"; then 1841 ac_ct_CC=$CC 1842 for ac_prog in cl 1843do 1844 # Extract the first word of "$ac_prog", so it can be a program name with args. 1845set dummy $ac_prog; ac_word=$2 1846echo "$as_me:$LINENO: checking for $ac_word" >&5 1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 if test -n "$ac_ct_CC"; then 1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1853else 1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1855for as_dir in $PATH 1856do 1857 IFS=$as_save_IFS 1858 test -z "$as_dir" && as_dir=. 1859 for ac_exec_ext in '' $ac_executable_extensions; do 1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1861 ac_cv_prog_ac_ct_CC="$ac_prog" 1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1863 break 2 1864 fi 1865done 1866done 1867 1868fi 1869fi 1870ac_ct_CC=$ac_cv_prog_ac_ct_CC 1871if test -n "$ac_ct_CC"; then 1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1873echo "${ECHO_T}$ac_ct_CC" >&6 1874else 1875 echo "$as_me:$LINENO: result: no" >&5 1876echo "${ECHO_T}no" >&6 1877fi 1878 1879 test -n "$ac_ct_CC" && break 1880done 1881 1882 if test "x$ac_ct_CC" = x; then 1883 CC="" 1884 else 1885 if test "$build" != "$host"; then 1886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1887whose name does not start with the host triplet. If you think this 1888configuration is useful to you, please write to autoconf@gnu.org." >&5 1889echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1890whose name does not start with the host triplet. If you think this 1891configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1892 fi 1893 CC=$ac_ct_CC 1894 fi 1895fi 1896 1897fi 1898 1899 1900test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1901See \`config.log' for more details." >&5 1902echo "$as_me: error: no acceptable C compiler found in \$PATH 1903See \`config.log' for more details." >&2;} 1904 { (exit 1); exit 1; }; } 1905 1906# Provide some information about the compiler. 1907echo "$as_me:$LINENO:" \ 1908 "checking for C compiler version" >&5 1909ac_compiler=`set X $ac_compile; echo $2` 1910{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1911 (eval $ac_compiler --version </dev/null >&5) 2>&5 1912 ac_status=$? 1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1914 (exit $ac_status); } 1915{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1916 (eval $ac_compiler -v </dev/null >&5) 2>&5 1917 ac_status=$? 1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1919 (exit $ac_status); } 1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1921 (eval $ac_compiler -V </dev/null >&5) 2>&5 1922 ac_status=$? 1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1924 (exit $ac_status); } 1925 1926cat >conftest.$ac_ext <<_ACEOF 1927/* confdefs.h. */ 1928_ACEOF 1929cat confdefs.h >>conftest.$ac_ext 1930cat >>conftest.$ac_ext <<_ACEOF 1931/* end confdefs.h. */ 1932 1933int 1934main () 1935{ 1936 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941ac_clean_files_save=$ac_clean_files 1942ac_clean_files="$ac_clean_files a.out a.exe b.out" 1943# Try to create an executable without -o first, disregard a.out. 1944# It will help us diagnose broken compilers, and finding out an intuition 1945# of exeext. 1946echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1947echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1948ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1949# 1950# List of possible output files, starting from the most likely. 1951# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 1952# only as a last resort. b.out is created by i960 compilers. 1953ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 1954# 1955# The IRIX 6 linker writes into existing files which may not be 1956# executable, retaining their permissions. Remove them first so a 1957# subsequent execution test works. 1958ac_rmfiles= 1959for ac_file in $ac_files 1960do 1961 case $ac_file in 1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1963 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 1964 esac 1965done 1966rm -f $ac_rmfiles 1967 1968if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1969 (eval $ac_link_default) 2>&5 1970 ac_status=$? 1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1972 (exit $ac_status); }; then 1973 # Be careful to initialize this variable, since it used to be cached. 1974# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1975ac_cv_exeext= 1976for ac_file in $ac_files 1977do 1978 test -f "$ac_file" || continue 1979 case $ac_file in 1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1981 ;; 1982 [ab].out ) 1983 # We found the default executable, but exeext='' is most 1984 # certainly right. 1985 break;; 1986 *.* ) 1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1988 # FIXME: I believe we export ac_cv_exeext for Libtool, 1989 # but it would be cool to find out if it's true. Does anybody 1990 # maintain Libtool? --akim. 1991 export ac_cv_exeext 1992 break;; 1993 * ) 1994 break;; 1995 esac 1996done 1997else 1998 echo "$as_me: failed program was:" >&5 1999sed 's/^/| /' conftest.$ac_ext >&5 2000 2001{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2002See \`config.log' for more details." >&5 2003echo "$as_me: error: C compiler cannot create executables 2004See \`config.log' for more details." >&2;} 2005 { (exit 77); exit 77; }; } 2006fi 2007 2008ac_exeext=$ac_cv_exeext 2009echo "$as_me:$LINENO: result: $ac_file" >&5 2010echo "${ECHO_T}$ac_file" >&6 2011 2012# Check the compiler produces executables we can run. If not, either 2013# the compiler is broken, or we cross compile. 2014echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2015echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2016# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2017# If not cross compiling, check that we can run a simple program. 2018if test "$cross_compiling" != yes; then 2019 if { ac_try='./$ac_file' 2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2021 (eval $ac_try) 2>&5 2022 ac_status=$? 2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2024 (exit $ac_status); }; }; then 2025 cross_compiling=no 2026 else 2027 if test "$cross_compiling" = maybe; then 2028 cross_compiling=yes 2029 else 2030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2031If you meant to cross compile, use \`--host'. 2032See \`config.log' for more details." >&5 2033echo "$as_me: error: cannot run C compiled programs. 2034If you meant to cross compile, use \`--host'. 2035See \`config.log' for more details." >&2;} 2036 { (exit 1); exit 1; }; } 2037 fi 2038 fi 2039fi 2040echo "$as_me:$LINENO: result: yes" >&5 2041echo "${ECHO_T}yes" >&6 2042 2043rm -f a.out a.exe conftest$ac_cv_exeext b.out 2044ac_clean_files=$ac_clean_files_save 2045# Check the compiler produces executables we can run. If not, either 2046# the compiler is broken, or we cross compile. 2047echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2049echo "$as_me:$LINENO: result: $cross_compiling" >&5 2050echo "${ECHO_T}$cross_compiling" >&6 2051 2052echo "$as_me:$LINENO: checking for suffix of executables" >&5 2053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2055 (eval $ac_link) 2>&5 2056 ac_status=$? 2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2058 (exit $ac_status); }; then 2059 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2060# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2061# work properly (i.e., refer to `conftest.exe'), while it won't with 2062# `rm'. 2063for ac_file in conftest.exe conftest conftest.*; do 2064 test -f "$ac_file" || continue 2065 case $ac_file in 2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2068 export ac_cv_exeext 2069 break;; 2070 * ) break;; 2071 esac 2072done 2073else 2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2075See \`config.log' for more details." >&5 2076echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2077See \`config.log' for more details." >&2;} 2078 { (exit 1); exit 1; }; } 2079fi 2080 2081rm -f conftest$ac_cv_exeext 2082echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2083echo "${ECHO_T}$ac_cv_exeext" >&6 2084 2085rm -f conftest.$ac_ext 2086EXEEXT=$ac_cv_exeext 2087ac_exeext=$EXEEXT 2088echo "$as_me:$LINENO: checking for suffix of object files" >&5 2089echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2090if test "${ac_cv_objext+set}" = set; then 2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2092else 2093 cat >conftest.$ac_ext <<_ACEOF 2094/* confdefs.h. */ 2095_ACEOF 2096cat confdefs.h >>conftest.$ac_ext 2097cat >>conftest.$ac_ext <<_ACEOF 2098/* end confdefs.h. */ 2099 2100int 2101main () 2102{ 2103 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108rm -f conftest.o conftest.obj 2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2110 (eval $ac_compile) 2>&5 2111 ac_status=$? 2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2113 (exit $ac_status); }; then 2114 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2115 case $ac_file in 2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2118 break;; 2119 esac 2120done 2121else 2122 echo "$as_me: failed program was:" >&5 2123sed 's/^/| /' conftest.$ac_ext >&5 2124 2125{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2126See \`config.log' for more details." >&5 2127echo "$as_me: error: cannot compute suffix of object files: cannot compile 2128See \`config.log' for more details." >&2;} 2129 { (exit 1); exit 1; }; } 2130fi 2131 2132rm -f conftest.$ac_cv_objext conftest.$ac_ext 2133fi 2134echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2135echo "${ECHO_T}$ac_cv_objext" >&6 2136OBJEXT=$ac_cv_objext 2137ac_objext=$OBJEXT 2138echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2139echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2140if test "${ac_cv_c_compiler_gnu+set}" = set; then 2141 echo $ECHO_N "(cached) $ECHO_C" >&6 2142else 2143 cat >conftest.$ac_ext <<_ACEOF 2144/* confdefs.h. */ 2145_ACEOF 2146cat confdefs.h >>conftest.$ac_ext 2147cat >>conftest.$ac_ext <<_ACEOF 2148/* end confdefs.h. */ 2149 2150int 2151main () 2152{ 2153#ifndef __GNUC__ 2154 choke me 2155#endif 2156 2157 ; 2158 return 0; 2159} 2160_ACEOF 2161rm -f conftest.$ac_objext 2162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2163 (eval $ac_compile) 2>conftest.er1 2164 ac_status=$? 2165 grep -v '^ *+' conftest.er1 >conftest.err 2166 rm -f conftest.er1 2167 cat conftest.err >&5 2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2169 (exit $ac_status); } && 2170 { ac_try='test -z "$ac_c_werror_flag" 2171 || test ! -s conftest.err' 2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2173 (eval $ac_try) 2>&5 2174 ac_status=$? 2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2176 (exit $ac_status); }; } && 2177 { ac_try='test -s conftest.$ac_objext' 2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2179 (eval $ac_try) 2>&5 2180 ac_status=$? 2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2182 (exit $ac_status); }; }; then 2183 ac_compiler_gnu=yes 2184else 2185 echo "$as_me: failed program was:" >&5 2186sed 's/^/| /' conftest.$ac_ext >&5 2187 2188ac_compiler_gnu=no 2189fi 2190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2191ac_cv_c_compiler_gnu=$ac_compiler_gnu 2192 2193fi 2194echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2195echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2196GCC=`test $ac_compiler_gnu = yes && echo yes` 2197ac_test_CFLAGS=${CFLAGS+set} 2198ac_save_CFLAGS=$CFLAGS 2199echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2200echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2201if test "${ac_cv_prog_cc_g+set}" = set; then 2202 echo $ECHO_N "(cached) $ECHO_C" >&6 2203else 2204 ac_save_c_werror_flag=$ac_c_werror_flag 2205 ac_c_werror_flag=yes 2206 ac_cv_prog_cc_g=no 2207 CFLAGS="-g" 2208 cat >conftest.$ac_ext <<_ACEOF 2209/* confdefs.h. */ 2210_ACEOF 2211cat confdefs.h >>conftest.$ac_ext 2212cat >>conftest.$ac_ext <<_ACEOF 2213/* end confdefs.h. */ 2214 2215int 2216main () 2217{ 2218 2219 ; 2220 return 0; 2221} 2222_ACEOF 2223rm -f conftest.$ac_objext 2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2225 (eval $ac_compile) 2>conftest.er1 2226 ac_status=$? 2227 grep -v '^ *+' conftest.er1 >conftest.err 2228 rm -f conftest.er1 2229 cat conftest.err >&5 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); } && 2232 { ac_try='test -z "$ac_c_werror_flag" 2233 || test ! -s conftest.err' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; } && 2239 { ac_try='test -s conftest.$ac_objext' 2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2241 (eval $ac_try) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; }; then 2245 ac_cv_prog_cc_g=yes 2246else 2247 echo "$as_me: failed program was:" >&5 2248sed 's/^/| /' conftest.$ac_ext >&5 2249 2250CFLAGS="" 2251 cat >conftest.$ac_ext <<_ACEOF 2252/* confdefs.h. */ 2253_ACEOF 2254cat confdefs.h >>conftest.$ac_ext 2255cat >>conftest.$ac_ext <<_ACEOF 2256/* end confdefs.h. */ 2257 2258int 2259main () 2260{ 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266rm -f conftest.$ac_objext 2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2268 (eval $ac_compile) 2>conftest.er1 2269 ac_status=$? 2270 grep -v '^ *+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); } && 2275 { ac_try='test -z "$ac_c_werror_flag" 2276 || test ! -s conftest.err' 2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2278 (eval $ac_try) 2>&5 2279 ac_status=$? 2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2281 (exit $ac_status); }; } && 2282 { ac_try='test -s conftest.$ac_objext' 2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2284 (eval $ac_try) 2>&5 2285 ac_status=$? 2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2287 (exit $ac_status); }; }; then 2288 : 2289else 2290 echo "$as_me: failed program was:" >&5 2291sed 's/^/| /' conftest.$ac_ext >&5 2292 2293ac_c_werror_flag=$ac_save_c_werror_flag 2294 CFLAGS="-g" 2295 cat >conftest.$ac_ext <<_ACEOF 2296/* confdefs.h. */ 2297_ACEOF 2298cat confdefs.h >>conftest.$ac_ext 2299cat >>conftest.$ac_ext <<_ACEOF 2300/* end confdefs.h. */ 2301 2302int 2303main () 2304{ 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310rm -f conftest.$ac_objext 2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2312 (eval $ac_compile) 2>conftest.er1 2313 ac_status=$? 2314 grep -v '^ *+' conftest.er1 >conftest.err 2315 rm -f conftest.er1 2316 cat conftest.err >&5 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } && 2319 { ac_try='test -z "$ac_c_werror_flag" 2320 || test ! -s conftest.err' 2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2322 (eval $ac_try) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); }; } && 2326 { ac_try='test -s conftest.$ac_objext' 2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2328 (eval $ac_try) 2>&5 2329 ac_status=$? 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2331 (exit $ac_status); }; }; then 2332 ac_cv_prog_cc_g=yes 2333else 2334 echo "$as_me: failed program was:" >&5 2335sed 's/^/| /' conftest.$ac_ext >&5 2336 2337fi 2338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2339fi 2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2341fi 2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2343 ac_c_werror_flag=$ac_save_c_werror_flag 2344fi 2345echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2346echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2347if test "$ac_test_CFLAGS" = set; then 2348 CFLAGS=$ac_save_CFLAGS 2349elif test $ac_cv_prog_cc_g = yes; then 2350 if test "$GCC" = yes; then 2351 CFLAGS="-g -O2" 2352 else 2353 CFLAGS="-g" 2354 fi 2355else 2356 if test "$GCC" = yes; then 2357 CFLAGS="-O2" 2358 else 2359 CFLAGS= 2360 fi 2361fi 2362echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2363echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2364if test "${ac_cv_prog_cc_stdc+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&6 2366else 2367 ac_cv_prog_cc_stdc=no 2368ac_save_CC=$CC 2369cat >conftest.$ac_ext <<_ACEOF 2370/* confdefs.h. */ 2371_ACEOF 2372cat confdefs.h >>conftest.$ac_ext 2373cat >>conftest.$ac_ext <<_ACEOF 2374/* end confdefs.h. */ 2375#include <stdarg.h> 2376#include <stdio.h> 2377#include <sys/types.h> 2378#include <sys/stat.h> 2379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2380struct buf { int x; }; 2381FILE * (*rcsopen) (struct buf *, struct stat *, int); 2382static char *e (p, i) 2383 char **p; 2384 int i; 2385{ 2386 return p[i]; 2387} 2388static char *f (char * (*g) (char **, int), char **p, ...) 2389{ 2390 char *s; 2391 va_list v; 2392 va_start (v,p); 2393 s = g (p, va_arg (v,int)); 2394 va_end (v); 2395 return s; 2396} 2397 2398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2399 function prototypes and stuff, but not '\xHH' hex character constants. 2400 These don't provoke an error unfortunately, instead are silently treated 2401 as 'x'. The following induces an error, until -std is added to get 2402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2403 array size at least. It's necessary to write '\x00'==0 to get something 2404 that's true only with -std. */ 2405int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2406 2407int test (int i, double x); 2408struct s1 {int (*f) (int a);}; 2409struct s2 {int (*f) (double a);}; 2410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2411int argc; 2412char **argv; 2413int 2414main () 2415{ 2416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2417 ; 2418 return 0; 2419} 2420_ACEOF 2421# Don't try gcc -ansi; that turns off useful extensions and 2422# breaks some systems' header files. 2423# AIX -qlanglvl=ansi 2424# Ultrix, OSF/1, Tru64 -std 2425# HP-UX 10.20 and later -Ae 2426# HP-UX older versions -Aa -D_HPUX_SOURCE 2427# SVR4 -Xc -D__EXTENSIONS__ 2428for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2429do 2430 CC="$ac_save_CC $ac_arg" 2431 rm -f conftest.$ac_objext 2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2433 (eval $ac_compile) 2>conftest.er1 2434 ac_status=$? 2435 grep -v '^ *+' conftest.er1 >conftest.err 2436 rm -f conftest.er1 2437 cat conftest.err >&5 2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2439 (exit $ac_status); } && 2440 { ac_try='test -z "$ac_c_werror_flag" 2441 || test ! -s conftest.err' 2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2443 (eval $ac_try) 2>&5 2444 ac_status=$? 2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2446 (exit $ac_status); }; } && 2447 { ac_try='test -s conftest.$ac_objext' 2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2449 (eval $ac_try) 2>&5 2450 ac_status=$? 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); }; }; then 2453 ac_cv_prog_cc_stdc=$ac_arg 2454break 2455else 2456 echo "$as_me: failed program was:" >&5 2457sed 's/^/| /' conftest.$ac_ext >&5 2458 2459fi 2460rm -f conftest.err conftest.$ac_objext 2461done 2462rm -f conftest.$ac_ext conftest.$ac_objext 2463CC=$ac_save_CC 2464 2465fi 2466 2467case "x$ac_cv_prog_cc_stdc" in 2468 x|xno) 2469 echo "$as_me:$LINENO: result: none needed" >&5 2470echo "${ECHO_T}none needed" >&6 ;; 2471 *) 2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2473echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2474 CC="$CC $ac_cv_prog_cc_stdc" ;; 2475esac 2476 2477# Some people use a C++ compiler to compile C. Since we use `exit', 2478# in C++ we need to declare it. In case someone uses the same compiler 2479# for both compiling C and C++ we need to have the C++ compiler decide 2480# the declaration of exit, since it's the most demanding environment. 2481cat >conftest.$ac_ext <<_ACEOF 2482#ifndef __cplusplus 2483 choke me 2484#endif 2485_ACEOF 2486rm -f conftest.$ac_objext 2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2488 (eval $ac_compile) 2>conftest.er1 2489 ac_status=$? 2490 grep -v '^ *+' conftest.er1 >conftest.err 2491 rm -f conftest.er1 2492 cat conftest.err >&5 2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2494 (exit $ac_status); } && 2495 { ac_try='test -z "$ac_c_werror_flag" 2496 || test ! -s conftest.err' 2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2498 (eval $ac_try) 2>&5 2499 ac_status=$? 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); }; } && 2502 { ac_try='test -s conftest.$ac_objext' 2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2504 (eval $ac_try) 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); }; }; then 2508 for ac_declaration in \ 2509 '' \ 2510 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2511 'extern "C" void std::exit (int); using std::exit;' \ 2512 'extern "C" void exit (int) throw ();' \ 2513 'extern "C" void exit (int);' \ 2514 'extern "C" [[noreturn]] void exit (int);' \ 2515 'extern "C" _Noreturn void exit (int);' \ 2516 'void exit (int);' 2517do 2518 cat >conftest.$ac_ext <<_ACEOF 2519/* confdefs.h. */ 2520_ACEOF 2521cat confdefs.h >>conftest.$ac_ext 2522cat >>conftest.$ac_ext <<_ACEOF 2523/* end confdefs.h. */ 2524$ac_declaration 2525#include <stdlib.h> 2526int 2527main () 2528{ 2529exit (42); 2530 ; 2531 return 0; 2532} 2533_ACEOF 2534rm -f conftest.$ac_objext 2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2536 (eval $ac_compile) 2>conftest.er1 2537 ac_status=$? 2538 grep -v '^ *+' conftest.er1 >conftest.err 2539 rm -f conftest.er1 2540 cat conftest.err >&5 2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 (exit $ac_status); } && 2543 { ac_try='test -z "$ac_c_werror_flag" 2544 || test ! -s conftest.err' 2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2546 (eval $ac_try) 2>&5 2547 ac_status=$? 2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2549 (exit $ac_status); }; } && 2550 { ac_try='test -s conftest.$ac_objext' 2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2552 (eval $ac_try) 2>&5 2553 ac_status=$? 2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); }; }; then 2556 : 2557else 2558 echo "$as_me: failed program was:" >&5 2559sed 's/^/| /' conftest.$ac_ext >&5 2560 2561continue 2562fi 2563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2564 cat >conftest.$ac_ext <<_ACEOF 2565/* confdefs.h. */ 2566_ACEOF 2567cat confdefs.h >>conftest.$ac_ext 2568cat >>conftest.$ac_ext <<_ACEOF 2569/* end confdefs.h. */ 2570$ac_declaration 2571int 2572main () 2573{ 2574exit (42); 2575 ; 2576 return 0; 2577} 2578_ACEOF 2579rm -f conftest.$ac_objext 2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2581 (eval $ac_compile) 2>conftest.er1 2582 ac_status=$? 2583 grep -v '^ *+' conftest.er1 >conftest.err 2584 rm -f conftest.er1 2585 cat conftest.err >&5 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); } && 2588 { ac_try='test -z "$ac_c_werror_flag" 2589 || test ! -s conftest.err' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; } && 2595 { ac_try='test -s conftest.$ac_objext' 2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2597 (eval $ac_try) 2>&5 2598 ac_status=$? 2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2600 (exit $ac_status); }; }; then 2601 break 2602else 2603 echo "$as_me: failed program was:" >&5 2604sed 's/^/| /' conftest.$ac_ext >&5 2605 2606fi 2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2608done 2609rm -f conftest* 2610if test -n "$ac_declaration"; then 2611 echo '#ifdef __cplusplus' >>confdefs.h 2612 echo $ac_declaration >>confdefs.h 2613 echo '#endif' >>confdefs.h 2614fi 2615 2616else 2617 echo "$as_me: failed program was:" >&5 2618sed 's/^/| /' conftest.$ac_ext >&5 2619 2620fi 2621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2622ac_ext=c 2623ac_cpp='$CPP $CPPFLAGS' 2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2626ac_compiler_gnu=$ac_cv_c_compiler_gnu 2627 2628ac_ext=cc 2629ac_cpp='$CXXCPP $CPPFLAGS' 2630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2633if test -n "$ac_tool_prefix"; then 2634 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2635 do 2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2637set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2638echo "$as_me:$LINENO: checking for $ac_word" >&5 2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2640if test "${ac_cv_prog_CXX+set}" = set; then 2641 echo $ECHO_N "(cached) $ECHO_C" >&6 2642else 2643 if test -n "$CXX"; then 2644 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659 2660fi 2661fi 2662CXX=$ac_cv_prog_CXX 2663if test -n "$CXX"; then 2664 echo "$as_me:$LINENO: result: $CXX" >&5 2665echo "${ECHO_T}$CXX" >&6 2666else 2667 echo "$as_me:$LINENO: result: no" >&5 2668echo "${ECHO_T}no" >&6 2669fi 2670 2671 test -n "$CXX" && break 2672 done 2673fi 2674if test -z "$CXX"; then 2675 ac_ct_CXX=$CXX 2676 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2677do 2678 # Extract the first word of "$ac_prog", so it can be a program name with args. 2679set dummy $ac_prog; ac_word=$2 2680echo "$as_me:$LINENO: checking for $ac_word" >&5 2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2682if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2683 echo $ECHO_N "(cached) $ECHO_C" >&6 2684else 2685 if test -n "$ac_ct_CXX"; then 2686 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2695 ac_cv_prog_ac_ct_CXX="$ac_prog" 2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700done 2701 2702fi 2703fi 2704ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2705if test -n "$ac_ct_CXX"; then 2706 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2707echo "${ECHO_T}$ac_ct_CXX" >&6 2708else 2709 echo "$as_me:$LINENO: result: no" >&5 2710echo "${ECHO_T}no" >&6 2711fi 2712 2713 test -n "$ac_ct_CXX" && break 2714done 2715 2716 if test "x$ac_ct_CXX" = x; then 2717 CXX="g++" 2718 else 2719 if test "$build" != "$host"; then 2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2721whose name does not start with the host triplet. If you think this 2722configuration is useful to you, please write to autoconf@gnu.org." >&5 2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2724whose name does not start with the host triplet. If you think this 2725configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2726 fi 2727 CXX=$ac_ct_CXX 2728 fi 2729fi 2730 2731 2732# Provide some information about the compiler. 2733echo "$as_me:$LINENO:" \ 2734 "checking for C++ compiler version" >&5 2735ac_compiler=`set X $ac_compile; echo $2` 2736{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2737 (eval $ac_compiler --version </dev/null >&5) 2>&5 2738 ac_status=$? 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } 2741{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2742 (eval $ac_compiler -v </dev/null >&5) 2>&5 2743 ac_status=$? 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); } 2746{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2747 (eval $ac_compiler -V </dev/null >&5) 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } 2751 2752echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2753echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 cat >conftest.$ac_ext <<_ACEOF 2758/* confdefs.h. */ 2759_ACEOF 2760cat confdefs.h >>conftest.$ac_ext 2761cat >>conftest.$ac_ext <<_ACEOF 2762/* end confdefs.h. */ 2763 2764int 2765main () 2766{ 2767#ifndef __GNUC__ 2768 choke me 2769#endif 2770 2771 ; 2772 return 0; 2773} 2774_ACEOF 2775rm -f conftest.$ac_objext 2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2777 (eval $ac_compile) 2>conftest.er1 2778 ac_status=$? 2779 grep -v '^ *+' conftest.er1 >conftest.err 2780 rm -f conftest.er1 2781 cat conftest.err >&5 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); } && 2784 { ac_try='test -z "$ac_cxx_werror_flag" 2785 || test ! -s conftest.err' 2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2787 (eval $ac_try) 2>&5 2788 ac_status=$? 2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2790 (exit $ac_status); }; } && 2791 { ac_try='test -s conftest.$ac_objext' 2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2793 (eval $ac_try) 2>&5 2794 ac_status=$? 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); }; }; then 2797 ac_compiler_gnu=yes 2798else 2799 echo "$as_me: failed program was:" >&5 2800sed 's/^/| /' conftest.$ac_ext >&5 2801 2802ac_compiler_gnu=no 2803fi 2804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2805ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2806 2807fi 2808echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2809echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2810GXX=`test $ac_compiler_gnu = yes && echo yes` 2811ac_test_CXXFLAGS=${CXXFLAGS+set} 2812ac_save_CXXFLAGS=$CXXFLAGS 2813echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2814echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2815if test "${ac_cv_prog_cxx_g+set}" = set; then 2816 echo $ECHO_N "(cached) $ECHO_C" >&6 2817else 2818 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2819 ac_cxx_werror_flag=yes 2820 ac_cv_prog_cxx_g=no 2821 CXXFLAGS="-g" 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832 2833 ; 2834 return 0; 2835} 2836_ACEOF 2837rm -f conftest.$ac_objext 2838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2839 (eval $ac_compile) 2>conftest.er1 2840 ac_status=$? 2841 grep -v '^ *+' conftest.er1 >conftest.err 2842 rm -f conftest.er1 2843 cat conftest.err >&5 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); } && 2846 { ac_try='test -z "$ac_cxx_werror_flag" 2847 || test ! -s conftest.err' 2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2849 (eval $ac_try) 2>&5 2850 ac_status=$? 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); }; } && 2853 { ac_try='test -s conftest.$ac_objext' 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2855 (eval $ac_try) 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); }; }; then 2859 ac_cv_prog_cxx_g=yes 2860else 2861 echo "$as_me: failed program was:" >&5 2862sed 's/^/| /' conftest.$ac_ext >&5 2863 2864CXXFLAGS="" 2865 cat >conftest.$ac_ext <<_ACEOF 2866/* confdefs.h. */ 2867_ACEOF 2868cat confdefs.h >>conftest.$ac_ext 2869cat >>conftest.$ac_ext <<_ACEOF 2870/* end confdefs.h. */ 2871 2872int 2873main () 2874{ 2875 2876 ; 2877 return 0; 2878} 2879_ACEOF 2880rm -f conftest.$ac_objext 2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2882 (eval $ac_compile) 2>conftest.er1 2883 ac_status=$? 2884 grep -v '^ *+' conftest.er1 >conftest.err 2885 rm -f conftest.er1 2886 cat conftest.err >&5 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2888 (exit $ac_status); } && 2889 { ac_try='test -z "$ac_cxx_werror_flag" 2890 || test ! -s conftest.err' 2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2892 (eval $ac_try) 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; } && 2896 { ac_try='test -s conftest.$ac_objext' 2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2898 (eval $ac_try) 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); }; }; then 2902 : 2903else 2904 echo "$as_me: failed program was:" >&5 2905sed 's/^/| /' conftest.$ac_ext >&5 2906 2907ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2908 CXXFLAGS="-g" 2909 cat >conftest.$ac_ext <<_ACEOF 2910/* confdefs.h. */ 2911_ACEOF 2912cat confdefs.h >>conftest.$ac_ext 2913cat >>conftest.$ac_ext <<_ACEOF 2914/* end confdefs.h. */ 2915 2916int 2917main () 2918{ 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924rm -f conftest.$ac_objext 2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2926 (eval $ac_compile) 2>conftest.er1 2927 ac_status=$? 2928 grep -v '^ *+' conftest.er1 >conftest.err 2929 rm -f conftest.er1 2930 cat conftest.err >&5 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); } && 2933 { ac_try='test -z "$ac_cxx_werror_flag" 2934 || test ! -s conftest.err' 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2936 (eval $ac_try) 2>&5 2937 ac_status=$? 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); }; } && 2940 { ac_try='test -s conftest.$ac_objext' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; }; then 2946 ac_cv_prog_cxx_g=yes 2947else 2948 echo "$as_me: failed program was:" >&5 2949sed 's/^/| /' conftest.$ac_ext >&5 2950 2951fi 2952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2953fi 2954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2955fi 2956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2958fi 2959echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2960echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2961if test "$ac_test_CXXFLAGS" = set; then 2962 CXXFLAGS=$ac_save_CXXFLAGS 2963elif test $ac_cv_prog_cxx_g = yes; then 2964 if test "$GXX" = yes; then 2965 CXXFLAGS="-g -O2" 2966 else 2967 CXXFLAGS="-g" 2968 fi 2969else 2970 if test "$GXX" = yes; then 2971 CXXFLAGS="-O2" 2972 else 2973 CXXFLAGS= 2974 fi 2975fi 2976for ac_declaration in \ 2977 '' \ 2978 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2979 'extern "C" void std::exit (int); using std::exit;' \ 2980 'extern "C" void exit (int) throw ();' \ 2981 'extern "C" void exit (int);' \ 2982 'extern "C" [[noreturn]] void exit (int);' \ 2983 'extern "C" _Noreturn void exit (int);' \ 2984 'void exit (int);' 2985do 2986 cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992$ac_declaration 2993#include <stdlib.h> 2994int 2995main () 2996{ 2997exit (42); 2998 ; 2999 return 0; 3000} 3001_ACEOF 3002rm -f conftest.$ac_objext 3003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3004 (eval $ac_compile) 2>conftest.er1 3005 ac_status=$? 3006 grep -v '^ *+' conftest.er1 >conftest.err 3007 rm -f conftest.er1 3008 cat conftest.err >&5 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); } && 3011 { ac_try='test -z "$ac_cxx_werror_flag" 3012 || test ! -s conftest.err' 3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3014 (eval $ac_try) 2>&5 3015 ac_status=$? 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); }; } && 3018 { ac_try='test -s conftest.$ac_objext' 3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3020 (eval $ac_try) 2>&5 3021 ac_status=$? 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); }; }; then 3024 : 3025else 3026 echo "$as_me: failed program was:" >&5 3027sed 's/^/| /' conftest.$ac_ext >&5 3028 3029continue 3030fi 3031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3032 cat >conftest.$ac_ext <<_ACEOF 3033/* confdefs.h. */ 3034_ACEOF 3035cat confdefs.h >>conftest.$ac_ext 3036cat >>conftest.$ac_ext <<_ACEOF 3037/* end confdefs.h. */ 3038$ac_declaration 3039int 3040main () 3041{ 3042exit (42); 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047rm -f conftest.$ac_objext 3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3049 (eval $ac_compile) 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } && 3056 { ac_try='test -z "$ac_cxx_werror_flag" 3057 || test ! -s conftest.err' 3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3059 (eval $ac_try) 2>&5 3060 ac_status=$? 3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 (exit $ac_status); }; } && 3063 { ac_try='test -s conftest.$ac_objext' 3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3065 (eval $ac_try) 2>&5 3066 ac_status=$? 3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3068 (exit $ac_status); }; }; then 3069 break 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074fi 3075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3076done 3077rm -f conftest* 3078if test -n "$ac_declaration"; then 3079 echo '#ifdef __cplusplus' >>confdefs.h 3080 echo $ac_declaration >>confdefs.h 3081 echo '#endif' >>confdefs.h 3082fi 3083 3084ac_ext=c 3085ac_cpp='$CPP $CPPFLAGS' 3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3088ac_compiler_gnu=$ac_cv_c_compiler_gnu 3089 3090 3091 3092 ac_ext=cc 3093ac_cpp='$CXXCPP $CPPFLAGS' 3094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3097 3098 if test "$cross_compiling" = no; then 3099 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5 3100echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6 3101 fi 3102 if test "$cross_compiling" = yes; then 3103 : 3104else 3105 cat >conftest.$ac_ext <<_ACEOF 3106 3107 /* confdefs.h. */ 3108_ACEOF 3109cat confdefs.h >>conftest.$ac_ext 3110cat >>conftest.$ac_ext <<_ACEOF 3111/* end confdefs.h. */ 3112 3113 3114int main() { 3115 return 0; 3116} 3117 3118 3119 3120_ACEOF 3121rm -f conftest$ac_exeext 3122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3123 (eval $ac_link) 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3128 (eval $ac_try) 2>&5 3129 ac_status=$? 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3131 (exit $ac_status); }; }; then 3132 echo "$as_me:$LINENO: result: yes" >&5 3133echo "${ECHO_T}yes" >&6 3134else 3135 echo "$as_me: program exited with status $ac_status" >&5 3136echo "$as_me: failed program was:" >&5 3137sed 's/^/| /' conftest.$ac_ext >&5 3138 3139( exit $ac_status ) 3140echo "$as_me:$LINENO: result: no" >&5 3141echo "${ECHO_T}no" >&6 3142 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5 3143echo "$as_me: error: a working C++ compiler is required" >&2;} 3144 { (exit 1); exit 1; }; } 3145fi 3146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3147fi 3148 3149 if test "$cross_compiling" = no; then 3150 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5 3151echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6 3152 fi 3153 if test "$cross_compiling" = yes; then 3154 : 3155else 3156 cat >conftest.$ac_ext <<_ACEOF 3157 3158 /* confdefs.h. */ 3159_ACEOF 3160cat confdefs.h >>conftest.$ac_ext 3161cat >>conftest.$ac_ext <<_ACEOF 3162/* end confdefs.h. */ 3163 3164 3165extern "C" { 3166 void _exit(int); 3167} 3168 3169int i; 3170struct A { 3171 char dummy; 3172 A() { i = 1; } 3173 ~A() { if (i == 1) _exit(0); } 3174}; 3175 3176A a; 3177 3178int main() 3179{ 3180 return 1; 3181} 3182 3183 3184 3185_ACEOF 3186rm -f conftest$ac_exeext 3187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3188 (eval $ac_link) 2>&5 3189 ac_status=$? 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3193 (eval $ac_try) 2>&5 3194 ac_status=$? 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); }; }; then 3197 echo "$as_me:$LINENO: result: yes" >&5 3198echo "${ECHO_T}yes" >&6 3199else 3200 echo "$as_me: program exited with status $ac_status" >&5 3201echo "$as_me: failed program was:" >&5 3202sed 's/^/| /' conftest.$ac_ext >&5 3203 3204( exit $ac_status ) 3205echo "$as_me:$LINENO: result: no" >&5 3206echo "${ECHO_T}no" >&6 3207 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5 3208echo "$as_me: error: a working C++ compiler is required" >&2;} 3209 { (exit 1); exit 1; }; } 3210fi 3211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3212fi 3213 3214 echo "$as_me:$LINENO: checking that header files support C++" >&5 3215echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6 3216 cat >conftest.$ac_ext <<_ACEOF 3217 3218 /* confdefs.h. */ 3219_ACEOF 3220cat confdefs.h >>conftest.$ac_ext 3221cat >>conftest.$ac_ext <<_ACEOF 3222/* end confdefs.h. */ 3223 3224 3225#include <stdio.h> 3226 3227 3228int 3229main () 3230{ 3231 3232 3233fopen(0, 0); 3234 3235 3236 ; 3237 return 0; 3238} 3239 3240_ACEOF 3241rm -f conftest.$ac_objext conftest$ac_exeext 3242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3243 (eval $ac_link) 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && 3250 { ac_try='test -z "$ac_cxx_werror_flag" 3251 || test ! -s conftest.err' 3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3253 (eval $ac_try) 2>&5 3254 ac_status=$? 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); }; } && 3257 { ac_try='test -s conftest$ac_exeext' 3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3259 (eval $ac_try) 2>&5 3260 ac_status=$? 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); }; }; then 3263 echo "$as_me:$LINENO: result: yes" >&5 3264echo "${ECHO_T}yes" >&6 3265else 3266 echo "$as_me: failed program was:" >&5 3267sed 's/^/| /' conftest.$ac_ext >&5 3268 3269echo "$as_me:$LINENO: result: no" >&5 3270echo "${ECHO_T}no" >&6 3271 { { echo "$as_me:$LINENO: error: header files do not support C++ 3272 (if you are using a version of gcc/g++ earlier than 2.5, 3273 you should install libg++)" >&5 3274echo "$as_me: error: header files do not support C++ 3275 (if you are using a version of gcc/g++ earlier than 2.5, 3276 you should install libg++)" >&2;} 3277 { (exit 1); exit 1; }; } 3278fi 3279rm -f conftest.err conftest.$ac_objext \ 3280 conftest$ac_exeext conftest.$ac_ext 3281 ac_ext=c 3282ac_cpp='$CPP $CPPFLAGS' 3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3285ac_compiler_gnu=$ac_cv_c_compiler_gnu 3286 3287 3288echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5 3289echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6 3290 cat >conftest.$ac_ext <<_ACEOF 3291 3292 /* confdefs.h. */ 3293_ACEOF 3294cat confdefs.h >>conftest.$ac_ext 3295cat >>conftest.$ac_ext <<_ACEOF 3296/* end confdefs.h. */ 3297 3298 3299/* Treat any failure as ASCII for compatibility with existing art. 3300 Use compile-time rather than run-time tests for cross-compiler 3301 tolerance. */ 3302#if '0' != 240 3303make an error "Character set is not EBCDIC" 3304#endif 3305 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314 3315_ACEOF 3316rm -f conftest.$ac_objext 3317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3318 (eval $ac_compile) 2>conftest.er1 3319 ac_status=$? 3320 grep -v '^ *+' conftest.er1 >conftest.err 3321 rm -f conftest.er1 3322 cat conftest.err >&5 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); } && 3325 { ac_try='test -z "$ac_c_werror_flag" 3326 || test ! -s conftest.err' 3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3328 (eval $ac_try) 2>&5 3329 ac_status=$? 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); }; } && 3332 { ac_try='test -s conftest.$ac_objext' 3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3334 (eval $ac_try) 2>&5 3335 ac_status=$? 3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 (exit $ac_status); }; }; then 3338 groff_cv_ebcdic="yes" 3339 TTYDEVDIRS="font/devcp1047" 3340 echo "$as_me:$LINENO: result: yes" >&5 3341echo "${ECHO_T}yes" >&6 3342 3343cat >>confdefs.h <<\_ACEOF 3344#define IS_EBCDIC_HOST 1 3345_ACEOF 3346 3347else 3348 echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351groff_cv_ebcdic="no" 3352 TTYDEVDIRS="font/devascii font/devlatin1" 3353 OTHERDEVDIRS="font/devlj4 font/devlbp" 3354 echo "$as_me:$LINENO: result: no" >&5 3355echo "${ECHO_T}no" >&6 3356fi 3357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3358 3359 3360if test "$groff_cv_ebcdic" = "yes"; then 3361 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 3362echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 3363 case `uname` in 3364 OS/390) 3365 CFLAGS="$CFLAGS -D_ALL_SOURCE" 3366 echo "$as_me:$LINENO: result: yes" >&5 3367echo "${ECHO_T}yes" >&6 ;; 3368 *) 3369 echo "$as_me:$LINENO: result: no" >&5 3370echo "${ECHO_T}no" >&6 ;; 3371 esac 3372 fi 3373ac_ext=c 3374ac_cpp='$CPP $CPPFLAGS' 3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3377ac_compiler_gnu=$ac_cv_c_compiler_gnu 3378echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3379echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3380# On Suns, sometimes $CPP names a directory. 3381if test -n "$CPP" && test -d "$CPP"; then 3382 CPP= 3383fi 3384if test -z "$CPP"; then 3385 if test "${ac_cv_prog_CPP+set}" = set; then 3386 echo $ECHO_N "(cached) $ECHO_C" >&6 3387else 3388 # Double quotes because CPP needs to be expanded 3389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3390 do 3391 ac_preproc_ok=false 3392for ac_c_preproc_warn_flag in '' yes 3393do 3394 # Use a header file that comes with gcc, so configuring glibc 3395 # with a fresh cross-compiler works. 3396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3397 # <limits.h> exists even on freestanding compilers. 3398 # On the NeXT, cc -E runs the code through the compiler's parser, 3399 # not just through cpp. "Syntax error" is here to catch this case. 3400 cat >conftest.$ac_ext <<_ACEOF 3401/* confdefs.h. */ 3402_ACEOF 3403cat confdefs.h >>conftest.$ac_ext 3404cat >>conftest.$ac_ext <<_ACEOF 3405/* end confdefs.h. */ 3406#ifdef __STDC__ 3407# include <limits.h> 3408#else 3409# include <assert.h> 3410#endif 3411 Syntax error 3412_ACEOF 3413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3415 ac_status=$? 3416 grep -v '^ *+' conftest.er1 >conftest.err 3417 rm -f conftest.er1 3418 cat conftest.err >&5 3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3420 (exit $ac_status); } >/dev/null; then 3421 if test -s conftest.err; then 3422 ac_cpp_err=$ac_c_preproc_warn_flag 3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3424 else 3425 ac_cpp_err= 3426 fi 3427else 3428 ac_cpp_err=yes 3429fi 3430if test -z "$ac_cpp_err"; then 3431 : 3432else 3433 echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436 # Broken: fails on valid input. 3437continue 3438fi 3439rm -f conftest.err conftest.$ac_ext 3440 3441 # OK, works on sane cases. Now check whether non-existent headers 3442 # can be detected and how. 3443 cat >conftest.$ac_ext <<_ACEOF 3444/* confdefs.h. */ 3445_ACEOF 3446cat confdefs.h >>conftest.$ac_ext 3447cat >>conftest.$ac_ext <<_ACEOF 3448/* end confdefs.h. */ 3449#include <ac_nonexistent.h> 3450_ACEOF 3451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3453 ac_status=$? 3454 grep -v '^ *+' conftest.er1 >conftest.err 3455 rm -f conftest.er1 3456 cat conftest.err >&5 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); } >/dev/null; then 3459 if test -s conftest.err; then 3460 ac_cpp_err=$ac_c_preproc_warn_flag 3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3462 else 3463 ac_cpp_err= 3464 fi 3465else 3466 ac_cpp_err=yes 3467fi 3468if test -z "$ac_cpp_err"; then 3469 # Broken: success on invalid input. 3470continue 3471else 3472 echo "$as_me: failed program was:" >&5 3473sed 's/^/| /' conftest.$ac_ext >&5 3474 3475 # Passes both tests. 3476ac_preproc_ok=: 3477break 3478fi 3479rm -f conftest.err conftest.$ac_ext 3480 3481done 3482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3483rm -f conftest.err conftest.$ac_ext 3484if $ac_preproc_ok; then 3485 break 3486fi 3487 3488 done 3489 ac_cv_prog_CPP=$CPP 3490 3491fi 3492 CPP=$ac_cv_prog_CPP 3493else 3494 ac_cv_prog_CPP=$CPP 3495fi 3496echo "$as_me:$LINENO: result: $CPP" >&5 3497echo "${ECHO_T}$CPP" >&6 3498ac_preproc_ok=false 3499for ac_c_preproc_warn_flag in '' yes 3500do 3501 # Use a header file that comes with gcc, so configuring glibc 3502 # with a fresh cross-compiler works. 3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3504 # <limits.h> exists even on freestanding compilers. 3505 # On the NeXT, cc -E runs the code through the compiler's parser, 3506 # not just through cpp. "Syntax error" is here to catch this case. 3507 cat >conftest.$ac_ext <<_ACEOF 3508/* confdefs.h. */ 3509_ACEOF 3510cat confdefs.h >>conftest.$ac_ext 3511cat >>conftest.$ac_ext <<_ACEOF 3512/* end confdefs.h. */ 3513#ifdef __STDC__ 3514# include <limits.h> 3515#else 3516# include <assert.h> 3517#endif 3518 Syntax error 3519_ACEOF 3520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3522 ac_status=$? 3523 grep -v '^ *+' conftest.er1 >conftest.err 3524 rm -f conftest.er1 3525 cat conftest.err >&5 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); } >/dev/null; then 3528 if test -s conftest.err; then 3529 ac_cpp_err=$ac_c_preproc_warn_flag 3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3531 else 3532 ac_cpp_err= 3533 fi 3534else 3535 ac_cpp_err=yes 3536fi 3537if test -z "$ac_cpp_err"; then 3538 : 3539else 3540 echo "$as_me: failed program was:" >&5 3541sed 's/^/| /' conftest.$ac_ext >&5 3542 3543 # Broken: fails on valid input. 3544continue 3545fi 3546rm -f conftest.err conftest.$ac_ext 3547 3548 # OK, works on sane cases. Now check whether non-existent headers 3549 # can be detected and how. 3550 cat >conftest.$ac_ext <<_ACEOF 3551/* confdefs.h. */ 3552_ACEOF 3553cat confdefs.h >>conftest.$ac_ext 3554cat >>conftest.$ac_ext <<_ACEOF 3555/* end confdefs.h. */ 3556#include <ac_nonexistent.h> 3557_ACEOF 3558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3560 ac_status=$? 3561 grep -v '^ *+' conftest.er1 >conftest.err 3562 rm -f conftest.er1 3563 cat conftest.err >&5 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); } >/dev/null; then 3566 if test -s conftest.err; then 3567 ac_cpp_err=$ac_c_preproc_warn_flag 3568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3569 else 3570 ac_cpp_err= 3571 fi 3572else 3573 ac_cpp_err=yes 3574fi 3575if test -z "$ac_cpp_err"; then 3576 # Broken: success on invalid input. 3577continue 3578else 3579 echo "$as_me: failed program was:" >&5 3580sed 's/^/| /' conftest.$ac_ext >&5 3581 3582 # Passes both tests. 3583ac_preproc_ok=: 3584break 3585fi 3586rm -f conftest.err conftest.$ac_ext 3587 3588done 3589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3590rm -f conftest.err conftest.$ac_ext 3591if $ac_preproc_ok; then 3592 : 3593else 3594 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3595See \`config.log' for more details." >&5 3596echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3597See \`config.log' for more details." >&2;} 3598 { (exit 1); exit 1; }; } 3599fi 3600 3601ac_ext=c 3602ac_cpp='$CPP $CPPFLAGS' 3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3605ac_compiler_gnu=$ac_cv_c_compiler_gnu 3606 3607 3608echo "$as_me:$LINENO: checking for X" >&5 3609echo $ECHO_N "checking for X... $ECHO_C" >&6 3610 3611 3612# Check whether --with-x or --without-x was given. 3613if test "${with_x+set}" = set; then 3614 withval="$with_x" 3615 3616fi; 3617# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3618if test "x$with_x" = xno; then 3619 # The user explicitly disabled X. 3620 have_x=disabled 3621else 3622 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 3623 # Both variables are already set. 3624 have_x=yes 3625 else 3626 if test "${ac_cv_have_x+set}" = set; then 3627 echo $ECHO_N "(cached) $ECHO_C" >&6 3628else 3629 # One or both of the vars are not set, and there is no cached value. 3630ac_x_includes=no ac_x_libraries=no 3631rm -f -r conftest.dir 3632if mkdir conftest.dir; then 3633 cd conftest.dir 3634 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 3635 cat >Imakefile <<'_ACEOF' 3636acfindx: 3637 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 3638_ACEOF 3639 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 3640 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3641 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 3642 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3643 for ac_extension in a so sl; do 3644 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 3645 test -f $ac_im_libdir/libX11.$ac_extension; then 3646 ac_im_usrlibdir=$ac_im_libdir; break 3647 fi 3648 done 3649 # Screen out bogus values from the imake configuration. They are 3650 # bogus both because they are the default anyway, and because 3651 # using them would break gcc on systems where it needs fixed includes. 3652 case $ac_im_incroot in 3653 /usr/include) ;; 3654 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3655 esac 3656 case $ac_im_usrlibdir in 3657 /usr/lib | /lib) ;; 3658 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3659 esac 3660 fi 3661 cd .. 3662 rm -f -r conftest.dir 3663fi 3664 3665# Standard set of common directories for X headers. 3666# Check X11 before X11Rn because it is often a symlink to the current release. 3667ac_x_header_dirs=' 3668/usr/X11/include 3669/usr/X11R6/include 3670/usr/X11R5/include 3671/usr/X11R4/include 3672 3673/usr/include/X11 3674/usr/include/X11R6 3675/usr/include/X11R5 3676/usr/include/X11R4 3677 3678/usr/local/X11/include 3679/usr/local/X11R6/include 3680/usr/local/X11R5/include 3681/usr/local/X11R4/include 3682 3683/usr/local/include/X11 3684/usr/local/include/X11R6 3685/usr/local/include/X11R5 3686/usr/local/include/X11R4 3687 3688/usr/X386/include 3689/usr/x386/include 3690/usr/XFree86/include/X11 3691 3692/usr/include 3693/usr/local/include 3694/usr/unsupported/include 3695/usr/athena/include 3696/usr/local/x11r5/include 3697/usr/lpp/Xamples/include 3698 3699/usr/openwin/include 3700/usr/openwin/share/include' 3701 3702if test "$ac_x_includes" = no; then 3703 # Guess where to find include files, by looking for Intrinsic.h. 3704 # First, try using that file with no special directory specified. 3705 cat >conftest.$ac_ext <<_ACEOF 3706/* confdefs.h. */ 3707_ACEOF 3708cat confdefs.h >>conftest.$ac_ext 3709cat >>conftest.$ac_ext <<_ACEOF 3710/* end confdefs.h. */ 3711#include <X11/Intrinsic.h> 3712_ACEOF 3713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3715 ac_status=$? 3716 grep -v '^ *+' conftest.er1 >conftest.err 3717 rm -f conftest.er1 3718 cat conftest.err >&5 3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 (exit $ac_status); } >/dev/null; then 3721 if test -s conftest.err; then 3722 ac_cpp_err=$ac_c_preproc_warn_flag 3723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3724 else 3725 ac_cpp_err= 3726 fi 3727else 3728 ac_cpp_err=yes 3729fi 3730if test -z "$ac_cpp_err"; then 3731 # We can compile using X headers with no special include directory. 3732ac_x_includes= 3733else 3734 echo "$as_me: failed program was:" >&5 3735sed 's/^/| /' conftest.$ac_ext >&5 3736 3737 for ac_dir in $ac_x_header_dirs; do 3738 if test -r "$ac_dir/X11/Intrinsic.h"; then 3739 ac_x_includes=$ac_dir 3740 break 3741 fi 3742done 3743fi 3744rm -f conftest.err conftest.$ac_ext 3745fi # $ac_x_includes = no 3746 3747if test "$ac_x_libraries" = no; then 3748 # Check for the libraries. 3749 # See if we find them without any special options. 3750 # Don't add to $LIBS permanently. 3751 ac_save_LIBS=$LIBS 3752 LIBS="-lXt $LIBS" 3753 cat >conftest.$ac_ext <<_ACEOF 3754/* confdefs.h. */ 3755_ACEOF 3756cat confdefs.h >>conftest.$ac_ext 3757cat >>conftest.$ac_ext <<_ACEOF 3758/* end confdefs.h. */ 3759#include <X11/Intrinsic.h> 3760int 3761main () 3762{ 3763XtMalloc (0) 3764 ; 3765 return 0; 3766} 3767_ACEOF 3768rm -f conftest.$ac_objext conftest$ac_exeext 3769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3770 (eval $ac_link) 2>conftest.er1 3771 ac_status=$? 3772 grep -v '^ *+' conftest.er1 >conftest.err 3773 rm -f conftest.er1 3774 cat conftest.err >&5 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); } && 3777 { ac_try='test -z "$ac_c_werror_flag" 3778 || test ! -s conftest.err' 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3780 (eval $ac_try) 2>&5 3781 ac_status=$? 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); }; } && 3784 { ac_try='test -s conftest$ac_exeext' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; }; then 3790 LIBS=$ac_save_LIBS 3791# We can link X programs with no special library path. 3792ac_x_libraries= 3793else 3794 echo "$as_me: failed program was:" >&5 3795sed 's/^/| /' conftest.$ac_ext >&5 3796 3797LIBS=$ac_save_LIBS 3798for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3799do 3800 # Don't even attempt the hair of trying to link an X program! 3801 for ac_extension in a so sl; do 3802 if test -r $ac_dir/libXt.$ac_extension; then 3803 ac_x_libraries=$ac_dir 3804 break 2 3805 fi 3806 done 3807done 3808fi 3809rm -f conftest.err conftest.$ac_objext \ 3810 conftest$ac_exeext conftest.$ac_ext 3811fi # $ac_x_libraries = no 3812 3813if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 3814 # Didn't find X anywhere. Cache the known absence of X. 3815 ac_cv_have_x="have_x=no" 3816else 3817 # Record where we found X for the cache. 3818 ac_cv_have_x="have_x=yes \ 3819 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 3820fi 3821fi 3822 3823 fi 3824 eval "$ac_cv_have_x" 3825fi # $with_x != no 3826 3827if test "$have_x" != yes; then 3828 echo "$as_me:$LINENO: result: $have_x" >&5 3829echo "${ECHO_T}$have_x" >&6 3830 no_x=yes 3831else 3832 # If each of the values was on the command line, it overrides each guess. 3833 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3834 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3835 # Update the cache value to reflect the command line values. 3836 ac_cv_have_x="have_x=yes \ 3837 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 3838 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 3839echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 3840fi 3841 3842if test "$no_x" = yes; then 3843 # Not all programs may use this symbol, but it does not hurt to define it. 3844 3845cat >>confdefs.h <<\_ACEOF 3846#define X_DISPLAY_MISSING 1 3847_ACEOF 3848 3849 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 3850else 3851 if test -n "$x_includes"; then 3852 X_CFLAGS="$X_CFLAGS -I$x_includes" 3853 fi 3854 3855 # It would also be nice to do this for all -L options, not just this one. 3856 if test -n "$x_libraries"; then 3857 X_LIBS="$X_LIBS -L$x_libraries" 3858 # For Solaris; some versions of Sun CC require a space after -R and 3859 # others require no space. Words are not sufficient . . . . 3860 case `(uname -sr) 2>/dev/null` in 3861 "SunOS 5"*) 3862 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 3863echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 3864 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 3865 cat >conftest.$ac_ext <<_ACEOF 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871 3872int 3873main () 3874{ 3875 3876 ; 3877 return 0; 3878} 3879_ACEOF 3880rm -f conftest.$ac_objext conftest$ac_exeext 3881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3882 (eval $ac_link) 2>conftest.er1 3883 ac_status=$? 3884 grep -v '^ *+' conftest.er1 >conftest.err 3885 rm -f conftest.er1 3886 cat conftest.err >&5 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } && 3889 { ac_try='test -z "$ac_c_werror_flag" 3890 || test ! -s conftest.err' 3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3892 (eval $ac_try) 2>&5 3893 ac_status=$? 3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3895 (exit $ac_status); }; } && 3896 { ac_try='test -s conftest$ac_exeext' 3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3898 (eval $ac_try) 2>&5 3899 ac_status=$? 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); }; }; then 3902 ac_R_nospace=yes 3903else 3904 echo "$as_me: failed program was:" >&5 3905sed 's/^/| /' conftest.$ac_ext >&5 3906 3907ac_R_nospace=no 3908fi 3909rm -f conftest.err conftest.$ac_objext \ 3910 conftest$ac_exeext conftest.$ac_ext 3911 if test $ac_R_nospace = yes; then 3912 echo "$as_me:$LINENO: result: no" >&5 3913echo "${ECHO_T}no" >&6 3914 X_LIBS="$X_LIBS -R$x_libraries" 3915 else 3916 LIBS="$ac_xsave_LIBS -R $x_libraries" 3917 cat >conftest.$ac_ext <<_ACEOF 3918/* confdefs.h. */ 3919_ACEOF 3920cat confdefs.h >>conftest.$ac_ext 3921cat >>conftest.$ac_ext <<_ACEOF 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.$ac_objext conftest$ac_exeext 3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3934 (eval $ac_link) 2>conftest.er1 3935 ac_status=$? 3936 grep -v '^ *+' conftest.er1 >conftest.err 3937 rm -f conftest.er1 3938 cat conftest.err >&5 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 (exit $ac_status); } && 3941 { ac_try='test -z "$ac_c_werror_flag" 3942 || test ! -s conftest.err' 3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3944 (eval $ac_try) 2>&5 3945 ac_status=$? 3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3947 (exit $ac_status); }; } && 3948 { ac_try='test -s conftest$ac_exeext' 3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3950 (eval $ac_try) 2>&5 3951 ac_status=$? 3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3953 (exit $ac_status); }; }; then 3954 ac_R_space=yes 3955else 3956 echo "$as_me: failed program was:" >&5 3957sed 's/^/| /' conftest.$ac_ext >&5 3958 3959ac_R_space=no 3960fi 3961rm -f conftest.err conftest.$ac_objext \ 3962 conftest$ac_exeext conftest.$ac_ext 3963 if test $ac_R_space = yes; then 3964 echo "$as_me:$LINENO: result: yes" >&5 3965echo "${ECHO_T}yes" >&6 3966 X_LIBS="$X_LIBS -R $x_libraries" 3967 else 3968 echo "$as_me:$LINENO: result: neither works" >&5 3969echo "${ECHO_T}neither works" >&6 3970 fi 3971 fi 3972 LIBS=$ac_xsave_LIBS 3973 esac 3974 fi 3975 3976 # Check for system-dependent libraries X programs must link with. 3977 # Do this before checking for the system-independent R6 libraries 3978 # (-lICE), since we may need -lsocket or whatever for X linking. 3979 3980 if test "$ISC" = yes; then 3981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 3982 else 3983 # Martyn Johnson says this is needed for Ultrix, if the X 3984 # libraries were built with DECnet support. And Karl Berry says 3985 # the Alpha needs dnet_stub (dnet does not exist). 3986 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 3987 cat >conftest.$ac_ext <<_ACEOF 3988/* confdefs.h. */ 3989_ACEOF 3990cat confdefs.h >>conftest.$ac_ext 3991cat >>conftest.$ac_ext <<_ACEOF 3992/* end confdefs.h. */ 3993 3994/* Override any gcc2 internal prototype to avoid an error. */ 3995#ifdef __cplusplus 3996extern "C" 3997#endif 3998/* We use char because int might match the return type of a gcc2 3999 builtin and then its argument prototype would still apply. */ 4000char XOpenDisplay (); 4001int 4002main () 4003{ 4004XOpenDisplay (); 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009rm -f conftest.$ac_objext conftest$ac_exeext 4010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4011 (eval $ac_link) 2>conftest.er1 4012 ac_status=$? 4013 grep -v '^ *+' conftest.er1 >conftest.err 4014 rm -f conftest.er1 4015 cat conftest.err >&5 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); } && 4018 { ac_try='test -z "$ac_c_werror_flag" 4019 || test ! -s conftest.err' 4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4021 (eval $ac_try) 2>&5 4022 ac_status=$? 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); }; } && 4025 { ac_try='test -s conftest$ac_exeext' 4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4027 (eval $ac_try) 2>&5 4028 ac_status=$? 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4030 (exit $ac_status); }; }; then 4031 : 4032else 4033 echo "$as_me: failed program was:" >&5 4034sed 's/^/| /' conftest.$ac_ext >&5 4035 4036echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 4037echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 4038if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 ac_check_lib_save_LIBS=$LIBS 4042LIBS="-ldnet $LIBS" 4043cat >conftest.$ac_ext <<_ACEOF 4044/* confdefs.h. */ 4045_ACEOF 4046cat confdefs.h >>conftest.$ac_ext 4047cat >>conftest.$ac_ext <<_ACEOF 4048/* end confdefs.h. */ 4049 4050/* Override any gcc2 internal prototype to avoid an error. */ 4051#ifdef __cplusplus 4052extern "C" 4053#endif 4054/* We use char because int might match the return type of a gcc2 4055 builtin and then its argument prototype would still apply. */ 4056char dnet_ntoa (); 4057int 4058main () 4059{ 4060dnet_ntoa (); 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065rm -f conftest.$ac_objext conftest$ac_exeext 4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4067 (eval $ac_link) 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } && 4074 { ac_try='test -z "$ac_c_werror_flag" 4075 || test ! -s conftest.err' 4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4077 (eval $ac_try) 2>&5 4078 ac_status=$? 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4080 (exit $ac_status); }; } && 4081 { ac_try='test -s conftest$ac_exeext' 4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4083 (eval $ac_try) 2>&5 4084 ac_status=$? 4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4086 (exit $ac_status); }; }; then 4087 ac_cv_lib_dnet_dnet_ntoa=yes 4088else 4089 echo "$as_me: failed program was:" >&5 4090sed 's/^/| /' conftest.$ac_ext >&5 4091 4092ac_cv_lib_dnet_dnet_ntoa=no 4093fi 4094rm -f conftest.err conftest.$ac_objext \ 4095 conftest$ac_exeext conftest.$ac_ext 4096LIBS=$ac_check_lib_save_LIBS 4097fi 4098echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 4099echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 4100if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 4101 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 4102fi 4103 4104 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4105 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 4106echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 4107if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 ac_check_lib_save_LIBS=$LIBS 4111LIBS="-ldnet_stub $LIBS" 4112cat >conftest.$ac_ext <<_ACEOF 4113/* confdefs.h. */ 4114_ACEOF 4115cat confdefs.h >>conftest.$ac_ext 4116cat >>conftest.$ac_ext <<_ACEOF 4117/* end confdefs.h. */ 4118 4119/* Override any gcc2 internal prototype to avoid an error. */ 4120#ifdef __cplusplus 4121extern "C" 4122#endif 4123/* We use char because int might match the return type of a gcc2 4124 builtin and then its argument prototype would still apply. */ 4125char dnet_ntoa (); 4126int 4127main () 4128{ 4129dnet_ntoa (); 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134rm -f conftest.$ac_objext conftest$ac_exeext 4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4136 (eval $ac_link) 2>conftest.er1 4137 ac_status=$? 4138 grep -v '^ *+' conftest.er1 >conftest.err 4139 rm -f conftest.er1 4140 cat conftest.err >&5 4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4142 (exit $ac_status); } && 4143 { ac_try='test -z "$ac_c_werror_flag" 4144 || test ! -s conftest.err' 4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4146 (eval $ac_try) 2>&5 4147 ac_status=$? 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4149 (exit $ac_status); }; } && 4150 { ac_try='test -s conftest$ac_exeext' 4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4152 (eval $ac_try) 2>&5 4153 ac_status=$? 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); }; }; then 4156 ac_cv_lib_dnet_stub_dnet_ntoa=yes 4157else 4158 echo "$as_me: failed program was:" >&5 4159sed 's/^/| /' conftest.$ac_ext >&5 4160 4161ac_cv_lib_dnet_stub_dnet_ntoa=no 4162fi 4163rm -f conftest.err conftest.$ac_objext \ 4164 conftest$ac_exeext conftest.$ac_ext 4165LIBS=$ac_check_lib_save_LIBS 4166fi 4167echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 4168echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 4169if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 4170 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 4171fi 4172 4173 fi 4174fi 4175rm -f conftest.err conftest.$ac_objext \ 4176 conftest$ac_exeext conftest.$ac_ext 4177 LIBS="$ac_xsave_LIBS" 4178 4179 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 4180 # to get the SysV transport functions. 4181 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 4182 # needs -lnsl. 4183 # The nsl library prevents programs from opening the X display 4184 # on Irix 5.2, according to T.E. Dickey. 4185 # The functions gethostbyname, getservbyname, and inet_addr are 4186 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 4187 echo "$as_me:$LINENO: checking for gethostbyname" >&5 4188echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 4189if test "${ac_cv_func_gethostbyname+set}" = set; then 4190 echo $ECHO_N "(cached) $ECHO_C" >&6 4191else 4192 cat >conftest.$ac_ext <<_ACEOF 4193/* confdefs.h. */ 4194_ACEOF 4195cat confdefs.h >>conftest.$ac_ext 4196cat >>conftest.$ac_ext <<_ACEOF 4197/* end confdefs.h. */ 4198/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4199 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4200#define gethostbyname innocuous_gethostbyname 4201 4202/* System header to define __stub macros and hopefully few prototypes, 4203 which can conflict with char gethostbyname (); below. 4204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4205 <limits.h> exists even on freestanding compilers. */ 4206 4207#ifdef __STDC__ 4208# include <limits.h> 4209#else 4210# include <assert.h> 4211#endif 4212 4213#undef gethostbyname 4214 4215/* Override any gcc2 internal prototype to avoid an error. */ 4216#ifdef __cplusplus 4217extern "C" 4218{ 4219#endif 4220/* We use char because int might match the return type of a gcc2 4221 builtin and then its argument prototype would still apply. */ 4222char gethostbyname (); 4223/* The GNU C library defines this for functions which it implements 4224 to always fail with ENOSYS. Some functions are actually named 4225 something starting with __ and the normal name is an alias. */ 4226#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 4227choke me 4228#else 4229char (*f) () = gethostbyname; 4230#endif 4231#ifdef __cplusplus 4232} 4233#endif 4234 4235int 4236main () 4237{ 4238return f != gethostbyname; 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243rm -f conftest.$ac_objext conftest$ac_exeext 4244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4245 (eval $ac_link) 2>conftest.er1 4246 ac_status=$? 4247 grep -v '^ *+' conftest.er1 >conftest.err 4248 rm -f conftest.er1 4249 cat conftest.err >&5 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); } && 4252 { ac_try='test -z "$ac_c_werror_flag" 4253 || test ! -s conftest.err' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; } && 4259 { ac_try='test -s conftest$ac_exeext' 4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4261 (eval $ac_try) 2>&5 4262 ac_status=$? 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); }; }; then 4265 ac_cv_func_gethostbyname=yes 4266else 4267 echo "$as_me: failed program was:" >&5 4268sed 's/^/| /' conftest.$ac_ext >&5 4269 4270ac_cv_func_gethostbyname=no 4271fi 4272rm -f conftest.err conftest.$ac_objext \ 4273 conftest$ac_exeext conftest.$ac_ext 4274fi 4275echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4276echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 4277 4278 if test $ac_cv_func_gethostbyname = no; then 4279 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4280echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4281if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4282 echo $ECHO_N "(cached) $ECHO_C" >&6 4283else 4284 ac_check_lib_save_LIBS=$LIBS 4285LIBS="-lnsl $LIBS" 4286cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292 4293/* Override any gcc2 internal prototype to avoid an error. */ 4294#ifdef __cplusplus 4295extern "C" 4296#endif 4297/* We use char because int might match the return type of a gcc2 4298 builtin and then its argument prototype would still apply. */ 4299char gethostbyname (); 4300int 4301main () 4302{ 4303gethostbyname (); 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308rm -f conftest.$ac_objext conftest$ac_exeext 4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4310 (eval $ac_link) 2>conftest.er1 4311 ac_status=$? 4312 grep -v '^ *+' conftest.er1 >conftest.err 4313 rm -f conftest.er1 4314 cat conftest.err >&5 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } && 4317 { ac_try='test -z "$ac_c_werror_flag" 4318 || test ! -s conftest.err' 4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4320 (eval $ac_try) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); }; } && 4324 { ac_try='test -s conftest$ac_exeext' 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4326 (eval $ac_try) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); }; }; then 4330 ac_cv_lib_nsl_gethostbyname=yes 4331else 4332 echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335ac_cv_lib_nsl_gethostbyname=no 4336fi 4337rm -f conftest.err conftest.$ac_objext \ 4338 conftest$ac_exeext conftest.$ac_ext 4339LIBS=$ac_check_lib_save_LIBS 4340fi 4341echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4342echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4343if test $ac_cv_lib_nsl_gethostbyname = yes; then 4344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 4345fi 4346 4347 if test $ac_cv_lib_nsl_gethostbyname = no; then 4348 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 4349echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 4350if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 4351 echo $ECHO_N "(cached) $ECHO_C" >&6 4352else 4353 ac_check_lib_save_LIBS=$LIBS 4354LIBS="-lbsd $LIBS" 4355cat >conftest.$ac_ext <<_ACEOF 4356/* confdefs.h. */ 4357_ACEOF 4358cat confdefs.h >>conftest.$ac_ext 4359cat >>conftest.$ac_ext <<_ACEOF 4360/* end confdefs.h. */ 4361 4362/* Override any gcc2 internal prototype to avoid an error. */ 4363#ifdef __cplusplus 4364extern "C" 4365#endif 4366/* We use char because int might match the return type of a gcc2 4367 builtin and then its argument prototype would still apply. */ 4368char gethostbyname (); 4369int 4370main () 4371{ 4372gethostbyname (); 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest.$ac_objext conftest$ac_exeext 4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4379 (eval $ac_link) 2>conftest.er1 4380 ac_status=$? 4381 grep -v '^ *+' conftest.er1 >conftest.err 4382 rm -f conftest.er1 4383 cat conftest.err >&5 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); } && 4386 { ac_try='test -z "$ac_c_werror_flag" 4387 || test ! -s conftest.err' 4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4389 (eval $ac_try) 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); }; } && 4393 { ac_try='test -s conftest$ac_exeext' 4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4395 (eval $ac_try) 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); }; }; then 4399 ac_cv_lib_bsd_gethostbyname=yes 4400else 4401 echo "$as_me: failed program was:" >&5 4402sed 's/^/| /' conftest.$ac_ext >&5 4403 4404ac_cv_lib_bsd_gethostbyname=no 4405fi 4406rm -f conftest.err conftest.$ac_objext \ 4407 conftest$ac_exeext conftest.$ac_ext 4408LIBS=$ac_check_lib_save_LIBS 4409fi 4410echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 4411echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 4412if test $ac_cv_lib_bsd_gethostbyname = yes; then 4413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 4414fi 4415 4416 fi 4417 fi 4418 4419 # lieder@skyler.mavd.honeywell.com says without -lsocket, 4420 # socket/setsockopt and other routines are undefined under SCO ODT 4421 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 4422 # on later versions), says Simon Leinen: it contains gethostby* 4423 # variants that don't use the name server (or something). -lsocket 4424 # must be given before -lnsl if both are needed. We assume that 4425 # if connect needs -lnsl, so does gethostbyname. 4426 echo "$as_me:$LINENO: checking for connect" >&5 4427echo $ECHO_N "checking for connect... $ECHO_C" >&6 4428if test "${ac_cv_func_connect+set}" = set; then 4429 echo $ECHO_N "(cached) $ECHO_C" >&6 4430else 4431 cat >conftest.$ac_ext <<_ACEOF 4432/* confdefs.h. */ 4433_ACEOF 4434cat confdefs.h >>conftest.$ac_ext 4435cat >>conftest.$ac_ext <<_ACEOF 4436/* end confdefs.h. */ 4437/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4439#define connect innocuous_connect 4440 4441/* System header to define __stub macros and hopefully few prototypes, 4442 which can conflict with char connect (); below. 4443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4444 <limits.h> exists even on freestanding compilers. */ 4445 4446#ifdef __STDC__ 4447# include <limits.h> 4448#else 4449# include <assert.h> 4450#endif 4451 4452#undef connect 4453 4454/* Override any gcc2 internal prototype to avoid an error. */ 4455#ifdef __cplusplus 4456extern "C" 4457{ 4458#endif 4459/* We use char because int might match the return type of a gcc2 4460 builtin and then its argument prototype would still apply. */ 4461char connect (); 4462/* The GNU C library defines this for functions which it implements 4463 to always fail with ENOSYS. Some functions are actually named 4464 something starting with __ and the normal name is an alias. */ 4465#if defined (__stub_connect) || defined (__stub___connect) 4466choke me 4467#else 4468char (*f) () = connect; 4469#endif 4470#ifdef __cplusplus 4471} 4472#endif 4473 4474int 4475main () 4476{ 4477return f != connect; 4478 ; 4479 return 0; 4480} 4481_ACEOF 4482rm -f conftest.$ac_objext conftest$ac_exeext 4483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4484 (eval $ac_link) 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); } && 4491 { ac_try='test -z "$ac_c_werror_flag" 4492 || test ! -s conftest.err' 4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4494 (eval $ac_try) 2>&5 4495 ac_status=$? 4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4497 (exit $ac_status); }; } && 4498 { ac_try='test -s conftest$ac_exeext' 4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4500 (eval $ac_try) 2>&5 4501 ac_status=$? 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); }; }; then 4504 ac_cv_func_connect=yes 4505else 4506 echo "$as_me: failed program was:" >&5 4507sed 's/^/| /' conftest.$ac_ext >&5 4508 4509ac_cv_func_connect=no 4510fi 4511rm -f conftest.err conftest.$ac_objext \ 4512 conftest$ac_exeext conftest.$ac_ext 4513fi 4514echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4515echo "${ECHO_T}$ac_cv_func_connect" >&6 4516 4517 if test $ac_cv_func_connect = no; then 4518 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4519echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 4520if test "${ac_cv_lib_socket_connect+set}" = set; then 4521 echo $ECHO_N "(cached) $ECHO_C" >&6 4522else 4523 ac_check_lib_save_LIBS=$LIBS 4524LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4525cat >conftest.$ac_ext <<_ACEOF 4526/* confdefs.h. */ 4527_ACEOF 4528cat confdefs.h >>conftest.$ac_ext 4529cat >>conftest.$ac_ext <<_ACEOF 4530/* end confdefs.h. */ 4531 4532/* Override any gcc2 internal prototype to avoid an error. */ 4533#ifdef __cplusplus 4534extern "C" 4535#endif 4536/* We use char because int might match the return type of a gcc2 4537 builtin and then its argument prototype would still apply. */ 4538char connect (); 4539int 4540main () 4541{ 4542connect (); 4543 ; 4544 return 0; 4545} 4546_ACEOF 4547rm -f conftest.$ac_objext conftest$ac_exeext 4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4549 (eval $ac_link) 2>conftest.er1 4550 ac_status=$? 4551 grep -v '^ *+' conftest.er1 >conftest.err 4552 rm -f conftest.er1 4553 cat conftest.err >&5 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); } && 4556 { ac_try='test -z "$ac_c_werror_flag" 4557 || test ! -s conftest.err' 4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4559 (eval $ac_try) 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); }; } && 4563 { ac_try='test -s conftest$ac_exeext' 4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4565 (eval $ac_try) 2>&5 4566 ac_status=$? 4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4568 (exit $ac_status); }; }; then 4569 ac_cv_lib_socket_connect=yes 4570else 4571 echo "$as_me: failed program was:" >&5 4572sed 's/^/| /' conftest.$ac_ext >&5 4573 4574ac_cv_lib_socket_connect=no 4575fi 4576rm -f conftest.err conftest.$ac_objext \ 4577 conftest$ac_exeext conftest.$ac_ext 4578LIBS=$ac_check_lib_save_LIBS 4579fi 4580echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4581echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 4582if test $ac_cv_lib_socket_connect = yes; then 4583 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4584fi 4585 4586 fi 4587 4588 # Guillermo Gomez says -lposix is necessary on A/UX. 4589 echo "$as_me:$LINENO: checking for remove" >&5 4590echo $ECHO_N "checking for remove... $ECHO_C" >&6 4591if test "${ac_cv_func_remove+set}" = set; then 4592 echo $ECHO_N "(cached) $ECHO_C" >&6 4593else 4594 cat >conftest.$ac_ext <<_ACEOF 4595/* confdefs.h. */ 4596_ACEOF 4597cat confdefs.h >>conftest.$ac_ext 4598cat >>conftest.$ac_ext <<_ACEOF 4599/* end confdefs.h. */ 4600/* Define remove to an innocuous variant, in case <limits.h> declares remove. 4601 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4602#define remove innocuous_remove 4603 4604/* System header to define __stub macros and hopefully few prototypes, 4605 which can conflict with char remove (); below. 4606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4607 <limits.h> exists even on freestanding compilers. */ 4608 4609#ifdef __STDC__ 4610# include <limits.h> 4611#else 4612# include <assert.h> 4613#endif 4614 4615#undef remove 4616 4617/* Override any gcc2 internal prototype to avoid an error. */ 4618#ifdef __cplusplus 4619extern "C" 4620{ 4621#endif 4622/* We use char because int might match the return type of a gcc2 4623 builtin and then its argument prototype would still apply. */ 4624char remove (); 4625/* The GNU C library defines this for functions which it implements 4626 to always fail with ENOSYS. Some functions are actually named 4627 something starting with __ and the normal name is an alias. */ 4628#if defined (__stub_remove) || defined (__stub___remove) 4629choke me 4630#else 4631char (*f) () = remove; 4632#endif 4633#ifdef __cplusplus 4634} 4635#endif 4636 4637int 4638main () 4639{ 4640return f != remove; 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext conftest$ac_exeext 4646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4647 (eval $ac_link) 2>conftest.er1 4648 ac_status=$? 4649 grep -v '^ *+' conftest.er1 >conftest.err 4650 rm -f conftest.er1 4651 cat conftest.err >&5 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } && 4654 { ac_try='test -z "$ac_c_werror_flag" 4655 || test ! -s conftest.err' 4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4657 (eval $ac_try) 2>&5 4658 ac_status=$? 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); }; } && 4661 { ac_try='test -s conftest$ac_exeext' 4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4663 (eval $ac_try) 2>&5 4664 ac_status=$? 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); }; }; then 4667 ac_cv_func_remove=yes 4668else 4669 echo "$as_me: failed program was:" >&5 4670sed 's/^/| /' conftest.$ac_ext >&5 4671 4672ac_cv_func_remove=no 4673fi 4674rm -f conftest.err conftest.$ac_objext \ 4675 conftest$ac_exeext conftest.$ac_ext 4676fi 4677echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 4678echo "${ECHO_T}$ac_cv_func_remove" >&6 4679 4680 if test $ac_cv_func_remove = no; then 4681 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 4682echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 4683if test "${ac_cv_lib_posix_remove+set}" = set; then 4684 echo $ECHO_N "(cached) $ECHO_C" >&6 4685else 4686 ac_check_lib_save_LIBS=$LIBS 4687LIBS="-lposix $LIBS" 4688cat >conftest.$ac_ext <<_ACEOF 4689/* confdefs.h. */ 4690_ACEOF 4691cat confdefs.h >>conftest.$ac_ext 4692cat >>conftest.$ac_ext <<_ACEOF 4693/* end confdefs.h. */ 4694 4695/* Override any gcc2 internal prototype to avoid an error. */ 4696#ifdef __cplusplus 4697extern "C" 4698#endif 4699/* We use char because int might match the return type of a gcc2 4700 builtin and then its argument prototype would still apply. */ 4701char remove (); 4702int 4703main () 4704{ 4705remove (); 4706 ; 4707 return 0; 4708} 4709_ACEOF 4710rm -f conftest.$ac_objext conftest$ac_exeext 4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4712 (eval $ac_link) 2>conftest.er1 4713 ac_status=$? 4714 grep -v '^ *+' conftest.er1 >conftest.err 4715 rm -f conftest.er1 4716 cat conftest.err >&5 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4718 (exit $ac_status); } && 4719 { ac_try='test -z "$ac_c_werror_flag" 4720 || test ! -s conftest.err' 4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4722 (eval $ac_try) 2>&5 4723 ac_status=$? 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); }; } && 4726 { ac_try='test -s conftest$ac_exeext' 4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4728 (eval $ac_try) 2>&5 4729 ac_status=$? 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); }; }; then 4732 ac_cv_lib_posix_remove=yes 4733else 4734 echo "$as_me: failed program was:" >&5 4735sed 's/^/| /' conftest.$ac_ext >&5 4736 4737ac_cv_lib_posix_remove=no 4738fi 4739rm -f conftest.err conftest.$ac_objext \ 4740 conftest$ac_exeext conftest.$ac_ext 4741LIBS=$ac_check_lib_save_LIBS 4742fi 4743echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 4744echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 4745if test $ac_cv_lib_posix_remove = yes; then 4746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4747fi 4748 4749 fi 4750 4751 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4752 echo "$as_me:$LINENO: checking for shmat" >&5 4753echo $ECHO_N "checking for shmat... $ECHO_C" >&6 4754if test "${ac_cv_func_shmat+set}" = set; then 4755 echo $ECHO_N "(cached) $ECHO_C" >&6 4756else 4757 cat >conftest.$ac_ext <<_ACEOF 4758/* confdefs.h. */ 4759_ACEOF 4760cat confdefs.h >>conftest.$ac_ext 4761cat >>conftest.$ac_ext <<_ACEOF 4762/* end confdefs.h. */ 4763/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 4764 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4765#define shmat innocuous_shmat 4766 4767/* System header to define __stub macros and hopefully few prototypes, 4768 which can conflict with char shmat (); below. 4769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4770 <limits.h> exists even on freestanding compilers. */ 4771 4772#ifdef __STDC__ 4773# include <limits.h> 4774#else 4775# include <assert.h> 4776#endif 4777 4778#undef shmat 4779 4780/* Override any gcc2 internal prototype to avoid an error. */ 4781#ifdef __cplusplus 4782extern "C" 4783{ 4784#endif 4785/* We use char because int might match the return type of a gcc2 4786 builtin and then its argument prototype would still apply. */ 4787char shmat (); 4788/* The GNU C library defines this for functions which it implements 4789 to always fail with ENOSYS. Some functions are actually named 4790 something starting with __ and the normal name is an alias. */ 4791#if defined (__stub_shmat) || defined (__stub___shmat) 4792choke me 4793#else 4794char (*f) () = shmat; 4795#endif 4796#ifdef __cplusplus 4797} 4798#endif 4799 4800int 4801main () 4802{ 4803return f != shmat; 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808rm -f conftest.$ac_objext conftest$ac_exeext 4809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4810 (eval $ac_link) 2>conftest.er1 4811 ac_status=$? 4812 grep -v '^ *+' conftest.er1 >conftest.err 4813 rm -f conftest.er1 4814 cat conftest.err >&5 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } && 4817 { ac_try='test -z "$ac_c_werror_flag" 4818 || test ! -s conftest.err' 4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4820 (eval $ac_try) 2>&5 4821 ac_status=$? 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); }; } && 4824 { ac_try='test -s conftest$ac_exeext' 4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4826 (eval $ac_try) 2>&5 4827 ac_status=$? 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); }; }; then 4830 ac_cv_func_shmat=yes 4831else 4832 echo "$as_me: failed program was:" >&5 4833sed 's/^/| /' conftest.$ac_ext >&5 4834 4835ac_cv_func_shmat=no 4836fi 4837rm -f conftest.err conftest.$ac_objext \ 4838 conftest$ac_exeext conftest.$ac_ext 4839fi 4840echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 4841echo "${ECHO_T}$ac_cv_func_shmat" >&6 4842 4843 if test $ac_cv_func_shmat = no; then 4844 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 4845echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 4846if test "${ac_cv_lib_ipc_shmat+set}" = set; then 4847 echo $ECHO_N "(cached) $ECHO_C" >&6 4848else 4849 ac_check_lib_save_LIBS=$LIBS 4850LIBS="-lipc $LIBS" 4851cat >conftest.$ac_ext <<_ACEOF 4852/* confdefs.h. */ 4853_ACEOF 4854cat confdefs.h >>conftest.$ac_ext 4855cat >>conftest.$ac_ext <<_ACEOF 4856/* end confdefs.h. */ 4857 4858/* Override any gcc2 internal prototype to avoid an error. */ 4859#ifdef __cplusplus 4860extern "C" 4861#endif 4862/* We use char because int might match the return type of a gcc2 4863 builtin and then its argument prototype would still apply. */ 4864char shmat (); 4865int 4866main () 4867{ 4868shmat (); 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873rm -f conftest.$ac_objext conftest$ac_exeext 4874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4875 (eval $ac_link) 2>conftest.er1 4876 ac_status=$? 4877 grep -v '^ *+' conftest.er1 >conftest.err 4878 rm -f conftest.er1 4879 cat conftest.err >&5 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); } && 4882 { ac_try='test -z "$ac_c_werror_flag" 4883 || test ! -s conftest.err' 4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4885 (eval $ac_try) 2>&5 4886 ac_status=$? 4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4888 (exit $ac_status); }; } && 4889 { ac_try='test -s conftest$ac_exeext' 4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4891 (eval $ac_try) 2>&5 4892 ac_status=$? 4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4894 (exit $ac_status); }; }; then 4895 ac_cv_lib_ipc_shmat=yes 4896else 4897 echo "$as_me: failed program was:" >&5 4898sed 's/^/| /' conftest.$ac_ext >&5 4899 4900ac_cv_lib_ipc_shmat=no 4901fi 4902rm -f conftest.err conftest.$ac_objext \ 4903 conftest$ac_exeext conftest.$ac_ext 4904LIBS=$ac_check_lib_save_LIBS 4905fi 4906echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 4907echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 4908if test $ac_cv_lib_ipc_shmat = yes; then 4909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4910fi 4911 4912 fi 4913 fi 4914 4915 # Check for libraries that X11R6 Xt/Xaw programs need. 4916 ac_save_LDFLAGS=$LDFLAGS 4917 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4918 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4919 # check for ICE first), but we must link in the order -lSM -lICE or 4920 # we get undefined symbols. So assume we have SM if we have ICE. 4921 # These have to be linked with before -lX11, unlike the other 4922 # libraries we check for below, so use a different variable. 4923 # John Interrante, Karl Berry 4924 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 4925echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 4926if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 4927 echo $ECHO_N "(cached) $ECHO_C" >&6 4928else 4929 ac_check_lib_save_LIBS=$LIBS 4930LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4931cat >conftest.$ac_ext <<_ACEOF 4932/* confdefs.h. */ 4933_ACEOF 4934cat confdefs.h >>conftest.$ac_ext 4935cat >>conftest.$ac_ext <<_ACEOF 4936/* end confdefs.h. */ 4937 4938/* Override any gcc2 internal prototype to avoid an error. */ 4939#ifdef __cplusplus 4940extern "C" 4941#endif 4942/* We use char because int might match the return type of a gcc2 4943 builtin and then its argument prototype would still apply. */ 4944char IceConnectionNumber (); 4945int 4946main () 4947{ 4948IceConnectionNumber (); 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953rm -f conftest.$ac_objext conftest$ac_exeext 4954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4955 (eval $ac_link) 2>conftest.er1 4956 ac_status=$? 4957 grep -v '^ *+' conftest.er1 >conftest.err 4958 rm -f conftest.er1 4959 cat conftest.err >&5 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); } && 4962 { ac_try='test -z "$ac_c_werror_flag" 4963 || test ! -s conftest.err' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; } && 4969 { ac_try='test -s conftest$ac_exeext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 ac_cv_lib_ICE_IceConnectionNumber=yes 4976else 4977 echo "$as_me: failed program was:" >&5 4978sed 's/^/| /' conftest.$ac_ext >&5 4979 4980ac_cv_lib_ICE_IceConnectionNumber=no 4981fi 4982rm -f conftest.err conftest.$ac_objext \ 4983 conftest$ac_exeext conftest.$ac_ext 4984LIBS=$ac_check_lib_save_LIBS 4985fi 4986echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 4987echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 4988if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 4989 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4990fi 4991 4992 LDFLAGS=$ac_save_LDFLAGS 4993 4994fi 4995 4996 4997 groff_no_x=$no_x 4998 if test -z "$groff_no_x"; then 4999 OLDCFLAGS=$CFLAGS 5000 OLDLDFLAGS=$LDFLAGS 5001 OLDLIBS=$LIBS 5002 CFLAGS="$CFLAGS $X_CFLAGS" 5003 LDFLAGS="$LDFLAGS $X_LIBS" 5004 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 5005 5006 LIBS="$LIBS -lXaw" 5007 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5 5008echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6 5009 cat >conftest.$ac_ext <<_ACEOF 5010 5011 /* confdefs.h. */ 5012_ACEOF 5013cat confdefs.h >>conftest.$ac_ext 5014cat >>conftest.$ac_ext <<_ACEOF 5015/* end confdefs.h. */ 5016 5017 5018#include <X11/Intrinsic.h> 5019#include <X11/Xaw/Simple.h> 5020 5021 5022int 5023main () 5024{ 5025 5026 ; 5027 return 0; 5028} 5029 5030_ACEOF 5031rm -f conftest.$ac_objext conftest$ac_exeext 5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5033 (eval $ac_link) 2>conftest.er1 5034 ac_status=$? 5035 grep -v '^ *+' conftest.er1 >conftest.err 5036 rm -f conftest.er1 5037 cat conftest.err >&5 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } && 5040 { ac_try='test -z "$ac_c_werror_flag" 5041 || test ! -s conftest.err' 5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5043 (eval $ac_try) 2>&5 5044 ac_status=$? 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); }; } && 5047 { ac_try='test -s conftest$ac_exeext' 5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5049 (eval $ac_try) 2>&5 5050 ac_status=$? 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); }; }; then 5053 echo "$as_me:$LINENO: result: yes" >&5 5054echo "${ECHO_T}yes" >&6 5055else 5056 echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059echo "$as_me:$LINENO: result: no" >&5 5060echo "${ECHO_T}no" >&6 5061 groff_no_x="yes" 5062fi 5063rm -f conftest.err conftest.$ac_objext \ 5064 conftest$ac_exeext conftest.$ac_ext 5065 5066 LIBS="$LIBS -lXmu" 5067 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5 5068echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6 5069 cat >conftest.$ac_ext <<_ACEOF 5070 5071 /* confdefs.h. */ 5072_ACEOF 5073cat confdefs.h >>conftest.$ac_ext 5074cat >>conftest.$ac_ext <<_ACEOF 5075/* end confdefs.h. */ 5076 5077 5078#include <X11/Intrinsic.h> 5079#include <X11/Xmu/Converters.h> 5080 5081 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089 5090_ACEOF 5091rm -f conftest.$ac_objext conftest$ac_exeext 5092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5093 (eval $ac_link) 2>conftest.er1 5094 ac_status=$? 5095 grep -v '^ *+' conftest.er1 >conftest.err 5096 rm -f conftest.er1 5097 cat conftest.err >&5 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5099 (exit $ac_status); } && 5100 { ac_try='test -z "$ac_c_werror_flag" 5101 || test ! -s conftest.err' 5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5103 (eval $ac_try) 2>&5 5104 ac_status=$? 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 (exit $ac_status); }; } && 5107 { ac_try='test -s conftest$ac_exeext' 5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5109 (eval $ac_try) 2>&5 5110 ac_status=$? 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); }; }; then 5113 echo "$as_me:$LINENO: result: yes" >&5 5114echo "${ECHO_T}yes" >&6 5115else 5116 echo "$as_me: failed program was:" >&5 5117sed 's/^/| /' conftest.$ac_ext >&5 5118 5119echo "$as_me:$LINENO: result: no" >&5 5120echo "${ECHO_T}no" >&6 5121 groff_no_x="yes" 5122fi 5123rm -f conftest.err conftest.$ac_objext \ 5124 conftest$ac_exeext conftest.$ac_ext 5125 5126 CFLAGS=$OLDCFLAGS 5127 LDFLAGS=$OLDLDFLAGS 5128 LIBS=$OLDLIBS 5129 fi 5130 5131 if test "x$groff_no_x" = "xyes"; then 5132 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5 5133echo "$as_me: gxditview and xtotroff won't be built" >&6;} 5134 else 5135 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12" 5136 XPROGDIRS="src/devices/xditview src/utils/xtotroff" 5137 XLIBDIRS="src/libs/libxutil" 5138 fi 5139 5140 5141 5142 5143 5144# Check whether --with-appresdir or --without-appresdir was given. 5145if test "${with_appresdir+set}" = set; then 5146 withval="$with_appresdir" 5147 5148fi; 5149if test -z "$groff_no_x"; then 5150 # Create an Imakefile, run `xmkmf', then `make'. 5151 rm -f -r conftest.dir 5152 if mkdir conftest.dir; then 5153 cd conftest.dir 5154 # Make sure to not put `make' in the Imakefile rules, 5155 # since we grep it out. 5156 cat >Imakefile <<'EOF' 5157 5158xlibdirs: 5159 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"' 5160EOF 5161 5162 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 5163 # GNU make sometimes prints "make[1]: Entering...", 5164 # which would confuse us. 5165 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make` 5166 5167 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR. 5168 for groff_extension in a so sl; do 5169 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension && 5170 test -f $groff_x_libdir/libX11.$groff_extension; then 5171 groff_x_usrlibdir=$groff_x_libdir 5172 break 5173 fi 5174 done 5175 fi 5176 5177 cd .. 5178 rm -f -r conftest.dir 5179 fi 5180 5181 # In case the test with `xmkmf' wasn't successful, try a suite of 5182 # standard directories. Check `X11' before `X11Rn' because it is often 5183 # a symlink to the current release. 5184 groff_x_libdirs=' 5185 /usr/X11/lib 5186 /usr/X11R6/lib 5187 /usr/X11R5/lib 5188 /usr/X11R4/lib 5189 5190 /usr/lib/X11 5191 /usr/lib/X11R6 5192 /usr/lib/X11R5 5193 /usr/lib/X11R4 5194 5195 /usr/local/X11/lib 5196 /usr/local/X11R6/lib 5197 /usr/local/X11R5/lib 5198 /usr/local/X11R4/lib 5199 5200 /usr/local/lib/X11 5201 /usr/local/lib/X11R6 5202 /usr/local/lib/X11R5 5203 /usr/local/lib/X11R4 5204 5205 /usr/X386/lib 5206 /usr/x386/lib 5207 /usr/XFree86/lib/X11 5208 5209 /usr/lib 5210 /usr/local/lib 5211 /usr/unsupported/lib 5212 /usr/athena/lib 5213 /usr/local/x11r5/lib 5214 /usr/lpp/Xamples/lib 5215 5216 /usr/openwin/lib 5217 /usr/openwin/share/lib' 5218 5219 if test -z "$groff_x_usrlibdir"; then 5220 # We only test whether libX11 exists. 5221 for groff_dir in $groff_x_libdirs; do 5222 for groff_extension in a so sl; do 5223 if test ! -r $groff_dir/libX11.$groff_extension; then 5224 groff_x_usrlibdir=$groff_dir 5225 break 2 5226 fi 5227 done 5228 done 5229 fi 5230 5231 if test "x$with_appresdir" = "x"; then 5232 appresdir=$groff_x_usrlibdir/X11/app-defaults 5233 else 5234 appresdir=$with_appresdir 5235 fi 5236 fi 5237 5238if test -z "$PSPRINT"; then 5239 for ac_prog in lpr 5240do 5241 # Extract the first word of "$ac_prog", so it can be a program name with args. 5242set dummy $ac_prog; ac_word=$2 5243echo "$as_me:$LINENO: checking for $ac_word" >&5 5244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5245if test "${ac_cv_prog_LPR+set}" = set; then 5246 echo $ECHO_N "(cached) $ECHO_C" >&6 5247else 5248 if test -n "$LPR"; then 5249 ac_cv_prog_LPR="$LPR" # Let the user override the test. 5250else 5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252for as_dir in $PATH 5253do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_exec_ext in '' $ac_executable_extensions; do 5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5258 ac_cv_prog_LPR="$ac_prog" 5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5260 break 2 5261 fi 5262done 5263done 5264 5265fi 5266fi 5267LPR=$ac_cv_prog_LPR 5268if test -n "$LPR"; then 5269 echo "$as_me:$LINENO: result: $LPR" >&5 5270echo "${ECHO_T}$LPR" >&6 5271else 5272 echo "$as_me:$LINENO: result: no" >&5 5273echo "${ECHO_T}no" >&6 5274fi 5275 5276 test -n "$LPR" && break 5277done 5278 5279 for ac_prog in lp 5280do 5281 # Extract the first word of "$ac_prog", so it can be a program name with args. 5282set dummy $ac_prog; ac_word=$2 5283echo "$as_me:$LINENO: checking for $ac_word" >&5 5284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5285if test "${ac_cv_prog_LP+set}" = set; then 5286 echo $ECHO_N "(cached) $ECHO_C" >&6 5287else 5288 if test -n "$LP"; then 5289 ac_cv_prog_LP="$LP" # Let the user override the test. 5290else 5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5292for as_dir in $PATH 5293do 5294 IFS=$as_save_IFS 5295 test -z "$as_dir" && as_dir=. 5296 for ac_exec_ext in '' $ac_executable_extensions; do 5297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5298 ac_cv_prog_LP="$ac_prog" 5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5300 break 2 5301 fi 5302done 5303done 5304 5305fi 5306fi 5307LP=$ac_cv_prog_LP 5308if test -n "$LP"; then 5309 echo "$as_me:$LINENO: result: $LP" >&5 5310echo "${ECHO_T}$LP" >&6 5311else 5312 echo "$as_me:$LINENO: result: no" >&5 5313echo "${ECHO_T}no" >&6 5314fi 5315 5316 test -n "$LP" && break 5317done 5318 5319 if test -n "$LPR" && test -n "$LP"; then 5320 # HP-UX provides an lpr command that emulates lpr using lp, 5321 # but it doesn't have lpq; in this case we want to use lp 5322 # rather than lpr. 5323 for ac_prog in lpq 5324do 5325 # Extract the first word of "$ac_prog", so it can be a program name with args. 5326set dummy $ac_prog; ac_word=$2 5327echo "$as_me:$LINENO: checking for $ac_word" >&5 5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5329if test "${ac_cv_prog_LPQ+set}" = set; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331else 5332 if test -n "$LPQ"; then 5333 ac_cv_prog_LPQ="$LPQ" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5342 ac_cv_prog_LPQ="$ac_prog" 5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347done 5348 5349fi 5350fi 5351LPQ=$ac_cv_prog_LPQ 5352if test -n "$LPQ"; then 5353 echo "$as_me:$LINENO: result: $LPQ" >&5 5354echo "${ECHO_T}$LPQ" >&6 5355else 5356 echo "$as_me:$LINENO: result: no" >&5 5357echo "${ECHO_T}no" >&6 5358fi 5359 5360 test -n "$LPQ" && break 5361done 5362 5363 test -n "$LPQ" || LPR= 5364 fi 5365 if test -n "$LPR"; then 5366 PSPRINT="$LPR" 5367 elif test -n "$LP"; then 5368 PSPRINT="$LP" 5369 fi 5370 fi 5371 5372 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5 5373echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6 5374 echo "$as_me:$LINENO: result: $PSPRINT" >&5 5375echo "${ECHO_T}$PSPRINT" >&6 5376 5377 # Figure out DVIPRINT from PSPRINT. 5378 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5 5379echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6 5380 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then 5381 if test "x$PSPRINT" = "xlpr"; then 5382 DVIPRINT="lpr -d" 5383 else 5384 DVIPRINT="$PSPRINT" 5385 fi 5386 fi 5387 5388 echo "$as_me:$LINENO: result: $DVIPRINT" >&5 5389echo "${ECHO_T}$DVIPRINT" >&6 5390# Extract the first word of "perl", so it can be a program name with args. 5391set dummy perl; ac_word=$2 5392echo "$as_me:$LINENO: checking for $ac_word" >&5 5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5394if test "${ac_cv_path_PERLPATH+set}" = set; then 5395 echo $ECHO_N "(cached) $ECHO_C" >&6 5396else 5397 case $PERLPATH in 5398 [\\/]* | ?:[\\/]*) 5399 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path. 5400 ;; 5401 *) 5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5403for as_dir in $PATH 5404do 5405 IFS=$as_save_IFS 5406 test -z "$as_dir" && as_dir=. 5407 for ac_exec_ext in '' $ac_executable_extensions; do 5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5409 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext" 5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5411 break 2 5412 fi 5413done 5414done 5415 5416 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl" 5417 ;; 5418esac 5419fi 5420PERLPATH=$ac_cv_path_PERLPATH 5421 5422if test -n "$PERLPATH"; then 5423 echo "$as_me:$LINENO: result: $PERLPATH" >&5 5424echo "${ECHO_T}$PERLPATH" >&6 5425else 5426 echo "$as_me:$LINENO: result: no" >&5 5427echo "${ECHO_T}no" >&6 5428fi 5429 5430for ac_prog in byacc 'bison -y' 5431do 5432 # Extract the first word of "$ac_prog", so it can be a program name with args. 5433set dummy $ac_prog; ac_word=$2 5434echo "$as_me:$LINENO: checking for $ac_word" >&5 5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5436if test "${ac_cv_prog_YACC+set}" = set; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438else 5439 if test -n "$YACC"; then 5440 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5441else 5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5443for as_dir in $PATH 5444do 5445 IFS=$as_save_IFS 5446 test -z "$as_dir" && as_dir=. 5447 for ac_exec_ext in '' $ac_executable_extensions; do 5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5449 ac_cv_prog_YACC="$ac_prog" 5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5451 break 2 5452 fi 5453done 5454done 5455 5456fi 5457fi 5458YACC=$ac_cv_prog_YACC 5459if test -n "$YACC"; then 5460 echo "$as_me:$LINENO: result: $YACC" >&5 5461echo "${ECHO_T}$YACC" >&6 5462else 5463 echo "$as_me:$LINENO: result: no" >&5 5464echo "${ECHO_T}no" >&6 5465fi 5466 5467 test -n "$YACC" && break 5468done 5469test -n "$YACC" || YACC="yacc" 5470 5471if test -n "$ac_tool_prefix"; then 5472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5473set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5474echo "$as_me:$LINENO: checking for $ac_word" >&5 5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5476if test "${ac_cv_prog_RANLIB+set}" = set; then 5477 echo $ECHO_N "(cached) $ECHO_C" >&6 5478else 5479 if test -n "$RANLIB"; then 5480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5481else 5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483for as_dir in $PATH 5484do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_exec_ext in '' $ac_executable_extensions; do 5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5491 break 2 5492 fi 5493done 5494done 5495 5496fi 5497fi 5498RANLIB=$ac_cv_prog_RANLIB 5499if test -n "$RANLIB"; then 5500 echo "$as_me:$LINENO: result: $RANLIB" >&5 5501echo "${ECHO_T}$RANLIB" >&6 5502else 5503 echo "$as_me:$LINENO: result: no" >&5 5504echo "${ECHO_T}no" >&6 5505fi 5506 5507fi 5508if test -z "$ac_cv_prog_RANLIB"; then 5509 ac_ct_RANLIB=$RANLIB 5510 # Extract the first word of "ranlib", so it can be a program name with args. 5511set dummy ranlib; ac_word=$2 5512echo "$as_me:$LINENO: checking for $ac_word" >&5 5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5514if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5515 echo $ECHO_N "(cached) $ECHO_C" >&6 5516else 5517 if test -n "$ac_ct_RANLIB"; then 5518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5519else 5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521for as_dir in $PATH 5522do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5527 ac_cv_prog_ac_ct_RANLIB="ranlib" 5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531done 5532done 5533 5534fi 5535fi 5536ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5537if test -n "$ac_ct_RANLIB"; then 5538 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5539echo "${ECHO_T}$ac_ct_RANLIB" >&6 5540else 5541 echo "$as_me:$LINENO: result: no" >&5 5542echo "${ECHO_T}no" >&6 5543fi 5544 5545 if test "x$ac_ct_RANLIB" = x; then 5546 RANLIB=":" 5547 else 5548 if test "$build" != "$host"; then 5549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5550whose name does not start with the host triplet. If you think this 5551configuration is useful to you, please write to autoconf@gnu.org." >&5 5552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5553whose name does not start with the host triplet. If you think this 5554configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5555 fi 5556 RANLIB=$ac_ct_RANLIB 5557 fi 5558else 5559 RANLIB="$ac_cv_prog_RANLIB" 5560fi 5561 5562ac_aux_dir= 5563for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 5564 if test -f $ac_dir/install-sh; then 5565 ac_aux_dir=$ac_dir 5566 ac_install_sh="$ac_aux_dir/install-sh -c" 5567 break 5568 elif test -f $ac_dir/install.sh; then 5569 ac_aux_dir=$ac_dir 5570 ac_install_sh="$ac_aux_dir/install.sh -c" 5571 break 5572 elif test -f $ac_dir/shtool; then 5573 ac_aux_dir=$ac_dir 5574 ac_install_sh="$ac_aux_dir/shtool install -c" 5575 break 5576 fi 5577done 5578if test -z "$ac_aux_dir"; then 5579 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 5580echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 5581 { (exit 1); exit 1; }; } 5582fi 5583ac_config_guess="$SHELL $ac_aux_dir/config.guess" 5584ac_config_sub="$SHELL $ac_aux_dir/config.sub" 5585ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 5586 5587 5588 ac_dir=`cd $ac_aux_dir; pwd` 5589 ac_install_sh="$ac_dir/install-sh -c" 5590for ac_prog in install-info 5591do 5592 # Extract the first word of "$ac_prog", so it can be a program name with args. 5593set dummy $ac_prog; ac_word=$2 5594echo "$as_me:$LINENO: checking for $ac_word" >&5 5595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5596if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then 5597 echo $ECHO_N "(cached) $ECHO_C" >&6 5598else 5599 if test -n "$INSTALL_INFO"; then 5600 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test. 5601else 5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_exec_ext in '' $ac_executable_extensions; do 5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5609 ac_cv_prog_INSTALL_INFO="$ac_prog" 5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5611 break 2 5612 fi 5613done 5614done 5615 5616fi 5617fi 5618INSTALL_INFO=$ac_cv_prog_INSTALL_INFO 5619if test -n "$INSTALL_INFO"; then 5620 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5621echo "${ECHO_T}$INSTALL_INFO" >&6 5622else 5623 echo "$as_me:$LINENO: result: no" >&5 5624echo "${ECHO_T}no" >&6 5625fi 5626 5627 test -n "$INSTALL_INFO" && break 5628done 5629test -n "$INSTALL_INFO" || INSTALL_INFO=":" 5630 5631# Find a good install program. We prefer a C program (faster), 5632# so one script is as good as another. But avoid the broken or 5633# incompatible versions: 5634# SysV /etc/install, /usr/sbin/install 5635# SunOS /usr/etc/install 5636# IRIX /sbin/install 5637# AIX /bin/install 5638# AmigaOS /C/install, which installs bootblocks on floppy discs 5639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5640# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5642# OS/2's system install, which has a completely different semantic 5643# ./install, which can be erroneously created by make from ./install.sh. 5644echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 5645echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 5646if test -z "$INSTALL"; then 5647if test "${ac_cv_path_install+set}" = set; then 5648 echo $ECHO_N "(cached) $ECHO_C" >&6 5649else 5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 # Account for people who put trailing slashes in PATH elements. 5656case $as_dir/ in 5657 ./ | .// | /cC/* | \ 5658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5659 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 5660 /usr/ucb/* ) ;; 5661 *) 5662 # OSF1 and SCO ODT 3.0 have their own names for install. 5663 # Don't use installbsd from OSF since it installs stuff as root 5664 # by default. 5665 for ac_prog in ginstall scoinst install; do 5666 for ac_exec_ext in '' $ac_executable_extensions; do 5667 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5668 if test $ac_prog = install && 5669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5670 # AIX install. It has an incompatible calling convention. 5671 : 5672 elif test $ac_prog = install && 5673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5674 # program-specific install script used by HP pwplus--don't use. 5675 : 5676 else 5677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5678 break 3 5679 fi 5680 fi 5681 done 5682 done 5683 ;; 5684esac 5685done 5686 5687 5688fi 5689 if test "${ac_cv_path_install+set}" = set; then 5690 INSTALL=$ac_cv_path_install 5691 else 5692 # As a last resort, use the slow shell script. Don't cache a 5693 # value for INSTALL within a source directory, because that will 5694 # break other packages using the cache if that directory is 5695 # removed, or if the value is a relative name. 5696 INSTALL=$ac_install_sh 5697 fi 5698fi 5699echo "$as_me:$LINENO: result: $INSTALL" >&5 5700echo "${ECHO_T}$INSTALL" >&6 5701 5702# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5703# It thinks the first close brace ends the variable substitution. 5704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5705 5706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5707 5708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5709 5710echo "$as_me:$LINENO: checking whether ln -s works" >&5 5711echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 5712LN_S=$as_ln_s 5713if test "$LN_S" = "ln -s"; then 5714 echo "$as_me:$LINENO: result: yes" >&5 5715echo "${ECHO_T}yes" >&6 5716else 5717 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5718echo "${ECHO_T}no, using $LN_S" >&6 5719fi 5720 5721 5722# use a dummy substitution if no csh hack is necessary to avoid errors 5723# with non-GNU sed programs 5724echo "$as_me:$LINENO: checking for csh hash hack" >&5 5725echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6 5726 5727cat <<EOF >conftest.sh 5728#! /bin/sh 5729true || exit 0 5730export PATH || exit 0 5731exit 1 5732EOF 5733 5734 chmod +x conftest.sh 5735 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then 5736 echo "$as_me:$LINENO: result: yes" >&5 5737echo "${ECHO_T}yes" >&6 5738 SH_SCRIPT_SED_CMD='1s/.*/:/' 5739 else 5740 echo "$as_me:$LINENO: result: no" >&5 5741echo "${ECHO_T}no" >&6 5742 SH_SCRIPT_SED_CMD='1s/a/a/' 5743 fi 5744 rm -f conftest.sh 5745 5746 5747# checks for headers 5748echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5749echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6 5750if test "${ac_cv_path_GREP+set}" = set; then 5751 echo $ECHO_N "(cached) $ECHO_C" >&6 5752else 5753 # Extract the first word of "grep ggrep" to use in msg output 5754if test -z "$GREP"; then 5755set dummy grep ggrep; ac_prog_name=$2 5756if test "${ac_cv_path_GREP+set}" = set; then 5757 echo $ECHO_N "(cached) $ECHO_C" >&6 5758else 5759 # Create a temporary directory, and hook for its removal unless debugging. 5760$debug || 5761{ 5762 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0 5763 trap '{ (exit 1); exit 1; }' 1 2 13 15 5764} 5765 5766# Create a (secure) tmp directory for tmp files. 5767: ${TMPDIR=/tmp} 5768{ 5769 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` && 5770 test -n "$tmp" && test -d "$tmp" 5771} || 5772{ 5773 tmp=$TMPDIR/GREP$$-$RANDOM 5774 (umask 077 && mkdir $tmp) 5775} || 5776{ 5777 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5778 { (exit 1); exit 1; } 5779} 5780ac_path_GREP_found=false 5781# Loop through the user's path and test for each of PROGNAME-LIST 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783as_dummy="$PATH:/usr/xpg4/bin" 5784for as_dir in $as_dummy 5785do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_prog in grep ggrep; do 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5791 test -f "$ac_path_GREP" || continue 5792 $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then 5793 # Check for GNU ac_path_GREP and select it if it is found. 5794 # Check for GNU $ac_path_GREP 5795if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then 5796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=: 5797else 5798 ac_count=0 5799 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in" 5800 while : 5801 do 5802 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp" 5803 mv "$tmp/conftest.tmp" "$tmp/conftest.in" 5804 cp "$tmp/conftest.in" "$tmp/conftest.nl" 5805 echo 'GREP' >> "$tmp/conftest.nl" 5806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break 5807 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break 5808 ac_count=`expr $ac_count + 1` 5809 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5810 # Best one so far, save it but keep looking for a better one 5811 ac_cv_path_GREP="$ac_path_GREP" 5812 ac_path_GREP_max=$ac_count 5813 fi 5814 # 10*(2^10) chars as input seems more than enough 5815 test $ac_count -gt 10 && break 5816 done 5817fi 5818 5819fi 5820 5821 $ac_path_GREP_found && break 3 5822 done 5823done 5824 5825done 5826 5827rm -rf "$tmp" 5828 5829fi 5830 5831GREP="$ac_cv_path_GREP" 5832if test -z "$GREP"; then 5833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5 5834echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;} 5835 { (exit 1); exit 1; }; } 5836fi 5837 5838fi 5839 5840 5841fi 5842echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5843echo "${ECHO_T}$ac_cv_path_GREP" >&6 5844 GREP="$ac_cv_path_GREP" 5845 5846 5847echo "$as_me:$LINENO: checking for egrep" >&5 5848echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5849if test "${ac_cv_path_EGREP+set}" = set; then 5850 echo $ECHO_N "(cached) $ECHO_C" >&6 5851else 5852 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1 5853 then ac_cv_path_EGREP="$GREP -E" 5854 else 5855 # Extract the first word of "egrep" to use in msg output 5856if test -z "$EGREP"; then 5857set dummy egrep; ac_prog_name=$2 5858if test "${ac_cv_path_EGREP+set}" = set; then 5859 echo $ECHO_N "(cached) $ECHO_C" >&6 5860else 5861 # Create a temporary directory, and hook for its removal unless debugging. 5862$debug || 5863{ 5864 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0 5865 trap '{ (exit 1); exit 1; }' 1 2 13 15 5866} 5867 5868# Create a (secure) tmp directory for tmp files. 5869: ${TMPDIR=/tmp} 5870{ 5871 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` && 5872 test -n "$tmp" && test -d "$tmp" 5873} || 5874{ 5875 tmp=$TMPDIR/EGREP$$-$RANDOM 5876 (umask 077 && mkdir $tmp) 5877} || 5878{ 5879 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5880 { (exit 1); exit 1; } 5881} 5882ac_path_EGREP_found=false 5883# Loop through the user's path and test for each of PROGNAME-LIST 5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5885as_dummy="$PATH:/usr/xpg4/bin" 5886for as_dir in $as_dummy 5887do 5888 IFS=$as_save_IFS 5889 test -z "$as_dir" && as_dir=. 5890 for ac_prog in egrep; do 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5893 test -f "$ac_path_EGREP" || continue 5894 $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then 5895 # Check for GNU ac_path_EGREP and select it if it is found. 5896 # Check for GNU $ac_path_EGREP 5897if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then 5898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=: 5899else 5900 ac_count=0 5901 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in" 5902 while : 5903 do 5904 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp" 5905 mv "$tmp/conftest.tmp" "$tmp/conftest.in" 5906 cp "$tmp/conftest.in" "$tmp/conftest.nl" 5907 echo 'EGREP' >> "$tmp/conftest.nl" 5908 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break 5909 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break 5910 ac_count=`expr $ac_count + 1` 5911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5912 # Best one so far, save it but keep looking for a better one 5913 ac_cv_path_EGREP="$ac_path_EGREP" 5914 ac_path_EGREP_max=$ac_count 5915 fi 5916 # 10*(2^10) chars as input seems more than enough 5917 test $ac_count -gt 10 && break 5918 done 5919fi 5920 5921fi 5922 5923 $ac_path_EGREP_found && break 3 5924 done 5925done 5926 5927done 5928 5929rm -rf "$tmp" 5930 5931fi 5932 5933EGREP="$ac_cv_path_EGREP" 5934if test -z "$EGREP"; then 5935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5 5936echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;} 5937 { (exit 1); exit 1; }; } 5938fi 5939 5940fi 5941 5942 5943 fi 5944fi 5945echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5946echo "${ECHO_T}$ac_cv_path_EGREP" >&6 5947 EGREP="$ac_cv_path_EGREP" 5948 5949 5950echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5952if test "${ac_cv_header_stdc+set}" = set; then 5953 echo $ECHO_N "(cached) $ECHO_C" >&6 5954else 5955 cat >conftest.$ac_ext <<_ACEOF 5956/* confdefs.h. */ 5957_ACEOF 5958cat confdefs.h >>conftest.$ac_ext 5959cat >>conftest.$ac_ext <<_ACEOF 5960/* end confdefs.h. */ 5961#include <stdlib.h> 5962#include <stdarg.h> 5963#include <string.h> 5964#include <float.h> 5965 5966int 5967main () 5968{ 5969 5970 ; 5971 return 0; 5972} 5973_ACEOF 5974rm -f conftest.$ac_objext 5975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5976 (eval $ac_compile) 2>conftest.er1 5977 ac_status=$? 5978 grep -v '^ *+' conftest.er1 >conftest.err 5979 rm -f conftest.er1 5980 cat conftest.err >&5 5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5982 (exit $ac_status); } && 5983 { ac_try='test -z "$ac_c_werror_flag" 5984 || test ! -s conftest.err' 5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5986 (eval $ac_try) 2>&5 5987 ac_status=$? 5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5989 (exit $ac_status); }; } && 5990 { ac_try='test -s conftest.$ac_objext' 5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5992 (eval $ac_try) 2>&5 5993 ac_status=$? 5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5995 (exit $ac_status); }; }; then 5996 ac_cv_header_stdc=yes 5997else 5998 echo "$as_me: failed program was:" >&5 5999sed 's/^/| /' conftest.$ac_ext >&5 6000 6001ac_cv_header_stdc=no 6002fi 6003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6004 6005if test $ac_cv_header_stdc = yes; then 6006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6007 cat >conftest.$ac_ext <<_ACEOF 6008/* confdefs.h. */ 6009_ACEOF 6010cat confdefs.h >>conftest.$ac_ext 6011cat >>conftest.$ac_ext <<_ACEOF 6012/* end confdefs.h. */ 6013#include <string.h> 6014 6015_ACEOF 6016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6017 $EGREP "memchr" >/dev/null 2>&1; then 6018 : 6019else 6020 ac_cv_header_stdc=no 6021fi 6022rm -f conftest* 6023 6024fi 6025 6026if test $ac_cv_header_stdc = yes; then 6027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6028 cat >conftest.$ac_ext <<_ACEOF 6029/* confdefs.h. */ 6030_ACEOF 6031cat confdefs.h >>conftest.$ac_ext 6032cat >>conftest.$ac_ext <<_ACEOF 6033/* end confdefs.h. */ 6034#include <stdlib.h> 6035 6036_ACEOF 6037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6038 $EGREP "free" >/dev/null 2>&1; then 6039 : 6040else 6041 ac_cv_header_stdc=no 6042fi 6043rm -f conftest* 6044 6045fi 6046 6047if test $ac_cv_header_stdc = yes; then 6048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6049 if test "$cross_compiling" = yes; then 6050 : 6051else 6052 cat >conftest.$ac_ext <<_ACEOF 6053/* confdefs.h. */ 6054_ACEOF 6055cat confdefs.h >>conftest.$ac_ext 6056cat >>conftest.$ac_ext <<_ACEOF 6057/* end confdefs.h. */ 6058#include <ctype.h> 6059#include <stdlib.h> 6060#if ((' ' & 0x0FF) == 0x020) 6061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6063#else 6064# define ISLOWER(c) \ 6065 (('a' <= (c) && (c) <= 'i') \ 6066 || ('j' <= (c) && (c) <= 'r') \ 6067 || ('s' <= (c) && (c) <= 'z')) 6068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6069#endif 6070 6071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6072int 6073main () 6074{ 6075 int i; 6076 for (i = 0; i < 256; i++) 6077 if (XOR (islower (i), ISLOWER (i)) 6078 || toupper (i) != TOUPPER (i)) 6079 exit (2); 6080 exit (0); 6081} 6082_ACEOF 6083rm -f conftest$ac_exeext 6084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6085 (eval $ac_link) 2>&5 6086 ac_status=$? 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6090 (eval $ac_try) 2>&5 6091 ac_status=$? 6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6093 (exit $ac_status); }; }; then 6094 : 6095else 6096 echo "$as_me: program exited with status $ac_status" >&5 6097echo "$as_me: failed program was:" >&5 6098sed 's/^/| /' conftest.$ac_ext >&5 6099 6100( exit $ac_status ) 6101ac_cv_header_stdc=no 6102fi 6103rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6104fi 6105fi 6106fi 6107echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6108echo "${ECHO_T}$ac_cv_header_stdc" >&6 6109if test $ac_cv_header_stdc = yes; then 6110 6111cat >>confdefs.h <<\_ACEOF 6112#define STDC_HEADERS 1 6113_ACEOF 6114 6115fi 6116 6117# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6128 inttypes.h stdint.h unistd.h 6129do 6130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6131echo "$as_me:$LINENO: checking for $ac_header" >&5 6132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6133if eval "test \"\${$as_ac_Header+set}\" = set"; then 6134 echo $ECHO_N "(cached) $ECHO_C" >&6 6135else 6136 cat >conftest.$ac_ext <<_ACEOF 6137/* confdefs.h. */ 6138_ACEOF 6139cat confdefs.h >>conftest.$ac_ext 6140cat >>conftest.$ac_ext <<_ACEOF 6141/* end confdefs.h. */ 6142$ac_includes_default 6143 6144#include <$ac_header> 6145_ACEOF 6146rm -f conftest.$ac_objext 6147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6148 (eval $ac_compile) 2>conftest.er1 6149 ac_status=$? 6150 grep -v '^ *+' conftest.er1 >conftest.err 6151 rm -f conftest.er1 6152 cat conftest.err >&5 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); } && 6155 { ac_try='test -z "$ac_c_werror_flag" 6156 || test ! -s conftest.err' 6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6158 (eval $ac_try) 2>&5 6159 ac_status=$? 6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 (exit $ac_status); }; } && 6162 { ac_try='test -s conftest.$ac_objext' 6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6164 (eval $ac_try) 2>&5 6165 ac_status=$? 6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); }; }; then 6168 eval "$as_ac_Header=yes" 6169else 6170 echo "$as_me: failed program was:" >&5 6171sed 's/^/| /' conftest.$ac_ext >&5 6172 6173eval "$as_ac_Header=no" 6174fi 6175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6176fi 6177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6179if test `eval echo '${'$as_ac_Header'}'` = yes; then 6180 cat >>confdefs.h <<_ACEOF 6181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6182_ACEOF 6183 6184fi 6185 6186done 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \ 6201 string.h strings.h math.h sys/time.h direct.h process.h 6202do 6203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6204if eval "test \"\${$as_ac_Header+set}\" = set"; then 6205 echo "$as_me:$LINENO: checking for $ac_header" >&5 6206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6207if eval "test \"\${$as_ac_Header+set}\" = set"; then 6208 echo $ECHO_N "(cached) $ECHO_C" >&6 6209fi 6210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6212else 6213 # Is the header compilable? 6214echo "$as_me:$LINENO: checking $ac_header usability" >&5 6215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6216cat >conftest.$ac_ext <<_ACEOF 6217/* confdefs.h. */ 6218_ACEOF 6219cat confdefs.h >>conftest.$ac_ext 6220cat >>conftest.$ac_ext <<_ACEOF 6221/* end confdefs.h. */ 6222$ac_includes_default 6223#include <$ac_header> 6224_ACEOF 6225rm -f conftest.$ac_objext 6226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6227 (eval $ac_compile) 2>conftest.er1 6228 ac_status=$? 6229 grep -v '^ *+' conftest.er1 >conftest.err 6230 rm -f conftest.er1 6231 cat conftest.err >&5 6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6233 (exit $ac_status); } && 6234 { ac_try='test -z "$ac_c_werror_flag" 6235 || test ! -s conftest.err' 6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6237 (eval $ac_try) 2>&5 6238 ac_status=$? 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6240 (exit $ac_status); }; } && 6241 { ac_try='test -s conftest.$ac_objext' 6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6243 (eval $ac_try) 2>&5 6244 ac_status=$? 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); }; }; then 6247 ac_header_compiler=yes 6248else 6249 echo "$as_me: failed program was:" >&5 6250sed 's/^/| /' conftest.$ac_ext >&5 6251 6252ac_header_compiler=no 6253fi 6254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6256echo "${ECHO_T}$ac_header_compiler" >&6 6257 6258# Is the header present? 6259echo "$as_me:$LINENO: checking $ac_header presence" >&5 6260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6261cat >conftest.$ac_ext <<_ACEOF 6262/* confdefs.h. */ 6263_ACEOF 6264cat confdefs.h >>conftest.$ac_ext 6265cat >>conftest.$ac_ext <<_ACEOF 6266/* end confdefs.h. */ 6267#include <$ac_header> 6268_ACEOF 6269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6271 ac_status=$? 6272 grep -v '^ *+' conftest.er1 >conftest.err 6273 rm -f conftest.er1 6274 cat conftest.err >&5 6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 (exit $ac_status); } >/dev/null; then 6277 if test -s conftest.err; then 6278 ac_cpp_err=$ac_c_preproc_warn_flag 6279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6280 else 6281 ac_cpp_err= 6282 fi 6283else 6284 ac_cpp_err=yes 6285fi 6286if test -z "$ac_cpp_err"; then 6287 ac_header_preproc=yes 6288else 6289 echo "$as_me: failed program was:" >&5 6290sed 's/^/| /' conftest.$ac_ext >&5 6291 6292 ac_header_preproc=no 6293fi 6294rm -f conftest.err conftest.$ac_ext 6295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6296echo "${ECHO_T}$ac_header_preproc" >&6 6297 6298# So? What about this header? 6299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6300 yes:no: ) 6301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6305 ac_header_preproc=yes 6306 ;; 6307 no:yes:* ) 6308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6320 ( 6321 cat <<\_ASBOX 6322## ------------------------------------------ ## 6323## Report this to the AC_PACKAGE_NAME lists. ## 6324## ------------------------------------------ ## 6325_ASBOX 6326 ) | 6327 sed "s/^/$as_me: WARNING: /" >&2 6328 ;; 6329esac 6330echo "$as_me:$LINENO: checking for $ac_header" >&5 6331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6332if eval "test \"\${$as_ac_Header+set}\" = set"; then 6333 echo $ECHO_N "(cached) $ECHO_C" >&6 6334else 6335 eval "$as_ac_Header=\$ac_header_preproc" 6336fi 6337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6339 6340fi 6341if test `eval echo '${'$as_ac_Header'}'` = yes; then 6342 cat >>confdefs.h <<_ACEOF 6343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6344_ACEOF 6345 6346fi 6347 6348done 6349 6350echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5 6351echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6 6352 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1 6353 then 6354 echo "$as_me:$LINENO: result: yes" >&5 6355echo "${ECHO_T}yes" >&6 6356 6357cat >>confdefs.h <<\_ACEOF 6358#define _SYSV3 1 6359_ACEOF 6360 6361 else 6362 echo "$as_me:$LINENO: result: no" >&5 6363echo "${ECHO_T}no" >&6 6364 fi 6365echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5 6366echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6 6367 ac_ext=cc 6368ac_cpp='$CXXCPP $CPPFLAGS' 6369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6372 6373 cat >conftest.$ac_ext <<_ACEOF 6374 6375 /* confdefs.h. */ 6376_ACEOF 6377cat confdefs.h >>conftest.$ac_ext 6378cat >>conftest.$ac_ext <<_ACEOF 6379/* end confdefs.h. */ 6380 6381 6382#include <stdio.h> 6383extern "C" { void fileno(int); } 6384 6385 6386int 6387main () 6388{ 6389 6390 ; 6391 return 0; 6392} 6393 6394_ACEOF 6395rm -f conftest.$ac_objext 6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6397 (eval $ac_compile) 2>conftest.er1 6398 ac_status=$? 6399 grep -v '^ *+' conftest.er1 >conftest.err 6400 rm -f conftest.er1 6401 cat conftest.err >&5 6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } && 6404 { ac_try='test -z "$ac_cxx_werror_flag" 6405 || test ! -s conftest.err' 6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6407 (eval $ac_try) 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; } && 6411 { ac_try='test -s conftest.$ac_objext' 6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6413 (eval $ac_try) 2>&5 6414 ac_status=$? 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416 (exit $ac_status); }; }; then 6417 echo "$as_me:$LINENO: result: yes" >&5 6418echo "${ECHO_T}yes" >&6 6419 6420cat >>confdefs.h <<\_ACEOF 6421#define _POSIX_SOURCE 1 6422_ACEOF 6423 6424else 6425 echo "$as_me: failed program was:" >&5 6426sed 's/^/| /' conftest.$ac_ext >&5 6427 6428echo "$as_me:$LINENO: result: no" >&5 6429echo "${ECHO_T}no" >&6 6430fi 6431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6432 ac_ext=c 6433ac_cpp='$CPP $CPPFLAGS' 6434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6436ac_compiler_gnu=$ac_cv_c_compiler_gnu 6437 6438 6439# checks for header stuff 6440ac_ext=cc 6441ac_cpp='$CXXCPP $CPPFLAGS' 6442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6445 6446 echo "$as_me:$LINENO: checking for return type of srand" >&5 6447echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6 6448 cat >conftest.$ac_ext <<_ACEOF 6449 6450 /* confdefs.h. */ 6451_ACEOF 6452cat confdefs.h >>conftest.$ac_ext 6453cat >>conftest.$ac_ext <<_ACEOF 6454/* end confdefs.h. */ 6455 6456 6457#include <stdlib.h> 6458extern "C" { void srand(unsigned int); } 6459 6460 6461int 6462main () 6463{ 6464 6465 ; 6466 return 0; 6467} 6468 6469_ACEOF 6470rm -f conftest.$ac_objext 6471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6472 (eval $ac_compile) 2>conftest.er1 6473 ac_status=$? 6474 grep -v '^ *+' conftest.er1 >conftest.err 6475 rm -f conftest.er1 6476 cat conftest.err >&5 6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6478 (exit $ac_status); } && 6479 { ac_try='test -z "$ac_cxx_werror_flag" 6480 || test ! -s conftest.err' 6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6482 (eval $ac_try) 2>&5 6483 ac_status=$? 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); }; } && 6486 { ac_try='test -s conftest.$ac_objext' 6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 (eval $ac_try) 2>&5 6489 ac_status=$? 6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 (exit $ac_status); }; }; then 6492 echo "$as_me:$LINENO: result: void" >&5 6493echo "${ECHO_T}void" >&6 6494 6495cat >>confdefs.h <<\_ACEOF 6496#define RET_TYPE_SRAND_IS_VOID 1 6497_ACEOF 6498 6499else 6500 echo "$as_me: failed program was:" >&5 6501sed 's/^/| /' conftest.$ac_ext >&5 6502 6503echo "$as_me:$LINENO: result: int" >&5 6504echo "${ECHO_T}int" >&6 6505fi 6506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6507 ac_ext=c 6508ac_cpp='$CPP $CPPFLAGS' 6509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6511ac_compiler_gnu=$ac_cv_c_compiler_gnu 6512 6513echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5 6514echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6 6515 ac_ext=cc 6516ac_cpp='$CXXCPP $CPPFLAGS' 6517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6520 6521 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then 6522 echo $ECHO_N "(cached) $ECHO_C" >&6 6523else 6524 cat >conftest.$ac_ext <<_ACEOF 6525 6526 /* confdefs.h. */ 6527_ACEOF 6528cat confdefs.h >>conftest.$ac_ext 6529cat >>conftest.$ac_ext <<_ACEOF 6530/* end confdefs.h. */ 6531 6532 6533#include <stdio.h> 6534#ifdef HAVE_STRING_H 6535#include <string.h> 6536#endif 6537#ifdef HAVE_STRINGS_H 6538#include <strings.h> 6539#endif 6540#ifdef HAVE_STDLIB_H 6541#include <stdlib.h> 6542#endif 6543#ifdef HAVE_SYS_TIME_H 6544#include <sys/time.h> 6545#endif 6546#ifdef HAVE_UNISTD_H 6547#include <unistd.h> 6548#endif 6549#ifdef HAVE_MATH_H 6550#include <math.h> 6551#endif 6552 6553 6554int 6555main () 6556{ 6557 6558 6559#ifndef gettimeofday 6560 char *p = (char *) gettimeofday; 6561#endif 6562 6563 6564 ; 6565 return 0; 6566} 6567 6568_ACEOF 6569rm -f conftest.$ac_objext 6570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6571 (eval $ac_compile) 2>conftest.er1 6572 ac_status=$? 6573 grep -v '^ *+' conftest.er1 >conftest.err 6574 rm -f conftest.er1 6575 cat conftest.err >&5 6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 (exit $ac_status); } && 6578 { ac_try='test -z "$ac_cxx_werror_flag" 6579 || test ! -s conftest.err' 6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6581 (eval $ac_try) 2>&5 6582 ac_status=$? 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6584 (exit $ac_status); }; } && 6585 { ac_try='test -s conftest.$ac_objext' 6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6587 (eval $ac_try) 2>&5 6588 ac_status=$? 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); }; }; then 6591 groff_cv_decl_needed_gettimeofday=no 6592else 6593 echo "$as_me: failed program was:" >&5 6594sed 's/^/| /' conftest.$ac_ext >&5 6595 6596groff_cv_decl_needed_gettimeofday=yes 6597fi 6598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6599fi 6600 6601 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5 6602echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6 6603 if test $groff_cv_decl_needed_gettimeofday = yes; then 6604 6605cat >>confdefs.h <<\_ACEOF 6606#define NEED_DECLARATION_GETTIMEOFDAY 1 6607_ACEOF 6608 6609 fi 6610 ac_ext=c 6611ac_cpp='$CPP $CPPFLAGS' 6612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6614ac_compiler_gnu=$ac_cv_c_compiler_gnu 6615 6616echo "$as_me:$LINENO: checking whether hypot must be declared" >&5 6617echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6 6618 ac_ext=cc 6619ac_cpp='$CXXCPP $CPPFLAGS' 6620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6623 6624 if test "${groff_cv_decl_needed_hypot+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626else 6627 cat >conftest.$ac_ext <<_ACEOF 6628 6629 /* confdefs.h. */ 6630_ACEOF 6631cat confdefs.h >>conftest.$ac_ext 6632cat >>conftest.$ac_ext <<_ACEOF 6633/* end confdefs.h. */ 6634 6635 6636#include <stdio.h> 6637#ifdef HAVE_STRING_H 6638#include <string.h> 6639#endif 6640#ifdef HAVE_STRINGS_H 6641#include <strings.h> 6642#endif 6643#ifdef HAVE_STDLIB_H 6644#include <stdlib.h> 6645#endif 6646#ifdef HAVE_SYS_TIME_H 6647#include <sys/time.h> 6648#endif 6649#ifdef HAVE_UNISTD_H 6650#include <unistd.h> 6651#endif 6652#ifdef HAVE_MATH_H 6653#include <math.h> 6654#endif 6655 6656 6657int 6658main () 6659{ 6660 6661 6662#ifndef hypot 6663 char *p = (char *) hypot; 6664#endif 6665 6666 6667 ; 6668 return 0; 6669} 6670 6671_ACEOF 6672rm -f conftest.$ac_objext 6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6674 (eval $ac_compile) 2>conftest.er1 6675 ac_status=$? 6676 grep -v '^ *+' conftest.er1 >conftest.err 6677 rm -f conftest.er1 6678 cat conftest.err >&5 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); } && 6681 { ac_try='test -z "$ac_cxx_werror_flag" 6682 || test ! -s conftest.err' 6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6684 (eval $ac_try) 2>&5 6685 ac_status=$? 6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); }; } && 6688 { ac_try='test -s conftest.$ac_objext' 6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6690 (eval $ac_try) 2>&5 6691 ac_status=$? 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); }; }; then 6694 groff_cv_decl_needed_hypot=no 6695else 6696 echo "$as_me: failed program was:" >&5 6697sed 's/^/| /' conftest.$ac_ext >&5 6698 6699groff_cv_decl_needed_hypot=yes 6700fi 6701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6702fi 6703 6704 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5 6705echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6 6706 if test $groff_cv_decl_needed_hypot = yes; then 6707 6708cat >>confdefs.h <<\_ACEOF 6709#define NEED_DECLARATION_HYPOT 1 6710_ACEOF 6711 6712 fi 6713 ac_ext=c 6714ac_cpp='$CPP $CPPFLAGS' 6715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6717ac_compiler_gnu=$ac_cv_c_compiler_gnu 6718 6719echo "$as_me:$LINENO: checking whether popen must be declared" >&5 6720echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6 6721 ac_ext=cc 6722ac_cpp='$CXXCPP $CPPFLAGS' 6723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6726 6727 if test "${groff_cv_decl_needed_popen+set}" = set; then 6728 echo $ECHO_N "(cached) $ECHO_C" >&6 6729else 6730 cat >conftest.$ac_ext <<_ACEOF 6731 6732 /* confdefs.h. */ 6733_ACEOF 6734cat confdefs.h >>conftest.$ac_ext 6735cat >>conftest.$ac_ext <<_ACEOF 6736/* end confdefs.h. */ 6737 6738 6739#include <stdio.h> 6740#ifdef HAVE_STRING_H 6741#include <string.h> 6742#endif 6743#ifdef HAVE_STRINGS_H 6744#include <strings.h> 6745#endif 6746#ifdef HAVE_STDLIB_H 6747#include <stdlib.h> 6748#endif 6749#ifdef HAVE_SYS_TIME_H 6750#include <sys/time.h> 6751#endif 6752#ifdef HAVE_UNISTD_H 6753#include <unistd.h> 6754#endif 6755#ifdef HAVE_MATH_H 6756#include <math.h> 6757#endif 6758 6759 6760int 6761main () 6762{ 6763 6764 6765#ifndef popen 6766 char *p = (char *) popen; 6767#endif 6768 6769 6770 ; 6771 return 0; 6772} 6773 6774_ACEOF 6775rm -f conftest.$ac_objext 6776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6777 (eval $ac_compile) 2>conftest.er1 6778 ac_status=$? 6779 grep -v '^ *+' conftest.er1 >conftest.err 6780 rm -f conftest.er1 6781 cat conftest.err >&5 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); } && 6784 { ac_try='test -z "$ac_cxx_werror_flag" 6785 || test ! -s conftest.err' 6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6787 (eval $ac_try) 2>&5 6788 ac_status=$? 6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6790 (exit $ac_status); }; } && 6791 { ac_try='test -s conftest.$ac_objext' 6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6793 (eval $ac_try) 2>&5 6794 ac_status=$? 6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6796 (exit $ac_status); }; }; then 6797 groff_cv_decl_needed_popen=no 6798else 6799 echo "$as_me: failed program was:" >&5 6800sed 's/^/| /' conftest.$ac_ext >&5 6801 6802groff_cv_decl_needed_popen=yes 6803fi 6804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6805fi 6806 6807 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5 6808echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6 6809 if test $groff_cv_decl_needed_popen = yes; then 6810 6811cat >>confdefs.h <<\_ACEOF 6812#define NEED_DECLARATION_POPEN 1 6813_ACEOF 6814 6815 fi 6816 ac_ext=c 6817ac_cpp='$CPP $CPPFLAGS' 6818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6820ac_compiler_gnu=$ac_cv_c_compiler_gnu 6821 6822echo "$as_me:$LINENO: checking whether pclose must be declared" >&5 6823echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6 6824 ac_ext=cc 6825ac_cpp='$CXXCPP $CPPFLAGS' 6826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6829 6830 if test "${groff_cv_decl_needed_pclose+set}" = set; then 6831 echo $ECHO_N "(cached) $ECHO_C" >&6 6832else 6833 cat >conftest.$ac_ext <<_ACEOF 6834 6835 /* confdefs.h. */ 6836_ACEOF 6837cat confdefs.h >>conftest.$ac_ext 6838cat >>conftest.$ac_ext <<_ACEOF 6839/* end confdefs.h. */ 6840 6841 6842#include <stdio.h> 6843#ifdef HAVE_STRING_H 6844#include <string.h> 6845#endif 6846#ifdef HAVE_STRINGS_H 6847#include <strings.h> 6848#endif 6849#ifdef HAVE_STDLIB_H 6850#include <stdlib.h> 6851#endif 6852#ifdef HAVE_SYS_TIME_H 6853#include <sys/time.h> 6854#endif 6855#ifdef HAVE_UNISTD_H 6856#include <unistd.h> 6857#endif 6858#ifdef HAVE_MATH_H 6859#include <math.h> 6860#endif 6861 6862 6863int 6864main () 6865{ 6866 6867 6868#ifndef pclose 6869 char *p = (char *) pclose; 6870#endif 6871 6872 6873 ; 6874 return 0; 6875} 6876 6877_ACEOF 6878rm -f conftest.$ac_objext 6879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6880 (eval $ac_compile) 2>conftest.er1 6881 ac_status=$? 6882 grep -v '^ *+' conftest.er1 >conftest.err 6883 rm -f conftest.er1 6884 cat conftest.err >&5 6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6886 (exit $ac_status); } && 6887 { ac_try='test -z "$ac_cxx_werror_flag" 6888 || test ! -s conftest.err' 6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6890 (eval $ac_try) 2>&5 6891 ac_status=$? 6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6893 (exit $ac_status); }; } && 6894 { ac_try='test -s conftest.$ac_objext' 6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6896 (eval $ac_try) 2>&5 6897 ac_status=$? 6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6899 (exit $ac_status); }; }; then 6900 groff_cv_decl_needed_pclose=no 6901else 6902 echo "$as_me: failed program was:" >&5 6903sed 's/^/| /' conftest.$ac_ext >&5 6904 6905groff_cv_decl_needed_pclose=yes 6906fi 6907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6908fi 6909 6910 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5 6911echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6 6912 if test $groff_cv_decl_needed_pclose = yes; then 6913 6914cat >>confdefs.h <<\_ACEOF 6915#define NEED_DECLARATION_PCLOSE 1 6916_ACEOF 6917 6918 fi 6919 ac_ext=c 6920ac_cpp='$CPP $CPPFLAGS' 6921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6923ac_compiler_gnu=$ac_cv_c_compiler_gnu 6924 6925echo "$as_me:$LINENO: checking whether putenv must be declared" >&5 6926echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6 6927 ac_ext=cc 6928ac_cpp='$CXXCPP $CPPFLAGS' 6929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6932 6933 if test "${groff_cv_decl_needed_putenv+set}" = set; then 6934 echo $ECHO_N "(cached) $ECHO_C" >&6 6935else 6936 cat >conftest.$ac_ext <<_ACEOF 6937 6938 /* confdefs.h. */ 6939_ACEOF 6940cat confdefs.h >>conftest.$ac_ext 6941cat >>conftest.$ac_ext <<_ACEOF 6942/* end confdefs.h. */ 6943 6944 6945#include <stdio.h> 6946#ifdef HAVE_STRING_H 6947#include <string.h> 6948#endif 6949#ifdef HAVE_STRINGS_H 6950#include <strings.h> 6951#endif 6952#ifdef HAVE_STDLIB_H 6953#include <stdlib.h> 6954#endif 6955#ifdef HAVE_SYS_TIME_H 6956#include <sys/time.h> 6957#endif 6958#ifdef HAVE_UNISTD_H 6959#include <unistd.h> 6960#endif 6961#ifdef HAVE_MATH_H 6962#include <math.h> 6963#endif 6964 6965 6966int 6967main () 6968{ 6969 6970 6971#ifndef putenv 6972 char *p = (char *) putenv; 6973#endif 6974 6975 6976 ; 6977 return 0; 6978} 6979 6980_ACEOF 6981rm -f conftest.$ac_objext 6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6983 (eval $ac_compile) 2>conftest.er1 6984 ac_status=$? 6985 grep -v '^ *+' conftest.er1 >conftest.err 6986 rm -f conftest.er1 6987 cat conftest.err >&5 6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6989 (exit $ac_status); } && 6990 { ac_try='test -z "$ac_cxx_werror_flag" 6991 || test ! -s conftest.err' 6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6993 (eval $ac_try) 2>&5 6994 ac_status=$? 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); }; } && 6997 { ac_try='test -s conftest.$ac_objext' 6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6999 (eval $ac_try) 2>&5 7000 ac_status=$? 7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7002 (exit $ac_status); }; }; then 7003 groff_cv_decl_needed_putenv=no 7004else 7005 echo "$as_me: failed program was:" >&5 7006sed 's/^/| /' conftest.$ac_ext >&5 7007 7008groff_cv_decl_needed_putenv=yes 7009fi 7010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7011fi 7012 7013 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5 7014echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6 7015 if test $groff_cv_decl_needed_putenv = yes; then 7016 7017cat >>confdefs.h <<\_ACEOF 7018#define NEED_DECLARATION_PUTENV 1 7019_ACEOF 7020 7021 fi 7022 ac_ext=c 7023ac_cpp='$CPP $CPPFLAGS' 7024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7026ac_compiler_gnu=$ac_cv_c_compiler_gnu 7027 7028echo "$as_me:$LINENO: checking whether rand must be declared" >&5 7029echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6 7030 ac_ext=cc 7031ac_cpp='$CXXCPP $CPPFLAGS' 7032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7035 7036 if test "${groff_cv_decl_needed_rand+set}" = set; then 7037 echo $ECHO_N "(cached) $ECHO_C" >&6 7038else 7039 cat >conftest.$ac_ext <<_ACEOF 7040 7041 /* confdefs.h. */ 7042_ACEOF 7043cat confdefs.h >>conftest.$ac_ext 7044cat >>conftest.$ac_ext <<_ACEOF 7045/* end confdefs.h. */ 7046 7047 7048#include <stdio.h> 7049#ifdef HAVE_STRING_H 7050#include <string.h> 7051#endif 7052#ifdef HAVE_STRINGS_H 7053#include <strings.h> 7054#endif 7055#ifdef HAVE_STDLIB_H 7056#include <stdlib.h> 7057#endif 7058#ifdef HAVE_SYS_TIME_H 7059#include <sys/time.h> 7060#endif 7061#ifdef HAVE_UNISTD_H 7062#include <unistd.h> 7063#endif 7064#ifdef HAVE_MATH_H 7065#include <math.h> 7066#endif 7067 7068 7069int 7070main () 7071{ 7072 7073 7074#ifndef rand 7075 char *p = (char *) rand; 7076#endif 7077 7078 7079 ; 7080 return 0; 7081} 7082 7083_ACEOF 7084rm -f conftest.$ac_objext 7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7086 (eval $ac_compile) 2>conftest.er1 7087 ac_status=$? 7088 grep -v '^ *+' conftest.er1 >conftest.err 7089 rm -f conftest.er1 7090 cat conftest.err >&5 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); } && 7093 { ac_try='test -z "$ac_cxx_werror_flag" 7094 || test ! -s conftest.err' 7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7096 (eval $ac_try) 2>&5 7097 ac_status=$? 7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7099 (exit $ac_status); }; } && 7100 { ac_try='test -s conftest.$ac_objext' 7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7102 (eval $ac_try) 2>&5 7103 ac_status=$? 7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 (exit $ac_status); }; }; then 7106 groff_cv_decl_needed_rand=no 7107else 7108 echo "$as_me: failed program was:" >&5 7109sed 's/^/| /' conftest.$ac_ext >&5 7110 7111groff_cv_decl_needed_rand=yes 7112fi 7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7114fi 7115 7116 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5 7117echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6 7118 if test $groff_cv_decl_needed_rand = yes; then 7119 7120cat >>confdefs.h <<\_ACEOF 7121#define NEED_DECLARATION_RAND 1 7122_ACEOF 7123 7124 fi 7125 ac_ext=c 7126ac_cpp='$CPP $CPPFLAGS' 7127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7129ac_compiler_gnu=$ac_cv_c_compiler_gnu 7130 7131echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5 7132echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6 7133 ac_ext=cc 7134ac_cpp='$CXXCPP $CPPFLAGS' 7135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7138 7139 if test "${groff_cv_decl_needed_snprintf+set}" = set; then 7140 echo $ECHO_N "(cached) $ECHO_C" >&6 7141else 7142 cat >conftest.$ac_ext <<_ACEOF 7143 7144 /* confdefs.h. */ 7145_ACEOF 7146cat confdefs.h >>conftest.$ac_ext 7147cat >>conftest.$ac_ext <<_ACEOF 7148/* end confdefs.h. */ 7149 7150 7151#include <stdio.h> 7152#ifdef HAVE_STRING_H 7153#include <string.h> 7154#endif 7155#ifdef HAVE_STRINGS_H 7156#include <strings.h> 7157#endif 7158#ifdef HAVE_STDLIB_H 7159#include <stdlib.h> 7160#endif 7161#ifdef HAVE_SYS_TIME_H 7162#include <sys/time.h> 7163#endif 7164#ifdef HAVE_UNISTD_H 7165#include <unistd.h> 7166#endif 7167#ifdef HAVE_MATH_H 7168#include <math.h> 7169#endif 7170 7171 7172int 7173main () 7174{ 7175 7176 7177#ifndef snprintf 7178 char *p = (char *) snprintf; 7179#endif 7180 7181 7182 ; 7183 return 0; 7184} 7185 7186_ACEOF 7187rm -f conftest.$ac_objext 7188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7189 (eval $ac_compile) 2>conftest.er1 7190 ac_status=$? 7191 grep -v '^ *+' conftest.er1 >conftest.err 7192 rm -f conftest.er1 7193 cat conftest.err >&5 7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7195 (exit $ac_status); } && 7196 { ac_try='test -z "$ac_cxx_werror_flag" 7197 || test ! -s conftest.err' 7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7199 (eval $ac_try) 2>&5 7200 ac_status=$? 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); }; } && 7203 { ac_try='test -s conftest.$ac_objext' 7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7205 (eval $ac_try) 2>&5 7206 ac_status=$? 7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7208 (exit $ac_status); }; }; then 7209 groff_cv_decl_needed_snprintf=no 7210else 7211 echo "$as_me: failed program was:" >&5 7212sed 's/^/| /' conftest.$ac_ext >&5 7213 7214groff_cv_decl_needed_snprintf=yes 7215fi 7216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7217fi 7218 7219 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5 7220echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6 7221 if test $groff_cv_decl_needed_snprintf = yes; then 7222 7223cat >>confdefs.h <<\_ACEOF 7224#define NEED_DECLARATION_SNPRINTF 1 7225_ACEOF 7226 7227 fi 7228 ac_ext=c 7229ac_cpp='$CPP $CPPFLAGS' 7230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7232ac_compiler_gnu=$ac_cv_c_compiler_gnu 7233 7234echo "$as_me:$LINENO: checking whether srand must be declared" >&5 7235echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6 7236 ac_ext=cc 7237ac_cpp='$CXXCPP $CPPFLAGS' 7238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7241 7242 if test "${groff_cv_decl_needed_srand+set}" = set; then 7243 echo $ECHO_N "(cached) $ECHO_C" >&6 7244else 7245 cat >conftest.$ac_ext <<_ACEOF 7246 7247 /* confdefs.h. */ 7248_ACEOF 7249cat confdefs.h >>conftest.$ac_ext 7250cat >>conftest.$ac_ext <<_ACEOF 7251/* end confdefs.h. */ 7252 7253 7254#include <stdio.h> 7255#ifdef HAVE_STRING_H 7256#include <string.h> 7257#endif 7258#ifdef HAVE_STRINGS_H 7259#include <strings.h> 7260#endif 7261#ifdef HAVE_STDLIB_H 7262#include <stdlib.h> 7263#endif 7264#ifdef HAVE_SYS_TIME_H 7265#include <sys/time.h> 7266#endif 7267#ifdef HAVE_UNISTD_H 7268#include <unistd.h> 7269#endif 7270#ifdef HAVE_MATH_H 7271#include <math.h> 7272#endif 7273 7274 7275int 7276main () 7277{ 7278 7279 7280#ifndef srand 7281 char *p = (char *) srand; 7282#endif 7283 7284 7285 ; 7286 return 0; 7287} 7288 7289_ACEOF 7290rm -f conftest.$ac_objext 7291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7292 (eval $ac_compile) 2>conftest.er1 7293 ac_status=$? 7294 grep -v '^ *+' conftest.er1 >conftest.err 7295 rm -f conftest.er1 7296 cat conftest.err >&5 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); } && 7299 { ac_try='test -z "$ac_cxx_werror_flag" 7300 || test ! -s conftest.err' 7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7302 (eval $ac_try) 2>&5 7303 ac_status=$? 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7305 (exit $ac_status); }; } && 7306 { ac_try='test -s conftest.$ac_objext' 7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7308 (eval $ac_try) 2>&5 7309 ac_status=$? 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 (exit $ac_status); }; }; then 7312 groff_cv_decl_needed_srand=no 7313else 7314 echo "$as_me: failed program was:" >&5 7315sed 's/^/| /' conftest.$ac_ext >&5 7316 7317groff_cv_decl_needed_srand=yes 7318fi 7319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7320fi 7321 7322 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5 7323echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6 7324 if test $groff_cv_decl_needed_srand = yes; then 7325 7326cat >>confdefs.h <<\_ACEOF 7327#define NEED_DECLARATION_SRAND 1 7328_ACEOF 7329 7330 fi 7331 ac_ext=c 7332ac_cpp='$CPP $CPPFLAGS' 7333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7335ac_compiler_gnu=$ac_cv_c_compiler_gnu 7336 7337echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5 7338echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6 7339 ac_ext=cc 7340ac_cpp='$CXXCPP $CPPFLAGS' 7341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7344 7345 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347else 7348 cat >conftest.$ac_ext <<_ACEOF 7349 7350 /* confdefs.h. */ 7351_ACEOF 7352cat confdefs.h >>conftest.$ac_ext 7353cat >>conftest.$ac_ext <<_ACEOF 7354/* end confdefs.h. */ 7355 7356 7357#include <stdio.h> 7358#ifdef HAVE_STRING_H 7359#include <string.h> 7360#endif 7361#ifdef HAVE_STRINGS_H 7362#include <strings.h> 7363#endif 7364#ifdef HAVE_STDLIB_H 7365#include <stdlib.h> 7366#endif 7367#ifdef HAVE_SYS_TIME_H 7368#include <sys/time.h> 7369#endif 7370#ifdef HAVE_UNISTD_H 7371#include <unistd.h> 7372#endif 7373#ifdef HAVE_MATH_H 7374#include <math.h> 7375#endif 7376 7377 7378int 7379main () 7380{ 7381 7382 7383#ifndef strcasecmp 7384 char *p = (char *) strcasecmp; 7385#endif 7386 7387 7388 ; 7389 return 0; 7390} 7391 7392_ACEOF 7393rm -f conftest.$ac_objext 7394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7395 (eval $ac_compile) 2>conftest.er1 7396 ac_status=$? 7397 grep -v '^ *+' conftest.er1 >conftest.err 7398 rm -f conftest.er1 7399 cat conftest.err >&5 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7401 (exit $ac_status); } && 7402 { ac_try='test -z "$ac_cxx_werror_flag" 7403 || test ! -s conftest.err' 7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7405 (eval $ac_try) 2>&5 7406 ac_status=$? 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); }; } && 7409 { ac_try='test -s conftest.$ac_objext' 7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7411 (eval $ac_try) 2>&5 7412 ac_status=$? 7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7414 (exit $ac_status); }; }; then 7415 groff_cv_decl_needed_strcasecmp=no 7416else 7417 echo "$as_me: failed program was:" >&5 7418sed 's/^/| /' conftest.$ac_ext >&5 7419 7420groff_cv_decl_needed_strcasecmp=yes 7421fi 7422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7423fi 7424 7425 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5 7426echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6 7427 if test $groff_cv_decl_needed_strcasecmp = yes; then 7428 7429cat >>confdefs.h <<\_ACEOF 7430#define NEED_DECLARATION_STRCASECMP 1 7431_ACEOF 7432 7433 fi 7434 ac_ext=c 7435ac_cpp='$CPP $CPPFLAGS' 7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7438ac_compiler_gnu=$ac_cv_c_compiler_gnu 7439 7440echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5 7441echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6 7442 ac_ext=cc 7443ac_cpp='$CXXCPP $CPPFLAGS' 7444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7447 7448 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then 7449 echo $ECHO_N "(cached) $ECHO_C" >&6 7450else 7451 cat >conftest.$ac_ext <<_ACEOF 7452 7453 /* confdefs.h. */ 7454_ACEOF 7455cat confdefs.h >>conftest.$ac_ext 7456cat >>conftest.$ac_ext <<_ACEOF 7457/* end confdefs.h. */ 7458 7459 7460#include <stdio.h> 7461#ifdef HAVE_STRING_H 7462#include <string.h> 7463#endif 7464#ifdef HAVE_STRINGS_H 7465#include <strings.h> 7466#endif 7467#ifdef HAVE_STDLIB_H 7468#include <stdlib.h> 7469#endif 7470#ifdef HAVE_SYS_TIME_H 7471#include <sys/time.h> 7472#endif 7473#ifdef HAVE_UNISTD_H 7474#include <unistd.h> 7475#endif 7476#ifdef HAVE_MATH_H 7477#include <math.h> 7478#endif 7479 7480 7481int 7482main () 7483{ 7484 7485 7486#ifndef strncasecmp 7487 char *p = (char *) strncasecmp; 7488#endif 7489 7490 7491 ; 7492 return 0; 7493} 7494 7495_ACEOF 7496rm -f conftest.$ac_objext 7497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7498 (eval $ac_compile) 2>conftest.er1 7499 ac_status=$? 7500 grep -v '^ *+' conftest.er1 >conftest.err 7501 rm -f conftest.er1 7502 cat conftest.err >&5 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504 (exit $ac_status); } && 7505 { ac_try='test -z "$ac_cxx_werror_flag" 7506 || test ! -s conftest.err' 7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7508 (eval $ac_try) 2>&5 7509 ac_status=$? 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); }; } && 7512 { ac_try='test -s conftest.$ac_objext' 7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7514 (eval $ac_try) 2>&5 7515 ac_status=$? 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7517 (exit $ac_status); }; }; then 7518 groff_cv_decl_needed_strncasecmp=no 7519else 7520 echo "$as_me: failed program was:" >&5 7521sed 's/^/| /' conftest.$ac_ext >&5 7522 7523groff_cv_decl_needed_strncasecmp=yes 7524fi 7525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7526fi 7527 7528 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5 7529echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6 7530 if test $groff_cv_decl_needed_strncasecmp = yes; then 7531 7532cat >>confdefs.h <<\_ACEOF 7533#define NEED_DECLARATION_STRNCASECMP 1 7534_ACEOF 7535 7536 fi 7537 ac_ext=c 7538ac_cpp='$CPP $CPPFLAGS' 7539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7541ac_compiler_gnu=$ac_cv_c_compiler_gnu 7542 7543echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5 7544echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6 7545 ac_ext=cc 7546ac_cpp='$CXXCPP $CPPFLAGS' 7547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7550 7551 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then 7552 echo $ECHO_N "(cached) $ECHO_C" >&6 7553else 7554 cat >conftest.$ac_ext <<_ACEOF 7555 7556 /* confdefs.h. */ 7557_ACEOF 7558cat confdefs.h >>conftest.$ac_ext 7559cat >>conftest.$ac_ext <<_ACEOF 7560/* end confdefs.h. */ 7561 7562 7563#include <stdio.h> 7564#ifdef HAVE_STRING_H 7565#include <string.h> 7566#endif 7567#ifdef HAVE_STRINGS_H 7568#include <strings.h> 7569#endif 7570#ifdef HAVE_STDLIB_H 7571#include <stdlib.h> 7572#endif 7573#ifdef HAVE_SYS_TIME_H 7574#include <sys/time.h> 7575#endif 7576#ifdef HAVE_UNISTD_H 7577#include <unistd.h> 7578#endif 7579#ifdef HAVE_MATH_H 7580#include <math.h> 7581#endif 7582 7583 7584int 7585main () 7586{ 7587 7588 7589#ifndef vfprintf 7590 char *p = (char *) vfprintf; 7591#endif 7592 7593 7594 ; 7595 return 0; 7596} 7597 7598_ACEOF 7599rm -f conftest.$ac_objext 7600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7601 (eval $ac_compile) 2>conftest.er1 7602 ac_status=$? 7603 grep -v '^ *+' conftest.er1 >conftest.err 7604 rm -f conftest.er1 7605 cat conftest.err >&5 7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7607 (exit $ac_status); } && 7608 { ac_try='test -z "$ac_cxx_werror_flag" 7609 || test ! -s conftest.err' 7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7611 (eval $ac_try) 2>&5 7612 ac_status=$? 7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7614 (exit $ac_status); }; } && 7615 { ac_try='test -s conftest.$ac_objext' 7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7617 (eval $ac_try) 2>&5 7618 ac_status=$? 7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7620 (exit $ac_status); }; }; then 7621 groff_cv_decl_needed_vfprintf=no 7622else 7623 echo "$as_me: failed program was:" >&5 7624sed 's/^/| /' conftest.$ac_ext >&5 7625 7626groff_cv_decl_needed_vfprintf=yes 7627fi 7628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7629fi 7630 7631 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5 7632echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6 7633 if test $groff_cv_decl_needed_vfprintf = yes; then 7634 7635cat >>confdefs.h <<\_ACEOF 7636#define NEED_DECLARATION_VFPRINTF 1 7637_ACEOF 7638 7639 fi 7640 ac_ext=c 7641ac_cpp='$CPP $CPPFLAGS' 7642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7644ac_compiler_gnu=$ac_cv_c_compiler_gnu 7645 7646echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5 7647echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6 7648 ac_ext=cc 7649ac_cpp='$CXXCPP $CPPFLAGS' 7650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7653 7654 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then 7655 echo $ECHO_N "(cached) $ECHO_C" >&6 7656else 7657 cat >conftest.$ac_ext <<_ACEOF 7658 7659 /* confdefs.h. */ 7660_ACEOF 7661cat confdefs.h >>conftest.$ac_ext 7662cat >>conftest.$ac_ext <<_ACEOF 7663/* end confdefs.h. */ 7664 7665 7666#include <stdio.h> 7667#ifdef HAVE_STRING_H 7668#include <string.h> 7669#endif 7670#ifdef HAVE_STRINGS_H 7671#include <strings.h> 7672#endif 7673#ifdef HAVE_STDLIB_H 7674#include <stdlib.h> 7675#endif 7676#ifdef HAVE_SYS_TIME_H 7677#include <sys/time.h> 7678#endif 7679#ifdef HAVE_UNISTD_H 7680#include <unistd.h> 7681#endif 7682#ifdef HAVE_MATH_H 7683#include <math.h> 7684#endif 7685 7686 7687int 7688main () 7689{ 7690 7691 7692#ifndef vsnprintf 7693 char *p = (char *) vsnprintf; 7694#endif 7695 7696 7697 ; 7698 return 0; 7699} 7700 7701_ACEOF 7702rm -f conftest.$ac_objext 7703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7704 (eval $ac_compile) 2>conftest.er1 7705 ac_status=$? 7706 grep -v '^ *+' conftest.er1 >conftest.err 7707 rm -f conftest.er1 7708 cat conftest.err >&5 7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7710 (exit $ac_status); } && 7711 { ac_try='test -z "$ac_cxx_werror_flag" 7712 || test ! -s conftest.err' 7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7714 (eval $ac_try) 2>&5 7715 ac_status=$? 7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7717 (exit $ac_status); }; } && 7718 { ac_try='test -s conftest.$ac_objext' 7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7720 (eval $ac_try) 2>&5 7721 ac_status=$? 7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7723 (exit $ac_status); }; }; then 7724 groff_cv_decl_needed_vsnprintf=no 7725else 7726 echo "$as_me: failed program was:" >&5 7727sed 's/^/| /' conftest.$ac_ext >&5 7728 7729groff_cv_decl_needed_vsnprintf=yes 7730fi 7731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7732fi 7733 7734 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5 7735echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6 7736 if test $groff_cv_decl_needed_vsnprintf = yes; then 7737 7738cat >>confdefs.h <<\_ACEOF 7739#define NEED_DECLARATION_VSNPRINTF 1 7740_ACEOF 7741 7742 fi 7743 ac_ext=c 7744ac_cpp='$CPP $CPPFLAGS' 7745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7747ac_compiler_gnu=$ac_cv_c_compiler_gnu 7748 7749ac_ext=cc 7750ac_cpp='$CXXCPP $CPPFLAGS' 7751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7754 7755 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5 7756echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6 7757 cat >conftest.$ac_ext <<_ACEOF 7758 7759 /* confdefs.h. */ 7760_ACEOF 7761cat confdefs.h >>conftest.$ac_ext 7762cat >>conftest.$ac_ext <<_ACEOF 7763/* end confdefs.h. */ 7764 7765 7766#include <errno.h> 7767#include <stdio.h> 7768#include <stdlib.h> 7769 7770 7771int 7772main () 7773{ 7774 7775 7776int k; 7777k = sys_nerr; 7778 7779 7780 ; 7781 return 0; 7782} 7783 7784_ACEOF 7785rm -f conftest.$ac_objext 7786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7787 (eval $ac_compile) 2>conftest.er1 7788 ac_status=$? 7789 grep -v '^ *+' conftest.er1 >conftest.err 7790 rm -f conftest.er1 7791 cat conftest.err >&5 7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7793 (exit $ac_status); } && 7794 { ac_try='test -z "$ac_cxx_werror_flag" 7795 || test ! -s conftest.err' 7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7797 (eval $ac_try) 2>&5 7798 ac_status=$? 7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7800 (exit $ac_status); }; } && 7801 { ac_try='test -s conftest.$ac_objext' 7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7803 (eval $ac_try) 2>&5 7804 ac_status=$? 7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7806 (exit $ac_status); }; }; then 7807 echo "$as_me:$LINENO: result: yes" >&5 7808echo "${ECHO_T}yes" >&6 7809 7810cat >>confdefs.h <<\_ACEOF 7811#define HAVE_SYS_NERR 1 7812_ACEOF 7813 7814else 7815 echo "$as_me: failed program was:" >&5 7816sed 's/^/| /' conftest.$ac_ext >&5 7817 7818echo "$as_me:$LINENO: result: no" >&5 7819echo "${ECHO_T}no" >&6 7820fi 7821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7822 ac_ext=c 7823ac_cpp='$CPP $CPPFLAGS' 7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7826ac_compiler_gnu=$ac_cv_c_compiler_gnu 7827 7828echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5 7829echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6 7830 cat >conftest.$ac_ext <<_ACEOF 7831 7832 /* confdefs.h. */ 7833_ACEOF 7834cat confdefs.h >>conftest.$ac_ext 7835cat >>conftest.$ac_ext <<_ACEOF 7836/* end confdefs.h. */ 7837 7838 7839#include <errno.h> 7840#include <stdio.h> 7841#include <stdlib.h> 7842 7843 7844int 7845main () 7846{ 7847 7848 7849int k; 7850k = (int)sys_errlist[0]; 7851 7852 7853 ; 7854 return 0; 7855} 7856 7857_ACEOF 7858rm -f conftest.$ac_objext 7859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7860 (eval $ac_compile) 2>conftest.er1 7861 ac_status=$? 7862 grep -v '^ *+' conftest.er1 >conftest.err 7863 rm -f conftest.er1 7864 cat conftest.err >&5 7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7866 (exit $ac_status); } && 7867 { ac_try='test -z "$ac_c_werror_flag" 7868 || test ! -s conftest.err' 7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7870 (eval $ac_try) 2>&5 7871 ac_status=$? 7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7873 (exit $ac_status); }; } && 7874 { ac_try='test -s conftest.$ac_objext' 7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7876 (eval $ac_try) 2>&5 7877 ac_status=$? 7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7879 (exit $ac_status); }; }; then 7880 echo "$as_me:$LINENO: result: yes" >&5 7881echo "${ECHO_T}yes" >&6 7882 7883cat >>confdefs.h <<\_ACEOF 7884#define HAVE_SYS_ERRLIST 1 7885_ACEOF 7886 7887else 7888 echo "$as_me: failed program was:" >&5 7889sed 's/^/| /' conftest.$ac_ext >&5 7890 7891echo "$as_me:$LINENO: result: no" >&5 7892echo "${ECHO_T}no" >&6 7893fi 7894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7895ac_ext=cc 7896ac_cpp='$CXXCPP $CPPFLAGS' 7897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7900 7901 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5 7902echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6 7903 cat >conftest.$ac_ext <<_ACEOF 7904 7905 /* confdefs.h. */ 7906_ACEOF 7907cat confdefs.h >>conftest.$ac_ext 7908cat >>conftest.$ac_ext <<_ACEOF 7909/* end confdefs.h. */ 7910 7911 7912#include <osfcn.h> 7913 7914 7915int 7916main () 7917{ 7918 7919 7920read(0, 0, 0); 7921open(0, 0); 7922 7923 7924 ; 7925 return 0; 7926} 7927 7928_ACEOF 7929rm -f conftest.$ac_objext 7930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7931 (eval $ac_compile) 2>conftest.er1 7932 ac_status=$? 7933 grep -v '^ *+' conftest.er1 >conftest.err 7934 rm -f conftest.er1 7935 cat conftest.err >&5 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); } && 7938 { ac_try='test -z "$ac_cxx_werror_flag" 7939 || test ! -s conftest.err' 7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7941 (eval $ac_try) 2>&5 7942 ac_status=$? 7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7944 (exit $ac_status); }; } && 7945 { ac_try='test -s conftest.$ac_objext' 7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7947 (eval $ac_try) 2>&5 7948 ac_status=$? 7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7950 (exit $ac_status); }; }; then 7951 echo "$as_me:$LINENO: result: yes" >&5 7952echo "${ECHO_T}yes" >&6 7953 7954cat >>confdefs.h <<\_ACEOF 7955#define HAVE_CC_OSFCN_H 1 7956_ACEOF 7957 7958else 7959 echo "$as_me: failed program was:" >&5 7960sed 's/^/| /' conftest.$ac_ext >&5 7961 7962echo "$as_me:$LINENO: result: no" >&5 7963echo "${ECHO_T}no" >&6 7964fi 7965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7966 ac_ext=c 7967ac_cpp='$CPP $CPPFLAGS' 7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7970ac_compiler_gnu=$ac_cv_c_compiler_gnu 7971 7972ac_ext=cc 7973ac_cpp='$CXXCPP $CPPFLAGS' 7974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7977 7978 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5 7979echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6 7980 cat >conftest.$ac_ext <<_ACEOF 7981 7982 /* confdefs.h. */ 7983_ACEOF 7984cat confdefs.h >>conftest.$ac_ext 7985cat >>conftest.$ac_ext <<_ACEOF 7986/* end confdefs.h. */ 7987 7988 7989#include <limits.h> 7990 7991 7992int 7993main () 7994{ 7995 7996 7997int x = INT_MIN; 7998int y = INT_MAX; 7999int z = UCHAR_MAX; 8000 8001 8002 ; 8003 return 0; 8004} 8005 8006_ACEOF 8007rm -f conftest.$ac_objext 8008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8009 (eval $ac_compile) 2>conftest.er1 8010 ac_status=$? 8011 grep -v '^ *+' conftest.er1 >conftest.err 8012 rm -f conftest.er1 8013 cat conftest.err >&5 8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8015 (exit $ac_status); } && 8016 { ac_try='test -z "$ac_cxx_werror_flag" 8017 || test ! -s conftest.err' 8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8019 (eval $ac_try) 2>&5 8020 ac_status=$? 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8022 (exit $ac_status); }; } && 8023 { ac_try='test -s conftest.$ac_objext' 8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8025 (eval $ac_try) 2>&5 8026 ac_status=$? 8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8028 (exit $ac_status); }; }; then 8029 echo "$as_me:$LINENO: result: yes" >&5 8030echo "${ECHO_T}yes" >&6 8031 8032cat >>confdefs.h <<\_ACEOF 8033#define HAVE_CC_LIMITS_H 1 8034_ACEOF 8035 8036else 8037 echo "$as_me: failed program was:" >&5 8038sed 's/^/| /' conftest.$ac_ext >&5 8039 8040echo "$as_me:$LINENO: result: no" >&5 8041echo "${ECHO_T}no" >&6 8042fi 8043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8044 ac_ext=c 8045ac_cpp='$CPP $CPPFLAGS' 8046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8048ac_compiler_gnu=$ac_cv_c_compiler_gnu 8049 8050ac_ext=cc 8051ac_cpp='$CXXCPP $CPPFLAGS' 8052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8055 8056 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5 8057echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6 8058 cat >conftest.$ac_ext <<_ACEOF 8059 8060 /* confdefs.h. */ 8061_ACEOF 8062cat confdefs.h >>conftest.$ac_ext 8063cat >>conftest.$ac_ext <<_ACEOF 8064/* end confdefs.h. */ 8065 8066 8067#include <sys/types.h> 8068#include <inttypes.h> 8069 8070 8071int 8072main () 8073{ 8074 8075 8076uintmax_t i = (uintmax_t)-1; 8077 8078 8079 ; 8080 return 0; 8081} 8082 8083_ACEOF 8084rm -f conftest.$ac_objext 8085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8086 (eval $ac_compile) 2>conftest.er1 8087 ac_status=$? 8088 grep -v '^ *+' conftest.er1 >conftest.err 8089 rm -f conftest.er1 8090 cat conftest.err >&5 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); } && 8093 { ac_try='test -z "$ac_cxx_werror_flag" 8094 || test ! -s conftest.err' 8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8096 (eval $ac_try) 2>&5 8097 ac_status=$? 8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); }; } && 8100 { ac_try='test -s conftest.$ac_objext' 8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8102 (eval $ac_try) 2>&5 8103 ac_status=$? 8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 (exit $ac_status); }; }; then 8106 groff_cv_header_inttypes_h=yes 8107 8108cat >>confdefs.h <<\_ACEOF 8109#define HAVE_CC_INTTYPES_H 1 8110_ACEOF 8111 8112else 8113 echo "$as_me: failed program was:" >&5 8114sed 's/^/| /' conftest.$ac_ext >&5 8115 8116groff_cv_header_inttypes_h=no 8117fi 8118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8119 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5 8120echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6 8121 ac_ext=c 8122ac_cpp='$CPP $CPPFLAGS' 8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8125ac_compiler_gnu=$ac_cv_c_compiler_gnu 8126 8127 8128# checks for typedefs 8129ac_ext=cc 8130ac_cpp='$CXXCPP $CPPFLAGS' 8131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8134 8135 echo "$as_me:$LINENO: checking for unsigned long long" >&5 8136echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 8137 cat >conftest.$ac_ext <<_ACEOF 8138 8139 /* confdefs.h. */ 8140_ACEOF 8141cat confdefs.h >>conftest.$ac_ext 8142cat >>conftest.$ac_ext <<_ACEOF 8143/* end confdefs.h. */ 8144 8145 8146unsigned long long ull = 1; 8147int i = 63; 8148unsigned long long ullmax = (unsigned long long)-1; 8149 8150 8151int 8152main () 8153{ 8154 8155 8156return ull << i | ull >> i | ullmax / ull | ullmax % ull; 8157 8158 8159 ; 8160 return 0; 8161} 8162 8163_ACEOF 8164rm -f conftest.$ac_objext conftest$ac_exeext 8165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8166 (eval $ac_link) 2>conftest.er1 8167 ac_status=$? 8168 grep -v '^ *+' conftest.er1 >conftest.err 8169 rm -f conftest.er1 8170 cat conftest.err >&5 8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8172 (exit $ac_status); } && 8173 { ac_try='test -z "$ac_cxx_werror_flag" 8174 || test ! -s conftest.err' 8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8176 (eval $ac_try) 2>&5 8177 ac_status=$? 8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 (exit $ac_status); }; } && 8180 { ac_try='test -s conftest$ac_exeext' 8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8182 (eval $ac_try) 2>&5 8183 ac_status=$? 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8185 (exit $ac_status); }; }; then 8186 groff_cv_type_unsigned_long_long=yes 8187else 8188 echo "$as_me: failed program was:" >&5 8189sed 's/^/| /' conftest.$ac_ext >&5 8190 8191groff_cv_type_unsigned_long_long=no 8192fi 8193rm -f conftest.err conftest.$ac_objext \ 8194 conftest$ac_exeext conftest.$ac_ext 8195 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5 8196echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6 8197 ac_ext=c 8198ac_cpp='$CPP $CPPFLAGS' 8199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8201ac_compiler_gnu=$ac_cv_c_compiler_gnu 8202 8203 8204 if test $groff_cv_header_inttypes_h = no; then 8205 8206 test $groff_cv_type_unsigned_long_long = yes \ 8207 && ac_type='unsigned long long' \ 8208 || ac_type='unsigned long' 8209 8210cat >>confdefs.h <<_ACEOF 8211#define uintmax_t $ac_type 8212_ACEOF 8213 8214 fi 8215ac_ext=cc 8216ac_cpp='$CXXCPP $CPPFLAGS' 8217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8220 8221 echo "$as_me:$LINENO: checking for declaration of time_t" >&5 8222echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6 8223 cat >conftest.$ac_ext <<_ACEOF 8224 8225 /* confdefs.h. */ 8226_ACEOF 8227cat confdefs.h >>conftest.$ac_ext 8228cat >>conftest.$ac_ext <<_ACEOF 8229/* end confdefs.h. */ 8230 8231 8232#include <time.h> 8233 8234 8235int 8236main () 8237{ 8238 8239 8240time_t t = time(0); 8241struct tm *p = localtime(&t); 8242 8243 8244 ; 8245 return 0; 8246} 8247 8248_ACEOF 8249rm -f conftest.$ac_objext 8250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8251 (eval $ac_compile) 2>conftest.er1 8252 ac_status=$? 8253 grep -v '^ *+' conftest.er1 >conftest.err 8254 rm -f conftest.er1 8255 cat conftest.err >&5 8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8257 (exit $ac_status); } && 8258 { ac_try='test -z "$ac_cxx_werror_flag" 8259 || test ! -s conftest.err' 8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8261 (eval $ac_try) 2>&5 8262 ac_status=$? 8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8264 (exit $ac_status); }; } && 8265 { ac_try='test -s conftest.$ac_objext' 8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8267 (eval $ac_try) 2>&5 8268 ac_status=$? 8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8270 (exit $ac_status); }; }; then 8271 echo "$as_me:$LINENO: result: yes" >&5 8272echo "${ECHO_T}yes" >&6 8273else 8274 echo "$as_me: failed program was:" >&5 8275sed 's/^/| /' conftest.$ac_ext >&5 8276 8277echo "$as_me:$LINENO: result: no" >&5 8278echo "${ECHO_T}no" >&6 8279 8280cat >>confdefs.h <<\_ACEOF 8281#define LONG_FOR_TIME_T 1 8282_ACEOF 8283 8284fi 8285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8286 ac_ext=c 8287ac_cpp='$CPP $CPPFLAGS' 8288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8290ac_compiler_gnu=$ac_cv_c_compiler_gnu 8291 8292echo "$as_me:$LINENO: checking for return type of signal handlers" >&5 8293echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6 8294 for groff_declaration in \ 8295 'extern "C" void (*signal (int, void (*)(int)))(int);' \ 8296 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \ 8297 'void (*signal ()) ();' 8298 do 8299 cat >conftest.$ac_ext <<_ACEOF 8300 8301 /* confdefs.h. */ 8302_ACEOF 8303cat confdefs.h >>conftest.$ac_ext 8304cat >>conftest.$ac_ext <<_ACEOF 8305/* end confdefs.h. */ 8306 8307 8308#include <sys/types.h> 8309#include <signal.h> 8310#ifdef signal 8311# undef signal 8312#endif 8313$groff_declaration 8314 8315 8316int 8317main () 8318{ 8319 8320 8321int i; 8322 8323 8324 ; 8325 return 0; 8326} 8327 8328_ACEOF 8329rm -f conftest.$ac_objext 8330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8331 (eval $ac_compile) 2>conftest.er1 8332 ac_status=$? 8333 grep -v '^ *+' conftest.er1 >conftest.err 8334 rm -f conftest.er1 8335 cat conftest.err >&5 8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8337 (exit $ac_status); } && 8338 { ac_try='test -z "$ac_c_werror_flag" 8339 || test ! -s conftest.err' 8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8341 (eval $ac_try) 2>&5 8342 ac_status=$? 8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8344 (exit $ac_status); }; } && 8345 { ac_try='test -s conftest.$ac_objext' 8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8347 (eval $ac_try) 2>&5 8348 ac_status=$? 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); }; }; then 8351 break 8352else 8353 echo "$as_me: failed program was:" >&5 8354sed 's/^/| /' conftest.$ac_ext >&5 8355 8356continue 8357fi 8358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8359 done 8360 8361 if test -n "$groff_declaration"; then 8362 echo "$as_me:$LINENO: result: void" >&5 8363echo "${ECHO_T}void" >&6 8364 8365cat >>confdefs.h <<\_ACEOF 8366#define RETSIGTYPE void 8367_ACEOF 8368 8369 else 8370 echo "$as_me:$LINENO: result: int" >&5 8371echo "${ECHO_T}int" >&6 8372 8373cat >>confdefs.h <<\_ACEOF 8374#define RETSIGTYPE int 8375_ACEOF 8376 8377 fi 8378echo "$as_me:$LINENO: checking struct exception" >&5 8379echo $ECHO_N "checking struct exception... $ECHO_C" >&6 8380 cat >conftest.$ac_ext <<_ACEOF 8381 8382 /* confdefs.h. */ 8383_ACEOF 8384cat confdefs.h >>conftest.$ac_ext 8385cat >>conftest.$ac_ext <<_ACEOF 8386/* end confdefs.h. */ 8387 8388 8389#include <math.h> 8390 8391 8392int 8393main () 8394{ 8395 8396 8397struct exception e; 8398 8399 8400 ; 8401 return 0; 8402} 8403 8404_ACEOF 8405rm -f conftest.$ac_objext 8406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8407 (eval $ac_compile) 2>conftest.er1 8408 ac_status=$? 8409 grep -v '^ *+' conftest.er1 >conftest.err 8410 rm -f conftest.er1 8411 cat conftest.err >&5 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); } && 8414 { ac_try='test -z "$ac_c_werror_flag" 8415 || test ! -s conftest.err' 8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8417 (eval $ac_try) 2>&5 8418 ac_status=$? 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); }; } && 8421 { ac_try='test -s conftest.$ac_objext' 8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8423 (eval $ac_try) 2>&5 8424 ac_status=$? 8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8426 (exit $ac_status); }; }; then 8427 echo "$as_me:$LINENO: result: yes" >&5 8428echo "${ECHO_T}yes" >&6 8429 8430cat >>confdefs.h <<\_ACEOF 8431#define HAVE_STRUCT_EXCEPTION 1 8432_ACEOF 8433 8434else 8435 echo "$as_me: failed program was:" >&5 8436sed 's/^/| /' conftest.$ac_ext >&5 8437 8438echo "$as_me:$LINENO: result: no" >&5 8439echo "${ECHO_T}no" >&6 8440fi 8441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8442 8443# checks for libraries 8444echo "$as_me:$LINENO: checking for main in -lc" >&5 8445echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6 8446if test "${ac_cv_lib_c_main+set}" = set; then 8447 echo $ECHO_N "(cached) $ECHO_C" >&6 8448else 8449 ac_check_lib_save_LIBS=$LIBS 8450LIBS="-lc $LIBS" 8451cat >conftest.$ac_ext <<_ACEOF 8452/* confdefs.h. */ 8453_ACEOF 8454cat confdefs.h >>conftest.$ac_ext 8455cat >>conftest.$ac_ext <<_ACEOF 8456/* end confdefs.h. */ 8457 8458 8459int 8460main () 8461{ 8462main (); 8463 ; 8464 return 0; 8465} 8466_ACEOF 8467rm -f conftest.$ac_objext conftest$ac_exeext 8468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8469 (eval $ac_link) 2>conftest.er1 8470 ac_status=$? 8471 grep -v '^ *+' conftest.er1 >conftest.err 8472 rm -f conftest.er1 8473 cat conftest.err >&5 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 (exit $ac_status); } && 8476 { ac_try='test -z "$ac_c_werror_flag" 8477 || test ! -s conftest.err' 8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8479 (eval $ac_try) 2>&5 8480 ac_status=$? 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8482 (exit $ac_status); }; } && 8483 { ac_try='test -s conftest$ac_exeext' 8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8485 (eval $ac_try) 2>&5 8486 ac_status=$? 8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8488 (exit $ac_status); }; }; then 8489 ac_cv_lib_c_main=yes 8490else 8491 echo "$as_me: failed program was:" >&5 8492sed 's/^/| /' conftest.$ac_ext >&5 8493 8494ac_cv_lib_c_main=no 8495fi 8496rm -f conftest.err conftest.$ac_objext \ 8497 conftest$ac_exeext conftest.$ac_ext 8498LIBS=$ac_check_lib_save_LIBS 8499fi 8500echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5 8501echo "${ECHO_T}$ac_cv_lib_c_main" >&6 8502if test $ac_cv_lib_c_main = yes; then 8503 LIBC=-lc 8504fi 8505 8506 8507echo "$as_me:$LINENO: checking for sin in -lm" >&5 8508echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 8509if test "${ac_cv_lib_m_sin+set}" = set; then 8510 echo $ECHO_N "(cached) $ECHO_C" >&6 8511else 8512 ac_check_lib_save_LIBS=$LIBS 8513LIBS="-lm $LIBS" 8514cat >conftest.$ac_ext <<_ACEOF 8515/* confdefs.h. */ 8516_ACEOF 8517cat confdefs.h >>conftest.$ac_ext 8518cat >>conftest.$ac_ext <<_ACEOF 8519/* end confdefs.h. */ 8520 8521/* Override any gcc2 internal prototype to avoid an error. */ 8522#ifdef __cplusplus 8523extern "C" 8524#endif 8525/* We use char because int might match the return type of a gcc2 8526 builtin and then its argument prototype would still apply. */ 8527char sin (); 8528int 8529main () 8530{ 8531sin (); 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536rm -f conftest.$ac_objext conftest$ac_exeext 8537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8538 (eval $ac_link) 2>conftest.er1 8539 ac_status=$? 8540 grep -v '^ *+' conftest.er1 >conftest.err 8541 rm -f conftest.er1 8542 cat conftest.err >&5 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8544 (exit $ac_status); } && 8545 { ac_try='test -z "$ac_c_werror_flag" 8546 || test ! -s conftest.err' 8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8548 (eval $ac_try) 2>&5 8549 ac_status=$? 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); }; } && 8552 { ac_try='test -s conftest$ac_exeext' 8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8554 (eval $ac_try) 2>&5 8555 ac_status=$? 8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 (exit $ac_status); }; }; then 8558 ac_cv_lib_m_sin=yes 8559else 8560 echo "$as_me: failed program was:" >&5 8561sed 's/^/| /' conftest.$ac_ext >&5 8562 8563ac_cv_lib_m_sin=no 8564fi 8565rm -f conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567LIBS=$ac_check_lib_save_LIBS 8568fi 8569echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 8570echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 8571if test $ac_cv_lib_m_sin = yes; then 8572 LIBM=-lm 8573fi 8574 8575 8576 8577# checks for functions 8578 8579 8580for ac_header in stdlib.h unistd.h 8581do 8582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8583if eval "test \"\${$as_ac_Header+set}\" = set"; then 8584 echo "$as_me:$LINENO: checking for $ac_header" >&5 8585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8586if eval "test \"\${$as_ac_Header+set}\" = set"; then 8587 echo $ECHO_N "(cached) $ECHO_C" >&6 8588fi 8589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8591else 8592 # Is the header compilable? 8593echo "$as_me:$LINENO: checking $ac_header usability" >&5 8594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8595cat >conftest.$ac_ext <<_ACEOF 8596/* confdefs.h. */ 8597_ACEOF 8598cat confdefs.h >>conftest.$ac_ext 8599cat >>conftest.$ac_ext <<_ACEOF 8600/* end confdefs.h. */ 8601$ac_includes_default 8602#include <$ac_header> 8603_ACEOF 8604rm -f conftest.$ac_objext 8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8606 (eval $ac_compile) 2>conftest.er1 8607 ac_status=$? 8608 grep -v '^ *+' conftest.er1 >conftest.err 8609 rm -f conftest.er1 8610 cat conftest.err >&5 8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8612 (exit $ac_status); } && 8613 { ac_try='test -z "$ac_c_werror_flag" 8614 || test ! -s conftest.err' 8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8616 (eval $ac_try) 2>&5 8617 ac_status=$? 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); }; } && 8620 { ac_try='test -s conftest.$ac_objext' 8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8622 (eval $ac_try) 2>&5 8623 ac_status=$? 8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8625 (exit $ac_status); }; }; then 8626 ac_header_compiler=yes 8627else 8628 echo "$as_me: failed program was:" >&5 8629sed 's/^/| /' conftest.$ac_ext >&5 8630 8631ac_header_compiler=no 8632fi 8633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8635echo "${ECHO_T}$ac_header_compiler" >&6 8636 8637# Is the header present? 8638echo "$as_me:$LINENO: checking $ac_header presence" >&5 8639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8640cat >conftest.$ac_ext <<_ACEOF 8641/* confdefs.h. */ 8642_ACEOF 8643cat confdefs.h >>conftest.$ac_ext 8644cat >>conftest.$ac_ext <<_ACEOF 8645/* end confdefs.h. */ 8646#include <$ac_header> 8647_ACEOF 8648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8650 ac_status=$? 8651 grep -v '^ *+' conftest.er1 >conftest.err 8652 rm -f conftest.er1 8653 cat conftest.err >&5 8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8655 (exit $ac_status); } >/dev/null; then 8656 if test -s conftest.err; then 8657 ac_cpp_err=$ac_c_preproc_warn_flag 8658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8659 else 8660 ac_cpp_err= 8661 fi 8662else 8663 ac_cpp_err=yes 8664fi 8665if test -z "$ac_cpp_err"; then 8666 ac_header_preproc=yes 8667else 8668 echo "$as_me: failed program was:" >&5 8669sed 's/^/| /' conftest.$ac_ext >&5 8670 8671 ac_header_preproc=no 8672fi 8673rm -f conftest.err conftest.$ac_ext 8674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8675echo "${ECHO_T}$ac_header_preproc" >&6 8676 8677# So? What about this header? 8678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8679 yes:no: ) 8680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8684 ac_header_preproc=yes 8685 ;; 8686 no:yes:* ) 8687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8699 ( 8700 cat <<\_ASBOX 8701## ------------------------------------------ ## 8702## Report this to the AC_PACKAGE_NAME lists. ## 8703## ------------------------------------------ ## 8704_ASBOX 8705 ) | 8706 sed "s/^/$as_me: WARNING: /" >&2 8707 ;; 8708esac 8709echo "$as_me:$LINENO: checking for $ac_header" >&5 8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8711if eval "test \"\${$as_ac_Header+set}\" = set"; then 8712 echo $ECHO_N "(cached) $ECHO_C" >&6 8713else 8714 eval "$as_ac_Header=\$ac_header_preproc" 8715fi 8716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8718 8719fi 8720if test `eval echo '${'$as_ac_Header'}'` = yes; then 8721 cat >>confdefs.h <<_ACEOF 8722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8723_ACEOF 8724 8725fi 8726 8727done 8728 8729 8730for ac_func in getpagesize 8731do 8732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8733echo "$as_me:$LINENO: checking for $ac_func" >&5 8734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8735if eval "test \"\${$as_ac_var+set}\" = set"; then 8736 echo $ECHO_N "(cached) $ECHO_C" >&6 8737else 8738 cat >conftest.$ac_ext <<_ACEOF 8739/* confdefs.h. */ 8740_ACEOF 8741cat confdefs.h >>conftest.$ac_ext 8742cat >>conftest.$ac_ext <<_ACEOF 8743/* end confdefs.h. */ 8744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8746#define $ac_func innocuous_$ac_func 8747 8748/* System header to define __stub macros and hopefully few prototypes, 8749 which can conflict with char $ac_func (); below. 8750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8751 <limits.h> exists even on freestanding compilers. */ 8752 8753#ifdef __STDC__ 8754# include <limits.h> 8755#else 8756# include <assert.h> 8757#endif 8758 8759#undef $ac_func 8760 8761/* Override any gcc2 internal prototype to avoid an error. */ 8762#ifdef __cplusplus 8763extern "C" 8764{ 8765#endif 8766/* We use char because int might match the return type of a gcc2 8767 builtin and then its argument prototype would still apply. */ 8768char $ac_func (); 8769/* The GNU C library defines this for functions which it implements 8770 to always fail with ENOSYS. Some functions are actually named 8771 something starting with __ and the normal name is an alias. */ 8772#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8773choke me 8774#else 8775char (*f) () = $ac_func; 8776#endif 8777#ifdef __cplusplus 8778} 8779#endif 8780 8781int 8782main () 8783{ 8784return f != $ac_func; 8785 ; 8786 return 0; 8787} 8788_ACEOF 8789rm -f conftest.$ac_objext conftest$ac_exeext 8790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8791 (eval $ac_link) 2>conftest.er1 8792 ac_status=$? 8793 grep -v '^ *+' conftest.er1 >conftest.err 8794 rm -f conftest.er1 8795 cat conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 (exit $ac_status); } && 8798 { ac_try='test -z "$ac_c_werror_flag" 8799 || test ! -s conftest.err' 8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8801 (eval $ac_try) 2>&5 8802 ac_status=$? 8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8804 (exit $ac_status); }; } && 8805 { ac_try='test -s conftest$ac_exeext' 8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8807 (eval $ac_try) 2>&5 8808 ac_status=$? 8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8810 (exit $ac_status); }; }; then 8811 eval "$as_ac_var=yes" 8812else 8813 echo "$as_me: failed program was:" >&5 8814sed 's/^/| /' conftest.$ac_ext >&5 8815 8816eval "$as_ac_var=no" 8817fi 8818rm -f conftest.err conftest.$ac_objext \ 8819 conftest$ac_exeext conftest.$ac_ext 8820fi 8821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8823if test `eval echo '${'$as_ac_var'}'` = yes; then 8824 cat >>confdefs.h <<_ACEOF 8825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8826_ACEOF 8827 8828fi 8829done 8830 8831echo "$as_me:$LINENO: checking for working mmap" >&5 8832echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 8833if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 8834 echo $ECHO_N "(cached) $ECHO_C" >&6 8835else 8836 if test "$cross_compiling" = yes; then 8837 ac_cv_func_mmap_fixed_mapped=no 8838else 8839 cat >conftest.$ac_ext <<_ACEOF 8840/* confdefs.h. */ 8841_ACEOF 8842cat confdefs.h >>conftest.$ac_ext 8843cat >>conftest.$ac_ext <<_ACEOF 8844/* end confdefs.h. */ 8845$ac_includes_default 8846/* malloc might have been renamed as rpl_malloc. */ 8847#undef malloc 8848 8849/* Thanks to Mike Haertel and Jim Avera for this test. 8850 Here is a matrix of mmap possibilities: 8851 mmap private not fixed 8852 mmap private fixed at somewhere currently unmapped 8853 mmap private fixed at somewhere already mapped 8854 mmap shared not fixed 8855 mmap shared fixed at somewhere currently unmapped 8856 mmap shared fixed at somewhere already mapped 8857 For private mappings, we should verify that changes cannot be read() 8858 back from the file, nor mmap's back from the file at a different 8859 address. (There have been systems where private was not correctly 8860 implemented like the infamous i386 svr4.0, and systems where the 8861 VM page cache was not coherent with the file system buffer cache 8862 like early versions of FreeBSD and possibly contemporary NetBSD.) 8863 For shared mappings, we should conversely verify that changes get 8864 propagated back to all the places they're supposed to be. 8865 8866 Grep wants private fixed already mapped. 8867 The main things grep needs to know about mmap are: 8868 * does it exist and is it safe to write into the mmap'd area 8869 * how to use it (BSD variants) */ 8870 8871#include <fcntl.h> 8872#include <sys/mman.h> 8873 8874#if !STDC_HEADERS && !HAVE_STDLIB_H 8875char *malloc (); 8876#endif 8877 8878/* This mess was copied from the GNU getpagesize.h. */ 8879#if !HAVE_GETPAGESIZE 8880/* Assume that all systems that can run configure have sys/param.h. */ 8881# if !HAVE_SYS_PARAM_H 8882# define HAVE_SYS_PARAM_H 1 8883# endif 8884 8885# ifdef _SC_PAGESIZE 8886# define getpagesize() sysconf(_SC_PAGESIZE) 8887# else /* no _SC_PAGESIZE */ 8888# if HAVE_SYS_PARAM_H 8889# include <sys/param.h> 8890# ifdef EXEC_PAGESIZE 8891# define getpagesize() EXEC_PAGESIZE 8892# else /* no EXEC_PAGESIZE */ 8893# ifdef NBPG 8894# define getpagesize() NBPG * CLSIZE 8895# ifndef CLSIZE 8896# define CLSIZE 1 8897# endif /* no CLSIZE */ 8898# else /* no NBPG */ 8899# ifdef NBPC 8900# define getpagesize() NBPC 8901# else /* no NBPC */ 8902# ifdef PAGESIZE 8903# define getpagesize() PAGESIZE 8904# endif /* PAGESIZE */ 8905# endif /* no NBPC */ 8906# endif /* no NBPG */ 8907# endif /* no EXEC_PAGESIZE */ 8908# else /* no HAVE_SYS_PARAM_H */ 8909# define getpagesize() 8192 /* punt totally */ 8910# endif /* no HAVE_SYS_PARAM_H */ 8911# endif /* no _SC_PAGESIZE */ 8912 8913#endif /* no HAVE_GETPAGESIZE */ 8914 8915int 8916main () 8917{ 8918 char *data, *data2, *data3; 8919 int i, pagesize; 8920 int fd; 8921 8922 pagesize = getpagesize (); 8923 8924 /* First, make a file with some known garbage in it. */ 8925 data = (char *) malloc (pagesize); 8926 if (!data) 8927 exit (1); 8928 for (i = 0; i < pagesize; ++i) 8929 *(data + i) = rand (); 8930 umask (0); 8931 fd = creat ("conftest.mmap", 0600); 8932 if (fd < 0) 8933 exit (1); 8934 if (write (fd, data, pagesize) != pagesize) 8935 exit (1); 8936 close (fd); 8937 8938 /* Next, try to mmap the file at a fixed address which already has 8939 something else allocated at it. If we can, also make sure that 8940 we see the same garbage. */ 8941 fd = open ("conftest.mmap", O_RDWR); 8942 if (fd < 0) 8943 exit (1); 8944 data2 = (char *) malloc (2 * pagesize); 8945 if (!data2) 8946 exit (1); 8947 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 8948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8949 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8950 exit (1); 8951 for (i = 0; i < pagesize; ++i) 8952 if (*(data + i) != *(data2 + i)) 8953 exit (1); 8954 8955 /* Finally, make sure that changes to the mapped area do not 8956 percolate back to the file as seen by read(). (This is a bug on 8957 some variants of i386 svr4.0.) */ 8958 for (i = 0; i < pagesize; ++i) 8959 *(data2 + i) = *(data2 + i) + 1; 8960 data3 = (char *) malloc (pagesize); 8961 if (!data3) 8962 exit (1); 8963 if (read (fd, data3, pagesize) != pagesize) 8964 exit (1); 8965 for (i = 0; i < pagesize; ++i) 8966 if (*(data + i) != *(data3 + i)) 8967 exit (1); 8968 close (fd); 8969 exit (0); 8970} 8971_ACEOF 8972rm -f conftest$ac_exeext 8973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8974 (eval $ac_link) 2>&5 8975 ac_status=$? 8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8979 (eval $ac_try) 2>&5 8980 ac_status=$? 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 (exit $ac_status); }; }; then 8983 ac_cv_func_mmap_fixed_mapped=yes 8984else 8985 echo "$as_me: program exited with status $ac_status" >&5 8986echo "$as_me: failed program was:" >&5 8987sed 's/^/| /' conftest.$ac_ext >&5 8988 8989( exit $ac_status ) 8990ac_cv_func_mmap_fixed_mapped=no 8991fi 8992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8993fi 8994fi 8995echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 8996echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 8997if test $ac_cv_func_mmap_fixed_mapped = yes; then 8998 8999cat >>confdefs.h <<\_ACEOF 9000#define HAVE_MMAP 1 9001_ACEOF 9002 9003fi 9004rm -f conftest.mmap 9005 9006saved_libs="$LIBS" 9007LIBS="$LIBS $LIBC $LIBM" 9008 9009 9010 9011 9012 9013 9014 9015 9016for ac_func in fmod getcwd putenv snprintf strcasecmp \ 9017 strerror strncasecmp strtol 9018do 9019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9020echo "$as_me:$LINENO: checking for $ac_func" >&5 9021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9022if eval "test \"\${$as_ac_var+set}\" = set"; then 9023 echo $ECHO_N "(cached) $ECHO_C" >&6 9024else 9025 cat >conftest.$ac_ext <<_ACEOF 9026/* confdefs.h. */ 9027_ACEOF 9028cat confdefs.h >>conftest.$ac_ext 9029cat >>conftest.$ac_ext <<_ACEOF 9030/* end confdefs.h. */ 9031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9032 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9033#define $ac_func innocuous_$ac_func 9034 9035/* System header to define __stub macros and hopefully few prototypes, 9036 which can conflict with char $ac_func (); below. 9037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9038 <limits.h> exists even on freestanding compilers. */ 9039 9040#ifdef __STDC__ 9041# include <limits.h> 9042#else 9043# include <assert.h> 9044#endif 9045 9046#undef $ac_func 9047 9048/* Override any gcc2 internal prototype to avoid an error. */ 9049#ifdef __cplusplus 9050extern "C" 9051{ 9052#endif 9053/* We use char because int might match the return type of a gcc2 9054 builtin and then its argument prototype would still apply. */ 9055char $ac_func (); 9056/* The GNU C library defines this for functions which it implements 9057 to always fail with ENOSYS. Some functions are actually named 9058 something starting with __ and the normal name is an alias. */ 9059#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9060choke me 9061#else 9062char (*f) () = $ac_func; 9063#endif 9064#ifdef __cplusplus 9065} 9066#endif 9067 9068int 9069main () 9070{ 9071return f != $ac_func; 9072 ; 9073 return 0; 9074} 9075_ACEOF 9076rm -f conftest.$ac_objext conftest$ac_exeext 9077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9078 (eval $ac_link) 2>conftest.er1 9079 ac_status=$? 9080 grep -v '^ *+' conftest.er1 >conftest.err 9081 rm -f conftest.er1 9082 cat conftest.err >&5 9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9084 (exit $ac_status); } && 9085 { ac_try='test -z "$ac_c_werror_flag" 9086 || test ! -s conftest.err' 9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9088 (eval $ac_try) 2>&5 9089 ac_status=$? 9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9091 (exit $ac_status); }; } && 9092 { ac_try='test -s conftest$ac_exeext' 9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9094 (eval $ac_try) 2>&5 9095 ac_status=$? 9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9097 (exit $ac_status); }; }; then 9098 eval "$as_ac_var=yes" 9099else 9100 echo "$as_me: failed program was:" >&5 9101sed 's/^/| /' conftest.$ac_ext >&5 9102 9103eval "$as_ac_var=no" 9104fi 9105rm -f conftest.err conftest.$ac_objext \ 9106 conftest$ac_exeext conftest.$ac_ext 9107fi 9108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9110if test `eval echo '${'$as_ac_var'}'` = yes; then 9111 cat >>confdefs.h <<_ACEOF 9112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9113_ACEOF 9114 9115else 9116 case $LIBOBJS in 9117 "$ac_func.$ac_objext" | \ 9118 *" $ac_func.$ac_objext" | \ 9119 "$ac_func.$ac_objext "* | \ 9120 *" $ac_func.$ac_objext "* ) ;; 9121 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 9122esac 9123 9124fi 9125done 9126 9127 9128# vsnprintf is in the same source file as snprintf 9129 9130for ac_func in vsnprintf 9131do 9132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9133echo "$as_me:$LINENO: checking for $ac_func" >&5 9134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9135if eval "test \"\${$as_ac_var+set}\" = set"; then 9136 echo $ECHO_N "(cached) $ECHO_C" >&6 9137else 9138 cat >conftest.$ac_ext <<_ACEOF 9139/* confdefs.h. */ 9140_ACEOF 9141cat confdefs.h >>conftest.$ac_ext 9142cat >>conftest.$ac_ext <<_ACEOF 9143/* end confdefs.h. */ 9144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9145 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9146#define $ac_func innocuous_$ac_func 9147 9148/* System header to define __stub macros and hopefully few prototypes, 9149 which can conflict with char $ac_func (); below. 9150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9151 <limits.h> exists even on freestanding compilers. */ 9152 9153#ifdef __STDC__ 9154# include <limits.h> 9155#else 9156# include <assert.h> 9157#endif 9158 9159#undef $ac_func 9160 9161/* Override any gcc2 internal prototype to avoid an error. */ 9162#ifdef __cplusplus 9163extern "C" 9164{ 9165#endif 9166/* We use char because int might match the return type of a gcc2 9167 builtin and then its argument prototype would still apply. */ 9168char $ac_func (); 9169/* The GNU C library defines this for functions which it implements 9170 to always fail with ENOSYS. Some functions are actually named 9171 something starting with __ and the normal name is an alias. */ 9172#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9173choke me 9174#else 9175char (*f) () = $ac_func; 9176#endif 9177#ifdef __cplusplus 9178} 9179#endif 9180 9181int 9182main () 9183{ 9184return f != $ac_func; 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189rm -f conftest.$ac_objext conftest$ac_exeext 9190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9191 (eval $ac_link) 2>conftest.er1 9192 ac_status=$? 9193 grep -v '^ *+' conftest.er1 >conftest.err 9194 rm -f conftest.er1 9195 cat conftest.err >&5 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 (exit $ac_status); } && 9198 { ac_try='test -z "$ac_c_werror_flag" 9199 || test ! -s conftest.err' 9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9201 (eval $ac_try) 2>&5 9202 ac_status=$? 9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 (exit $ac_status); }; } && 9205 { ac_try='test -s conftest$ac_exeext' 9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9207 (eval $ac_try) 2>&5 9208 ac_status=$? 9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9210 (exit $ac_status); }; }; then 9211 eval "$as_ac_var=yes" 9212else 9213 echo "$as_me: failed program was:" >&5 9214sed 's/^/| /' conftest.$ac_ext >&5 9215 9216eval "$as_ac_var=no" 9217fi 9218rm -f conftest.err conftest.$ac_objext \ 9219 conftest$ac_exeext conftest.$ac_ext 9220fi 9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9223if test `eval echo '${'$as_ac_var'}'` = yes; then 9224 cat >>confdefs.h <<_ACEOF 9225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9226_ACEOF 9227 9228else 9229 case $LIBOBJS in 9230 "snprintf.$ac_objext" | \ 9231 *" snprintf.$ac_objext" | \ 9232 "snprintf.$ac_objext "* | \ 9233 *" snprintf.$ac_objext "* ) ;; 9234 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;; 9235esac 9236 9237fi 9238done 9239 9240LIBS="$saved_libs" 9241 9242 9243 9244 9245 9246 9247for ac_func in gettimeofday isatty kill rename setlocale strsep 9248do 9249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9250echo "$as_me:$LINENO: checking for $ac_func" >&5 9251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9252if eval "test \"\${$as_ac_var+set}\" = set"; then 9253 echo $ECHO_N "(cached) $ECHO_C" >&6 9254else 9255 cat >conftest.$ac_ext <<_ACEOF 9256/* confdefs.h. */ 9257_ACEOF 9258cat confdefs.h >>conftest.$ac_ext 9259cat >>conftest.$ac_ext <<_ACEOF 9260/* end confdefs.h. */ 9261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9262 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9263#define $ac_func innocuous_$ac_func 9264 9265/* System header to define __stub macros and hopefully few prototypes, 9266 which can conflict with char $ac_func (); below. 9267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9268 <limits.h> exists even on freestanding compilers. */ 9269 9270#ifdef __STDC__ 9271# include <limits.h> 9272#else 9273# include <assert.h> 9274#endif 9275 9276#undef $ac_func 9277 9278/* Override any gcc2 internal prototype to avoid an error. */ 9279#ifdef __cplusplus 9280extern "C" 9281{ 9282#endif 9283/* We use char because int might match the return type of a gcc2 9284 builtin and then its argument prototype would still apply. */ 9285char $ac_func (); 9286/* The GNU C library defines this for functions which it implements 9287 to always fail with ENOSYS. Some functions are actually named 9288 something starting with __ and the normal name is an alias. */ 9289#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9290choke me 9291#else 9292char (*f) () = $ac_func; 9293#endif 9294#ifdef __cplusplus 9295} 9296#endif 9297 9298int 9299main () 9300{ 9301return f != $ac_func; 9302 ; 9303 return 0; 9304} 9305_ACEOF 9306rm -f conftest.$ac_objext conftest$ac_exeext 9307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9308 (eval $ac_link) 2>conftest.er1 9309 ac_status=$? 9310 grep -v '^ *+' conftest.er1 >conftest.err 9311 rm -f conftest.er1 9312 cat conftest.err >&5 9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9314 (exit $ac_status); } && 9315 { ac_try='test -z "$ac_c_werror_flag" 9316 || test ! -s conftest.err' 9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9318 (eval $ac_try) 2>&5 9319 ac_status=$? 9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9321 (exit $ac_status); }; } && 9322 { ac_try='test -s conftest$ac_exeext' 9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9324 (eval $ac_try) 2>&5 9325 ac_status=$? 9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9327 (exit $ac_status); }; }; then 9328 eval "$as_ac_var=yes" 9329else 9330 echo "$as_me: failed program was:" >&5 9331sed 's/^/| /' conftest.$ac_ext >&5 9332 9333eval "$as_ac_var=no" 9334fi 9335rm -f conftest.err conftest.$ac_objext \ 9336 conftest$ac_exeext conftest.$ac_ext 9337fi 9338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9340if test `eval echo '${'$as_ac_var'}'` = yes; then 9341 cat >>confdefs.h <<_ACEOF 9342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9343_ACEOF 9344 9345fi 9346done 9347 9348echo "$as_me:$LINENO: checking for mkstemp" >&5 9349echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 9350 ac_ext=cc 9351ac_cpp='$CXXCPP $CPPFLAGS' 9352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9355 9356 9357 cat >conftest.$ac_ext <<_ACEOF 9358 9359 /* confdefs.h. */ 9360_ACEOF 9361cat confdefs.h >>conftest.$ac_ext 9362cat >>conftest.$ac_ext <<_ACEOF 9363/* end confdefs.h. */ 9364 9365 9366#include <stdlib.h> 9367#include <unistd.h> 9368int (*f) (char *); 9369 9370 9371int 9372main () 9373{ 9374 9375 9376f = mkstemp; 9377 9378 9379 ; 9380 return 0; 9381} 9382 9383_ACEOF 9384rm -f conftest.$ac_objext conftest$ac_exeext 9385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9386 (eval $ac_link) 2>conftest.er1 9387 ac_status=$? 9388 grep -v '^ *+' conftest.er1 >conftest.err 9389 rm -f conftest.er1 9390 cat conftest.err >&5 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9392 (exit $ac_status); } && 9393 { ac_try='test -z "$ac_cxx_werror_flag" 9394 || test ! -s conftest.err' 9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9396 (eval $ac_try) 2>&5 9397 ac_status=$? 9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9399 (exit $ac_status); }; } && 9400 { ac_try='test -s conftest$ac_exeext' 9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9402 (eval $ac_try) 2>&5 9403 ac_status=$? 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9405 (exit $ac_status); }; }; then 9406 echo "$as_me:$LINENO: result: yes" >&5 9407echo "${ECHO_T}yes" >&6 9408 9409cat >>confdefs.h <<\_ACEOF 9410#define HAVE_MKSTEMP 1 9411_ACEOF 9412 9413else 9414 echo "$as_me: failed program was:" >&5 9415sed 's/^/| /' conftest.$ac_ext >&5 9416 9417echo "$as_me:$LINENO: result: no" >&5 9418echo "${ECHO_T}no" >&6 9419 case $LIBOBJS in 9420 "mkstemp.$ac_objext" | \ 9421 *" mkstemp.$ac_objext" | \ 9422 "mkstemp.$ac_objext "* | \ 9423 *" mkstemp.$ac_objext "* ) ;; 9424 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;; 9425esac 9426 9427fi 9428rm -f conftest.err conftest.$ac_objext \ 9429 conftest$ac_exeext conftest.$ac_ext 9430 ac_ext=c 9431ac_cpp='$CPP $CPPFLAGS' 9432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9434ac_compiler_gnu=$ac_cv_c_compiler_gnu 9435 9436echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 9437echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 9438if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 9439 echo $ECHO_N "(cached) $ECHO_C" >&6 9440else 9441 cat >conftest.$ac_ext <<_ACEOF 9442/* confdefs.h. */ 9443_ACEOF 9444cat confdefs.h >>conftest.$ac_ext 9445cat >>conftest.$ac_ext <<_ACEOF 9446/* end confdefs.h. */ 9447$ac_includes_default 9448int 9449main () 9450{ 9451#ifndef sys_siglist 9452 char *p = (char *) sys_siglist; 9453#endif 9454 9455 ; 9456 return 0; 9457} 9458_ACEOF 9459rm -f conftest.$ac_objext 9460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9461 (eval $ac_compile) 2>conftest.er1 9462 ac_status=$? 9463 grep -v '^ *+' conftest.er1 >conftest.err 9464 rm -f conftest.er1 9465 cat conftest.err >&5 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); } && 9468 { ac_try='test -z "$ac_c_werror_flag" 9469 || test ! -s conftest.err' 9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 (eval $ac_try) 2>&5 9472 ac_status=$? 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); }; } && 9475 { ac_try='test -s conftest.$ac_objext' 9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9477 (eval $ac_try) 2>&5 9478 ac_status=$? 9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9480 (exit $ac_status); }; }; then 9481 ac_cv_have_decl_sys_siglist=yes 9482else 9483 echo "$as_me: failed program was:" >&5 9484sed 's/^/| /' conftest.$ac_ext >&5 9485 9486ac_cv_have_decl_sys_siglist=no 9487fi 9488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9489fi 9490echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 9491echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 9492if test $ac_cv_have_decl_sys_siglist = yes; then 9493 9494cat >>confdefs.h <<_ACEOF 9495#define HAVE_DECL_SYS_SIGLIST 1 9496_ACEOF 9497 9498 9499else 9500 cat >>confdefs.h <<_ACEOF 9501#define HAVE_DECL_SYS_SIGLIST 0 9502_ACEOF 9503 9504 9505fi 9506 9507 9508 9509# checks for compiler characteristics 9510ac_ext=cc 9511ac_cpp='$CXXCPP $CPPFLAGS' 9512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9515 9516 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5 9517echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6 9518 cat >conftest.$ac_ext <<_ACEOF 9519 9520 /* confdefs.h. */ 9521_ACEOF 9522cat confdefs.h >>conftest.$ac_ext 9523cat >>conftest.$ac_ext <<_ACEOF 9524/* end confdefs.h. */ 9525 9526int 9527main () 9528{ 9529 9530 9531char *p = new char[5]; 9532delete [] p; 9533 9534 9535 ; 9536 return 0; 9537} 9538 9539_ACEOF 9540rm -f conftest.$ac_objext 9541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9542 (eval $ac_compile) 2>conftest.er1 9543 ac_status=$? 9544 grep -v '^ *+' conftest.er1 >conftest.err 9545 rm -f conftest.er1 9546 cat conftest.err >&5 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); } && 9549 { ac_try='test -z "$ac_cxx_werror_flag" 9550 || test ! -s conftest.err' 9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9552 (eval $ac_try) 2>&5 9553 ac_status=$? 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9555 (exit $ac_status); }; } && 9556 { ac_try='test -s conftest.$ac_objext' 9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9558 (eval $ac_try) 2>&5 9559 ac_status=$? 9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9561 (exit $ac_status); }; }; then 9562 echo "$as_me:$LINENO: result: yes" >&5 9563echo "${ECHO_T}yes" >&6 9564else 9565 echo "$as_me: failed program was:" >&5 9566sed 's/^/| /' conftest.$ac_ext >&5 9567 9568echo "$as_me:$LINENO: result: no" >&5 9569echo "${ECHO_T}no" >&6 9570 9571cat >>confdefs.h <<\_ACEOF 9572#define ARRAY_DELETE_NEEDS_SIZE 1 9573_ACEOF 9574 9575fi 9576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9577 ac_ext=c 9578ac_cpp='$CPP $CPPFLAGS' 9579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9581ac_compiler_gnu=$ac_cv_c_compiler_gnu 9582 9583ac_ext=cc 9584ac_cpp='$CXXCPP $CPPFLAGS' 9585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9588 9589 echo "$as_me:$LINENO: checking traditional preprocessor" >&5 9590echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6 9591 cat >conftest.$ac_ext <<_ACEOF 9592 9593 /* confdefs.h. */ 9594_ACEOF 9595cat confdefs.h >>conftest.$ac_ext 9596cat >>conftest.$ac_ext <<_ACEOF 9597/* end confdefs.h. */ 9598 9599 9600#define name2(a, b) a/**/b 9601 9602 9603int 9604main () 9605{ 9606 9607 9608int name2(foo, bar); 9609 9610 9611 ; 9612 return 0; 9613} 9614 9615_ACEOF 9616rm -f conftest.$ac_objext 9617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9618 (eval $ac_compile) 2>conftest.er1 9619 ac_status=$? 9620 grep -v '^ *+' conftest.er1 >conftest.err 9621 rm -f conftest.er1 9622 cat conftest.err >&5 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); } && 9625 { ac_try='test -z "$ac_cxx_werror_flag" 9626 || test ! -s conftest.err' 9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9628 (eval $ac_try) 2>&5 9629 ac_status=$? 9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9631 (exit $ac_status); }; } && 9632 { ac_try='test -s conftest.$ac_objext' 9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9634 (eval $ac_try) 2>&5 9635 ac_status=$? 9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9637 (exit $ac_status); }; }; then 9638 echo "$as_me:$LINENO: result: yes" >&5 9639echo "${ECHO_T}yes" >&6 9640 9641cat >>confdefs.h <<\_ACEOF 9642#define TRADITIONAL_CPP 1 9643_ACEOF 9644 9645else 9646 echo "$as_me: failed program was:" >&5 9647sed 's/^/| /' conftest.$ac_ext >&5 9648 9649echo "$as_me:$LINENO: result: no" >&5 9650echo "${ECHO_T}no" >&6 9651fi 9652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9653 ac_ext=c 9654ac_cpp='$CPP $CPPFLAGS' 9655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9657ac_compiler_gnu=$ac_cv_c_compiler_gnu 9658 9659 9660# checks for operating system services 9661echo "$as_me:$LINENO: checking w_coredump" >&5 9662echo $ECHO_N "checking w_coredump... $ECHO_C" >&6 9663 if test "$cross_compiling" = yes; then 9664 echo "$as_me:$LINENO: result: no" >&5 9665echo "${ECHO_T}no" >&6 9666else 9667 cat >conftest.$ac_ext <<_ACEOF 9668 9669 /* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674 9675 9676#include <sys/types.h> 9677#include <sys/wait.h> 9678 9679 9680int 9681main () 9682{ 9683 9684 9685main() 9686{ 9687#ifdef WCOREFLAG 9688 exit(1); 9689#else 9690 int i = 0; 9691 ((union wait *)&i)->w_coredump = 1; 9692 exit(i != 0200); 9693#endif 9694} 9695 9696 9697 ; 9698 return 0; 9699} 9700 9701_ACEOF 9702rm -f conftest$ac_exeext 9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9704 (eval $ac_link) 2>&5 9705 ac_status=$? 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9709 (eval $ac_try) 2>&5 9710 ac_status=$? 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9712 (exit $ac_status); }; }; then 9713 echo "$as_me:$LINENO: result: yes" >&5 9714echo "${ECHO_T}yes" >&6 9715 9716cat >>confdefs.h <<\_ACEOF 9717#define WCOREFLAG 0200 9718_ACEOF 9719 9720else 9721 echo "$as_me: program exited with status $ac_status" >&5 9722echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725( exit $ac_status ) 9726echo "$as_me:$LINENO: result: no" >&5 9727echo "${ECHO_T}no" >&6 9728fi 9729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9730fi 9731 9732# other random stuff 9733echo "$as_me:$LINENO: checking default value for grops -b option" >&5 9734echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6 9735 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0 9736 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5 9737echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6 9738 9739echo "$as_me:$LINENO: checking default paper size" >&5 9740echo $ECHO_N "checking default paper size... $ECHO_C" >&6 9741 groff_prefix=$prefix 9742 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix 9743 if test -z "$PAGE"; then 9744 descfile= 9745 if test -r $groff_prefix/share/groff/font/devps/DESC; then 9746 descfile=$groff_prefix/share/groff/font/devps/DESC 9747 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then 9748 descfile=$groff_prefix/lib/groff/font/devps/DESC 9749 else 9750 for f in $groff_prefix/share/groff/*/font/devps/DESC; do 9751 if test -r $f; then 9752 descfile=$f 9753 break 9754 fi 9755 done 9756 fi 9757 9758 if test -n "$descfile"; then 9759 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then 9760 PAGE=A4 9761 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then 9762 PAGE=A4 9763 fi 9764 fi 9765 fi 9766 9767 if test -z "$PAGE"; then 9768 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \ 9769 /etc/resolv.conf 2>/dev/null` 9770 if test -z "$dom"; then 9771 dom=`(domainname) 2>/dev/null | tr -d '+'` 9772 if test -z "$dom" \ 9773 || test "$dom" = '(none)'; then 9774 dom=`(hostname) 2>/dev/null | grep '\.'` 9775 fi 9776 fi 9777 # If the top-level domain is two letters and it's not `us' or `ca' 9778 # then they probably use A4 paper. 9779 case "$dom" in 9780 *.[Uu][Ss]|*.[Cc][Aa]) 9781 ;; 9782 *.[A-Za-z][A-Za-z]) 9783 PAGE=A4 ;; 9784 esac 9785 fi 9786 9787 test -n "$PAGE" || PAGE=letter 9788 if test "x$PAGE" = "xA4"; then 9789 9790cat >>confdefs.h <<\_ACEOF 9791#define PAGEA4 1 9792_ACEOF 9793 9794 fi 9795 echo "$as_me:$LINENO: result: $PAGE" >&5 9796echo "${ECHO_T}$PAGE" >&6 9797 9798echo "$as_me:$LINENO: checking for existing troff installation" >&5 9799echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6 9800 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then 9801 echo "$as_me:$LINENO: result: yes" >&5 9802echo "${ECHO_T}yes" >&6 9803 g=g 9804 else 9805 echo "$as_me:$LINENO: result: no" >&5 9806echo "${ECHO_T}no" >&6 9807 g= 9808 fi 9809 9810echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5 9811echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6 9812 sys_tmac_prefix= 9813 sys_tmac_file_prefix= 9814 for d in /usr/share/lib/tmac /usr/lib/tmac; do 9815 for t in "" tmac.; do 9816 for m in an s m; do 9817 f=$d/$t$m 9818 if test -z "$sys_tmac_prefix" \ 9819 && test -f $f \ 9820 && grep '^\.if' $f >/dev/null 2>&1; then 9821 sys_tmac_prefix=$d/$t 9822 sys_tmac_file_prefix=$t 9823 fi 9824 done 9825 done 9826 done 9827 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5 9828echo "${ECHO_T}$sys_tmac_prefix" >&6 9829 9830 9831 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5 9832echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6 9833 tmac_wrap= 9834 if test "x$sys_tmac_file_prefix" = "xtmac."; then 9835 for f in $sys_tmac_prefix*; do 9836 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 9837 case "$suff" in 9838 e) 9839 ;; 9840 *) 9841 grep "Copyright.*Free Software Foundation" $f >/dev/null \ 9842 || tmac_wrap="$tmac_wrap $suff" ;; 9843 esac 9844 done 9845 elif test -n "$sys_tmac_prefix"; then 9846 files=`echo $sys_tmac_prefix*` 9847 grep "\\.so" $files >conftest.sol 9848 for f in $files; do 9849 case "$f" in 9850 ${sys_tmac_prefix}e) 9851 ;; 9852 *.me) 9853 ;; 9854 */ms.*) 9855 ;; 9856 *) 9857 b=`basename $f` 9858 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \ 9859 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then 9860 : 9861 else 9862 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 9863 case "$suff" in 9864 tmac.*) 9865 ;; 9866 *) 9867 tmac_wrap="$tmac_wrap $suff" ;; 9868 esac 9869 fi 9870 esac 9871 done 9872 rm -f conftest.sol 9873 fi 9874 echo "$as_me:$LINENO: result: $tmac_wrap" >&5 9875echo "${ECHO_T}$tmac_wrap" >&6 9876 9877echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5 9878echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6 9879 cp ${srcdir}/src/include/nonposix.h conftest.h 9880 cat >conftest.$ac_ext <<_ACEOF 9881 9882 /* confdefs.h. */ 9883_ACEOF 9884cat confdefs.h >>conftest.$ac_ext 9885cat >>conftest.$ac_ext <<_ACEOF 9886/* end confdefs.h. */ 9887 9888 9889#include <ctype.h> 9890#include "conftest.h" 9891 9892 9893int 9894main () 9895{ 9896 9897 9898#if PATH_SEP_CHAR == ';' 9899make an error "Path separator is ';'" 9900#endif 9901 9902 9903 ; 9904 return 0; 9905} 9906 9907_ACEOF 9908rm -f conftest.$ac_objext 9909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9910 (eval $ac_compile) 2>conftest.er1 9911 ac_status=$? 9912 grep -v '^ *+' conftest.er1 >conftest.err 9913 rm -f conftest.er1 9914 cat conftest.err >&5 9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9916 (exit $ac_status); } && 9917 { ac_try='test -z "$ac_c_werror_flag" 9918 || test ! -s conftest.err' 9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9920 (eval $ac_try) 2>&5 9921 ac_status=$? 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 (exit $ac_status); }; } && 9924 { ac_try='test -s conftest.$ac_objext' 9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9926 (eval $ac_try) 2>&5 9927 ac_status=$? 9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9929 (exit $ac_status); }; }; then 9930 GROFF_PATH_SEPARATOR=":" 9931else 9932 echo "$as_me: failed program was:" >&5 9933sed 's/^/| /' conftest.$ac_ext >&5 9934 9935GROFF_PATH_SEPARATOR=";" 9936fi 9937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9938 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5 9939echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6 9940 9941 9942# Check whether --with-alt-gs or --without-alt-gs was given. 9943if test "${with_alt_gs+set}" = set; then 9944 withval="$with_alt_gs" 9945 ALT_GHOSTSCRIPT_PROGS="$withval" 9946else 9947 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2" 9948fi; 9949 9950 9951 9952# Check whether --with-gs or --without-gs was given. 9953if test "${with_gs+set}" = set; then 9954 withval="$with_gs" 9955 GHOSTSCRIPT=$withval 9956else 9957 if test -n "$ac_tool_prefix"; then 9958 for ac_prog in $ALT_GHOSTSCRIPT_PROGS 9959 do 9960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9961set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9962echo "$as_me:$LINENO: checking for $ac_word" >&5 9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9964if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then 9965 echo $ECHO_N "(cached) $ECHO_C" >&6 9966else 9967 if test -n "$GHOSTSCRIPT"; then 9968 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test. 9969else 9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9971for as_dir in $PATH 9972do 9973 IFS=$as_save_IFS 9974 test -z "$as_dir" && as_dir=. 9975 for ac_exec_ext in '' $ac_executable_extensions; do 9976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9977 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog" 9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9979 break 2 9980 fi 9981done 9982done 9983 9984fi 9985fi 9986GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT 9987if test -n "$GHOSTSCRIPT"; then 9988 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5 9989echo "${ECHO_T}$GHOSTSCRIPT" >&6 9990else 9991 echo "$as_me:$LINENO: result: no" >&5 9992echo "${ECHO_T}no" >&6 9993fi 9994 9995 test -n "$GHOSTSCRIPT" && break 9996 done 9997fi 9998if test -z "$GHOSTSCRIPT"; then 9999 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT 10000 for ac_prog in $ALT_GHOSTSCRIPT_PROGS 10001do 10002 # Extract the first word of "$ac_prog", so it can be a program name with args. 10003set dummy $ac_prog; ac_word=$2 10004echo "$as_me:$LINENO: checking for $ac_word" >&5 10005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10006if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then 10007 echo $ECHO_N "(cached) $ECHO_C" >&6 10008else 10009 if test -n "$ac_ct_GHOSTSCRIPT"; then 10010 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test. 10011else 10012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10013for as_dir in $PATH 10014do 10015 IFS=$as_save_IFS 10016 test -z "$as_dir" && as_dir=. 10017 for ac_exec_ext in '' $ac_executable_extensions; do 10018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10019 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog" 10020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10021 break 2 10022 fi 10023done 10024done 10025 10026fi 10027fi 10028ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT 10029if test -n "$ac_ct_GHOSTSCRIPT"; then 10030 echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5 10031echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6 10032else 10033 echo "$as_me:$LINENO: result: no" >&5 10034echo "${ECHO_T}no" >&6 10035fi 10036 10037 test -n "$ac_ct_GHOSTSCRIPT" && break 10038done 10039 10040 if test "x$ac_ct_GHOSTSCRIPT" = x; then 10041 GHOSTSCRIPT="missing" 10042 else 10043 if test "$build" != "$host"; then 10044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 10045whose name does not start with the host triplet. If you think this 10046configuration is useful to you, please write to autoconf@gnu.org." >&5 10047echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 10048whose name does not start with the host triplet. If you think this 10049configuration is useful to you, please write to autoconf@gnu.org." >&2;} 10050 fi 10051 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT 10052 fi 10053fi 10054 10055fi; 10056 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing 10057 10058 make_html=html 10059 make_install_html=install_html 10060 10061 missing= 10062 # Extract the first word of "pnmcut", so it can be a program name with args. 10063set dummy pnmcut; ac_word=$2 10064echo "$as_me:$LINENO: checking for $ac_word" >&5 10065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10066if test "${ac_cv_prog_pnmcut+set}" = set; then 10067 echo $ECHO_N "(cached) $ECHO_C" >&6 10068else 10069 if test -n "$pnmcut"; then 10070 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test. 10071else 10072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10073for as_dir in $PATH 10074do 10075 IFS=$as_save_IFS 10076 test -z "$as_dir" && as_dir=. 10077 for ac_exec_ext in '' $ac_executable_extensions; do 10078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10079 ac_cv_prog_pnmcut="found" 10080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10081 break 2 10082 fi 10083done 10084done 10085 10086 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing" 10087fi 10088fi 10089pnmcut=$ac_cv_prog_pnmcut 10090if test -n "$pnmcut"; then 10091 echo "$as_me:$LINENO: result: $pnmcut" >&5 10092echo "${ECHO_T}$pnmcut" >&6 10093else 10094 echo "$as_me:$LINENO: result: no" >&5 10095echo "${ECHO_T}no" >&6 10096fi 10097 10098 if test $pnmcut = missing; then 10099 missing="$missing \`pnmcut'" 10100 fi;# Extract the first word of "pnmcrop", so it can be a program name with args. 10101set dummy pnmcrop; ac_word=$2 10102echo "$as_me:$LINENO: checking for $ac_word" >&5 10103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10104if test "${ac_cv_prog_pnmcrop+set}" = set; then 10105 echo $ECHO_N "(cached) $ECHO_C" >&6 10106else 10107 if test -n "$pnmcrop"; then 10108 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test. 10109else 10110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10111for as_dir in $PATH 10112do 10113 IFS=$as_save_IFS 10114 test -z "$as_dir" && as_dir=. 10115 for ac_exec_ext in '' $ac_executable_extensions; do 10116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10117 ac_cv_prog_pnmcrop="found" 10118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10119 break 2 10120 fi 10121done 10122done 10123 10124 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing" 10125fi 10126fi 10127pnmcrop=$ac_cv_prog_pnmcrop 10128if test -n "$pnmcrop"; then 10129 echo "$as_me:$LINENO: result: $pnmcrop" >&5 10130echo "${ECHO_T}$pnmcrop" >&6 10131else 10132 echo "$as_me:$LINENO: result: no" >&5 10133echo "${ECHO_T}no" >&6 10134fi 10135 10136 if test $pnmcrop = missing; then 10137 missing="$missing \`pnmcrop'" 10138 fi;# Extract the first word of "pnmtopng", so it can be a program name with args. 10139set dummy pnmtopng; ac_word=$2 10140echo "$as_me:$LINENO: checking for $ac_word" >&5 10141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10142if test "${ac_cv_prog_pnmtopng+set}" = set; then 10143 echo $ECHO_N "(cached) $ECHO_C" >&6 10144else 10145 if test -n "$pnmtopng"; then 10146 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test. 10147else 10148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10149for as_dir in $PATH 10150do 10151 IFS=$as_save_IFS 10152 test -z "$as_dir" && as_dir=. 10153 for ac_exec_ext in '' $ac_executable_extensions; do 10154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10155 ac_cv_prog_pnmtopng="found" 10156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10157 break 2 10158 fi 10159done 10160done 10161 10162 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing" 10163fi 10164fi 10165pnmtopng=$ac_cv_prog_pnmtopng 10166if test -n "$pnmtopng"; then 10167 echo "$as_me:$LINENO: result: $pnmtopng" >&5 10168echo "${ECHO_T}$pnmtopng" >&6 10169else 10170 echo "$as_me:$LINENO: result: no" >&5 10171echo "${ECHO_T}no" >&6 10172fi 10173 10174 if test $pnmtopng = missing; then 10175 missing="$missing \`pnmtopng'" 10176 fi;# Extract the first word of "psselect", so it can be a program name with args. 10177set dummy psselect; ac_word=$2 10178echo "$as_me:$LINENO: checking for $ac_word" >&5 10179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10180if test "${ac_cv_prog_psselect+set}" = set; then 10181 echo $ECHO_N "(cached) $ECHO_C" >&6 10182else 10183 if test -n "$psselect"; then 10184 ac_cv_prog_psselect="$psselect" # Let the user override the test. 10185else 10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10187for as_dir in $PATH 10188do 10189 IFS=$as_save_IFS 10190 test -z "$as_dir" && as_dir=. 10191 for ac_exec_ext in '' $ac_executable_extensions; do 10192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10193 ac_cv_prog_psselect="found" 10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10195 break 2 10196 fi 10197done 10198done 10199 10200 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing" 10201fi 10202fi 10203psselect=$ac_cv_prog_psselect 10204if test -n "$psselect"; then 10205 echo "$as_me:$LINENO: result: $psselect" >&5 10206echo "${ECHO_T}$psselect" >&6 10207else 10208 echo "$as_me:$LINENO: result: no" >&5 10209echo "${ECHO_T}no" >&6 10210fi 10211 10212 if test $psselect = missing; then 10213 missing="$missing \`psselect'" 10214 fi;# Extract the first word of "pnmtops", so it can be a program name with args. 10215set dummy pnmtops; ac_word=$2 10216echo "$as_me:$LINENO: checking for $ac_word" >&5 10217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10218if test "${ac_cv_prog_pnmtops+set}" = set; then 10219 echo $ECHO_N "(cached) $ECHO_C" >&6 10220else 10221 if test -n "$pnmtops"; then 10222 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test. 10223else 10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10225for as_dir in $PATH 10226do 10227 IFS=$as_save_IFS 10228 test -z "$as_dir" && as_dir=. 10229 for ac_exec_ext in '' $ac_executable_extensions; do 10230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10231 ac_cv_prog_pnmtops="found" 10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10233 break 2 10234 fi 10235done 10236done 10237 10238 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing" 10239fi 10240fi 10241pnmtops=$ac_cv_prog_pnmtops 10242if test -n "$pnmtops"; then 10243 echo "$as_me:$LINENO: result: $pnmtops" >&5 10244echo "${ECHO_T}$pnmtops" >&6 10245else 10246 echo "$as_me:$LINENO: result: no" >&5 10247echo "${ECHO_T}no" >&6 10248fi 10249 10250 if test $pnmtops = missing; then 10251 missing="$missing \`pnmtops'" 10252 fi; 10253 10254 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'" 10255 10256 if test -n "$missing"; then 10257 plural=`set $missing; test $# -gt 1 && echo s` 10258 missing=`set $missing 10259 missing="" 10260 while test $# -gt 0 10261 do 10262 case $# in 10263 1) missing="$missing$1" ;; 10264 2) missing="$missing$1 and " ;; 10265 *) missing="$missing$1, " ;; 10266 esac 10267 shift 10268 done 10269 echo $missing` 10270 10271 make_html= 10272 make_install_html= 10273 10274 { echo "$as_me:$LINENO: WARNING: missing program$plural: 10275 10276 The program$plural 10277 $missing 10278 cannot be found in the PATH. 10279 Consequently, groff's HTML backend (grohtml) will not work properly; 10280 therefore, it will neither be possible to prepare, nor to install, 10281 documentation in HTML format. 10282 " >&5 10283echo "$as_me: WARNING: missing program$plural: 10284 10285 The program$plural 10286 $missing 10287 cannot be found in the PATH. 10288 Consequently, groff's HTML backend (grohtml) will not work properly; 10289 therefore, it will neither be possible to prepare, nor to install, 10290 documentation in HTML format. 10291 " >&2;} 10292 fi 10293 10294 10295 10296 10297# Check whether --with-alt-awk or --without-alt-awk was given. 10298if test "${with_alt_awk+set}" = set; then 10299 withval="$with_alt_awk" 10300 ALT_AWK_PROGS="$withval" 10301else 10302 ALT_AWK_PROGS="gawk mawk nawk awk" 10303fi; 10304 10305 10306 10307# Check whether --with-awk or --without-awk was given. 10308if test "${with_awk+set}" = set; then 10309 withval="$with_awk" 10310 AWK=$withval 10311else 10312 if test -n "$ac_tool_prefix"; then 10313 for ac_prog in $ALT_AWK_PROGS 10314 do 10315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10317echo "$as_me:$LINENO: checking for $ac_word" >&5 10318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10319if test "${ac_cv_prog_AWK+set}" = set; then 10320 echo $ECHO_N "(cached) $ECHO_C" >&6 10321else 10322 if test -n "$AWK"; then 10323 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10324else 10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10326for as_dir in $PATH 10327do 10328 IFS=$as_save_IFS 10329 test -z "$as_dir" && as_dir=. 10330 for ac_exec_ext in '' $ac_executable_extensions; do 10331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10332 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog" 10333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10334 break 2 10335 fi 10336done 10337done 10338 10339fi 10340fi 10341AWK=$ac_cv_prog_AWK 10342if test -n "$AWK"; then 10343 echo "$as_me:$LINENO: result: $AWK" >&5 10344echo "${ECHO_T}$AWK" >&6 10345else 10346 echo "$as_me:$LINENO: result: no" >&5 10347echo "${ECHO_T}no" >&6 10348fi 10349 10350 test -n "$AWK" && break 10351 done 10352fi 10353if test -z "$AWK"; then 10354 ac_ct_AWK=$AWK 10355 for ac_prog in $ALT_AWK_PROGS 10356do 10357 # Extract the first word of "$ac_prog", so it can be a program name with args. 10358set dummy $ac_prog; ac_word=$2 10359echo "$as_me:$LINENO: checking for $ac_word" >&5 10360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10361if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then 10362 echo $ECHO_N "(cached) $ECHO_C" >&6 10363else 10364 if test -n "$ac_ct_AWK"; then 10365 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test. 10366else 10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10368for as_dir in $PATH 10369do 10370 IFS=$as_save_IFS 10371 test -z "$as_dir" && as_dir=. 10372 for ac_exec_ext in '' $ac_executable_extensions; do 10373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10374 ac_cv_prog_ac_ct_AWK="$ac_prog" 10375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10376 break 2 10377 fi 10378done 10379done 10380 10381fi 10382fi 10383ac_ct_AWK=$ac_cv_prog_ac_ct_AWK 10384if test -n "$ac_ct_AWK"; then 10385 echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5 10386echo "${ECHO_T}$ac_ct_AWK" >&6 10387else 10388 echo "$as_me:$LINENO: result: no" >&5 10389echo "${ECHO_T}no" >&6 10390fi 10391 10392 test -n "$ac_ct_AWK" && break 10393done 10394 10395 if test "x$ac_ct_AWK" = x; then 10396 AWK="missing" 10397 else 10398 if test "$build" != "$host"; then 10399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 10400whose name does not start with the host triplet. If you think this 10401configuration is useful to you, please write to autoconf@gnu.org." >&5 10402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 10403whose name does not start with the host triplet. If you think this 10404configuration is useful to you, please write to autoconf@gnu.org." >&2;} 10405 fi 10406 AWK=$ac_ct_AWK 10407 fi 10408fi 10409 10410fi; 10411 test "$AWK" = "no" && AWK=missing 10412 10413 10414 10415 make_pdfdoc=pdfdoc 10416 make_install_pdfdoc=install_pdfdoc 10417 10418 missing="" 10419 test "$AWK" = missing && missing="\`awk'" 10420 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'" 10421 if test -n "$missing"; then 10422 plural=`set $missing; test $# -eq 2 && echo s` 10423 test x$plural = xs \ 10424 && missing=`set $missing; echo "$1 and $2"` \ 10425 || missing=`echo $missing` 10426 10427 make_pdfdoc= 10428 make_install_pdfdoc= 10429 10430 { echo "$as_me:$LINENO: WARNING: missing program$plural: 10431 10432 The program$plural $missing cannot be found in the PATH. 10433 Consequently, groff's PDF formatter (pdfroff) will not work properly; 10434 therefore, it will neither be possible to prepare, nor to install, 10435 documentation in PDF format. 10436 " >&5 10437echo "$as_me: WARNING: missing program$plural: 10438 10439 The program$plural $missing cannot be found in the PATH. 10440 Consequently, groff's PDF formatter (pdfroff) will not work properly; 10441 therefore, it will neither be possible to prepare, nor to install, 10442 documentation in PDF format. 10443 " >&2;} 10444 fi 10445 10446 10447 10448echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5 10449echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6 10450 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then 10451 echo "$as_me:$LINENO: result: yes" >&5 10452echo "${ECHO_T}yes" >&6 10453 pnmtops_nosetpage="pnmtops -nosetpage" 10454 else 10455 echo "$as_me:$LINENO: result: no" >&5 10456echo "${ECHO_T}no" >&6 10457 pnmtops_nosetpage="pnmtops" 10458 fi 10459 10460 10461 ac_config_files="$ac_config_files stamp-h" 10462 10463 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile" 10464 10465 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests" 10466 10467 ac_config_files="$ac_config_files test-groff" 10468 10469cat >confcache <<\_ACEOF 10470# This file is a shell script that caches the results of configure 10471# tests run on this system so they can be shared between configure 10472# scripts and configure runs, see configure's option --config-cache. 10473# It is not useful on other systems. If it contains results you don't 10474# want to keep, you may remove or edit it. 10475# 10476# config.status only pays attention to the cache file if you give it 10477# the --recheck option to rerun configure. 10478# 10479# `ac_cv_env_foo' variables (set or unset) will be overridden when 10480# loading this file, other *unset* `ac_cv_foo' will be assigned the 10481# following values. 10482 10483_ACEOF 10484 10485# The following way of writing the cache mishandles newlines in values, 10486# but we know of no workaround that is simple, portable, and efficient. 10487# So, don't put newlines in cache variables' values. 10488# Ultrix sh set writes to stderr and can't be redirected directly, 10489# and sets the high bit in the cache file unless we assign to the vars. 10490{ 10491 (set) 2>&1 | 10492 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10493 *ac_space=\ *) 10494 # `set' does not quote correctly, so add quotes (double-quote 10495 # substitution turns \\\\ into \\, and sed turns \\ into \). 10496 sed -n \ 10497 "s/'/'\\\\''/g; 10498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10499 ;; 10500 *) 10501 # `set' quotes correctly as required by POSIX, so do not add quotes. 10502 sed -n \ 10503 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10504 ;; 10505 esac; 10506} | 10507 sed ' 10508 t clear 10509 : clear 10510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10511 t end 10512 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10513 : end' >>confcache 10514if diff $cache_file confcache >/dev/null 2>&1; then :; else 10515 if test -w $cache_file; then 10516 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10517 cat confcache >$cache_file 10518 else 10519 echo "not updating unwritable cache $cache_file" 10520 fi 10521fi 10522rm -f confcache 10523 10524test "x$prefix" = xNONE && prefix=$ac_default_prefix 10525# Let make expand exec_prefix. 10526test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10527 10528# VPATH may cause trouble with some makes, so we remove $(srcdir), 10529# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10530# trailing colons and then remove the whole line if VPATH becomes empty 10531# (actually we leave an empty line to preserve line numbers). 10532if test "x$srcdir" = x.; then 10533 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10534s/:*\$(srcdir):*/:/; 10535s/:*\${srcdir}:*/:/; 10536s/:*@srcdir@:*/:/; 10537s/^\([^=]*=[ ]*\):*/\1/; 10538s/:*$//; 10539s/^[^=]*=[ ]*$//; 10540}' 10541fi 10542 10543DEFS=-DHAVE_CONFIG_H 10544 10545ac_libobjs= 10546ac_ltlibobjs= 10547for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10548 # 1. Remove the extension, and $U if already installed. 10549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10550 ac_i=`echo "$ac_i" | sed "$ac_script"` 10551 # 2. Add them. 10552 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 10553 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 10554done 10555LIBOBJS=$ac_libobjs 10556 10557LTLIBOBJS=$ac_ltlibobjs 10558 10559 10560 10561: ${CONFIG_STATUS=./config.status} 10562ac_clean_files_save=$ac_clean_files 10563ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10564{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10565echo "$as_me: creating $CONFIG_STATUS" >&6;} 10566cat >$CONFIG_STATUS <<_ACEOF 10567#! $SHELL 10568# Generated by $as_me. 10569# Run this file to recreate the current configuration. 10570# Compiler output produced by configure, useful for debugging 10571# configure, is in config.log if it exists. 10572 10573debug=false 10574ac_cs_recheck=false 10575ac_cs_silent=false 10576SHELL=\${CONFIG_SHELL-$SHELL} 10577_ACEOF 10578 10579cat >>$CONFIG_STATUS <<\_ACEOF 10580## --------------------- ## 10581## M4sh Initialization. ## 10582## --------------------- ## 10583 10584# Be Bourne compatible 10585if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10586 emulate sh 10587 NULLCMD=: 10588 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10589 # is contrary to our usage. Disable this feature. 10590 alias -g '${1+"$@"}'='"$@"' 10591 setopt NO_GLOB_SUBST 10592elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 10593 set -o posix 10594fi 10595BIN_SH=xpg4; export BIN_SH # for Tru64 10596DUALCASE=1; export DUALCASE # for MKS sh 10597 10598 10599# PATH needs CR 10600# Avoid depending upon Character Ranges. 10601as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10602as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10603as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10604as_cr_digits='0123456789' 10605as_cr_alnum=$as_cr_Letters$as_cr_digits 10606 10607# The user is always right. 10608if test "${PATH_SEPARATOR+set}" != set; then 10609 echo "#! /bin/sh" >conf$$.sh 10610 echo "exit 0" >>conf$$.sh 10611 chmod +x conf$$.sh 10612 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10613 PATH_SEPARATOR=';' 10614 else 10615 PATH_SEPARATOR=: 10616 fi 10617 rm -f conf$$.sh 10618fi 10619 10620# Support unset when possible. 10621if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10622 as_unset=unset 10623else 10624 as_unset=false 10625fi 10626 10627 10628# Find who we are. Look in the path if we contain no path at all 10629# relative or not. 10630case $0 in 10631 *[\\/]* ) as_myself=$0 ;; 10632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10633for as_dir in $PATH 10634do 10635 IFS=$as_save_IFS 10636 test -z "$as_dir" && as_dir=. 10637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10638done 10639 10640 ;; 10641esac 10642# We did not find ourselves, most probably we were run as `sh COMMAND' 10643# in which case we are not to be found in the path. 10644if test "x$as_myself" = x; then 10645 as_myself=$0 10646fi 10647if test ! -f "$as_myself"; then 10648 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5 10649echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;} 10650 { (exit 1); exit 1; }; } 10651fi 10652 10653# Work around bugs in pre-3.0 UWIN ksh. 10654for as_var in ENV MAIL MAILPATH 10655do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10656done 10657PS1='$ ' 10658PS2='> ' 10659PS4='+ ' 10660 10661# NLS nuisances. 10662for as_var in \ 10663 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10664 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10665 LC_TELEPHONE LC_TIME 10666do 10667 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10668 eval $as_var=C; export $as_var 10669 else 10670 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10671 fi 10672done 10673 10674# Required to use basename. 10675if expr a : '\(a\)' >/dev/null 2>&1; then 10676 as_expr=expr 10677else 10678 as_expr=false 10679fi 10680 10681if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 10682 as_basename=basename 10683else 10684 as_basename=false 10685fi 10686 10687 10688# Name of the executable. 10689as_me=`$as_basename "$0" || 10690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10691 X"$0" : 'X\(//\)$' \| \ 10692 X"$0" : 'X\(/\)$' \| \ 10693 . : '\(.\)' 2>/dev/null || 10694echo X/"$0" | 10695 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 10696 /^X\/\(\/\/\)$/{ s//\1/; q; } 10697 /^X\/\(\/\).*/{ s//\1/; q; } 10698 s/.*/./; q'` 10699 10700 10701 10702 10703 as_lineno_1=$LINENO 10704 as_lineno_2=$LINENO 10705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10706 test "x$as_lineno_1" != "x$as_lineno_2" && 10707 test "x$as_lineno_3" = "x$as_lineno_2" || { 10708 10709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10710 # uniformly replaced by the line number. The first 'sed' inserts a 10711 # line-number line after each line using $LINENO; the second 'sed' 10712 # does the real work. The second script uses 'N' to pair each 10713 # line-number line with the line containing $LINENO, and appends 10714 # trailing '-' during substitution so that $LINENO is not a special 10715 # case at line end. 10716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10717 # scripts with optimization help from Paolo Bonzini. Blame Lee 10718 # E. McMahon (1931-1989) for sed's syntax. :-) 10719 sed -n ' 10720 p 10721 /[$]LINENO/= 10722 ' <$as_myself | 10723 sed ' 10724 s,[$]LINENO.*,&-, 10725 t lineno 10726 b 10727 : lineno 10728 N 10729 : loop 10730 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2, 10731 t loop 10732 s,-\n.*,, 10733 ' >$as_me.lineno && 10734 chmod +x $as_me.lineno || 10735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10736echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10737 { (exit 1); exit 1; }; } 10738 10739 # Don't try to exec as it changes $[0], causing all sort of problems 10740 # (the dirname of $[0] is not the place where we might find the 10741 # original and so on. Autoconf is especially sensible to this). 10742 . ./$as_me.lineno 10743 # Exit status is that of the last command. 10744 exit 10745} 10746 10747 10748case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10749 *c*,-n*) ECHO_N= ECHO_C=' 10750' ECHO_T=' ' ;; 10751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10753esac 10754 10755if expr a : '\(a\)' >/dev/null 2>&1; then 10756 as_expr=expr 10757else 10758 as_expr=false 10759fi 10760 10761rm -f conf$$ conf$$.exe conf$$.file 10762echo >conf$$.file 10763if ln -s conf$$.file conf$$ 2>/dev/null; then 10764 # We could just check for DJGPP; but this test a) works b) is more generic 10765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10766 if test -f conf$$.exe; then 10767 # Don't use ln at all; we don't have any links 10768 as_ln_s='cp -p' 10769 else 10770 as_ln_s='ln -s' 10771 fi 10772elif ln conf$$.file conf$$ 2>/dev/null; then 10773 as_ln_s=ln 10774else 10775 as_ln_s='cp -p' 10776fi 10777rm -f conf$$ conf$$.exe conf$$.file 10778 10779if mkdir -p . 2>/dev/null; then 10780 as_mkdir_p=: 10781else 10782 test -d ./-p && rmdir ./-p 10783 as_mkdir_p=false 10784fi 10785 10786as_executable_p="test -f" 10787 10788# Sed expression to map a string onto a valid CPP name. 10789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10790 10791# Sed expression to map a string onto a valid variable name. 10792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10793 10794 10795# IFS 10796# We need space, tab and new line, in precisely that order. 10797as_nl=' 10798' 10799IFS=" $as_nl" 10800 10801# CDPATH. 10802$as_unset CDPATH 10803 10804exec 6>&1 10805 10806# Open the log real soon, to keep \$[0] and so on meaningful, and to 10807# report actual input values of CONFIG_FILES etc. instead of their 10808# values after options handling. Logging --version etc. is OK. 10809exec 5>>config.log 10810{ 10811 echo 10812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10813## Running $as_me. ## 10814_ASBOX 10815} >&5 10816cat >&5 <<_CSEOF 10817 10818This file was extended by $as_me, which was 10819generated by GNU Autoconf 2.59b. Invocation command line was 10820 10821 CONFIG_FILES = $CONFIG_FILES 10822 CONFIG_HEADERS = $CONFIG_HEADERS 10823 CONFIG_LINKS = $CONFIG_LINKS 10824 CONFIG_COMMANDS = $CONFIG_COMMANDS 10825 $ $0 $@ 10826 10827_CSEOF 10828echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 10829echo >&5 10830_ACEOF 10831 10832# Files that config.status was made for. 10833if test -n "$ac_config_files"; then 10834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 10835fi 10836 10837if test -n "$ac_config_headers"; then 10838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 10839fi 10840 10841if test -n "$ac_config_links"; then 10842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10843fi 10844 10845if test -n "$ac_config_commands"; then 10846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10847fi 10848 10849cat >>$CONFIG_STATUS <<\_ACEOF 10850 10851ac_cs_usage="\ 10852\`$as_me' instantiates files from templates according to the 10853current configuration. 10854 10855Usage: $0 [OPTIONS] [FILE]... 10856 10857 -h, --help print this help, then exit 10858 -V, --version print version number, then exit 10859 -q, --quiet do not print progress messages 10860 -d, --debug don't remove temporary files 10861 --recheck update $as_me by reconfiguring in the same conditions 10862 --file=FILE[:TEMPLATE] 10863 instantiate the configuration file FILE 10864 --header=FILE[:TEMPLATE] 10865 instantiate the configuration header FILE 10866 10867Configuration files: 10868$config_files 10869 10870Configuration headers: 10871$config_headers 10872 10873Report bugs to <bug-autoconf@gnu.org>." 10874_ACEOF 10875 10876cat >>$CONFIG_STATUS <<_ACEOF 10877ac_cs_version="\\ 10878config.status 10879configured by $0, generated by GNU Autoconf 2.59b, 10880 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10881 10882Copyright (C) 2004 Free Software Foundation, Inc. 10883This config.status script is free software; the Free Software Foundation 10884gives unlimited permission to copy, distribute and modify it." 10885srcdir=$srcdir 10886INSTALL="$INSTALL" 10887_ACEOF 10888 10889cat >>$CONFIG_STATUS <<\_ACEOF 10890# If no file are specified by the user, then we need to provide default 10891# value. By we need to know if files were specified by the user. 10892ac_need_defaults=: 10893while test $# != 0 10894do 10895 case $1 in 10896 --*=*) 10897 ac_option=`expr "x$1" : 'x\([^=]*\)='` 10898 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 10899 ac_shift=: 10900 ;; 10901 -*) 10902 ac_option=$1 10903 ac_optarg=$2 10904 ac_shift=shift 10905 ;; 10906 *) # This is not an option, so the user has probably given explicit 10907 # arguments. 10908 ac_option=$1 10909 ac_need_defaults=false;; 10910 esac 10911 10912 case $ac_option in 10913 # Handling of the options. 10914_ACEOF 10915cat >>$CONFIG_STATUS <<\_ACEOF 10916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10917 ac_cs_recheck=: ;; 10918 --version | --vers* | -V ) 10919 echo "$ac_cs_version"; exit 0 ;; 10920 --he | --h) 10921 # Conflict between --help and --header 10922 { { echo "$as_me:$LINENO: error: ambiguous option: $1 10923Try \`$0 --help' for more information." >&5 10924echo "$as_me: error: ambiguous option: $1 10925Try \`$0 --help' for more information." >&2;} 10926 { (exit 1); exit 1; }; };; 10927 --help | --hel | -h ) 10928 echo "$ac_cs_usage"; exit 0 ;; 10929 --debug | --d* | -d ) 10930 debug=: ;; 10931 --file | --fil | --fi | --f ) 10932 $ac_shift 10933 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10934 ac_need_defaults=false;; 10935 --header | --heade | --head | --hea ) 10936 $ac_shift 10937 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 10938 ac_need_defaults=false;; 10939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10940 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10941 ac_cs_silent=: ;; 10942 10943 # This is an error. 10944 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 10945Try \`$0 --help' for more information." >&5 10946echo "$as_me: error: unrecognized option: $1 10947Try \`$0 --help' for more information." >&2;} 10948 { (exit 1); exit 1; }; } ;; 10949 10950 *) ac_config_targets="$ac_config_targets $1" ;; 10951 10952 esac 10953 shift 10954done 10955 10956ac_configure_extra_args= 10957 10958if $ac_cs_silent; then 10959 exec 6>/dev/null 10960 ac_configure_extra_args="$ac_configure_extra_args --silent" 10961fi 10962 10963_ACEOF 10964cat >>$CONFIG_STATUS <<_ACEOF 10965if \$ac_cs_recheck; then 10966 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10967 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10968fi 10969 10970_ACEOF 10971 10972 10973 10974 10975 10976cat >>$CONFIG_STATUS <<\_ACEOF 10977for ac_config_target in $ac_config_targets 10978do 10979 case "$ac_config_target" in 10980 # Handling of arguments. 10981 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;; 10982 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10983 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 10984 "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;; 10985 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;; 10986 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;; 10987 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;; 10988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10989echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10990 { (exit 1); exit 1; }; };; 10991 esac 10992done 10993 10994# If the user did not use the arguments to specify the items to instantiate, 10995# then the envvar interface is used. Set only those that are not. 10996# We use the long form for the default assignment because of an extremely 10997# bizarre bug on SunOS 4.1.3. 10998if $ac_need_defaults; then 10999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11001fi 11002 11003# Have a temporary directory for convenience. Make it in the build tree 11004# simply because there is no reason to put it here, and in addition, 11005# creating and moving files from /tmp can sometimes cause problems. 11006# Create a temporary directory, and hook for its removal unless debugging. 11007$debug || 11008{ 11009 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0 11010 trap '{ (exit 1); exit 1; }' 1 2 13 15 11011} 11012 11013# Create a (secure) tmp directory for tmp files. 11014 11015{ 11016 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11017 test -n "$tmp" && test -d "$tmp" 11018} || 11019{ 11020 tmp=./confstat$$-$RANDOM 11021 (umask 077 && mkdir $tmp) 11022} || 11023{ 11024 echo "$me: cannot create a temporary directory in ." >&2 11025 { (exit 1); exit 1; } 11026} 11027 11028_ACEOF 11029 11030cat >>$CONFIG_STATUS <<_ACEOF 11031 11032# 11033# CONFIG_FILES section. 11034# 11035 11036# No need to generate the scripts if there are no CONFIG_FILES. 11037# This happens for instance when ./config.status config.h 11038if test -n "\$CONFIG_FILES"; then 11039 # Protect against being on the right side of a sed subst in config.status. 11040 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11041 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11042s,@SHELL@,$SHELL,;t t 11043s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11044s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11045s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11046s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11047s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11048s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11049s,@exec_prefix@,$exec_prefix,;t t 11050s,@prefix@,$prefix,;t t 11051s,@program_transform_name@,$program_transform_name,;t t 11052s,@bindir@,$bindir,;t t 11053s,@sbindir@,$sbindir,;t t 11054s,@libexecdir@,$libexecdir,;t t 11055s,@datadir@,$datadir,;t t 11056s,@sysconfdir@,$sysconfdir,;t t 11057s,@sharedstatedir@,$sharedstatedir,;t t 11058s,@localstatedir@,$localstatedir,;t t 11059s,@libdir@,$libdir,;t t 11060s,@includedir@,$includedir,;t t 11061s,@oldincludedir@,$oldincludedir,;t t 11062s,@infodir@,$infodir,;t t 11063s,@mandir@,$mandir,;t t 11064s,@build_alias@,$build_alias,;t t 11065s,@host_alias@,$host_alias,;t t 11066s,@target_alias@,$target_alias,;t t 11067s,@DEFS@,$DEFS,;t t 11068s,@ECHO_C@,$ECHO_C,;t t 11069s,@ECHO_N@,$ECHO_N,;t t 11070s,@ECHO_T@,$ECHO_T,;t t 11071s,@LIBS@,$LIBS,;t t 11072s,@CC@,$CC,;t t 11073s,@CFLAGS@,$CFLAGS,;t t 11074s,@LDFLAGS@,$LDFLAGS,;t t 11075s,@CPPFLAGS@,$CPPFLAGS,;t t 11076s,@ac_ct_CC@,$ac_ct_CC,;t t 11077s,@EXEEXT@,$EXEEXT,;t t 11078s,@OBJEXT@,$OBJEXT,;t t 11079s,@CXX@,$CXX,;t t 11080s,@CXXFLAGS@,$CXXFLAGS,;t t 11081s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11082s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t 11083s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t 11084s,@CPP@,$CPP,;t t 11085s,@X_CFLAGS@,$X_CFLAGS,;t t 11086s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 11087s,@X_LIBS@,$X_LIBS,;t t 11088s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 11089s,@XDEVDIRS@,$XDEVDIRS,;t t 11090s,@XPROGDIRS@,$XPROGDIRS,;t t 11091s,@XLIBDIRS@,$XLIBDIRS,;t t 11092s,@appresdir@,$appresdir,;t t 11093s,@LPR@,$LPR,;t t 11094s,@LP@,$LP,;t t 11095s,@LPQ@,$LPQ,;t t 11096s,@PSPRINT@,$PSPRINT,;t t 11097s,@DVIPRINT@,$DVIPRINT,;t t 11098s,@PERLPATH@,$PERLPATH,;t t 11099s,@YACC@,$YACC,;t t 11100s,@RANLIB@,$RANLIB,;t t 11101s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11102s,@INSTALL_INFO@,$INSTALL_INFO,;t t 11103s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11104s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11105s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11106s,@LN_S@,$LN_S,;t t 11107s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t 11108s,@GREP@,$GREP,;t t 11109s,@EGREP@,$EGREP,;t t 11110s,@LIBC@,$LIBC,;t t 11111s,@LIBM@,$LIBM,;t t 11112s,@LIBOBJS@,$LIBOBJS,;t t 11113s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t 11114s,@PAGE@,$PAGE,;t t 11115s,@g@,$g,;t t 11116s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t 11117s,@tmac_wrap@,$tmac_wrap,;t t 11118s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t 11119s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t 11120s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t 11121s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t 11122s,@pnmcut@,$pnmcut,;t t 11123s,@pnmcrop@,$pnmcrop,;t t 11124s,@pnmtopng@,$pnmtopng,;t t 11125s,@psselect@,$psselect,;t t 11126s,@pnmtops@,$pnmtops,;t t 11127s,@make_html@,$make_html,;t t 11128s,@make_install_html@,$make_install_html,;t t 11129s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t 11130s,@AWK@,$AWK,;t t 11131s,@ac_ct_AWK@,$ac_ct_AWK,;t t 11132s,@make_pdfdoc@,$make_pdfdoc,;t t 11133s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t 11134s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t 11135s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11136CEOF 11137 11138_ACEOF 11139 11140 cat >>$CONFIG_STATUS <<\_ACEOF 11141 # Split the substitutions into bite-sized pieces for seds with 11142 # small command number limits, like on Digital OSF/1 and HP-UX. 11143 ac_max_sed_lines=48 11144 ac_sed_frag=1 # Number of current file. 11145 ac_beg=1 # First line for current file. 11146 ac_end=$ac_max_sed_lines # Line after last line for current file. 11147 ac_more_lines=: 11148 ac_sed_cmds= 11149 while $ac_more_lines; do 11150 if test $ac_beg -gt 1; then 11151 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11152 else 11153 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11154 fi 11155 if test ! -s $tmp/subs.frag; then 11156 ac_more_lines=false 11157 else 11158 # The purpose of the label and of the branching condition is to 11159 # speed up the sed processing (if there are no `@' at all, there 11160 # is no need to browse any of the substitutions). 11161 # These are the two extra sed commands mentioned above. 11162 (echo ':t 11163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11164 if test -z "$ac_sed_cmds"; then 11165 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11166 else 11167 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11168 fi 11169 ac_sed_frag=`expr $ac_sed_frag + 1` 11170 ac_beg=$ac_end 11171 ac_end=`expr $ac_end + $ac_max_sed_lines` 11172 fi 11173 done 11174 if test -z "$ac_sed_cmds"; then 11175 ac_sed_cmds=cat 11176 fi 11177fi # test -n "$CONFIG_FILES" 11178 11179_ACEOF 11180cat >>$CONFIG_STATUS <<\_ACEOF 11181for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11183 case $ac_file in 11184 - | *:- | *:-:* ) # input from stdin 11185 cat >$tmp/stdin 11186 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11188 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11190 * ) ac_file_in=$ac_file.in ;; 11191 esac 11192 11193 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11194 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11195$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11196 X"$ac_file" : 'X\(//\)[^/]' \| \ 11197 X"$ac_file" : 'X\(//\)$' \| \ 11198 X"$ac_file" : 'X\(/\)' \| \ 11199 . : '\(.\)' 2>/dev/null || 11200echo X"$ac_file" | 11201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11202 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11203 /^X\(\/\/\)$/{ s//\1/; q; } 11204 /^X\(\/\).*/{ s//\1/; q; } 11205 s/.*/./; q'` 11206 { if $as_mkdir_p; then 11207 test -d "$ac_dir" || mkdir -p "$ac_dir" 11208 else 11209 as_dir="$ac_dir" 11210 as_dirs= 11211 while test ! -d "$as_dir"; do 11212 as_dirs="$as_dir $as_dirs" 11213 as_dir=`(dirname "$as_dir") 2>/dev/null || 11214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11215 X"$as_dir" : 'X\(//\)[^/]' \| \ 11216 X"$as_dir" : 'X\(//\)$' \| \ 11217 X"$as_dir" : 'X\(/\)' \| \ 11218 . : '\(.\)' 2>/dev/null || 11219echo X"$as_dir" | 11220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11221 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11222 /^X\(\/\/\)$/{ s//\1/; q; } 11223 /^X\(\/\).*/{ s//\1/; q; } 11224 s/.*/./; q'` 11225 done 11226 test ! -n "$as_dirs" || mkdir $as_dirs 11227 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11228echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11229 { (exit 1); exit 1; }; }; } 11230 11231 ac_builddir=. 11232 11233if test "$ac_dir" != .; then 11234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11235 # A "../" for each directory in $ac_dir_suffix. 11236 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11237else 11238 ac_dir_suffix= ac_top_builddir= 11239fi 11240 11241case $srcdir in 11242 .) # No --srcdir option. We are building in place. 11243 ac_srcdir=. 11244 if test -z "$ac_top_builddir"; then 11245 ac_top_srcdir=. 11246 else 11247 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11248 fi ;; 11249 [\\/]* | ?:[\\/]* ) # Absolute name. 11250 ac_srcdir=$srcdir$ac_dir_suffix; 11251 ac_top_srcdir=$srcdir ;; 11252 *) # Relative name. 11253 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11254 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11255esac 11256 11257# Do not use `cd foo && pwd` to compute absolute names, because 11258# the directories may not exist. 11259case `pwd` in 11260.) ac_abs_builddir="$ac_dir";; 11261*) 11262 case "$ac_dir" in 11263 .) ac_abs_builddir=`pwd`;; 11264 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 11265 *) ac_abs_builddir=`pwd`/"$ac_dir";; 11266 esac;; 11267esac 11268case $ac_abs_builddir in 11269.) ac_abs_top_builddir=${ac_top_builddir}.;; 11270*) 11271 case ${ac_top_builddir}. in 11272 .) ac_abs_top_builddir=$ac_abs_builddir;; 11273 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11274 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 11275 esac;; 11276esac 11277case $ac_abs_builddir in 11278.) ac_abs_srcdir=$ac_srcdir;; 11279*) 11280 case $ac_srcdir in 11281 .) ac_abs_srcdir=$ac_abs_builddir;; 11282 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11283 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 11284 esac;; 11285esac 11286case $ac_abs_builddir in 11287.) ac_abs_top_srcdir=$ac_top_srcdir;; 11288*) 11289 case $ac_top_srcdir in 11290 .) ac_abs_top_srcdir=$ac_abs_builddir;; 11291 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11292 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 11293 esac;; 11294esac 11295 11296 11297 case $INSTALL in 11298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11299 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11300 esac 11301 11302 if test x"$ac_file" != x-; then 11303 { echo "$as_me:$LINENO: creating $ac_file" >&5 11304echo "$as_me: creating $ac_file" >&6;} 11305 rm -f "$ac_file" 11306 fi 11307 # Let's still pretend it is `configure' which instantiates (i.e., don't 11308 # use $as_me), people would be surprised to read: 11309 # /* config.h. Generated by config.status. */ 11310 if test x"$ac_file" = x-; then 11311 configure_input= 11312 else 11313 configure_input="$ac_file. " 11314 fi 11315 configure_input=$configure_input"Generated from `echo $ac_file_in | 11316 sed 's,.*/,,'` by configure." 11317 11318 # First look for the input files in the build tree, otherwise in the 11319 # src tree. 11320 ac_file_inputs=`IFS=: 11321 for f in $ac_file_in; do 11322 case $f in 11323 -) echo $tmp/stdin ;; 11324 [\\/$]*) 11325 # Absolute (can't be DOS-style, as IFS=:) 11326 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11327echo "$as_me: error: cannot find input file: $f" >&2;} 11328 { (exit 1); exit 1; }; } 11329 echo "$f";; 11330 *) # Relative 11331 if test -f "$f"; then 11332 # Build tree 11333 echo "$f" 11334 elif test -f "$srcdir/$f"; then 11335 # Source tree 11336 echo "$srcdir/$f" 11337 else 11338 # /dev/null tree 11339 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11340echo "$as_me: error: cannot find input file: $f" >&2;} 11341 { (exit 1); exit 1; }; } 11342 fi;; 11343 esac 11344 done` || { (exit 1); exit 1; } 11345_ACEOF 11346cat >>$CONFIG_STATUS <<_ACEOF 11347 sed "$ac_vpsub 11348$extrasub 11349_ACEOF 11350cat >>$CONFIG_STATUS <<\_ACEOF 11351:t 11352/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11353s,@configure_input@,$configure_input,;t t 11354s,@srcdir@,$ac_srcdir,;t t 11355s,@abs_srcdir@,$ac_abs_srcdir,;t t 11356s,@top_srcdir@,$ac_top_srcdir,;t t 11357s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11358s,@builddir@,$ac_builddir,;t t 11359s,@abs_builddir@,$ac_abs_builddir,;t t 11360s,@top_builddir@,$ac_top_builddir,;t t 11361s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11362s,@INSTALL@,$ac_INSTALL,;t t 11363" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11364 rm -f $tmp/stdin 11365 if test x"$ac_file" != x-; then 11366 mv $tmp/out $ac_file 11367 else 11368 cat $tmp/out 11369 rm -f $tmp/out 11370 fi 11371 11372 # Run the commands associated with the file. 11373 case $ac_file in 11374 stamp-h ) echo timestamp > stamp-h ;; 11375 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;; 11376 test-groff ) chmod +x test-groff ;; 11377 esac 11378done 11379_ACEOF 11380cat >>$CONFIG_STATUS <<\_ACEOF 11381 11382# 11383# CONFIG_HEADER section. 11384# 11385 11386# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 11387# NAME is the cpp macro being defined and VALUE is the value it is being given. 11388# 11389# ac_d sets the value in "#define NAME VALUE" lines. 11390ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 11391ac_dB='[ ].*$,\1#\2' 11392ac_dC=' ' 11393ac_dD=',;t' 11394# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 11395ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 11396ac_uB='$,\1#\2define\3' 11397ac_uC=' ' 11398ac_uD=',;t' 11399 11400for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 11401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11402 case $ac_file in 11403 - | *:- | *:-:* ) # input from stdin 11404 cat >$tmp/stdin 11405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11409 * ) ac_file_in=$ac_file.in ;; 11410 esac 11411 11412 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 11413echo "$as_me: creating $ac_file" >&6;} 11414 11415 # First look for the input files in the build tree, otherwise in the 11416 # src tree. 11417 ac_file_inputs=`IFS=: 11418 for f in $ac_file_in; do 11419 case $f in 11420 -) echo $tmp/stdin ;; 11421 [\\/$]*) 11422 # Absolute (can't be DOS-style, as IFS=:) 11423 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11424echo "$as_me: error: cannot find input file: $f" >&2;} 11425 { (exit 1); exit 1; }; } 11426 # Quote $f, to prevent DOS file names from being IFS'd. 11427 echo "$f";; 11428 *) # Relative 11429 if test -f "$f"; then 11430 # Build tree 11431 echo "$f" 11432 elif test -f "$srcdir/$f"; then 11433 # Source tree 11434 echo "$srcdir/$f" 11435 else 11436 # /dev/null tree 11437 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11438echo "$as_me: error: cannot find input file: $f" >&2;} 11439 { (exit 1); exit 1; }; } 11440 fi;; 11441 esac 11442 done` || { (exit 1); exit 1; } 11443 # Remove the trailing spaces. 11444 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 11445 11446_ACEOF 11447 11448# Transform confdefs.h into two sed scripts, `conftest.defines' and 11449# `conftest.undefs', that substitutes the proper values into 11450# config.h.in to produce config.h. The first handles `#define' 11451# templates, and the second `#undef' templates. 11452# And first: Protect against being on the right side of a sed subst in 11453# config.status. Protect against being in an unquoted here document 11454# in config.status. 11455rm -f conftest.defines conftest.undefs 11456# Using a here document instead of a string reduces the quoting nightmare. 11457# Putting comments in sed scripts is not portable. 11458# 11459# `end' is used to avoid that the second main sed command (meant for 11460# 0-ary CPP macros) applies to n-ary macro definitions. 11461# See the Autoconf documentation for `clear'. 11462cat >confdef2sed.sed <<\_ACEOF 11463s/[\\&,]/\\&/g 11464s,[\\$`],\\&,g 11465t clear 11466: clear 11467s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 11468t end 11469s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 11470: end 11471_ACEOF 11472# If some macros were called several times there might be several times 11473# the same #defines, which is useless. Nevertheless, we may not want to 11474# sort them, since we want the *last* AC-DEFINE to be honored. 11475uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 11476sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 11477rm -f confdef2sed.sed 11478 11479# This sed command replaces #undef with comments. This is necessary, for 11480# example, in the case of _POSIX_SOURCE, which is predefined and required 11481# on some systems where configure will not decide to define it. 11482cat >>conftest.undefs <<\_ACEOF 11483s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 11484_ACEOF 11485 11486# Break up conftest.defines because some shells have a limit on the size 11487# of here documents, and old seds have small limits too (100 cmds). 11488echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 11489echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 11490echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 11491echo ' :' >>$CONFIG_STATUS 11492rm -f conftest.tail 11493while grep . conftest.defines >/dev/null 11494do 11495 # Write a limited-size here document to $tmp/defines.sed. 11496 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 11497 # Speed up: don't consider the non `#define' lines. 11498 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 11499 # Work around the forget-to-reset-the-flag bug. 11500 echo 't clr' >>$CONFIG_STATUS 11501 echo ': clr' >>$CONFIG_STATUS 11502 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 11503 echo 'CEOF 11504 sed -f $tmp/defines.sed $tmp/in >$tmp/out 11505 rm -f $tmp/in 11506 mv $tmp/out $tmp/in 11507' >>$CONFIG_STATUS 11508 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 11509 rm -f conftest.defines 11510 mv conftest.tail conftest.defines 11511done 11512rm -f conftest.defines 11513echo ' fi # grep' >>$CONFIG_STATUS 11514echo >>$CONFIG_STATUS 11515 11516# Break up conftest.undefs because some shells have a limit on the size 11517# of here documents, and old seds have small limits too (100 cmds). 11518echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 11519rm -f conftest.tail 11520while grep . conftest.undefs >/dev/null 11521do 11522 # Write a limited-size here document to $tmp/undefs.sed. 11523 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 11524 # Speed up: don't consider the non `#undef' 11525 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 11526 # Work around the forget-to-reset-the-flag bug. 11527 echo 't clr' >>$CONFIG_STATUS 11528 echo ': clr' >>$CONFIG_STATUS 11529 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 11530 echo 'CEOF 11531 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 11532 rm -f $tmp/in 11533 mv $tmp/out $tmp/in 11534' >>$CONFIG_STATUS 11535 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 11536 rm -f conftest.undefs 11537 mv conftest.tail conftest.undefs 11538done 11539rm -f conftest.undefs 11540 11541cat >>$CONFIG_STATUS <<\_ACEOF 11542 # Let's still pretend it is `configure' which instantiates (i.e., don't 11543 # use $as_me), people would be surprised to read: 11544 # /* config.h. Generated by config.status. */ 11545 if test x"$ac_file" = x-; then 11546 echo "/* Generated by configure. */" >$tmp/config.h 11547 else 11548 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 11549 fi 11550 cat $tmp/in >>$tmp/config.h 11551 rm -f $tmp/in 11552 if test x"$ac_file" != x-; then 11553 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 11554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 11555echo "$as_me: $ac_file is unchanged" >&6;} 11556 else 11557 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11558$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11559 X"$ac_file" : 'X\(//\)[^/]' \| \ 11560 X"$ac_file" : 'X\(//\)$' \| \ 11561 X"$ac_file" : 'X\(/\)' \| \ 11562 . : '\(.\)' 2>/dev/null || 11563echo X"$ac_file" | 11564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11565 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11566 /^X\(\/\/\)$/{ s//\1/; q; } 11567 /^X\(\/\).*/{ s//\1/; q; } 11568 s/.*/./; q'` 11569 { if $as_mkdir_p; then 11570 test -d "$ac_dir" || mkdir -p "$ac_dir" 11571 else 11572 as_dir="$ac_dir" 11573 as_dirs= 11574 while test ! -d "$as_dir"; do 11575 as_dirs="$as_dir $as_dirs" 11576 as_dir=`(dirname "$as_dir") 2>/dev/null || 11577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11578 X"$as_dir" : 'X\(//\)[^/]' \| \ 11579 X"$as_dir" : 'X\(//\)$' \| \ 11580 X"$as_dir" : 'X\(/\)' \| \ 11581 . : '\(.\)' 2>/dev/null || 11582echo X"$as_dir" | 11583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11584 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11585 /^X\(\/\/\)$/{ s//\1/; q; } 11586 /^X\(\/\).*/{ s//\1/; q; } 11587 s/.*/./; q'` 11588 done 11589 test ! -n "$as_dirs" || mkdir $as_dirs 11590 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11591echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11592 { (exit 1); exit 1; }; }; } 11593 11594 rm -f $ac_file 11595 mv $tmp/config.h $ac_file 11596 fi 11597 else 11598 cat $tmp/config.h 11599 rm -f $tmp/config.h 11600 fi 11601done 11602_ACEOF 11603 11604cat >>$CONFIG_STATUS <<\_ACEOF 11605 11606{ (exit 0); exit 0; } 11607_ACEOF 11608chmod +x $CONFIG_STATUS 11609ac_clean_files=$ac_clean_files_save 11610 11611 11612# configure is writing to config.log, and then calls config.status. 11613# config.status does its own redirection, appending to config.log. 11614# Unfortunately, on DOS this fails, as config.log is still kept open 11615# by configure, so config.status won't be able to write to it; its 11616# output is simply discarded. So we exec the FD to /dev/null, 11617# effectively closing config.log, so it can be properly (re)opened and 11618# appended to by config.status. When coming back to configure, we 11619# need to make the FD available again. 11620if test "$no_create" != yes; then 11621 ac_cs_success=: 11622 ac_config_status_args= 11623 test "$silent" = yes && 11624 ac_config_status_args="$ac_config_status_args --quiet" 11625 exec 5>/dev/null 11626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11627 exec 5>>config.log 11628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11629 # would make configure fail if this is the last instruction. 11630 $ac_cs_success || { (exit 1); exit 1; } 11631fi 11632 11633 11634if test -z "$groff_no_x"; then 11635 if test "x$with_appresdir" = "x"; then 11636 { echo "$as_me:$LINENO: 11637 11638 The application resource file for gxditview will be installed as 11639 11640 $appresdir/GXditview 11641 11642 (an existing file will be saved as \`GXditview.old'). 11643 To install it into a different directory, say, \`/etc/gxditview', 11644 add \`--with-appresdir=/etc/gxditview' to the configure script 11645 command line options and rerun it. The environment variable 11646 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash), 11647 omitting the \`gxditview' part which is automatically appended by 11648 the X11 searching routines for resource files. More details can be 11649 found in the X(7) manual page. 11650 " >&5 11651echo "$as_me: 11652 11653 The application resource file for gxditview will be installed as 11654 11655 $appresdir/GXditview 11656 11657 (an existing file will be saved as \`GXditview.old'). 11658 To install it into a different directory, say, \`/etc/gxditview', 11659 add \`--with-appresdir=/etc/gxditview' to the configure script 11660 command line options and rerun it. The environment variable 11661 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash), 11662 omitting the \`gxditview' part which is automatically appended by 11663 the X11 searching routines for resource files. More details can be 11664 found in the X(7) manual page. 11665 " >&6;} 11666 fi 11667 fi 11668