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