configure revision 894e0ac8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20121002. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="charproc.c" 108# Factoring default headers for most tests. 109ac_includes_default="\ 110#include <stdio.h> 111#if HAVE_SYS_TYPES_H 112# include <sys/types.h> 113#endif 114#if HAVE_SYS_STAT_H 115# include <sys/stat.h> 116#endif 117#if STDC_HEADERS 118# include <stdlib.h> 119# include <stddef.h> 120#else 121# if HAVE_STDLIB_H 122# include <stdlib.h> 123# endif 124#endif 125#if HAVE_STRING_H 126# if !STDC_HEADERS && HAVE_MEMORY_H 127# include <memory.h> 128# endif 129# include <string.h> 130#endif 131#if HAVE_STRINGS_H 132# include <strings.h> 133#endif 134#if HAVE_INTTYPES_H 135# include <inttypes.h> 136#else 137# if HAVE_STDINT_H 138# include <stdint.h> 139# endif 140#endif 141#if HAVE_UNISTD_H 142# include <unistd.h> 143#endif" 144 145# Initialize some variables set by options. 146ac_init_help= 147ac_init_version=false 148# The variables have the same names as the options, with 149# dashes changed to underlines. 150cache_file=/dev/null 151exec_prefix=NONE 152no_create= 153no_recursion= 154prefix=NONE 155program_prefix=NONE 156program_suffix=NONE 157program_transform_name=s,x,x, 158silent= 159site= 160srcdir= 161verbose= 162x_includes=NONE 163x_libraries=NONE 164 165# Installation directory options. 166# These are left unexpanded so users can "make install exec_prefix=/foo" 167# and all the variables that are supposed to be based on exec_prefix 168# by default will actually change. 169# Use braces instead of parens because sh, perl, etc. also accept them. 170bindir='${exec_prefix}/bin' 171sbindir='${exec_prefix}/sbin' 172libexecdir='${exec_prefix}/libexec' 173datarootdir='${prefix}/share' 174datadir='${datarootdir}' 175sysconfdir='${prefix}/etc' 176sharedstatedir='${prefix}/com' 177localstatedir='${prefix}/var' 178libdir='${exec_prefix}/lib' 179includedir='${prefix}/include' 180oldincludedir='/usr/include' 181infodir='${datarootdir}/info' 182mandir='${datarootdir}/man' 183 184# Identity of this package. 185PACKAGE_NAME= 186PACKAGE_TARNAME= 187PACKAGE_VERSION= 188PACKAGE_STRING= 189PACKAGE_BUGREPORT= 190 191ac_prev= 192for ac_option 193do 194 # If the previous option needs an argument, assign it. 195 if test -n "$ac_prev"; then 196 eval "$ac_prev=\$ac_option" 197 ac_prev= 198 continue 199 fi 200 201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 202 203 # Accept the important Cygnus configure options, so we can diagnose typos. 204 205 case $ac_option in 206 207 -bindir | --bindir | --bindi | --bind | --bin | --bi) 208 ac_prev=bindir ;; 209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 210 bindir=$ac_optarg ;; 211 212 -build | --build | --buil | --bui | --bu) 213 ac_prev=build_alias ;; 214 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 215 build_alias=$ac_optarg ;; 216 217 -cache-file | --cache-file | --cache-fil | --cache-fi \ 218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 219 ac_prev=cache_file ;; 220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 222 cache_file=$ac_optarg ;; 223 224 --config-cache | -C) 225 cache_file=config.cache ;; 226 227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 228 ac_prev=datadir ;; 229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 230 | --da=*) 231 datadir=$ac_optarg ;; 232 233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 234 | --dataroo | --dataro | --datar) 235 ac_prev=datarootdir ;; 236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 238 datarootdir=$ac_optarg ;; 239 240 -disable-* | --disable-*) 241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 242 # Reject names that are not valid shell variable names. 243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 245 { (exit 1); exit 1; }; } 246 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 247 eval "enable_$ac_feature=no" ;; 248 249 -enable-* | --enable-*) 250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 251 # Reject names that are not valid shell variable names. 252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 254 { (exit 1); exit 1; }; } 255 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 256 case $ac_option in 257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 258 *) ac_optarg=yes ;; 259 esac 260 eval "enable_$ac_feature='$ac_optarg'" ;; 261 262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 264 | --exec | --exe | --ex) 265 ac_prev=exec_prefix ;; 266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 268 | --exec=* | --exe=* | --ex=*) 269 exec_prefix=$ac_optarg ;; 270 271 -gas | --gas | --ga | --g) 272 # Obsolete; use --with-gas. 273 with_gas=yes ;; 274 275 -help | --help | --hel | --he | -h) 276 ac_init_help=long ;; 277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 278 ac_init_help=recursive ;; 279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 280 ac_init_help=short ;; 281 282 -host | --host | --hos | --ho) 283 ac_prev=host_alias ;; 284 -host=* | --host=* | --hos=* | --ho=*) 285 host_alias=$ac_optarg ;; 286 287 -includedir | --includedir | --includedi | --included | --include \ 288 | --includ | --inclu | --incl | --inc) 289 ac_prev=includedir ;; 290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 291 | --includ=* | --inclu=* | --incl=* | --inc=*) 292 includedir=$ac_optarg ;; 293 294 -infodir | --infodir | --infodi | --infod | --info | --inf) 295 ac_prev=infodir ;; 296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 297 infodir=$ac_optarg ;; 298 299 -libdir | --libdir | --libdi | --libd) 300 ac_prev=libdir ;; 301 -libdir=* | --libdir=* | --libdi=* | --libd=*) 302 libdir=$ac_optarg ;; 303 304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 305 | --libexe | --libex | --libe) 306 ac_prev=libexecdir ;; 307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 308 | --libexe=* | --libex=* | --libe=*) 309 libexecdir=$ac_optarg ;; 310 311 -localstatedir | --localstatedir | --localstatedi | --localstated \ 312 | --localstate | --localstat | --localsta | --localst \ 313 | --locals | --local | --loca | --loc | --lo) 314 ac_prev=localstatedir ;; 315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 318 localstatedir=$ac_optarg ;; 319 320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 321 ac_prev=mandir ;; 322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 323 mandir=$ac_optarg ;; 324 325 -nfp | --nfp | --nf) 326 # Obsolete; use --without-fp. 327 with_fp=no ;; 328 329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 330 | --no-cr | --no-c) 331 no_create=yes ;; 332 333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 335 no_recursion=yes ;; 336 337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 339 | --oldin | --oldi | --old | --ol | --o) 340 ac_prev=oldincludedir ;; 341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 344 oldincludedir=$ac_optarg ;; 345 346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 347 ac_prev=prefix ;; 348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 349 prefix=$ac_optarg ;; 350 351 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 352 | --program-pre | --program-pr | --program-p) 353 ac_prev=program_prefix ;; 354 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 356 program_prefix=$ac_optarg ;; 357 358 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 359 | --program-suf | --program-su | --program-s) 360 ac_prev=program_suffix ;; 361 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 363 program_suffix=$ac_optarg ;; 364 365 -program-transform-name | --program-transform-name \ 366 | --program-transform-nam | --program-transform-na \ 367 | --program-transform-n | --program-transform- \ 368 | --program-transform | --program-transfor \ 369 | --program-transfo | --program-transf \ 370 | --program-trans | --program-tran \ 371 | --progr-tra | --program-tr | --program-t) 372 ac_prev=program_transform_name ;; 373 -program-transform-name=* | --program-transform-name=* \ 374 | --program-transform-nam=* | --program-transform-na=* \ 375 | --program-transform-n=* | --program-transform-=* \ 376 | --program-transform=* | --program-transfor=* \ 377 | --program-transfo=* | --program-transf=* \ 378 | --program-trans=* | --program-tran=* \ 379 | --progr-tra=* | --program-tr=* | --program-t=*) 380 program_transform_name=$ac_optarg ;; 381 382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 383 | -silent | --silent | --silen | --sile | --sil) 384 silent=yes ;; 385 386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 387 ac_prev=sbindir ;; 388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 389 | --sbi=* | --sb=*) 390 sbindir=$ac_optarg ;; 391 392 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 394 | --sharedst | --shareds | --shared | --share | --shar \ 395 | --sha | --sh) 396 ac_prev=sharedstatedir ;; 397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 400 | --sha=* | --sh=*) 401 sharedstatedir=$ac_optarg ;; 402 403 -site | --site | --sit) 404 ac_prev=site ;; 405 -site=* | --site=* | --sit=*) 406 site=$ac_optarg ;; 407 408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 409 ac_prev=srcdir ;; 410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 411 srcdir=$ac_optarg ;; 412 413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 414 | --syscon | --sysco | --sysc | --sys | --sy) 415 ac_prev=sysconfdir ;; 416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 418 sysconfdir=$ac_optarg ;; 419 420 -target | --target | --targe | --targ | --tar | --ta | --t) 421 ac_prev=target_alias ;; 422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 423 target_alias=$ac_optarg ;; 424 425 -v | -verbose | --verbose | --verbos | --verbo | --verb) 426 verbose=yes ;; 427 428 -version | --version | --versio | --versi | --vers | -V) 429 ac_init_version=: ;; 430 431 -with-* | --with-*) 432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 433 # Reject names that are not valid shell variable names. 434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 435 { echo "$as_me: error: invalid package name: $ac_package" >&2 436 { (exit 1); exit 1; }; } 437 ac_package=`echo $ac_package| sed 's/-/_/g'` 438 case $ac_option in 439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 440 *) ac_optarg=yes ;; 441 esac 442 eval "with_$ac_package='$ac_optarg'" ;; 443 444 -without-* | --without-*) 445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 446 # Reject names that are not valid shell variable names. 447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 448 { echo "$as_me: error: invalid package name: $ac_package" >&2 449 { (exit 1); exit 1; }; } 450 ac_package=`echo $ac_package | sed 's/-/_/g'` 451 eval "with_$ac_package=no" ;; 452 453 --x) 454 # Obsolete; use --with-x. 455 with_x=yes ;; 456 457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 458 | --x-incl | --x-inc | --x-in | --x-i) 459 ac_prev=x_includes ;; 460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 462 x_includes=$ac_optarg ;; 463 464 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 466 ac_prev=x_libraries ;; 467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 469 x_libraries=$ac_optarg ;; 470 471 -*) { echo "$as_me: error: unrecognized option: $ac_option 472Try \`$0 --help' for more information." >&2 473 { (exit 1); exit 1; }; } 474 ;; 475 476 *=*) 477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 478 # Reject names that are not valid shell variable names. 479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 481 { (exit 1); exit 1; }; } 482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 483 eval "$ac_envvar='$ac_optarg'" 484 export $ac_envvar ;; 485 486 *) 487 # FIXME: should be removed in autoconf 3.0. 488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 492 ;; 493 494 esac 495done 496 497if test -n "$ac_prev"; then 498 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 499 { echo "$as_me: error: missing argument to $ac_option" >&2 500 { (exit 1); exit 1; }; } 501fi 502 503# Be sure to have absolute paths. 504for ac_var in exec_prefix prefix 505do 506 eval ac_val=$`echo $ac_var` 507 case $ac_val in 508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 510 { (exit 1); exit 1; }; };; 511 esac 512done 513 514# Be sure to have absolute paths. 515for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 516 localstatedir libdir includedir oldincludedir infodir mandir 517do 518 eval ac_val=$`echo $ac_var` 519 case $ac_val in 520 [\\/$]* | ?:[\\/]* ) ;; 521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 522 { (exit 1); exit 1; }; };; 523 esac 524done 525 526# There might be people who depend on the old broken behavior: `$host' 527# used to hold the argument of --host etc. 528build=$build_alias 529host=$host_alias 530target=$target_alias 531 532# FIXME: should be removed in autoconf 3.0. 533if test "x$host_alias" != x; then 534 if test "x$build_alias" = x; then 535 cross_compiling=maybe 536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 537 If a cross compiler is detected then cross compile mode will be used." >&2 538 elif test "x$build_alias" != "x$host_alias"; then 539 cross_compiling=yes 540 fi 541fi 542 543ac_tool_prefix= 544test -n "$host_alias" && ac_tool_prefix=$host_alias- 545 546test "$silent" = yes && exec 6>/dev/null 547 548# Find the source files, if location was not specified. 549if test -z "$srcdir"; then 550 ac_srcdir_defaulted=yes 551 # Try the directory containing this script, then its parent. 552 ac_prog=$0 553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 555 srcdir=$ac_confdir 556 if test ! -r $srcdir/$ac_unique_file; then 557 srcdir=.. 558 fi 559else 560 ac_srcdir_defaulted=no 561fi 562if test ! -r $srcdir/$ac_unique_file; then 563 if test "$ac_srcdir_defaulted" = yes; then 564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 565 { (exit 1); exit 1; }; } 566 else 567 { echo "$as_me: error: cannot find sources in $srcdir" >&2 568 { (exit 1); exit 1; }; } 569 fi 570fi 571srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 572ac_env_build_alias_set=${build_alias+set} 573ac_env_build_alias_value=$build_alias 574ac_cv_env_build_alias_set=${build_alias+set} 575ac_cv_env_build_alias_value=$build_alias 576ac_env_host_alias_set=${host_alias+set} 577ac_env_host_alias_value=$host_alias 578ac_cv_env_host_alias_set=${host_alias+set} 579ac_cv_env_host_alias_value=$host_alias 580ac_env_target_alias_set=${target_alias+set} 581ac_env_target_alias_value=$target_alias 582ac_cv_env_target_alias_set=${target_alias+set} 583ac_cv_env_target_alias_value=$target_alias 584ac_env_CC_set=${CC+set} 585ac_env_CC_value=$CC 586ac_cv_env_CC_set=${CC+set} 587ac_cv_env_CC_value=$CC 588ac_env_CFLAGS_set=${CFLAGS+set} 589ac_env_CFLAGS_value=$CFLAGS 590ac_cv_env_CFLAGS_set=${CFLAGS+set} 591ac_cv_env_CFLAGS_value=$CFLAGS 592ac_env_LDFLAGS_set=${LDFLAGS+set} 593ac_env_LDFLAGS_value=$LDFLAGS 594ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 595ac_cv_env_LDFLAGS_value=$LDFLAGS 596ac_env_CPPFLAGS_set=${CPPFLAGS+set} 597ac_env_CPPFLAGS_value=$CPPFLAGS 598ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 599ac_cv_env_CPPFLAGS_value=$CPPFLAGS 600ac_env_CPP_set=${CPP+set} 601ac_env_CPP_value=$CPP 602ac_cv_env_CPP_set=${CPP+set} 603ac_cv_env_CPP_value=$CPP 604 605# 606# Report the --help message. 607# 608if test "$ac_init_help" = "long"; then 609 # Omit some internal or obsolete options to make the list less imposing. 610 # This message is too long to be a string in the A/UX 3.1 sh. 611 cat <<EOF 612\`configure' configures this package to adapt to many kinds of systems. 613 614Usage: $0 [OPTION]... [VAR=VALUE]... 615 616To assign environment variables (e.g., CC, CFLAGS...), specify them as 617VAR=VALUE. See below for descriptions of some of the useful variables. 618 619Defaults for the options are specified in brackets. 620 621Configuration: 622 -h, --help display this help and exit 623 --help=short display options specific to this package 624 --help=recursive display the short help of all the included packages 625 -V, --version display version information and exit 626 -q, --quiet, --silent do not print \`checking...' messages 627 --cache-file=FILE cache test results in FILE [disabled] 628 -C, --config-cache alias for \`--cache-file=config.cache' 629 -n, --no-create do not create output files 630 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 631 632EOF 633 634 cat <<EOF 635Installation directories: 636 --prefix=PREFIX install architecture-independent files in PREFIX 637 [$ac_default_prefix] 638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 639 [PREFIX] 640 641By default, \`make install' will install all the files in 642\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 643an installation prefix other than \`$ac_default_prefix' using \`--prefix', 644for instance \`--prefix=\$HOME'. 645 646For better control, use the options below. 647 648Fine tuning of the installation directories: 649 --bindir=DIR user executables [EPREFIX/bin] 650 --sbindir=DIR system admin executables [EPREFIX/sbin] 651 --libexecdir=DIR program executables [EPREFIX/libexec] 652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 656 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 657 --libdir=DIR object code libraries [EPREFIX/lib] 658 --includedir=DIR C header files [PREFIX/include] 659 --oldincludedir=DIR C header files for non-gcc [/usr/include] 660 --infodir=DIR info documentation [DATAROOTDIR/info] 661 --mandir=DIR man documentation [DATAROOTDIR/man] 662EOF 663 664 cat <<\EOF 665 666Program names: 667 --program-prefix=PREFIX prepend PREFIX to installed program names 668 --program-suffix=SUFFIX append SUFFIX to installed program names 669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 670 671X features: 672 --x-includes=DIR X include files are in DIR 673 --x-libraries=DIR X library files are in DIR 674 675System types: 676 --build=BUILD configure for building on BUILD [guessed] 677 --host=HOST build programs to run on HOST [BUILD] 678EOF 679fi 680 681if test -n "$ac_init_help"; then 682 683 cat <<\EOF 684 685Optional Features: 686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 688 689Optional Packages: 690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 692 693Compile/Install Options: 694 --disable-full-tgetent disable check for full tgetent function 695 --with-app-class=XXX override X applications class (default XTerm) 696 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 697 --with-icon-name=XXXX override icon name (default: xterm-color) 698 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm) 699 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 700 --with-icondir=DIR directory in which to install icons for desktop 701 --with-icon-theme=XXX install icons into desktop theme (hicolor) 702 --disable-desktop disable install of xterm desktop files 703 --with-desktop-category=XXX one or more desktop catgories or auto 704 --with-reference=XXX program to use as permissions-reference 705 --with-xterm-symlink=XXX make symbolic link to installed xterm 706 --disable-openpty disable openpty, prefer other interfaces 707 --disable-setuid disable setuid in xterm, do not install setuid/setgid 708 --disable-setgid disable setgid in xterm, do not install setuid/setgid 709 --with-setuid=XXX use the given setuid user 710 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 711 --with-utempter use utempter library for access to utmp 712 --with-tty-group=XXX use XXX for the tty-group 713 --with-x use the X Window System 714 --with-pkg-config{=path} enable/disable use of pkg-config 715 --with-xpm=DIR use Xpm library for colored icon, may specify path 716 --with-Xaw3d link with Xaw 3d library 717 --with-neXtaw link with neXT Athena library 718 --with-XawPlus link with Athena-Plus library 719 --enable-narrowproto enable narrow prototypes for X libraries 720 --disable-imake disable use of imake for definitions 721Terminal Configuration: 722 --with-terminal-id=V set default decTerminalID (default: vt420) 723 --with-terminal-type=T set default $TERM (default: xterm) 724 --enable-backarrow-key set default backarrowKey resource (default: true) 725 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 726 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 727 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 728 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 729 --with-own-terminfo=P set default $TERMINFO (default: from environment) 730Optional Features: 731 --disable-active-icon disable X11R6.3 active-icon feature 732 --disable-ansi-color disable ANSI color 733 --disable-16-color disable 16-color support 734 --enable-256-color enable 256-color support 735 --enable-88-color enable 88-color support 736 --disable-blink-cursor disable support for blinking cursor 737 --enable-broken-osc allow broken Linux OSC-strings 738 --disable-broken-st disallow broken string-terminators 739 --disable-c1-print disallow -k8 option for printable 128-159 740 --disable-bold-color disable PC-style mapping of bold colors 741 --disable-color-class disable separate color class resources 742 --disable-color-mode disable default colorMode resource 743 --disable-highlighting disable support for color highlighting 744 --disable-doublechars disable support for double-size chars 745 --disable-boxchars disable fallback-support for box chars 746 --enable-exec-xterm enable "spawn-new-terminal" action 747 --enable-double-buffer enable double-buffering 748 --disable-freetype disable freetype library-support 749 --with-freetype-config configure script to use for FreeType 750 --with-freetype-cflags -D/-I options for compiling with FreeType 751 --with-freetype-libs -L/-l options to link FreeType 752 --enable-hp-fkeys enable support for HP-style function keys 753 --enable-sco-fkeys enable support for SCO-style function keys 754 --disable-sun-fkeys disable support for Sun-style function keys 755 --disable-fifo-lines disable FIFO-storage for saved-lines 756 --disable-i18n disable internationalization 757 --disable-initial-erase disable setup for stty erase 758 --disable-input-method disable input-method 759 --enable-load-vt-fonts enable load-vt-fonts() action 760 --enable-logging enable logging 761 --enable-logfile-exec enable exec'd logfile filter 762 --disable-maximize disable actions for iconify/deiconify/maximize/restore 763 --disable-num-lock disable NumLock keypad support 764 --disable-paste64 disable get/set base64 selection data 765 --disable-pty-handshake disable pty-handshake support 766 --enable-readline-mouse enable support for mouse in readline applications 767 --disable-regex disable regular-expression selections 768 --with-pcre use PCRE for regular-expressions 769 --disable-rightbar disable right-scrollbar support 770 --disable-samename disable check for redundant name-change 771 --disable-selection-ops disable selection-action operations 772 --disable-session-mgt disable support for session management 773 --disable-tcap-fkeys disable termcap function-keys support 774 --disable-tcap-query disable compiled-in termcap-query support 775 --disable-tek4014 disable tek4014 emulation 776 --enable-toolbar compile-in toolbar for pulldown menus 777 --disable-vt52 disable VT52 emulation 778 --disable-wide-attrs disable wide-attribute support 779 --disable-wide-chars disable wide-character support 780 --enable-16bit-chars enable 16-bit character support 781 --enable-mini-luit enable mini-luit (built-in Latin9 support) 782 --disable-luit enable luit filter (Unicode translation) 783 --enable-dabbrev enable dynamic-abbreviation support 784 --enable-dec-locator enable DECterm Locator support 785 --enable-regis-graphics enable ReGIS graphics support 786 --enable-sixel-graphics enable sixel graphics support 787 --disable-rectangles disable VT420 rectangle support 788 --disable-ziconbeep disable -ziconbeep option 789Testing/development Options: 790 --enable-trace test: set to enable debugging traces 791 --with-dmalloc test: use Gray Watson's dmalloc library 792 --with-dbmalloc test: use Conor Cahill's dbmalloc library 793 --with-valgrind test: use valgrind 794 --disable-leaks test: free permanent memory, analyze leaks 795 --disable-echo do not display "compiling" commands 796 --enable-xmc-glitch test: enable xmc magic-cookie emulation 797 --enable-warnings test: turn on GCC compiler warnings 798 --disable-rpath-hack don't add rpath options for additional libraries 799 800Some influential environment variables: 801 CC C compiler command 802 CFLAGS C compiler flags 803 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 804 nonstandard directory <lib dir> 805 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 806 headers in a nonstandard directory <include dir> 807 CPP C preprocessor 808 809Use these variables to override the choices made by `configure' or to help 810it to find libraries and programs with nonstandard names/locations. 811 812EOF 813fi 814 815if test "$ac_init_help" = "recursive"; then 816 # If there are subdirs, report their specific --help. 817 ac_popdir=`pwd` 818 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 819 cd $ac_subdir 820 # A "../" for each directory in /$ac_subdir. 821 ac_dots=`echo $ac_subdir | 822 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 823 824 case $srcdir in 825 .) # No --srcdir option. We are building in place. 826 ac_sub_srcdir=$srcdir ;; 827 [\\/]* | ?:[\\/]* ) # Absolute path. 828 ac_sub_srcdir=$srcdir/$ac_subdir ;; 829 *) # Relative path. 830 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 831 esac 832 833 # Check for guested configure; otherwise get Cygnus style configure. 834 if test -f $ac_sub_srcdir/configure.gnu; then 835 echo 836 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 837 elif test -f $ac_sub_srcdir/configure; then 838 echo 839 $SHELL $ac_sub_srcdir/configure --help=recursive 840 elif test -f $ac_sub_srcdir/configure.ac || 841 test -f $ac_sub_srcdir/configure.in; then 842 echo 843 $ac_configure --help 844 else 845 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 846 fi 847 cd $ac_popdir 848 done 849fi 850 851test -n "$ac_init_help" && exit 0 852if $ac_init_version; then 853 cat <<\EOF 854 855Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 856Free Software Foundation, Inc. 857This configure script is free software; the Free Software Foundation 858gives unlimited permission to copy, distribute and modify it. 859EOF 860 exit 0 861fi 862exec 5>config.log 863cat >&5 <<EOF 864This file contains any messages produced by compilers while 865running configure, to aid debugging if configure makes a mistake. 866 867It was created by $as_me, which was 868generated by GNU Autoconf 2.52.20121002. Invocation command line was 869 870 $ $0 $@ 871 872EOF 873{ 874cat <<_ASUNAME 875## ---------- ## 876## Platform. ## 877## ---------- ## 878 879hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 880uname -m = `(uname -m) 2>/dev/null || echo unknown` 881uname -r = `(uname -r) 2>/dev/null || echo unknown` 882uname -s = `(uname -s) 2>/dev/null || echo unknown` 883uname -v = `(uname -v) 2>/dev/null || echo unknown` 884 885/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 886/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 887 888/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 889/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 890/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 891hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 892/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 893/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 894/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 895 896PATH = $PATH 897 898_ASUNAME 899} >&5 900 901cat >&5 <<EOF 902## ------------ ## 903## Core tests. ## 904## ------------ ## 905 906EOF 907 908# Keep a trace of the command line. 909# Strip out --no-create and --no-recursion so they do not pile up. 910# Also quote any args containing shell meta-characters. 911ac_configure_args= 912ac_sep= 913for ac_arg 914do 915 case $ac_arg in 916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 917 | --no-cr | --no-c) ;; 918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 920 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 921 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 922 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 923 ac_sep=" " ;; 924 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 925 ac_sep=" " ;; 926 esac 927 # Get rid of the leading space. 928done 929 930# When interrupted or exit'd, cleanup temporary files, and complete 931# config.log. We remove comments because anyway the quotes in there 932# would cause problems or look ugly. 933trap 'exit_status=$? 934 # Save into config.log some information that might help in debugging. 935 echo >&5 936 echo "## ----------------- ##" >&5 937 echo "## Cache variables. ##" >&5 938 echo "## ----------------- ##" >&5 939 echo >&5 940 # The following way of writing the cache mishandles newlines in values, 941{ 942 (set) 2>&1 | 943 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 944 *ac_space=\ *) 945 sed -n \ 946 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 948 ;; 949 *) 950 sed -n \ 951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 952 ;; 953 esac; 954} >&5 955 sed "/^$/d" confdefs.h >conftest.log 956 if test -s conftest.log; then 957 echo >&5 958 echo "## ------------ ##" >&5 959 echo "## confdefs.h. ##" >&5 960 echo "## ------------ ##" >&5 961 echo >&5 962 cat conftest.log >&5 963 fi 964 (echo; echo) >&5 965 test "$ac_signal" != 0 && 966 echo "$as_me: caught signal $ac_signal" >&5 967 echo "$as_me: exit $exit_status" >&5 968 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 969 exit $exit_status 970 ' 0 971for ac_signal in 1 2 13 15; do 972 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 973done 974ac_signal=0 975 976# confdefs.h avoids OS command line length limits that DEFS can exceed. 977rm -rf conftest* confdefs.h 978# AIX cpp loses on an empty file, so make sure it contains at least a newline. 979echo >confdefs.h 980 981# Let the site file select an alternate cache file if it wants to. 982# Prefer explicitly selected file to automatically selected ones. 983if test -z "$CONFIG_SITE"; then 984 if test "x$prefix" != xNONE; then 985 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 986 else 987 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 988 fi 989fi 990for ac_site_file in $CONFIG_SITE; do 991 if test -r "$ac_site_file"; then 992 { echo "$as_me:992: loading site script $ac_site_file" >&5 993echo "$as_me: loading site script $ac_site_file" >&6;} 994 cat "$ac_site_file" >&5 995 . "$ac_site_file" 996 fi 997done 998 999if test -r "$cache_file"; then 1000 # Some versions of bash will fail to source /dev/null (special 1001 # files actually), so we avoid doing that. 1002 if test -f "$cache_file"; then 1003 { echo "$as_me:1003: loading cache $cache_file" >&5 1004echo "$as_me: loading cache $cache_file" >&6;} 1005 case $cache_file in 1006 [\\/]* | ?:[\\/]* ) . $cache_file;; 1007 *) . ./$cache_file;; 1008 esac 1009 fi 1010else 1011 { echo "$as_me:1011: creating cache $cache_file" >&5 1012echo "$as_me: creating cache $cache_file" >&6;} 1013 >$cache_file 1014fi 1015 1016# Check that the precious variables saved in the cache have kept the same 1017# value. 1018ac_cache_corrupted=false 1019for ac_var in `(set) 2>&1 | 1020 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1021 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1022 eval ac_new_set=\$ac_env_${ac_var}_set 1023 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1024 eval ac_new_val="\$ac_env_${ac_var}_value" 1025 case $ac_old_set,$ac_new_set in 1026 set,) 1027 { echo "$as_me:1027: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1028echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1029 ac_cache_corrupted=: ;; 1030 ,set) 1031 { echo "$as_me:1031: error: \`$ac_var' was not set in the previous run" >&5 1032echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1033 ac_cache_corrupted=: ;; 1034 ,);; 1035 *) 1036 if test "x$ac_old_val" != "x$ac_new_val"; then 1037 { echo "$as_me:1037: error: \`$ac_var' has changed since the previous run:" >&5 1038echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1039 { echo "$as_me:1039: former value: $ac_old_val" >&5 1040echo "$as_me: former value: $ac_old_val" >&2;} 1041 { echo "$as_me:1041: current value: $ac_new_val" >&5 1042echo "$as_me: current value: $ac_new_val" >&2;} 1043 ac_cache_corrupted=: 1044 fi;; 1045 esac 1046 # Pass precious variables to config.status. It doesn't matter if 1047 # we pass some twice (in addition to the command line arguments). 1048 if test "$ac_new_set" = set; then 1049 case $ac_new_val in 1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1051 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1052 ac_configure_args="$ac_configure_args '$ac_arg'" 1053 ;; 1054 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1055 ;; 1056 esac 1057 fi 1058done 1059if $ac_cache_corrupted; then 1060 { echo "$as_me:1060: error: changes in the environment can compromise the build" >&5 1061echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1062 { { echo "$as_me:1062: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1063echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1064 { (exit 1); exit 1; }; } 1065fi 1066 1067ac_ext=c 1068ac_cpp='$CPP $CPPFLAGS' 1069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1071ac_compiler_gnu=$ac_cv_c_compiler_gnu 1072ac_main_return=return 1073 1074case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1075 *c*,-n*) ECHO_N= ECHO_C=' 1076' ECHO_T=' ' ;; 1077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1079esac 1080echo "#! $SHELL" >conftest.sh 1081echo "exit 0" >>conftest.sh 1082chmod +x conftest.sh 1083if { (echo "$as_me:1083: PATH=\".;.\"; conftest.sh") >&5 1084 (PATH=".;."; conftest.sh) 2>&5 1085 ac_status=$? 1086 echo "$as_me:1086: \$? = $ac_status" >&5 1087 (exit $ac_status); }; then 1088 ac_path_separator=';' 1089else 1090 ac_path_separator=: 1091fi 1092PATH_SEPARATOR="$ac_path_separator" 1093rm -f conftest.sh 1094 1095ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1096 1097ac_aux_dir= 1098for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1099 if test -f $ac_dir/install-sh; then 1100 ac_aux_dir=$ac_dir 1101 ac_install_sh="$ac_aux_dir/install-sh -c" 1102 break 1103 elif test -f $ac_dir/install.sh; then 1104 ac_aux_dir=$ac_dir 1105 ac_install_sh="$ac_aux_dir/install.sh -c" 1106 break 1107 elif test -f $ac_dir/shtool; then 1108 ac_aux_dir=$ac_dir 1109 ac_install_sh="$ac_aux_dir/shtool install -c" 1110 break 1111 fi 1112done 1113if test -z "$ac_aux_dir"; then 1114 { { echo "$as_me:1114: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1115echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1116 { (exit 1); exit 1; }; } 1117fi 1118ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1119ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1120ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1121 1122# Make sure we can run config.sub. 1123$ac_config_sub sun4 >/dev/null 2>&1 || 1124 { { echo "$as_me:1124: error: cannot run $ac_config_sub" >&5 1125echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1126 { (exit 1); exit 1; }; } 1127 1128echo "$as_me:1128: checking build system type" >&5 1129echo $ECHO_N "checking build system type... $ECHO_C" >&6 1130if test "${ac_cv_build+set}" = set; then 1131 echo $ECHO_N "(cached) $ECHO_C" >&6 1132else 1133 ac_cv_build_alias=$build_alias 1134test -z "$ac_cv_build_alias" && 1135 ac_cv_build_alias=`$ac_config_guess` 1136test -z "$ac_cv_build_alias" && 1137 { { echo "$as_me:1137: error: cannot guess build type; you must specify one" >&5 1138echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1139 { (exit 1); exit 1; }; } 1140ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1141 { { echo "$as_me:1141: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1142echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1143 { (exit 1); exit 1; }; } 1144 1145fi 1146echo "$as_me:1146: result: $ac_cv_build" >&5 1147echo "${ECHO_T}$ac_cv_build" >&6 1148build=$ac_cv_build 1149build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1150build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1151build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1152 1153if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1154 echo "$as_me:1154: checking host system type" >&5 1155echo $ECHO_N "checking host system type... $ECHO_C" >&6 1156if test "${ac_cv_host+set}" = set; then 1157 echo $ECHO_N "(cached) $ECHO_C" >&6 1158else 1159 ac_cv_host_alias=$host_alias 1160test -z "$ac_cv_host_alias" && 1161 ac_cv_host_alias=$ac_cv_build_alias 1162ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1163 { { echo "$as_me:1163: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1164echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1165 { (exit 1); exit 1; }; } 1166 1167fi 1168echo "$as_me:1168: result: $ac_cv_host" >&5 1169echo "${ECHO_T}$ac_cv_host" >&6 1170host=$ac_cv_host 1171host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1172host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1173host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1174 1175 system_name="$host_os" 1176else 1177 system_name="`(uname -s -r) 2>/dev/null`" 1178 if test -z "$system_name" ; then 1179 system_name="`(hostname) 2>/dev/null`" 1180 fi 1181fi 1182test -n "$system_name" && 1183cat >>confdefs.h <<EOF 1184#define SYSTEM_NAME "$system_name" 1185EOF 1186 1187if test "${cf_cv_system_name+set}" = set; then 1188 echo $ECHO_N "(cached) $ECHO_C" >&6 1189else 1190 cf_cv_system_name="$system_name" 1191fi 1192 1193test -z "$system_name" && system_name="$cf_cv_system_name" 1194test -n "$cf_cv_system_name" && echo "$as_me:1194: result: Configuring for $cf_cv_system_name" >&5 1195echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1196 1197if test ".$system_name" != ".$cf_cv_system_name" ; then 1198 echo "$as_me:1198: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1199echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1200 { { echo "$as_me:1200: error: \"Please remove config.cache and try again.\"" >&5 1201echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1202 { (exit 1); exit 1; }; } 1203fi 1204 1205### checks for alternative programs 1206 1207case "$host_os" in 1208openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"} 1209 : ${CPPFLAGS="-D_ALL_SOURCE"} 1210 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"} 1211 : ${CC=c89};; 1212darwin*) 1213 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";; 1214esac 1215 1216ac_ext=c 1217ac_cpp='$CPP $CPPFLAGS' 1218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1220ac_compiler_gnu=$ac_cv_c_compiler_gnu 1221ac_main_return=return 1222if test -n "$ac_tool_prefix"; then 1223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1224set dummy ${ac_tool_prefix}gcc; ac_word=$2 1225echo "$as_me:1225: checking for $ac_word" >&5 1226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1227if test "${ac_cv_prog_CC+set}" = set; then 1228 echo $ECHO_N "(cached) $ECHO_C" >&6 1229else 1230 if test -n "$CC"; then 1231 ac_cv_prog_CC="$CC" # Let the user override the test. 1232else 1233 ac_save_IFS=$IFS; IFS=$ac_path_separator 1234ac_dummy="$PATH" 1235for ac_dir in $ac_dummy; do 1236 IFS=$ac_save_IFS 1237 test -z "$ac_dir" && ac_dir=. 1238 $as_executable_p "$ac_dir/$ac_word" || continue 1239ac_cv_prog_CC="${ac_tool_prefix}gcc" 1240echo "$as_me:1240: found $ac_dir/$ac_word" >&5 1241break 1242done 1243 1244fi 1245fi 1246CC=$ac_cv_prog_CC 1247if test -n "$CC"; then 1248 echo "$as_me:1248: result: $CC" >&5 1249echo "${ECHO_T}$CC" >&6 1250else 1251 echo "$as_me:1251: result: no" >&5 1252echo "${ECHO_T}no" >&6 1253fi 1254 1255fi 1256if test -z "$ac_cv_prog_CC"; then 1257 ac_ct_CC=$CC 1258 # Extract the first word of "gcc", so it can be a program name with args. 1259set dummy gcc; ac_word=$2 1260echo "$as_me:1260: checking for $ac_word" >&5 1261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1263 echo $ECHO_N "(cached) $ECHO_C" >&6 1264else 1265 if test -n "$ac_ct_CC"; then 1266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1267else 1268 ac_save_IFS=$IFS; IFS=$ac_path_separator 1269ac_dummy="$PATH" 1270for ac_dir in $ac_dummy; do 1271 IFS=$ac_save_IFS 1272 test -z "$ac_dir" && ac_dir=. 1273 $as_executable_p "$ac_dir/$ac_word" || continue 1274ac_cv_prog_ac_ct_CC="gcc" 1275echo "$as_me:1275: found $ac_dir/$ac_word" >&5 1276break 1277done 1278 1279fi 1280fi 1281ac_ct_CC=$ac_cv_prog_ac_ct_CC 1282if test -n "$ac_ct_CC"; then 1283 echo "$as_me:1283: result: $ac_ct_CC" >&5 1284echo "${ECHO_T}$ac_ct_CC" >&6 1285else 1286 echo "$as_me:1286: result: no" >&5 1287echo "${ECHO_T}no" >&6 1288fi 1289 1290 CC=$ac_ct_CC 1291else 1292 CC="$ac_cv_prog_CC" 1293fi 1294 1295if test -z "$CC"; then 1296 if test -n "$ac_tool_prefix"; then 1297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1298set dummy ${ac_tool_prefix}cc; ac_word=$2 1299echo "$as_me:1299: checking for $ac_word" >&5 1300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1301if test "${ac_cv_prog_CC+set}" = set; then 1302 echo $ECHO_N "(cached) $ECHO_C" >&6 1303else 1304 if test -n "$CC"; then 1305 ac_cv_prog_CC="$CC" # Let the user override the test. 1306else 1307 ac_save_IFS=$IFS; IFS=$ac_path_separator 1308ac_dummy="$PATH" 1309for ac_dir in $ac_dummy; do 1310 IFS=$ac_save_IFS 1311 test -z "$ac_dir" && ac_dir=. 1312 $as_executable_p "$ac_dir/$ac_word" || continue 1313ac_cv_prog_CC="${ac_tool_prefix}cc" 1314echo "$as_me:1314: found $ac_dir/$ac_word" >&5 1315break 1316done 1317 1318fi 1319fi 1320CC=$ac_cv_prog_CC 1321if test -n "$CC"; then 1322 echo "$as_me:1322: result: $CC" >&5 1323echo "${ECHO_T}$CC" >&6 1324else 1325 echo "$as_me:1325: result: no" >&5 1326echo "${ECHO_T}no" >&6 1327fi 1328 1329fi 1330if test -z "$ac_cv_prog_CC"; then 1331 ac_ct_CC=$CC 1332 # Extract the first word of "cc", so it can be a program name with args. 1333set dummy cc; ac_word=$2 1334echo "$as_me:1334: checking for $ac_word" >&5 1335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1336if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1337 echo $ECHO_N "(cached) $ECHO_C" >&6 1338else 1339 if test -n "$ac_ct_CC"; then 1340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1341else 1342 ac_save_IFS=$IFS; IFS=$ac_path_separator 1343ac_dummy="$PATH" 1344for ac_dir in $ac_dummy; do 1345 IFS=$ac_save_IFS 1346 test -z "$ac_dir" && ac_dir=. 1347 $as_executable_p "$ac_dir/$ac_word" || continue 1348ac_cv_prog_ac_ct_CC="cc" 1349echo "$as_me:1349: found $ac_dir/$ac_word" >&5 1350break 1351done 1352 1353fi 1354fi 1355ac_ct_CC=$ac_cv_prog_ac_ct_CC 1356if test -n "$ac_ct_CC"; then 1357 echo "$as_me:1357: result: $ac_ct_CC" >&5 1358echo "${ECHO_T}$ac_ct_CC" >&6 1359else 1360 echo "$as_me:1360: result: no" >&5 1361echo "${ECHO_T}no" >&6 1362fi 1363 1364 CC=$ac_ct_CC 1365else 1366 CC="$ac_cv_prog_CC" 1367fi 1368 1369fi 1370if test -z "$CC"; then 1371 # Extract the first word of "cc", so it can be a program name with args. 1372set dummy cc; ac_word=$2 1373echo "$as_me:1373: checking for $ac_word" >&5 1374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1375if test "${ac_cv_prog_CC+set}" = set; then 1376 echo $ECHO_N "(cached) $ECHO_C" >&6 1377else 1378 if test -n "$CC"; then 1379 ac_cv_prog_CC="$CC" # Let the user override the test. 1380else 1381 ac_prog_rejected=no 1382 ac_save_IFS=$IFS; IFS=$ac_path_separator 1383ac_dummy="$PATH" 1384for ac_dir in $ac_dummy; do 1385 IFS=$ac_save_IFS 1386 test -z "$ac_dir" && ac_dir=. 1387 $as_executable_p "$ac_dir/$ac_word" || continue 1388if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1389 ac_prog_rejected=yes 1390 continue 1391fi 1392ac_cv_prog_CC="cc" 1393echo "$as_me:1393: found $ac_dir/$ac_word" >&5 1394break 1395done 1396 1397if test $ac_prog_rejected = yes; then 1398 # We found a bogon in the path, so make sure we never use it. 1399 set dummy $ac_cv_prog_CC 1400 shift 1401 if test $# != 0; then 1402 # We chose a different compiler from the bogus one. 1403 # However, it has the same basename, so the bogon will be chosen 1404 # first if we set CC to just the basename; use the full file name. 1405 shift 1406 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1407 shift 1408 ac_cv_prog_CC="$@" 1409 fi 1410fi 1411fi 1412fi 1413CC=$ac_cv_prog_CC 1414if test -n "$CC"; then 1415 echo "$as_me:1415: result: $CC" >&5 1416echo "${ECHO_T}$CC" >&6 1417else 1418 echo "$as_me:1418: result: no" >&5 1419echo "${ECHO_T}no" >&6 1420fi 1421 1422fi 1423if test -z "$CC"; then 1424 if test -n "$ac_tool_prefix"; then 1425 for ac_prog in cl 1426 do 1427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1429echo "$as_me:1429: checking for $ac_word" >&5 1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1431if test "${ac_cv_prog_CC+set}" = set; then 1432 echo $ECHO_N "(cached) $ECHO_C" >&6 1433else 1434 if test -n "$CC"; then 1435 ac_cv_prog_CC="$CC" # Let the user override the test. 1436else 1437 ac_save_IFS=$IFS; IFS=$ac_path_separator 1438ac_dummy="$PATH" 1439for ac_dir in $ac_dummy; do 1440 IFS=$ac_save_IFS 1441 test -z "$ac_dir" && ac_dir=. 1442 $as_executable_p "$ac_dir/$ac_word" || continue 1443ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1444echo "$as_me:1444: found $ac_dir/$ac_word" >&5 1445break 1446done 1447 1448fi 1449fi 1450CC=$ac_cv_prog_CC 1451if test -n "$CC"; then 1452 echo "$as_me:1452: result: $CC" >&5 1453echo "${ECHO_T}$CC" >&6 1454else 1455 echo "$as_me:1455: result: no" >&5 1456echo "${ECHO_T}no" >&6 1457fi 1458 1459 test -n "$CC" && break 1460 done 1461fi 1462if test -z "$CC"; then 1463 ac_ct_CC=$CC 1464 for ac_prog in cl 1465do 1466 # Extract the first word of "$ac_prog", so it can be a program name with args. 1467set dummy $ac_prog; ac_word=$2 1468echo "$as_me:1468: checking for $ac_word" >&5 1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1470if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1471 echo $ECHO_N "(cached) $ECHO_C" >&6 1472else 1473 if test -n "$ac_ct_CC"; then 1474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1475else 1476 ac_save_IFS=$IFS; IFS=$ac_path_separator 1477ac_dummy="$PATH" 1478for ac_dir in $ac_dummy; do 1479 IFS=$ac_save_IFS 1480 test -z "$ac_dir" && ac_dir=. 1481 $as_executable_p "$ac_dir/$ac_word" || continue 1482ac_cv_prog_ac_ct_CC="$ac_prog" 1483echo "$as_me:1483: found $ac_dir/$ac_word" >&5 1484break 1485done 1486 1487fi 1488fi 1489ac_ct_CC=$ac_cv_prog_ac_ct_CC 1490if test -n "$ac_ct_CC"; then 1491 echo "$as_me:1491: result: $ac_ct_CC" >&5 1492echo "${ECHO_T}$ac_ct_CC" >&6 1493else 1494 echo "$as_me:1494: result: no" >&5 1495echo "${ECHO_T}no" >&6 1496fi 1497 1498 test -n "$ac_ct_CC" && break 1499done 1500 1501 CC=$ac_ct_CC 1502fi 1503 1504fi 1505 1506test -z "$CC" && { { echo "$as_me:1506: error: no acceptable cc found in \$PATH" >&5 1507echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1508 { (exit 1); exit 1; }; } 1509 1510# Provide some information about the compiler. 1511echo "$as_me:1511:" \ 1512 "checking for C compiler version" >&5 1513ac_compiler=`set X $ac_compile; echo $2` 1514{ (eval echo "$as_me:1514: \"$ac_compiler --version </dev/null >&5\"") >&5 1515 (eval $ac_compiler --version </dev/null >&5) 2>&5 1516 ac_status=$? 1517 echo "$as_me:1517: \$? = $ac_status" >&5 1518 (exit $ac_status); } 1519{ (eval echo "$as_me:1519: \"$ac_compiler -v </dev/null >&5\"") >&5 1520 (eval $ac_compiler -v </dev/null >&5) 2>&5 1521 ac_status=$? 1522 echo "$as_me:1522: \$? = $ac_status" >&5 1523 (exit $ac_status); } 1524{ (eval echo "$as_me:1524: \"$ac_compiler -V </dev/null >&5\"") >&5 1525 (eval $ac_compiler -V </dev/null >&5) 2>&5 1526 ac_status=$? 1527 echo "$as_me:1527: \$? = $ac_status" >&5 1528 (exit $ac_status); } 1529 1530cat >conftest.$ac_ext <<_ACEOF 1531#line 1531 "configure" 1532#include "confdefs.h" 1533 1534int 1535main () 1536{ 1537 1538 ; 1539 return 0; 1540} 1541_ACEOF 1542ac_clean_files_save=$ac_clean_files 1543ac_clean_files="$ac_clean_files a.out a.exe" 1544# Try to create an executable without -o first, disregard a.out. 1545# It will help us diagnose broken compilers, and finding out an intuition 1546# of exeext. 1547echo "$as_me:1547: checking for C compiler default output" >&5 1548echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1549ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1550if { (eval echo "$as_me:1550: \"$ac_link_default\"") >&5 1551 (eval $ac_link_default) 2>&5 1552 ac_status=$? 1553 echo "$as_me:1553: \$? = $ac_status" >&5 1554 (exit $ac_status); }; then 1555 # Find the output, starting from the most likely. This scheme is 1556# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1557# resort. 1558for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1559 ls a.out conftest 2>/dev/null; 1560 ls a.* conftest.* 2>/dev/null`; do 1561 case $ac_file in 1562 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1563 a.out ) # We found the default executable, but exeext='' is most 1564 # certainly right. 1565 break;; 1566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1567 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1568 export ac_cv_exeext 1569 break;; 1570 * ) break;; 1571 esac 1572done 1573else 1574 echo "$as_me: failed program was:" >&5 1575cat conftest.$ac_ext >&5 1576{ { echo "$as_me:1576: error: C compiler cannot create executables" >&5 1577echo "$as_me: error: C compiler cannot create executables" >&2;} 1578 { (exit 77); exit 77; }; } 1579fi 1580 1581ac_exeext=$ac_cv_exeext 1582echo "$as_me:1582: result: $ac_file" >&5 1583echo "${ECHO_T}$ac_file" >&6 1584 1585# Check the compiler produces executables we can run. If not, either 1586# the compiler is broken, or we cross compile. 1587echo "$as_me:1587: checking whether the C compiler works" >&5 1588echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1589# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1590# If not cross compiling, check that we can run a simple program. 1591if test "$cross_compiling" != yes; then 1592 if { ac_try='./$ac_file' 1593 { (eval echo "$as_me:1593: \"$ac_try\"") >&5 1594 (eval $ac_try) 2>&5 1595 ac_status=$? 1596 echo "$as_me:1596: \$? = $ac_status" >&5 1597 (exit $ac_status); }; }; then 1598 cross_compiling=no 1599 else 1600 if test "$cross_compiling" = maybe; then 1601 cross_compiling=yes 1602 else 1603 { { echo "$as_me:1603: error: cannot run C compiled programs. 1604If you meant to cross compile, use \`--host'." >&5 1605echo "$as_me: error: cannot run C compiled programs. 1606If you meant to cross compile, use \`--host'." >&2;} 1607 { (exit 1); exit 1; }; } 1608 fi 1609 fi 1610fi 1611echo "$as_me:1611: result: yes" >&5 1612echo "${ECHO_T}yes" >&6 1613 1614rm -f a.out a.exe conftest$ac_cv_exeext 1615ac_clean_files=$ac_clean_files_save 1616# Check the compiler produces executables we can run. If not, either 1617# the compiler is broken, or we cross compile. 1618echo "$as_me:1618: checking whether we are cross compiling" >&5 1619echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1620echo "$as_me:1620: result: $cross_compiling" >&5 1621echo "${ECHO_T}$cross_compiling" >&6 1622 1623echo "$as_me:1623: checking for executable suffix" >&5 1624echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1625if { (eval echo "$as_me:1625: \"$ac_link\"") >&5 1626 (eval $ac_link) 2>&5 1627 ac_status=$? 1628 echo "$as_me:1628: \$? = $ac_status" >&5 1629 (exit $ac_status); }; then 1630 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1631# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1632# work properly (i.e., refer to `conftest.exe'), while it won't with 1633# `rm'. 1634for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1635 case $ac_file in 1636 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1638 export ac_cv_exeext 1639 break;; 1640 * ) break;; 1641 esac 1642done 1643else 1644 { { echo "$as_me:1644: error: cannot compute EXEEXT: cannot compile and link" >&5 1645echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1646 { (exit 1); exit 1; }; } 1647fi 1648 1649rm -f conftest$ac_cv_exeext 1650echo "$as_me:1650: result: $ac_cv_exeext" >&5 1651echo "${ECHO_T}$ac_cv_exeext" >&6 1652 1653rm -f conftest.$ac_ext 1654EXEEXT=$ac_cv_exeext 1655ac_exeext=$EXEEXT 1656echo "$as_me:1656: checking for object suffix" >&5 1657echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1658if test "${ac_cv_objext+set}" = set; then 1659 echo $ECHO_N "(cached) $ECHO_C" >&6 1660else 1661 cat >conftest.$ac_ext <<_ACEOF 1662#line 1662 "configure" 1663#include "confdefs.h" 1664 1665int 1666main () 1667{ 1668 1669 ; 1670 return 0; 1671} 1672_ACEOF 1673rm -f conftest.o conftest.obj 1674if { (eval echo "$as_me:1674: \"$ac_compile\"") >&5 1675 (eval $ac_compile) 2>&5 1676 ac_status=$? 1677 echo "$as_me:1677: \$? = $ac_status" >&5 1678 (exit $ac_status); }; then 1679 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1680 case $ac_file in 1681 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1683 break;; 1684 esac 1685done 1686else 1687 echo "$as_me: failed program was:" >&5 1688cat conftest.$ac_ext >&5 1689{ { echo "$as_me:1689: error: cannot compute OBJEXT: cannot compile" >&5 1690echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1691 { (exit 1); exit 1; }; } 1692fi 1693 1694rm -f conftest.$ac_cv_objext conftest.$ac_ext 1695fi 1696echo "$as_me:1696: result: $ac_cv_objext" >&5 1697echo "${ECHO_T}$ac_cv_objext" >&6 1698OBJEXT=$ac_cv_objext 1699ac_objext=$OBJEXT 1700echo "$as_me:1700: checking whether we are using the GNU C compiler" >&5 1701echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1702if test "${ac_cv_c_compiler_gnu+set}" = set; then 1703 echo $ECHO_N "(cached) $ECHO_C" >&6 1704else 1705 cat >conftest.$ac_ext <<_ACEOF 1706#line 1706 "configure" 1707#include "confdefs.h" 1708 1709int 1710main () 1711{ 1712#ifndef __GNUC__ 1713 choke me 1714#endif 1715 1716 ; 1717 return 0; 1718} 1719_ACEOF 1720rm -f conftest.$ac_objext 1721if { (eval echo "$as_me:1721: \"$ac_compile\"") >&5 1722 (eval $ac_compile) 2>&5 1723 ac_status=$? 1724 echo "$as_me:1724: \$? = $ac_status" >&5 1725 (exit $ac_status); } && 1726 { ac_try='test -s conftest.$ac_objext' 1727 { (eval echo "$as_me:1727: \"$ac_try\"") >&5 1728 (eval $ac_try) 2>&5 1729 ac_status=$? 1730 echo "$as_me:1730: \$? = $ac_status" >&5 1731 (exit $ac_status); }; }; then 1732 ac_compiler_gnu=yes 1733else 1734 echo "$as_me: failed program was:" >&5 1735cat conftest.$ac_ext >&5 1736ac_compiler_gnu=no 1737fi 1738rm -f conftest.$ac_objext conftest.$ac_ext 1739ac_cv_c_compiler_gnu=$ac_compiler_gnu 1740 1741fi 1742echo "$as_me:1742: result: $ac_cv_c_compiler_gnu" >&5 1743echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1744GCC=`test $ac_compiler_gnu = yes && echo yes` 1745ac_test_CFLAGS=${CFLAGS+set} 1746ac_save_CFLAGS=$CFLAGS 1747CFLAGS="-g" 1748echo "$as_me:1748: checking whether $CC accepts -g" >&5 1749echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1750if test "${ac_cv_prog_cc_g+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752else 1753 cat >conftest.$ac_ext <<_ACEOF 1754#line 1754 "configure" 1755#include "confdefs.h" 1756 1757int 1758main () 1759{ 1760 1761 ; 1762 return 0; 1763} 1764_ACEOF 1765rm -f conftest.$ac_objext 1766if { (eval echo "$as_me:1766: \"$ac_compile\"") >&5 1767 (eval $ac_compile) 2>&5 1768 ac_status=$? 1769 echo "$as_me:1769: \$? = $ac_status" >&5 1770 (exit $ac_status); } && 1771 { ac_try='test -s conftest.$ac_objext' 1772 { (eval echo "$as_me:1772: \"$ac_try\"") >&5 1773 (eval $ac_try) 2>&5 1774 ac_status=$? 1775 echo "$as_me:1775: \$? = $ac_status" >&5 1776 (exit $ac_status); }; }; then 1777 ac_cv_prog_cc_g=yes 1778else 1779 echo "$as_me: failed program was:" >&5 1780cat conftest.$ac_ext >&5 1781ac_cv_prog_cc_g=no 1782fi 1783rm -f conftest.$ac_objext conftest.$ac_ext 1784fi 1785echo "$as_me:1785: result: $ac_cv_prog_cc_g" >&5 1786echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1787if test "$ac_test_CFLAGS" = set; then 1788 CFLAGS=$ac_save_CFLAGS 1789elif test $ac_cv_prog_cc_g = yes; then 1790 if test "$GCC" = yes; then 1791 CFLAGS="-g -O2" 1792 else 1793 CFLAGS="-g" 1794 fi 1795else 1796 if test "$GCC" = yes; then 1797 CFLAGS="-O2" 1798 else 1799 CFLAGS= 1800 fi 1801fi 1802# Some people use a C++ compiler to compile C. Since we use `exit', 1803# in C++ we need to declare it. In case someone uses the same compiler 1804# for both compiling C and C++ we need to have the C++ compiler decide 1805# the declaration of exit, since it's the most demanding environment. 1806cat >conftest.$ac_ext <<_ACEOF 1807#ifndef __cplusplus 1808 choke me 1809#endif 1810_ACEOF 1811rm -f conftest.$ac_objext 1812if { (eval echo "$as_me:1812: \"$ac_compile\"") >&5 1813 (eval $ac_compile) 2>&5 1814 ac_status=$? 1815 echo "$as_me:1815: \$? = $ac_status" >&5 1816 (exit $ac_status); } && 1817 { ac_try='test -s conftest.$ac_objext' 1818 { (eval echo "$as_me:1818: \"$ac_try\"") >&5 1819 (eval $ac_try) 2>&5 1820 ac_status=$? 1821 echo "$as_me:1821: \$? = $ac_status" >&5 1822 (exit $ac_status); }; }; then 1823 for ac_declaration in \ 1824 ''\ 1825 '#include <stdlib.h>' \ 1826 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1827 'extern "C" void std::exit (int); using std::exit;' \ 1828 'extern "C" void exit (int) throw ();' \ 1829 'extern "C" void exit (int);' \ 1830 'void exit (int);' 1831do 1832 cat >conftest.$ac_ext <<_ACEOF 1833#line 1833 "configure" 1834#include "confdefs.h" 1835#include <stdlib.h> 1836$ac_declaration 1837int 1838main () 1839{ 1840exit (42); 1841 ; 1842 return 0; 1843} 1844_ACEOF 1845rm -f conftest.$ac_objext 1846if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5 1847 (eval $ac_compile) 2>&5 1848 ac_status=$? 1849 echo "$as_me:1849: \$? = $ac_status" >&5 1850 (exit $ac_status); } && 1851 { ac_try='test -s conftest.$ac_objext' 1852 { (eval echo "$as_me:1852: \"$ac_try\"") >&5 1853 (eval $ac_try) 2>&5 1854 ac_status=$? 1855 echo "$as_me:1855: \$? = $ac_status" >&5 1856 (exit $ac_status); }; }; then 1857 : 1858else 1859 echo "$as_me: failed program was:" >&5 1860cat conftest.$ac_ext >&5 1861continue 1862fi 1863rm -f conftest.$ac_objext conftest.$ac_ext 1864 cat >conftest.$ac_ext <<_ACEOF 1865#line 1865 "configure" 1866#include "confdefs.h" 1867$ac_declaration 1868int 1869main () 1870{ 1871exit (42); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876rm -f conftest.$ac_objext 1877if { (eval echo "$as_me:1877: \"$ac_compile\"") >&5 1878 (eval $ac_compile) 2>&5 1879 ac_status=$? 1880 echo "$as_me:1880: \$? = $ac_status" >&5 1881 (exit $ac_status); } && 1882 { ac_try='test -s conftest.$ac_objext' 1883 { (eval echo "$as_me:1883: \"$ac_try\"") >&5 1884 (eval $ac_try) 2>&5 1885 ac_status=$? 1886 echo "$as_me:1886: \$? = $ac_status" >&5 1887 (exit $ac_status); }; }; then 1888 break 1889else 1890 echo "$as_me: failed program was:" >&5 1891cat conftest.$ac_ext >&5 1892fi 1893rm -f conftest.$ac_objext conftest.$ac_ext 1894done 1895rm -rf conftest* 1896if test -n "$ac_declaration"; then 1897 echo '#ifdef __cplusplus' >>confdefs.h 1898 echo $ac_declaration >>confdefs.h 1899 echo '#endif' >>confdefs.h 1900fi 1901 1902else 1903 echo "$as_me: failed program was:" >&5 1904cat conftest.$ac_ext >&5 1905fi 1906rm -f conftest.$ac_objext conftest.$ac_ext 1907ac_ext=c 1908ac_cpp='$CPP $CPPFLAGS' 1909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1911ac_compiler_gnu=$ac_cv_c_compiler_gnu 1912ac_main_return=return 1913 1914GCC_VERSION=none 1915if test "$GCC" = yes ; then 1916 echo "$as_me:1916: checking version of $CC" >&5 1917echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1918 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1919 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1920 echo "$as_me:1920: result: $GCC_VERSION" >&5 1921echo "${ECHO_T}$GCC_VERSION" >&6 1922fi 1923 1924echo "$as_me:1924: checking for $CC option to accept ANSI C" >&5 1925echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1926if test "${ac_cv_prog_cc_stdc+set}" = set; then 1927 echo $ECHO_N "(cached) $ECHO_C" >&6 1928else 1929 ac_cv_prog_cc_stdc=no 1930ac_save_CC=$CC 1931cat >conftest.$ac_ext <<_ACEOF 1932#line 1932 "configure" 1933#include "confdefs.h" 1934#include <stdarg.h> 1935#include <stdio.h> 1936#include <sys/types.h> 1937#include <sys/stat.h> 1938/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1939struct buf { int x; }; 1940FILE * (*rcsopen) (struct buf *, struct stat *, int); 1941static char *e (p, i) 1942 char **p; 1943 int i; 1944{ 1945 return p[i]; 1946} 1947static char *f (char * (*g) (char **, int), char **p, ...) 1948{ 1949 char *s; 1950 va_list v; 1951 va_start (v,p); 1952 s = g (p, va_arg (v,int)); 1953 va_end (v); 1954 return s; 1955} 1956int test (int i, double x); 1957struct s1 {int (*f) (int a);}; 1958struct s2 {int (*f) (double a);}; 1959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1960int argc; 1961char **argv; 1962int 1963main () 1964{ 1965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970# Don't try gcc -ansi; that turns off useful extensions and 1971# breaks some systems' header files. 1972# AIX -qlanglvl=ansi 1973# Ultrix and OSF/1 -std1 1974# HP-UX 10.20 and later -Ae 1975# HP-UX older versions -Aa -D_HPUX_SOURCE 1976# SVR4 -Xc -D__EXTENSIONS__ 1977for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1978do 1979 CC="$ac_save_CC $ac_arg" 1980 rm -f conftest.$ac_objext 1981if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5 1982 (eval $ac_compile) 2>&5 1983 ac_status=$? 1984 echo "$as_me:1984: \$? = $ac_status" >&5 1985 (exit $ac_status); } && 1986 { ac_try='test -s conftest.$ac_objext' 1987 { (eval echo "$as_me:1987: \"$ac_try\"") >&5 1988 (eval $ac_try) 2>&5 1989 ac_status=$? 1990 echo "$as_me:1990: \$? = $ac_status" >&5 1991 (exit $ac_status); }; }; then 1992 ac_cv_prog_cc_stdc=$ac_arg 1993break 1994else 1995 echo "$as_me: failed program was:" >&5 1996cat conftest.$ac_ext >&5 1997fi 1998rm -f conftest.$ac_objext 1999done 2000rm -f conftest.$ac_ext conftest.$ac_objext 2001CC=$ac_save_CC 2002 2003fi 2004 2005case "x$ac_cv_prog_cc_stdc" in 2006 x|xno) 2007 echo "$as_me:2007: result: none needed" >&5 2008echo "${ECHO_T}none needed" >&6 ;; 2009 *) 2010 echo "$as_me:2010: result: $ac_cv_prog_cc_stdc" >&5 2011echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2012 CC="$CC $ac_cv_prog_cc_stdc" ;; 2013esac 2014 2015# This should have been defined by AC_PROG_CC 2016: ${CC:=cc} 2017 2018echo "$as_me:2018: checking \$CC variable" >&5 2019echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2020case "$CC" in #(vi 2021*[\ \ ]-[IUD]*) 2022 echo "$as_me:2022: result: broken" >&5 2023echo "${ECHO_T}broken" >&6 2024 { echo "$as_me:2024: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2025echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2026 # humor him... 2027 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 2028 CC=`echo "$CC" | sed -e 's/[ ].*//'` 2029 2030cf_fix_cppflags=no 2031cf_new_cflags= 2032cf_new_cppflags= 2033cf_new_extra_cppflags= 2034 2035for cf_add_cflags in $cf_flags 2036do 2037case $cf_fix_cppflags in 2038no) 2039 case $cf_add_cflags in #(vi 2040 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2041 case $cf_add_cflags in 2042 -D*) 2043 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2044 2045 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2046 && test -z "${cf_tst_cflags}" \ 2047 && cf_fix_cppflags=yes 2048 2049 if test $cf_fix_cppflags = yes ; then 2050 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2051 continue 2052 elif test "${cf_tst_cflags}" = "\"'" ; then 2053 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2054 continue 2055 fi 2056 ;; 2057 esac 2058 case "$CPPFLAGS" in 2059 *$cf_add_cflags) #(vi 2060 ;; 2061 *) #(vi 2062 case $cf_add_cflags in #(vi 2063 -D*) 2064 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2065 2066CPPFLAGS=`echo "$CPPFLAGS" | \ 2067 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2068 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2069 2070 ;; 2071 esac 2072 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2073 ;; 2074 esac 2075 ;; 2076 *) 2077 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2078 ;; 2079 esac 2080 ;; 2081yes) 2082 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2083 2084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2085 2086 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2087 && test -z "${cf_tst_cflags}" \ 2088 && cf_fix_cppflags=no 2089 ;; 2090esac 2091done 2092 2093if test -n "$cf_new_cflags" ; then 2094 2095 CFLAGS="$CFLAGS $cf_new_cflags" 2096fi 2097 2098if test -n "$cf_new_cppflags" ; then 2099 2100 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2101fi 2102 2103if test -n "$cf_new_extra_cppflags" ; then 2104 2105 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2106fi 2107 2108 ;; 2109*) 2110 echo "$as_me:2110: result: ok" >&5 2111echo "${ECHO_T}ok" >&6 2112 ;; 2113esac 2114 2115ac_ext=c 2116ac_cpp='$CPP $CPPFLAGS' 2117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2119ac_compiler_gnu=$ac_cv_c_compiler_gnu 2120ac_main_return=return 2121echo "$as_me:2121: checking how to run the C preprocessor" >&5 2122echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2123# On Suns, sometimes $CPP names a directory. 2124if test -n "$CPP" && test -d "$CPP"; then 2125 CPP= 2126fi 2127if test -z "$CPP"; then 2128 if test "${ac_cv_prog_CPP+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 # Double quotes because CPP needs to be expanded 2132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2133 do 2134 ac_preproc_ok=false 2135for ac_c_preproc_warn_flag in '' yes 2136do 2137 # Use a header file that comes with gcc, so configuring glibc 2138 # with a fresh cross-compiler works. 2139 # On the NeXT, cc -E runs the code through the compiler's parser, 2140 # not just through cpp. "Syntax error" is here to catch this case. 2141 cat >conftest.$ac_ext <<_ACEOF 2142#line 2142 "configure" 2143#include "confdefs.h" 2144#include <assert.h> 2145 Syntax error 2146_ACEOF 2147if { (eval echo "$as_me:2147: \"$ac_cpp conftest.$ac_ext\"") >&5 2148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2149 ac_status=$? 2150 egrep -v '^ *\+' conftest.er1 >conftest.err 2151 rm -f conftest.er1 2152 cat conftest.err >&5 2153 echo "$as_me:2153: \$? = $ac_status" >&5 2154 (exit $ac_status); } >/dev/null; then 2155 if test -s conftest.err; then 2156 ac_cpp_err=$ac_c_preproc_warn_flag 2157 else 2158 ac_cpp_err= 2159 fi 2160else 2161 ac_cpp_err=yes 2162fi 2163if test -z "$ac_cpp_err"; then 2164 : 2165else 2166 echo "$as_me: failed program was:" >&5 2167 cat conftest.$ac_ext >&5 2168 # Broken: fails on valid input. 2169continue 2170fi 2171rm -f conftest.err conftest.$ac_ext 2172 2173 # OK, works on sane cases. Now check whether non-existent headers 2174 # can be detected and how. 2175 cat >conftest.$ac_ext <<_ACEOF 2176#line 2176 "configure" 2177#include "confdefs.h" 2178#include <ac_nonexistent.h> 2179_ACEOF 2180if { (eval echo "$as_me:2180: \"$ac_cpp conftest.$ac_ext\"") >&5 2181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2182 ac_status=$? 2183 egrep -v '^ *\+' conftest.er1 >conftest.err 2184 rm -f conftest.er1 2185 cat conftest.err >&5 2186 echo "$as_me:2186: \$? = $ac_status" >&5 2187 (exit $ac_status); } >/dev/null; then 2188 if test -s conftest.err; then 2189 ac_cpp_err=$ac_c_preproc_warn_flag 2190 else 2191 ac_cpp_err= 2192 fi 2193else 2194 ac_cpp_err=yes 2195fi 2196if test -z "$ac_cpp_err"; then 2197 # Broken: success on invalid input. 2198continue 2199else 2200 echo "$as_me: failed program was:" >&5 2201 cat conftest.$ac_ext >&5 2202 # Passes both tests. 2203ac_preproc_ok=: 2204break 2205fi 2206rm -f conftest.err conftest.$ac_ext 2207 2208done 2209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2210rm -f conftest.err conftest.$ac_ext 2211if $ac_preproc_ok; then 2212 break 2213fi 2214 2215 done 2216 ac_cv_prog_CPP=$CPP 2217 2218fi 2219 CPP=$ac_cv_prog_CPP 2220else 2221 ac_cv_prog_CPP=$CPP 2222fi 2223echo "$as_me:2223: result: $CPP" >&5 2224echo "${ECHO_T}$CPP" >&6 2225ac_preproc_ok=false 2226for ac_c_preproc_warn_flag in '' yes 2227do 2228 # Use a header file that comes with gcc, so configuring glibc 2229 # with a fresh cross-compiler works. 2230 # On the NeXT, cc -E runs the code through the compiler's parser, 2231 # not just through cpp. "Syntax error" is here to catch this case. 2232 cat >conftest.$ac_ext <<_ACEOF 2233#line 2233 "configure" 2234#include "confdefs.h" 2235#include <assert.h> 2236 Syntax error 2237_ACEOF 2238if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5 2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2240 ac_status=$? 2241 egrep -v '^ *\+' conftest.er1 >conftest.err 2242 rm -f conftest.er1 2243 cat conftest.err >&5 2244 echo "$as_me:2244: \$? = $ac_status" >&5 2245 (exit $ac_status); } >/dev/null; then 2246 if test -s conftest.err; then 2247 ac_cpp_err=$ac_c_preproc_warn_flag 2248 else 2249 ac_cpp_err= 2250 fi 2251else 2252 ac_cpp_err=yes 2253fi 2254if test -z "$ac_cpp_err"; then 2255 : 2256else 2257 echo "$as_me: failed program was:" >&5 2258 cat conftest.$ac_ext >&5 2259 # Broken: fails on valid input. 2260continue 2261fi 2262rm -f conftest.err conftest.$ac_ext 2263 2264 # OK, works on sane cases. Now check whether non-existent headers 2265 # can be detected and how. 2266 cat >conftest.$ac_ext <<_ACEOF 2267#line 2267 "configure" 2268#include "confdefs.h" 2269#include <ac_nonexistent.h> 2270_ACEOF 2271if { (eval echo "$as_me:2271: \"$ac_cpp conftest.$ac_ext\"") >&5 2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2273 ac_status=$? 2274 egrep -v '^ *\+' conftest.er1 >conftest.err 2275 rm -f conftest.er1 2276 cat conftest.err >&5 2277 echo "$as_me:2277: \$? = $ac_status" >&5 2278 (exit $ac_status); } >/dev/null; then 2279 if test -s conftest.err; then 2280 ac_cpp_err=$ac_c_preproc_warn_flag 2281 else 2282 ac_cpp_err= 2283 fi 2284else 2285 ac_cpp_err=yes 2286fi 2287if test -z "$ac_cpp_err"; then 2288 # Broken: success on invalid input. 2289continue 2290else 2291 echo "$as_me: failed program was:" >&5 2292 cat conftest.$ac_ext >&5 2293 # Passes both tests. 2294ac_preproc_ok=: 2295break 2296fi 2297rm -f conftest.err conftest.$ac_ext 2298 2299done 2300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2301rm -f conftest.err conftest.$ac_ext 2302if $ac_preproc_ok; then 2303 : 2304else 2305 { { echo "$as_me:2305: error: C preprocessor \"$CPP\" fails sanity check" >&5 2306echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2307 { (exit 1); exit 1; }; } 2308fi 2309 2310ac_ext=c 2311ac_cpp='$CPP $CPPFLAGS' 2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2314ac_compiler_gnu=$ac_cv_c_compiler_gnu 2315ac_main_return=return 2316 2317for ac_prog in mawk gawk nawk awk 2318do 2319 # Extract the first word of "$ac_prog", so it can be a program name with args. 2320set dummy $ac_prog; ac_word=$2 2321echo "$as_me:2321: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2323if test "${ac_cv_prog_AWK+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$AWK"; then 2327 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2328else 2329 ac_save_IFS=$IFS; IFS=$ac_path_separator 2330ac_dummy="$PATH" 2331for ac_dir in $ac_dummy; do 2332 IFS=$ac_save_IFS 2333 test -z "$ac_dir" && ac_dir=. 2334 $as_executable_p "$ac_dir/$ac_word" || continue 2335ac_cv_prog_AWK="$ac_prog" 2336echo "$as_me:2336: found $ac_dir/$ac_word" >&5 2337break 2338done 2339 2340fi 2341fi 2342AWK=$ac_cv_prog_AWK 2343if test -n "$AWK"; then 2344 echo "$as_me:2344: result: $AWK" >&5 2345echo "${ECHO_T}$AWK" >&6 2346else 2347 echo "$as_me:2347: result: no" >&5 2348echo "${ECHO_T}no" >&6 2349fi 2350 2351 test -n "$AWK" && break 2352done 2353 2354# Extract the first word of "groff", so it can be a program name with args. 2355set dummy groff; ac_word=$2 2356echo "$as_me:2356: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2358if test "${ac_cv_path_GROFF_PATH+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 case $GROFF_PATH in 2362 [\\/]* | ?:[\\/]*) 2363 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 2364 ;; 2365 *) 2366 ac_save_IFS=$IFS; IFS=$ac_path_separator 2367ac_dummy="$PATH" 2368for ac_dir in $ac_dummy; do 2369 IFS=$ac_save_IFS 2370 test -z "$ac_dir" && ac_dir=. 2371 if $as_executable_p "$ac_dir/$ac_word"; then 2372 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5 2374 break 2375fi 2376done 2377 2378 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 2379 ;; 2380esac 2381fi 2382GROFF_PATH=$ac_cv_path_GROFF_PATH 2383 2384if test -n "$GROFF_PATH"; then 2385 echo "$as_me:2385: result: $GROFF_PATH" >&5 2386echo "${ECHO_T}$GROFF_PATH" >&6 2387else 2388 echo "$as_me:2388: result: no" >&5 2389echo "${ECHO_T}no" >&6 2390fi 2391 2392if test "x$GROFF_PATH" = xno 2393then 2394 NROFF_NOTE= 2395 GROFF_NOTE="#" 2396else 2397 NROFF_NOTE="#" 2398 GROFF_NOTE= 2399fi 2400 2401# Find a good install program. We prefer a C program (faster), 2402# so one script is as good as another. But avoid the broken or 2403# incompatible versions: 2404# SysV /etc/install, /usr/sbin/install 2405# SunOS /usr/etc/install 2406# IRIX /sbin/install 2407# AIX /bin/install 2408# AmigaOS /C/install, which installs bootblocks on floppy discs 2409# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2410# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2411# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2412# ./install, which can be erroneously created by make from ./install.sh. 2413echo "$as_me:2413: checking for a BSD compatible install" >&5 2414echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2415if test -z "$INSTALL"; then 2416if test "${ac_cv_path_install+set}" = set; then 2417 echo $ECHO_N "(cached) $ECHO_C" >&6 2418else 2419 ac_save_IFS=$IFS; IFS=$ac_path_separator 2420 for ac_dir in $PATH; do 2421 IFS=$ac_save_IFS 2422 # Account for people who put trailing slashes in PATH elements. 2423 case $ac_dir/ in 2424 / | ./ | .// | /cC/* \ 2425 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2426 | /usr/ucb/* ) ;; 2427 *) 2428 # OSF1 and SCO ODT 3.0 have their own names for install. 2429 # Don't use installbsd from OSF since it installs stuff as root 2430 # by default. 2431 for ac_prog in ginstall scoinst install; do 2432 if $as_executable_p "$ac_dir/$ac_prog"; then 2433 if test $ac_prog = install && 2434 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2435 # AIX install. It has an incompatible calling convention. 2436 : 2437 elif test $ac_prog = install && 2438 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2439 # program-specific install script used by HP pwplus--don't use. 2440 : 2441 else 2442 ac_cv_path_install="$ac_dir/$ac_prog -c" 2443 break 2 2444 fi 2445 fi 2446 done 2447 ;; 2448 esac 2449 done 2450 2451fi 2452 if test "${ac_cv_path_install+set}" = set; then 2453 INSTALL=$ac_cv_path_install 2454 else 2455 # As a last resort, use the slow shell script. We don't cache a 2456 # path for INSTALL within a source directory, because that will 2457 # break other packages using the cache if that directory is 2458 # removed, or if the path is relative. 2459 INSTALL=$ac_install_sh 2460 fi 2461fi 2462echo "$as_me:2462: result: $INSTALL" >&5 2463echo "${ECHO_T}$INSTALL" >&6 2464 2465# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2466# It thinks the first close brace ends the variable substitution. 2467test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2468 2469test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2470 2471test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2472 2473echo "$as_me:2473: checking whether ln -s works" >&5 2474echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2475LN_S=$as_ln_s 2476if test "$LN_S" = "ln -s"; then 2477 echo "$as_me:2477: result: yes" >&5 2478echo "${ECHO_T}yes" >&6 2479else 2480 echo "$as_me:2480: result: no, using $LN_S" >&5 2481echo "${ECHO_T}no, using $LN_S" >&6 2482fi 2483 2484test "$program_prefix" != NONE && 2485 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2486# Use a double $ so make ignores it. 2487test "$program_suffix" != NONE && 2488 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2489# Double any \ or $. echo might interpret backslashes. 2490# By default was `s,x,x', remove it if useless. 2491cat <<\_ACEOF >conftest.sed 2492s/[\\$]/&&/g;s/;s,x,x,$// 2493_ACEOF 2494program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2495rm conftest.sed 2496 2497for ac_prog in tdlint lint alint 2498do 2499 # Extract the first word of "$ac_prog", so it can be a program name with args. 2500set dummy $ac_prog; ac_word=$2 2501echo "$as_me:2501: checking for $ac_word" >&5 2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2503if test "${ac_cv_prog_LINT+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505else 2506 if test -n "$LINT"; then 2507 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2508else 2509 ac_save_IFS=$IFS; IFS=$ac_path_separator 2510ac_dummy="$PATH" 2511for ac_dir in $ac_dummy; do 2512 IFS=$ac_save_IFS 2513 test -z "$ac_dir" && ac_dir=. 2514 $as_executable_p "$ac_dir/$ac_word" || continue 2515ac_cv_prog_LINT="$ac_prog" 2516echo "$as_me:2516: found $ac_dir/$ac_word" >&5 2517break 2518done 2519 2520fi 2521fi 2522LINT=$ac_cv_prog_LINT 2523if test -n "$LINT"; then 2524 echo "$as_me:2524: result: $LINT" >&5 2525echo "${ECHO_T}$LINT" >&6 2526else 2527 echo "$as_me:2527: result: no" >&5 2528echo "${ECHO_T}no" >&6 2529fi 2530 2531 test -n "$LINT" && break 2532done 2533 2534### checks for compiler characteristics 2535 2536cf_XOPEN_SOURCE=500 2537cf_POSIX_C_SOURCE=199506L 2538cf_xopen_source= 2539 2540case $host_os in #(vi 2541aix[4-7]*) #(vi 2542 cf_xopen_source="-D_ALL_SOURCE" 2543 ;; 2544cygwin|msys) #(vi 2545 cf_XOPEN_SOURCE=600 2546 ;; 2547darwin[0-8].*) #(vi 2548 cf_xopen_source="-D_APPLE_C_SOURCE" 2549 ;; 2550darwin*) #(vi 2551 cf_xopen_source="-D_DARWIN_C_SOURCE" 2552 cf_XOPEN_SOURCE= 2553 ;; 2554freebsd*|dragonfly*) #(vi 2555 # 5.x headers associate 2556 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2557 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2558 cf_POSIX_C_SOURCE=200112L 2559 cf_XOPEN_SOURCE=600 2560 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2561 ;; 2562hpux11*) #(vi 2563 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2564 ;; 2565hpux*) #(vi 2566 cf_xopen_source="-D_HPUX_SOURCE" 2567 ;; 2568irix[56].*) #(vi 2569 cf_xopen_source="-D_SGI_SOURCE" 2570 cf_XOPEN_SOURCE= 2571 ;; 2572linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2573 2574echo "$as_me:2574: checking if we must define _GNU_SOURCE" >&5 2575echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2576if test "${cf_cv_gnu_source+set}" = set; then 2577 echo $ECHO_N "(cached) $ECHO_C" >&6 2578else 2579 2580cat >conftest.$ac_ext <<_ACEOF 2581#line 2581 "configure" 2582#include "confdefs.h" 2583#include <sys/types.h> 2584int 2585main () 2586{ 2587 2588#ifndef _XOPEN_SOURCE 2589make an error 2590#endif 2591 ; 2592 return 0; 2593} 2594_ACEOF 2595rm -f conftest.$ac_objext 2596if { (eval echo "$as_me:2596: \"$ac_compile\"") >&5 2597 (eval $ac_compile) 2>&5 2598 ac_status=$? 2599 echo "$as_me:2599: \$? = $ac_status" >&5 2600 (exit $ac_status); } && 2601 { ac_try='test -s conftest.$ac_objext' 2602 { (eval echo "$as_me:2602: \"$ac_try\"") >&5 2603 (eval $ac_try) 2>&5 2604 ac_status=$? 2605 echo "$as_me:2605: \$? = $ac_status" >&5 2606 (exit $ac_status); }; }; then 2607 cf_cv_gnu_source=no 2608else 2609 echo "$as_me: failed program was:" >&5 2610cat conftest.$ac_ext >&5 2611cf_save="$CPPFLAGS" 2612 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2613 cat >conftest.$ac_ext <<_ACEOF 2614#line 2614 "configure" 2615#include "confdefs.h" 2616#include <sys/types.h> 2617int 2618main () 2619{ 2620 2621#ifdef _XOPEN_SOURCE 2622make an error 2623#endif 2624 ; 2625 return 0; 2626} 2627_ACEOF 2628rm -f conftest.$ac_objext 2629if { (eval echo "$as_me:2629: \"$ac_compile\"") >&5 2630 (eval $ac_compile) 2>&5 2631 ac_status=$? 2632 echo "$as_me:2632: \$? = $ac_status" >&5 2633 (exit $ac_status); } && 2634 { ac_try='test -s conftest.$ac_objext' 2635 { (eval echo "$as_me:2635: \"$ac_try\"") >&5 2636 (eval $ac_try) 2>&5 2637 ac_status=$? 2638 echo "$as_me:2638: \$? = $ac_status" >&5 2639 (exit $ac_status); }; }; then 2640 cf_cv_gnu_source=no 2641else 2642 echo "$as_me: failed program was:" >&5 2643cat conftest.$ac_ext >&5 2644cf_cv_gnu_source=yes 2645fi 2646rm -f conftest.$ac_objext conftest.$ac_ext 2647 CPPFLAGS="$cf_save" 2648 2649fi 2650rm -f conftest.$ac_objext conftest.$ac_ext 2651 2652fi 2653echo "$as_me:2653: result: $cf_cv_gnu_source" >&5 2654echo "${ECHO_T}$cf_cv_gnu_source" >&6 2655test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2656 2657 ;; 2658mirbsd*) #(vi 2659 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2660 cf_XOPEN_SOURCE= 2661 2662cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2663 2664cf_save_CFLAGS="$CFLAGS" 2665cf_save_CPPFLAGS="$CPPFLAGS" 2666 2667cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2668 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2669 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2670 2671cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2672 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2673 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2674 2675echo "$as_me:2675: checking if we should define _POSIX_C_SOURCE" >&5 2676echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2677if test "${cf_cv_posix_c_source+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 2681echo "${as_me:-configure}:2681: testing if the symbol is already defined go no further ..." 1>&5 2682 2683 cat >conftest.$ac_ext <<_ACEOF 2684#line 2684 "configure" 2685#include "confdefs.h" 2686#include <sys/types.h> 2687int 2688main () 2689{ 2690 2691#ifndef _POSIX_C_SOURCE 2692make an error 2693#endif 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698rm -f conftest.$ac_objext 2699if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5 2700 (eval $ac_compile) 2>&5 2701 ac_status=$? 2702 echo "$as_me:2702: \$? = $ac_status" >&5 2703 (exit $ac_status); } && 2704 { ac_try='test -s conftest.$ac_objext' 2705 { (eval echo "$as_me:2705: \"$ac_try\"") >&5 2706 (eval $ac_try) 2>&5 2707 ac_status=$? 2708 echo "$as_me:2708: \$? = $ac_status" >&5 2709 (exit $ac_status); }; }; then 2710 cf_cv_posix_c_source=no 2711else 2712 echo "$as_me: failed program was:" >&5 2713cat conftest.$ac_ext >&5 2714cf_want_posix_source=no 2715 case .$cf_POSIX_C_SOURCE in #(vi 2716 .[12]??*) #(vi 2717 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2718 ;; 2719 .2) #(vi 2720 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2721 cf_want_posix_source=yes 2722 ;; 2723 .*) 2724 cf_want_posix_source=yes 2725 ;; 2726 esac 2727 if test "$cf_want_posix_source" = yes ; then 2728 cat >conftest.$ac_ext <<_ACEOF 2729#line 2729 "configure" 2730#include "confdefs.h" 2731#include <sys/types.h> 2732int 2733main () 2734{ 2735 2736#ifdef _POSIX_SOURCE 2737make an error 2738#endif 2739 ; 2740 return 0; 2741} 2742_ACEOF 2743rm -f conftest.$ac_objext 2744if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5 2745 (eval $ac_compile) 2>&5 2746 ac_status=$? 2747 echo "$as_me:2747: \$? = $ac_status" >&5 2748 (exit $ac_status); } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:2753: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 : 2756else 2757 echo "$as_me: failed program was:" >&5 2758cat conftest.$ac_ext >&5 2759cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2760fi 2761rm -f conftest.$ac_objext conftest.$ac_ext 2762 fi 2763 2764echo "${as_me:-configure}:2764: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2765 2766 CFLAGS="$cf_trim_CFLAGS" 2767 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2768 2769echo "${as_me:-configure}:2769: testing if the second compile does not leave our definition intact error ..." 1>&5 2770 2771 cat >conftest.$ac_ext <<_ACEOF 2772#line 2772 "configure" 2773#include "confdefs.h" 2774#include <sys/types.h> 2775int 2776main () 2777{ 2778 2779#ifndef _POSIX_C_SOURCE 2780make an error 2781#endif 2782 ; 2783 return 0; 2784} 2785_ACEOF 2786rm -f conftest.$ac_objext 2787if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5 2788 (eval $ac_compile) 2>&5 2789 ac_status=$? 2790 echo "$as_me:2790: \$? = $ac_status" >&5 2791 (exit $ac_status); } && 2792 { ac_try='test -s conftest.$ac_objext' 2793 { (eval echo "$as_me:2793: \"$ac_try\"") >&5 2794 (eval $ac_try) 2>&5 2795 ac_status=$? 2796 echo "$as_me:2796: \$? = $ac_status" >&5 2797 (exit $ac_status); }; }; then 2798 : 2799else 2800 echo "$as_me: failed program was:" >&5 2801cat conftest.$ac_ext >&5 2802cf_cv_posix_c_source=no 2803fi 2804rm -f conftest.$ac_objext conftest.$ac_ext 2805 CFLAGS="$cf_save_CFLAGS" 2806 CPPFLAGS="$cf_save_CPPFLAGS" 2807 2808fi 2809rm -f conftest.$ac_objext conftest.$ac_ext 2810 2811fi 2812echo "$as_me:2812: result: $cf_cv_posix_c_source" >&5 2813echo "${ECHO_T}$cf_cv_posix_c_source" >&6 2814 2815if test "$cf_cv_posix_c_source" != no ; then 2816 CFLAGS="$cf_trim_CFLAGS" 2817 CPPFLAGS="$cf_trim_CPPFLAGS" 2818 2819cf_fix_cppflags=no 2820cf_new_cflags= 2821cf_new_cppflags= 2822cf_new_extra_cppflags= 2823 2824for cf_add_cflags in $cf_cv_posix_c_source 2825do 2826case $cf_fix_cppflags in 2827no) 2828 case $cf_add_cflags in #(vi 2829 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2830 case $cf_add_cflags in 2831 -D*) 2832 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2833 2834 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2835 && test -z "${cf_tst_cflags}" \ 2836 && cf_fix_cppflags=yes 2837 2838 if test $cf_fix_cppflags = yes ; then 2839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2840 continue 2841 elif test "${cf_tst_cflags}" = "\"'" ; then 2842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2843 continue 2844 fi 2845 ;; 2846 esac 2847 case "$CPPFLAGS" in 2848 *$cf_add_cflags) #(vi 2849 ;; 2850 *) #(vi 2851 case $cf_add_cflags in #(vi 2852 -D*) 2853 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2854 2855CPPFLAGS=`echo "$CPPFLAGS" | \ 2856 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2857 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2858 2859 ;; 2860 esac 2861 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2862 ;; 2863 esac 2864 ;; 2865 *) 2866 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2867 ;; 2868 esac 2869 ;; 2870yes) 2871 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2872 2873 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2874 2875 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2876 && test -z "${cf_tst_cflags}" \ 2877 && cf_fix_cppflags=no 2878 ;; 2879esac 2880done 2881 2882if test -n "$cf_new_cflags" ; then 2883 2884 CFLAGS="$CFLAGS $cf_new_cflags" 2885fi 2886 2887if test -n "$cf_new_cppflags" ; then 2888 2889 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2890fi 2891 2892if test -n "$cf_new_extra_cppflags" ; then 2893 2894 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2895fi 2896 2897fi 2898 2899 ;; 2900netbsd*) #(vi 2901 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2902 ;; 2903openbsd[4-9]*) #(vi 2904 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2905 cf_xopen_source="-D_BSD_SOURCE" 2906 cf_XOPEN_SOURCE=600 2907 ;; 2908openbsd*) #(vi 2909 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2910 ;; 2911osf[45]*) #(vi 2912 cf_xopen_source="-D_OSF_SOURCE" 2913 ;; 2914nto-qnx*) #(vi 2915 cf_xopen_source="-D_QNX_SOURCE" 2916 ;; 2917sco*) #(vi 2918 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2919 ;; 2920solaris2.*) #(vi 2921 cf_xopen_source="-D__EXTENSIONS__" 2922 cf_cv_xopen_source=broken 2923 ;; 2924*) 2925 2926echo "$as_me:2926: checking if we should define _XOPEN_SOURCE" >&5 2927echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2928if test "${cf_cv_xopen_source+set}" = set; then 2929 echo $ECHO_N "(cached) $ECHO_C" >&6 2930else 2931 2932 cat >conftest.$ac_ext <<_ACEOF 2933#line 2933 "configure" 2934#include "confdefs.h" 2935 2936#include <stdlib.h> 2937#include <string.h> 2938#include <sys/types.h> 2939 2940int 2941main () 2942{ 2943 2944#ifndef _XOPEN_SOURCE 2945make an error 2946#endif 2947 ; 2948 return 0; 2949} 2950_ACEOF 2951rm -f conftest.$ac_objext 2952if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5 2953 (eval $ac_compile) 2>&5 2954 ac_status=$? 2955 echo "$as_me:2955: \$? = $ac_status" >&5 2956 (exit $ac_status); } && 2957 { ac_try='test -s conftest.$ac_objext' 2958 { (eval echo "$as_me:2958: \"$ac_try\"") >&5 2959 (eval $ac_try) 2>&5 2960 ac_status=$? 2961 echo "$as_me:2961: \$? = $ac_status" >&5 2962 (exit $ac_status); }; }; then 2963 cf_cv_xopen_source=no 2964else 2965 echo "$as_me: failed program was:" >&5 2966cat conftest.$ac_ext >&5 2967cf_save="$CPPFLAGS" 2968 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2969 cat >conftest.$ac_ext <<_ACEOF 2970#line 2970 "configure" 2971#include "confdefs.h" 2972 2973#include <stdlib.h> 2974#include <string.h> 2975#include <sys/types.h> 2976 2977int 2978main () 2979{ 2980 2981#ifdef _XOPEN_SOURCE 2982make an error 2983#endif 2984 ; 2985 return 0; 2986} 2987_ACEOF 2988rm -f conftest.$ac_objext 2989if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5 2990 (eval $ac_compile) 2>&5 2991 ac_status=$? 2992 echo "$as_me:2992: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -s conftest.$ac_objext' 2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5 2996 (eval $ac_try) 2>&5 2997 ac_status=$? 2998 echo "$as_me:2998: \$? = $ac_status" >&5 2999 (exit $ac_status); }; }; then 3000 cf_cv_xopen_source=no 3001else 3002 echo "$as_me: failed program was:" >&5 3003cat conftest.$ac_ext >&5 3004cf_cv_xopen_source=$cf_XOPEN_SOURCE 3005fi 3006rm -f conftest.$ac_objext conftest.$ac_ext 3007 CPPFLAGS="$cf_save" 3008 3009fi 3010rm -f conftest.$ac_objext conftest.$ac_ext 3011 3012fi 3013echo "$as_me:3013: result: $cf_cv_xopen_source" >&5 3014echo "${ECHO_T}$cf_cv_xopen_source" >&6 3015 3016if test "$cf_cv_xopen_source" != no ; then 3017 3018CFLAGS=`echo "$CFLAGS" | \ 3019 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3020 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3021 3022CPPFLAGS=`echo "$CPPFLAGS" | \ 3023 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3024 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3025 3026 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3027 3028cf_fix_cppflags=no 3029cf_new_cflags= 3030cf_new_cppflags= 3031cf_new_extra_cppflags= 3032 3033for cf_add_cflags in $cf_temp_xopen_source 3034do 3035case $cf_fix_cppflags in 3036no) 3037 case $cf_add_cflags in #(vi 3038 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3039 case $cf_add_cflags in 3040 -D*) 3041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3042 3043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3044 && test -z "${cf_tst_cflags}" \ 3045 && cf_fix_cppflags=yes 3046 3047 if test $cf_fix_cppflags = yes ; then 3048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3049 continue 3050 elif test "${cf_tst_cflags}" = "\"'" ; then 3051 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3052 continue 3053 fi 3054 ;; 3055 esac 3056 case "$CPPFLAGS" in 3057 *$cf_add_cflags) #(vi 3058 ;; 3059 *) #(vi 3060 case $cf_add_cflags in #(vi 3061 -D*) 3062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3063 3064CPPFLAGS=`echo "$CPPFLAGS" | \ 3065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3067 3068 ;; 3069 esac 3070 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3071 ;; 3072 esac 3073 ;; 3074 *) 3075 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3076 ;; 3077 esac 3078 ;; 3079yes) 3080 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3081 3082 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3083 3084 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3085 && test -z "${cf_tst_cflags}" \ 3086 && cf_fix_cppflags=no 3087 ;; 3088esac 3089done 3090 3091if test -n "$cf_new_cflags" ; then 3092 3093 CFLAGS="$CFLAGS $cf_new_cflags" 3094fi 3095 3096if test -n "$cf_new_cppflags" ; then 3097 3098 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3099fi 3100 3101if test -n "$cf_new_extra_cppflags" ; then 3102 3103 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3104fi 3105 3106fi 3107 3108cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3109 3110cf_save_CFLAGS="$CFLAGS" 3111cf_save_CPPFLAGS="$CPPFLAGS" 3112 3113cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3114 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3115 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3116 3117cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3118 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3119 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3120 3121echo "$as_me:3121: checking if we should define _POSIX_C_SOURCE" >&5 3122echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3123if test "${cf_cv_posix_c_source+set}" = set; then 3124 echo $ECHO_N "(cached) $ECHO_C" >&6 3125else 3126 3127echo "${as_me:-configure}:3127: testing if the symbol is already defined go no further ..." 1>&5 3128 3129 cat >conftest.$ac_ext <<_ACEOF 3130#line 3130 "configure" 3131#include "confdefs.h" 3132#include <sys/types.h> 3133int 3134main () 3135{ 3136 3137#ifndef _POSIX_C_SOURCE 3138make an error 3139#endif 3140 ; 3141 return 0; 3142} 3143_ACEOF 3144rm -f conftest.$ac_objext 3145if { (eval echo "$as_me:3145: \"$ac_compile\"") >&5 3146 (eval $ac_compile) 2>&5 3147 ac_status=$? 3148 echo "$as_me:3148: \$? = $ac_status" >&5 3149 (exit $ac_status); } && 3150 { ac_try='test -s conftest.$ac_objext' 3151 { (eval echo "$as_me:3151: \"$ac_try\"") >&5 3152 (eval $ac_try) 2>&5 3153 ac_status=$? 3154 echo "$as_me:3154: \$? = $ac_status" >&5 3155 (exit $ac_status); }; }; then 3156 cf_cv_posix_c_source=no 3157else 3158 echo "$as_me: failed program was:" >&5 3159cat conftest.$ac_ext >&5 3160cf_want_posix_source=no 3161 case .$cf_POSIX_C_SOURCE in #(vi 3162 .[12]??*) #(vi 3163 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3164 ;; 3165 .2) #(vi 3166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3167 cf_want_posix_source=yes 3168 ;; 3169 .*) 3170 cf_want_posix_source=yes 3171 ;; 3172 esac 3173 if test "$cf_want_posix_source" = yes ; then 3174 cat >conftest.$ac_ext <<_ACEOF 3175#line 3175 "configure" 3176#include "confdefs.h" 3177#include <sys/types.h> 3178int 3179main () 3180{ 3181 3182#ifdef _POSIX_SOURCE 3183make an error 3184#endif 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189rm -f conftest.$ac_objext 3190if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5 3191 (eval $ac_compile) 2>&5 3192 ac_status=$? 3193 echo "$as_me:3193: \$? = $ac_status" >&5 3194 (exit $ac_status); } && 3195 { ac_try='test -s conftest.$ac_objext' 3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5 3197 (eval $ac_try) 2>&5 3198 ac_status=$? 3199 echo "$as_me:3199: \$? = $ac_status" >&5 3200 (exit $ac_status); }; }; then 3201 : 3202else 3203 echo "$as_me: failed program was:" >&5 3204cat conftest.$ac_ext >&5 3205cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3206fi 3207rm -f conftest.$ac_objext conftest.$ac_ext 3208 fi 3209 3210echo "${as_me:-configure}:3210: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3211 3212 CFLAGS="$cf_trim_CFLAGS" 3213 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3214 3215echo "${as_me:-configure}:3215: testing if the second compile does not leave our definition intact error ..." 1>&5 3216 3217 cat >conftest.$ac_ext <<_ACEOF 3218#line 3218 "configure" 3219#include "confdefs.h" 3220#include <sys/types.h> 3221int 3222main () 3223{ 3224 3225#ifndef _POSIX_C_SOURCE 3226make an error 3227#endif 3228 ; 3229 return 0; 3230} 3231_ACEOF 3232rm -f conftest.$ac_objext 3233if { (eval echo "$as_me:3233: \"$ac_compile\"") >&5 3234 (eval $ac_compile) 2>&5 3235 ac_status=$? 3236 echo "$as_me:3236: \$? = $ac_status" >&5 3237 (exit $ac_status); } && 3238 { ac_try='test -s conftest.$ac_objext' 3239 { (eval echo "$as_me:3239: \"$ac_try\"") >&5 3240 (eval $ac_try) 2>&5 3241 ac_status=$? 3242 echo "$as_me:3242: \$? = $ac_status" >&5 3243 (exit $ac_status); }; }; then 3244 : 3245else 3246 echo "$as_me: failed program was:" >&5 3247cat conftest.$ac_ext >&5 3248cf_cv_posix_c_source=no 3249fi 3250rm -f conftest.$ac_objext conftest.$ac_ext 3251 CFLAGS="$cf_save_CFLAGS" 3252 CPPFLAGS="$cf_save_CPPFLAGS" 3253 3254fi 3255rm -f conftest.$ac_objext conftest.$ac_ext 3256 3257fi 3258echo "$as_me:3258: result: $cf_cv_posix_c_source" >&5 3259echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3260 3261if test "$cf_cv_posix_c_source" != no ; then 3262 CFLAGS="$cf_trim_CFLAGS" 3263 CPPFLAGS="$cf_trim_CPPFLAGS" 3264 3265cf_fix_cppflags=no 3266cf_new_cflags= 3267cf_new_cppflags= 3268cf_new_extra_cppflags= 3269 3270for cf_add_cflags in $cf_cv_posix_c_source 3271do 3272case $cf_fix_cppflags in 3273no) 3274 case $cf_add_cflags in #(vi 3275 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3276 case $cf_add_cflags in 3277 -D*) 3278 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3279 3280 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3281 && test -z "${cf_tst_cflags}" \ 3282 && cf_fix_cppflags=yes 3283 3284 if test $cf_fix_cppflags = yes ; then 3285 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3286 continue 3287 elif test "${cf_tst_cflags}" = "\"'" ; then 3288 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3289 continue 3290 fi 3291 ;; 3292 esac 3293 case "$CPPFLAGS" in 3294 *$cf_add_cflags) #(vi 3295 ;; 3296 *) #(vi 3297 case $cf_add_cflags in #(vi 3298 -D*) 3299 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3300 3301CPPFLAGS=`echo "$CPPFLAGS" | \ 3302 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3303 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3304 3305 ;; 3306 esac 3307 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3308 ;; 3309 esac 3310 ;; 3311 *) 3312 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3313 ;; 3314 esac 3315 ;; 3316yes) 3317 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3318 3319 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3320 3321 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3322 && test -z "${cf_tst_cflags}" \ 3323 && cf_fix_cppflags=no 3324 ;; 3325esac 3326done 3327 3328if test -n "$cf_new_cflags" ; then 3329 3330 CFLAGS="$CFLAGS $cf_new_cflags" 3331fi 3332 3333if test -n "$cf_new_cppflags" ; then 3334 3335 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3336fi 3337 3338if test -n "$cf_new_extra_cppflags" ; then 3339 3340 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3341fi 3342 3343fi 3344 3345 ;; 3346esac 3347 3348if test -n "$cf_xopen_source" ; then 3349 3350cf_fix_cppflags=no 3351cf_new_cflags= 3352cf_new_cppflags= 3353cf_new_extra_cppflags= 3354 3355for cf_add_cflags in $cf_xopen_source 3356do 3357case $cf_fix_cppflags in 3358no) 3359 case $cf_add_cflags in #(vi 3360 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3361 case $cf_add_cflags in 3362 -D*) 3363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3364 3365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3366 && test -z "${cf_tst_cflags}" \ 3367 && cf_fix_cppflags=yes 3368 3369 if test $cf_fix_cppflags = yes ; then 3370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3371 continue 3372 elif test "${cf_tst_cflags}" = "\"'" ; then 3373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3374 continue 3375 fi 3376 ;; 3377 esac 3378 case "$CPPFLAGS" in 3379 *$cf_add_cflags) #(vi 3380 ;; 3381 *) #(vi 3382 case $cf_add_cflags in #(vi 3383 -D*) 3384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3385 3386CPPFLAGS=`echo "$CPPFLAGS" | \ 3387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3389 3390 ;; 3391 esac 3392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3393 ;; 3394 esac 3395 ;; 3396 *) 3397 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3398 ;; 3399 esac 3400 ;; 3401yes) 3402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3403 3404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3405 3406 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3407 && test -z "${cf_tst_cflags}" \ 3408 && cf_fix_cppflags=no 3409 ;; 3410esac 3411done 3412 3413if test -n "$cf_new_cflags" ; then 3414 3415 CFLAGS="$CFLAGS $cf_new_cflags" 3416fi 3417 3418if test -n "$cf_new_cppflags" ; then 3419 3420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3421fi 3422 3423if test -n "$cf_new_extra_cppflags" ; then 3424 3425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3426fi 3427 3428fi 3429 3430if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3431 echo "$as_me:3431: checking if _XOPEN_SOURCE really is set" >&5 3432echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3433 cat >conftest.$ac_ext <<_ACEOF 3434#line 3434 "configure" 3435#include "confdefs.h" 3436#include <stdlib.h> 3437int 3438main () 3439{ 3440 3441#ifndef _XOPEN_SOURCE 3442make an error 3443#endif 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448rm -f conftest.$ac_objext 3449if { (eval echo "$as_me:3449: \"$ac_compile\"") >&5 3450 (eval $ac_compile) 2>&5 3451 ac_status=$? 3452 echo "$as_me:3452: \$? = $ac_status" >&5 3453 (exit $ac_status); } && 3454 { ac_try='test -s conftest.$ac_objext' 3455 { (eval echo "$as_me:3455: \"$ac_try\"") >&5 3456 (eval $ac_try) 2>&5 3457 ac_status=$? 3458 echo "$as_me:3458: \$? = $ac_status" >&5 3459 (exit $ac_status); }; }; then 3460 cf_XOPEN_SOURCE_set=yes 3461else 3462 echo "$as_me: failed program was:" >&5 3463cat conftest.$ac_ext >&5 3464cf_XOPEN_SOURCE_set=no 3465fi 3466rm -f conftest.$ac_objext conftest.$ac_ext 3467 echo "$as_me:3467: result: $cf_XOPEN_SOURCE_set" >&5 3468echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3469 if test $cf_XOPEN_SOURCE_set = yes 3470 then 3471 cat >conftest.$ac_ext <<_ACEOF 3472#line 3472 "configure" 3473#include "confdefs.h" 3474#include <stdlib.h> 3475int 3476main () 3477{ 3478 3479#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3480make an error 3481#endif 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486rm -f conftest.$ac_objext 3487if { (eval echo "$as_me:3487: \"$ac_compile\"") >&5 3488 (eval $ac_compile) 2>&5 3489 ac_status=$? 3490 echo "$as_me:3490: \$? = $ac_status" >&5 3491 (exit $ac_status); } && 3492 { ac_try='test -s conftest.$ac_objext' 3493 { (eval echo "$as_me:3493: \"$ac_try\"") >&5 3494 (eval $ac_try) 2>&5 3495 ac_status=$? 3496 echo "$as_me:3496: \$? = $ac_status" >&5 3497 (exit $ac_status); }; }; then 3498 cf_XOPEN_SOURCE_set_ok=yes 3499else 3500 echo "$as_me: failed program was:" >&5 3501cat conftest.$ac_ext >&5 3502cf_XOPEN_SOURCE_set_ok=no 3503fi 3504rm -f conftest.$ac_objext conftest.$ac_ext 3505 if test $cf_XOPEN_SOURCE_set_ok = no 3506 then 3507 { echo "$as_me:3507: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3508echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3509 fi 3510 else 3511 3512echo "$as_me:3512: checking if we should define _XOPEN_SOURCE" >&5 3513echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3514if test "${cf_cv_xopen_source+set}" = set; then 3515 echo $ECHO_N "(cached) $ECHO_C" >&6 3516else 3517 3518 cat >conftest.$ac_ext <<_ACEOF 3519#line 3519 "configure" 3520#include "confdefs.h" 3521 3522#include <stdlib.h> 3523#include <string.h> 3524#include <sys/types.h> 3525 3526int 3527main () 3528{ 3529 3530#ifndef _XOPEN_SOURCE 3531make an error 3532#endif 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537rm -f conftest.$ac_objext 3538if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5 3539 (eval $ac_compile) 2>&5 3540 ac_status=$? 3541 echo "$as_me:3541: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -s conftest.$ac_objext' 3544 { (eval echo "$as_me:3544: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:3547: \$? = $ac_status" >&5 3548 (exit $ac_status); }; }; then 3549 cf_cv_xopen_source=no 3550else 3551 echo "$as_me: failed program was:" >&5 3552cat conftest.$ac_ext >&5 3553cf_save="$CPPFLAGS" 3554 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3555 cat >conftest.$ac_ext <<_ACEOF 3556#line 3556 "configure" 3557#include "confdefs.h" 3558 3559#include <stdlib.h> 3560#include <string.h> 3561#include <sys/types.h> 3562 3563int 3564main () 3565{ 3566 3567#ifdef _XOPEN_SOURCE 3568make an error 3569#endif 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574rm -f conftest.$ac_objext 3575if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5 3576 (eval $ac_compile) 2>&5 3577 ac_status=$? 3578 echo "$as_me:3578: \$? = $ac_status" >&5 3579 (exit $ac_status); } && 3580 { ac_try='test -s conftest.$ac_objext' 3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5 3582 (eval $ac_try) 2>&5 3583 ac_status=$? 3584 echo "$as_me:3584: \$? = $ac_status" >&5 3585 (exit $ac_status); }; }; then 3586 cf_cv_xopen_source=no 3587else 3588 echo "$as_me: failed program was:" >&5 3589cat conftest.$ac_ext >&5 3590cf_cv_xopen_source=$cf_XOPEN_SOURCE 3591fi 3592rm -f conftest.$ac_objext conftest.$ac_ext 3593 CPPFLAGS="$cf_save" 3594 3595fi 3596rm -f conftest.$ac_objext conftest.$ac_ext 3597 3598fi 3599echo "$as_me:3599: result: $cf_cv_xopen_source" >&5 3600echo "${ECHO_T}$cf_cv_xopen_source" >&6 3601 3602if test "$cf_cv_xopen_source" != no ; then 3603 3604CFLAGS=`echo "$CFLAGS" | \ 3605 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3606 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3607 3608CPPFLAGS=`echo "$CPPFLAGS" | \ 3609 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3610 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3611 3612 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3613 3614cf_fix_cppflags=no 3615cf_new_cflags= 3616cf_new_cppflags= 3617cf_new_extra_cppflags= 3618 3619for cf_add_cflags in $cf_temp_xopen_source 3620do 3621case $cf_fix_cppflags in 3622no) 3623 case $cf_add_cflags in #(vi 3624 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3625 case $cf_add_cflags in 3626 -D*) 3627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3628 3629 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3630 && test -z "${cf_tst_cflags}" \ 3631 && cf_fix_cppflags=yes 3632 3633 if test $cf_fix_cppflags = yes ; then 3634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3635 continue 3636 elif test "${cf_tst_cflags}" = "\"'" ; then 3637 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3638 continue 3639 fi 3640 ;; 3641 esac 3642 case "$CPPFLAGS" in 3643 *$cf_add_cflags) #(vi 3644 ;; 3645 *) #(vi 3646 case $cf_add_cflags in #(vi 3647 -D*) 3648 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3649 3650CPPFLAGS=`echo "$CPPFLAGS" | \ 3651 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3652 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3653 3654 ;; 3655 esac 3656 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3657 ;; 3658 esac 3659 ;; 3660 *) 3661 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3662 ;; 3663 esac 3664 ;; 3665yes) 3666 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3667 3668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3669 3670 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3671 && test -z "${cf_tst_cflags}" \ 3672 && cf_fix_cppflags=no 3673 ;; 3674esac 3675done 3676 3677if test -n "$cf_new_cflags" ; then 3678 3679 CFLAGS="$CFLAGS $cf_new_cflags" 3680fi 3681 3682if test -n "$cf_new_cppflags" ; then 3683 3684 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3685fi 3686 3687if test -n "$cf_new_extra_cppflags" ; then 3688 3689 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3690fi 3691 3692fi 3693 3694 fi 3695fi 3696 3697echo "$as_me:3697: checking if SIGWINCH is defined" >&5 3698echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 3699if test "${cf_cv_define_sigwinch+set}" = set; then 3700 echo $ECHO_N "(cached) $ECHO_C" >&6 3701else 3702 3703 cat >conftest.$ac_ext <<_ACEOF 3704#line 3704 "configure" 3705#include "confdefs.h" 3706 3707#include <sys/types.h> 3708#include <sys/signal.h> 3709 3710int 3711main () 3712{ 3713int x = SIGWINCH 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718rm -f conftest.$ac_objext 3719if { (eval echo "$as_me:3719: \"$ac_compile\"") >&5 3720 (eval $ac_compile) 2>&5 3721 ac_status=$? 3722 echo "$as_me:3722: \$? = $ac_status" >&5 3723 (exit $ac_status); } && 3724 { ac_try='test -s conftest.$ac_objext' 3725 { (eval echo "$as_me:3725: \"$ac_try\"") >&5 3726 (eval $ac_try) 2>&5 3727 ac_status=$? 3728 echo "$as_me:3728: \$? = $ac_status" >&5 3729 (exit $ac_status); }; }; then 3730 cf_cv_define_sigwinch=yes 3731else 3732 echo "$as_me: failed program was:" >&5 3733cat conftest.$ac_ext >&5 3734cat >conftest.$ac_ext <<_ACEOF 3735#line 3735 "configure" 3736#include "confdefs.h" 3737 3738#undef _XOPEN_SOURCE 3739#undef _POSIX_SOURCE 3740#undef _POSIX_C_SOURCE 3741#include <sys/types.h> 3742#include <sys/signal.h> 3743 3744int 3745main () 3746{ 3747int x = SIGWINCH 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752rm -f conftest.$ac_objext 3753if { (eval echo "$as_me:3753: \"$ac_compile\"") >&5 3754 (eval $ac_compile) 2>&5 3755 ac_status=$? 3756 echo "$as_me:3756: \$? = $ac_status" >&5 3757 (exit $ac_status); } && 3758 { ac_try='test -s conftest.$ac_objext' 3759 { (eval echo "$as_me:3759: \"$ac_try\"") >&5 3760 (eval $ac_try) 2>&5 3761 ac_status=$? 3762 echo "$as_me:3762: \$? = $ac_status" >&5 3763 (exit $ac_status); }; }; then 3764 cf_cv_define_sigwinch=maybe 3765else 3766 echo "$as_me: failed program was:" >&5 3767cat conftest.$ac_ext >&5 3768cf_cv_define_sigwinch=no 3769fi 3770rm -f conftest.$ac_objext conftest.$ac_ext 3771 3772fi 3773rm -f conftest.$ac_objext conftest.$ac_ext 3774 3775fi 3776echo "$as_me:3776: result: $cf_cv_define_sigwinch" >&5 3777echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 3778 3779if test "$cf_cv_define_sigwinch" = maybe ; then 3780echo "$as_me:3780: checking for actual SIGWINCH definition" >&5 3781echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 3782if test "${cf_cv_fixup_sigwinch+set}" = set; then 3783 echo $ECHO_N "(cached) $ECHO_C" >&6 3784else 3785 3786cf_cv_fixup_sigwinch=unknown 3787cf_sigwinch=32 3788while test $cf_sigwinch != 1 3789do 3790 cat >conftest.$ac_ext <<_ACEOF 3791#line 3791 "configure" 3792#include "confdefs.h" 3793 3794#undef _XOPEN_SOURCE 3795#undef _POSIX_SOURCE 3796#undef _POSIX_C_SOURCE 3797#include <sys/types.h> 3798#include <sys/signal.h> 3799 3800int 3801main () 3802{ 3803 3804#if SIGWINCH != $cf_sigwinch 3805make an error 3806#endif 3807int x = SIGWINCH 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812rm -f conftest.$ac_objext 3813if { (eval echo "$as_me:3813: \"$ac_compile\"") >&5 3814 (eval $ac_compile) 2>&5 3815 ac_status=$? 3816 echo "$as_me:3816: \$? = $ac_status" >&5 3817 (exit $ac_status); } && 3818 { ac_try='test -s conftest.$ac_objext' 3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5 3820 (eval $ac_try) 2>&5 3821 ac_status=$? 3822 echo "$as_me:3822: \$? = $ac_status" >&5 3823 (exit $ac_status); }; }; then 3824 cf_cv_fixup_sigwinch=$cf_sigwinch 3825 break 3826else 3827 echo "$as_me: failed program was:" >&5 3828cat conftest.$ac_ext >&5 3829fi 3830rm -f conftest.$ac_objext conftest.$ac_ext 3831 3832cf_sigwinch=`expr $cf_sigwinch - 1` 3833done 3834 3835fi 3836echo "$as_me:3836: result: $cf_cv_fixup_sigwinch" >&5 3837echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 3838 3839 if test "$cf_cv_fixup_sigwinch" != unknown ; then 3840 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 3841 fi 3842fi 3843 3844### checks for header files 3845 3846for ac_header in \ 3847ncurses/curses.h \ 3848ncurses/term.h \ 3849stdlib.h \ 3850sys/ptem.h sys/ttydefaults.h \ 3851term.h \ 3852termios.h \ 3853unistd.h \ 3854wchar.h \ 3855 3856do 3857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3858echo "$as_me:3858: checking for $ac_header" >&5 3859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3860if eval "test \"\${$as_ac_Header+set}\" = set"; then 3861 echo $ECHO_N "(cached) $ECHO_C" >&6 3862else 3863 cat >conftest.$ac_ext <<_ACEOF 3864#line 3864 "configure" 3865#include "confdefs.h" 3866#include <$ac_header> 3867_ACEOF 3868if { (eval echo "$as_me:3868: \"$ac_cpp conftest.$ac_ext\"") >&5 3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3870 ac_status=$? 3871 egrep -v '^ *\+' conftest.er1 >conftest.err 3872 rm -f conftest.er1 3873 cat conftest.err >&5 3874 echo "$as_me:3874: \$? = $ac_status" >&5 3875 (exit $ac_status); } >/dev/null; then 3876 if test -s conftest.err; then 3877 ac_cpp_err=$ac_c_preproc_warn_flag 3878 else 3879 ac_cpp_err= 3880 fi 3881else 3882 ac_cpp_err=yes 3883fi 3884if test -z "$ac_cpp_err"; then 3885 eval "$as_ac_Header=yes" 3886else 3887 echo "$as_me: failed program was:" >&5 3888 cat conftest.$ac_ext >&5 3889 eval "$as_ac_Header=no" 3890fi 3891rm -f conftest.err conftest.$ac_ext 3892fi 3893echo "$as_me:3893: result: `eval echo '${'$as_ac_Header'}'`" >&5 3894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3895if test `eval echo '${'$as_ac_Header'}'` = yes; then 3896 cat >>confdefs.h <<EOF 3897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3898EOF 3899 3900fi 3901done 3902 3903echo "$as_me:3903: checking whether time.h and sys/time.h may both be included" >&5 3904echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3905if test "${ac_cv_header_time+set}" = set; then 3906 echo $ECHO_N "(cached) $ECHO_C" >&6 3907else 3908 cat >conftest.$ac_ext <<_ACEOF 3909#line 3909 "configure" 3910#include "confdefs.h" 3911#include <sys/types.h> 3912#include <sys/time.h> 3913#include <time.h> 3914 3915int 3916main () 3917{ 3918if ((struct tm *) 0) 3919return 0; 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924rm -f conftest.$ac_objext 3925if { (eval echo "$as_me:3925: \"$ac_compile\"") >&5 3926 (eval $ac_compile) 2>&5 3927 ac_status=$? 3928 echo "$as_me:3928: \$? = $ac_status" >&5 3929 (exit $ac_status); } && 3930 { ac_try='test -s conftest.$ac_objext' 3931 { (eval echo "$as_me:3931: \"$ac_try\"") >&5 3932 (eval $ac_try) 2>&5 3933 ac_status=$? 3934 echo "$as_me:3934: \$? = $ac_status" >&5 3935 (exit $ac_status); }; }; then 3936 ac_cv_header_time=yes 3937else 3938 echo "$as_me: failed program was:" >&5 3939cat conftest.$ac_ext >&5 3940ac_cv_header_time=no 3941fi 3942rm -f conftest.$ac_objext conftest.$ac_ext 3943fi 3944echo "$as_me:3944: result: $ac_cv_header_time" >&5 3945echo "${ECHO_T}$ac_cv_header_time" >&6 3946if test $ac_cv_header_time = yes; then 3947 3948cat >>confdefs.h <<\EOF 3949#define TIME_WITH_SYS_TIME 1 3950EOF 3951 3952fi 3953 3954 echo "$as_me:3954: checking for nl_langinfo and CODESET" >&5 3955echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 3956if test "${am_cv_langinfo_codeset+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 cat >conftest.$ac_ext <<_ACEOF 3960#line 3960 "configure" 3961#include "confdefs.h" 3962#include <langinfo.h> 3963int 3964main () 3965{ 3966char* cs = nl_langinfo(CODESET); 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971rm -f conftest.$ac_objext conftest$ac_exeext 3972if { (eval echo "$as_me:3972: \"$ac_link\"") >&5 3973 (eval $ac_link) 2>&5 3974 ac_status=$? 3975 echo "$as_me:3975: \$? = $ac_status" >&5 3976 (exit $ac_status); } && 3977 { ac_try='test -s conftest$ac_exeext' 3978 { (eval echo "$as_me:3978: \"$ac_try\"") >&5 3979 (eval $ac_try) 2>&5 3980 ac_status=$? 3981 echo "$as_me:3981: \$? = $ac_status" >&5 3982 (exit $ac_status); }; }; then 3983 am_cv_langinfo_codeset=yes 3984else 3985 echo "$as_me: failed program was:" >&5 3986cat conftest.$ac_ext >&5 3987am_cv_langinfo_codeset=no 3988fi 3989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3990 3991fi 3992echo "$as_me:3992: result: $am_cv_langinfo_codeset" >&5 3993echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 3994 if test $am_cv_langinfo_codeset = yes; then 3995 3996cat >>confdefs.h <<\EOF 3997#define HAVE_LANGINFO_CODESET 1 3998EOF 3999 4000 fi 4001 4002### checks for typedefs 4003 4004echo "$as_me:4004: checking for signal global datatype" >&5 4005echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 4006if test "${cf_cv_sig_atomic_t+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 4010 for cf_type in \ 4011 "volatile sig_atomic_t" \ 4012 "sig_atomic_t" \ 4013 "int" 4014 do 4015 cat >conftest.$ac_ext <<_ACEOF 4016#line 4016 "configure" 4017#include "confdefs.h" 4018 4019#include <sys/types.h> 4020#include <signal.h> 4021#include <stdio.h> 4022 4023extern $cf_type x; 4024$cf_type x; 4025static void handler(int sig) 4026{ 4027 x = 5; 4028} 4029int 4030main () 4031{ 4032signal(SIGINT, handler); 4033 x = 1 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038rm -f conftest.$ac_objext 4039if { (eval echo "$as_me:4039: \"$ac_compile\"") >&5 4040 (eval $ac_compile) 2>&5 4041 ac_status=$? 4042 echo "$as_me:4042: \$? = $ac_status" >&5 4043 (exit $ac_status); } && 4044 { ac_try='test -s conftest.$ac_objext' 4045 { (eval echo "$as_me:4045: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:4048: \$? = $ac_status" >&5 4049 (exit $ac_status); }; }; then 4050 cf_cv_sig_atomic_t=$cf_type 4051else 4052 echo "$as_me: failed program was:" >&5 4053cat conftest.$ac_ext >&5 4054cf_cv_sig_atomic_t=no 4055fi 4056rm -f conftest.$ac_objext conftest.$ac_ext 4057 test "$cf_cv_sig_atomic_t" != no && break 4058 done 4059 4060fi 4061 4062echo "$as_me:4062: result: $cf_cv_sig_atomic_t" >&5 4063echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 4064test "$cf_cv_sig_atomic_t" != no && 4065cat >>confdefs.h <<EOF 4066#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 4067EOF 4068 4069echo "$as_me:4069: checking for ANSI C header files" >&5 4070echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4071if test "${ac_cv_header_stdc+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 cat >conftest.$ac_ext <<_ACEOF 4075#line 4075 "configure" 4076#include "confdefs.h" 4077#include <stdlib.h> 4078#include <stdarg.h> 4079#include <string.h> 4080#include <float.h> 4081 4082_ACEOF 4083if { (eval echo "$as_me:4083: \"$ac_cpp conftest.$ac_ext\"") >&5 4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4085 ac_status=$? 4086 egrep -v '^ *\+' conftest.er1 >conftest.err 4087 rm -f conftest.er1 4088 cat conftest.err >&5 4089 echo "$as_me:4089: \$? = $ac_status" >&5 4090 (exit $ac_status); } >/dev/null; then 4091 if test -s conftest.err; then 4092 ac_cpp_err=$ac_c_preproc_warn_flag 4093 else 4094 ac_cpp_err= 4095 fi 4096else 4097 ac_cpp_err=yes 4098fi 4099if test -z "$ac_cpp_err"; then 4100 ac_cv_header_stdc=yes 4101else 4102 echo "$as_me: failed program was:" >&5 4103 cat conftest.$ac_ext >&5 4104 ac_cv_header_stdc=no 4105fi 4106rm -f conftest.err conftest.$ac_ext 4107 4108if test $ac_cv_header_stdc = yes; then 4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111#line 4111 "configure" 4112#include "confdefs.h" 4113#include <string.h> 4114 4115_ACEOF 4116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4117 egrep "memchr" >/dev/null 2>&1; then 4118 : 4119else 4120 ac_cv_header_stdc=no 4121fi 4122rm -rf conftest* 4123 4124fi 4125 4126if test $ac_cv_header_stdc = yes; then 4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4128 cat >conftest.$ac_ext <<_ACEOF 4129#line 4129 "configure" 4130#include "confdefs.h" 4131#include <stdlib.h> 4132 4133_ACEOF 4134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4135 egrep "free" >/dev/null 2>&1; then 4136 : 4137else 4138 ac_cv_header_stdc=no 4139fi 4140rm -rf conftest* 4141 4142fi 4143 4144if test $ac_cv_header_stdc = yes; then 4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4146 if test "$cross_compiling" = yes; then 4147 : 4148else 4149 cat >conftest.$ac_ext <<_ACEOF 4150#line 4150 "configure" 4151#include "confdefs.h" 4152#include <ctype.h> 4153#if ((' ' & 0x0FF) == 0x020) 4154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4156#else 4157# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4158 || ('j' <= (c) && (c) <= 'r') \ 4159 || ('s' <= (c) && (c) <= 'z')) 4160# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4161#endif 4162 4163#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4164int 4165main () 4166{ 4167 int i; 4168 for (i = 0; i < 256; i++) 4169 if (XOR (islower (i), ISLOWER (i)) 4170 || toupper (i) != TOUPPER (i)) 4171 $ac_main_return(2); 4172 $ac_main_return (0); 4173} 4174_ACEOF 4175rm -f conftest$ac_exeext 4176if { (eval echo "$as_me:4176: \"$ac_link\"") >&5 4177 (eval $ac_link) 2>&5 4178 ac_status=$? 4179 echo "$as_me:4179: \$? = $ac_status" >&5 4180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4181 { (eval echo "$as_me:4181: \"$ac_try\"") >&5 4182 (eval $ac_try) 2>&5 4183 ac_status=$? 4184 echo "$as_me:4184: \$? = $ac_status" >&5 4185 (exit $ac_status); }; }; then 4186 : 4187else 4188 echo "$as_me: program exited with status $ac_status" >&5 4189echo "$as_me: failed program was:" >&5 4190cat conftest.$ac_ext >&5 4191ac_cv_header_stdc=no 4192fi 4193rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4194fi 4195fi 4196fi 4197echo "$as_me:4197: result: $ac_cv_header_stdc" >&5 4198echo "${ECHO_T}$ac_cv_header_stdc" >&6 4199if test $ac_cv_header_stdc = yes; then 4200 4201cat >>confdefs.h <<\EOF 4202#define STDC_HEADERS 1 4203EOF 4204 4205fi 4206 4207# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4208 4209for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4210 inttypes.h stdint.h unistd.h 4211do 4212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4213echo "$as_me:4213: checking for $ac_header" >&5 4214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4215if eval "test \"\${$as_ac_Header+set}\" = set"; then 4216 echo $ECHO_N "(cached) $ECHO_C" >&6 4217else 4218 cat >conftest.$ac_ext <<_ACEOF 4219#line 4219 "configure" 4220#include "confdefs.h" 4221$ac_includes_default 4222#include <$ac_header> 4223_ACEOF 4224rm -f conftest.$ac_objext 4225if { (eval echo "$as_me:4225: \"$ac_compile\"") >&5 4226 (eval $ac_compile) 2>&5 4227 ac_status=$? 4228 echo "$as_me:4228: \$? = $ac_status" >&5 4229 (exit $ac_status); } && 4230 { ac_try='test -s conftest.$ac_objext' 4231 { (eval echo "$as_me:4231: \"$ac_try\"") >&5 4232 (eval $ac_try) 2>&5 4233 ac_status=$? 4234 echo "$as_me:4234: \$? = $ac_status" >&5 4235 (exit $ac_status); }; }; then 4236 eval "$as_ac_Header=yes" 4237else 4238 echo "$as_me: failed program was:" >&5 4239cat conftest.$ac_ext >&5 4240eval "$as_ac_Header=no" 4241fi 4242rm -f conftest.$ac_objext conftest.$ac_ext 4243fi 4244echo "$as_me:4244: result: `eval echo '${'$as_ac_Header'}'`" >&5 4245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4246if test `eval echo '${'$as_ac_Header'}'` = yes; then 4247 cat >>confdefs.h <<EOF 4248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4249EOF 4250 4251fi 4252done 4253 4254echo "$as_me:4254: checking for time_t" >&5 4255echo $ECHO_N "checking for time_t... $ECHO_C" >&6 4256if test "${ac_cv_type_time_t+set}" = set; then 4257 echo $ECHO_N "(cached) $ECHO_C" >&6 4258else 4259 cat >conftest.$ac_ext <<_ACEOF 4260#line 4260 "configure" 4261#include "confdefs.h" 4262$ac_includes_default 4263int 4264main () 4265{ 4266if ((time_t *) 0) 4267 return 0; 4268if (sizeof (time_t)) 4269 return 0; 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274rm -f conftest.$ac_objext 4275if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5 4276 (eval $ac_compile) 2>&5 4277 ac_status=$? 4278 echo "$as_me:4278: \$? = $ac_status" >&5 4279 (exit $ac_status); } && 4280 { ac_try='test -s conftest.$ac_objext' 4281 { (eval echo "$as_me:4281: \"$ac_try\"") >&5 4282 (eval $ac_try) 2>&5 4283 ac_status=$? 4284 echo "$as_me:4284: \$? = $ac_status" >&5 4285 (exit $ac_status); }; }; then 4286 ac_cv_type_time_t=yes 4287else 4288 echo "$as_me: failed program was:" >&5 4289cat conftest.$ac_ext >&5 4290ac_cv_type_time_t=no 4291fi 4292rm -f conftest.$ac_objext conftest.$ac_ext 4293fi 4294echo "$as_me:4294: result: $ac_cv_type_time_t" >&5 4295echo "${ECHO_T}$ac_cv_type_time_t" >&6 4296if test $ac_cv_type_time_t = yes; then 4297 : 4298else 4299 4300cat >>confdefs.h <<EOF 4301#define time_t long 4302EOF 4303 4304fi 4305 4306echo "$as_me:4306: checking for cc_t in <termios.h> or <termio.h>" >&5 4307echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 4308if test "${cf_cv_type_cc_t+set}" = set; then 4309 echo $ECHO_N "(cached) $ECHO_C" >&6 4310else 4311 4312 cat >conftest.$ac_ext <<_ACEOF 4313#line 4313 "configure" 4314#include "confdefs.h" 4315 4316#include <sys/types.h> 4317#if defined(HAVE_TERMIOS_H) 4318#include <termios.h> 4319#else 4320#include <termio.h> 4321#include <sys/ioctl.h> 4322#endif 4323 4324int 4325main () 4326{ 4327cc_t x 4328 ; 4329 return 0; 4330} 4331_ACEOF 4332rm -f conftest.$ac_objext 4333if { (eval echo "$as_me:4333: \"$ac_compile\"") >&5 4334 (eval $ac_compile) 2>&5 4335 ac_status=$? 4336 echo "$as_me:4336: \$? = $ac_status" >&5 4337 (exit $ac_status); } && 4338 { ac_try='test -s conftest.$ac_objext' 4339 { (eval echo "$as_me:4339: \"$ac_try\"") >&5 4340 (eval $ac_try) 2>&5 4341 ac_status=$? 4342 echo "$as_me:4342: \$? = $ac_status" >&5 4343 (exit $ac_status); }; }; then 4344 cf_cv_type_cc_t=yes 4345else 4346 echo "$as_me: failed program was:" >&5 4347cat conftest.$ac_ext >&5 4348cf_cv_type_cc_t=no 4349fi 4350rm -f conftest.$ac_objext conftest.$ac_ext 4351 4352fi 4353 4354echo "$as_me:4354: result: $cf_cv_type_cc_t" >&5 4355echo "${ECHO_T}$cf_cv_type_cc_t" >&6 4356test $cf_cv_type_cc_t = no && 4357cat >>confdefs.h <<\EOF 4358#define cc_t unsigned char 4359EOF 4360 4361echo "$as_me:4361: checking for mode_t" >&5 4362echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 4363if test "${ac_cv_type_mode_t+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 cat >conftest.$ac_ext <<_ACEOF 4367#line 4367 "configure" 4368#include "confdefs.h" 4369$ac_includes_default 4370int 4371main () 4372{ 4373if ((mode_t *) 0) 4374 return 0; 4375if (sizeof (mode_t)) 4376 return 0; 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381rm -f conftest.$ac_objext 4382if { (eval echo "$as_me:4382: \"$ac_compile\"") >&5 4383 (eval $ac_compile) 2>&5 4384 ac_status=$? 4385 echo "$as_me:4385: \$? = $ac_status" >&5 4386 (exit $ac_status); } && 4387 { ac_try='test -s conftest.$ac_objext' 4388 { (eval echo "$as_me:4388: \"$ac_try\"") >&5 4389 (eval $ac_try) 2>&5 4390 ac_status=$? 4391 echo "$as_me:4391: \$? = $ac_status" >&5 4392 (exit $ac_status); }; }; then 4393 ac_cv_type_mode_t=yes 4394else 4395 echo "$as_me: failed program was:" >&5 4396cat conftest.$ac_ext >&5 4397ac_cv_type_mode_t=no 4398fi 4399rm -f conftest.$ac_objext conftest.$ac_ext 4400fi 4401echo "$as_me:4401: result: $ac_cv_type_mode_t" >&5 4402echo "${ECHO_T}$ac_cv_type_mode_t" >&6 4403if test $ac_cv_type_mode_t = yes; then 4404 : 4405else 4406 4407cat >>confdefs.h <<EOF 4408#define mode_t int 4409EOF 4410 4411fi 4412 4413echo "$as_me:4413: checking for pid_t" >&5 4414echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4415if test "${ac_cv_type_pid_t+set}" = set; then 4416 echo $ECHO_N "(cached) $ECHO_C" >&6 4417else 4418 cat >conftest.$ac_ext <<_ACEOF 4419#line 4419 "configure" 4420#include "confdefs.h" 4421$ac_includes_default 4422int 4423main () 4424{ 4425if ((pid_t *) 0) 4426 return 0; 4427if (sizeof (pid_t)) 4428 return 0; 4429 ; 4430 return 0; 4431} 4432_ACEOF 4433rm -f conftest.$ac_objext 4434if { (eval echo "$as_me:4434: \"$ac_compile\"") >&5 4435 (eval $ac_compile) 2>&5 4436 ac_status=$? 4437 echo "$as_me:4437: \$? = $ac_status" >&5 4438 (exit $ac_status); } && 4439 { ac_try='test -s conftest.$ac_objext' 4440 { (eval echo "$as_me:4440: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:4443: \$? = $ac_status" >&5 4444 (exit $ac_status); }; }; then 4445 ac_cv_type_pid_t=yes 4446else 4447 echo "$as_me: failed program was:" >&5 4448cat conftest.$ac_ext >&5 4449ac_cv_type_pid_t=no 4450fi 4451rm -f conftest.$ac_objext conftest.$ac_ext 4452fi 4453echo "$as_me:4453: result: $ac_cv_type_pid_t" >&5 4454echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4455if test $ac_cv_type_pid_t = yes; then 4456 : 4457else 4458 4459cat >>confdefs.h <<EOF 4460#define pid_t int 4461EOF 4462 4463fi 4464 4465echo "$as_me:4465: checking for uid_t in sys/types.h" >&5 4466echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4467if test "${ac_cv_type_uid_t+set}" = set; then 4468 echo $ECHO_N "(cached) $ECHO_C" >&6 4469else 4470 cat >conftest.$ac_ext <<_ACEOF 4471#line 4471 "configure" 4472#include "confdefs.h" 4473#include <sys/types.h> 4474 4475_ACEOF 4476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4477 egrep "uid_t" >/dev/null 2>&1; then 4478 ac_cv_type_uid_t=yes 4479else 4480 ac_cv_type_uid_t=no 4481fi 4482rm -rf conftest* 4483 4484fi 4485echo "$as_me:4485: result: $ac_cv_type_uid_t" >&5 4486echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4487if test $ac_cv_type_uid_t = no; then 4488 4489cat >>confdefs.h <<\EOF 4490#define uid_t int 4491EOF 4492 4493cat >>confdefs.h <<\EOF 4494#define gid_t int 4495EOF 4496 4497fi 4498 4499echo "$as_me:4499: checking for off_t" >&5 4500echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4501if test "${ac_cv_type_off_t+set}" = set; then 4502 echo $ECHO_N "(cached) $ECHO_C" >&6 4503else 4504 cat >conftest.$ac_ext <<_ACEOF 4505#line 4505 "configure" 4506#include "confdefs.h" 4507$ac_includes_default 4508int 4509main () 4510{ 4511if ((off_t *) 0) 4512 return 0; 4513if (sizeof (off_t)) 4514 return 0; 4515 ; 4516 return 0; 4517} 4518_ACEOF 4519rm -f conftest.$ac_objext 4520if { (eval echo "$as_me:4520: \"$ac_compile\"") >&5 4521 (eval $ac_compile) 2>&5 4522 ac_status=$? 4523 echo "$as_me:4523: \$? = $ac_status" >&5 4524 (exit $ac_status); } && 4525 { ac_try='test -s conftest.$ac_objext' 4526 { (eval echo "$as_me:4526: \"$ac_try\"") >&5 4527 (eval $ac_try) 2>&5 4528 ac_status=$? 4529 echo "$as_me:4529: \$? = $ac_status" >&5 4530 (exit $ac_status); }; }; then 4531 ac_cv_type_off_t=yes 4532else 4533 echo "$as_me: failed program was:" >&5 4534cat conftest.$ac_ext >&5 4535ac_cv_type_off_t=no 4536fi 4537rm -f conftest.$ac_objext conftest.$ac_ext 4538fi 4539echo "$as_me:4539: result: $ac_cv_type_off_t" >&5 4540echo "${ECHO_T}$ac_cv_type_off_t" >&6 4541if test $ac_cv_type_off_t = yes; then 4542 : 4543else 4544 4545cat >>confdefs.h <<EOF 4546#define off_t long 4547EOF 4548 4549fi 4550 4551### checks for library functions 4552 4553for ac_func in \ 4554 gethostname \ 4555 getlogin \ 4556 initgroups \ 4557 mkdtemp \ 4558 putenv \ 4559 unsetenv \ 4560 sched_yield \ 4561 setpgid \ 4562 strftime \ 4563 tcgetattr \ 4564 waitpid \ 4565 wcswidth \ 4566 wcwidth 4567do 4568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4569echo "$as_me:4569: checking for $ac_func" >&5 4570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4571if eval "test \"\${$as_ac_var+set}\" = set"; then 4572 echo $ECHO_N "(cached) $ECHO_C" >&6 4573else 4574 cat >conftest.$ac_ext <<_ACEOF 4575#line 4575 "configure" 4576#include "confdefs.h" 4577/* System header to define __stub macros and hopefully few prototypes, 4578 which can conflict with char $ac_func (); below. */ 4579#include <assert.h> 4580/* Override any gcc2 internal prototype to avoid an error. */ 4581#ifdef __cplusplus 4582extern "C" 4583#endif 4584/* We use char because int might match the return type of a gcc2 4585 builtin and then its argument prototype would still apply. */ 4586char $ac_func (); 4587char (*f) (); 4588 4589int 4590main () 4591{ 4592/* The GNU C library defines this for functions which it implements 4593 to always fail with ENOSYS. Some functions are actually named 4594 something starting with __ and the normal name is an alias. */ 4595#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4596choke me 4597#else 4598f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4599#endif 4600 4601 ; 4602 return 0; 4603} 4604_ACEOF 4605rm -f conftest.$ac_objext conftest$ac_exeext 4606if { (eval echo "$as_me:4606: \"$ac_link\"") >&5 4607 (eval $ac_link) 2>&5 4608 ac_status=$? 4609 echo "$as_me:4609: \$? = $ac_status" >&5 4610 (exit $ac_status); } && 4611 { ac_try='test -s conftest$ac_exeext' 4612 { (eval echo "$as_me:4612: \"$ac_try\"") >&5 4613 (eval $ac_try) 2>&5 4614 ac_status=$? 4615 echo "$as_me:4615: \$? = $ac_status" >&5 4616 (exit $ac_status); }; }; then 4617 eval "$as_ac_var=yes" 4618else 4619 echo "$as_me: failed program was:" >&5 4620cat conftest.$ac_ext >&5 4621eval "$as_ac_var=no" 4622fi 4623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4624fi 4625echo "$as_me:4625: result: `eval echo '${'$as_ac_var'}'`" >&5 4626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4627if test `eval echo '${'$as_ac_var'}'` = yes; then 4628 cat >>confdefs.h <<EOF 4629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4630EOF 4631 4632fi 4633done 4634 4635for ac_header in lastlog.h paths.h 4636do 4637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4638echo "$as_me:4638: checking for $ac_header" >&5 4639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4640if eval "test \"\${$as_ac_Header+set}\" = set"; then 4641 echo $ECHO_N "(cached) $ECHO_C" >&6 4642else 4643 cat >conftest.$ac_ext <<_ACEOF 4644#line 4644 "configure" 4645#include "confdefs.h" 4646#include <$ac_header> 4647_ACEOF 4648if { (eval echo "$as_me:4648: \"$ac_cpp conftest.$ac_ext\"") >&5 4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4650 ac_status=$? 4651 egrep -v '^ *\+' conftest.er1 >conftest.err 4652 rm -f conftest.er1 4653 cat conftest.err >&5 4654 echo "$as_me:4654: \$? = $ac_status" >&5 4655 (exit $ac_status); } >/dev/null; then 4656 if test -s conftest.err; then 4657 ac_cpp_err=$ac_c_preproc_warn_flag 4658 else 4659 ac_cpp_err= 4660 fi 4661else 4662 ac_cpp_err=yes 4663fi 4664if test -z "$ac_cpp_err"; then 4665 eval "$as_ac_Header=yes" 4666else 4667 echo "$as_me: failed program was:" >&5 4668 cat conftest.$ac_ext >&5 4669 eval "$as_ac_Header=no" 4670fi 4671rm -f conftest.err conftest.$ac_ext 4672fi 4673echo "$as_me:4673: result: `eval echo '${'$as_ac_Header'}'`" >&5 4674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4675if test `eval echo '${'$as_ac_Header'}'` = yes; then 4676 cat >>confdefs.h <<EOF 4677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4678EOF 4679 4680fi 4681done 4682 4683echo "$as_me:4683: checking for lastlog path" >&5 4684echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 4685if test "${cf_cv_path_lastlog+set}" = set; then 4686 echo $ECHO_N "(cached) $ECHO_C" >&6 4687else 4688 4689cat >conftest.$ac_ext <<_ACEOF 4690#line 4690 "configure" 4691#include "confdefs.h" 4692 4693#include <sys/types.h> 4694#ifdef HAVE_LASTLOG_H 4695#include <lastlog.h> 4696#else 4697#ifdef HAVE_PATHS_H 4698#include <paths.h> 4699#endif 4700#endif 4701int 4702main () 4703{ 4704char *path = _PATH_LASTLOG 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709rm -f conftest.$ac_objext 4710if { (eval echo "$as_me:4710: \"$ac_compile\"") >&5 4711 (eval $ac_compile) 2>&5 4712 ac_status=$? 4713 echo "$as_me:4713: \$? = $ac_status" >&5 4714 (exit $ac_status); } && 4715 { ac_try='test -s conftest.$ac_objext' 4716 { (eval echo "$as_me:4716: \"$ac_try\"") >&5 4717 (eval $ac_try) 2>&5 4718 ac_status=$? 4719 echo "$as_me:4719: \$? = $ac_status" >&5 4720 (exit $ac_status); }; }; then 4721 cf_cv_path_lastlog="_PATH_LASTLOG" 4722else 4723 echo "$as_me: failed program was:" >&5 4724cat conftest.$ac_ext >&5 4725if test -f /usr/adm/lastlog ; then 4726 cf_cv_path_lastlog=/usr/adm/lastlog 4727 else 4728 cf_cv_path_lastlog=no 4729 fi 4730fi 4731rm -f conftest.$ac_objext conftest.$ac_ext 4732 4733fi 4734echo "$as_me:4734: result: $cf_cv_path_lastlog" >&5 4735echo "${ECHO_T}$cf_cv_path_lastlog" >&6 4736test $cf_cv_path_lastlog != no && 4737cat >>confdefs.h <<\EOF 4738#define USE_LASTLOG 1 4739EOF 4740 4741echo "$as_me:4741: checking for utmp implementation" >&5 4742echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 4743if test "${cf_cv_have_utmp+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745else 4746 4747 cf_cv_have_utmp=no 4748for cf_header in utmpx utmp ; do 4749cf_utmp_includes=" 4750#include <sys/types.h> 4751#include <${cf_header}.h> 4752#define getutent getutxent 4753#ifdef USE_LASTLOG 4754#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4755#endif 4756" 4757 cat >conftest.$ac_ext <<_ACEOF 4758#line 4758 "configure" 4759#include "confdefs.h" 4760$cf_utmp_includes 4761int 4762main () 4763{ 4764struct $cf_header x; 4765 char *name = x.ut_name; /* utmp.h and compatible definitions */ 4766 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771rm -f conftest.$ac_objext 4772if { (eval echo "$as_me:4772: \"$ac_compile\"") >&5 4773 (eval $ac_compile) 2>&5 4774 ac_status=$? 4775 echo "$as_me:4775: \$? = $ac_status" >&5 4776 (exit $ac_status); } && 4777 { ac_try='test -s conftest.$ac_objext' 4778 { (eval echo "$as_me:4778: \"$ac_try\"") >&5 4779 (eval $ac_try) 2>&5 4780 ac_status=$? 4781 echo "$as_me:4781: \$? = $ac_status" >&5 4782 (exit $ac_status); }; }; then 4783 cf_cv_have_utmp=$cf_header 4784 break 4785else 4786 echo "$as_me: failed program was:" >&5 4787cat conftest.$ac_ext >&5 4788 4789 cat >conftest.$ac_ext <<_ACEOF 4790#line 4790 "configure" 4791#include "confdefs.h" 4792$cf_utmp_includes 4793int 4794main () 4795{ 4796struct $cf_header x; 4797 char *name = x.ut_user; /* utmpx.h must declare this */ 4798 4799 ; 4800 return 0; 4801} 4802_ACEOF 4803rm -f conftest.$ac_objext 4804if { (eval echo "$as_me:4804: \"$ac_compile\"") >&5 4805 (eval $ac_compile) 2>&5 4806 ac_status=$? 4807 echo "$as_me:4807: \$? = $ac_status" >&5 4808 (exit $ac_status); } && 4809 { ac_try='test -s conftest.$ac_objext' 4810 { (eval echo "$as_me:4810: \"$ac_try\"") >&5 4811 (eval $ac_try) 2>&5 4812 ac_status=$? 4813 echo "$as_me:4813: \$? = $ac_status" >&5 4814 (exit $ac_status); }; }; then 4815 cf_cv_have_utmp=$cf_header 4816 break 4817 4818else 4819 echo "$as_me: failed program was:" >&5 4820cat conftest.$ac_ext >&5 4821fi 4822rm -f conftest.$ac_objext conftest.$ac_ext 4823fi 4824rm -f conftest.$ac_objext conftest.$ac_ext 4825done 4826 4827fi 4828echo "$as_me:4828: result: $cf_cv_have_utmp" >&5 4829echo "${ECHO_T}$cf_cv_have_utmp" >&6 4830 4831if test $cf_cv_have_utmp != no ; then 4832 4833cat >>confdefs.h <<\EOF 4834#define HAVE_UTMP 1 4835EOF 4836 4837 test $cf_cv_have_utmp = utmpx && 4838cat >>confdefs.h <<\EOF 4839#define UTMPX_FOR_UTMP 1 4840EOF 4841 4842if test $cf_cv_have_utmp != no ; then 4843echo "$as_me:4843: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 4844echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 4845if test "${cf_cv_have_utmp_ut_host+set}" = set; then 4846 echo $ECHO_N "(cached) $ECHO_C" >&6 4847else 4848 4849 cat >conftest.$ac_ext <<_ACEOF 4850#line 4850 "configure" 4851#include "confdefs.h" 4852 4853#include <sys/types.h> 4854#include <${cf_cv_have_utmp}.h> 4855int 4856main () 4857{ 4858struct $cf_cv_have_utmp x; char *y = &x.ut_host[0] 4859 ; 4860 return 0; 4861} 4862_ACEOF 4863rm -f conftest.$ac_objext 4864if { (eval echo "$as_me:4864: \"$ac_compile\"") >&5 4865 (eval $ac_compile) 2>&5 4866 ac_status=$? 4867 echo "$as_me:4867: \$? = $ac_status" >&5 4868 (exit $ac_status); } && 4869 { ac_try='test -s conftest.$ac_objext' 4870 { (eval echo "$as_me:4870: \"$ac_try\"") >&5 4871 (eval $ac_try) 2>&5 4872 ac_status=$? 4873 echo "$as_me:4873: \$? = $ac_status" >&5 4874 (exit $ac_status); }; }; then 4875 cf_cv_have_utmp_ut_host=yes 4876else 4877 echo "$as_me: failed program was:" >&5 4878cat conftest.$ac_ext >&5 4879cf_cv_have_utmp_ut_host=no 4880fi 4881rm -f conftest.$ac_objext conftest.$ac_ext 4882 4883fi 4884 4885echo "$as_me:4885: result: $cf_cv_have_utmp_ut_host" >&5 4886echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 4887test $cf_cv_have_utmp_ut_host != no && 4888cat >>confdefs.h <<\EOF 4889#define HAVE_UTMP_UT_HOST 1 4890EOF 4891 4892fi 4893 4894if test $cf_cv_have_utmp != no ; then 4895echo "$as_me:4895: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 4896echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 4897if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 4898 echo $ECHO_N "(cached) $ECHO_C" >&6 4899else 4900 4901 cat >conftest.$ac_ext <<_ACEOF 4902#line 4902 "configure" 4903#include "confdefs.h" 4904 4905#include <sys/types.h> 4906#include <${cf_cv_have_utmp}.h> 4907int 4908main () 4909{ 4910struct $cf_cv_have_utmp x; int y = x.ut_syslen 4911 ; 4912 return 0; 4913} 4914_ACEOF 4915rm -f conftest.$ac_objext 4916if { (eval echo "$as_me:4916: \"$ac_compile\"") >&5 4917 (eval $ac_compile) 2>&5 4918 ac_status=$? 4919 echo "$as_me:4919: \$? = $ac_status" >&5 4920 (exit $ac_status); } && 4921 { ac_try='test -s conftest.$ac_objext' 4922 { (eval echo "$as_me:4922: \"$ac_try\"") >&5 4923 (eval $ac_try) 2>&5 4924 ac_status=$? 4925 echo "$as_me:4925: \$? = $ac_status" >&5 4926 (exit $ac_status); }; }; then 4927 cf_cv_have_utmp_ut_syslen=yes 4928else 4929 echo "$as_me: failed program was:" >&5 4930cat conftest.$ac_ext >&5 4931cf_cv_have_utmp_ut_syslen=no 4932fi 4933rm -f conftest.$ac_objext conftest.$ac_ext 4934 4935fi 4936 4937echo "$as_me:4937: result: $cf_cv_have_utmp_ut_syslen" >&5 4938echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 4939test $cf_cv_have_utmp_ut_syslen != no && 4940cat >>confdefs.h <<\EOF 4941#define HAVE_UTMP_UT_SYSLEN 1 4942EOF 4943 4944fi 4945 4946if test $cf_cv_have_utmp != no ; then 4947echo "$as_me:4947: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 4948echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 4949if test "${cf_cv_have_utmp_ut_name+set}" = set; then 4950 echo $ECHO_N "(cached) $ECHO_C" >&6 4951else 4952 4953 cf_cv_have_utmp_ut_name=no 4954cf_utmp_includes=" 4955#include <sys/types.h> 4956#include <${cf_cv_have_utmp}.h> 4957#define getutent getutxent 4958#ifdef USE_LASTLOG 4959#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4960#endif 4961" 4962for cf_header in ut_name ut_user ; do 4963 cat >conftest.$ac_ext <<_ACEOF 4964#line 4964 "configure" 4965#include "confdefs.h" 4966$cf_utmp_includes 4967int 4968main () 4969{ 4970struct $cf_cv_have_utmp x; 4971 char *name = x.$cf_header; 4972 4973 ; 4974 return 0; 4975} 4976_ACEOF 4977rm -f conftest.$ac_objext 4978if { (eval echo "$as_me:4978: \"$ac_compile\"") >&5 4979 (eval $ac_compile) 2>&5 4980 ac_status=$? 4981 echo "$as_me:4981: \$? = $ac_status" >&5 4982 (exit $ac_status); } && 4983 { ac_try='test -s conftest.$ac_objext' 4984 { (eval echo "$as_me:4984: \"$ac_try\"") >&5 4985 (eval $ac_try) 2>&5 4986 ac_status=$? 4987 echo "$as_me:4987: \$? = $ac_status" >&5 4988 (exit $ac_status); }; }; then 4989 cf_cv_have_utmp_ut_name=$cf_header 4990 break 4991else 4992 echo "$as_me: failed program was:" >&5 4993cat conftest.$ac_ext >&5 4994fi 4995rm -f conftest.$ac_objext conftest.$ac_ext 4996done 4997 4998fi 4999echo "$as_me:4999: result: $cf_cv_have_utmp_ut_name" >&5 5000echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 5001 5002case $cf_cv_have_utmp_ut_name in #(vi 5003no) #(vi 5004 { { echo "$as_me:5004: error: Cannot find declaration for ut.ut_name" >&5 5005echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 5006 { (exit 1); exit 1; }; } 5007 ;; 5008ut_user) 5009 5010cat >>confdefs.h <<\EOF 5011#define ut_name ut_user 5012EOF 5013 5014 ;; 5015esac 5016fi 5017 5018if test $cf_cv_have_utmp != no ; then 5019echo "$as_me:5019: checking for exit-status in $cf_cv_have_utmp" >&5 5020echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 5021if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 5025for cf_result in \ 5026 ut_exit.__e_exit \ 5027 ut_exit.e_exit \ 5028 ut_exit.ut_e_exit \ 5029 ut_exit.ut_exit 5030do 5031cat >conftest.$ac_ext <<_ACEOF 5032#line 5032 "configure" 5033#include "confdefs.h" 5034 5035#include <sys/types.h> 5036#include <${cf_cv_have_utmp}.h> 5037int 5038main () 5039{ 5040struct $cf_cv_have_utmp x; long y = x.$cf_result = 0 5041 ; 5042 return 0; 5043} 5044_ACEOF 5045rm -f conftest.$ac_objext 5046if { (eval echo "$as_me:5046: \"$ac_compile\"") >&5 5047 (eval $ac_compile) 2>&5 5048 ac_status=$? 5049 echo "$as_me:5049: \$? = $ac_status" >&5 5050 (exit $ac_status); } && 5051 { ac_try='test -s conftest.$ac_objext' 5052 { (eval echo "$as_me:5052: \"$ac_try\"") >&5 5053 (eval $ac_try) 2>&5 5054 ac_status=$? 5055 echo "$as_me:5055: \$? = $ac_status" >&5 5056 (exit $ac_status); }; }; then 5057 cf_cv_have_utmp_ut_xstatus=$cf_result 5058 break 5059else 5060 echo "$as_me: failed program was:" >&5 5061cat conftest.$ac_ext >&5 5062cf_cv_have_utmp_ut_xstatus=no 5063fi 5064rm -f conftest.$ac_objext conftest.$ac_ext 5065done 5066 5067fi 5068echo "$as_me:5068: result: $cf_cv_have_utmp_ut_xstatus" >&5 5069echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 5070if test $cf_cv_have_utmp_ut_xstatus != no ; then 5071 5072cat >>confdefs.h <<\EOF 5073#define HAVE_UTMP_UT_XSTATUS 1 5074EOF 5075 5076cat >>confdefs.h <<EOF 5077#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 5078EOF 5079 5080fi 5081fi 5082 5083if test $cf_cv_have_utmp != no ; then 5084echo "$as_me:5084: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 5085echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 5086if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088else 5089 5090 cat >conftest.$ac_ext <<_ACEOF 5091#line 5091 "configure" 5092#include "confdefs.h" 5093 5094#include <sys/types.h> 5095#include <${cf_cv_have_utmp}.h> 5096int 5097main () 5098{ 5099struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0 5100 ; 5101 return 0; 5102} 5103_ACEOF 5104rm -f conftest.$ac_objext 5105if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5 5106 (eval $ac_compile) 2>&5 5107 ac_status=$? 5108 echo "$as_me:5108: \$? = $ac_status" >&5 5109 (exit $ac_status); } && 5110 { ac_try='test -s conftest.$ac_objext' 5111 { (eval echo "$as_me:5111: \"$ac_try\"") >&5 5112 (eval $ac_try) 2>&5 5113 ac_status=$? 5114 echo "$as_me:5114: \$? = $ac_status" >&5 5115 (exit $ac_status); }; }; then 5116 cf_cv_have_utmp_ut_xtime=yes 5117else 5118 echo "$as_me: failed program was:" >&5 5119cat conftest.$ac_ext >&5 5120cat >conftest.$ac_ext <<_ACEOF 5121#line 5121 "configure" 5122#include "confdefs.h" 5123 5124#include <sys/types.h> 5125#include <${cf_cv_have_utmp}.h> 5126int 5127main () 5128{ 5129struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec 5130 ; 5131 return 0; 5132} 5133_ACEOF 5134rm -f conftest.$ac_objext 5135if { (eval echo "$as_me:5135: \"$ac_compile\"") >&5 5136 (eval $ac_compile) 2>&5 5137 ac_status=$? 5138 echo "$as_me:5138: \$? = $ac_status" >&5 5139 (exit $ac_status); } && 5140 { ac_try='test -s conftest.$ac_objext' 5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5 5142 (eval $ac_try) 2>&5 5143 ac_status=$? 5144 echo "$as_me:5144: \$? = $ac_status" >&5 5145 (exit $ac_status); }; }; then 5146 cf_cv_have_utmp_ut_xtime=define 5147else 5148 echo "$as_me: failed program was:" >&5 5149cat conftest.$ac_ext >&5 5150cf_cv_have_utmp_ut_xtime=no 5151fi 5152rm -f conftest.$ac_objext conftest.$ac_ext 5153 5154fi 5155rm -f conftest.$ac_objext conftest.$ac_ext 5156 5157fi 5158echo "$as_me:5158: result: $cf_cv_have_utmp_ut_xtime" >&5 5159echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 5160if test $cf_cv_have_utmp_ut_xtime != no ; then 5161 5162cat >>confdefs.h <<\EOF 5163#define HAVE_UTMP_UT_XTIME 1 5164EOF 5165 5166 if test $cf_cv_have_utmp_ut_xtime = define ; then 5167 5168cat >>confdefs.h <<\EOF 5169#define ut_xtime ut_tv.tv_sec 5170EOF 5171 5172 fi 5173fi 5174fi 5175 5176if test $cf_cv_have_utmp != no ; then 5177echo "$as_me:5177: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 5178echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 5179if test "${cf_cv_have_utmp_ut_session+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181else 5182 5183 cat >conftest.$ac_ext <<_ACEOF 5184#line 5184 "configure" 5185#include "confdefs.h" 5186 5187#include <sys/types.h> 5188#include <${cf_cv_have_utmp}.h> 5189int 5190main () 5191{ 5192struct $cf_cv_have_utmp x; long y = x.ut_session 5193 ; 5194 return 0; 5195} 5196_ACEOF 5197rm -f conftest.$ac_objext 5198if { (eval echo "$as_me:5198: \"$ac_compile\"") >&5 5199 (eval $ac_compile) 2>&5 5200 ac_status=$? 5201 echo "$as_me:5201: \$? = $ac_status" >&5 5202 (exit $ac_status); } && 5203 { ac_try='test -s conftest.$ac_objext' 5204 { (eval echo "$as_me:5204: \"$ac_try\"") >&5 5205 (eval $ac_try) 2>&5 5206 ac_status=$? 5207 echo "$as_me:5207: \$? = $ac_status" >&5 5208 (exit $ac_status); }; }; then 5209 cf_cv_have_utmp_ut_session=yes 5210else 5211 echo "$as_me: failed program was:" >&5 5212cat conftest.$ac_ext >&5 5213cf_cv_have_utmp_ut_session=no 5214fi 5215rm -f conftest.$ac_objext conftest.$ac_ext 5216 5217fi 5218echo "$as_me:5218: result: $cf_cv_have_utmp_ut_session" >&5 5219echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 5220if test $cf_cv_have_utmp_ut_session != no ; then 5221 5222cat >>confdefs.h <<\EOF 5223#define HAVE_UTMP_UT_SESSION 1 5224EOF 5225 5226fi 5227fi 5228 5229echo "$as_me:5229: checking if $cf_cv_have_utmp is SYSV flavor" >&5 5230echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 5231if test "${cf_cv_sysv_utmp+set}" = set; then 5232 echo $ECHO_N "(cached) $ECHO_C" >&6 5233else 5234 5235test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 5236cat >conftest.$ac_ext <<_ACEOF 5237#line 5237 "configure" 5238#include "confdefs.h" 5239 5240#include <sys/types.h> 5241#include <${cf_cv_have_utmp}.h> 5242int 5243main () 5244{ 5245 5246struct $cf_cv_have_utmp x; 5247 set${cf_prefix}ent (); 5248 get${cf_prefix}id(&x); 5249 put${cf_prefix}line(&x); 5250 end${cf_prefix}ent(); 5251 ; 5252 return 0; 5253} 5254_ACEOF 5255rm -f conftest.$ac_objext conftest$ac_exeext 5256if { (eval echo "$as_me:5256: \"$ac_link\"") >&5 5257 (eval $ac_link) 2>&5 5258 ac_status=$? 5259 echo "$as_me:5259: \$? = $ac_status" >&5 5260 (exit $ac_status); } && 5261 { ac_try='test -s conftest$ac_exeext' 5262 { (eval echo "$as_me:5262: \"$ac_try\"") >&5 5263 (eval $ac_try) 2>&5 5264 ac_status=$? 5265 echo "$as_me:5265: \$? = $ac_status" >&5 5266 (exit $ac_status); }; }; then 5267 cf_cv_sysv_utmp=yes 5268else 5269 echo "$as_me: failed program was:" >&5 5270cat conftest.$ac_ext >&5 5271cf_cv_sysv_utmp=no 5272fi 5273rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5274 5275fi 5276echo "$as_me:5276: result: $cf_cv_sysv_utmp" >&5 5277echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 5278test $cf_cv_sysv_utmp = yes && 5279cat >>confdefs.h <<\EOF 5280#define USE_SYSV_UTMP 1 5281EOF 5282 5283fi 5284 5285for ac_header in lastlog.h 5286do 5287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5288echo "$as_me:5288: checking for $ac_header" >&5 5289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5290if eval "test \"\${$as_ac_Header+set}\" = set"; then 5291 echo $ECHO_N "(cached) $ECHO_C" >&6 5292else 5293 cat >conftest.$ac_ext <<_ACEOF 5294#line 5294 "configure" 5295#include "confdefs.h" 5296#include <$ac_header> 5297_ACEOF 5298if { (eval echo "$as_me:5298: \"$ac_cpp conftest.$ac_ext\"") >&5 5299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5300 ac_status=$? 5301 egrep -v '^ *\+' conftest.er1 >conftest.err 5302 rm -f conftest.er1 5303 cat conftest.err >&5 5304 echo "$as_me:5304: \$? = $ac_status" >&5 5305 (exit $ac_status); } >/dev/null; then 5306 if test -s conftest.err; then 5307 ac_cpp_err=$ac_c_preproc_warn_flag 5308 else 5309 ac_cpp_err= 5310 fi 5311else 5312 ac_cpp_err=yes 5313fi 5314if test -z "$ac_cpp_err"; then 5315 eval "$as_ac_Header=yes" 5316else 5317 echo "$as_me: failed program was:" >&5 5318 cat conftest.$ac_ext >&5 5319 eval "$as_ac_Header=no" 5320fi 5321rm -f conftest.err conftest.$ac_ext 5322fi 5323echo "$as_me:5323: result: `eval echo '${'$as_ac_Header'}'`" >&5 5324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5325if test `eval echo '${'$as_ac_Header'}'` = yes; then 5326 cat >>confdefs.h <<EOF 5327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5328EOF 5329 5330fi 5331done 5332 5333echo "$as_me:5333: checking for struct lastlog" >&5 5334echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 5335if test "${cf_cv_struct_lastlog+set}" = set; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337else 5338 5339if test "$cross_compiling" = yes; then 5340 5341cf_cv_struct_lastlog=unknown 5342else 5343 cat >conftest.$ac_ext <<_ACEOF 5344#line 5344 "configure" 5345#include "confdefs.h" 5346 5347#include <sys/types.h> 5348#include <time.h> 5349#include <lastlog.h> 5350 5351int main() 5352{ 5353 struct lastlog data; 5354 return (sizeof(data.ll_time) != sizeof(time_t)); 5355} 5356_ACEOF 5357rm -f conftest$ac_exeext 5358if { (eval echo "$as_me:5358: \"$ac_link\"") >&5 5359 (eval $ac_link) 2>&5 5360 ac_status=$? 5361 echo "$as_me:5361: \$? = $ac_status" >&5 5362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5363 { (eval echo "$as_me:5363: \"$ac_try\"") >&5 5364 (eval $ac_try) 2>&5 5365 ac_status=$? 5366 echo "$as_me:5366: \$? = $ac_status" >&5 5367 (exit $ac_status); }; }; then 5368 5369cf_cv_struct_lastlog=yes 5370else 5371 echo "$as_me: program exited with status $ac_status" >&5 5372echo "$as_me: failed program was:" >&5 5373cat conftest.$ac_ext >&5 5374 5375cf_cv_struct_lastlog=no 5376fi 5377rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5378fi 5379fi 5380echo "$as_me:5380: result: $cf_cv_struct_lastlog" >&5 5381echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 5382 5383test $cf_cv_struct_lastlog != no && 5384cat >>confdefs.h <<\EOF 5385#define USE_STRUCT_LASTLOG 1 5386EOF 5387 5388for ac_header in \ 5389sys/param.h \ 5390 5391do 5392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5393echo "$as_me:5393: checking for $ac_header" >&5 5394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5395if eval "test \"\${$as_ac_Header+set}\" = set"; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 cat >conftest.$ac_ext <<_ACEOF 5399#line 5399 "configure" 5400#include "confdefs.h" 5401#include <$ac_header> 5402_ACEOF 5403if { (eval echo "$as_me:5403: \"$ac_cpp conftest.$ac_ext\"") >&5 5404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5405 ac_status=$? 5406 egrep -v '^ *\+' conftest.er1 >conftest.err 5407 rm -f conftest.er1 5408 cat conftest.err >&5 5409 echo "$as_me:5409: \$? = $ac_status" >&5 5410 (exit $ac_status); } >/dev/null; then 5411 if test -s conftest.err; then 5412 ac_cpp_err=$ac_c_preproc_warn_flag 5413 else 5414 ac_cpp_err= 5415 fi 5416else 5417 ac_cpp_err=yes 5418fi 5419if test -z "$ac_cpp_err"; then 5420 eval "$as_ac_Header=yes" 5421else 5422 echo "$as_me: failed program was:" >&5 5423 cat conftest.$ac_ext >&5 5424 eval "$as_ac_Header=no" 5425fi 5426rm -f conftest.err conftest.$ac_ext 5427fi 5428echo "$as_me:5428: result: `eval echo '${'$as_ac_Header'}'`" >&5 5429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5430if test `eval echo '${'$as_ac_Header'}'` = yes; then 5431 cat >>confdefs.h <<EOF 5432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5433EOF 5434 5435fi 5436done 5437 5438echo "$as_me:5438: checking if POSIX saved-ids are supported" >&5 5439echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 5440if test "${cf_cv_posix_saved_ids+set}" = set; then 5441 echo $ECHO_N "(cached) $ECHO_C" >&6 5442else 5443 5444cat >conftest.$ac_ext <<_ACEOF 5445#line 5445 "configure" 5446#include "confdefs.h" 5447 5448#include <unistd.h> 5449#ifdef HAVE_SYS_PARAM_H 5450#include <sys/param.h> /* this may define "BSD" */ 5451#endif 5452 5453int 5454main () 5455{ 5456 5457#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 5458 void *p = (void *) seteuid; 5459 int x = seteuid(geteuid()); 5460#elif defined(BSD) && (BSD >= 199103) 5461/* The BSD's may implement the runtime check - and it fails. 5462 * However, saved-ids work almost like POSIX (close enough for most uses). 5463 */ 5464#else 5465make an error 5466#endif 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472rm -f conftest.$ac_objext conftest$ac_exeext 5473if { (eval echo "$as_me:5473: \"$ac_link\"") >&5 5474 (eval $ac_link) 2>&5 5475 ac_status=$? 5476 echo "$as_me:5476: \$? = $ac_status" >&5 5477 (exit $ac_status); } && 5478 { ac_try='test -s conftest$ac_exeext' 5479 { (eval echo "$as_me:5479: \"$ac_try\"") >&5 5480 (eval $ac_try) 2>&5 5481 ac_status=$? 5482 echo "$as_me:5482: \$? = $ac_status" >&5 5483 (exit $ac_status); }; }; then 5484 cf_cv_posix_saved_ids=yes 5485 5486else 5487 echo "$as_me: failed program was:" >&5 5488cat conftest.$ac_ext >&5 5489 5490if test "$cross_compiling" = yes; then 5491 cf_cv_posix_saved_ids=unknown 5492else 5493 cat >conftest.$ac_ext <<_ACEOF 5494#line 5494 "configure" 5495#include "confdefs.h" 5496 5497#ifdef HAVE_STDLIB_H 5498#include <stdlib.h> 5499#endif 5500#include <unistd.h> 5501int main() 5502{ 5503 void *p = (void *) seteuid; 5504 long code = sysconf(_SC_SAVED_IDS); 5505 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 5506} 5507_ACEOF 5508rm -f conftest$ac_exeext 5509if { (eval echo "$as_me:5509: \"$ac_link\"") >&5 5510 (eval $ac_link) 2>&5 5511 ac_status=$? 5512 echo "$as_me:5512: \$? = $ac_status" >&5 5513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5514 { (eval echo "$as_me:5514: \"$ac_try\"") >&5 5515 (eval $ac_try) 2>&5 5516 ac_status=$? 5517 echo "$as_me:5517: \$? = $ac_status" >&5 5518 (exit $ac_status); }; }; then 5519 cf_cv_posix_saved_ids=yes 5520else 5521 echo "$as_me: program exited with status $ac_status" >&5 5522echo "$as_me: failed program was:" >&5 5523cat conftest.$ac_ext >&5 5524cf_cv_posix_saved_ids=no 5525fi 5526rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5527fi 5528 5529fi 5530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5531 5532fi 5533echo "$as_me:5533: result: $cf_cv_posix_saved_ids" >&5 5534echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 5535 5536test "$cf_cv_posix_saved_ids" = yes && 5537cat >>confdefs.h <<\EOF 5538#define HAVE_POSIX_SAVED_IDS 1 5539EOF 5540 5541# compute a reasonable value for $TERM to give tgetent(), since we may be 5542# running in 'screen', which sets $TERMCAP to a specific entry that is not 5543# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 5544# discard $TERMCAP. 5545cf_TERMVAR=vt100 5546if test -n "$TERMCAP" 5547then 5548 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 5549 case "$cf_TERMCAP" in #(vi 5550 screen*.*) #(vi 5551 ;; 5552 *) 5553 cf_TERMVAR="$cf_TERMCAP" 5554 ;; 5555 esac 5556fi 5557test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 5558 5559echo "$as_me:5559: checking if we want full tgetent function" >&5 5560echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 5561 5562# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 5563if test "${enable_full_tgetent+set}" = set; then 5564 enableval="$enable_full_tgetent" 5565 test "$enableval" != no && enableval=yes 5566 if test "$enableval" != "yes" ; then 5567 cf_full_tgetent=no 5568 else 5569 cf_full_tgetent=yes 5570 fi 5571else 5572 enableval=yes 5573 cf_full_tgetent=yes 5574 5575fi; 5576echo "$as_me:5576: result: $cf_full_tgetent" >&5 5577echo "${ECHO_T}$cf_full_tgetent" >&6 5578 5579if test "$cf_full_tgetent" = yes ; then 5580 cf_test_message="full tgetent" 5581else 5582 cf_test_message="tgetent" 5583fi 5584 5585echo "$as_me:5585: checking for $cf_test_message function" >&5 5586echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 5587if test "${cf_cv_lib_tgetent+set}" = set; then 5588 echo $ECHO_N "(cached) $ECHO_C" >&6 5589else 5590 5591cf_save_LIBS="$LIBS" 5592cf_cv_lib_tgetent=no 5593if test "$cf_full_tgetent" = yes ; then 5594 cf_TERMLIB="otermcap termcap termlib ncurses curses" 5595 cf_TERMTST="buffer[0] == 0" 5596else 5597 cf_TERMLIB="termlib ncurses curses" 5598 cf_TERMTST="0" 5599fi 5600for cf_termlib in '' $cf_TERMLIB ; do 5601 LIBS="$cf_save_LIBS" 5602 test -n "$cf_termlib" && LIBS="-l$cf_termlib $LIBS" 5603 if test "$cross_compiling" = yes; then 5604 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 5605else 5606 cat >conftest.$ac_ext <<_ACEOF 5607#line 5607 "configure" 5608#include "confdefs.h" 5609 5610/* terminfo implementations ignore the buffer argument, making it useless for 5611 * the xterm application, which uses this information to make a new TERMCAP 5612 * environment variable. 5613 */ 5614int main() 5615{ 5616 char buffer[1024]; 5617 buffer[0] = 0; 5618 tgetent(buffer, "$cf_TERMVAR"); 5619 ${cf_cv_main_return:-return} ($cf_TERMTST); } 5620_ACEOF 5621rm -f conftest$ac_exeext 5622if { (eval echo "$as_me:5622: \"$ac_link\"") >&5 5623 (eval $ac_link) 2>&5 5624 ac_status=$? 5625 echo "$as_me:5625: \$? = $ac_status" >&5 5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5 5628 (eval $ac_try) 2>&5 5629 ac_status=$? 5630 echo "$as_me:5630: \$? = $ac_status" >&5 5631 (exit $ac_status); }; }; then 5632 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 5633 if test -n "$cf_termlib" ; then 5634 cf_cv_lib_tgetent="-l$cf_termlib" 5635 else 5636 cf_cv_lib_tgetent=yes 5637 fi 5638 break 5639else 5640 echo "$as_me: program exited with status $ac_status" >&5 5641echo "$as_me: failed program was:" >&5 5642cat conftest.$ac_ext >&5 5643echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 5644fi 5645rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5646fi 5647done 5648LIBS="$cf_save_LIBS" 5649 5650fi 5651echo "$as_me:5651: result: $cf_cv_lib_tgetent" >&5 5652echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 5653 5654# If we found a working tgetent(), set LIBS and check for termcap.h. 5655# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 5656# not have side effects other than setting the cache variable, because 5657# they are not executed when a cached value exists.) 5658if test "x$cf_cv_lib_tgetent" != xno ; then 5659 test "x$cf_cv_lib_tgetent" != xyes && LIBS="$cf_cv_lib_tgetent $LIBS" 5660 5661cat >>confdefs.h <<\EOF 5662#define USE_TERMCAP 1 5663EOF 5664 5665 if test "$cf_full_tgetent" = no ; then 5666 cat >conftest.$ac_ext <<_ACEOF 5667#line 5667 "configure" 5668#include "confdefs.h" 5669 5670#include <termcap.h> 5671int 5672main () 5673{ 5674 5675#ifdef NCURSES_VERSION 5676make an error 5677#endif 5678 ; 5679 return 0; 5680} 5681_ACEOF 5682rm -f conftest.$ac_objext 5683if { (eval echo "$as_me:5683: \"$ac_compile\"") >&5 5684 (eval $ac_compile) 2>&5 5685 ac_status=$? 5686 echo "$as_me:5686: \$? = $ac_status" >&5 5687 (exit $ac_status); } && 5688 { ac_try='test -s conftest.$ac_objext' 5689 { (eval echo "$as_me:5689: \"$ac_try\"") >&5 5690 (eval $ac_try) 2>&5 5691 ac_status=$? 5692 echo "$as_me:5692: \$? = $ac_status" >&5 5693 (exit $ac_status); }; }; then 5694 cat >>confdefs.h <<\EOF 5695#define HAVE_TERMCAP_H 1 5696EOF 5697 5698else 5699 echo "$as_me: failed program was:" >&5 5700cat conftest.$ac_ext >&5 5701fi 5702rm -f conftest.$ac_objext conftest.$ac_ext 5703 else 5704 5705for ac_header in termcap.h 5706do 5707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5708echo "$as_me:5708: checking for $ac_header" >&5 5709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5710if eval "test \"\${$as_ac_Header+set}\" = set"; then 5711 echo $ECHO_N "(cached) $ECHO_C" >&6 5712else 5713 cat >conftest.$ac_ext <<_ACEOF 5714#line 5714 "configure" 5715#include "confdefs.h" 5716#include <$ac_header> 5717_ACEOF 5718if { (eval echo "$as_me:5718: \"$ac_cpp conftest.$ac_ext\"") >&5 5719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5720 ac_status=$? 5721 egrep -v '^ *\+' conftest.er1 >conftest.err 5722 rm -f conftest.er1 5723 cat conftest.err >&5 5724 echo "$as_me:5724: \$? = $ac_status" >&5 5725 (exit $ac_status); } >/dev/null; then 5726 if test -s conftest.err; then 5727 ac_cpp_err=$ac_c_preproc_warn_flag 5728 else 5729 ac_cpp_err= 5730 fi 5731else 5732 ac_cpp_err=yes 5733fi 5734if test -z "$ac_cpp_err"; then 5735 eval "$as_ac_Header=yes" 5736else 5737 echo "$as_me: failed program was:" >&5 5738 cat conftest.$ac_ext >&5 5739 eval "$as_ac_Header=no" 5740fi 5741rm -f conftest.err conftest.$ac_ext 5742fi 5743echo "$as_me:5743: result: `eval echo '${'$as_ac_Header'}'`" >&5 5744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5745if test `eval echo '${'$as_ac_Header'}'` = yes; then 5746 cat >>confdefs.h <<EOF 5747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5748EOF 5749 5750fi 5751done 5752 5753 fi 5754else 5755 # If we didn't find a tgetent() that supports the buffer 5756 # argument, look again to see whether we can find even 5757 # a crippled one. A crippled tgetent() is still useful to 5758 # validate values for the TERM environment variable given to 5759 # child processes. 5760 echo "$as_me:5760: checking for partial tgetent function" >&5 5761echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 5762if test "${cf_cv_lib_part_tgetent+set}" = set; then 5763 echo $ECHO_N "(cached) $ECHO_C" >&6 5764else 5765 5766 cf_cv_lib_part_tgetent=no 5767 for cf_termlib in $cf_TERMLIB ; do 5768 LIBS="$cf_save_LIBS -l$cf_termlib" 5769 cat >conftest.$ac_ext <<_ACEOF 5770#line 5770 "configure" 5771#include "confdefs.h" 5772 5773int 5774main () 5775{ 5776tgetent(0, "$cf_TERMVAR") 5777 ; 5778 return 0; 5779} 5780_ACEOF 5781rm -f conftest.$ac_objext conftest$ac_exeext 5782if { (eval echo "$as_me:5782: \"$ac_link\"") >&5 5783 (eval $ac_link) 2>&5 5784 ac_status=$? 5785 echo "$as_me:5785: \$? = $ac_status" >&5 5786 (exit $ac_status); } && 5787 { ac_try='test -s conftest$ac_exeext' 5788 { (eval echo "$as_me:5788: \"$ac_try\"") >&5 5789 (eval $ac_try) 2>&5 5790 ac_status=$? 5791 echo "$as_me:5791: \$? = $ac_status" >&5 5792 (exit $ac_status); }; }; then 5793 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 5794 cf_cv_lib_part_tgetent="-l$cf_termlib" 5795 break 5796else 5797 echo "$as_me: failed program was:" >&5 5798cat conftest.$ac_ext >&5 5799fi 5800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5801 done 5802 LIBS="$cf_save_LIBS" 5803 5804fi 5805echo "$as_me:5805: result: $cf_cv_lib_part_tgetent" >&5 5806echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 5807 5808 if test "$cf_cv_lib_part_tgetent" != no ; then 5809 LIBS="$cf_cv_lib_part_tgetent $LIBS" 5810 5811for ac_header in termcap.h 5812do 5813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5814echo "$as_me:5814: checking for $ac_header" >&5 5815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5816if eval "test \"\${$as_ac_Header+set}\" = set"; then 5817 echo $ECHO_N "(cached) $ECHO_C" >&6 5818else 5819 cat >conftest.$ac_ext <<_ACEOF 5820#line 5820 "configure" 5821#include "confdefs.h" 5822#include <$ac_header> 5823_ACEOF 5824if { (eval echo "$as_me:5824: \"$ac_cpp conftest.$ac_ext\"") >&5 5825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5826 ac_status=$? 5827 egrep -v '^ *\+' conftest.er1 >conftest.err 5828 rm -f conftest.er1 5829 cat conftest.err >&5 5830 echo "$as_me:5830: \$? = $ac_status" >&5 5831 (exit $ac_status); } >/dev/null; then 5832 if test -s conftest.err; then 5833 ac_cpp_err=$ac_c_preproc_warn_flag 5834 else 5835 ac_cpp_err= 5836 fi 5837else 5838 ac_cpp_err=yes 5839fi 5840if test -z "$ac_cpp_err"; then 5841 eval "$as_ac_Header=yes" 5842else 5843 echo "$as_me: failed program was:" >&5 5844 cat conftest.$ac_ext >&5 5845 eval "$as_ac_Header=no" 5846fi 5847rm -f conftest.err conftest.$ac_ext 5848fi 5849echo "$as_me:5849: result: `eval echo '${'$as_ac_Header'}'`" >&5 5850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5851if test `eval echo '${'$as_ac_Header'}'` = yes; then 5852 cat >>confdefs.h <<EOF 5853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5854EOF 5855 5856fi 5857done 5858 5859 # If this is linking against ncurses, we'll trigger the 5860 # ifdef in resize.c that turns the termcap stuff back off. 5861 5862cat >>confdefs.h <<\EOF 5863#define USE_TERMINFO 1 5864EOF 5865 5866 fi 5867fi 5868 5869echo "$as_me:5869: checking for X applications class" >&5 5870echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 5871 5872# Check whether --with-app-class or --without-app-class was given. 5873if test "${with_app_class+set}" = set; then 5874 withval="$with_app_class" 5875 APP_CLASS=$withval 5876else 5877 APP_CLASS=XTerm 5878fi; 5879 5880case x$APP_CLASS in #(vi 5881*[/@,%]*) #(vi 5882 { echo "$as_me:5882: WARNING: X applications class cannot contain punctuation" >&5 5883echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 5884 APP_CLASS=XTerm 5885 ;; 5886x[A-Z]*) #(vi 5887 ;; 5888*) 5889 { echo "$as_me:5889: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 5890echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 5891 APP_CLASS=XTerm 5892 ;; 5893esac 5894 5895echo "$as_me:5895: result: $APP_CLASS" >&5 5896echo "${ECHO_T}$APP_CLASS" >&6 5897 5898echo "$as_me:5898: checking for directory to install resource files" >&5 5899echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 5900 5901# Check whether --with-app-defaults or --without-app-defaults was given. 5902if test "${with_app_defaults+set}" = set; then 5903 withval="$with_app_defaults" 5904 APPSDIR=$withval 5905else 5906 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5907fi; 5908 5909if test "x$APPSDIR" = xauto 5910then 5911 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5912 for cf_path in \ 5913 /usr/share/X11/app-defaults \ 5914 /usr/X11/share/X11/app-defaults \ 5915 /usr/X11/lib/X11/app-defaults \ 5916 /usr/lib/X11/app-defaults \ 5917 /etc/X11/app-defaults \ 5918 /usr/pkg/lib/X11/app-defaults \ 5919 /usr/X11R7/lib/X11/app-defaults \ 5920 /usr/X11R6/lib/X11/app-defaults \ 5921 /usr/X11R5/lib/X11/app-defaults \ 5922 /usr/X11R4/lib/X11/app-defaults \ 5923 /usr/local/lib/X11/app-defaults \ 5924 /usr/local/share/X11/app-defaults \ 5925 /usr/lib64/X11/app-defaults 5926 do 5927 if test -d "$cf_path" ; then 5928 APPSDIR="$cf_path" 5929 break 5930 fi 5931 done 5932else 5933 cf_path=$APPSDIR 5934 5935if test "x$prefix" != xNONE; then 5936 cf_path_syntax="$prefix" 5937else 5938 cf_path_syntax="$ac_default_prefix" 5939fi 5940 5941case ".$cf_path" in #(vi 5942.\$\(*\)*|.\'*\'*) #(vi 5943 ;; 5944..|./*|.\\*) #(vi 5945 ;; 5946.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 5947 ;; 5948.\${*prefix}*|.\${*dir}*) #(vi 5949 eval cf_path="$cf_path" 5950 case ".$cf_path" in #(vi 5951 .NONE/*) 5952 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5953 ;; 5954 esac 5955 ;; #(vi 5956.no|.NONE/*) 5957 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5958 ;; 5959*) 5960 { { echo "$as_me:5960: error: expected a pathname, not \"$cf_path\"" >&5 5961echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 5962 { (exit 1); exit 1; }; } 5963 ;; 5964esac 5965 5966fi 5967 5968echo "$as_me:5968: result: $APPSDIR" >&5 5969echo "${ECHO_T}$APPSDIR" >&6 5970 5971no_appsdir= 5972if test "$APPSDIR" = no 5973then 5974 no_appsdir="#" 5975else 5976 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 5977fi 5978 5979echo "$as_me:5979: checking for the icon name" >&5 5980echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 5981 5982# Check whether --with-icon-name or --without-icon-name was given. 5983if test "${with_icon_name+set}" = set; then 5984 withval="$with_icon_name" 5985 ICON_NAME="$withval" 5986else 5987 ICON_NAME=xterm-color 5988fi; 5989case "x$ICON_NAME" in 5990xyes|xno|x) 5991 ICON_NAME=xterm-color 5992 ;; 5993esac 5994 5995echo "$as_me:5995: result: $ICON_NAME" >&5 5996echo "${ECHO_T}$ICON_NAME" >&6 5997 5998echo "$as_me:5998: checking for icon symlink to use" >&5 5999echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 6000 6001# Check whether --with-icon-symlink or --without-icon-symlink was given. 6002if test "${with_icon_symlink+set}" = set; then 6003 withval="$with_icon_symlink" 6004 ICON_SYMLINK="$withval" 6005else 6006 ICON_SYMLINK=NONE 6007fi; 6008case "x$ICON_SYMLINK" in 6009xyes) 6010 ICON_SYMLINK=xterm 6011 ;; 6012xno|x) 6013 ICON_SYMLINK=NONE 6014 ;; 6015esac 6016 6017echo "$as_me:6017: result: $ICON_SYMLINK" >&5 6018echo "${ECHO_T}$ICON_SYMLINK" >&6 6019 6020echo "$as_me:6020: checking for directory to install pixmaps" >&5 6021echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 6022 6023# Check whether --with-pixmapdir or --without-pixmapdir was given. 6024if test "${with_pixmapdir+set}" = set; then 6025 withval="$with_pixmapdir" 6026 PIXMAPDIR=$withval 6027else 6028 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 6029fi; 6030 6031if test "x$PIXMAPDIR" = xauto 6032then 6033 PIXMAPDIR='${datadir}/pixmaps' 6034 for cf_path in \ 6035 /usr/share/pixmaps \ 6036 /usr/X11R6/share/pixmaps 6037 do 6038 if test -d "$cf_path" ; then 6039 PIXMAPDIR="$cf_path" 6040 break 6041 fi 6042 done 6043else 6044 cf_path=$PIXMAPDIR 6045 6046if test "x$prefix" != xNONE; then 6047 cf_path_syntax="$prefix" 6048else 6049 cf_path_syntax="$ac_default_prefix" 6050fi 6051 6052case ".$cf_path" in #(vi 6053.\$\(*\)*|.\'*\'*) #(vi 6054 ;; 6055..|./*|.\\*) #(vi 6056 ;; 6057.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6058 ;; 6059.\${*prefix}*|.\${*dir}*) #(vi 6060 eval cf_path="$cf_path" 6061 case ".$cf_path" in #(vi 6062 .NONE/*) 6063 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6064 ;; 6065 esac 6066 ;; #(vi 6067.no|.NONE/*) 6068 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6069 ;; 6070*) 6071 { { echo "$as_me:6071: error: expected a pathname, not \"$cf_path\"" >&5 6072echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6073 { (exit 1); exit 1; }; } 6074 ;; 6075esac 6076 6077fi 6078echo "$as_me:6078: result: $PIXMAPDIR" >&5 6079echo "${ECHO_T}$PIXMAPDIR" >&6 6080 6081no_pixmapdir= 6082if test "$PIXMAPDIR" = no 6083then 6084 no_pixmapdir="#" 6085else 6086 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 6087fi 6088 6089echo "$as_me:6089: checking for directory to install icons" >&5 6090echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 6091 6092# Check whether --with-icondir or --without-icondir was given. 6093if test "${with_icondir+set}" = set; then 6094 withval="$with_icondir" 6095 ICONDIR=$withval 6096else 6097 test -z "$ICONDIR" && ICONDIR=no 6098fi; 6099 6100if test "x$ICONDIR" = xauto 6101then 6102 ICONDIR='${datadir}/icons' 6103 for cf_path in \ 6104 /usr/share/icons \ 6105 /usr/X11R6/share/icons 6106 do 6107 if test -d "$cf_path" ; then 6108 ICONDIR="$cf_path" 6109 break 6110 fi 6111 done 6112else 6113 cf_path=$ICONDIR 6114 6115if test "x$prefix" != xNONE; then 6116 cf_path_syntax="$prefix" 6117else 6118 cf_path_syntax="$ac_default_prefix" 6119fi 6120 6121case ".$cf_path" in #(vi 6122.\$\(*\)*|.\'*\'*) #(vi 6123 ;; 6124..|./*|.\\*) #(vi 6125 ;; 6126.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6127 ;; 6128.\${*prefix}*|.\${*dir}*) #(vi 6129 eval cf_path="$cf_path" 6130 case ".$cf_path" in #(vi 6131 .NONE/*) 6132 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6133 ;; 6134 esac 6135 ;; #(vi 6136.no|.NONE/*) 6137 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6138 ;; 6139*) 6140 { { echo "$as_me:6140: error: expected a pathname, not \"$cf_path\"" >&5 6141echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6142 { (exit 1); exit 1; }; } 6143 ;; 6144esac 6145 6146fi 6147echo "$as_me:6147: result: $ICONDIR" >&5 6148echo "${ECHO_T}$ICONDIR" >&6 6149 6150no_icondir= 6151if test "$ICONDIR" = no 6152then 6153 no_icondir="#" 6154else 6155 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 6156fi 6157 6158echo "$as_me:6158: checking if icon theme should be used" >&5 6159echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 6160 6161# Check whether --with-icon-theme or --without-icon-theme was given. 6162if test "${with_icon_theme+set}" = set; then 6163 withval="$with_icon_theme" 6164 ICON_THEME=$withval 6165else 6166 ICON_THEME=no 6167fi; 6168 6169case "x$ICON_THEME" in #(vi 6170xno) #(vi 6171 ;; 6172x|xyes) 6173 ICON_THEME=hicolor 6174 ;; 6175esac 6176echo "$as_me:6176: result: $ICON_THEME" >&5 6177echo "${ECHO_T}$ICON_THEME" >&6 6178 6179if test "x$ICON_THEME" = xno 6180then 6181 if test "x$ICONDIR" != xno 6182 then 6183 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 6184 6185echo "${as_me:-configure}:6185: testing ignoring icondir without theme ..." 1>&5 6186 6187 no_icondir="#" 6188 fi 6189else 6190 if test "x$ICONDIR" = xno 6191 then 6192 { { echo "$as_me:6192: error: icondir must be set for icon theme" >&5 6193echo "$as_me: error: icondir must be set for icon theme" >&2;} 6194 { (exit 1); exit 1; }; } 6195 fi 6196fi 6197 6198: ${ICON_FORMAT:=".svg .png .xpm"} 6199 6200# ICON_NAME= 6201ICON_LIST= 6202 6203if test "x$ICON_THEME" != xno 6204then 6205 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48" 6206else 6207 cf_icon_list="icons/${ICON_NAME}_48x48" 6208fi 6209 6210echo "$as_me:6210: checking for icon(s) to install" >&5 6211echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 6212for cf_name in $cf_icon_list 6213do 6214 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 6215 6216echo "${as_me:-configure}:6216: testing using $ICON_FORMAT ..." 1>&5 6217 6218 for cf_suffix in $ICON_FORMAT 6219 do 6220 cf_icon="${cf_name}${cf_suffix}" 6221 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6222 if test ! -f "${cf_left}" 6223 then 6224 if test "x$srcdir" != "x." 6225 then 6226 cf_icon="${srcdir}/${cf_left}" 6227 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6228 if test ! -f "${cf_left}" 6229 then 6230 continue 6231 fi 6232 else 6233 continue 6234 fi 6235 fi 6236 if test "x$ICON_THEME" != xno 6237 then 6238 cf_base=`basename $cf_left` 6239 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 6240 case "x${cf_base}" in #(vi 6241 *:*) #(vi 6242 cf_next=$cf_base 6243 # user-defined mapping 6244 ;; 6245 *.png) #(vi 6246 cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'` 6247 if test -z "$cf_size" 6248 then 6249 { echo "$as_me:6249: WARNING: cannot determine size of $cf_left" >&5 6250echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 6251 continue 6252 fi 6253 cf_next="$cf_size/apps/$cf_trim" 6254 ;; 6255 *.svg) #(vi 6256 cf_next="scalable/apps/$cf_trim" 6257 ;; 6258 *.xpm) 6259 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 6260 6261echo "${as_me:-configure}:6261: testing ignored XPM file in icon theme ..." 1>&5 6262 6263 continue 6264 ;; 6265 *_[0-9][0-9]*x[0-9][0-9]*.*) #(vi 6266 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 6267 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 6268 cf_next="$cf_size/apps/$cf_base" 6269 ;; 6270 esac 6271 test -n "$verbose" && echo " adding $cf_next" 1>&6 6272 6273echo "${as_me:-configure}:6273: testing adding $cf_next ..." 1>&5 6274 6275 cf_icon="${cf_icon}:${cf_next}" 6276 fi 6277 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 6278 ICON_LIST="$ICON_LIST${cf_icon}" 6279 if test -z "$ICON_NAME" 6280 then 6281 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'` 6282 fi 6283 done 6284done 6285 6286if test -n "$verbose" 6287then 6288 echo "$as_me:6288: checking result" >&5 6289echo $ECHO_N "checking result... $ECHO_C" >&6 6290fi 6291echo "$as_me:6291: result: $ICON_LIST" >&5 6292echo "${ECHO_T}$ICON_LIST" >&6 6293 6294if test -z "$ICON_LIST" 6295then 6296 { { echo "$as_me:6296: error: no icons found" >&5 6297echo "$as_me: error: no icons found" >&2;} 6298 { (exit 1); exit 1; }; } 6299fi 6300 6301echo "$as_me:6301: checking for icon name" >&5 6302echo $ECHO_N "checking for icon name... $ECHO_C" >&6 6303echo "$as_me:6303: result: $ICON_NAME" >&5 6304echo "${ECHO_T}$ICON_NAME" >&6 6305 6306# Comment-out the install-desktop rule if the desktop-utils are not found. 6307echo "$as_me:6307: checking if you want to install desktop files" >&5 6308echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 6309 6310# Check whether --enable-desktop or --disable-desktop was given. 6311if test "${enable_desktop+set}" = set; then 6312 enableval="$enable_desktop" 6313 test "$enableval" != no && enableval=yes 6314 if test "$enableval" != "yes" ; then 6315 enable_desktop=$enableval 6316 else 6317 enable_desktop=$enableval 6318 fi 6319else 6320 enableval=yes 6321 enable_desktop=$enableval 6322 6323fi; 6324echo "$as_me:6324: result: $enable_desktop" >&5 6325echo "${ECHO_T}$enable_desktop" >&6 6326 6327desktop_utils= 6328if test "$enable_desktop" = yes ; then 6329# Extract the first word of "desktop-file-install", so it can be a program name with args. 6330set dummy desktop-file-install; ac_word=$2 6331echo "$as_me:6331: checking for $ac_word" >&5 6332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6333if test "${ac_cv_prog_desktop_utils+set}" = set; then 6334 echo $ECHO_N "(cached) $ECHO_C" >&6 6335else 6336 if test -n "$desktop_utils"; then 6337 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 6338else 6339 ac_save_IFS=$IFS; IFS=$ac_path_separator 6340ac_dummy="$PATH" 6341for ac_dir in $ac_dummy; do 6342 IFS=$ac_save_IFS 6343 test -z "$ac_dir" && ac_dir=. 6344 $as_executable_p "$ac_dir/$ac_word" || continue 6345ac_cv_prog_desktop_utils="yes" 6346echo "$as_me:6346: found $ac_dir/$ac_word" >&5 6347break 6348done 6349 6350 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 6351fi 6352fi 6353desktop_utils=$ac_cv_prog_desktop_utils 6354if test -n "$desktop_utils"; then 6355 echo "$as_me:6355: result: $desktop_utils" >&5 6356echo "${ECHO_T}$desktop_utils" >&6 6357else 6358 echo "$as_me:6358: result: no" >&5 6359echo "${ECHO_T}no" >&6 6360fi 6361 6362fi 6363 6364test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 6365 6366if test -z "$desktop_utils" 6367then 6368 echo "$as_me:6368: checking for requested desktop-category" >&5 6369echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 6370 6371# Check whether --with-desktop-category or --without-desktop-category was given. 6372if test "${with_desktop_category+set}" = set; then 6373 withval="$with_desktop_category" 6374 cf_desktop_want=$withval 6375else 6376 cf_desktop_want=auto 6377fi; 6378 echo "$as_me:6378: result: $cf_desktop_want" >&5 6379echo "${ECHO_T}$cf_desktop_want" >&6 6380 6381 if test "$cf_desktop_want" = auto 6382 then 6383 rm -rf conftest* 6384 cf_desktop_also= 6385 for cf_desktop_dir in \ 6386 /usr/share/app-install \ 6387 /usr/share/applications 6388 do 6389 if test -d $cf_desktop_dir 6390 then 6391 find $cf_desktop_dir -name '*.desktop' | \ 6392 while true 6393 do 6394 read cf_desktop_path 6395 test -z "$cf_desktop_path" && break 6396 cf_desktop_name=`basename $cf_desktop_path .desktop` 6397 case $cf_desktop_name in #(vi 6398 xterm|*-xterm|*rxvt*|konsole|*-terminal) 6399 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 6400 6401echo "${as_me:-configure}:6401: testing inspect $cf_desktop_path ..." 1>&5 6402 6403 egrep '^Categories=' $cf_desktop_path | \ 6404 tr ';' '\n' | \ 6405 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 6406 ;; 6407 esac 6408 done 6409 fi 6410 done 6411 if test -s conftest.1 6412 then 6413 cf_desktop_last= 6414 sort conftest.1 | \ 6415 while true 6416 do 6417 read cf_desktop_this 6418 test -z "$cf_desktop_this" && break 6419 case $cf_desktop_this in #(vi 6420 Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*) #(vi 6421 ;; 6422 System|TerminalEmulator|Utility|*) 6423 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2 6424 ;; 6425 esac 6426 cf_desktop_last=$cf_desktop_this 6427 done 6428 cf_desktop_want=`cat conftest.2 | tr '\n' ';'` 6429 fi 6430 if test -n "$cf_desktop_want" 6431 then 6432 if test "$cf_desktop_want" = auto 6433 then 6434 cf_desktop_want= 6435 else 6436 # do a sanity check on the semicolon-separated list, ignore on failure 6437 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 6438 test -z "$cf_desktop_test" && cf_desktop_want= 6439 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 6440 test -z "$cf_desktop_test" && cf_desktop_want= 6441 fi 6442 fi 6443 if test -z "$cf_desktop_want" 6444 then 6445 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 6446 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 6447 6448echo "${as_me:-configure}:6448: testing no usable value found for desktop category ..." 1>&5 6449 6450 fi 6451 fi 6452 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 6453 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 6454 6455echo "${as_me:-configure}:6455: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 6456 6457fi 6458 6459echo "$as_me:6459: checking for install-permissions reference" >&5 6460echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 6461 6462# Check whether --with-reference or --without-reference was given. 6463if test "${with_reference+set}" = set; then 6464 withval="$with_reference" 6465 with_reference=$withval 6466else 6467 with_reference=xterm 6468fi; 6469echo "$as_me:6469: result: $with_reference" >&5 6470echo "${ECHO_T}$with_reference" >&6 6471 6472with_full_paths=yes 6473 6474 echo "$as_me:6474: checking for PATH separator" >&5 6475echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 6476 case $cf_cv_system_name in 6477 os2*) PATH_SEPARATOR=';' ;; 6478 *) ${PATH_SEPARATOR:=':'} ;; 6479 esac 6480 6481 echo "$as_me:6481: result: $PATH_SEPARATOR" >&5 6482echo "${ECHO_T}$PATH_SEPARATOR" >&6 6483 6484test -z "$XTERM_PATH" && XTERM_PATH=$with_reference 6485for ac_prog in $XTERM_PATH $with_reference 6486do 6487 # Extract the first word of "$ac_prog", so it can be a program name with args. 6488set dummy $ac_prog; ac_word=$2 6489echo "$as_me:6489: checking for $ac_word" >&5 6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6491if test "${ac_cv_path_XTERM_PATH+set}" = set; then 6492 echo $ECHO_N "(cached) $ECHO_C" >&6 6493else 6494 case $XTERM_PATH in 6495 [\\/]* | ?:[\\/]*) 6496 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 6497 ;; 6498 *) 6499 ac_save_IFS=$IFS; IFS=$ac_path_separator 6500ac_dummy="$PATH" 6501for ac_dir in $ac_dummy; do 6502 IFS=$ac_save_IFS 6503 test -z "$ac_dir" && ac_dir=. 6504 if $as_executable_p "$ac_dir/$ac_word"; then 6505 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 6506 echo "$as_me:6506: found $ac_dir/$ac_word" >&5 6507 break 6508fi 6509done 6510 6511 ;; 6512esac 6513fi 6514XTERM_PATH=$ac_cv_path_XTERM_PATH 6515 6516if test -n "$XTERM_PATH"; then 6517 echo "$as_me:6517: result: $XTERM_PATH" >&5 6518echo "${ECHO_T}$XTERM_PATH" >&6 6519else 6520 echo "$as_me:6520: result: no" >&5 6521echo "${ECHO_T}no" >&6 6522fi 6523 6524 test -n "$XTERM_PATH" && break 6525done 6526test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 6527 6528cf_path_prog="" 6529cf_path_args="" 6530IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 6531for cf_temp in $ac_cv_path_XTERM_PATH 6532do 6533 if test -z "$cf_path_prog" ; then 6534 if test "$with_full_paths" = yes ; then 6535 6536if test "x$prefix" != xNONE; then 6537 cf_path_syntax="$prefix" 6538else 6539 cf_path_syntax="$ac_default_prefix" 6540fi 6541 6542case ".$cf_temp" in #(vi 6543.\$\(*\)*|.\'*\'*) #(vi 6544 ;; 6545..|./*|.\\*) #(vi 6546 ;; 6547.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6548 ;; 6549.\${*prefix}*|.\${*dir}*) #(vi 6550 eval cf_temp="$cf_temp" 6551 case ".$cf_temp" in #(vi 6552 .NONE/*) 6553 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6554 ;; 6555 esac 6556 ;; #(vi 6557.no|.NONE/*) 6558 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6559 ;; 6560*) 6561 break 6562 ;; 6563esac 6564 6565 cf_path_prog="$cf_temp" 6566 else 6567 cf_path_prog="`basename $cf_temp`" 6568 fi 6569 elif test -z "$cf_path_args" ; then 6570 cf_path_args="$cf_temp" 6571 else 6572 cf_path_args="$cf_path_args $cf_temp" 6573 fi 6574done 6575IFS="$cf_save_ifs" 6576 6577if test -n "$cf_path_prog" ; then 6578 6579echo "${as_me:-configure}:6579: testing defining path for ${cf_path_prog} ..." 1>&5 6580 6581cat >>confdefs.h <<EOF 6582#define XTERM_PATH_PATH "$cf_path_prog" 6583EOF 6584 6585 test -n "$cf_path_args" && 6586cat >>confdefs.h <<EOF 6587#define XTERM_PATH_ARGS "$cf_path_args" 6588EOF 6589 6590fi 6591 6592# If any of --program-prefix, --program-suffix or --program-transform-name is 6593# given, accept an option tell the makefile to create a symbolic link, e.g., 6594# to "xterm" on install. 6595XTERM_SYMLINK=NONE 6596 6597if test "$program_transform_name" != "'s,,,'" ; then 6598cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 6599cf_name=`echo xterm |sed -e "$cf_name"` 6600echo "$as_me:6600: checking for symbolic link to create to $cf_name" >&5 6601echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 6602 6603# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 6604if test "${with_xterm_symlink+set}" = set; then 6605 withval="$with_xterm_symlink" 6606 with_symlink=$withval 6607else 6608 with_symlink=xterm 6609fi; 6610echo "$as_me:6610: result: $with_symlink" >&5 6611echo "${ECHO_T}$with_symlink" >&6 6612test "$with_symlink" = yes && with_symlink=xterm 6613test -n "$with_symlink" && \ 6614 test "$with_symlink" != no && \ 6615 test "$with_symlink" != $cf_name && \ 6616 XTERM_SYMLINK="$with_symlink" 6617fi 6618 6619echo "$as_me:6619: checking if you want to disable openpty" >&5 6620echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 6621 6622# Check whether --enable-openpty or --disable-openpty was given. 6623if test "${enable_openpty+set}" = set; then 6624 enableval="$enable_openpty" 6625 test "$enableval" != no && enableval=yes 6626 if test "$enableval" != "yes" ; then 6627 disable_openpty=yes 6628 else 6629 disable_openpty=no 6630 fi 6631else 6632 enableval=yes 6633 disable_openpty=no 6634 6635fi; 6636echo "$as_me:6636: result: $disable_openpty" >&5 6637echo "${ECHO_T}$disable_openpty" >&6 6638 6639echo "$as_me:6639: checking if you want to disable setuid" >&5 6640echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 6641 6642# Check whether --enable-setuid or --disable-setuid was given. 6643if test "${enable_setuid+set}" = set; then 6644 enableval="$enable_setuid" 6645 test "$enableval" != no && enableval=yes 6646 if test "$enableval" != "yes" ; then 6647 disable_setuid=yes 6648 else 6649 disable_setuid=no 6650 fi 6651else 6652 enableval=yes 6653 disable_setuid=no 6654 6655fi; 6656echo "$as_me:6656: result: $disable_setuid" >&5 6657echo "${ECHO_T}$disable_setuid" >&6 6658 6659echo "$as_me:6659: checking if you want to disable setgid" >&5 6660echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 6661 6662# Check whether --enable-setgid or --disable-setgid was given. 6663if test "${enable_setgid+set}" = set; then 6664 enableval="$enable_setgid" 6665 test "$enableval" != no && enableval=yes 6666 if test "$enableval" != "yes" ; then 6667 disable_setgid=yes 6668 else 6669 disable_setgid=no 6670 fi 6671else 6672 enableval=yes 6673 disable_setgid=no 6674 6675fi; 6676echo "$as_me:6676: result: $disable_setgid" >&5 6677echo "${ECHO_T}$disable_setgid" >&6 6678 6679echo "$as_me:6679: checking if you want to run xterm setuid to a given user" >&5 6680echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 6681 6682# Check whether --with-setuid or --without-setuid was given. 6683if test "${with_setuid+set}" = set; then 6684 withval="$with_setuid" 6685 use_given_setuid=$withval 6686else 6687 use_given_setuid=no 6688fi; 6689echo "$as_me:6689: result: $use_given_setuid" >&5 6690echo "${ECHO_T}$use_given_setuid" >&6 6691 6692if test "$use_given_setuid" != no ; then 6693 if test "$use_given_setuid" = yes ; then 6694 cf_cv_given_setuid=root 6695 else 6696 cf_cv_given_setuid=$use_given_setuid 6697 fi 6698 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 6699 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 6700fi 6701 6702echo "$as_me:6702: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 6703echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 6704 6705# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 6706if test "${with_utmp_setgid+set}" = set; then 6707 withval="$with_utmp_setgid" 6708 use_utmp_setgid=$withval 6709else 6710 use_utmp_setgid=no 6711fi; 6712echo "$as_me:6712: result: $use_utmp_setgid" >&5 6713echo "${ECHO_T}$use_utmp_setgid" >&6 6714 6715if test "$use_utmp_setgid" != no ; then 6716 if test "$use_utmp_setgid" = yes ; then 6717 6718if test $cf_cv_have_utmp != no ; then 6719echo "$as_me:6719: checking for utmp/utmpx group" >&5 6720echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 6721if test "${cf_cv_utmp_group+set}" = set; then 6722 echo $ECHO_N "(cached) $ECHO_C" >&6 6723else 6724 6725for cf_utmp_path in /var/adm /var/run 6726do 6727 for cf_utmp_file in utmpx utmp 6728 do 6729 if test -f $cf_utmp_path/$cf_utmp_file 6730 then 6731 cf_cv_utmp_group=root 6732 6733 cf_option="-l -L" 6734 6735 # Expect listing to have fields like this: 6736 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 6737 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6738 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6739 if test -z "$cf_rest" ; then 6740 cf_option="$cf_option -g" 6741 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6742 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6743 fi 6744 rm -f conftest 6745 6746 # If we have a pathname, and the date fields look right, assume we've 6747 # captured the group as well. 6748 if test -n "$cf_rest" ; then 6749 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 6750 if test -z "$cf_test" ; then 6751 cf_cv_utmp_group=$cf_grp; 6752 fi 6753 fi 6754 break 6755 fi 6756 done 6757 test -n "$cf_cv_utmp_group" && break 6758done 6759 6760fi 6761echo "$as_me:6761: result: $cf_cv_utmp_group" >&5 6762echo "${ECHO_T}$cf_cv_utmp_group" >&6 6763else 6764 { { echo "$as_me:6764: error: cannot find utmp group" >&5 6765echo "$as_me: error: cannot find utmp group" >&2;} 6766 { (exit 1); exit 1; }; } 6767fi 6768 6769 else 6770 cf_cv_utmp_group=$use_utmp_setgid 6771 fi 6772 if test "$cf_cv_posix_saved_ids" != yes ; then 6773 { { echo "$as_me:6773: error: Your system does not support POSIX saved-ids" >&5 6774echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 6775 { (exit 1); exit 1; }; } 6776 fi 6777 6778cat >>confdefs.h <<\EOF 6779#define USE_UTMP_SETGID 1 6780EOF 6781 6782 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 6783fi 6784 6785echo "$as_me:6785: checking if you want to link with utempter" >&5 6786echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 6787 6788# Check whether --with-utempter or --without-utempter was given. 6789if test "${with_utempter+set}" = set; then 6790 withval="$with_utempter" 6791 use_utempter=$withval 6792else 6793 use_utempter=no 6794fi; 6795echo "$as_me:6795: result: $use_utempter" >&5 6796echo "${ECHO_T}$use_utempter" >&6 6797 6798if test "$use_utempter" = yes ; then 6799 6800echo "$as_me:6800: checking if we can link with utempter library" >&5 6801echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 6802if test "${cf_cv_have_utempter+set}" = set; then 6803 echo $ECHO_N "(cached) $ECHO_C" >&6 6804else 6805 6806cf_save_LIBS="$LIBS" 6807LIBS="-lutempter $LIBS" 6808cat >conftest.$ac_ext <<_ACEOF 6809#line 6809 "configure" 6810#include "confdefs.h" 6811 6812#include <utempter.h> 6813 6814int 6815main () 6816{ 6817 6818 addToUtmp("/dev/tty", 0, 1); 6819 removeFromUtmp(); 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825rm -f conftest.$ac_objext conftest$ac_exeext 6826if { (eval echo "$as_me:6826: \"$ac_link\"") >&5 6827 (eval $ac_link) 2>&5 6828 ac_status=$? 6829 echo "$as_me:6829: \$? = $ac_status" >&5 6830 (exit $ac_status); } && 6831 { ac_try='test -s conftest$ac_exeext' 6832 { (eval echo "$as_me:6832: \"$ac_try\"") >&5 6833 (eval $ac_try) 2>&5 6834 ac_status=$? 6835 echo "$as_me:6835: \$? = $ac_status" >&5 6836 (exit $ac_status); }; }; then 6837 6838 cf_cv_have_utempter=yes 6839else 6840 echo "$as_me: failed program was:" >&5 6841cat conftest.$ac_ext >&5 6842 6843 cf_cv_have_utempter=no 6844fi 6845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6846LIBS="$cf_save_LIBS" 6847 6848fi 6849echo "$as_me:6849: result: $cf_cv_have_utempter" >&5 6850echo "${ECHO_T}$cf_cv_have_utempter" >&6 6851if test "$cf_cv_have_utempter" = yes ; then 6852 6853cat >>confdefs.h <<\EOF 6854#define USE_UTEMPTER 1 6855EOF 6856 6857 LIBS="-lutempter $LIBS" 6858fi 6859 6860 test "$cf_cv_have_utempter" != yes && use_utempter=no 6861else 6862 use_utempter=no 6863fi 6864 6865# Some configurations permit (or require) either setuid or setgid mode. 6866# Let the user decide. 6867if test "$use_utempter" = yes ; then 6868 if test "${enable_setuid+set}" != set ; then 6869 disable_setuid=yes 6870 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 6871 6872echo "${as_me:-configure}:6872: testing No --disable-setuid option given, force to yes ..." 1>&5 6873 6874 fi 6875fi 6876 6877### checks for external data 6878 6879echo "$as_me:6879: checking if external errno is declared" >&5 6880echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 6881if test "${cf_cv_dcl_errno+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 6885 cat >conftest.$ac_ext <<_ACEOF 6886#line 6886 "configure" 6887#include "confdefs.h" 6888 6889#ifdef HAVE_STDLIB_H 6890#include <stdlib.h> 6891#endif 6892#include <stdio.h> 6893#include <sys/types.h> 6894#include <errno.h> 6895int 6896main () 6897{ 6898int x = (int) errno 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903rm -f conftest.$ac_objext 6904if { (eval echo "$as_me:6904: \"$ac_compile\"") >&5 6905 (eval $ac_compile) 2>&5 6906 ac_status=$? 6907 echo "$as_me:6907: \$? = $ac_status" >&5 6908 (exit $ac_status); } && 6909 { ac_try='test -s conftest.$ac_objext' 6910 { (eval echo "$as_me:6910: \"$ac_try\"") >&5 6911 (eval $ac_try) 2>&5 6912 ac_status=$? 6913 echo "$as_me:6913: \$? = $ac_status" >&5 6914 (exit $ac_status); }; }; then 6915 cf_cv_dcl_errno=yes 6916else 6917 echo "$as_me: failed program was:" >&5 6918cat conftest.$ac_ext >&5 6919cf_cv_dcl_errno=no 6920fi 6921rm -f conftest.$ac_objext conftest.$ac_ext 6922 6923fi 6924echo "$as_me:6924: result: $cf_cv_dcl_errno" >&5 6925echo "${ECHO_T}$cf_cv_dcl_errno" >&6 6926 6927if test "$cf_cv_dcl_errno" = no ; then 6928 6929cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6930 6931 cat >>confdefs.h <<EOF 6932#define $cf_result 1 6933EOF 6934 6935fi 6936 6937# It's possible (for near-UNIX clones) that the data doesn't exist 6938 6939echo "$as_me:6939: checking if external errno exists" >&5 6940echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 6941if test "${cf_cv_have_errno+set}" = set; then 6942 echo $ECHO_N "(cached) $ECHO_C" >&6 6943else 6944 6945 cat >conftest.$ac_ext <<_ACEOF 6946#line 6946 "configure" 6947#include "confdefs.h" 6948 6949#undef errno 6950extern int errno; 6951 6952int 6953main () 6954{ 6955errno = 2 6956 ; 6957 return 0; 6958} 6959_ACEOF 6960rm -f conftest.$ac_objext conftest$ac_exeext 6961if { (eval echo "$as_me:6961: \"$ac_link\"") >&5 6962 (eval $ac_link) 2>&5 6963 ac_status=$? 6964 echo "$as_me:6964: \$? = $ac_status" >&5 6965 (exit $ac_status); } && 6966 { ac_try='test -s conftest$ac_exeext' 6967 { (eval echo "$as_me:6967: \"$ac_try\"") >&5 6968 (eval $ac_try) 2>&5 6969 ac_status=$? 6970 echo "$as_me:6970: \$? = $ac_status" >&5 6971 (exit $ac_status); }; }; then 6972 cf_cv_have_errno=yes 6973else 6974 echo "$as_me: failed program was:" >&5 6975cat conftest.$ac_ext >&5 6976cf_cv_have_errno=no 6977fi 6978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6979 6980fi 6981echo "$as_me:6981: result: $cf_cv_have_errno" >&5 6982echo "${ECHO_T}$cf_cv_have_errno" >&6 6983 6984if test "$cf_cv_have_errno" = yes ; then 6985 6986cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6987 6988 cat >>confdefs.h <<EOF 6989#define $cf_result 1 6990EOF 6991 6992fi 6993 6994echo "$as_me:6994: checking for explicit tty group name" >&5 6995echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 6996 6997# Check whether --with-tty-group or --without-tty-group was given. 6998if test "${with_tty_group+set}" = set; then 6999 withval="$with_tty_group" 7000 cf_tty_group=$withval 7001else 7002 cf_tty_group=auto... 7003fi; 7004test -z "$cf_tty_group" && cf_tty_group=auto... 7005test "$cf_tty_group" = yes && cf_tty_group=auto... 7006echo "$as_me:7006: result: $cf_tty_group" >&5 7007echo "${ECHO_T}$cf_tty_group" >&6 7008 7009if test "$cf_tty_group" = "auto..." ; then 7010echo "$as_me:7010: checking for tty group name" >&5 7011echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 7012if test "${cf_cv_tty_group_name+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 7016# If we are configuring as root, it is hard to get a clue about the tty group. 7017# But we'll guess based on how our connection is set up - assuming it is done 7018# properly. 7019 7020cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'` 7021# )vi 7022if test "$cf_uid" != 0 ; then 7023cf_cv_tty_group_name= 7024cf_tty_name=`tty` 7025test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 7026test -z "$cf_tty_name" && cf_tty_name=/dev/tty 7027if test -c "$cf_tty_name" 7028then 7029 cf_option="-l -L" 7030 7031 # Expect listing to have fields like this: 7032 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 7033 ls $cf_option $cf_tty_name >conftest.out 7034 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7035 if test -z "$cf_rest" ; then 7036 cf_option="$cf_option -g" 7037 ls $cf_option $cf_tty_name >conftest.out 7038 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7039 fi 7040 rm -f conftest.out 7041 cf_cv_tty_group_name=$cf_grp 7042fi 7043fi 7044 7045# If we cannot deduce the tty group, fall back on hardcoded cases 7046 7047if test -z "$cf_cv_tty_group_name" 7048then 7049case $host_os in #(vi 7050osf*) #(vi 7051 cf_cv_tty_group_name="terminal" 7052 ;; 7053*) 7054 cf_cv_tty_group_name="unknown" 7055 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 7056 cf_cv_tty_group_name="tty" 7057 fi 7058 ;; 7059esac 7060fi 7061 7062fi 7063echo "$as_me:7063: result: $cf_cv_tty_group_name" >&5 7064echo "${ECHO_T}$cf_cv_tty_group_name" >&6 7065cf_tty_group="$cf_cv_tty_group_name" 7066else 7067 # if configure option, always do this 7068 7069cat >>confdefs.h <<\EOF 7070#define USE_TTY_GROUP 1 7071EOF 7072 7073fi 7074 7075cat >>confdefs.h <<EOF 7076#define TTY_GROUP_NAME "$cf_tty_group" 7077EOF 7078 7079# This is only a double-check that the group-name we obtained above really 7080# does apply to the device. We cannot perform this test if we are in batch 7081# mode, or if we are cross-compiling. 7082 7083echo "$as_me:7083: checking if we may use the $cf_tty_group group" >&5 7084echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 7085if test "${cf_cv_tty_group+set}" = set; then 7086 echo $ECHO_N "(cached) $ECHO_C" >&6 7087else 7088 7089cf_tty_name=`tty` 7090if test "$cf_tty_name" != "not a tty" 7091then 7092if test "$cross_compiling" = yes; then 7093 cf_cv_tty_group=unknown 7094else 7095 cat >conftest.$ac_ext <<_ACEOF 7096#line 7096 "configure" 7097#include "confdefs.h" 7098 7099#include <unistd.h> 7100#include <sys/types.h> 7101#include <sys/stat.h> 7102#include <grp.h> 7103int main() 7104{ 7105 struct stat sb; 7106 struct group *ttygrp = getgrnam(TTY_GROUP_NAME); 7107 char *name = ttyname(0); 7108 7109 endgrent(); 7110 if (ttygrp != 0 7111 && name != 0 7112 && stat(name, &sb) == 0 7113 && sb.st_gid != getgid() 7114 && sb.st_gid == ttygrp->gr_gid) { 7115 ${cf_cv_main_return:-return} (0); 7116 } 7117 ${cf_cv_main_return:-return} (1); 7118} 7119 7120_ACEOF 7121rm -f conftest$ac_exeext 7122if { (eval echo "$as_me:7122: \"$ac_link\"") >&5 7123 (eval $ac_link) 2>&5 7124 ac_status=$? 7125 echo "$as_me:7125: \$? = $ac_status" >&5 7126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7127 { (eval echo "$as_me:7127: \"$ac_try\"") >&5 7128 (eval $ac_try) 2>&5 7129 ac_status=$? 7130 echo "$as_me:7130: \$? = $ac_status" >&5 7131 (exit $ac_status); }; }; then 7132 cf_cv_tty_group=yes 7133else 7134 echo "$as_me: program exited with status $ac_status" >&5 7135echo "$as_me: failed program was:" >&5 7136cat conftest.$ac_ext >&5 7137cf_cv_tty_group=no 7138fi 7139rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7140fi 7141elif test "$cross_compiling" = yes; then 7142 cf_cv_tty_group=unknown 7143else 7144 cf_cv_tty_group=yes 7145fi 7146 7147fi 7148echo "$as_me:7148: result: $cf_cv_tty_group" >&5 7149echo "${ECHO_T}$cf_cv_tty_group" >&6 7150 7151if test $cf_cv_tty_group = no ; then 7152 { echo "$as_me:7152: WARNING: Cannot use $cf_tty_group group" >&5 7153echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 7154else 7155 cat >>confdefs.h <<\EOF 7156#define USE_TTY_GROUP 1 7157EOF 7158 7159fi 7160 7161### checks for system services and user specified options 7162 7163echo "$as_me:7163: checking for sys/wait.h that is POSIX.1 compatible" >&5 7164echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 7165if test "${ac_cv_header_sys_wait_h+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167else 7168 cat >conftest.$ac_ext <<_ACEOF 7169#line 7169 "configure" 7170#include "confdefs.h" 7171#include <sys/types.h> 7172#include <sys/wait.h> 7173#ifndef WEXITSTATUS 7174# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7175#endif 7176#ifndef WIFEXITED 7177# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7178#endif 7179 7180int 7181main () 7182{ 7183 int s; 7184 wait (&s); 7185 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190rm -f conftest.$ac_objext 7191if { (eval echo "$as_me:7191: \"$ac_compile\"") >&5 7192 (eval $ac_compile) 2>&5 7193 ac_status=$? 7194 echo "$as_me:7194: \$? = $ac_status" >&5 7195 (exit $ac_status); } && 7196 { ac_try='test -s conftest.$ac_objext' 7197 { (eval echo "$as_me:7197: \"$ac_try\"") >&5 7198 (eval $ac_try) 2>&5 7199 ac_status=$? 7200 echo "$as_me:7200: \$? = $ac_status" >&5 7201 (exit $ac_status); }; }; then 7202 ac_cv_header_sys_wait_h=yes 7203else 7204 echo "$as_me: failed program was:" >&5 7205cat conftest.$ac_ext >&5 7206ac_cv_header_sys_wait_h=no 7207fi 7208rm -f conftest.$ac_objext conftest.$ac_ext 7209fi 7210echo "$as_me:7210: result: $ac_cv_header_sys_wait_h" >&5 7211echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 7212if test $ac_cv_header_sys_wait_h = yes; then 7213 7214cat >>confdefs.h <<\EOF 7215#define HAVE_SYS_WAIT_H 1 7216EOF 7217 7218fi 7219 7220echo "$as_me:7220: checking for POSIX wait functions" >&5 7221echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 7222if test "${cf_cv_posix_wait+set}" = set; then 7223 echo $ECHO_N "(cached) $ECHO_C" >&6 7224else 7225 7226cat >conftest.$ac_ext <<_ACEOF 7227#line 7227 "configure" 7228#include "confdefs.h" 7229 7230#include <stdlib.h> 7231#include <stdio.h> 7232#include <sys/types.h> 7233#ifdef HAVE_SYS_WAIT_H 7234#include <sys/wait.h> 7235#endif 7236 7237int 7238main () 7239{ 7240 7241 int stat_loc; 7242 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 7243 pid_t pid2 = wait(&stat_loc); 7244 7245 ; 7246 return 0; 7247} 7248_ACEOF 7249rm -f conftest.$ac_objext conftest$ac_exeext 7250if { (eval echo "$as_me:7250: \"$ac_link\"") >&5 7251 (eval $ac_link) 2>&5 7252 ac_status=$? 7253 echo "$as_me:7253: \$? = $ac_status" >&5 7254 (exit $ac_status); } && 7255 { ac_try='test -s conftest$ac_exeext' 7256 { (eval echo "$as_me:7256: \"$ac_try\"") >&5 7257 (eval $ac_try) 2>&5 7258 ac_status=$? 7259 echo "$as_me:7259: \$? = $ac_status" >&5 7260 (exit $ac_status); }; }; then 7261 cf_cv_posix_wait=yes 7262else 7263 echo "$as_me: failed program was:" >&5 7264cat conftest.$ac_ext >&5 7265cf_cv_posix_wait=no 7266fi 7267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7268 7269fi 7270echo "$as_me:7270: result: $cf_cv_posix_wait" >&5 7271echo "${ECHO_T}$cf_cv_posix_wait" >&6 7272test "$cf_cv_posix_wait" = yes && 7273cat >>confdefs.h <<\EOF 7274#define USE_POSIX_WAIT 1 7275EOF 7276 7277echo "$as_me:7277: checking if external sys_nerr is declared" >&5 7278echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 7279if test "${cf_cv_dcl_sys_nerr+set}" = set; then 7280 echo $ECHO_N "(cached) $ECHO_C" >&6 7281else 7282 7283 cat >conftest.$ac_ext <<_ACEOF 7284#line 7284 "configure" 7285#include "confdefs.h" 7286 7287#ifdef HAVE_STDLIB_H 7288#include <stdlib.h> 7289#endif 7290#include <stdio.h> 7291#include <sys/types.h> 7292#include <errno.h> 7293int 7294main () 7295{ 7296int x = (int) sys_nerr 7297 ; 7298 return 0; 7299} 7300_ACEOF 7301rm -f conftest.$ac_objext 7302if { (eval echo "$as_me:7302: \"$ac_compile\"") >&5 7303 (eval $ac_compile) 2>&5 7304 ac_status=$? 7305 echo "$as_me:7305: \$? = $ac_status" >&5 7306 (exit $ac_status); } && 7307 { ac_try='test -s conftest.$ac_objext' 7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5 7309 (eval $ac_try) 2>&5 7310 ac_status=$? 7311 echo "$as_me:7311: \$? = $ac_status" >&5 7312 (exit $ac_status); }; }; then 7313 cf_cv_dcl_sys_nerr=yes 7314else 7315 echo "$as_me: failed program was:" >&5 7316cat conftest.$ac_ext >&5 7317cf_cv_dcl_sys_nerr=no 7318fi 7319rm -f conftest.$ac_objext conftest.$ac_ext 7320 7321fi 7322echo "$as_me:7322: result: $cf_cv_dcl_sys_nerr" >&5 7323echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 7324 7325if test "$cf_cv_dcl_sys_nerr" = no ; then 7326 7327cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7328 7329 cat >>confdefs.h <<EOF 7330#define $cf_result 1 7331EOF 7332 7333fi 7334 7335# It's possible (for near-UNIX clones) that the data doesn't exist 7336 7337echo "$as_me:7337: checking if external sys_nerr exists" >&5 7338echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 7339if test "${cf_cv_have_sys_nerr+set}" = set; then 7340 echo $ECHO_N "(cached) $ECHO_C" >&6 7341else 7342 7343 cat >conftest.$ac_ext <<_ACEOF 7344#line 7344 "configure" 7345#include "confdefs.h" 7346 7347#undef sys_nerr 7348extern int sys_nerr; 7349 7350int 7351main () 7352{ 7353sys_nerr = 2 7354 ; 7355 return 0; 7356} 7357_ACEOF 7358rm -f conftest.$ac_objext conftest$ac_exeext 7359if { (eval echo "$as_me:7359: \"$ac_link\"") >&5 7360 (eval $ac_link) 2>&5 7361 ac_status=$? 7362 echo "$as_me:7362: \$? = $ac_status" >&5 7363 (exit $ac_status); } && 7364 { ac_try='test -s conftest$ac_exeext' 7365 { (eval echo "$as_me:7365: \"$ac_try\"") >&5 7366 (eval $ac_try) 2>&5 7367 ac_status=$? 7368 echo "$as_me:7368: \$? = $ac_status" >&5 7369 (exit $ac_status); }; }; then 7370 cf_cv_have_sys_nerr=yes 7371else 7372 echo "$as_me: failed program was:" >&5 7373cat conftest.$ac_ext >&5 7374cf_cv_have_sys_nerr=no 7375fi 7376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7377 7378fi 7379echo "$as_me:7379: result: $cf_cv_have_sys_nerr" >&5 7380echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 7381 7382if test "$cf_cv_have_sys_nerr" = yes ; then 7383 7384cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7385 7386 cat >>confdefs.h <<EOF 7387#define $cf_result 1 7388EOF 7389 7390fi 7391 7392echo "$as_me:7392: checking if external sys_errlist is declared" >&5 7393echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 7394if test "${cf_cv_dcl_sys_errlist+set}" = set; then 7395 echo $ECHO_N "(cached) $ECHO_C" >&6 7396else 7397 7398 cat >conftest.$ac_ext <<_ACEOF 7399#line 7399 "configure" 7400#include "confdefs.h" 7401 7402#ifdef HAVE_STDLIB_H 7403#include <stdlib.h> 7404#endif 7405#include <stdio.h> 7406#include <sys/types.h> 7407#include <errno.h> 7408int 7409main () 7410{ 7411int x = (int) sys_errlist 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416rm -f conftest.$ac_objext 7417if { (eval echo "$as_me:7417: \"$ac_compile\"") >&5 7418 (eval $ac_compile) 2>&5 7419 ac_status=$? 7420 echo "$as_me:7420: \$? = $ac_status" >&5 7421 (exit $ac_status); } && 7422 { ac_try='test -s conftest.$ac_objext' 7423 { (eval echo "$as_me:7423: \"$ac_try\"") >&5 7424 (eval $ac_try) 2>&5 7425 ac_status=$? 7426 echo "$as_me:7426: \$? = $ac_status" >&5 7427 (exit $ac_status); }; }; then 7428 cf_cv_dcl_sys_errlist=yes 7429else 7430 echo "$as_me: failed program was:" >&5 7431cat conftest.$ac_ext >&5 7432cf_cv_dcl_sys_errlist=no 7433fi 7434rm -f conftest.$ac_objext conftest.$ac_ext 7435 7436fi 7437echo "$as_me:7437: result: $cf_cv_dcl_sys_errlist" >&5 7438echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 7439 7440if test "$cf_cv_dcl_sys_errlist" = no ; then 7441 7442cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7443 7444 cat >>confdefs.h <<EOF 7445#define $cf_result 1 7446EOF 7447 7448fi 7449 7450# It's possible (for near-UNIX clones) that the data doesn't exist 7451 7452echo "$as_me:7452: checking if external sys_errlist exists" >&5 7453echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 7454if test "${cf_cv_have_sys_errlist+set}" = set; then 7455 echo $ECHO_N "(cached) $ECHO_C" >&6 7456else 7457 7458 cat >conftest.$ac_ext <<_ACEOF 7459#line 7459 "configure" 7460#include "confdefs.h" 7461 7462#undef sys_errlist 7463extern int sys_errlist; 7464 7465int 7466main () 7467{ 7468sys_errlist = 2 7469 ; 7470 return 0; 7471} 7472_ACEOF 7473rm -f conftest.$ac_objext conftest$ac_exeext 7474if { (eval echo "$as_me:7474: \"$ac_link\"") >&5 7475 (eval $ac_link) 2>&5 7476 ac_status=$? 7477 echo "$as_me:7477: \$? = $ac_status" >&5 7478 (exit $ac_status); } && 7479 { ac_try='test -s conftest$ac_exeext' 7480 { (eval echo "$as_me:7480: \"$ac_try\"") >&5 7481 (eval $ac_try) 2>&5 7482 ac_status=$? 7483 echo "$as_me:7483: \$? = $ac_status" >&5 7484 (exit $ac_status); }; }; then 7485 cf_cv_have_sys_errlist=yes 7486else 7487 echo "$as_me: failed program was:" >&5 7488cat conftest.$ac_ext >&5 7489cf_cv_have_sys_errlist=no 7490fi 7491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7492 7493fi 7494echo "$as_me:7494: result: $cf_cv_have_sys_errlist" >&5 7495echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 7496 7497if test "$cf_cv_have_sys_errlist" = yes ; then 7498 7499cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7500 7501 cat >>confdefs.h <<EOF 7502#define $cf_result 1 7503EOF 7504 7505fi 7506 7507for ac_header in \ 7508termios.h \ 7509stdlib.h \ 7510X11/Intrinsic.h \ 7511 7512do 7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7514echo "$as_me:7514: checking for $ac_header" >&5 7515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7516if eval "test \"\${$as_ac_Header+set}\" = set"; then 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 7518else 7519 cat >conftest.$ac_ext <<_ACEOF 7520#line 7520 "configure" 7521#include "confdefs.h" 7522#include <$ac_header> 7523_ACEOF 7524if { (eval echo "$as_me:7524: \"$ac_cpp conftest.$ac_ext\"") >&5 7525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7526 ac_status=$? 7527 egrep -v '^ *\+' conftest.er1 >conftest.err 7528 rm -f conftest.er1 7529 cat conftest.err >&5 7530 echo "$as_me:7530: \$? = $ac_status" >&5 7531 (exit $ac_status); } >/dev/null; then 7532 if test -s conftest.err; then 7533 ac_cpp_err=$ac_c_preproc_warn_flag 7534 else 7535 ac_cpp_err= 7536 fi 7537else 7538 ac_cpp_err=yes 7539fi 7540if test -z "$ac_cpp_err"; then 7541 eval "$as_ac_Header=yes" 7542else 7543 echo "$as_me: failed program was:" >&5 7544 cat conftest.$ac_ext >&5 7545 eval "$as_ac_Header=no" 7546fi 7547rm -f conftest.err conftest.$ac_ext 7548fi 7549echo "$as_me:7549: result: `eval echo '${'$as_ac_Header'}'`" >&5 7550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7551if test `eval echo '${'$as_ac_Header'}'` = yes; then 7552 cat >>confdefs.h <<EOF 7553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7554EOF 7555 7556fi 7557done 7558 7559echo "$as_me:7559: checking if we should define SYSV" >&5 7560echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 7561if test "${cf_cv_sysv+set}" = set; then 7562 echo $ECHO_N "(cached) $ECHO_C" >&6 7563else 7564 7565cat >conftest.$ac_ext <<_ACEOF 7566#line 7566 "configure" 7567#include "confdefs.h" 7568 7569#undef SYSV 7570#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 7571#ifdef HAVE_STDLIB_H 7572#include <stdlib.h> /* look for wchar_t */ 7573#endif 7574#ifdef HAVE_X11_INTRINSIC_H 7575#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 7576#endif 7577#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 7578#include <termios.h> 7579#define STRUCT_TERMIOS struct termios 7580#else 7581#define STRUCT_TERMIOS struct termio 7582#endif 7583#include <curses.h> 7584#include <term.h> /* eliminate most BSD hacks */ 7585#include <errno.h> /* declare sys_errlist on older systems */ 7586#include <sys/termio.h> /* eliminate most of the remaining ones */ 7587 7588int 7589main () 7590{ 7591 7592static STRUCT_TERMIOS d_tio; 7593 d_tio.c_cc[VINTR] = 0; 7594 d_tio.c_cc[VQUIT] = 0; 7595 d_tio.c_cc[VERASE] = 0; 7596 d_tio.c_cc[VKILL] = 0; 7597 d_tio.c_cc[VEOF] = 0; 7598 d_tio.c_cc[VEOL] = 0; 7599 d_tio.c_cc[VMIN] = 0; 7600 d_tio.c_cc[VTIME] = 0; 7601#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 7602sys_errlist[0] = ""; /* Cygwin mis-declares this */ 7603#endif 7604 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609rm -f conftest.$ac_objext 7610if { (eval echo "$as_me:7610: \"$ac_compile\"") >&5 7611 (eval $ac_compile) 2>&5 7612 ac_status=$? 7613 echo "$as_me:7613: \$? = $ac_status" >&5 7614 (exit $ac_status); } && 7615 { ac_try='test -s conftest.$ac_objext' 7616 { (eval echo "$as_me:7616: \"$ac_try\"") >&5 7617 (eval $ac_try) 2>&5 7618 ac_status=$? 7619 echo "$as_me:7619: \$? = $ac_status" >&5 7620 (exit $ac_status); }; }; then 7621 cf_cv_sysv=yes 7622else 7623 echo "$as_me: failed program was:" >&5 7624cat conftest.$ac_ext >&5 7625cf_cv_sysv=no 7626fi 7627rm -f conftest.$ac_objext conftest.$ac_ext 7628 7629fi 7630echo "$as_me:7630: result: $cf_cv_sysv" >&5 7631echo "${ECHO_T}$cf_cv_sysv" >&6 7632test "$cf_cv_sysv" = yes && 7633cat >>confdefs.h <<\EOF 7634#define SYSV 1 7635EOF 7636 7637echo "$as_me:7637: checking for elf_begin in -lelf" >&5 7638echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 7639if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 7640 echo $ECHO_N "(cached) $ECHO_C" >&6 7641else 7642 ac_check_lib_save_LIBS=$LIBS 7643LIBS="-lelf $LIBS" 7644cat >conftest.$ac_ext <<_ACEOF 7645#line 7645 "configure" 7646#include "confdefs.h" 7647 7648/* Override any gcc2 internal prototype to avoid an error. */ 7649#ifdef __cplusplus 7650extern "C" 7651#endif 7652/* We use char because int might match the return type of a gcc2 7653 builtin and then its argument prototype would still apply. */ 7654char elf_begin (); 7655int 7656main () 7657{ 7658elf_begin (); 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663rm -f conftest.$ac_objext conftest$ac_exeext 7664if { (eval echo "$as_me:7664: \"$ac_link\"") >&5 7665 (eval $ac_link) 2>&5 7666 ac_status=$? 7667 echo "$as_me:7667: \$? = $ac_status" >&5 7668 (exit $ac_status); } && 7669 { ac_try='test -s conftest$ac_exeext' 7670 { (eval echo "$as_me:7670: \"$ac_try\"") >&5 7671 (eval $ac_try) 2>&5 7672 ac_status=$? 7673 echo "$as_me:7673: \$? = $ac_status" >&5 7674 (exit $ac_status); }; }; then 7675 ac_cv_lib_elf_elf_begin=yes 7676else 7677 echo "$as_me: failed program was:" >&5 7678cat conftest.$ac_ext >&5 7679ac_cv_lib_elf_elf_begin=no 7680fi 7681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7682LIBS=$ac_check_lib_save_LIBS 7683fi 7684echo "$as_me:7684: result: $ac_cv_lib_elf_elf_begin" >&5 7685echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 7686if test $ac_cv_lib_elf_elf_begin = yes; then 7687 7688echo "$as_me:7688: checking if this is an SVR4 system" >&5 7689echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 7690if test "${cf_cv_svr4+set}" = set; then 7691 echo $ECHO_N "(cached) $ECHO_C" >&6 7692else 7693 7694cat >conftest.$ac_ext <<_ACEOF 7695#line 7695 "configure" 7696#include "confdefs.h" 7697 7698#if defined(__CYGWIN__) 7699make an error 7700#endif 7701#include <elf.h> 7702#include <sys/termio.h> 7703 7704int 7705main () 7706{ 7707 7708static struct termio d_tio; 7709 d_tio.c_cc[VINTR] = 0; 7710 d_tio.c_cc[VQUIT] = 0; 7711 d_tio.c_cc[VERASE] = 0; 7712 d_tio.c_cc[VKILL] = 0; 7713 d_tio.c_cc[VEOF] = 0; 7714 d_tio.c_cc[VEOL] = 0; 7715 d_tio.c_cc[VMIN] = 0; 7716 d_tio.c_cc[VTIME] = 0; 7717 d_tio.c_cc[VLNEXT] = 0; 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723rm -f conftest.$ac_objext 7724if { (eval echo "$as_me:7724: \"$ac_compile\"") >&5 7725 (eval $ac_compile) 2>&5 7726 ac_status=$? 7727 echo "$as_me:7727: \$? = $ac_status" >&5 7728 (exit $ac_status); } && 7729 { ac_try='test -s conftest.$ac_objext' 7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5 7731 (eval $ac_try) 2>&5 7732 ac_status=$? 7733 echo "$as_me:7733: \$? = $ac_status" >&5 7734 (exit $ac_status); }; }; then 7735 cf_cv_svr4=yes 7736else 7737 echo "$as_me: failed program was:" >&5 7738cat conftest.$ac_ext >&5 7739cf_cv_svr4=no 7740fi 7741rm -f conftest.$ac_objext conftest.$ac_ext 7742 7743fi 7744echo "$as_me:7744: result: $cf_cv_svr4" >&5 7745echo "${ECHO_T}$cf_cv_svr4" >&6 7746 7747fi 7748 7749test "$cf_cv_svr4" = yes && 7750cat >>confdefs.h <<\EOF 7751#define SVR4 1 7752EOF 7753 7754echo "$as_me:7754: checking for X" >&5 7755echo $ECHO_N "checking for X... $ECHO_C" >&6 7756 7757# Check whether --with-x or --without-x was given. 7758if test "${with_x+set}" = set; then 7759 withval="$with_x" 7760 7761fi; 7762# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7763if test "x$with_x" = xno; then 7764 # The user explicitly disabled X. 7765 have_x=disabled 7766else 7767 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 7768 # Both variables are already set. 7769 have_x=yes 7770 else 7771 if test "${ac_cv_have_x+set}" = set; then 7772 echo $ECHO_N "(cached) $ECHO_C" >&6 7773else 7774 # One or both of the vars are not set, and there is no cached value. 7775ac_x_includes=no ac_x_libraries=no 7776rm -fr conftest.dir 7777if mkdir conftest.dir; then 7778 cd conftest.dir 7779 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 7780 cat >Imakefile <<'EOF' 7781acfindx: 7782 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 7783EOF 7784 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 7785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7786 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 7787 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7788 for ac_extension in a so sl dylib dll; do 7789 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 7790 test -f $ac_im_libdir/libX11.$ac_extension; then 7791 ac_im_usrlibdir=$ac_im_libdir; break 7792 fi 7793 done 7794 # Screen out bogus values from the imake configuration. They are 7795 # bogus both because they are the default anyway, and because 7796 # using them would break gcc on systems where it needs fixed includes. 7797 case $ac_im_incroot in 7798 /usr/include) ;; 7799 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7800 esac 7801 case $ac_im_usrlibdir in 7802 /usr/lib | /lib) ;; 7803 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7804 esac 7805 fi 7806 cd .. 7807 rm -fr conftest.dir 7808fi 7809 7810# Standard set of common directories for X headers. 7811# Check X11 before X11Rn because it is often a symlink to the current release. 7812ac_x_header_dirs=' 7813/usr/X11/include 7814/usr/X11R6/include 7815/usr/X11R5/include 7816/usr/X11R4/include 7817 7818/usr/include/X11 7819/usr/include/X11R6 7820/usr/include/X11R5 7821/usr/include/X11R4 7822 7823/usr/local/X11/include 7824/usr/local/X11R6/include 7825/usr/local/X11R5/include 7826/usr/local/X11R4/include 7827 7828/usr/local/include/X11 7829/usr/local/include/X11R6 7830/usr/local/include/X11R5 7831/usr/local/include/X11R4 7832 7833/usr/X386/include 7834/usr/x386/include 7835/usr/XFree86/include/X11 7836 7837/usr/include 7838/usr/local/include 7839/usr/unsupported/include 7840/usr/athena/include 7841/usr/local/x11r5/include 7842/usr/lpp/Xamples/include 7843 7844/usr/openwin/include 7845/usr/openwin/share/include' 7846 7847if test "$ac_x_includes" = no; then 7848 # Guess where to find include files, by looking for Intrinsic.h. 7849 # First, try using that file with no special directory specified. 7850 cat >conftest.$ac_ext <<_ACEOF 7851#line 7851 "configure" 7852#include "confdefs.h" 7853#include <X11/Intrinsic.h> 7854_ACEOF 7855if { (eval echo "$as_me:7855: \"$ac_cpp conftest.$ac_ext\"") >&5 7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7857 ac_status=$? 7858 egrep -v '^ *\+' conftest.er1 >conftest.err 7859 rm -f conftest.er1 7860 cat conftest.err >&5 7861 echo "$as_me:7861: \$? = $ac_status" >&5 7862 (exit $ac_status); } >/dev/null; then 7863 if test -s conftest.err; then 7864 ac_cpp_err=$ac_c_preproc_warn_flag 7865 else 7866 ac_cpp_err= 7867 fi 7868else 7869 ac_cpp_err=yes 7870fi 7871if test -z "$ac_cpp_err"; then 7872 # We can compile using X headers with no special include directory. 7873ac_x_includes= 7874else 7875 echo "$as_me: failed program was:" >&5 7876 cat conftest.$ac_ext >&5 7877 for ac_dir in $ac_x_header_dirs; do 7878 if test -r "$ac_dir/X11/Intrinsic.h"; then 7879 ac_x_includes=$ac_dir 7880 break 7881 fi 7882done 7883fi 7884rm -f conftest.err conftest.$ac_ext 7885fi # $ac_x_includes = no 7886 7887if test "$ac_x_libraries" = no; then 7888 # Check for the libraries. 7889 # See if we find them without any special options. 7890 # Don't add to $LIBS permanently. 7891 ac_save_LIBS=$LIBS 7892 LIBS="-lXt $LIBS" 7893 cat >conftest.$ac_ext <<_ACEOF 7894#line 7894 "configure" 7895#include "confdefs.h" 7896#include <X11/Intrinsic.h> 7897int 7898main () 7899{ 7900XtMalloc (0) 7901 ; 7902 return 0; 7903} 7904_ACEOF 7905rm -f conftest.$ac_objext conftest$ac_exeext 7906if { (eval echo "$as_me:7906: \"$ac_link\"") >&5 7907 (eval $ac_link) 2>&5 7908 ac_status=$? 7909 echo "$as_me:7909: \$? = $ac_status" >&5 7910 (exit $ac_status); } && 7911 { ac_try='test -s conftest$ac_exeext' 7912 { (eval echo "$as_me:7912: \"$ac_try\"") >&5 7913 (eval $ac_try) 2>&5 7914 ac_status=$? 7915 echo "$as_me:7915: \$? = $ac_status" >&5 7916 (exit $ac_status); }; }; then 7917 LIBS=$ac_save_LIBS 7918# We can link X programs with no special library path. 7919ac_x_libraries= 7920else 7921 echo "$as_me: failed program was:" >&5 7922cat conftest.$ac_ext >&5 7923LIBS=$ac_save_LIBS 7924for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7925do 7926 # Don't even attempt the hair of trying to link an X program! 7927 for ac_extension in a so sl dylib dll; do 7928 if test -r $ac_dir/libXt.$ac_extension; then 7929 ac_x_libraries=$ac_dir 7930 break 2 7931 fi 7932 done 7933done 7934fi 7935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7936fi # $ac_x_libraries = no 7937 7938if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 7939 # Didn't find X anywhere. Cache the known absence of X. 7940 ac_cv_have_x="have_x=no" 7941else 7942 # Record where we found X for the cache. 7943 ac_cv_have_x="have_x=yes \ 7944 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 7945fi 7946fi 7947 7948 fi 7949 eval "$ac_cv_have_x" 7950fi # $with_x != no 7951 7952if test "$have_x" != yes; then 7953 echo "$as_me:7953: result: $have_x" >&5 7954echo "${ECHO_T}$have_x" >&6 7955 no_x=yes 7956else 7957 # If each of the values was on the command line, it overrides each guess. 7958 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7959 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7960 # Update the cache value to reflect the command line values. 7961 ac_cv_have_x="have_x=yes \ 7962 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 7963 echo "$as_me:7963: result: libraries $x_libraries, headers $x_includes" >&5 7964echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 7965fi 7966 7967if test "$no_x" = yes; then 7968 # Not all programs may use this symbol, but it does not hurt to define it. 7969 7970cat >>confdefs.h <<\EOF 7971#define X_DISPLAY_MISSING 1 7972EOF 7973 7974 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7975else 7976 if test -n "$x_includes"; then 7977 X_CFLAGS="$X_CFLAGS -I$x_includes" 7978 fi 7979 7980 # It would also be nice to do this for all -L options, not just this one. 7981 if test -n "$x_libraries"; then 7982 X_LIBS="$X_LIBS -L$x_libraries" 7983 # For Solaris; some versions of Sun CC require a space after -R and 7984 # others require no space. Words are not sufficient . . . . 7985 case `(uname -sr) 2>/dev/null` in 7986 "SunOS 5"*) 7987 echo "$as_me:7987: checking whether -R must be followed by a space" >&5 7988echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 7989 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7990 cat >conftest.$ac_ext <<_ACEOF 7991#line 7991 "configure" 7992#include "confdefs.h" 7993 7994int 7995main () 7996{ 7997 7998 ; 7999 return 0; 8000} 8001_ACEOF 8002rm -f conftest.$ac_objext conftest$ac_exeext 8003if { (eval echo "$as_me:8003: \"$ac_link\"") >&5 8004 (eval $ac_link) 2>&5 8005 ac_status=$? 8006 echo "$as_me:8006: \$? = $ac_status" >&5 8007 (exit $ac_status); } && 8008 { ac_try='test -s conftest$ac_exeext' 8009 { (eval echo "$as_me:8009: \"$ac_try\"") >&5 8010 (eval $ac_try) 2>&5 8011 ac_status=$? 8012 echo "$as_me:8012: \$? = $ac_status" >&5 8013 (exit $ac_status); }; }; then 8014 ac_R_nospace=yes 8015else 8016 echo "$as_me: failed program was:" >&5 8017cat conftest.$ac_ext >&5 8018ac_R_nospace=no 8019fi 8020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8021 if test $ac_R_nospace = yes; then 8022 echo "$as_me:8022: result: no" >&5 8023echo "${ECHO_T}no" >&6 8024 X_LIBS="$X_LIBS -R$x_libraries" 8025 else 8026 LIBS="$ac_xsave_LIBS -R $x_libraries" 8027 cat >conftest.$ac_ext <<_ACEOF 8028#line 8028 "configure" 8029#include "confdefs.h" 8030 8031int 8032main () 8033{ 8034 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039rm -f conftest.$ac_objext conftest$ac_exeext 8040if { (eval echo "$as_me:8040: \"$ac_link\"") >&5 8041 (eval $ac_link) 2>&5 8042 ac_status=$? 8043 echo "$as_me:8043: \$? = $ac_status" >&5 8044 (exit $ac_status); } && 8045 { ac_try='test -s conftest$ac_exeext' 8046 { (eval echo "$as_me:8046: \"$ac_try\"") >&5 8047 (eval $ac_try) 2>&5 8048 ac_status=$? 8049 echo "$as_me:8049: \$? = $ac_status" >&5 8050 (exit $ac_status); }; }; then 8051 ac_R_space=yes 8052else 8053 echo "$as_me: failed program was:" >&5 8054cat conftest.$ac_ext >&5 8055ac_R_space=no 8056fi 8057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8058 if test $ac_R_space = yes; then 8059 echo "$as_me:8059: result: yes" >&5 8060echo "${ECHO_T}yes" >&6 8061 X_LIBS="$X_LIBS -R $x_libraries" 8062 else 8063 echo "$as_me:8063: result: neither works" >&5 8064echo "${ECHO_T}neither works" >&6 8065 fi 8066 fi 8067 LIBS=$ac_xsave_LIBS 8068 esac 8069 fi 8070 8071 # Check for system-dependent libraries X programs must link with. 8072 # Do this before checking for the system-independent R6 libraries 8073 # (-lICE), since we may need -lsocket or whatever for X linking. 8074 8075 if test "$ISC" = yes; then 8076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8077 else 8078 # Martyn Johnson says this is needed for Ultrix, if the X 8079 # libraries were built with DECnet support. And Karl Berry says 8080 # the Alpha needs dnet_stub (dnet does not exist). 8081 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8082 cat >conftest.$ac_ext <<_ACEOF 8083#line 8083 "configure" 8084#include "confdefs.h" 8085 8086/* Override any gcc2 internal prototype to avoid an error. */ 8087#ifdef __cplusplus 8088extern "C" 8089#endif 8090/* We use char because int might match the return type of a gcc2 8091 builtin and then its argument prototype would still apply. */ 8092char XOpenDisplay (); 8093int 8094main () 8095{ 8096XOpenDisplay (); 8097 ; 8098 return 0; 8099} 8100_ACEOF 8101rm -f conftest.$ac_objext conftest$ac_exeext 8102if { (eval echo "$as_me:8102: \"$ac_link\"") >&5 8103 (eval $ac_link) 2>&5 8104 ac_status=$? 8105 echo "$as_me:8105: \$? = $ac_status" >&5 8106 (exit $ac_status); } && 8107 { ac_try='test -s conftest$ac_exeext' 8108 { (eval echo "$as_me:8108: \"$ac_try\"") >&5 8109 (eval $ac_try) 2>&5 8110 ac_status=$? 8111 echo "$as_me:8111: \$? = $ac_status" >&5 8112 (exit $ac_status); }; }; then 8113 : 8114else 8115 echo "$as_me: failed program was:" >&5 8116cat conftest.$ac_ext >&5 8117echo "$as_me:8117: checking for dnet_ntoa in -ldnet" >&5 8118echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 8119if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 8120 echo $ECHO_N "(cached) $ECHO_C" >&6 8121else 8122 ac_check_lib_save_LIBS=$LIBS 8123LIBS="-ldnet $LIBS" 8124cat >conftest.$ac_ext <<_ACEOF 8125#line 8125 "configure" 8126#include "confdefs.h" 8127 8128/* Override any gcc2 internal prototype to avoid an error. */ 8129#ifdef __cplusplus 8130extern "C" 8131#endif 8132/* We use char because int might match the return type of a gcc2 8133 builtin and then its argument prototype would still apply. */ 8134char dnet_ntoa (); 8135int 8136main () 8137{ 8138dnet_ntoa (); 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143rm -f conftest.$ac_objext conftest$ac_exeext 8144if { (eval echo "$as_me:8144: \"$ac_link\"") >&5 8145 (eval $ac_link) 2>&5 8146 ac_status=$? 8147 echo "$as_me:8147: \$? = $ac_status" >&5 8148 (exit $ac_status); } && 8149 { ac_try='test -s conftest$ac_exeext' 8150 { (eval echo "$as_me:8150: \"$ac_try\"") >&5 8151 (eval $ac_try) 2>&5 8152 ac_status=$? 8153 echo "$as_me:8153: \$? = $ac_status" >&5 8154 (exit $ac_status); }; }; then 8155 ac_cv_lib_dnet_dnet_ntoa=yes 8156else 8157 echo "$as_me: failed program was:" >&5 8158cat conftest.$ac_ext >&5 8159ac_cv_lib_dnet_dnet_ntoa=no 8160fi 8161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8162LIBS=$ac_check_lib_save_LIBS 8163fi 8164echo "$as_me:8164: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8165echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 8166if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 8167 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8168fi 8169 8170 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8171 echo "$as_me:8171: checking for dnet_ntoa in -ldnet_stub" >&5 8172echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 8173if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 8174 echo $ECHO_N "(cached) $ECHO_C" >&6 8175else 8176 ac_check_lib_save_LIBS=$LIBS 8177LIBS="-ldnet_stub $LIBS" 8178cat >conftest.$ac_ext <<_ACEOF 8179#line 8179 "configure" 8180#include "confdefs.h" 8181 8182/* Override any gcc2 internal prototype to avoid an error. */ 8183#ifdef __cplusplus 8184extern "C" 8185#endif 8186/* We use char because int might match the return type of a gcc2 8187 builtin and then its argument prototype would still apply. */ 8188char dnet_ntoa (); 8189int 8190main () 8191{ 8192dnet_ntoa (); 8193 ; 8194 return 0; 8195} 8196_ACEOF 8197rm -f conftest.$ac_objext conftest$ac_exeext 8198if { (eval echo "$as_me:8198: \"$ac_link\"") >&5 8199 (eval $ac_link) 2>&5 8200 ac_status=$? 8201 echo "$as_me:8201: \$? = $ac_status" >&5 8202 (exit $ac_status); } && 8203 { ac_try='test -s conftest$ac_exeext' 8204 { (eval echo "$as_me:8204: \"$ac_try\"") >&5 8205 (eval $ac_try) 2>&5 8206 ac_status=$? 8207 echo "$as_me:8207: \$? = $ac_status" >&5 8208 (exit $ac_status); }; }; then 8209 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8210else 8211 echo "$as_me: failed program was:" >&5 8212cat conftest.$ac_ext >&5 8213ac_cv_lib_dnet_stub_dnet_ntoa=no 8214fi 8215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8216LIBS=$ac_check_lib_save_LIBS 8217fi 8218echo "$as_me:8218: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8219echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 8220if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 8221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8222fi 8223 8224 fi 8225fi 8226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8227 LIBS="$ac_xsave_LIBS" 8228 8229 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 8230 # to get the SysV transport functions. 8231 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8232 # needs -lnsl. 8233 # The nsl library prevents programs from opening the X display 8234 # on Irix 5.2, according to T.E. Dickey. 8235 # The functions gethostbyname, getservbyname, and inet_addr are 8236 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8237 echo "$as_me:8237: checking for gethostbyname" >&5 8238echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 8239if test "${ac_cv_func_gethostbyname+set}" = set; then 8240 echo $ECHO_N "(cached) $ECHO_C" >&6 8241else 8242 cat >conftest.$ac_ext <<_ACEOF 8243#line 8243 "configure" 8244#include "confdefs.h" 8245/* System header to define __stub macros and hopefully few prototypes, 8246 which can conflict with char gethostbyname (); below. */ 8247#include <assert.h> 8248/* Override any gcc2 internal prototype to avoid an error. */ 8249#ifdef __cplusplus 8250extern "C" 8251#endif 8252/* We use char because int might match the return type of a gcc2 8253 builtin and then its argument prototype would still apply. */ 8254char gethostbyname (); 8255char (*f) (); 8256 8257int 8258main () 8259{ 8260/* The GNU C library defines this for functions which it implements 8261 to always fail with ENOSYS. Some functions are actually named 8262 something starting with __ and the normal name is an alias. */ 8263#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 8264choke me 8265#else 8266f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8267#endif 8268 8269 ; 8270 return 0; 8271} 8272_ACEOF 8273rm -f conftest.$ac_objext conftest$ac_exeext 8274if { (eval echo "$as_me:8274: \"$ac_link\"") >&5 8275 (eval $ac_link) 2>&5 8276 ac_status=$? 8277 echo "$as_me:8277: \$? = $ac_status" >&5 8278 (exit $ac_status); } && 8279 { ac_try='test -s conftest$ac_exeext' 8280 { (eval echo "$as_me:8280: \"$ac_try\"") >&5 8281 (eval $ac_try) 2>&5 8282 ac_status=$? 8283 echo "$as_me:8283: \$? = $ac_status" >&5 8284 (exit $ac_status); }; }; then 8285 ac_cv_func_gethostbyname=yes 8286else 8287 echo "$as_me: failed program was:" >&5 8288cat conftest.$ac_ext >&5 8289ac_cv_func_gethostbyname=no 8290fi 8291rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8292fi 8293echo "$as_me:8293: result: $ac_cv_func_gethostbyname" >&5 8294echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 8295 8296 if test $ac_cv_func_gethostbyname = no; then 8297 echo "$as_me:8297: checking for gethostbyname in -lnsl" >&5 8298echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 8299if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 8300 echo $ECHO_N "(cached) $ECHO_C" >&6 8301else 8302 ac_check_lib_save_LIBS=$LIBS 8303LIBS="-lnsl $LIBS" 8304cat >conftest.$ac_ext <<_ACEOF 8305#line 8305 "configure" 8306#include "confdefs.h" 8307 8308/* Override any gcc2 internal prototype to avoid an error. */ 8309#ifdef __cplusplus 8310extern "C" 8311#endif 8312/* We use char because int might match the return type of a gcc2 8313 builtin and then its argument prototype would still apply. */ 8314char gethostbyname (); 8315int 8316main () 8317{ 8318gethostbyname (); 8319 ; 8320 return 0; 8321} 8322_ACEOF 8323rm -f conftest.$ac_objext conftest$ac_exeext 8324if { (eval echo "$as_me:8324: \"$ac_link\"") >&5 8325 (eval $ac_link) 2>&5 8326 ac_status=$? 8327 echo "$as_me:8327: \$? = $ac_status" >&5 8328 (exit $ac_status); } && 8329 { ac_try='test -s conftest$ac_exeext' 8330 { (eval echo "$as_me:8330: \"$ac_try\"") >&5 8331 (eval $ac_try) 2>&5 8332 ac_status=$? 8333 echo "$as_me:8333: \$? = $ac_status" >&5 8334 (exit $ac_status); }; }; then 8335 ac_cv_lib_nsl_gethostbyname=yes 8336else 8337 echo "$as_me: failed program was:" >&5 8338cat conftest.$ac_ext >&5 8339ac_cv_lib_nsl_gethostbyname=no 8340fi 8341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8342LIBS=$ac_check_lib_save_LIBS 8343fi 8344echo "$as_me:8344: result: $ac_cv_lib_nsl_gethostbyname" >&5 8345echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 8346if test $ac_cv_lib_nsl_gethostbyname = yes; then 8347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8348fi 8349 8350 if test $ac_cv_lib_nsl_gethostbyname = no; then 8351 echo "$as_me:8351: checking for gethostbyname in -lbsd" >&5 8352echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 8353if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 8354 echo $ECHO_N "(cached) $ECHO_C" >&6 8355else 8356 ac_check_lib_save_LIBS=$LIBS 8357LIBS="-lbsd $LIBS" 8358cat >conftest.$ac_ext <<_ACEOF 8359#line 8359 "configure" 8360#include "confdefs.h" 8361 8362/* Override any gcc2 internal prototype to avoid an error. */ 8363#ifdef __cplusplus 8364extern "C" 8365#endif 8366/* We use char because int might match the return type of a gcc2 8367 builtin and then its argument prototype would still apply. */ 8368char gethostbyname (); 8369int 8370main () 8371{ 8372gethostbyname (); 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377rm -f conftest.$ac_objext conftest$ac_exeext 8378if { (eval echo "$as_me:8378: \"$ac_link\"") >&5 8379 (eval $ac_link) 2>&5 8380 ac_status=$? 8381 echo "$as_me:8381: \$? = $ac_status" >&5 8382 (exit $ac_status); } && 8383 { ac_try='test -s conftest$ac_exeext' 8384 { (eval echo "$as_me:8384: \"$ac_try\"") >&5 8385 (eval $ac_try) 2>&5 8386 ac_status=$? 8387 echo "$as_me:8387: \$? = $ac_status" >&5 8388 (exit $ac_status); }; }; then 8389 ac_cv_lib_bsd_gethostbyname=yes 8390else 8391 echo "$as_me: failed program was:" >&5 8392cat conftest.$ac_ext >&5 8393ac_cv_lib_bsd_gethostbyname=no 8394fi 8395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8396LIBS=$ac_check_lib_save_LIBS 8397fi 8398echo "$as_me:8398: result: $ac_cv_lib_bsd_gethostbyname" >&5 8399echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 8400if test $ac_cv_lib_bsd_gethostbyname = yes; then 8401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8402fi 8403 8404 fi 8405 fi 8406 8407 # lieder@skyler.mavd.honeywell.com says without -lsocket, 8408 # socket/setsockopt and other routines are undefined under SCO ODT 8409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8410 # on later versions), says Simon Leinen: it contains gethostby* 8411 # variants that don't use the nameserver (or something). -lsocket 8412 # must be given before -lnsl if both are needed. We assume that 8413 # if connect needs -lnsl, so does gethostbyname. 8414 echo "$as_me:8414: checking for connect" >&5 8415echo $ECHO_N "checking for connect... $ECHO_C" >&6 8416if test "${ac_cv_func_connect+set}" = set; then 8417 echo $ECHO_N "(cached) $ECHO_C" >&6 8418else 8419 cat >conftest.$ac_ext <<_ACEOF 8420#line 8420 "configure" 8421#include "confdefs.h" 8422/* System header to define __stub macros and hopefully few prototypes, 8423 which can conflict with char connect (); below. */ 8424#include <assert.h> 8425/* Override any gcc2 internal prototype to avoid an error. */ 8426#ifdef __cplusplus 8427extern "C" 8428#endif 8429/* We use char because int might match the return type of a gcc2 8430 builtin and then its argument prototype would still apply. */ 8431char connect (); 8432char (*f) (); 8433 8434int 8435main () 8436{ 8437/* The GNU C library defines this for functions which it implements 8438 to always fail with ENOSYS. Some functions are actually named 8439 something starting with __ and the normal name is an alias. */ 8440#if defined (__stub_connect) || defined (__stub___connect) 8441choke me 8442#else 8443f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8444#endif 8445 8446 ; 8447 return 0; 8448} 8449_ACEOF 8450rm -f conftest.$ac_objext conftest$ac_exeext 8451if { (eval echo "$as_me:8451: \"$ac_link\"") >&5 8452 (eval $ac_link) 2>&5 8453 ac_status=$? 8454 echo "$as_me:8454: \$? = $ac_status" >&5 8455 (exit $ac_status); } && 8456 { ac_try='test -s conftest$ac_exeext' 8457 { (eval echo "$as_me:8457: \"$ac_try\"") >&5 8458 (eval $ac_try) 2>&5 8459 ac_status=$? 8460 echo "$as_me:8460: \$? = $ac_status" >&5 8461 (exit $ac_status); }; }; then 8462 ac_cv_func_connect=yes 8463else 8464 echo "$as_me: failed program was:" >&5 8465cat conftest.$ac_ext >&5 8466ac_cv_func_connect=no 8467fi 8468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8469fi 8470echo "$as_me:8470: result: $ac_cv_func_connect" >&5 8471echo "${ECHO_T}$ac_cv_func_connect" >&6 8472 8473 if test $ac_cv_func_connect = no; then 8474 echo "$as_me:8474: checking for connect in -lsocket" >&5 8475echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 8476if test "${ac_cv_lib_socket_connect+set}" = set; then 8477 echo $ECHO_N "(cached) $ECHO_C" >&6 8478else 8479 ac_check_lib_save_LIBS=$LIBS 8480LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8481cat >conftest.$ac_ext <<_ACEOF 8482#line 8482 "configure" 8483#include "confdefs.h" 8484 8485/* Override any gcc2 internal prototype to avoid an error. */ 8486#ifdef __cplusplus 8487extern "C" 8488#endif 8489/* We use char because int might match the return type of a gcc2 8490 builtin and then its argument prototype would still apply. */ 8491char connect (); 8492int 8493main () 8494{ 8495connect (); 8496 ; 8497 return 0; 8498} 8499_ACEOF 8500rm -f conftest.$ac_objext conftest$ac_exeext 8501if { (eval echo "$as_me:8501: \"$ac_link\"") >&5 8502 (eval $ac_link) 2>&5 8503 ac_status=$? 8504 echo "$as_me:8504: \$? = $ac_status" >&5 8505 (exit $ac_status); } && 8506 { ac_try='test -s conftest$ac_exeext' 8507 { (eval echo "$as_me:8507: \"$ac_try\"") >&5 8508 (eval $ac_try) 2>&5 8509 ac_status=$? 8510 echo "$as_me:8510: \$? = $ac_status" >&5 8511 (exit $ac_status); }; }; then 8512 ac_cv_lib_socket_connect=yes 8513else 8514 echo "$as_me: failed program was:" >&5 8515cat conftest.$ac_ext >&5 8516ac_cv_lib_socket_connect=no 8517fi 8518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8519LIBS=$ac_check_lib_save_LIBS 8520fi 8521echo "$as_me:8521: result: $ac_cv_lib_socket_connect" >&5 8522echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 8523if test $ac_cv_lib_socket_connect = yes; then 8524 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8525fi 8526 8527 fi 8528 8529 # Guillermo Gomez says -lposix is necessary on A/UX. 8530 echo "$as_me:8530: checking for remove" >&5 8531echo $ECHO_N "checking for remove... $ECHO_C" >&6 8532if test "${ac_cv_func_remove+set}" = set; then 8533 echo $ECHO_N "(cached) $ECHO_C" >&6 8534else 8535 cat >conftest.$ac_ext <<_ACEOF 8536#line 8536 "configure" 8537#include "confdefs.h" 8538/* System header to define __stub macros and hopefully few prototypes, 8539 which can conflict with char remove (); below. */ 8540#include <assert.h> 8541/* Override any gcc2 internal prototype to avoid an error. */ 8542#ifdef __cplusplus 8543extern "C" 8544#endif 8545/* We use char because int might match the return type of a gcc2 8546 builtin and then its argument prototype would still apply. */ 8547char remove (); 8548char (*f) (); 8549 8550int 8551main () 8552{ 8553/* The GNU C library defines this for functions which it implements 8554 to always fail with ENOSYS. Some functions are actually named 8555 something starting with __ and the normal name is an alias. */ 8556#if defined (__stub_remove) || defined (__stub___remove) 8557choke me 8558#else 8559f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8560#endif 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566rm -f conftest.$ac_objext conftest$ac_exeext 8567if { (eval echo "$as_me:8567: \"$ac_link\"") >&5 8568 (eval $ac_link) 2>&5 8569 ac_status=$? 8570 echo "$as_me:8570: \$? = $ac_status" >&5 8571 (exit $ac_status); } && 8572 { ac_try='test -s conftest$ac_exeext' 8573 { (eval echo "$as_me:8573: \"$ac_try\"") >&5 8574 (eval $ac_try) 2>&5 8575 ac_status=$? 8576 echo "$as_me:8576: \$? = $ac_status" >&5 8577 (exit $ac_status); }; }; then 8578 ac_cv_func_remove=yes 8579else 8580 echo "$as_me: failed program was:" >&5 8581cat conftest.$ac_ext >&5 8582ac_cv_func_remove=no 8583fi 8584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8585fi 8586echo "$as_me:8586: result: $ac_cv_func_remove" >&5 8587echo "${ECHO_T}$ac_cv_func_remove" >&6 8588 8589 if test $ac_cv_func_remove = no; then 8590 echo "$as_me:8590: checking for remove in -lposix" >&5 8591echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 8592if test "${ac_cv_lib_posix_remove+set}" = set; then 8593 echo $ECHO_N "(cached) $ECHO_C" >&6 8594else 8595 ac_check_lib_save_LIBS=$LIBS 8596LIBS="-lposix $LIBS" 8597cat >conftest.$ac_ext <<_ACEOF 8598#line 8598 "configure" 8599#include "confdefs.h" 8600 8601/* Override any gcc2 internal prototype to avoid an error. */ 8602#ifdef __cplusplus 8603extern "C" 8604#endif 8605/* We use char because int might match the return type of a gcc2 8606 builtin and then its argument prototype would still apply. */ 8607char remove (); 8608int 8609main () 8610{ 8611remove (); 8612 ; 8613 return 0; 8614} 8615_ACEOF 8616rm -f conftest.$ac_objext conftest$ac_exeext 8617if { (eval echo "$as_me:8617: \"$ac_link\"") >&5 8618 (eval $ac_link) 2>&5 8619 ac_status=$? 8620 echo "$as_me:8620: \$? = $ac_status" >&5 8621 (exit $ac_status); } && 8622 { ac_try='test -s conftest$ac_exeext' 8623 { (eval echo "$as_me:8623: \"$ac_try\"") >&5 8624 (eval $ac_try) 2>&5 8625 ac_status=$? 8626 echo "$as_me:8626: \$? = $ac_status" >&5 8627 (exit $ac_status); }; }; then 8628 ac_cv_lib_posix_remove=yes 8629else 8630 echo "$as_me: failed program was:" >&5 8631cat conftest.$ac_ext >&5 8632ac_cv_lib_posix_remove=no 8633fi 8634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8635LIBS=$ac_check_lib_save_LIBS 8636fi 8637echo "$as_me:8637: result: $ac_cv_lib_posix_remove" >&5 8638echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 8639if test $ac_cv_lib_posix_remove = yes; then 8640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8641fi 8642 8643 fi 8644 8645 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8646 echo "$as_me:8646: checking for shmat" >&5 8647echo $ECHO_N "checking for shmat... $ECHO_C" >&6 8648if test "${ac_cv_func_shmat+set}" = set; then 8649 echo $ECHO_N "(cached) $ECHO_C" >&6 8650else 8651 cat >conftest.$ac_ext <<_ACEOF 8652#line 8652 "configure" 8653#include "confdefs.h" 8654/* System header to define __stub macros and hopefully few prototypes, 8655 which can conflict with char shmat (); below. */ 8656#include <assert.h> 8657/* Override any gcc2 internal prototype to avoid an error. */ 8658#ifdef __cplusplus 8659extern "C" 8660#endif 8661/* We use char because int might match the return type of a gcc2 8662 builtin and then its argument prototype would still apply. */ 8663char shmat (); 8664char (*f) (); 8665 8666int 8667main () 8668{ 8669/* The GNU C library defines this for functions which it implements 8670 to always fail with ENOSYS. Some functions are actually named 8671 something starting with __ and the normal name is an alias. */ 8672#if defined (__stub_shmat) || defined (__stub___shmat) 8673choke me 8674#else 8675f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8676#endif 8677 8678 ; 8679 return 0; 8680} 8681_ACEOF 8682rm -f conftest.$ac_objext conftest$ac_exeext 8683if { (eval echo "$as_me:8683: \"$ac_link\"") >&5 8684 (eval $ac_link) 2>&5 8685 ac_status=$? 8686 echo "$as_me:8686: \$? = $ac_status" >&5 8687 (exit $ac_status); } && 8688 { ac_try='test -s conftest$ac_exeext' 8689 { (eval echo "$as_me:8689: \"$ac_try\"") >&5 8690 (eval $ac_try) 2>&5 8691 ac_status=$? 8692 echo "$as_me:8692: \$? = $ac_status" >&5 8693 (exit $ac_status); }; }; then 8694 ac_cv_func_shmat=yes 8695else 8696 echo "$as_me: failed program was:" >&5 8697cat conftest.$ac_ext >&5 8698ac_cv_func_shmat=no 8699fi 8700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8701fi 8702echo "$as_me:8702: result: $ac_cv_func_shmat" >&5 8703echo "${ECHO_T}$ac_cv_func_shmat" >&6 8704 8705 if test $ac_cv_func_shmat = no; then 8706 echo "$as_me:8706: checking for shmat in -lipc" >&5 8707echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 8708if test "${ac_cv_lib_ipc_shmat+set}" = set; then 8709 echo $ECHO_N "(cached) $ECHO_C" >&6 8710else 8711 ac_check_lib_save_LIBS=$LIBS 8712LIBS="-lipc $LIBS" 8713cat >conftest.$ac_ext <<_ACEOF 8714#line 8714 "configure" 8715#include "confdefs.h" 8716 8717/* Override any gcc2 internal prototype to avoid an error. */ 8718#ifdef __cplusplus 8719extern "C" 8720#endif 8721/* We use char because int might match the return type of a gcc2 8722 builtin and then its argument prototype would still apply. */ 8723char shmat (); 8724int 8725main () 8726{ 8727shmat (); 8728 ; 8729 return 0; 8730} 8731_ACEOF 8732rm -f conftest.$ac_objext conftest$ac_exeext 8733if { (eval echo "$as_me:8733: \"$ac_link\"") >&5 8734 (eval $ac_link) 2>&5 8735 ac_status=$? 8736 echo "$as_me:8736: \$? = $ac_status" >&5 8737 (exit $ac_status); } && 8738 { ac_try='test -s conftest$ac_exeext' 8739 { (eval echo "$as_me:8739: \"$ac_try\"") >&5 8740 (eval $ac_try) 2>&5 8741 ac_status=$? 8742 echo "$as_me:8742: \$? = $ac_status" >&5 8743 (exit $ac_status); }; }; then 8744 ac_cv_lib_ipc_shmat=yes 8745else 8746 echo "$as_me: failed program was:" >&5 8747cat conftest.$ac_ext >&5 8748ac_cv_lib_ipc_shmat=no 8749fi 8750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8751LIBS=$ac_check_lib_save_LIBS 8752fi 8753echo "$as_me:8753: result: $ac_cv_lib_ipc_shmat" >&5 8754echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 8755if test $ac_cv_lib_ipc_shmat = yes; then 8756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8757fi 8758 8759 fi 8760 fi 8761 8762 # Check for libraries that X11R6 Xt/Xaw programs need. 8763 ac_save_LDFLAGS=$LDFLAGS 8764 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8765 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8766 # check for ICE first), but we must link in the order -lSM -lICE or 8767 # we get undefined symbols. So assume we have SM if we have ICE. 8768 # These have to be linked with before -lX11, unlike the other 8769 # libraries we check for below, so use a different variable. 8770 # John Interrante, Karl Berry 8771 echo "$as_me:8771: checking for IceConnectionNumber in -lICE" >&5 8772echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 8773if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 8774 echo $ECHO_N "(cached) $ECHO_C" >&6 8775else 8776 ac_check_lib_save_LIBS=$LIBS 8777LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8778cat >conftest.$ac_ext <<_ACEOF 8779#line 8779 "configure" 8780#include "confdefs.h" 8781 8782/* Override any gcc2 internal prototype to avoid an error. */ 8783#ifdef __cplusplus 8784extern "C" 8785#endif 8786/* We use char because int might match the return type of a gcc2 8787 builtin and then its argument prototype would still apply. */ 8788char IceConnectionNumber (); 8789int 8790main () 8791{ 8792IceConnectionNumber (); 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797rm -f conftest.$ac_objext conftest$ac_exeext 8798if { (eval echo "$as_me:8798: \"$ac_link\"") >&5 8799 (eval $ac_link) 2>&5 8800 ac_status=$? 8801 echo "$as_me:8801: \$? = $ac_status" >&5 8802 (exit $ac_status); } && 8803 { ac_try='test -s conftest$ac_exeext' 8804 { (eval echo "$as_me:8804: \"$ac_try\"") >&5 8805 (eval $ac_try) 2>&5 8806 ac_status=$? 8807 echo "$as_me:8807: \$? = $ac_status" >&5 8808 (exit $ac_status); }; }; then 8809 ac_cv_lib_ICE_IceConnectionNumber=yes 8810else 8811 echo "$as_me: failed program was:" >&5 8812cat conftest.$ac_ext >&5 8813ac_cv_lib_ICE_IceConnectionNumber=no 8814fi 8815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8816LIBS=$ac_check_lib_save_LIBS 8817fi 8818echo "$as_me:8818: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8819echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 8820if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 8821 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8822fi 8823 8824 LDFLAGS=$ac_save_LDFLAGS 8825 8826fi 8827 8828echo "$as_me:8828: checking if you want to use pkg-config" >&5 8829echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 8830 8831# Check whether --with-pkg-config or --without-pkg-config was given. 8832if test "${with_pkg_config+set}" = set; then 8833 withval="$with_pkg_config" 8834 cf_pkg_config=$withval 8835else 8836 cf_pkg_config=yes 8837fi; 8838echo "$as_me:8838: result: $cf_pkg_config" >&5 8839echo "${ECHO_T}$cf_pkg_config" >&6 8840 8841case $cf_pkg_config in #(vi 8842no) #(vi 8843 PKG_CONFIG=none 8844 ;; 8845yes) #(vi 8846 8847if test -n "$ac_tool_prefix"; then 8848 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8849set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8850echo "$as_me:8850: checking for $ac_word" >&5 8851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8852if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8853 echo $ECHO_N "(cached) $ECHO_C" >&6 8854else 8855 case $PKG_CONFIG in 8856 [\\/]* | ?:[\\/]*) 8857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8858 ;; 8859 *) 8860 ac_save_IFS=$IFS; IFS=$ac_path_separator 8861ac_dummy="$PATH" 8862for ac_dir in $ac_dummy; do 8863 IFS=$ac_save_IFS 8864 test -z "$ac_dir" && ac_dir=. 8865 if $as_executable_p "$ac_dir/$ac_word"; then 8866 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 8867 echo "$as_me:8867: found $ac_dir/$ac_word" >&5 8868 break 8869fi 8870done 8871 8872 ;; 8873esac 8874fi 8875PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8876 8877if test -n "$PKG_CONFIG"; then 8878 echo "$as_me:8878: result: $PKG_CONFIG" >&5 8879echo "${ECHO_T}$PKG_CONFIG" >&6 8880else 8881 echo "$as_me:8881: result: no" >&5 8882echo "${ECHO_T}no" >&6 8883fi 8884 8885fi 8886if test -z "$ac_cv_path_PKG_CONFIG"; then 8887 ac_pt_PKG_CONFIG=$PKG_CONFIG 8888 # Extract the first word of "pkg-config", so it can be a program name with args. 8889set dummy pkg-config; ac_word=$2 8890echo "$as_me:8890: checking for $ac_word" >&5 8891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8892if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 8893 echo $ECHO_N "(cached) $ECHO_C" >&6 8894else 8895 case $ac_pt_PKG_CONFIG in 8896 [\\/]* | ?:[\\/]*) 8897 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8898 ;; 8899 *) 8900 ac_save_IFS=$IFS; IFS=$ac_path_separator 8901ac_dummy="$PATH" 8902for ac_dir in $ac_dummy; do 8903 IFS=$ac_save_IFS 8904 test -z "$ac_dir" && ac_dir=. 8905 if $as_executable_p "$ac_dir/$ac_word"; then 8906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 8907 echo "$as_me:8907: found $ac_dir/$ac_word" >&5 8908 break 8909fi 8910done 8911 8912 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 8913 ;; 8914esac 8915fi 8916ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8917 8918if test -n "$ac_pt_PKG_CONFIG"; then 8919 echo "$as_me:8919: result: $ac_pt_PKG_CONFIG" >&5 8920echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 8921else 8922 echo "$as_me:8922: result: no" >&5 8923echo "${ECHO_T}no" >&6 8924fi 8925 8926 PKG_CONFIG=$ac_pt_PKG_CONFIG 8927else 8928 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8929fi 8930 8931 ;; 8932*) 8933 PKG_CONFIG=$withval 8934 ;; 8935esac 8936 8937test -z "$PKG_CONFIG" && PKG_CONFIG=none 8938if test "$PKG_CONFIG" != none ; then 8939 8940if test "x$prefix" != xNONE; then 8941 cf_path_syntax="$prefix" 8942else 8943 cf_path_syntax="$ac_default_prefix" 8944fi 8945 8946case ".$PKG_CONFIG" in #(vi 8947.\$\(*\)*|.\'*\'*) #(vi 8948 ;; 8949..|./*|.\\*) #(vi 8950 ;; 8951.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8952 ;; 8953.\${*prefix}*|.\${*dir}*) #(vi 8954 eval PKG_CONFIG="$PKG_CONFIG" 8955 case ".$PKG_CONFIG" in #(vi 8956 .NONE/*) 8957 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 8958 ;; 8959 esac 8960 ;; #(vi 8961.no|.NONE/*) 8962 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 8963 ;; 8964*) 8965 { { echo "$as_me:8965: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 8966echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 8967 { (exit 1); exit 1; }; } 8968 ;; 8969esac 8970 8971fi 8972 8973cf_have_X_LIBS=no 8974 8975if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 8976 test -n "$verbose" && echo " found package xt" 1>&6 8977 8978echo "${as_me:-configure}:8978: testing found package xt ..." 1>&5 8979 8980 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 8981 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 8982 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 8983 8984echo "${as_me:-configure}:8984: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 8985 8986 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 8987 8988echo "${as_me:-configure}:8988: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 8989 8990cf_fix_cppflags=no 8991cf_new_cflags= 8992cf_new_cppflags= 8993cf_new_extra_cppflags= 8994 8995for cf_add_cflags in $cf_pkgconfig_incs 8996do 8997case $cf_fix_cppflags in 8998no) 8999 case $cf_add_cflags in #(vi 9000 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9001 case $cf_add_cflags in 9002 -D*) 9003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9004 9005 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9006 && test -z "${cf_tst_cflags}" \ 9007 && cf_fix_cppflags=yes 9008 9009 if test $cf_fix_cppflags = yes ; then 9010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9011 continue 9012 elif test "${cf_tst_cflags}" = "\"'" ; then 9013 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9014 continue 9015 fi 9016 ;; 9017 esac 9018 case "$CPPFLAGS" in 9019 *$cf_add_cflags) #(vi 9020 ;; 9021 *) #(vi 9022 case $cf_add_cflags in #(vi 9023 -D*) 9024 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9025 9026CPPFLAGS=`echo "$CPPFLAGS" | \ 9027 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9028 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9029 9030 ;; 9031 esac 9032 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9033 ;; 9034 esac 9035 ;; 9036 *) 9037 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9038 ;; 9039 esac 9040 ;; 9041yes) 9042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9043 9044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9045 9046 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9047 && test -z "${cf_tst_cflags}" \ 9048 && cf_fix_cppflags=no 9049 ;; 9050esac 9051done 9052 9053if test -n "$cf_new_cflags" ; then 9054 9055 CFLAGS="$CFLAGS $cf_new_cflags" 9056fi 9057 9058if test -n "$cf_new_cppflags" ; then 9059 9060 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9061fi 9062 9063if test -n "$cf_new_extra_cppflags" ; then 9064 9065 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9066fi 9067 9068 LIBS="$cf_pkgconfig_libs $LIBS" 9069 9070 case "x$LIBS" in #(vi 9071 *-lX11*) #(vi 9072 ;; 9073 *) 9074# we have an "xt" package, but it may omit Xt's dependency on X11 9075echo "$as_me:9075: checking for usable X dependency" >&5 9076echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 9077if test "${cf_cv_xt_x11_compat+set}" = set; then 9078 echo $ECHO_N "(cached) $ECHO_C" >&6 9079else 9080 9081cat >conftest.$ac_ext <<_ACEOF 9082#line 9082 "configure" 9083#include "confdefs.h" 9084 9085#include <X11/Xlib.h> 9086 9087int 9088main () 9089{ 9090 9091 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 9092 int rc2 = XClearWindow((Display*) 0, (Window) 0); 9093 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 9094 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 9095 9096 ; 9097 return 0; 9098} 9099_ACEOF 9100rm -f conftest.$ac_objext conftest$ac_exeext 9101if { (eval echo "$as_me:9101: \"$ac_link\"") >&5 9102 (eval $ac_link) 2>&5 9103 ac_status=$? 9104 echo "$as_me:9104: \$? = $ac_status" >&5 9105 (exit $ac_status); } && 9106 { ac_try='test -s conftest$ac_exeext' 9107 { (eval echo "$as_me:9107: \"$ac_try\"") >&5 9108 (eval $ac_try) 2>&5 9109 ac_status=$? 9110 echo "$as_me:9110: \$? = $ac_status" >&5 9111 (exit $ac_status); }; }; then 9112 cf_cv_xt_x11_compat=yes 9113else 9114 echo "$as_me: failed program was:" >&5 9115cat conftest.$ac_ext >&5 9116cf_cv_xt_x11_compat=no 9117fi 9118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9119fi 9120echo "$as_me:9120: result: $cf_cv_xt_x11_compat" >&5 9121echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 9122 if test "$cf_cv_xt_x11_compat" = no 9123 then 9124 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 9125 9126echo "${as_me:-configure}:9126: testing work around broken X11 dependency ..." 1>&5 9127 9128 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 9129 9130if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 9131 test -n "$verbose" && echo " found package x11" 1>&6 9132 9133echo "${as_me:-configure}:9133: testing found package x11 ..." 1>&5 9134 9135 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 9136 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 9137 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 9138 9139echo "${as_me:-configure}:9139: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9140 9141 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 9142 9143echo "${as_me:-configure}:9143: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 9144 9145cf_fix_cppflags=no 9146cf_new_cflags= 9147cf_new_cppflags= 9148cf_new_extra_cppflags= 9149 9150for cf_add_cflags in $cf_pkgconfig_incs 9151do 9152case $cf_fix_cppflags in 9153no) 9154 case $cf_add_cflags in #(vi 9155 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9156 case $cf_add_cflags in 9157 -D*) 9158 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9159 9160 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9161 && test -z "${cf_tst_cflags}" \ 9162 && cf_fix_cppflags=yes 9163 9164 if test $cf_fix_cppflags = yes ; then 9165 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9166 continue 9167 elif test "${cf_tst_cflags}" = "\"'" ; then 9168 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9169 continue 9170 fi 9171 ;; 9172 esac 9173 case "$CPPFLAGS" in 9174 *$cf_add_cflags) #(vi 9175 ;; 9176 *) #(vi 9177 case $cf_add_cflags in #(vi 9178 -D*) 9179 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9180 9181CPPFLAGS=`echo "$CPPFLAGS" | \ 9182 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9183 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9184 9185 ;; 9186 esac 9187 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9188 ;; 9189 esac 9190 ;; 9191 *) 9192 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9193 ;; 9194 esac 9195 ;; 9196yes) 9197 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9198 9199 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9200 9201 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9202 && test -z "${cf_tst_cflags}" \ 9203 && cf_fix_cppflags=no 9204 ;; 9205esac 9206done 9207 9208if test -n "$cf_new_cflags" ; then 9209 9210 CFLAGS="$CFLAGS $cf_new_cflags" 9211fi 9212 9213if test -n "$cf_new_cppflags" ; then 9214 9215 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9216fi 9217 9218if test -n "$cf_new_extra_cppflags" ; then 9219 9220 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9221fi 9222 9223 LIBS="$cf_pkgconfig_libs $LIBS" 9224 : 9225else 9226 cf_pkgconfig_incs= 9227 cf_pkgconfig_libs= 9228 9229test -n "$verbose" && echo " ...before $LIBS" 1>&6 9230 9231echo "${as_me:-configure}:9231: testing ...before $LIBS ..." 1>&5 9232 9233LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 9234test -n "$verbose" && echo " ...after $LIBS" 1>&6 9235 9236echo "${as_me:-configure}:9236: testing ...after $LIBS ..." 1>&5 9237 9238fi 9239 9240 fi 9241 ;; 9242 esac 9243 9244echo "$as_me:9244: checking for usable X Toolkit package" >&5 9245echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 9246if test "${cf_cv_xt_ice_compat+set}" = set; then 9247 echo $ECHO_N "(cached) $ECHO_C" >&6 9248else 9249 9250cat >conftest.$ac_ext <<_ACEOF 9251#line 9251 "configure" 9252#include "confdefs.h" 9253 9254#include <X11/Shell.h> 9255 9256int 9257main () 9258{ 9259int num = IceConnectionNumber(0) 9260 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest.$ac_objext conftest$ac_exeext 9266if { (eval echo "$as_me:9266: \"$ac_link\"") >&5 9267 (eval $ac_link) 2>&5 9268 ac_status=$? 9269 echo "$as_me:9269: \$? = $ac_status" >&5 9270 (exit $ac_status); } && 9271 { ac_try='test -s conftest$ac_exeext' 9272 { (eval echo "$as_me:9272: \"$ac_try\"") >&5 9273 (eval $ac_try) 2>&5 9274 ac_status=$? 9275 echo "$as_me:9275: \$? = $ac_status" >&5 9276 (exit $ac_status); }; }; then 9277 cf_cv_xt_ice_compat=yes 9278else 9279 echo "$as_me: failed program was:" >&5 9280cat conftest.$ac_ext >&5 9281cf_cv_xt_ice_compat=no 9282fi 9283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9284fi 9285echo "$as_me:9285: result: $cf_cv_xt_ice_compat" >&5 9286echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 9287 9288 if test "$cf_cv_xt_ice_compat" = no 9289 then 9290 # workaround for broken ".pc" files used for X Toolkit. 9291 case "x$X_PRE_LIBS" in #(vi 9292 *-lICE*) 9293 case "x$LIBS" in #(vi 9294 *-lICE*) #(vi 9295 ;; 9296 *) 9297 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 9298 9299echo "${as_me:-configure}:9299: testing work around broken ICE dependency ..." 1>&5 9300 9301if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 9302 test -n "$verbose" && echo " found package ice" 1>&6 9303 9304echo "${as_me:-configure}:9304: testing found package ice ..." 1>&5 9305 9306 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 9307 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 9308 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 9309 9310echo "${as_me:-configure}:9310: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9311 9312 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 9313 9314echo "${as_me:-configure}:9314: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 9315 9316cf_fix_cppflags=no 9317cf_new_cflags= 9318cf_new_cppflags= 9319cf_new_extra_cppflags= 9320 9321for cf_add_cflags in $cf_pkgconfig_incs 9322do 9323case $cf_fix_cppflags in 9324no) 9325 case $cf_add_cflags in #(vi 9326 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9327 case $cf_add_cflags in 9328 -D*) 9329 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9330 9331 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9332 && test -z "${cf_tst_cflags}" \ 9333 && cf_fix_cppflags=yes 9334 9335 if test $cf_fix_cppflags = yes ; then 9336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9337 continue 9338 elif test "${cf_tst_cflags}" = "\"'" ; then 9339 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9340 continue 9341 fi 9342 ;; 9343 esac 9344 case "$CPPFLAGS" in 9345 *$cf_add_cflags) #(vi 9346 ;; 9347 *) #(vi 9348 case $cf_add_cflags in #(vi 9349 -D*) 9350 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9351 9352CPPFLAGS=`echo "$CPPFLAGS" | \ 9353 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9354 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9355 9356 ;; 9357 esac 9358 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9359 ;; 9360 esac 9361 ;; 9362 *) 9363 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9364 ;; 9365 esac 9366 ;; 9367yes) 9368 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9369 9370 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9371 9372 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9373 && test -z "${cf_tst_cflags}" \ 9374 && cf_fix_cppflags=no 9375 ;; 9376esac 9377done 9378 9379if test -n "$cf_new_cflags" ; then 9380 9381 CFLAGS="$CFLAGS $cf_new_cflags" 9382fi 9383 9384if test -n "$cf_new_cppflags" ; then 9385 9386 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9387fi 9388 9389if test -n "$cf_new_extra_cppflags" ; then 9390 9391 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9392fi 9393 9394 LIBS="$cf_pkgconfig_libs $LIBS" 9395 9396if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 9397 test -n "$verbose" && echo " found package sm" 1>&6 9398 9399echo "${as_me:-configure}:9399: testing found package sm ..." 1>&5 9400 9401 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 9402 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 9403 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 9404 9405echo "${as_me:-configure}:9405: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9406 9407 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 9408 9409echo "${as_me:-configure}:9409: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 9410 9411cf_fix_cppflags=no 9412cf_new_cflags= 9413cf_new_cppflags= 9414cf_new_extra_cppflags= 9415 9416for cf_add_cflags in $cf_pkgconfig_incs 9417do 9418case $cf_fix_cppflags in 9419no) 9420 case $cf_add_cflags in #(vi 9421 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9422 case $cf_add_cflags in 9423 -D*) 9424 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9425 9426 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9427 && test -z "${cf_tst_cflags}" \ 9428 && cf_fix_cppflags=yes 9429 9430 if test $cf_fix_cppflags = yes ; then 9431 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9432 continue 9433 elif test "${cf_tst_cflags}" = "\"'" ; then 9434 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9435 continue 9436 fi 9437 ;; 9438 esac 9439 case "$CPPFLAGS" in 9440 *$cf_add_cflags) #(vi 9441 ;; 9442 *) #(vi 9443 case $cf_add_cflags in #(vi 9444 -D*) 9445 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9446 9447CPPFLAGS=`echo "$CPPFLAGS" | \ 9448 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9449 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9450 9451 ;; 9452 esac 9453 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9454 ;; 9455 esac 9456 ;; 9457 *) 9458 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9459 ;; 9460 esac 9461 ;; 9462yes) 9463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9464 9465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9466 9467 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9468 && test -z "${cf_tst_cflags}" \ 9469 && cf_fix_cppflags=no 9470 ;; 9471esac 9472done 9473 9474if test -n "$cf_new_cflags" ; then 9475 9476 CFLAGS="$CFLAGS $cf_new_cflags" 9477fi 9478 9479if test -n "$cf_new_cppflags" ; then 9480 9481 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9482fi 9483 9484if test -n "$cf_new_extra_cppflags" ; then 9485 9486 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9487fi 9488 9489 LIBS="$cf_pkgconfig_libs $LIBS" 9490 : 9491else 9492 cf_pkgconfig_incs= 9493 cf_pkgconfig_libs= 9494 : 9495fi 9496 9497else 9498 cf_pkgconfig_incs= 9499 cf_pkgconfig_libs= 9500 9501test -n "$verbose" && echo " ...before $LIBS" 1>&6 9502 9503echo "${as_me:-configure}:9503: testing ...before $LIBS ..." 1>&5 9504 9505LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 9506test -n "$verbose" && echo " ...after $LIBS" 1>&6 9507 9508echo "${as_me:-configure}:9508: testing ...after $LIBS ..." 1>&5 9509 9510fi 9511 9512 ;; 9513 esac 9514 ;; 9515 esac 9516 fi 9517 9518 cf_have_X_LIBS=yes 9519 9520else 9521 cf_pkgconfig_incs= 9522 cf_pkgconfig_libs= 9523 9524 LDFLAGS="$X_LIBS $LDFLAGS" 9525 9526test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 9527 9528echo "${as_me:-configure}:9528: testing checking additions to CFLAGS ..." 1>&5 9529 9530cf_check_cflags="$CFLAGS" 9531cf_check_cppflags="$CPPFLAGS" 9532 9533cf_fix_cppflags=no 9534cf_new_cflags= 9535cf_new_cppflags= 9536cf_new_extra_cppflags= 9537 9538for cf_add_cflags in $X_CFLAGS 9539do 9540case $cf_fix_cppflags in 9541no) 9542 case $cf_add_cflags in #(vi 9543 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9544 case $cf_add_cflags in 9545 -D*) 9546 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9547 9548 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9549 && test -z "${cf_tst_cflags}" \ 9550 && cf_fix_cppflags=yes 9551 9552 if test $cf_fix_cppflags = yes ; then 9553 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9554 continue 9555 elif test "${cf_tst_cflags}" = "\"'" ; then 9556 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9557 continue 9558 fi 9559 ;; 9560 esac 9561 case "$CPPFLAGS" in 9562 *$cf_add_cflags) #(vi 9563 ;; 9564 *) #(vi 9565 case $cf_add_cflags in #(vi 9566 -D*) 9567 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9568 9569CPPFLAGS=`echo "$CPPFLAGS" | \ 9570 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9571 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9572 9573 ;; 9574 esac 9575 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9576 ;; 9577 esac 9578 ;; 9579 *) 9580 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9581 ;; 9582 esac 9583 ;; 9584yes) 9585 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9586 9587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9588 9589 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9590 && test -z "${cf_tst_cflags}" \ 9591 && cf_fix_cppflags=no 9592 ;; 9593esac 9594done 9595 9596if test -n "$cf_new_cflags" ; then 9597 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 9598 9599echo "${as_me:-configure}:9599: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 9600 9601 CFLAGS="$CFLAGS $cf_new_cflags" 9602fi 9603 9604if test -n "$cf_new_cppflags" ; then 9605 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 9606 9607echo "${as_me:-configure}:9607: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 9608 9609 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9610fi 9611 9612if test -n "$cf_new_extra_cppflags" ; then 9613 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 9614 9615echo "${as_me:-configure}:9615: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 9616 9617 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9618fi 9619 9620if test "$cf_check_cflags" != "$CFLAGS" ; then 9621cat >conftest.$ac_ext <<_ACEOF 9622#line 9622 "configure" 9623#include "confdefs.h" 9624#include <stdio.h> 9625int 9626main () 9627{ 9628printf("Hello world"); 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633rm -f conftest.$ac_objext conftest$ac_exeext 9634if { (eval echo "$as_me:9634: \"$ac_link\"") >&5 9635 (eval $ac_link) 2>&5 9636 ac_status=$? 9637 echo "$as_me:9637: \$? = $ac_status" >&5 9638 (exit $ac_status); } && 9639 { ac_try='test -s conftest$ac_exeext' 9640 { (eval echo "$as_me:9640: \"$ac_try\"") >&5 9641 (eval $ac_try) 2>&5 9642 ac_status=$? 9643 echo "$as_me:9643: \$? = $ac_status" >&5 9644 (exit $ac_status); }; }; then 9645 : 9646else 9647 echo "$as_me: failed program was:" >&5 9648cat conftest.$ac_ext >&5 9649test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 9650 9651echo "${as_me:-configure}:9651: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 9652 9653 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then 9654 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 9655 9656echo "${as_me:-configure}:9656: testing but keeping change to \$CPPFLAGS ..." 1>&5 9657 9658 fi 9659 CFLAGS="$cf_check_flags" 9660fi 9661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9662fi 9663 9664 echo "$as_me:9664: checking for XOpenDisplay" >&5 9665echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 9666if test "${ac_cv_func_XOpenDisplay+set}" = set; then 9667 echo $ECHO_N "(cached) $ECHO_C" >&6 9668else 9669 cat >conftest.$ac_ext <<_ACEOF 9670#line 9670 "configure" 9671#include "confdefs.h" 9672/* System header to define __stub macros and hopefully few prototypes, 9673 which can conflict with char XOpenDisplay (); below. */ 9674#include <assert.h> 9675/* Override any gcc2 internal prototype to avoid an error. */ 9676#ifdef __cplusplus 9677extern "C" 9678#endif 9679/* We use char because int might match the return type of a gcc2 9680 builtin and then its argument prototype would still apply. */ 9681char XOpenDisplay (); 9682char (*f) (); 9683 9684int 9685main () 9686{ 9687/* The GNU C library defines this for functions which it implements 9688 to always fail with ENOSYS. Some functions are actually named 9689 something starting with __ and the normal name is an alias. */ 9690#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 9691choke me 9692#else 9693f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 9694#endif 9695 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700rm -f conftest.$ac_objext conftest$ac_exeext 9701if { (eval echo "$as_me:9701: \"$ac_link\"") >&5 9702 (eval $ac_link) 2>&5 9703 ac_status=$? 9704 echo "$as_me:9704: \$? = $ac_status" >&5 9705 (exit $ac_status); } && 9706 { ac_try='test -s conftest$ac_exeext' 9707 { (eval echo "$as_me:9707: \"$ac_try\"") >&5 9708 (eval $ac_try) 2>&5 9709 ac_status=$? 9710 echo "$as_me:9710: \$? = $ac_status" >&5 9711 (exit $ac_status); }; }; then 9712 ac_cv_func_XOpenDisplay=yes 9713else 9714 echo "$as_me: failed program was:" >&5 9715cat conftest.$ac_ext >&5 9716ac_cv_func_XOpenDisplay=no 9717fi 9718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9719fi 9720echo "$as_me:9720: result: $ac_cv_func_XOpenDisplay" >&5 9721echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 9722if test $ac_cv_func_XOpenDisplay = yes; then 9723 : 9724else 9725 9726 echo "$as_me:9726: checking for XOpenDisplay in -lX11" >&5 9727echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 9728if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 9729 echo $ECHO_N "(cached) $ECHO_C" >&6 9730else 9731 ac_check_lib_save_LIBS=$LIBS 9732LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 9733cat >conftest.$ac_ext <<_ACEOF 9734#line 9734 "configure" 9735#include "confdefs.h" 9736 9737/* Override any gcc2 internal prototype to avoid an error. */ 9738#ifdef __cplusplus 9739extern "C" 9740#endif 9741/* We use char because int might match the return type of a gcc2 9742 builtin and then its argument prototype would still apply. */ 9743char XOpenDisplay (); 9744int 9745main () 9746{ 9747XOpenDisplay (); 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752rm -f conftest.$ac_objext conftest$ac_exeext 9753if { (eval echo "$as_me:9753: \"$ac_link\"") >&5 9754 (eval $ac_link) 2>&5 9755 ac_status=$? 9756 echo "$as_me:9756: \$? = $ac_status" >&5 9757 (exit $ac_status); } && 9758 { ac_try='test -s conftest$ac_exeext' 9759 { (eval echo "$as_me:9759: \"$ac_try\"") >&5 9760 (eval $ac_try) 2>&5 9761 ac_status=$? 9762 echo "$as_me:9762: \$? = $ac_status" >&5 9763 (exit $ac_status); }; }; then 9764 ac_cv_lib_X11_XOpenDisplay=yes 9765else 9766 echo "$as_me: failed program was:" >&5 9767cat conftest.$ac_ext >&5 9768ac_cv_lib_X11_XOpenDisplay=no 9769fi 9770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9771LIBS=$ac_check_lib_save_LIBS 9772fi 9773echo "$as_me:9773: result: $ac_cv_lib_X11_XOpenDisplay" >&5 9774echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 9775if test $ac_cv_lib_X11_XOpenDisplay = yes; then 9776 LIBS="-lX11 $LIBS" 9777fi 9778 9779fi 9780 9781 echo "$as_me:9781: checking for XtAppInitialize" >&5 9782echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 9783if test "${ac_cv_func_XtAppInitialize+set}" = set; then 9784 echo $ECHO_N "(cached) $ECHO_C" >&6 9785else 9786 cat >conftest.$ac_ext <<_ACEOF 9787#line 9787 "configure" 9788#include "confdefs.h" 9789/* System header to define __stub macros and hopefully few prototypes, 9790 which can conflict with char XtAppInitialize (); below. */ 9791#include <assert.h> 9792/* Override any gcc2 internal prototype to avoid an error. */ 9793#ifdef __cplusplus 9794extern "C" 9795#endif 9796/* We use char because int might match the return type of a gcc2 9797 builtin and then its argument prototype would still apply. */ 9798char XtAppInitialize (); 9799char (*f) (); 9800 9801int 9802main () 9803{ 9804/* The GNU C library defines this for functions which it implements 9805 to always fail with ENOSYS. Some functions are actually named 9806 something starting with __ and the normal name is an alias. */ 9807#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 9808choke me 9809#else 9810f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 9811#endif 9812 9813 ; 9814 return 0; 9815} 9816_ACEOF 9817rm -f conftest.$ac_objext conftest$ac_exeext 9818if { (eval echo "$as_me:9818: \"$ac_link\"") >&5 9819 (eval $ac_link) 2>&5 9820 ac_status=$? 9821 echo "$as_me:9821: \$? = $ac_status" >&5 9822 (exit $ac_status); } && 9823 { ac_try='test -s conftest$ac_exeext' 9824 { (eval echo "$as_me:9824: \"$ac_try\"") >&5 9825 (eval $ac_try) 2>&5 9826 ac_status=$? 9827 echo "$as_me:9827: \$? = $ac_status" >&5 9828 (exit $ac_status); }; }; then 9829 ac_cv_func_XtAppInitialize=yes 9830else 9831 echo "$as_me: failed program was:" >&5 9832cat conftest.$ac_ext >&5 9833ac_cv_func_XtAppInitialize=no 9834fi 9835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9836fi 9837echo "$as_me:9837: result: $ac_cv_func_XtAppInitialize" >&5 9838echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 9839if test $ac_cv_func_XtAppInitialize = yes; then 9840 : 9841else 9842 9843 echo "$as_me:9843: checking for XtAppInitialize in -lXt" >&5 9844echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 9845if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 9846 echo $ECHO_N "(cached) $ECHO_C" >&6 9847else 9848 ac_check_lib_save_LIBS=$LIBS 9849LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 9850cat >conftest.$ac_ext <<_ACEOF 9851#line 9851 "configure" 9852#include "confdefs.h" 9853 9854/* Override any gcc2 internal prototype to avoid an error. */ 9855#ifdef __cplusplus 9856extern "C" 9857#endif 9858/* We use char because int might match the return type of a gcc2 9859 builtin and then its argument prototype would still apply. */ 9860char XtAppInitialize (); 9861int 9862main () 9863{ 9864XtAppInitialize (); 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869rm -f conftest.$ac_objext conftest$ac_exeext 9870if { (eval echo "$as_me:9870: \"$ac_link\"") >&5 9871 (eval $ac_link) 2>&5 9872 ac_status=$? 9873 echo "$as_me:9873: \$? = $ac_status" >&5 9874 (exit $ac_status); } && 9875 { ac_try='test -s conftest$ac_exeext' 9876 { (eval echo "$as_me:9876: \"$ac_try\"") >&5 9877 (eval $ac_try) 2>&5 9878 ac_status=$? 9879 echo "$as_me:9879: \$? = $ac_status" >&5 9880 (exit $ac_status); }; }; then 9881 ac_cv_lib_Xt_XtAppInitialize=yes 9882else 9883 echo "$as_me: failed program was:" >&5 9884cat conftest.$ac_ext >&5 9885ac_cv_lib_Xt_XtAppInitialize=no 9886fi 9887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9888LIBS=$ac_check_lib_save_LIBS 9889fi 9890echo "$as_me:9890: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 9891echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 9892if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 9893 9894cat >>confdefs.h <<\EOF 9895#define HAVE_LIBXT 1 9896EOF 9897 9898 cf_have_X_LIBS=Xt 9899 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 9900fi 9901 9902fi 9903 9904fi 9905 9906if test $cf_have_X_LIBS = no ; then 9907 { echo "$as_me:9907: WARNING: Unable to successfully link X Toolkit library (-lXt) with 9908test program. You will have to check and add the proper libraries by hand 9909to makefile." >&5 9910echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 9911test program. You will have to check and add the proper libraries by hand 9912to makefile." >&2;} 9913fi 9914 9915for ac_header in \ 9916 X11/DECkeysym.h \ 9917 X11/Sunkeysym.h \ 9918 X11/XF86keysym.h \ 9919 X11/XKBlib.h \ 9920 X11/Xpoll.h \ 9921 X11/extensions/XKB.h \ 9922 9923do 9924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9925echo "$as_me:9925: checking for $ac_header" >&5 9926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9927if eval "test \"\${$as_ac_Header+set}\" = set"; then 9928 echo $ECHO_N "(cached) $ECHO_C" >&6 9929else 9930 cat >conftest.$ac_ext <<_ACEOF 9931#line 9931 "configure" 9932#include "confdefs.h" 9933#include <$ac_header> 9934_ACEOF 9935if { (eval echo "$as_me:9935: \"$ac_cpp conftest.$ac_ext\"") >&5 9936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9937 ac_status=$? 9938 egrep -v '^ *\+' conftest.er1 >conftest.err 9939 rm -f conftest.er1 9940 cat conftest.err >&5 9941 echo "$as_me:9941: \$? = $ac_status" >&5 9942 (exit $ac_status); } >/dev/null; then 9943 if test -s conftest.err; then 9944 ac_cpp_err=$ac_c_preproc_warn_flag 9945 else 9946 ac_cpp_err= 9947 fi 9948else 9949 ac_cpp_err=yes 9950fi 9951if test -z "$ac_cpp_err"; then 9952 eval "$as_ac_Header=yes" 9953else 9954 echo "$as_me: failed program was:" >&5 9955 cat conftest.$ac_ext >&5 9956 eval "$as_ac_Header=no" 9957fi 9958rm -f conftest.err conftest.$ac_ext 9959fi 9960echo "$as_me:9960: result: `eval echo '${'$as_ac_Header'}'`" >&5 9961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9962if test `eval echo '${'$as_ac_Header'}'` = yes; then 9963 cat >>confdefs.h <<EOF 9964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9965EOF 9966 9967fi 9968done 9969 9970ICON_SUFFIX=.xbm 9971 9972cf_save_cppflags="${CPPFLAGS}" 9973cf_save_ldflags="${LDFLAGS}" 9974 9975echo "$as_me:9975: checking if you want to use the Xpm library for colored icon" >&5 9976echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 9977 9978# Check whether --with-xpm or --without-xpm was given. 9979if test "${with_xpm+set}" = set; then 9980 withval="$with_xpm" 9981 cf_Xpm_library="$withval" 9982else 9983 cf_Xpm_library=yes 9984fi; 9985echo "$as_me:9985: result: $cf_Xpm_library" >&5 9986echo "${ECHO_T}$cf_Xpm_library" >&6 9987 9988if test "$cf_Xpm_library" != no ; then 9989 if test "$cf_Xpm_library" != yes ; then 9990 CPPFLAGS="$CPPFLAGS -I$withval/include" 9991 LDFLAGS="$LDFLAGS -L$withval/lib" 9992 fi 9993 echo "$as_me:9993: checking for X11/xpm.h" >&5 9994echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 9995if test "${ac_cv_header_X11_xpm_h+set}" = set; then 9996 echo $ECHO_N "(cached) $ECHO_C" >&6 9997else 9998 cat >conftest.$ac_ext <<_ACEOF 9999#line 9999 "configure" 10000#include "confdefs.h" 10001#include <X11/xpm.h> 10002_ACEOF 10003if { (eval echo "$as_me:10003: \"$ac_cpp conftest.$ac_ext\"") >&5 10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10005 ac_status=$? 10006 egrep -v '^ *\+' conftest.er1 >conftest.err 10007 rm -f conftest.er1 10008 cat conftest.err >&5 10009 echo "$as_me:10009: \$? = $ac_status" >&5 10010 (exit $ac_status); } >/dev/null; then 10011 if test -s conftest.err; then 10012 ac_cpp_err=$ac_c_preproc_warn_flag 10013 else 10014 ac_cpp_err= 10015 fi 10016else 10017 ac_cpp_err=yes 10018fi 10019if test -z "$ac_cpp_err"; then 10020 ac_cv_header_X11_xpm_h=yes 10021else 10022 echo "$as_me: failed program was:" >&5 10023 cat conftest.$ac_ext >&5 10024 ac_cv_header_X11_xpm_h=no 10025fi 10026rm -f conftest.err conftest.$ac_ext 10027fi 10028echo "$as_me:10028: result: $ac_cv_header_X11_xpm_h" >&5 10029echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 10030if test $ac_cv_header_X11_xpm_h = yes; then 10031 10032 echo "$as_me:10032: checking for XpmCreatePixmapFromData in -lXpm" >&5 10033echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 10034if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 10035 echo $ECHO_N "(cached) $ECHO_C" >&6 10036else 10037 ac_check_lib_save_LIBS=$LIBS 10038LIBS="-lXpm -lX11 $X_LIBS $LIBS" 10039cat >conftest.$ac_ext <<_ACEOF 10040#line 10040 "configure" 10041#include "confdefs.h" 10042 10043/* Override any gcc2 internal prototype to avoid an error. */ 10044#ifdef __cplusplus 10045extern "C" 10046#endif 10047/* We use char because int might match the return type of a gcc2 10048 builtin and then its argument prototype would still apply. */ 10049char XpmCreatePixmapFromData (); 10050int 10051main () 10052{ 10053XpmCreatePixmapFromData (); 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058rm -f conftest.$ac_objext conftest$ac_exeext 10059if { (eval echo "$as_me:10059: \"$ac_link\"") >&5 10060 (eval $ac_link) 2>&5 10061 ac_status=$? 10062 echo "$as_me:10062: \$? = $ac_status" >&5 10063 (exit $ac_status); } && 10064 { ac_try='test -s conftest$ac_exeext' 10065 { (eval echo "$as_me:10065: \"$ac_try\"") >&5 10066 (eval $ac_try) 2>&5 10067 ac_status=$? 10068 echo "$as_me:10068: \$? = $ac_status" >&5 10069 (exit $ac_status); }; }; then 10070 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 10071else 10072 echo "$as_me: failed program was:" >&5 10073cat conftest.$ac_ext >&5 10074ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 10075fi 10076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10077LIBS=$ac_check_lib_save_LIBS 10078fi 10079echo "$as_me:10079: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 10080echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 10081if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 10082 10083cat >>confdefs.h <<\EOF 10084#define HAVE_LIBXPM 1 10085EOF 10086 10087 ICON_SUFFIX=.xpm 10088 LIBS="-lXpm $LIBS" 10089else 10090 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10091fi 10092 10093else 10094 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10095fi 10096 10097fi 10098 10099cf_x_athena=${cf_x_athena:-Xaw} 10100 10101echo "$as_me:10101: checking if you want to link with Xaw 3d library" >&5 10102echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 10103withval= 10104 10105# Check whether --with-Xaw3d or --without-Xaw3d was given. 10106if test "${with_Xaw3d+set}" = set; then 10107 withval="$with_Xaw3d" 10108 10109fi; 10110if test "$withval" = yes ; then 10111 cf_x_athena=Xaw3d 10112 echo "$as_me:10112: result: yes" >&5 10113echo "${ECHO_T}yes" >&6 10114else 10115 echo "$as_me:10115: result: no" >&5 10116echo "${ECHO_T}no" >&6 10117fi 10118 10119echo "$as_me:10119: checking if you want to link with neXT Athena library" >&5 10120echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 10121withval= 10122 10123# Check whether --with-neXtaw or --without-neXtaw was given. 10124if test "${with_neXtaw+set}" = set; then 10125 withval="$with_neXtaw" 10126 10127fi; 10128if test "$withval" = yes ; then 10129 cf_x_athena=neXtaw 10130 echo "$as_me:10130: result: yes" >&5 10131echo "${ECHO_T}yes" >&6 10132else 10133 echo "$as_me:10133: result: no" >&5 10134echo "${ECHO_T}no" >&6 10135fi 10136 10137echo "$as_me:10137: checking if you want to link with Athena-Plus library" >&5 10138echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 10139withval= 10140 10141# Check whether --with-XawPlus or --without-XawPlus was given. 10142if test "${with_XawPlus+set}" = set; then 10143 withval="$with_XawPlus" 10144 10145fi; 10146if test "$withval" = yes ; then 10147 cf_x_athena=XawPlus 10148 echo "$as_me:10148: result: yes" >&5 10149echo "${ECHO_T}yes" >&6 10150else 10151 echo "$as_me:10151: result: no" >&5 10152echo "${ECHO_T}no" >&6 10153fi 10154 10155cf_x_athena_lib="" 10156 10157if test "$PKG_CONFIG" != none ; then 10158 cf_athena_list= 10159 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 10160 for cf_athena_pkg in \ 10161 $cf_athena_list \ 10162 ${cf_x_athena} \ 10163 ${cf_x_athena}-devel \ 10164 lib${cf_x_athena} \ 10165 lib${cf_x_athena}-devel 10166 do 10167 10168if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then 10169 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 10170 10171echo "${as_me:-configure}:10171: testing found package $cf_athena_pkg ..." 1>&5 10172 10173 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`" 10174 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`" 10175 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 10176 10177echo "${as_me:-configure}:10177: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10178 10179 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 10180 10181echo "${as_me:-configure}:10181: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 10182 10183cf_fix_cppflags=no 10184cf_new_cflags= 10185cf_new_cppflags= 10186cf_new_extra_cppflags= 10187 10188for cf_add_cflags in $cf_pkgconfig_incs 10189do 10190case $cf_fix_cppflags in 10191no) 10192 case $cf_add_cflags in #(vi 10193 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10194 case $cf_add_cflags in 10195 -D*) 10196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10197 10198 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10199 && test -z "${cf_tst_cflags}" \ 10200 && cf_fix_cppflags=yes 10201 10202 if test $cf_fix_cppflags = yes ; then 10203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10204 continue 10205 elif test "${cf_tst_cflags}" = "\"'" ; then 10206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10207 continue 10208 fi 10209 ;; 10210 esac 10211 case "$CPPFLAGS" in 10212 *$cf_add_cflags) #(vi 10213 ;; 10214 *) #(vi 10215 case $cf_add_cflags in #(vi 10216 -D*) 10217 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10218 10219CPPFLAGS=`echo "$CPPFLAGS" | \ 10220 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10221 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10222 10223 ;; 10224 esac 10225 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10226 ;; 10227 esac 10228 ;; 10229 *) 10230 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10231 ;; 10232 esac 10233 ;; 10234yes) 10235 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10236 10237 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10238 10239 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10240 && test -z "${cf_tst_cflags}" \ 10241 && cf_fix_cppflags=no 10242 ;; 10243esac 10244done 10245 10246if test -n "$cf_new_cflags" ; then 10247 10248 CFLAGS="$CFLAGS $cf_new_cflags" 10249fi 10250 10251if test -n "$cf_new_cppflags" ; then 10252 10253 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10254fi 10255 10256if test -n "$cf_new_extra_cppflags" ; then 10257 10258 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10259fi 10260 10261 LIBS="$cf_pkgconfig_libs $LIBS" 10262 10263 cf_x_athena_lib="$cf_pkgconfig_libs" 10264 10265cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10266 10267 cat >>confdefs.h <<EOF 10268#define $cf_x_athena_LIBS 1 10269EOF 10270 10271 for cf_trim_lib in Xmu Xt X11 10272 do 10273 case "$LIBS" in 10274 *-l$cf_trim_lib\ *-l$cf_trim_lib*) 10275 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 10276 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 10277 10278echo "${as_me:-configure}:10278: testing ..trimmed $LIBS ..." 1>&5 10279 10280 ;; 10281 esac 10282 done 10283 10284echo "$as_me:10284: checking for usable $cf_x_athena/Xmu package" >&5 10285echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 10286if test "${cf_cv_xaw_compat+set}" = set; then 10287 echo $ECHO_N "(cached) $ECHO_C" >&6 10288else 10289 10290cat >conftest.$ac_ext <<_ACEOF 10291#line 10291 "configure" 10292#include "confdefs.h" 10293 10294#include <X11/Xmu/CharSet.h> 10295 10296int 10297main () 10298{ 10299 10300int check = XmuCompareISOLatin1("big", "small") 10301 10302 ; 10303 return 0; 10304} 10305_ACEOF 10306rm -f conftest.$ac_objext conftest$ac_exeext 10307if { (eval echo "$as_me:10307: \"$ac_link\"") >&5 10308 (eval $ac_link) 2>&5 10309 ac_status=$? 10310 echo "$as_me:10310: \$? = $ac_status" >&5 10311 (exit $ac_status); } && 10312 { ac_try='test -s conftest$ac_exeext' 10313 { (eval echo "$as_me:10313: \"$ac_try\"") >&5 10314 (eval $ac_try) 2>&5 10315 ac_status=$? 10316 echo "$as_me:10316: \$? = $ac_status" >&5 10317 (exit $ac_status); }; }; then 10318 cf_cv_xaw_compat=yes 10319else 10320 echo "$as_me: failed program was:" >&5 10321cat conftest.$ac_ext >&5 10322cf_cv_xaw_compat=no 10323fi 10324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10325fi 10326echo "$as_me:10326: result: $cf_cv_xaw_compat" >&5 10327echo "${ECHO_T}$cf_cv_xaw_compat" >&6 10328 10329 if test "$cf_cv_xaw_compat" = no 10330 then 10331 # workaround for broken ".pc" files... 10332 case "$cf_x_athena_lib" in #(vi 10333 *-lXmu*) #(vi 10334 ;; 10335 *) 10336 test -n "$verbose" && echo " work around broken package" 1>&6 10337 10338echo "${as_me:-configure}:10338: testing work around broken package ..." 1>&5 10339 10340 cf_save_xmu="$LIBS" 10341 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 10342 10343if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then 10344 test -n "$verbose" && echo " found package xmu" 1>&6 10345 10346echo "${as_me:-configure}:10346: testing found package xmu ..." 1>&5 10347 10348 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`" 10349 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`" 10350 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 10351 10352echo "${as_me:-configure}:10352: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10353 10354 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 10355 10356echo "${as_me:-configure}:10356: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 10357 10358cf_fix_cppflags=no 10359cf_new_cflags= 10360cf_new_cppflags= 10361cf_new_extra_cppflags= 10362 10363for cf_add_cflags in $cf_pkgconfig_incs 10364do 10365case $cf_fix_cppflags in 10366no) 10367 case $cf_add_cflags in #(vi 10368 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10369 case $cf_add_cflags in 10370 -D*) 10371 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10372 10373 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10374 && test -z "${cf_tst_cflags}" \ 10375 && cf_fix_cppflags=yes 10376 10377 if test $cf_fix_cppflags = yes ; then 10378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10379 continue 10380 elif test "${cf_tst_cflags}" = "\"'" ; then 10381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10382 continue 10383 fi 10384 ;; 10385 esac 10386 case "$CPPFLAGS" in 10387 *$cf_add_cflags) #(vi 10388 ;; 10389 *) #(vi 10390 case $cf_add_cflags in #(vi 10391 -D*) 10392 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10393 10394CPPFLAGS=`echo "$CPPFLAGS" | \ 10395 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10396 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10397 10398 ;; 10399 esac 10400 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10401 ;; 10402 esac 10403 ;; 10404 *) 10405 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10406 ;; 10407 esac 10408 ;; 10409yes) 10410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10411 10412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10413 10414 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10415 && test -z "${cf_tst_cflags}" \ 10416 && cf_fix_cppflags=no 10417 ;; 10418esac 10419done 10420 10421if test -n "$cf_new_cflags" ; then 10422 10423 CFLAGS="$CFLAGS $cf_new_cflags" 10424fi 10425 10426if test -n "$cf_new_cppflags" ; then 10427 10428 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10429fi 10430 10431if test -n "$cf_new_extra_cppflags" ; then 10432 10433 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10434fi 10435 10436 LIBS="$cf_pkgconfig_libs $LIBS" 10437 10438 LIBS="$cf_save_xmu" 10439 10440test -n "$verbose" && echo " ...before $LIBS" 1>&6 10441 10442echo "${as_me:-configure}:10442: testing ...before $LIBS ..." 1>&5 10443 10444LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 10445test -n "$verbose" && echo " ...after $LIBS" 1>&6 10446 10447echo "${as_me:-configure}:10447: testing ...after $LIBS ..." 1>&5 10448 10449else 10450 cf_pkgconfig_incs= 10451 cf_pkgconfig_libs= 10452 10453test -n "$verbose" && echo " ...before $LIBS" 1>&6 10454 10455echo "${as_me:-configure}:10455: testing ...before $LIBS ..." 1>&5 10456 10457LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 10458test -n "$verbose" && echo " ...after $LIBS" 1>&6 10459 10460echo "${as_me:-configure}:10460: testing ...after $LIBS ..." 1>&5 10461 10462fi 10463 10464 for cf_trim_lib in Xmu Xt X11 10465 do 10466 case "$LIBS" in 10467 *-l$cf_trim_lib\ *-l$cf_trim_lib*) 10468 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 10469 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 10470 10471echo "${as_me:-configure}:10471: testing ..trimmed $LIBS ..." 1>&5 10472 10473 ;; 10474 esac 10475 done 10476 10477 ;; 10478 esac 10479 fi 10480 10481 break 10482else 10483 cf_pkgconfig_incs= 10484 cf_pkgconfig_libs= 10485 : 10486fi 10487 10488 done 10489fi 10490 10491if test -z "$cf_x_athena_lib" ; then 10492 10493if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 10494 test -n "$verbose" && echo " found package Xext" 1>&6 10495 10496echo "${as_me:-configure}:10496: testing found package Xext ..." 1>&5 10497 10498 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 10499 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 10500 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 10501 10502echo "${as_me:-configure}:10502: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10503 10504 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 10505 10506echo "${as_me:-configure}:10506: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 10507 10508cf_fix_cppflags=no 10509cf_new_cflags= 10510cf_new_cppflags= 10511cf_new_extra_cppflags= 10512 10513for cf_add_cflags in $cf_pkgconfig_incs 10514do 10515case $cf_fix_cppflags in 10516no) 10517 case $cf_add_cflags in #(vi 10518 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10519 case $cf_add_cflags in 10520 -D*) 10521 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10522 10523 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10524 && test -z "${cf_tst_cflags}" \ 10525 && cf_fix_cppflags=yes 10526 10527 if test $cf_fix_cppflags = yes ; then 10528 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10529 continue 10530 elif test "${cf_tst_cflags}" = "\"'" ; then 10531 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10532 continue 10533 fi 10534 ;; 10535 esac 10536 case "$CPPFLAGS" in 10537 *$cf_add_cflags) #(vi 10538 ;; 10539 *) #(vi 10540 case $cf_add_cflags in #(vi 10541 -D*) 10542 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10543 10544CPPFLAGS=`echo "$CPPFLAGS" | \ 10545 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10546 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10547 10548 ;; 10549 esac 10550 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10551 ;; 10552 esac 10553 ;; 10554 *) 10555 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10556 ;; 10557 esac 10558 ;; 10559yes) 10560 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10561 10562 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10563 10564 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10565 && test -z "${cf_tst_cflags}" \ 10566 && cf_fix_cppflags=no 10567 ;; 10568esac 10569done 10570 10571if test -n "$cf_new_cflags" ; then 10572 10573 CFLAGS="$CFLAGS $cf_new_cflags" 10574fi 10575 10576if test -n "$cf_new_cppflags" ; then 10577 10578 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10579fi 10580 10581if test -n "$cf_new_extra_cppflags" ; then 10582 10583 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10584fi 10585 10586 LIBS="$cf_pkgconfig_libs $LIBS" 10587 : 10588else 10589 cf_pkgconfig_incs= 10590 cf_pkgconfig_libs= 10591 10592 echo "$as_me:10592: checking for XextCreateExtension in -lXext" >&5 10593echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 10594if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 10595 echo $ECHO_N "(cached) $ECHO_C" >&6 10596else 10597 ac_check_lib_save_LIBS=$LIBS 10598LIBS="-lXext $LIBS" 10599cat >conftest.$ac_ext <<_ACEOF 10600#line 10600 "configure" 10601#include "confdefs.h" 10602 10603/* Override any gcc2 internal prototype to avoid an error. */ 10604#ifdef __cplusplus 10605extern "C" 10606#endif 10607/* We use char because int might match the return type of a gcc2 10608 builtin and then its argument prototype would still apply. */ 10609char XextCreateExtension (); 10610int 10611main () 10612{ 10613XextCreateExtension (); 10614 ; 10615 return 0; 10616} 10617_ACEOF 10618rm -f conftest.$ac_objext conftest$ac_exeext 10619if { (eval echo "$as_me:10619: \"$ac_link\"") >&5 10620 (eval $ac_link) 2>&5 10621 ac_status=$? 10622 echo "$as_me:10622: \$? = $ac_status" >&5 10623 (exit $ac_status); } && 10624 { ac_try='test -s conftest$ac_exeext' 10625 { (eval echo "$as_me:10625: \"$ac_try\"") >&5 10626 (eval $ac_try) 2>&5 10627 ac_status=$? 10628 echo "$as_me:10628: \$? = $ac_status" >&5 10629 (exit $ac_status); }; }; then 10630 ac_cv_lib_Xext_XextCreateExtension=yes 10631else 10632 echo "$as_me: failed program was:" >&5 10633cat conftest.$ac_ext >&5 10634ac_cv_lib_Xext_XextCreateExtension=no 10635fi 10636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10637LIBS=$ac_check_lib_save_LIBS 10638fi 10639echo "$as_me:10639: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 10640echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 10641if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 10642 LIBS="-lXext $LIBS" 10643fi 10644 10645fi 10646 10647cf_have_X_LIBS=no 10648 10649if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 10650 test -n "$verbose" && echo " found package xt" 1>&6 10651 10652echo "${as_me:-configure}:10652: testing found package xt ..." 1>&5 10653 10654 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 10655 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 10656 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 10657 10658echo "${as_me:-configure}:10658: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10659 10660 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 10661 10662echo "${as_me:-configure}:10662: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 10663 10664cf_fix_cppflags=no 10665cf_new_cflags= 10666cf_new_cppflags= 10667cf_new_extra_cppflags= 10668 10669for cf_add_cflags in $cf_pkgconfig_incs 10670do 10671case $cf_fix_cppflags in 10672no) 10673 case $cf_add_cflags in #(vi 10674 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10675 case $cf_add_cflags in 10676 -D*) 10677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10678 10679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10680 && test -z "${cf_tst_cflags}" \ 10681 && cf_fix_cppflags=yes 10682 10683 if test $cf_fix_cppflags = yes ; then 10684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10685 continue 10686 elif test "${cf_tst_cflags}" = "\"'" ; then 10687 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10688 continue 10689 fi 10690 ;; 10691 esac 10692 case "$CPPFLAGS" in 10693 *$cf_add_cflags) #(vi 10694 ;; 10695 *) #(vi 10696 case $cf_add_cflags in #(vi 10697 -D*) 10698 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10699 10700CPPFLAGS=`echo "$CPPFLAGS" | \ 10701 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10702 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10703 10704 ;; 10705 esac 10706 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10707 ;; 10708 esac 10709 ;; 10710 *) 10711 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10712 ;; 10713 esac 10714 ;; 10715yes) 10716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10717 10718 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10719 10720 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10721 && test -z "${cf_tst_cflags}" \ 10722 && cf_fix_cppflags=no 10723 ;; 10724esac 10725done 10726 10727if test -n "$cf_new_cflags" ; then 10728 10729 CFLAGS="$CFLAGS $cf_new_cflags" 10730fi 10731 10732if test -n "$cf_new_cppflags" ; then 10733 10734 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10735fi 10736 10737if test -n "$cf_new_extra_cppflags" ; then 10738 10739 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10740fi 10741 10742 LIBS="$cf_pkgconfig_libs $LIBS" 10743 10744 case "x$LIBS" in #(vi 10745 *-lX11*) #(vi 10746 ;; 10747 *) 10748# we have an "xt" package, but it may omit Xt's dependency on X11 10749echo "$as_me:10749: checking for usable X dependency" >&5 10750echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 10751if test "${cf_cv_xt_x11_compat+set}" = set; then 10752 echo $ECHO_N "(cached) $ECHO_C" >&6 10753else 10754 10755cat >conftest.$ac_ext <<_ACEOF 10756#line 10756 "configure" 10757#include "confdefs.h" 10758 10759#include <X11/Xlib.h> 10760 10761int 10762main () 10763{ 10764 10765 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 10766 int rc2 = XClearWindow((Display*) 0, (Window) 0); 10767 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 10768 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 10769 10770 ; 10771 return 0; 10772} 10773_ACEOF 10774rm -f conftest.$ac_objext conftest$ac_exeext 10775if { (eval echo "$as_me:10775: \"$ac_link\"") >&5 10776 (eval $ac_link) 2>&5 10777 ac_status=$? 10778 echo "$as_me:10778: \$? = $ac_status" >&5 10779 (exit $ac_status); } && 10780 { ac_try='test -s conftest$ac_exeext' 10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5 10782 (eval $ac_try) 2>&5 10783 ac_status=$? 10784 echo "$as_me:10784: \$? = $ac_status" >&5 10785 (exit $ac_status); }; }; then 10786 cf_cv_xt_x11_compat=yes 10787else 10788 echo "$as_me: failed program was:" >&5 10789cat conftest.$ac_ext >&5 10790cf_cv_xt_x11_compat=no 10791fi 10792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10793fi 10794echo "$as_me:10794: result: $cf_cv_xt_x11_compat" >&5 10795echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 10796 if test "$cf_cv_xt_x11_compat" = no 10797 then 10798 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 10799 10800echo "${as_me:-configure}:10800: testing work around broken X11 dependency ..." 1>&5 10801 10802 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 10803 10804if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 10805 test -n "$verbose" && echo " found package x11" 1>&6 10806 10807echo "${as_me:-configure}:10807: testing found package x11 ..." 1>&5 10808 10809 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 10810 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 10811 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 10812 10813echo "${as_me:-configure}:10813: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10814 10815 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 10816 10817echo "${as_me:-configure}:10817: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 10818 10819cf_fix_cppflags=no 10820cf_new_cflags= 10821cf_new_cppflags= 10822cf_new_extra_cppflags= 10823 10824for cf_add_cflags in $cf_pkgconfig_incs 10825do 10826case $cf_fix_cppflags in 10827no) 10828 case $cf_add_cflags in #(vi 10829 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10830 case $cf_add_cflags in 10831 -D*) 10832 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10833 10834 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10835 && test -z "${cf_tst_cflags}" \ 10836 && cf_fix_cppflags=yes 10837 10838 if test $cf_fix_cppflags = yes ; then 10839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10840 continue 10841 elif test "${cf_tst_cflags}" = "\"'" ; then 10842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10843 continue 10844 fi 10845 ;; 10846 esac 10847 case "$CPPFLAGS" in 10848 *$cf_add_cflags) #(vi 10849 ;; 10850 *) #(vi 10851 case $cf_add_cflags in #(vi 10852 -D*) 10853 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10854 10855CPPFLAGS=`echo "$CPPFLAGS" | \ 10856 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10857 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10858 10859 ;; 10860 esac 10861 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10862 ;; 10863 esac 10864 ;; 10865 *) 10866 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10867 ;; 10868 esac 10869 ;; 10870yes) 10871 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10872 10873 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10874 10875 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10876 && test -z "${cf_tst_cflags}" \ 10877 && cf_fix_cppflags=no 10878 ;; 10879esac 10880done 10881 10882if test -n "$cf_new_cflags" ; then 10883 10884 CFLAGS="$CFLAGS $cf_new_cflags" 10885fi 10886 10887if test -n "$cf_new_cppflags" ; then 10888 10889 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10890fi 10891 10892if test -n "$cf_new_extra_cppflags" ; then 10893 10894 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10895fi 10896 10897 LIBS="$cf_pkgconfig_libs $LIBS" 10898 : 10899else 10900 cf_pkgconfig_incs= 10901 cf_pkgconfig_libs= 10902 10903test -n "$verbose" && echo " ...before $LIBS" 1>&6 10904 10905echo "${as_me:-configure}:10905: testing ...before $LIBS ..." 1>&5 10906 10907LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 10908test -n "$verbose" && echo " ...after $LIBS" 1>&6 10909 10910echo "${as_me:-configure}:10910: testing ...after $LIBS ..." 1>&5 10911 10912fi 10913 10914 fi 10915 ;; 10916 esac 10917 10918echo "$as_me:10918: checking for usable X Toolkit package" >&5 10919echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 10920if test "${cf_cv_xt_ice_compat+set}" = set; then 10921 echo $ECHO_N "(cached) $ECHO_C" >&6 10922else 10923 10924cat >conftest.$ac_ext <<_ACEOF 10925#line 10925 "configure" 10926#include "confdefs.h" 10927 10928#include <X11/Shell.h> 10929 10930int 10931main () 10932{ 10933int num = IceConnectionNumber(0) 10934 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939rm -f conftest.$ac_objext conftest$ac_exeext 10940if { (eval echo "$as_me:10940: \"$ac_link\"") >&5 10941 (eval $ac_link) 2>&5 10942 ac_status=$? 10943 echo "$as_me:10943: \$? = $ac_status" >&5 10944 (exit $ac_status); } && 10945 { ac_try='test -s conftest$ac_exeext' 10946 { (eval echo "$as_me:10946: \"$ac_try\"") >&5 10947 (eval $ac_try) 2>&5 10948 ac_status=$? 10949 echo "$as_me:10949: \$? = $ac_status" >&5 10950 (exit $ac_status); }; }; then 10951 cf_cv_xt_ice_compat=yes 10952else 10953 echo "$as_me: failed program was:" >&5 10954cat conftest.$ac_ext >&5 10955cf_cv_xt_ice_compat=no 10956fi 10957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10958fi 10959echo "$as_me:10959: result: $cf_cv_xt_ice_compat" >&5 10960echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 10961 10962 if test "$cf_cv_xt_ice_compat" = no 10963 then 10964 # workaround for broken ".pc" files used for X Toolkit. 10965 case "x$X_PRE_LIBS" in #(vi 10966 *-lICE*) 10967 case "x$LIBS" in #(vi 10968 *-lICE*) #(vi 10969 ;; 10970 *) 10971 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 10972 10973echo "${as_me:-configure}:10973: testing work around broken ICE dependency ..." 1>&5 10974 10975if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 10976 test -n "$verbose" && echo " found package ice" 1>&6 10977 10978echo "${as_me:-configure}:10978: testing found package ice ..." 1>&5 10979 10980 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 10981 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 10982 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 10983 10984echo "${as_me:-configure}:10984: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10985 10986 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 10987 10988echo "${as_me:-configure}:10988: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 10989 10990cf_fix_cppflags=no 10991cf_new_cflags= 10992cf_new_cppflags= 10993cf_new_extra_cppflags= 10994 10995for cf_add_cflags in $cf_pkgconfig_incs 10996do 10997case $cf_fix_cppflags in 10998no) 10999 case $cf_add_cflags in #(vi 11000 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11001 case $cf_add_cflags in 11002 -D*) 11003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11004 11005 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11006 && test -z "${cf_tst_cflags}" \ 11007 && cf_fix_cppflags=yes 11008 11009 if test $cf_fix_cppflags = yes ; then 11010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11011 continue 11012 elif test "${cf_tst_cflags}" = "\"'" ; then 11013 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11014 continue 11015 fi 11016 ;; 11017 esac 11018 case "$CPPFLAGS" in 11019 *$cf_add_cflags) #(vi 11020 ;; 11021 *) #(vi 11022 case $cf_add_cflags in #(vi 11023 -D*) 11024 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11025 11026CPPFLAGS=`echo "$CPPFLAGS" | \ 11027 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11028 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11029 11030 ;; 11031 esac 11032 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11033 ;; 11034 esac 11035 ;; 11036 *) 11037 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11038 ;; 11039 esac 11040 ;; 11041yes) 11042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11043 11044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11045 11046 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11047 && test -z "${cf_tst_cflags}" \ 11048 && cf_fix_cppflags=no 11049 ;; 11050esac 11051done 11052 11053if test -n "$cf_new_cflags" ; then 11054 11055 CFLAGS="$CFLAGS $cf_new_cflags" 11056fi 11057 11058if test -n "$cf_new_cppflags" ; then 11059 11060 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11061fi 11062 11063if test -n "$cf_new_extra_cppflags" ; then 11064 11065 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11066fi 11067 11068 LIBS="$cf_pkgconfig_libs $LIBS" 11069 11070if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 11071 test -n "$verbose" && echo " found package sm" 1>&6 11072 11073echo "${as_me:-configure}:11073: testing found package sm ..." 1>&5 11074 11075 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 11076 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 11077 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11078 11079echo "${as_me:-configure}:11079: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11080 11081 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11082 11083echo "${as_me:-configure}:11083: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11084 11085cf_fix_cppflags=no 11086cf_new_cflags= 11087cf_new_cppflags= 11088cf_new_extra_cppflags= 11089 11090for cf_add_cflags in $cf_pkgconfig_incs 11091do 11092case $cf_fix_cppflags in 11093no) 11094 case $cf_add_cflags in #(vi 11095 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11096 case $cf_add_cflags in 11097 -D*) 11098 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11099 11100 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11101 && test -z "${cf_tst_cflags}" \ 11102 && cf_fix_cppflags=yes 11103 11104 if test $cf_fix_cppflags = yes ; then 11105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11106 continue 11107 elif test "${cf_tst_cflags}" = "\"'" ; then 11108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11109 continue 11110 fi 11111 ;; 11112 esac 11113 case "$CPPFLAGS" in 11114 *$cf_add_cflags) #(vi 11115 ;; 11116 *) #(vi 11117 case $cf_add_cflags in #(vi 11118 -D*) 11119 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11120 11121CPPFLAGS=`echo "$CPPFLAGS" | \ 11122 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11123 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11124 11125 ;; 11126 esac 11127 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11128 ;; 11129 esac 11130 ;; 11131 *) 11132 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11133 ;; 11134 esac 11135 ;; 11136yes) 11137 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11138 11139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11140 11141 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11142 && test -z "${cf_tst_cflags}" \ 11143 && cf_fix_cppflags=no 11144 ;; 11145esac 11146done 11147 11148if test -n "$cf_new_cflags" ; then 11149 11150 CFLAGS="$CFLAGS $cf_new_cflags" 11151fi 11152 11153if test -n "$cf_new_cppflags" ; then 11154 11155 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11156fi 11157 11158if test -n "$cf_new_extra_cppflags" ; then 11159 11160 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11161fi 11162 11163 LIBS="$cf_pkgconfig_libs $LIBS" 11164 : 11165else 11166 cf_pkgconfig_incs= 11167 cf_pkgconfig_libs= 11168 : 11169fi 11170 11171else 11172 cf_pkgconfig_incs= 11173 cf_pkgconfig_libs= 11174 11175test -n "$verbose" && echo " ...before $LIBS" 1>&6 11176 11177echo "${as_me:-configure}:11177: testing ...before $LIBS ..." 1>&5 11178 11179LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 11180test -n "$verbose" && echo " ...after $LIBS" 1>&6 11181 11182echo "${as_me:-configure}:11182: testing ...after $LIBS ..." 1>&5 11183 11184fi 11185 11186 ;; 11187 esac 11188 ;; 11189 esac 11190 fi 11191 11192 cf_have_X_LIBS=yes 11193 11194else 11195 cf_pkgconfig_incs= 11196 cf_pkgconfig_libs= 11197 11198 LDFLAGS="$X_LIBS $LDFLAGS" 11199 11200test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 11201 11202echo "${as_me:-configure}:11202: testing checking additions to CFLAGS ..." 1>&5 11203 11204cf_check_cflags="$CFLAGS" 11205cf_check_cppflags="$CPPFLAGS" 11206 11207cf_fix_cppflags=no 11208cf_new_cflags= 11209cf_new_cppflags= 11210cf_new_extra_cppflags= 11211 11212for cf_add_cflags in $X_CFLAGS 11213do 11214case $cf_fix_cppflags in 11215no) 11216 case $cf_add_cflags in #(vi 11217 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11218 case $cf_add_cflags in 11219 -D*) 11220 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11221 11222 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11223 && test -z "${cf_tst_cflags}" \ 11224 && cf_fix_cppflags=yes 11225 11226 if test $cf_fix_cppflags = yes ; then 11227 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11228 continue 11229 elif test "${cf_tst_cflags}" = "\"'" ; then 11230 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11231 continue 11232 fi 11233 ;; 11234 esac 11235 case "$CPPFLAGS" in 11236 *$cf_add_cflags) #(vi 11237 ;; 11238 *) #(vi 11239 case $cf_add_cflags in #(vi 11240 -D*) 11241 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11242 11243CPPFLAGS=`echo "$CPPFLAGS" | \ 11244 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11245 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11246 11247 ;; 11248 esac 11249 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11250 ;; 11251 esac 11252 ;; 11253 *) 11254 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11255 ;; 11256 esac 11257 ;; 11258yes) 11259 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11260 11261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11262 11263 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11264 && test -z "${cf_tst_cflags}" \ 11265 && cf_fix_cppflags=no 11266 ;; 11267esac 11268done 11269 11270if test -n "$cf_new_cflags" ; then 11271 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11272 11273echo "${as_me:-configure}:11273: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11274 11275 CFLAGS="$CFLAGS $cf_new_cflags" 11276fi 11277 11278if test -n "$cf_new_cppflags" ; then 11279 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11280 11281echo "${as_me:-configure}:11281: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 11282 11283 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11284fi 11285 11286if test -n "$cf_new_extra_cppflags" ; then 11287 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 11288 11289echo "${as_me:-configure}:11289: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 11290 11291 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11292fi 11293 11294if test "$cf_check_cflags" != "$CFLAGS" ; then 11295cat >conftest.$ac_ext <<_ACEOF 11296#line 11296 "configure" 11297#include "confdefs.h" 11298#include <stdio.h> 11299int 11300main () 11301{ 11302printf("Hello world"); 11303 ; 11304 return 0; 11305} 11306_ACEOF 11307rm -f conftest.$ac_objext conftest$ac_exeext 11308if { (eval echo "$as_me:11308: \"$ac_link\"") >&5 11309 (eval $ac_link) 2>&5 11310 ac_status=$? 11311 echo "$as_me:11311: \$? = $ac_status" >&5 11312 (exit $ac_status); } && 11313 { ac_try='test -s conftest$ac_exeext' 11314 { (eval echo "$as_me:11314: \"$ac_try\"") >&5 11315 (eval $ac_try) 2>&5 11316 ac_status=$? 11317 echo "$as_me:11317: \$? = $ac_status" >&5 11318 (exit $ac_status); }; }; then 11319 : 11320else 11321 echo "$as_me: failed program was:" >&5 11322cat conftest.$ac_ext >&5 11323test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 11324 11325echo "${as_me:-configure}:11325: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 11326 11327 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then 11328 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 11329 11330echo "${as_me:-configure}:11330: testing but keeping change to \$CPPFLAGS ..." 1>&5 11331 11332 fi 11333 CFLAGS="$cf_check_flags" 11334fi 11335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11336fi 11337 11338 echo "$as_me:11338: checking for XOpenDisplay" >&5 11339echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 11340if test "${ac_cv_func_XOpenDisplay+set}" = set; then 11341 echo $ECHO_N "(cached) $ECHO_C" >&6 11342else 11343 cat >conftest.$ac_ext <<_ACEOF 11344#line 11344 "configure" 11345#include "confdefs.h" 11346/* System header to define __stub macros and hopefully few prototypes, 11347 which can conflict with char XOpenDisplay (); below. */ 11348#include <assert.h> 11349/* Override any gcc2 internal prototype to avoid an error. */ 11350#ifdef __cplusplus 11351extern "C" 11352#endif 11353/* We use char because int might match the return type of a gcc2 11354 builtin and then its argument prototype would still apply. */ 11355char XOpenDisplay (); 11356char (*f) (); 11357 11358int 11359main () 11360{ 11361/* The GNU C library defines this for functions which it implements 11362 to always fail with ENOSYS. Some functions are actually named 11363 something starting with __ and the normal name is an alias. */ 11364#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 11365choke me 11366#else 11367f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 11368#endif 11369 11370 ; 11371 return 0; 11372} 11373_ACEOF 11374rm -f conftest.$ac_objext conftest$ac_exeext 11375if { (eval echo "$as_me:11375: \"$ac_link\"") >&5 11376 (eval $ac_link) 2>&5 11377 ac_status=$? 11378 echo "$as_me:11378: \$? = $ac_status" >&5 11379 (exit $ac_status); } && 11380 { ac_try='test -s conftest$ac_exeext' 11381 { (eval echo "$as_me:11381: \"$ac_try\"") >&5 11382 (eval $ac_try) 2>&5 11383 ac_status=$? 11384 echo "$as_me:11384: \$? = $ac_status" >&5 11385 (exit $ac_status); }; }; then 11386 ac_cv_func_XOpenDisplay=yes 11387else 11388 echo "$as_me: failed program was:" >&5 11389cat conftest.$ac_ext >&5 11390ac_cv_func_XOpenDisplay=no 11391fi 11392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11393fi 11394echo "$as_me:11394: result: $ac_cv_func_XOpenDisplay" >&5 11395echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 11396if test $ac_cv_func_XOpenDisplay = yes; then 11397 : 11398else 11399 11400 echo "$as_me:11400: checking for XOpenDisplay in -lX11" >&5 11401echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 11402if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 11403 echo $ECHO_N "(cached) $ECHO_C" >&6 11404else 11405 ac_check_lib_save_LIBS=$LIBS 11406LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 11407cat >conftest.$ac_ext <<_ACEOF 11408#line 11408 "configure" 11409#include "confdefs.h" 11410 11411/* Override any gcc2 internal prototype to avoid an error. */ 11412#ifdef __cplusplus 11413extern "C" 11414#endif 11415/* We use char because int might match the return type of a gcc2 11416 builtin and then its argument prototype would still apply. */ 11417char XOpenDisplay (); 11418int 11419main () 11420{ 11421XOpenDisplay (); 11422 ; 11423 return 0; 11424} 11425_ACEOF 11426rm -f conftest.$ac_objext conftest$ac_exeext 11427if { (eval echo "$as_me:11427: \"$ac_link\"") >&5 11428 (eval $ac_link) 2>&5 11429 ac_status=$? 11430 echo "$as_me:11430: \$? = $ac_status" >&5 11431 (exit $ac_status); } && 11432 { ac_try='test -s conftest$ac_exeext' 11433 { (eval echo "$as_me:11433: \"$ac_try\"") >&5 11434 (eval $ac_try) 2>&5 11435 ac_status=$? 11436 echo "$as_me:11436: \$? = $ac_status" >&5 11437 (exit $ac_status); }; }; then 11438 ac_cv_lib_X11_XOpenDisplay=yes 11439else 11440 echo "$as_me: failed program was:" >&5 11441cat conftest.$ac_ext >&5 11442ac_cv_lib_X11_XOpenDisplay=no 11443fi 11444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11445LIBS=$ac_check_lib_save_LIBS 11446fi 11447echo "$as_me:11447: result: $ac_cv_lib_X11_XOpenDisplay" >&5 11448echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 11449if test $ac_cv_lib_X11_XOpenDisplay = yes; then 11450 LIBS="-lX11 $LIBS" 11451fi 11452 11453fi 11454 11455 echo "$as_me:11455: checking for XtAppInitialize" >&5 11456echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 11457if test "${ac_cv_func_XtAppInitialize+set}" = set; then 11458 echo $ECHO_N "(cached) $ECHO_C" >&6 11459else 11460 cat >conftest.$ac_ext <<_ACEOF 11461#line 11461 "configure" 11462#include "confdefs.h" 11463/* System header to define __stub macros and hopefully few prototypes, 11464 which can conflict with char XtAppInitialize (); below. */ 11465#include <assert.h> 11466/* Override any gcc2 internal prototype to avoid an error. */ 11467#ifdef __cplusplus 11468extern "C" 11469#endif 11470/* We use char because int might match the return type of a gcc2 11471 builtin and then its argument prototype would still apply. */ 11472char XtAppInitialize (); 11473char (*f) (); 11474 11475int 11476main () 11477{ 11478/* The GNU C library defines this for functions which it implements 11479 to always fail with ENOSYS. Some functions are actually named 11480 something starting with __ and the normal name is an alias. */ 11481#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 11482choke me 11483#else 11484f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 11485#endif 11486 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491rm -f conftest.$ac_objext conftest$ac_exeext 11492if { (eval echo "$as_me:11492: \"$ac_link\"") >&5 11493 (eval $ac_link) 2>&5 11494 ac_status=$? 11495 echo "$as_me:11495: \$? = $ac_status" >&5 11496 (exit $ac_status); } && 11497 { ac_try='test -s conftest$ac_exeext' 11498 { (eval echo "$as_me:11498: \"$ac_try\"") >&5 11499 (eval $ac_try) 2>&5 11500 ac_status=$? 11501 echo "$as_me:11501: \$? = $ac_status" >&5 11502 (exit $ac_status); }; }; then 11503 ac_cv_func_XtAppInitialize=yes 11504else 11505 echo "$as_me: failed program was:" >&5 11506cat conftest.$ac_ext >&5 11507ac_cv_func_XtAppInitialize=no 11508fi 11509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11510fi 11511echo "$as_me:11511: result: $ac_cv_func_XtAppInitialize" >&5 11512echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 11513if test $ac_cv_func_XtAppInitialize = yes; then 11514 : 11515else 11516 11517 echo "$as_me:11517: checking for XtAppInitialize in -lXt" >&5 11518echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 11519if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 11520 echo $ECHO_N "(cached) $ECHO_C" >&6 11521else 11522 ac_check_lib_save_LIBS=$LIBS 11523LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 11524cat >conftest.$ac_ext <<_ACEOF 11525#line 11525 "configure" 11526#include "confdefs.h" 11527 11528/* Override any gcc2 internal prototype to avoid an error. */ 11529#ifdef __cplusplus 11530extern "C" 11531#endif 11532/* We use char because int might match the return type of a gcc2 11533 builtin and then its argument prototype would still apply. */ 11534char XtAppInitialize (); 11535int 11536main () 11537{ 11538XtAppInitialize (); 11539 ; 11540 return 0; 11541} 11542_ACEOF 11543rm -f conftest.$ac_objext conftest$ac_exeext 11544if { (eval echo "$as_me:11544: \"$ac_link\"") >&5 11545 (eval $ac_link) 2>&5 11546 ac_status=$? 11547 echo "$as_me:11547: \$? = $ac_status" >&5 11548 (exit $ac_status); } && 11549 { ac_try='test -s conftest$ac_exeext' 11550 { (eval echo "$as_me:11550: \"$ac_try\"") >&5 11551 (eval $ac_try) 2>&5 11552 ac_status=$? 11553 echo "$as_me:11553: \$? = $ac_status" >&5 11554 (exit $ac_status); }; }; then 11555 ac_cv_lib_Xt_XtAppInitialize=yes 11556else 11557 echo "$as_me: failed program was:" >&5 11558cat conftest.$ac_ext >&5 11559ac_cv_lib_Xt_XtAppInitialize=no 11560fi 11561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11562LIBS=$ac_check_lib_save_LIBS 11563fi 11564echo "$as_me:11564: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 11565echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 11566if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 11567 11568cat >>confdefs.h <<\EOF 11569#define HAVE_LIBXT 1 11570EOF 11571 11572 cf_have_X_LIBS=Xt 11573 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 11574fi 11575 11576fi 11577 11578fi 11579 11580if test $cf_have_X_LIBS = no ; then 11581 { echo "$as_me:11581: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11582test program. You will have to check and add the proper libraries by hand 11583to makefile." >&5 11584echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11585test program. You will have to check and add the proper libraries by hand 11586to makefile." >&2;} 11587fi 11588 11589cf_x_athena_root=$cf_x_athena 11590cf_x_athena_inc="" 11591 11592for cf_path in default \ 11593 /usr/contrib/X11R6 \ 11594 /usr/contrib/X11R5 \ 11595 /usr/lib/X11R5 \ 11596 /usr/local 11597do 11598 if test -z "$cf_x_athena_inc" ; then 11599 cf_save="$CPPFLAGS" 11600 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 11601 if test $cf_path != default ; then 11602 CPPFLAGS="$cf_save -I$cf_path/include" 11603 echo "$as_me:11603: checking for $cf_test in $cf_path" >&5 11604echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 11605 else 11606 echo "$as_me:11606: checking for $cf_test" >&5 11607echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 11608 fi 11609 cat >conftest.$ac_ext <<_ACEOF 11610#line 11610 "configure" 11611#include "confdefs.h" 11612 11613#include <X11/Intrinsic.h> 11614#include <$cf_test> 11615int 11616main () 11617{ 11618 11619 ; 11620 return 0; 11621} 11622_ACEOF 11623rm -f conftest.$ac_objext 11624if { (eval echo "$as_me:11624: \"$ac_compile\"") >&5 11625 (eval $ac_compile) 2>&5 11626 ac_status=$? 11627 echo "$as_me:11627: \$? = $ac_status" >&5 11628 (exit $ac_status); } && 11629 { ac_try='test -s conftest.$ac_objext' 11630 { (eval echo "$as_me:11630: \"$ac_try\"") >&5 11631 (eval $ac_try) 2>&5 11632 ac_status=$? 11633 echo "$as_me:11633: \$? = $ac_status" >&5 11634 (exit $ac_status); }; }; then 11635 cf_result=yes 11636else 11637 echo "$as_me: failed program was:" >&5 11638cat conftest.$ac_ext >&5 11639cf_result=no 11640fi 11641rm -f conftest.$ac_objext conftest.$ac_ext 11642 echo "$as_me:11642: result: $cf_result" >&5 11643echo "${ECHO_T}$cf_result" >&6 11644 if test "$cf_result" = yes ; then 11645 cf_x_athena_inc=$cf_path 11646 break 11647 else 11648 CPPFLAGS="$cf_save" 11649 fi 11650 fi 11651done 11652 11653if test -z "$cf_x_athena_inc" ; then 11654 { echo "$as_me:11654: WARNING: Unable to successfully find Athena header files with test program" >&5 11655echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;} 11656elif test "$cf_x_athena_inc" != default ; then 11657 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc" 11658fi 11659 11660cf_x_athena_root=$cf_x_athena 11661cf_x_athena_lib="" 11662 11663for cf_path in default \ 11664 /usr/contrib/X11R6 \ 11665 /usr/contrib/X11R5 \ 11666 /usr/lib/X11R5 \ 11667 /usr/local 11668do 11669 for cf_lib in \ 11670 ${cf_x_athena_root} \ 11671 ${cf_x_athena_root}7 \ 11672 ${cf_x_athena_root}6 11673 do 11674 for cf_libs in \ 11675 "-l$cf_lib -lXmu" \ 11676 "-l$cf_lib -lXpm -lXmu" \ 11677 "-l${cf_lib}_s -lXmu_s" 11678 do 11679 if test -z "$cf_x_athena_lib" ; then 11680 cf_save="$LIBS" 11681 cf_test=XawSimpleMenuAddGlobalActions 11682 if test $cf_path != default ; then 11683 LIBS="-L$cf_path/lib $cf_libs $LIBS" 11684 echo "$as_me:11684: checking for $cf_libs in $cf_path" >&5 11685echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6 11686 else 11687 LIBS="$cf_libs $LIBS" 11688 echo "$as_me:11688: checking for $cf_test in $cf_libs" >&5 11689echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 11690 fi 11691 cat >conftest.$ac_ext <<_ACEOF 11692#line 11692 "configure" 11693#include "confdefs.h" 11694 11695#include <X11/Intrinsic.h> 11696#include <X11/$cf_x_athena_root/SimpleMenu.h> 11697 11698int 11699main () 11700{ 11701 11702$cf_test((XtAppContext) 0) 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707rm -f conftest.$ac_objext conftest$ac_exeext 11708if { (eval echo "$as_me:11708: \"$ac_link\"") >&5 11709 (eval $ac_link) 2>&5 11710 ac_status=$? 11711 echo "$as_me:11711: \$? = $ac_status" >&5 11712 (exit $ac_status); } && 11713 { ac_try='test -s conftest$ac_exeext' 11714 { (eval echo "$as_me:11714: \"$ac_try\"") >&5 11715 (eval $ac_try) 2>&5 11716 ac_status=$? 11717 echo "$as_me:11717: \$? = $ac_status" >&5 11718 (exit $ac_status); }; }; then 11719 cf_result=yes 11720else 11721 echo "$as_me: failed program was:" >&5 11722cat conftest.$ac_ext >&5 11723cf_result=no 11724fi 11725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11726 echo "$as_me:11726: result: $cf_result" >&5 11727echo "${ECHO_T}$cf_result" >&6 11728 if test "$cf_result" = yes ; then 11729 cf_x_athena_lib="$cf_libs" 11730 break 11731 fi 11732 LIBS="$cf_save" 11733 fi 11734 done # cf_libs 11735 test -n "$cf_x_athena_lib" && break 11736 done # cf_lib 11737done 11738 11739if test -z "$cf_x_athena_lib" ; then 11740 { { echo "$as_me:11740: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 11741echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 11742 { (exit 1); exit 1; }; } 11743fi 11744 11745cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11746 11747cat >>confdefs.h <<EOF 11748#define $cf_x_athena_LIBS 1 11749EOF 11750 11751fi 11752 11753for ac_header in X11/Xpoll.h 11754do 11755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11756echo "$as_me:11756: checking for $ac_header" >&5 11757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11758if eval "test \"\${$as_ac_Header+set}\" = set"; then 11759 echo $ECHO_N "(cached) $ECHO_C" >&6 11760else 11761 cat >conftest.$ac_ext <<_ACEOF 11762#line 11762 "configure" 11763#include "confdefs.h" 11764#include <$ac_header> 11765_ACEOF 11766if { (eval echo "$as_me:11766: \"$ac_cpp conftest.$ac_ext\"") >&5 11767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11768 ac_status=$? 11769 egrep -v '^ *\+' conftest.er1 >conftest.err 11770 rm -f conftest.er1 11771 cat conftest.err >&5 11772 echo "$as_me:11772: \$? = $ac_status" >&5 11773 (exit $ac_status); } >/dev/null; then 11774 if test -s conftest.err; then 11775 ac_cpp_err=$ac_c_preproc_warn_flag 11776 else 11777 ac_cpp_err= 11778 fi 11779else 11780 ac_cpp_err=yes 11781fi 11782if test -z "$ac_cpp_err"; then 11783 eval "$as_ac_Header=yes" 11784else 11785 echo "$as_me: failed program was:" >&5 11786 cat conftest.$ac_ext >&5 11787 eval "$as_ac_Header=no" 11788fi 11789rm -f conftest.err conftest.$ac_ext 11790fi 11791echo "$as_me:11791: result: `eval echo '${'$as_ac_Header'}'`" >&5 11792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11793if test `eval echo '${'$as_ac_Header'}'` = yes; then 11794 cat >>confdefs.h <<EOF 11795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11796EOF 11797 11798fi 11799done 11800 11801echo "$as_me:11801: checking for declaration of fd_set" >&5 11802echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 11803if test "${cf_cv_type_fd_set+set}" = set; then 11804 echo $ECHO_N "(cached) $ECHO_C" >&6 11805else 11806 11807echo "${as_me:-configure}:11807: testing sys/types alone ..." 1>&5 11808 11809cat >conftest.$ac_ext <<_ACEOF 11810#line 11810 "configure" 11811#include "confdefs.h" 11812 11813#include <sys/types.h> 11814int 11815main () 11816{ 11817fd_set x 11818 ; 11819 return 0; 11820} 11821_ACEOF 11822rm -f conftest.$ac_objext 11823if { (eval echo "$as_me:11823: \"$ac_compile\"") >&5 11824 (eval $ac_compile) 2>&5 11825 ac_status=$? 11826 echo "$as_me:11826: \$? = $ac_status" >&5 11827 (exit $ac_status); } && 11828 { ac_try='test -s conftest.$ac_objext' 11829 { (eval echo "$as_me:11829: \"$ac_try\"") >&5 11830 (eval $ac_try) 2>&5 11831 ac_status=$? 11832 echo "$as_me:11832: \$? = $ac_status" >&5 11833 (exit $ac_status); }; }; then 11834 cf_cv_type_fd_set=sys/types.h 11835else 11836 echo "$as_me: failed program was:" >&5 11837cat conftest.$ac_ext >&5 11838 11839echo "${as_me:-configure}:11839: testing X11/Xpoll.h ..." 1>&5 11840 11841cat >conftest.$ac_ext <<_ACEOF 11842#line 11842 "configure" 11843#include "confdefs.h" 11844 11845#ifdef HAVE_X11_XPOLL_H 11846#include <X11/Xpoll.h> 11847#endif 11848int 11849main () 11850{ 11851fd_set x 11852 ; 11853 return 0; 11854} 11855_ACEOF 11856rm -f conftest.$ac_objext 11857if { (eval echo "$as_me:11857: \"$ac_compile\"") >&5 11858 (eval $ac_compile) 2>&5 11859 ac_status=$? 11860 echo "$as_me:11860: \$? = $ac_status" >&5 11861 (exit $ac_status); } && 11862 { ac_try='test -s conftest.$ac_objext' 11863 { (eval echo "$as_me:11863: \"$ac_try\"") >&5 11864 (eval $ac_try) 2>&5 11865 ac_status=$? 11866 echo "$as_me:11866: \$? = $ac_status" >&5 11867 (exit $ac_status); }; }; then 11868 cf_cv_type_fd_set=X11/Xpoll.h 11869else 11870 echo "$as_me: failed program was:" >&5 11871cat conftest.$ac_ext >&5 11872 11873echo "${as_me:-configure}:11873: testing sys/select.h ..." 1>&5 11874 11875cat >conftest.$ac_ext <<_ACEOF 11876#line 11876 "configure" 11877#include "confdefs.h" 11878 11879#include <sys/types.h> 11880#include <sys/select.h> 11881int 11882main () 11883{ 11884fd_set x 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889rm -f conftest.$ac_objext 11890if { (eval echo "$as_me:11890: \"$ac_compile\"") >&5 11891 (eval $ac_compile) 2>&5 11892 ac_status=$? 11893 echo "$as_me:11893: \$? = $ac_status" >&5 11894 (exit $ac_status); } && 11895 { ac_try='test -s conftest.$ac_objext' 11896 { (eval echo "$as_me:11896: \"$ac_try\"") >&5 11897 (eval $ac_try) 2>&5 11898 ac_status=$? 11899 echo "$as_me:11899: \$? = $ac_status" >&5 11900 (exit $ac_status); }; }; then 11901 cf_cv_type_fd_set=sys/select.h 11902else 11903 echo "$as_me: failed program was:" >&5 11904cat conftest.$ac_ext >&5 11905cf_cv_type_fd_set=unknown 11906fi 11907rm -f conftest.$ac_objext conftest.$ac_ext 11908fi 11909rm -f conftest.$ac_objext conftest.$ac_ext 11910fi 11911rm -f conftest.$ac_objext conftest.$ac_ext 11912fi 11913echo "$as_me:11913: result: $cf_cv_type_fd_set" >&5 11914echo "${ECHO_T}$cf_cv_type_fd_set" >&6 11915if test $cf_cv_type_fd_set = sys/select.h ; then 11916 11917cat >>confdefs.h <<\EOF 11918#define USE_SYS_SELECT_H 1 11919EOF 11920 11921fi 11922 11923echo "$as_me:11923: checking for declaration of fd_mask" >&5 11924echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 11925if test "${cf_cv_type_fd_mask+set}" = set; then 11926 echo $ECHO_N "(cached) $ECHO_C" >&6 11927else 11928 11929 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 11930 cat >conftest.$ac_ext <<_ACEOF 11931#line 11931 "configure" 11932#include "confdefs.h" 11933 11934#include <X11/Xpoll.h> 11935int 11936main () 11937{ 11938fd_mask x 11939 ; 11940 return 0; 11941} 11942_ACEOF 11943rm -f conftest.$ac_objext 11944if { (eval echo "$as_me:11944: \"$ac_compile\"") >&5 11945 (eval $ac_compile) 2>&5 11946 ac_status=$? 11947 echo "$as_me:11947: \$? = $ac_status" >&5 11948 (exit $ac_status); } && 11949 { ac_try='test -s conftest.$ac_objext' 11950 { (eval echo "$as_me:11950: \"$ac_try\"") >&5 11951 (eval $ac_try) 2>&5 11952 ac_status=$? 11953 echo "$as_me:11953: \$? = $ac_status" >&5 11954 (exit $ac_status); }; }; then 11955 : 11956else 11957 echo "$as_me: failed program was:" >&5 11958cat conftest.$ac_ext >&5 11959 11960echo "${as_me:-configure}:11960: testing if we must define CSRG_BASED ..." 1>&5 11961 11962# Xosdefs.h on Mac OS X may not define this (but it should). 11963 cat >conftest.$ac_ext <<_ACEOF 11964#line 11964 "configure" 11965#include "confdefs.h" 11966 11967#define CSRG_BASED 11968#include <X11/Xpoll.h> 11969int 11970main () 11971{ 11972fd_mask x 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977rm -f conftest.$ac_objext 11978if { (eval echo "$as_me:11978: \"$ac_compile\"") >&5 11979 (eval $ac_compile) 2>&5 11980 ac_status=$? 11981 echo "$as_me:11981: \$? = $ac_status" >&5 11982 (exit $ac_status); } && 11983 { ac_try='test -s conftest.$ac_objext' 11984 { (eval echo "$as_me:11984: \"$ac_try\"") >&5 11985 (eval $ac_try) 2>&5 11986 ac_status=$? 11987 echo "$as_me:11987: \$? = $ac_status" >&5 11988 (exit $ac_status); }; }; then 11989 cf_cv_type_fd_mask=CSRG_BASED 11990else 11991 echo "$as_me: failed program was:" >&5 11992cat conftest.$ac_ext >&5 11993fi 11994rm -f conftest.$ac_objext conftest.$ac_ext 11995fi 11996rm -f conftest.$ac_objext conftest.$ac_ext 11997 else 11998 cf_cv_type_fd_mask=$cf_cv_type_fd_set 11999 fi 12000 12001fi 12002echo "$as_me:12002: result: $cf_cv_type_fd_mask" >&5 12003echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 12004if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 12005 12006cat >>confdefs.h <<\EOF 12007#define CSRG_BASED 1 12008EOF 12009 12010fi 12011 12012echo "$as_me:12012: checking for IRIX 6.5 baud-rate redefinitions" >&5 12013echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 12014if test "${cf_cv_termio_c_ispeed+set}" = set; then 12015 echo $ECHO_N "(cached) $ECHO_C" >&6 12016else 12017 12018cat >conftest.$ac_ext <<_ACEOF 12019#line 12019 "configure" 12020#include "confdefs.h" 12021 12022#include <sys/types.h> 12023#include <sys/termio.h> 12024int 12025main () 12026{ 12027 12028struct termio foo; 12029foo.c_ispeed = B38400; 12030foo.c_ospeed = B9600; 12031 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036rm -f conftest.$ac_objext 12037if { (eval echo "$as_me:12037: \"$ac_compile\"") >&5 12038 (eval $ac_compile) 2>&5 12039 ac_status=$? 12040 echo "$as_me:12040: \$? = $ac_status" >&5 12041 (exit $ac_status); } && 12042 { ac_try='test -s conftest.$ac_objext' 12043 { (eval echo "$as_me:12043: \"$ac_try\"") >&5 12044 (eval $ac_try) 2>&5 12045 ac_status=$? 12046 echo "$as_me:12046: \$? = $ac_status" >&5 12047 (exit $ac_status); }; }; then 12048 cf_cv_termio_c_ispeed=yes 12049 12050else 12051 echo "$as_me: failed program was:" >&5 12052cat conftest.$ac_ext >&5 12053cf_cv_termio_c_ispeed=no 12054fi 12055rm -f conftest.$ac_objext conftest.$ac_ext 12056 12057fi 12058echo "$as_me:12058: result: $cf_cv_termio_c_ispeed" >&5 12059echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 12060test "$cf_cv_termio_c_ispeed" = yes && 12061cat >>confdefs.h <<\EOF 12062#define HAVE_TERMIO_C_ISPEED 1 12063EOF 12064 12065# If we notice Xcursor, there is a workaround needed. 12066echo "$as_me:12066: checking for XcursorGetTheme in -lXcursor" >&5 12067echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6 12068if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then 12069 echo $ECHO_N "(cached) $ECHO_C" >&6 12070else 12071 ac_check_lib_save_LIBS=$LIBS 12072LIBS="-lXcursor $LIBS" 12073cat >conftest.$ac_ext <<_ACEOF 12074#line 12074 "configure" 12075#include "confdefs.h" 12076 12077/* Override any gcc2 internal prototype to avoid an error. */ 12078#ifdef __cplusplus 12079extern "C" 12080#endif 12081/* We use char because int might match the return type of a gcc2 12082 builtin and then its argument prototype would still apply. */ 12083char XcursorGetTheme (); 12084int 12085main () 12086{ 12087XcursorGetTheme (); 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092rm -f conftest.$ac_objext conftest$ac_exeext 12093if { (eval echo "$as_me:12093: \"$ac_link\"") >&5 12094 (eval $ac_link) 2>&5 12095 ac_status=$? 12096 echo "$as_me:12096: \$? = $ac_status" >&5 12097 (exit $ac_status); } && 12098 { ac_try='test -s conftest$ac_exeext' 12099 { (eval echo "$as_me:12099: \"$ac_try\"") >&5 12100 (eval $ac_try) 2>&5 12101 ac_status=$? 12102 echo "$as_me:12102: \$? = $ac_status" >&5 12103 (exit $ac_status); }; }; then 12104 ac_cv_lib_Xcursor_XcursorGetTheme=yes 12105else 12106 echo "$as_me: failed program was:" >&5 12107cat conftest.$ac_ext >&5 12108ac_cv_lib_Xcursor_XcursorGetTheme=no 12109fi 12110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12111LIBS=$ac_check_lib_save_LIBS 12112fi 12113echo "$as_me:12113: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5 12114echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6 12115if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then 12116 cat >>confdefs.h <<\EOF 12117#define HAVE_LIB_XCURSOR 1 12118EOF 12119 12120fi 12121 12122LIBS="$LIBS $X_EXTRA_LIBS" 12123 12124for ac_header in \ 12125stropts.h \ 12126 12127do 12128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12129echo "$as_me:12129: checking for $ac_header" >&5 12130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12131if eval "test \"\${$as_ac_Header+set}\" = set"; then 12132 echo $ECHO_N "(cached) $ECHO_C" >&6 12133else 12134 cat >conftest.$ac_ext <<_ACEOF 12135#line 12135 "configure" 12136#include "confdefs.h" 12137#include <$ac_header> 12138_ACEOF 12139if { (eval echo "$as_me:12139: \"$ac_cpp conftest.$ac_ext\"") >&5 12140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12141 ac_status=$? 12142 egrep -v '^ *\+' conftest.er1 >conftest.err 12143 rm -f conftest.er1 12144 cat conftest.err >&5 12145 echo "$as_me:12145: \$? = $ac_status" >&5 12146 (exit $ac_status); } >/dev/null; then 12147 if test -s conftest.err; then 12148 ac_cpp_err=$ac_c_preproc_warn_flag 12149 else 12150 ac_cpp_err= 12151 fi 12152else 12153 ac_cpp_err=yes 12154fi 12155if test -z "$ac_cpp_err"; then 12156 eval "$as_ac_Header=yes" 12157else 12158 echo "$as_me: failed program was:" >&5 12159 cat conftest.$ac_ext >&5 12160 eval "$as_ac_Header=no" 12161fi 12162rm -f conftest.err conftest.$ac_ext 12163fi 12164echo "$as_me:12164: result: `eval echo '${'$as_ac_Header'}'`" >&5 12165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12166if test `eval echo '${'$as_ac_Header'}'` = yes; then 12167 cat >>confdefs.h <<EOF 12168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12169EOF 12170 12171fi 12172done 12173 12174cf_func_grantpt="grantpt ptsname" 12175case $host_os in #(vi 12176darwin[0-9].*) #(vi 12177 ;; 12178*) 12179 cf_func_grantpt="$cf_func_grantpt posix_openpt" 12180 ;; 12181esac 12182 12183for ac_func in $cf_func_grantpt 12184do 12185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12186echo "$as_me:12186: checking for $ac_func" >&5 12187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12188if eval "test \"\${$as_ac_var+set}\" = set"; then 12189 echo $ECHO_N "(cached) $ECHO_C" >&6 12190else 12191 cat >conftest.$ac_ext <<_ACEOF 12192#line 12192 "configure" 12193#include "confdefs.h" 12194/* System header to define __stub macros and hopefully few prototypes, 12195 which can conflict with char $ac_func (); below. */ 12196#include <assert.h> 12197/* Override any gcc2 internal prototype to avoid an error. */ 12198#ifdef __cplusplus 12199extern "C" 12200#endif 12201/* We use char because int might match the return type of a gcc2 12202 builtin and then its argument prototype would still apply. */ 12203char $ac_func (); 12204char (*f) (); 12205 12206int 12207main () 12208{ 12209/* The GNU C library defines this for functions which it implements 12210 to always fail with ENOSYS. Some functions are actually named 12211 something starting with __ and the normal name is an alias. */ 12212#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12213choke me 12214#else 12215f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12216#endif 12217 12218 ; 12219 return 0; 12220} 12221_ACEOF 12222rm -f conftest.$ac_objext conftest$ac_exeext 12223if { (eval echo "$as_me:12223: \"$ac_link\"") >&5 12224 (eval $ac_link) 2>&5 12225 ac_status=$? 12226 echo "$as_me:12226: \$? = $ac_status" >&5 12227 (exit $ac_status); } && 12228 { ac_try='test -s conftest$ac_exeext' 12229 { (eval echo "$as_me:12229: \"$ac_try\"") >&5 12230 (eval $ac_try) 2>&5 12231 ac_status=$? 12232 echo "$as_me:12232: \$? = $ac_status" >&5 12233 (exit $ac_status); }; }; then 12234 eval "$as_ac_var=yes" 12235else 12236 echo "$as_me: failed program was:" >&5 12237cat conftest.$ac_ext >&5 12238eval "$as_ac_var=no" 12239fi 12240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12241fi 12242echo "$as_me:12242: result: `eval echo '${'$as_ac_var'}'`" >&5 12243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12244if test `eval echo '${'$as_ac_var'}'` = yes; then 12245 cat >>confdefs.h <<EOF 12246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12247EOF 12248 12249fi 12250done 12251 12252cf_grantpt_opts= 12253if test "x$ac_cv_func_grantpt" = "xyes" ; then 12254 echo "$as_me:12254: checking if grantpt really works" >&5 12255echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 12256 cat >conftest.$ac_ext <<_ACEOF 12257#line 12257 "configure" 12258#include "confdefs.h" 12259 12260#include <stdlib.h> 12261#include <termios.h> 12262#include <unistd.h> 12263#include <signal.h> 12264#include <fcntl.h> 12265#include <errno.h> 12266 12267#ifndef HAVE_POSIX_OPENPT 12268#undef posix_openpt 12269#define posix_openpt(mode) open("/dev/ptmx", mode) 12270#endif 12271 12272#ifdef HAVE_STROPTS_H 12273#include <stropts.h> 12274#endif 12275 12276static void failed(int code) 12277{ 12278 perror("conftest"); 12279 exit(code); 12280} 12281 12282static void my_timeout(int sig) 12283{ 12284 exit(99); 12285} 12286 12287int 12288main () 12289{ 12290 12291 int code = 0; 12292 int rc; 12293 int pty; 12294 int tty; 12295 char *slave; 12296 struct termios tio; 12297 12298 signal(SIGALRM, my_timeout); 12299 12300 if (alarm(2) == 9) 12301 failed(9); 12302 else if ((pty = posix_openpt(O_RDWR)) < 0) 12303 failed(1); 12304 else if ((rc = grantpt(pty)) < 0) 12305 failed(2); 12306 else if ((rc = unlockpt(pty)) < 0) 12307 failed(3); 12308 else if ((slave = ptsname(pty)) == 0) 12309 failed(4); 12310#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12311 else if (!isatty(pty)) 12312 failed(4); 12313#endif 12314#if CONFTEST >= 4 12315 else if ((rc = tcgetattr(pty, &tio)) < 0) 12316 failed(20); 12317 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12318 failed(21); 12319#endif 12320 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12321 * Linux does treat it that way. 12322 */ 12323 else if ((tty = open(slave, O_RDWR)) < 0) 12324 failed(5); 12325#ifdef CONFTEST 12326#ifdef I_PUSH 12327#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12328 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12329 failed(10); 12330#endif 12331#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12332 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12333 failed(11); 12334#endif 12335#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12336 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12337 failed(12); 12338#endif 12339#endif /* I_PUSH */ 12340#if CONFTEST >= 5 12341 else if ((rc = tcgetattr(tty, &tio)) < 0) 12342 failed(30); 12343 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12344 failed(31); 12345#endif 12346#endif /* CONFTEST */ 12347 12348 ${cf_cv_main_return:-return}(code); 12349 12350 ; 12351 return 0; 12352} 12353_ACEOF 12354rm -f conftest.$ac_objext conftest$ac_exeext 12355if { (eval echo "$as_me:12355: \"$ac_link\"") >&5 12356 (eval $ac_link) 2>&5 12357 ac_status=$? 12358 echo "$as_me:12358: \$? = $ac_status" >&5 12359 (exit $ac_status); } && 12360 { ac_try='test -s conftest$ac_exeext' 12361 { (eval echo "$as_me:12361: \"$ac_try\"") >&5 12362 (eval $ac_try) 2>&5 12363 ac_status=$? 12364 echo "$as_me:12364: \$? = $ac_status" >&5 12365 (exit $ac_status); }; }; then 12366 12367 if test "$cross_compiling" = yes; then 12368 ac_cv_func_grantpt=maybe 12369else 12370 cat >conftest.$ac_ext <<_ACEOF 12371#line 12371 "configure" 12372#include "confdefs.h" 12373 12374#include <stdlib.h> 12375#include <termios.h> 12376#include <unistd.h> 12377#include <signal.h> 12378#include <fcntl.h> 12379#include <errno.h> 12380 12381#ifndef HAVE_POSIX_OPENPT 12382#undef posix_openpt 12383#define posix_openpt(mode) open("/dev/ptmx", mode) 12384#endif 12385 12386#ifdef HAVE_STROPTS_H 12387#include <stropts.h> 12388#endif 12389 12390static void failed(int code) 12391{ 12392 perror("conftest"); 12393 exit(code); 12394} 12395 12396static void my_timeout(int sig) 12397{ 12398 exit(99); 12399} 12400 12401int main(void) 12402{ 12403 12404 int code = 0; 12405 int rc; 12406 int pty; 12407 int tty; 12408 char *slave; 12409 struct termios tio; 12410 12411 signal(SIGALRM, my_timeout); 12412 12413 if (alarm(2) == 9) 12414 failed(9); 12415 else if ((pty = posix_openpt(O_RDWR)) < 0) 12416 failed(1); 12417 else if ((rc = grantpt(pty)) < 0) 12418 failed(2); 12419 else if ((rc = unlockpt(pty)) < 0) 12420 failed(3); 12421 else if ((slave = ptsname(pty)) == 0) 12422 failed(4); 12423#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12424 else if (!isatty(pty)) 12425 failed(4); 12426#endif 12427#if CONFTEST >= 4 12428 else if ((rc = tcgetattr(pty, &tio)) < 0) 12429 failed(20); 12430 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12431 failed(21); 12432#endif 12433 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12434 * Linux does treat it that way. 12435 */ 12436 else if ((tty = open(slave, O_RDWR)) < 0) 12437 failed(5); 12438#ifdef CONFTEST 12439#ifdef I_PUSH 12440#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12441 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12442 failed(10); 12443#endif 12444#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12445 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12446 failed(11); 12447#endif 12448#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12449 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12450 failed(12); 12451#endif 12452#endif /* I_PUSH */ 12453#if CONFTEST >= 5 12454 else if ((rc = tcgetattr(tty, &tio)) < 0) 12455 failed(30); 12456 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12457 failed(31); 12458#endif 12459#endif /* CONFTEST */ 12460 12461 ${cf_cv_main_return:-return}(code); 12462 12463} 12464 12465_ACEOF 12466rm -f conftest$ac_exeext 12467if { (eval echo "$as_me:12467: \"$ac_link\"") >&5 12468 (eval $ac_link) 2>&5 12469 ac_status=$? 12470 echo "$as_me:12470: \$? = $ac_status" >&5 12471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12472 { (eval echo "$as_me:12472: \"$ac_try\"") >&5 12473 (eval $ac_try) 2>&5 12474 ac_status=$? 12475 echo "$as_me:12475: \$? = $ac_status" >&5 12476 (exit $ac_status); }; }; then 12477 : 12478else 12479 echo "$as_me: program exited with status $ac_status" >&5 12480echo "$as_me: failed program was:" >&5 12481cat conftest.$ac_ext >&5 12482ac_cv_func_grantpt=no 12483 12484fi 12485rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12486fi 12487 12488else 12489 echo "$as_me: failed program was:" >&5 12490cat conftest.$ac_ext >&5 12491ac_cv_func_grantpt=no 12492fi 12493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12494 echo "$as_me:12494: result: $ac_cv_func_grantpt" >&5 12495echo "${ECHO_T}$ac_cv_func_grantpt" >&6 12496 12497 if test "x$ac_cv_func_grantpt" != "xno" ; then 12498 12499 if test "x$ac_cv_func_grantpt" = "xyes" ; then 12500 echo "$as_me:12500: checking for pty features" >&5 12501echo $ECHO_N "checking for pty features... $ECHO_C" >&6 12502 if test "x$ac_cv_header_stropts_h" = xyes 12503 then 12504 cf_pty_this=0 12505 else 12506 cf_pty_this=3 12507 fi 12508 12509 cf_pty_defines= 12510 while test $cf_pty_this != 6 12511 do 12512 12513 cf_pty_feature= 12514 cf_pty_next=`expr $cf_pty_this + 1` 12515 12516echo "${as_me:-configure}:12516: testing pty feature test $cf_pty_next:5 ..." 1>&5 12517 12518 if test "$cross_compiling" = yes; then 12519 { { echo "$as_me:12519: error: cannot run test program while cross compiling" >&5 12520echo "$as_me: error: cannot run test program while cross compiling" >&2;} 12521 { (exit 1); exit 1; }; } 12522else 12523 cat >conftest.$ac_ext <<_ACEOF 12524#line 12524 "configure" 12525#include "confdefs.h" 12526#define CONFTEST $cf_pty_this 12527$cf_pty_defines 12528 12529#include <stdlib.h> 12530#include <termios.h> 12531#include <unistd.h> 12532#include <signal.h> 12533#include <fcntl.h> 12534#include <errno.h> 12535 12536#ifndef HAVE_POSIX_OPENPT 12537#undef posix_openpt 12538#define posix_openpt(mode) open("/dev/ptmx", mode) 12539#endif 12540 12541#ifdef HAVE_STROPTS_H 12542#include <stropts.h> 12543#endif 12544 12545static void failed(int code) 12546{ 12547 perror("conftest"); 12548 exit(code); 12549} 12550 12551static void my_timeout(int sig) 12552{ 12553 exit(99); 12554} 12555 12556int main(void) 12557{ 12558 12559 int code = 0; 12560 int rc; 12561 int pty; 12562 int tty; 12563 char *slave; 12564 struct termios tio; 12565 12566 signal(SIGALRM, my_timeout); 12567 12568 if (alarm(2) == 9) 12569 failed(9); 12570 else if ((pty = posix_openpt(O_RDWR)) < 0) 12571 failed(1); 12572 else if ((rc = grantpt(pty)) < 0) 12573 failed(2); 12574 else if ((rc = unlockpt(pty)) < 0) 12575 failed(3); 12576 else if ((slave = ptsname(pty)) == 0) 12577 failed(4); 12578#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12579 else if (!isatty(pty)) 12580 failed(4); 12581#endif 12582#if CONFTEST >= 4 12583 else if ((rc = tcgetattr(pty, &tio)) < 0) 12584 failed(20); 12585 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12586 failed(21); 12587#endif 12588 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12589 * Linux does treat it that way. 12590 */ 12591 else if ((tty = open(slave, O_RDWR)) < 0) 12592 failed(5); 12593#ifdef CONFTEST 12594#ifdef I_PUSH 12595#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12596 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12597 failed(10); 12598#endif 12599#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12600 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12601 failed(11); 12602#endif 12603#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12604 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12605 failed(12); 12606#endif 12607#endif /* I_PUSH */ 12608#if CONFTEST >= 5 12609 else if ((rc = tcgetattr(tty, &tio)) < 0) 12610 failed(30); 12611 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12612 failed(31); 12613#endif 12614#endif /* CONFTEST */ 12615 12616 ${cf_cv_main_return:-return}(code); 12617 12618} 12619 12620_ACEOF 12621rm -f conftest$ac_exeext 12622if { (eval echo "$as_me:12622: \"$ac_link\"") >&5 12623 (eval $ac_link) 2>&5 12624 ac_status=$? 12625 echo "$as_me:12625: \$? = $ac_status" >&5 12626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12627 { (eval echo "$as_me:12627: \"$ac_try\"") >&5 12628 (eval $ac_try) 2>&5 12629 ac_status=$? 12630 echo "$as_me:12630: \$? = $ac_status" >&5 12631 (exit $ac_status); }; }; then 12632 12633 case $cf_pty_next in #(vi 12634 1) #(vi - streams 12635 cf_pty_feature=ptem 12636 ;; 12637 2) #(vi - streams 12638 cf_pty_feature=ldterm 12639 ;; 12640 3) #(vi - streams 12641 cf_pty_feature=ttcompat 12642 ;; 12643 4) #(vi 12644 cf_pty_feature=pty_isatty 12645 ;; 12646 5) #(vi 12647 cf_pty_feature=pty_tcsetattr 12648 ;; 12649 6) #(vi 12650 cf_pty_feature=tty_tcsetattr 12651 ;; 12652 esac 12653 12654else 12655 echo "$as_me: program exited with status $ac_status" >&5 12656echo "$as_me: failed program was:" >&5 12657cat conftest.$ac_ext >&5 12658 12659 case $cf_pty_next in #(vi 12660 1|2|3) 12661 12662echo "${as_me:-configure}:12662: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 12663 12664 cf_pty_next=3 12665 ;; 12666 esac 12667 12668fi 12669rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12670fi 12671 if test -n "$cf_pty_feature" 12672 then 12673 cf_pty_defines="$cf_pty_defines 12674#define CONFTEST_$cf_pty_feature 1 12675" 12676 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 12677 fi 12678 12679 cf_pty_this=$cf_pty_next 12680 done 12681 echo "$as_me:12681: result: $cf_grantpt_opts" >&5 12682echo "${ECHO_T}$cf_grantpt_opts" >&6 12683 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 12684 fi 12685 fi 12686fi 12687 12688if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 12689 echo "$as_me:12689: checking for openpty in -lutil" >&5 12690echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 12691if test "${ac_cv_lib_util_openpty+set}" = set; then 12692 echo $ECHO_N "(cached) $ECHO_C" >&6 12693else 12694 ac_check_lib_save_LIBS=$LIBS 12695LIBS="-lutil $LIBS" 12696cat >conftest.$ac_ext <<_ACEOF 12697#line 12697 "configure" 12698#include "confdefs.h" 12699 12700/* Override any gcc2 internal prototype to avoid an error. */ 12701#ifdef __cplusplus 12702extern "C" 12703#endif 12704/* We use char because int might match the return type of a gcc2 12705 builtin and then its argument prototype would still apply. */ 12706char openpty (); 12707int 12708main () 12709{ 12710openpty (); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715rm -f conftest.$ac_objext conftest$ac_exeext 12716if { (eval echo "$as_me:12716: \"$ac_link\"") >&5 12717 (eval $ac_link) 2>&5 12718 ac_status=$? 12719 echo "$as_me:12719: \$? = $ac_status" >&5 12720 (exit $ac_status); } && 12721 { ac_try='test -s conftest$ac_exeext' 12722 { (eval echo "$as_me:12722: \"$ac_try\"") >&5 12723 (eval $ac_try) 2>&5 12724 ac_status=$? 12725 echo "$as_me:12725: \$? = $ac_status" >&5 12726 (exit $ac_status); }; }; then 12727 ac_cv_lib_util_openpty=yes 12728else 12729 echo "$as_me: failed program was:" >&5 12730cat conftest.$ac_ext >&5 12731ac_cv_lib_util_openpty=no 12732fi 12733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12734LIBS=$ac_check_lib_save_LIBS 12735fi 12736echo "$as_me:12736: result: $ac_cv_lib_util_openpty" >&5 12737echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 12738if test $ac_cv_lib_util_openpty = yes; then 12739 cf_have_openpty=yes 12740else 12741 cf_have_openpty=no 12742fi 12743 12744 if test "$cf_have_openpty" = yes ; then 12745 ac_cv_func_grantpt=no 12746 LIBS="-lutil $LIBS" 12747 12748cat >>confdefs.h <<\EOF 12749#define HAVE_OPENPTY 1 12750EOF 12751 12752for ac_header in \ 12753 util.h \ 12754 libutil.h \ 12755 pty.h \ 12756 12757do 12758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12759echo "$as_me:12759: checking for $ac_header" >&5 12760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12761if eval "test \"\${$as_ac_Header+set}\" = set"; then 12762 echo $ECHO_N "(cached) $ECHO_C" >&6 12763else 12764 cat >conftest.$ac_ext <<_ACEOF 12765#line 12765 "configure" 12766#include "confdefs.h" 12767#include <$ac_header> 12768_ACEOF 12769if { (eval echo "$as_me:12769: \"$ac_cpp conftest.$ac_ext\"") >&5 12770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12771 ac_status=$? 12772 egrep -v '^ *\+' conftest.er1 >conftest.err 12773 rm -f conftest.er1 12774 cat conftest.err >&5 12775 echo "$as_me:12775: \$? = $ac_status" >&5 12776 (exit $ac_status); } >/dev/null; then 12777 if test -s conftest.err; then 12778 ac_cpp_err=$ac_c_preproc_warn_flag 12779 else 12780 ac_cpp_err= 12781 fi 12782else 12783 ac_cpp_err=yes 12784fi 12785if test -z "$ac_cpp_err"; then 12786 eval "$as_ac_Header=yes" 12787else 12788 echo "$as_me: failed program was:" >&5 12789 cat conftest.$ac_ext >&5 12790 eval "$as_ac_Header=no" 12791fi 12792rm -f conftest.err conftest.$ac_ext 12793fi 12794echo "$as_me:12794: result: `eval echo '${'$as_ac_Header'}'`" >&5 12795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12796if test `eval echo '${'$as_ac_Header'}'` = yes; then 12797 cat >>confdefs.h <<EOF 12798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12799EOF 12800 12801fi 12802done 12803 12804 fi 12805fi 12806 12807if test "x$ac_cv_func_grantpt" != xno 12808then 12809 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 12810 12811echo "${as_me:-configure}:12811: testing will rely upon grantpt ..." 1>&5 12812 12813cat >>confdefs.h <<\EOF 12814#define HAVE_WORKING_GRANTPT 1 12815EOF 12816 12817 for cf_feature in $cf_grantpt_opts 12818 do 12819 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 12820 12821cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12822 12823 cat >>confdefs.h <<EOF 12824#define HAVE_GRANTPT_$cf_FEATURE 1 12825EOF 12826 12827 done 12828elif test "x$cf_have_openpty" = xno 12829then 12830 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 12831 12832echo "${as_me:-configure}:12832: testing will rely upon BSD-pseudoterminals ..." 1>&5 12833 12834else 12835 test -n "$verbose" && echo " will rely upon openpty" 1>&6 12836 12837echo "${as_me:-configure}:12837: testing will rely upon openpty ..." 1>&5 12838 12839fi 12840 12841echo "$as_me:12841: checking if we can use XkbQueryExtension" >&5 12842echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 12843if test "${cf_cv_xkb_query_extension+set}" = set; then 12844 echo $ECHO_N "(cached) $ECHO_C" >&6 12845else 12846 12847cat >conftest.$ac_ext <<_ACEOF 12848#line 12848 "configure" 12849#include "confdefs.h" 12850 12851#include <X11/Xlib.h> 12852#include <X11/extensions/XKB.h> 12853#include <X11/XKBlib.h> 12854 12855int 12856main () 12857{ 12858 12859 int xkbmajor = XkbMajorVersion; 12860 int xkbminor = XkbMinorVersion; 12861 int xkbopcode, xkbevent, xkberror; 12862 12863 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 12864 && XkbQueryExtension((Display *)0, 12865 &xkbopcode, 12866 &xkbevent, 12867 &xkberror, 12868 &xkbmajor, 12869 &xkbminor)) 12870 return 0; 12871 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876rm -f conftest.$ac_objext 12877if { (eval echo "$as_me:12877: \"$ac_compile\"") >&5 12878 (eval $ac_compile) 2>&5 12879 ac_status=$? 12880 echo "$as_me:12880: \$? = $ac_status" >&5 12881 (exit $ac_status); } && 12882 { ac_try='test -s conftest.$ac_objext' 12883 { (eval echo "$as_me:12883: \"$ac_try\"") >&5 12884 (eval $ac_try) 2>&5 12885 ac_status=$? 12886 echo "$as_me:12886: \$? = $ac_status" >&5 12887 (exit $ac_status); }; }; then 12888 12889cf_cv_xkb_query_extension=yes 12890 12891else 12892 echo "$as_me: failed program was:" >&5 12893cat conftest.$ac_ext >&5 12894 12895cf_cv_xkb_query_extension=no 12896 12897fi 12898rm -f conftest.$ac_objext conftest.$ac_ext 12899 12900fi 12901echo "$as_me:12901: result: $cf_cv_xkb_query_extension" >&5 12902echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 12903 12904if test $cf_cv_xkb_query_extension = yes 12905then 12906 12907for ac_func in XkbQueryExtension 12908do 12909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12910echo "$as_me:12910: checking for $ac_func" >&5 12911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12912if eval "test \"\${$as_ac_var+set}\" = set"; then 12913 echo $ECHO_N "(cached) $ECHO_C" >&6 12914else 12915 cat >conftest.$ac_ext <<_ACEOF 12916#line 12916 "configure" 12917#include "confdefs.h" 12918/* System header to define __stub macros and hopefully few prototypes, 12919 which can conflict with char $ac_func (); below. */ 12920#include <assert.h> 12921/* Override any gcc2 internal prototype to avoid an error. */ 12922#ifdef __cplusplus 12923extern "C" 12924#endif 12925/* We use char because int might match the return type of a gcc2 12926 builtin and then its argument prototype would still apply. */ 12927char $ac_func (); 12928char (*f) (); 12929 12930int 12931main () 12932{ 12933/* The GNU C library defines this for functions which it implements 12934 to always fail with ENOSYS. Some functions are actually named 12935 something starting with __ and the normal name is an alias. */ 12936#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12937choke me 12938#else 12939f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12940#endif 12941 12942 ; 12943 return 0; 12944} 12945_ACEOF 12946rm -f conftest.$ac_objext conftest$ac_exeext 12947if { (eval echo "$as_me:12947: \"$ac_link\"") >&5 12948 (eval $ac_link) 2>&5 12949 ac_status=$? 12950 echo "$as_me:12950: \$? = $ac_status" >&5 12951 (exit $ac_status); } && 12952 { ac_try='test -s conftest$ac_exeext' 12953 { (eval echo "$as_me:12953: \"$ac_try\"") >&5 12954 (eval $ac_try) 2>&5 12955 ac_status=$? 12956 echo "$as_me:12956: \$? = $ac_status" >&5 12957 (exit $ac_status); }; }; then 12958 eval "$as_ac_var=yes" 12959else 12960 echo "$as_me: failed program was:" >&5 12961cat conftest.$ac_ext >&5 12962eval "$as_ac_var=no" 12963fi 12964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12965fi 12966echo "$as_me:12966: result: `eval echo '${'$as_ac_var'}'`" >&5 12967echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12968if test `eval echo '${'$as_ac_var'}'` = yes; then 12969 cat >>confdefs.h <<EOF 12970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12971EOF 12972 12973fi 12974done 12975 12976fi 12977 12978echo "$as_me:12978: checking if we can use XkbKeycodeToKeysym" >&5 12979echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 12980if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 12981 echo $ECHO_N "(cached) $ECHO_C" >&6 12982else 12983 12984cat >conftest.$ac_ext <<_ACEOF 12985#line 12985 "configure" 12986#include "confdefs.h" 12987 12988#include <X11/Xlib.h> 12989#include <X11/XKBlib.h> 12990 12991int 12992main () 12993{ 12994 12995 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 12996 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001rm -f conftest.$ac_objext 13002if { (eval echo "$as_me:13002: \"$ac_compile\"") >&5 13003 (eval $ac_compile) 2>&5 13004 ac_status=$? 13005 echo "$as_me:13005: \$? = $ac_status" >&5 13006 (exit $ac_status); } && 13007 { ac_try='test -s conftest.$ac_objext' 13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5 13009 (eval $ac_try) 2>&5 13010 ac_status=$? 13011 echo "$as_me:13011: \$? = $ac_status" >&5 13012 (exit $ac_status); }; }; then 13013 13014cf_cv_xkb_keycode_to_keysym=yes 13015 13016else 13017 echo "$as_me: failed program was:" >&5 13018cat conftest.$ac_ext >&5 13019 13020cf_cv_xkb_keycode_to_keysym=no 13021 13022fi 13023rm -f conftest.$ac_objext conftest.$ac_ext 13024 13025fi 13026echo "$as_me:13026: result: $cf_cv_xkb_keycode_to_keysym" >&5 13027echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 13028 13029if test $cf_cv_xkb_keycode_to_keysym = yes 13030then 13031 13032for ac_func in XkbKeycodeToKeysym 13033do 13034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13035echo "$as_me:13035: checking for $ac_func" >&5 13036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13037if eval "test \"\${$as_ac_var+set}\" = set"; then 13038 echo $ECHO_N "(cached) $ECHO_C" >&6 13039else 13040 cat >conftest.$ac_ext <<_ACEOF 13041#line 13041 "configure" 13042#include "confdefs.h" 13043/* System header to define __stub macros and hopefully few prototypes, 13044 which can conflict with char $ac_func (); below. */ 13045#include <assert.h> 13046/* Override any gcc2 internal prototype to avoid an error. */ 13047#ifdef __cplusplus 13048extern "C" 13049#endif 13050/* We use char because int might match the return type of a gcc2 13051 builtin and then its argument prototype would still apply. */ 13052char $ac_func (); 13053char (*f) (); 13054 13055int 13056main () 13057{ 13058/* The GNU C library defines this for functions which it implements 13059 to always fail with ENOSYS. Some functions are actually named 13060 something starting with __ and the normal name is an alias. */ 13061#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13062choke me 13063#else 13064f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13065#endif 13066 13067 ; 13068 return 0; 13069} 13070_ACEOF 13071rm -f conftest.$ac_objext conftest$ac_exeext 13072if { (eval echo "$as_me:13072: \"$ac_link\"") >&5 13073 (eval $ac_link) 2>&5 13074 ac_status=$? 13075 echo "$as_me:13075: \$? = $ac_status" >&5 13076 (exit $ac_status); } && 13077 { ac_try='test -s conftest$ac_exeext' 13078 { (eval echo "$as_me:13078: \"$ac_try\"") >&5 13079 (eval $ac_try) 2>&5 13080 ac_status=$? 13081 echo "$as_me:13081: \$? = $ac_status" >&5 13082 (exit $ac_status); }; }; then 13083 eval "$as_ac_var=yes" 13084else 13085 echo "$as_me: failed program was:" >&5 13086cat conftest.$ac_ext >&5 13087eval "$as_ac_var=no" 13088fi 13089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13090fi 13091echo "$as_me:13091: result: `eval echo '${'$as_ac_var'}'`" >&5 13092echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13093if test `eval echo '${'$as_ac_var'}'` = yes; then 13094 cat >>confdefs.h <<EOF 13095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13096EOF 13097 13098fi 13099done 13100 13101fi 13102 13103echo "$as_me:13103: checking for XKB Bell extension" >&5 13104echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 13105if test "${cf_cv_xkb_bell_ext+set}" = set; then 13106 echo $ECHO_N "(cached) $ECHO_C" >&6 13107else 13108 13109cat >conftest.$ac_ext <<_ACEOF 13110#line 13110 "configure" 13111#include "confdefs.h" 13112 13113#include <X11/Intrinsic.h> 13114#include <X11/XKBlib.h> /* has the prototype */ 13115#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 13116 13117int 13118main () 13119{ 13120 13121 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 13122 Atom y; 13123 XkbBell((Display *)0, (Widget)0, 0, y); 13124 13125 ; 13126 return 0; 13127} 13128_ACEOF 13129rm -f conftest.$ac_objext conftest$ac_exeext 13130if { (eval echo "$as_me:13130: \"$ac_link\"") >&5 13131 (eval $ac_link) 2>&5 13132 ac_status=$? 13133 echo "$as_me:13133: \$? = $ac_status" >&5 13134 (exit $ac_status); } && 13135 { ac_try='test -s conftest$ac_exeext' 13136 { (eval echo "$as_me:13136: \"$ac_try\"") >&5 13137 (eval $ac_try) 2>&5 13138 ac_status=$? 13139 echo "$as_me:13139: \$? = $ac_status" >&5 13140 (exit $ac_status); }; }; then 13141 cf_cv_xkb_bell_ext=yes 13142else 13143 echo "$as_me: failed program was:" >&5 13144cat conftest.$ac_ext >&5 13145cf_cv_xkb_bell_ext=no 13146fi 13147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13148 13149fi 13150echo "$as_me:13150: result: $cf_cv_xkb_bell_ext" >&5 13151echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 13152test "$cf_cv_xkb_bell_ext" = yes && 13153cat >>confdefs.h <<\EOF 13154#define HAVE_XKB_BELL_EXT 1 13155EOF 13156 13157for ac_func in Xutf8LookupString 13158do 13159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13160echo "$as_me:13160: checking for $ac_func" >&5 13161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13162if eval "test \"\${$as_ac_var+set}\" = set"; then 13163 echo $ECHO_N "(cached) $ECHO_C" >&6 13164else 13165 cat >conftest.$ac_ext <<_ACEOF 13166#line 13166 "configure" 13167#include "confdefs.h" 13168/* System header to define __stub macros and hopefully few prototypes, 13169 which can conflict with char $ac_func (); below. */ 13170#include <assert.h> 13171/* Override any gcc2 internal prototype to avoid an error. */ 13172#ifdef __cplusplus 13173extern "C" 13174#endif 13175/* We use char because int might match the return type of a gcc2 13176 builtin and then its argument prototype would still apply. */ 13177char $ac_func (); 13178char (*f) (); 13179 13180int 13181main () 13182{ 13183/* The GNU C library defines this for functions which it implements 13184 to always fail with ENOSYS. Some functions are actually named 13185 something starting with __ and the normal name is an alias. */ 13186#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13187choke me 13188#else 13189f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13190#endif 13191 13192 ; 13193 return 0; 13194} 13195_ACEOF 13196rm -f conftest.$ac_objext conftest$ac_exeext 13197if { (eval echo "$as_me:13197: \"$ac_link\"") >&5 13198 (eval $ac_link) 2>&5 13199 ac_status=$? 13200 echo "$as_me:13200: \$? = $ac_status" >&5 13201 (exit $ac_status); } && 13202 { ac_try='test -s conftest$ac_exeext' 13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5 13204 (eval $ac_try) 2>&5 13205 ac_status=$? 13206 echo "$as_me:13206: \$? = $ac_status" >&5 13207 (exit $ac_status); }; }; then 13208 eval "$as_ac_var=yes" 13209else 13210 echo "$as_me: failed program was:" >&5 13211cat conftest.$ac_ext >&5 13212eval "$as_ac_var=no" 13213fi 13214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13215fi 13216echo "$as_me:13216: result: `eval echo '${'$as_ac_var'}'`" >&5 13217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13218if test `eval echo '${'$as_ac_var'}'` = yes; then 13219 cat >>confdefs.h <<EOF 13220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13221EOF 13222 13223else 13224 13225 EXTRAHDRS="$EXTRAHDRS xutf8.h" 13226 EXTRASRCS="$EXTRASRCS xutf8.c" 13227 EXTRAOBJS="$EXTRAOBJS xutf8.o" 13228 13229fi 13230done 13231 13232echo "$as_me:13232: checking if you want narrow prototypes for X libraries" >&5 13233echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 13234 13235case `$ac_config_guess` in #(vi 13236*cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi 13237 cf_default_narrowproto=yes 13238 ;; 13239*) 13240 cf_default_narrowproto=no 13241 ;; 13242esac 13243 13244# Check whether --enable-narrowproto or --disable-narrowproto was given. 13245if test "${enable_narrowproto+set}" = set; then 13246 enableval="$enable_narrowproto" 13247 test "$enableval" != no && enableval=yes 13248 if test "$enableval" != "$cf_default_narrowproto" ; then 13249 enable_narrowproto=$enableval 13250 else 13251 enable_narrowproto=$cf_default_narrowproto 13252 fi 13253else 13254 enableval=$cf_default_narrowproto 13255 enable_narrowproto=$cf_default_narrowproto 13256 13257fi; 13258echo "$as_me:13258: result: $enable_narrowproto" >&5 13259echo "${ECHO_T}$enable_narrowproto" >&6 13260 13261echo "$as_me:13261: checking if we should use imake to help" >&5 13262echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 13263 13264# Check whether --enable-imake or --disable-imake was given. 13265if test "${enable_imake+set}" = set; then 13266 enableval="$enable_imake" 13267 test "$enableval" != no && enableval=yes 13268 if test "$enableval" != "yes" ; then 13269 enable_imake=no 13270 else 13271 enable_imake=yes 13272 fi 13273else 13274 enableval=yes 13275 enable_imake=yes 13276 13277fi; 13278echo "$as_me:13278: result: $enable_imake" >&5 13279echo "${ECHO_T}$enable_imake" >&6 13280 13281if test "$enable_imake" = yes ; then 13282 13283for ac_prog in xmkmf imake 13284do 13285 # Extract the first word of "$ac_prog", so it can be a program name with args. 13286set dummy $ac_prog; ac_word=$2 13287echo "$as_me:13287: checking for $ac_word" >&5 13288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13289if test "${ac_cv_path_IMAKE+set}" = set; then 13290 echo $ECHO_N "(cached) $ECHO_C" >&6 13291else 13292 case $IMAKE in 13293 [\\/]* | ?:[\\/]*) 13294 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 13295 ;; 13296 *) 13297 ac_save_IFS=$IFS; IFS=$ac_path_separator 13298ac_dummy="$PATH" 13299for ac_dir in $ac_dummy; do 13300 IFS=$ac_save_IFS 13301 test -z "$ac_dir" && ac_dir=. 13302 if $as_executable_p "$ac_dir/$ac_word"; then 13303 ac_cv_path_IMAKE="$ac_dir/$ac_word" 13304 echo "$as_me:13304: found $ac_dir/$ac_word" >&5 13305 break 13306fi 13307done 13308 13309 ;; 13310esac 13311fi 13312IMAKE=$ac_cv_path_IMAKE 13313 13314if test -n "$IMAKE"; then 13315 echo "$as_me:13315: result: $IMAKE" >&5 13316echo "${ECHO_T}$IMAKE" >&6 13317else 13318 echo "$as_me:13318: result: no" >&5 13319echo "${ECHO_T}no" >&6 13320fi 13321 13322 test -n "$IMAKE" && break 13323done 13324 13325if test -n "$IMAKE" ; then 13326 13327case $IMAKE in # (vi 13328*/imake) 13329 cf_imake_opts="-DUseInstalled=YES" # (vi 13330 ;; 13331*/util/xmkmf) 13332 # A single parameter tells xmkmf where the config-files are: 13333 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi 13334 ;; 13335*) 13336 cf_imake_opts= 13337 ;; 13338esac 13339 13340# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 13341# config directory. 13342if mkdir conftestdir; then 13343 CDPATH=; export CDPATH 13344 cf_makefile=`cd $srcdir;pwd`/Imakefile 13345 cd conftestdir 13346 13347 cat >fix_cflags.sed <<'CF_EOF' 13348s/\\//g 13349s/[ ][ ]*/ /g 13350s/"//g 13351:pack 13352s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 13353t pack 13354s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 13355s/^IMAKE[ ]/IMAKE_CFLAGS="/ 13356s/ / /g 13357s/$/"/ 13358CF_EOF 13359 13360 cat >fix_lflags.sed <<'CF_EOF' 13361s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 13362s/$/"/ 13363CF_EOF 13364 13365 echo >./Imakefile 13366 test -f $cf_makefile && cat $cf_makefile >>./Imakefile 13367 13368 cat >> ./Imakefile <<'CF_EOF' 13369findstddefs: 13370 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 13371 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 13372CF_EOF 13373 13374 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile) 13375 then 13376 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 13377 13378echo "${as_me:-configure}:13378: testing Using $IMAKE $cf_imake_opts ..." 1>&5 13379 13380 else 13381 # sometimes imake doesn't have the config path compiled in. Find it. 13382 cf_config= 13383 for cf_libpath in $X_LIBS $LIBS ; do 13384 case $cf_libpath in # (vi 13385 -L*) 13386 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'` 13387 cf_libpath=$cf_libpath/X11/config 13388 if test -d $cf_libpath ; then 13389 cf_config=$cf_libpath 13390 break 13391 fi 13392 ;; 13393 esac 13394 done 13395 if test -z "$cf_config" ; then 13396 { echo "$as_me:13396: WARNING: Could not find imake config-directory" >&5 13397echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 13398 else 13399 cf_imake_opts="$cf_imake_opts -I$cf_config" 13400 if ( $IMAKE -v $cf_imake_opts 2>&5) 13401 then 13402 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 13403 13404echo "${as_me:-configure}:13404: testing Using $IMAKE $cf_config ..." 1>&5 13405 13406 else 13407 { echo "$as_me:13407: WARNING: Cannot run $IMAKE" >&5 13408echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 13409 fi 13410 fi 13411 fi 13412 13413 # GNU make sometimes prints "make[1]: Entering...", which 13414 # would confuse us. 13415 eval `make findstddefs 2>/dev/null | grep -v make` 13416 13417 cd .. 13418 rm -rf conftestdir 13419 13420 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 13421 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 13422 # modified it to support site.cf, adding a kludge for the /usr/include 13423 # directory. Try to filter that out, otherwise gcc won't find its 13424 # headers. 13425 if test -n "$GCC" ; then 13426 if test -n "$IMAKE_CFLAGS" ; then 13427 cf_nostdinc="" 13428 cf_std_incl="" 13429 cf_cpp_opts="" 13430 for cf_opt in $IMAKE_CFLAGS 13431 do 13432 case "$cf_opt" in 13433 -nostdinc) #(vi 13434 cf_nostdinc="$cf_opt" 13435 ;; 13436 -I/usr/include) #(vi 13437 cf_std_incl="$cf_opt" 13438 ;; 13439 *) #(vi 13440 cf_cpp_opts="$cf_cpp_opts $cf_opt" 13441 ;; 13442 esac 13443 done 13444 if test -z "$cf_nostdinc" ; then 13445 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 13446 elif test -z "$cf_std_incl" ; then 13447 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 13448 else 13449 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 13450 13451echo "${as_me:-configure}:13451: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 13452 13453 IMAKE_CFLAGS="$cf_cpp_opts" 13454 fi 13455 fi 13456 fi 13457fi 13458 13459# Some imake configurations define PROJECTROOT with an empty value. Remove 13460# the empty definition. 13461case $IMAKE_CFLAGS in 13462*-DPROJECTROOT=/*) 13463 ;; 13464*) 13465 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 13466 ;; 13467esac 13468 13469fi 13470 13471test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 13472 13473echo "${as_me:-configure}:13473: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 13474 13475test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 13476 13477echo "${as_me:-configure}:13477: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 13478 13479fi 13480 13481if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 13482 13483cf_fix_cppflags=no 13484cf_new_cflags= 13485cf_new_cppflags= 13486cf_new_extra_cppflags= 13487 13488for cf_add_cflags in $IMAKE_CFLAGS 13489do 13490case $cf_fix_cppflags in 13491no) 13492 case $cf_add_cflags in #(vi 13493 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 13494 case $cf_add_cflags in 13495 -D*) 13496 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13497 13498 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13499 && test -z "${cf_tst_cflags}" \ 13500 && cf_fix_cppflags=yes 13501 13502 if test $cf_fix_cppflags = yes ; then 13503 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13504 continue 13505 elif test "${cf_tst_cflags}" = "\"'" ; then 13506 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13507 continue 13508 fi 13509 ;; 13510 esac 13511 case "$CPPFLAGS" in 13512 *$cf_add_cflags) #(vi 13513 ;; 13514 *) #(vi 13515 case $cf_add_cflags in #(vi 13516 -D*) 13517 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13518 13519CPPFLAGS=`echo "$CPPFLAGS" | \ 13520 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13521 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13522 13523 ;; 13524 esac 13525 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 13526 ;; 13527 esac 13528 ;; 13529 *) 13530 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 13531 ;; 13532 esac 13533 ;; 13534yes) 13535 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13536 13537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13538 13539 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13540 && test -z "${cf_tst_cflags}" \ 13541 && cf_fix_cppflags=no 13542 ;; 13543esac 13544done 13545 13546if test -n "$cf_new_cflags" ; then 13547 13548 CFLAGS="$CFLAGS $cf_new_cflags" 13549fi 13550 13551if test -n "$cf_new_cppflags" ; then 13552 13553 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 13554fi 13555 13556if test -n "$cf_new_extra_cppflags" ; then 13557 13558 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 13559fi 13560 13561else 13562 IMAKE_CFLAGS= 13563 IMAKE_LOADFLAGS= 13564 test -n "$verbose" && echo " make fallback definitions" 1>&6 13565 13566echo "${as_me:-configure}:13566: testing make fallback definitions ..." 1>&5 13567 13568 # We prefer config.guess' values when we can get them, to avoid 13569 # inconsistent results with uname (AIX for instance). However, 13570 # config.guess is not always consistent either. 13571 case $host_os in 13572 *[0-9].[0-9]*) 13573 UNAME_RELEASE="$host_os" 13574 ;; 13575 *) 13576 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13577 ;; 13578 esac 13579 13580 case .$UNAME_RELEASE in 13581 *[0-9].[0-9]*) 13582 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 13583 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 13584 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 13585 test -z "$OSMINORVERSION" && OSMINORVERSION=0 13586 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 13587 ;; 13588 esac 13589 13590 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 13591 # fallback/fragments for NeedPrototypes, etc. 13592 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 13593 13594 # If this is not set properly, Xaw's scrollbars will not work 13595 if test "$enable_narrowproto" = yes ; then 13596 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 13597 fi 13598 13599 # Other special definitions: 13600 case $host_os in 13601 aix*) 13602 # imake on AIX 5.1 defines AIXV3. really. 13603 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 13604 ;; 13605 irix[56].*) #(vi 13606 # these are needed to make SIGWINCH work in xterm 13607 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 13608 ;; 13609 esac 13610 13611cf_fix_cppflags=no 13612cf_new_cflags= 13613cf_new_cppflags= 13614cf_new_extra_cppflags= 13615 13616for cf_add_cflags in $IMAKE_CFLAGS 13617do 13618case $cf_fix_cppflags in 13619no) 13620 case $cf_add_cflags in #(vi 13621 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 13622 case $cf_add_cflags in 13623 -D*) 13624 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13625 13626 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13627 && test -z "${cf_tst_cflags}" \ 13628 && cf_fix_cppflags=yes 13629 13630 if test $cf_fix_cppflags = yes ; then 13631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13632 continue 13633 elif test "${cf_tst_cflags}" = "\"'" ; then 13634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13635 continue 13636 fi 13637 ;; 13638 esac 13639 case "$CPPFLAGS" in 13640 *$cf_add_cflags) #(vi 13641 ;; 13642 *) #(vi 13643 case $cf_add_cflags in #(vi 13644 -D*) 13645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13646 13647CPPFLAGS=`echo "$CPPFLAGS" | \ 13648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13650 13651 ;; 13652 esac 13653 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 13654 ;; 13655 esac 13656 ;; 13657 *) 13658 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 13659 ;; 13660 esac 13661 ;; 13662yes) 13663 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13664 13665 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13666 13667 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13668 && test -z "${cf_tst_cflags}" \ 13669 && cf_fix_cppflags=no 13670 ;; 13671esac 13672done 13673 13674if test -n "$cf_new_cflags" ; then 13675 13676 CFLAGS="$CFLAGS $cf_new_cflags" 13677fi 13678 13679if test -n "$cf_new_cppflags" ; then 13680 13681 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 13682fi 13683 13684if test -n "$cf_new_extra_cppflags" ; then 13685 13686 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 13687fi 13688 13689fi 13690 13691# If we have already established that there is a full termcap implementation, 13692# suppress the definitions for terminfo that we make have imported from the 13693# imake-file. 13694if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 13695 case "$IMAKE_CFLAGS" in 13696 *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 13697 13698 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 13699 13700echo "${as_me:-configure}:13700: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 13701 13702 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 13703 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 13704 13705echo "${as_me:-configure}:13705: testing ...result $IMAKE_CFLAGS ..." 1>&5 13706 13707 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 13708 13709echo "${as_me:-configure}:13709: testing removing terminfo flags from CPPFLAGS ..." 1>&5 13710 13711 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 13712 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 13713 13714echo "${as_me:-configure}:13714: testing ...result $CPPFLAGS ..." 1>&5 13715 13716 ;; 13717 esac 13718fi 13719 13720echo "$as_me:13720: checking for default terminal-id" >&5 13721echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 13722 13723# Check whether --with-terminal-id or --without-terminal-id was given. 13724if test "${with_terminal_id+set}" = set; then 13725 withval="$with_terminal_id" 13726 default_termid=$withval 13727else 13728 default_termid=vt420 13729fi; 13730echo "$as_me:13730: result: $default_termid" >&5 13731echo "${ECHO_T}$default_termid" >&6 13732case $default_termid in 13733vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 13734 ;; 13735esac 13736 13737cat >>confdefs.h <<EOF 13738#define DFT_DECID "$default_termid" 13739EOF 13740 13741echo "$as_me:13741: checking for default terminal-type" >&5 13742echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 13743 13744# Check whether --with-terminal-type or --without-terminal-type was given. 13745if test "${with_terminal_type+set}" = set; then 13746 withval="$with_terminal_type" 13747 default_TERM=$withval 13748else 13749 default_TERM=xterm 13750fi; 13751echo "$as_me:13751: result: $default_TERM" >&5 13752echo "${ECHO_T}$default_TERM" >&6 13753 13754cat >>confdefs.h <<EOF 13755#define DFT_TERMTYPE "$default_TERM" 13756EOF 13757 13758############################################################################### 13759echo "$as_me:13759: checking if backarrow-key should be BS" >&5 13760echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 13761 13762# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 13763if test "${enable_backarrow_key+set}" = set; then 13764 enableval="$enable_backarrow_key" 13765 test "$enableval" != no && enableval=yes 13766 if test "$enableval" != "yes" ; then 13767 backarrow_is_bs=$enableval 13768 else 13769 backarrow_is_bs=yes 13770 fi 13771else 13772 enableval=yes 13773 backarrow_is_bs=yes 13774 13775fi; 13776 13777echo "$as_me:13777: result: $backarrow_is_bs" >&5 13778echo "${ECHO_T}$backarrow_is_bs" >&6 13779case $backarrow_is_bs in #(vi 13780yes) #(vi 13781 backarrow_is_bs=true 13782 ;; 13783no) #(vi 13784 backarrow_is_bs=false 13785 ;; 13786esac 13787cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 13788 13789cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13790 13791cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 13792backarrow_is_bs=${cf_xbool1}${cf_xbool2} 13793 13794cat >>confdefs.h <<EOF 13795#define DEF_BACKARO_BS $backarrow_is_bs 13796EOF 13797 13798echo "$as_me:13798: checking if backarrow-key should be treated as erase" >&5 13799echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 13800 13801# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 13802if test "${enable_backarrow_is_erase+set}" = set; then 13803 enableval="$enable_backarrow_is_erase" 13804 test "$enableval" != yes && enableval=no 13805 if test "$enableval" != "no" ; then 13806 backarrow_is_erase=$enableval 13807 else 13808 backarrow_is_erase=no 13809 fi 13810else 13811 enableval=no 13812 backarrow_is_erase=no 13813 13814fi; 13815 13816echo "$as_me:13816: result: $backarrow_is_erase" >&5 13817echo "${ECHO_T}$backarrow_is_erase" >&6 13818case $backarrow_is_erase in #(vi 13819yes) #(vi 13820 backarrow_is_erase=true 13821 ;; 13822no) #(vi 13823 backarrow_is_erase=false 13824 ;; 13825esac 13826cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 13827 13828cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13829 13830cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 13831backarrow_is_erase=${cf_xbool1}${cf_xbool2} 13832 13833cat >>confdefs.h <<EOF 13834#define DEF_BACKARO_ERASE $backarrow_is_erase 13835EOF 13836 13837echo "$as_me:13837: checking for default backspace/DEL setting" >&5 13838echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 13839 13840# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 13841if test "${enable_delete_is_del+set}" = set; then 13842 enableval="$enable_delete_is_del" 13843 delete_is_del=$enableval 13844else 13845 delete_is_del=maybe 13846fi; 13847 13848echo "$as_me:13848: result: $delete_is_del" >&5 13849echo "${ECHO_T}$delete_is_del" >&6 13850case $delete_is_del in #(vi 13851yes) #(vi 13852 delete_is_del=true 13853 ;; 13854no) #(vi 13855 delete_is_del=false 13856 ;; 13857esac 13858cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 13859 13860cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13861 13862cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 13863delete_is_del=${cf_xbool1}${cf_xbool2} 13864 13865cat >>confdefs.h <<EOF 13866#define DEFDELETE_DEL $delete_is_del 13867EOF 13868 13869echo "$as_me:13869: checking if alt should send ESC" >&5 13870echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 13871 13872# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 13873if test "${enable_alt_sends_esc+set}" = set; then 13874 enableval="$enable_alt_sends_esc" 13875 test "$enableval" != yes && enableval=no 13876 if test "$enableval" != "no" ; then 13877 alt_sends_esc=$enableval 13878 else 13879 alt_sends_esc=no 13880 fi 13881else 13882 enableval=no 13883 alt_sends_esc=no 13884 13885fi; 13886 13887echo "$as_me:13887: result: $alt_sends_esc" >&5 13888echo "${ECHO_T}$alt_sends_esc" >&6 13889case $alt_sends_esc in #(vi 13890yes) #(vi 13891 alt_sends_esc=true 13892 ;; 13893no) #(vi 13894 alt_sends_esc=false 13895 ;; 13896esac 13897cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 13898 13899cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13900 13901cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 13902alt_sends_esc=${cf_xbool1}${cf_xbool2} 13903 13904cat >>confdefs.h <<EOF 13905#define DEF_ALT_SENDS_ESC $alt_sends_esc 13906EOF 13907 13908echo "$as_me:13908: checking if meta should send ESC" >&5 13909echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 13910 13911# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 13912if test "${enable_meta_sends_esc+set}" = set; then 13913 enableval="$enable_meta_sends_esc" 13914 test "$enableval" != yes && enableval=no 13915 if test "$enableval" != "no" ; then 13916 meta_sends_esc=$enableval 13917 else 13918 meta_sends_esc=no 13919 fi 13920else 13921 enableval=no 13922 meta_sends_esc=no 13923 13924fi; 13925 13926echo "$as_me:13926: result: $meta_sends_esc" >&5 13927echo "${ECHO_T}$meta_sends_esc" >&6 13928case $meta_sends_esc in #(vi 13929yes) #(vi 13930 meta_sends_esc=true 13931 ;; 13932no) #(vi 13933 meta_sends_esc=false 13934 ;; 13935esac 13936cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 13937 13938cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13939 13940cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 13941meta_sends_esc=${cf_xbool1}${cf_xbool2} 13942 13943cat >>confdefs.h <<EOF 13944#define DEF_META_SENDS_ESC $meta_sends_esc 13945EOF 13946 13947############################################################################### 13948# Extract the first word of "tic", so it can be a program name with args. 13949set dummy tic; ac_word=$2 13950echo "$as_me:13950: checking for $ac_word" >&5 13951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13952if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 13953 echo $ECHO_N "(cached) $ECHO_C" >&6 13954else 13955 if test -n "$cf_tic_prog"; then 13956 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 13957else 13958 ac_save_IFS=$IFS; IFS=$ac_path_separator 13959ac_dummy="$PATH" 13960for ac_dir in $ac_dummy; do 13961 IFS=$ac_save_IFS 13962 test -z "$ac_dir" && ac_dir=. 13963 $as_executable_p "$ac_dir/$ac_word" || continue 13964ac_cv_prog_cf_tic_prog="yes" 13965echo "$as_me:13965: found $ac_dir/$ac_word" >&5 13966break 13967done 13968 13969 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 13970fi 13971fi 13972cf_tic_prog=$ac_cv_prog_cf_tic_prog 13973if test -n "$cf_tic_prog"; then 13974 echo "$as_me:13974: result: $cf_tic_prog" >&5 13975echo "${ECHO_T}$cf_tic_prog" >&6 13976else 13977 echo "$as_me:13977: result: no" >&5 13978echo "${ECHO_T}no" >&6 13979fi 13980 13981if test "$cf_tic_prog" = yes ; then 13982 echo "$as_me:13982: checking for private terminfo-directory" >&5 13983echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 13984 13985# Check whether --with-own-terminfo or --without-own-terminfo was given. 13986if test "${with_own_terminfo+set}" = set; then 13987 withval="$with_own_terminfo" 13988 TERMINFO_DIR=$withval 13989else 13990 TERMINFO_DIR=${TERMINFO-none} 13991fi; 13992 echo "$as_me:13992: result: $TERMINFO_DIR" >&5 13993echo "${ECHO_T}$TERMINFO_DIR" >&6 13994 if test "$TERMINFO_DIR" = yes ; then 13995 { echo "$as_me:13995: WARNING: no value given" >&5 13996echo "$as_me: WARNING: no value given" >&2;} 13997 elif test "$TERMINFO_DIR" != none ; then 13998 if test -d $TERMINFO_DIR ; then 13999 14000cat >>confdefs.h <<EOF 14001#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 14002EOF 14003 14004 else 14005 { echo "$as_me:14005: WARNING: not a directory" >&5 14006echo "$as_me: WARNING: not a directory" >&2;} 14007 fi 14008 elif test "$prefix" != NONE ; then 14009 TERMINFO_DIR='${prefix}/lib/terminfo' 14010 elif test -d /usr/lib/terminfo ; then 14011 TERMINFO_DIR=/usr/lib/terminfo 14012 else 14013 TERMINFO_DIR= 14014 fi 14015 SET_TERMINFO= 14016 if test -n "$TERMINFO_DIR" ; then 14017 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 14018 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 14019 fi 14020 no_ticprog= 14021else 14022 no_ticprog="#" 14023 TERMINFO_DIR= 14024 SET_TERMINFO= 14025fi 14026 14027############################################################################### 14028 14029echo "$as_me:14029: checking if you want active-icons" >&5 14030echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 14031 14032# Check whether --enable-active-icon or --disable-active-icon was given. 14033if test "${enable_active_icon+set}" = set; then 14034 enableval="$enable_active_icon" 14035 test "$enableval" != no && enableval=yes 14036 if test "$enableval" != "yes" ; then 14037 enable_active_icon=no 14038 else 14039 enable_active_icon=yes 14040 fi 14041else 14042 enableval=yes 14043 enable_active_icon=yes 14044 14045fi; 14046echo "$as_me:14046: result: $enable_active_icon" >&5 14047echo "${ECHO_T}$enable_active_icon" >&6 14048if test "$enable_active_icon" = no ; then 14049 14050cat >>confdefs.h <<\EOF 14051#define NO_ACTIVE_ICON 1 14052EOF 14053 14054fi 14055 14056echo "$as_me:14056: checking if you want ANSI color" >&5 14057echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 14058 14059# Check whether --enable-ansi-color or --disable-ansi-color was given. 14060if test "${enable_ansi_color+set}" = set; then 14061 enableval="$enable_ansi_color" 14062 test "$enableval" != no && enableval=yes 14063 if test "$enableval" != "yes" ; then 14064 enable_ansi_color=no 14065 else 14066 enable_ansi_color=yes 14067 fi 14068else 14069 enableval=yes 14070 enable_ansi_color=yes 14071 14072fi; 14073echo "$as_me:14073: result: $enable_ansi_color" >&5 14074echo "${ECHO_T}$enable_ansi_color" >&6 14075test "$enable_ansi_color" = no && 14076cat >>confdefs.h <<\EOF 14077#define OPT_ISO_COLORS 0 14078EOF 14079 14080if test "$enable_ansi_color" = yes ; then 14081 14082 echo "$as_me:14082: checking if you want 16 colors like aixterm" >&5 14083echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 14084 14085# Check whether --enable-16-color or --disable-16-color was given. 14086if test "${enable_16_color+set}" = set; then 14087 enableval="$enable_16_color" 14088 test "$enableval" != no && enableval=yes 14089 if test "$enableval" != "yes" ; then 14090 enable_16_color=no 14091 else 14092 enable_16_color=yes 14093 fi 14094else 14095 enableval=yes 14096 enable_16_color=yes 14097 14098fi; 14099 echo "$as_me:14099: result: $enable_16_color" >&5 14100echo "${ECHO_T}$enable_16_color" >&6 14101 test "$enable_16_color" = no && 14102cat >>confdefs.h <<\EOF 14103#define OPT_AIX_COLORS 0 14104EOF 14105 14106 echo "$as_me:14106: checking if you want 256 colors" >&5 14107echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 14108 14109# Check whether --enable-256-color or --disable-256-color was given. 14110if test "${enable_256_color+set}" = set; then 14111 enableval="$enable_256_color" 14112 test "$enableval" != yes && enableval=no 14113 if test "$enableval" != "no" ; then 14114 enable_256_color=yes 14115 else 14116 enable_256_color=no 14117 fi 14118else 14119 enableval=no 14120 enable_256_color=no 14121 14122fi; 14123 echo "$as_me:14123: result: $enable_256_color" >&5 14124echo "${ECHO_T}$enable_256_color" >&6 14125 if test "$enable_256_color" = yes ; then 14126 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 14127 EXTRAHDRS="$EXTRAHDRS 256colres.h" 14128 14129cat >>confdefs.h <<\EOF 14130#define OPT_256_COLORS 1 14131EOF 14132 14133 else 14134 echo "$as_me:14134: checking if you want 88 colors" >&5 14135echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 14136 14137# Check whether --enable-88-color or --disable-88-color was given. 14138if test "${enable_88_color+set}" = set; then 14139 enableval="$enable_88_color" 14140 test "$enableval" != yes && enableval=no 14141 if test "$enableval" != "no" ; then 14142 enable_88_color=yes 14143 else 14144 enable_88_color=no 14145 fi 14146else 14147 enableval=no 14148 enable_88_color=no 14149 14150fi; 14151 echo "$as_me:14151: result: $enable_88_color" >&5 14152echo "${ECHO_T}$enable_88_color" >&6 14153 if test "$enable_88_color" = yes ; then 14154 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 14155 EXTRAHDRS="$EXTRAHDRS 88colres.h" 14156 14157cat >>confdefs.h <<\EOF 14158#define OPT_88_COLORS 1 14159EOF 14160 14161 fi 14162 fi 14163 14164fi 14165 14166echo "$as_me:14166: checking if you want blinking cursor" >&5 14167echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 14168 14169# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 14170if test "${enable_blink_cursor+set}" = set; then 14171 enableval="$enable_blink_cursor" 14172 test "$enableval" != no && enableval=yes 14173 if test "$enableval" != "yes" ; then 14174 enable_blink_curs=no 14175 else 14176 enable_blink_curs=yes 14177 fi 14178else 14179 enableval=yes 14180 enable_blink_curs=yes 14181 14182fi; 14183echo "$as_me:14183: result: $enable_blink_curs" >&5 14184echo "${ECHO_T}$enable_blink_curs" >&6 14185test "$enable_blink_curs" = no && 14186cat >>confdefs.h <<\EOF 14187#define OPT_BLINK_CURS 0 14188EOF 14189 14190echo "$as_me:14190: checking if you want to ignore Linux's broken palette-strings" >&5 14191echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 14192 14193case $host_os in #(vi 14194linux*) 14195 assume_broken_osc=yes ;; #(vi 14196*) 14197 assume_broken_osc=no ;; 14198esac 14199 14200# Check whether --enable-broken-osc or --disable-broken-osc was given. 14201if test "${enable_broken_osc+set}" = set; then 14202 enableval="$enable_broken_osc" 14203 test "$enableval" != no && enableval=yes 14204 if test "$enableval" != "$assume_broken_osc" ; then 14205 enable_broken_osc=$enableval 14206 else 14207 enable_broken_osc=$enableval 14208 fi 14209else 14210 enableval=$assume_broken_osc 14211 enable_broken_osc=$enableval 14212 14213fi; 14214echo "$as_me:14214: result: $enable_broken_osc" >&5 14215echo "${ECHO_T}$enable_broken_osc" >&6 14216if test "$enable_broken_osc" = yes ; then 14217 14218cat >>confdefs.h <<\EOF 14219#define OPT_BROKEN_OSC 1 14220EOF 14221 14222else 14223 14224cat >>confdefs.h <<\EOF 14225#define OPT_BROKEN_OSC 0 14226EOF 14227 14228fi 14229 14230echo "$as_me:14230: checking if you want to allow broken string-terminators" >&5 14231echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 14232 14233# Check whether --enable-broken-st or --disable-broken-st was given. 14234if test "${enable_broken_st+set}" = set; then 14235 enableval="$enable_broken_st" 14236 test "$enableval" != yes && enableval=no 14237 if test "$enableval" != "no" ; then 14238 enable_broken_st=no 14239 else 14240 enable_broken_st=yes 14241 fi 14242else 14243 enableval=no 14244 enable_broken_st=yes 14245 14246fi; 14247echo "$as_me:14247: result: $enable_broken_st" >&5 14248echo "${ECHO_T}$enable_broken_st" >&6 14249test "$enable_broken_st" = no && 14250cat >>confdefs.h <<\EOF 14251#define OPT_BROKEN_ST 0 14252EOF 14253 14254echo "$as_me:14254: checking if you want printable 128-159" >&5 14255echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 14256 14257# Check whether --enable-c1-print or --disable-c1-print was given. 14258if test "${enable_c1_print+set}" = set; then 14259 enableval="$enable_c1_print" 14260 test "$enableval" != no && enableval=yes 14261 if test "$enableval" != "yes" ; then 14262 enable_c1_print=no 14263 else 14264 enable_c1_print=yes 14265 fi 14266else 14267 enableval=yes 14268 enable_c1_print=yes 14269 14270fi; 14271echo "$as_me:14271: result: $enable_c1_print" >&5 14272echo "${ECHO_T}$enable_c1_print" >&6 14273test "$enable_c1_print" = no && 14274cat >>confdefs.h <<\EOF 14275#define OPT_C1_PRINT 0 14276EOF 14277 14278if test "$enable_ansi_color" = yes ; then 14279 14280 echo "$as_me:14280: checking if you want bold colors mapped like IBM PC" >&5 14281echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 14282 14283# Check whether --enable-bold-color or --disable-bold-color was given. 14284if test "${enable_bold_color+set}" = set; then 14285 enableval="$enable_bold_color" 14286 test "$enableval" != no && enableval=yes 14287 if test "$enableval" != "yes" ; then 14288 enable_pc_color=no 14289 else 14290 enable_pc_color=yes 14291 fi 14292else 14293 enableval=yes 14294 enable_pc_color=yes 14295 14296fi; 14297 echo "$as_me:14297: result: $enable_pc_color" >&5 14298echo "${ECHO_T}$enable_pc_color" >&6 14299 test "$enable_pc_color" = no && 14300cat >>confdefs.h <<\EOF 14301#define OPT_PC_COLORS 0 14302EOF 14303 14304 echo "$as_me:14304: checking if you want separate color-classes" >&5 14305echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 14306 14307# Check whether --enable-color-class or --disable-color-class was given. 14308if test "${enable_color_class+set}" = set; then 14309 enableval="$enable_color_class" 14310 test "$enableval" != no && enableval=yes 14311 if test "$enableval" != "yes" ; then 14312 enable_color_class=no 14313 else 14314 enable_color_class=yes 14315 fi 14316else 14317 enableval=yes 14318 enable_color_class=yes 14319 14320fi; 14321 echo "$as_me:14321: result: $enable_color_class" >&5 14322echo "${ECHO_T}$enable_color_class" >&6 14323 test "$enable_color_class" = no && 14324cat >>confdefs.h <<\EOF 14325#define OPT_COLOR_CLASS 0 14326EOF 14327 14328 echo "$as_me:14328: checking if you want color-mode enabled by default" >&5 14329echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 14330 14331# Check whether --enable-color-mode or --disable-color-mode was given. 14332if test "${enable_color_mode+set}" = set; then 14333 enableval="$enable_color_mode" 14334 test "$enableval" != no && enableval=yes 14335 if test "$enableval" != "yes" ; then 14336 default_colormode=no 14337 else 14338 default_colormode=yes 14339 fi 14340else 14341 enableval=yes 14342 default_colormode=yes 14343 14344fi; 14345 echo "$as_me:14345: result: $default_colormode" >&5 14346echo "${ECHO_T}$default_colormode" >&6 14347 test "$default_colormode" = no && 14348cat >>confdefs.h <<\EOF 14349#define DFT_COLORMODE 0 14350EOF 14351 14352fi 14353 14354echo "$as_me:14354: checking if you want support for color highlighting" >&5 14355echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 14356 14357# Check whether --enable-highlighting or --disable-highlighting was given. 14358if test "${enable_highlighting+set}" = set; then 14359 enableval="$enable_highlighting" 14360 test "$enableval" != no && enableval=yes 14361 if test "$enableval" != "yes" ; then 14362 default_highlight=no 14363 else 14364 default_highlight=yes 14365 fi 14366else 14367 enableval=yes 14368 default_highlight=yes 14369 14370fi; 14371echo "$as_me:14371: result: $default_highlight" >&5 14372echo "${ECHO_T}$default_highlight" >&6 14373test "$default_highlight" = no && 14374cat >>confdefs.h <<\EOF 14375#define OPT_HIGHLIGHT_COLOR 0 14376EOF 14377 14378echo "$as_me:14378: checking if you want support for doublesize characters" >&5 14379echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 14380 14381# Check whether --enable-doublechars or --disable-doublechars was given. 14382if test "${enable_doublechars+set}" = set; then 14383 enableval="$enable_doublechars" 14384 test "$enableval" != no && enableval=yes 14385 if test "$enableval" != "yes" ; then 14386 enable_doublechars=no 14387 else 14388 enable_doublechars=yes 14389 fi 14390else 14391 enableval=yes 14392 enable_doublechars=yes 14393 14394fi; 14395echo "$as_me:14395: result: $enable_doublechars" >&5 14396echo "${ECHO_T}$enable_doublechars" >&6 14397test "$enable_doublechars" = no && 14398cat >>confdefs.h <<\EOF 14399#define OPT_DEC_CHRSET 0 14400EOF 14401 14402echo "$as_me:14402: checking if you want fallback-support for box characters" >&5 14403echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 14404 14405# Check whether --enable-boxchars or --disable-boxchars was given. 14406if test "${enable_boxchars+set}" = set; then 14407 enableval="$enable_boxchars" 14408 test "$enableval" != no && enableval=yes 14409 if test "$enableval" != "yes" ; then 14410 enable_boxchars=no 14411 else 14412 enable_boxchars=yes 14413 fi 14414else 14415 enableval=yes 14416 enable_boxchars=yes 14417 14418fi; 14419echo "$as_me:14419: result: $enable_boxchars" >&5 14420echo "${ECHO_T}$enable_boxchars" >&6 14421test "$enable_boxchars" = no && 14422cat >>confdefs.h <<\EOF 14423#define OPT_BOX_CHARS 0 14424EOF 14425 14426echo "$as_me:14426: checking if you want to allow spawning new xterms" >&5 14427echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 14428 14429# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 14430if test "${enable_exec_xterm+set}" = set; then 14431 enableval="$enable_exec_xterm" 14432 test "$enableval" != yes && enableval=no 14433 if test "$enableval" != "no" ; then 14434 enable_exec_xterm=yes 14435 else 14436 enable_exec_xterm=no 14437 fi 14438else 14439 enableval=no 14440 enable_exec_xterm=no 14441 14442fi; 14443echo "$as_me:14443: result: $enable_exec_xterm" >&5 14444echo "${ECHO_T}$enable_exec_xterm" >&6 14445if test "$enable_exec_xterm" = yes ; then 14446 14447echo "$as_me:14447: checking for proc tree with cwd-support" >&5 14448echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 14449if test "${cf_cv_procfs_cwd+set}" = set; then 14450 echo $ECHO_N "(cached) $ECHO_C" >&6 14451else 14452 14453cf_cv_procfs_cwd=no 14454for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 14455do 14456 if test -d $cf_path && \ 14457 test -d $cf_path/$$ && \ 14458 ( test -d $cf_path/$$/cwd || \ 14459 test -L $cf_path/$$/cwd ); then 14460 cf_cv_procfs_cwd=$cf_path 14461 break 14462 fi 14463done 14464 14465fi 14466echo "$as_me:14466: result: $cf_cv_procfs_cwd" >&5 14467echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 14468 14469 if test "$cf_cv_procfs_cwd" = no ; then 14470 { echo "$as_me:14470: WARNING: no suitable proc filesystem found" >&5 14471echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 14472 else 14473 14474cat >>confdefs.h <<EOF 14475#define PROCFS_ROOT "$cf_cv_procfs_cwd" 14476EOF 14477 14478cat >>confdefs.h <<\EOF 14479#define OPT_EXEC_XTERM 1 14480EOF 14481 14482 fi 14483fi 14484 14485echo "$as_me:14485: checking if you want to use double-buffering" >&5 14486echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6 14487 14488# Check whether --enable-double-buffer or --disable-double-buffer was given. 14489if test "${enable_double_buffer+set}" = set; then 14490 enableval="$enable_double_buffer" 14491 test "$enableval" != yes && enableval=no 14492 if test "$enableval" != "no" ; then 14493 enable_double_bfr=yes 14494 else 14495 enable_double_bfr=no 14496 fi 14497else 14498 enableval=no 14499 enable_double_bfr=no 14500 14501fi; 14502echo "$as_me:14502: result: $enable_double_bfr" >&5 14503echo "${ECHO_T}$enable_double_bfr" >&6 14504if test "$enable_double_bfr" = yes ; then 14505 case "x$LIBS" in 14506 *Xext*) 14507 ;; 14508 *) 14509 14510if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 14511 test -n "$verbose" && echo " found package Xext" 1>&6 14512 14513echo "${as_me:-configure}:14513: testing found package Xext ..." 1>&5 14514 14515 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 14516 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 14517 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 14518 14519echo "${as_me:-configure}:14519: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14520 14521 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 14522 14523echo "${as_me:-configure}:14523: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 14524 14525cf_fix_cppflags=no 14526cf_new_cflags= 14527cf_new_cppflags= 14528cf_new_extra_cppflags= 14529 14530for cf_add_cflags in $cf_pkgconfig_incs 14531do 14532case $cf_fix_cppflags in 14533no) 14534 case $cf_add_cflags in #(vi 14535 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 14536 case $cf_add_cflags in 14537 -D*) 14538 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14539 14540 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14541 && test -z "${cf_tst_cflags}" \ 14542 && cf_fix_cppflags=yes 14543 14544 if test $cf_fix_cppflags = yes ; then 14545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14546 continue 14547 elif test "${cf_tst_cflags}" = "\"'" ; then 14548 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14549 continue 14550 fi 14551 ;; 14552 esac 14553 case "$CPPFLAGS" in 14554 *$cf_add_cflags) #(vi 14555 ;; 14556 *) #(vi 14557 case $cf_add_cflags in #(vi 14558 -D*) 14559 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14560 14561CPPFLAGS=`echo "$CPPFLAGS" | \ 14562 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14563 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14564 14565 ;; 14566 esac 14567 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 14568 ;; 14569 esac 14570 ;; 14571 *) 14572 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 14573 ;; 14574 esac 14575 ;; 14576yes) 14577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14578 14579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 14580 14581 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14582 && test -z "${cf_tst_cflags}" \ 14583 && cf_fix_cppflags=no 14584 ;; 14585esac 14586done 14587 14588if test -n "$cf_new_cflags" ; then 14589 14590 CFLAGS="$CFLAGS $cf_new_cflags" 14591fi 14592 14593if test -n "$cf_new_cppflags" ; then 14594 14595 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 14596fi 14597 14598if test -n "$cf_new_extra_cppflags" ; then 14599 14600 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 14601fi 14602 14603 LIBS="$cf_pkgconfig_libs $LIBS" 14604 : 14605else 14606 cf_pkgconfig_incs= 14607 cf_pkgconfig_libs= 14608 14609 echo "$as_me:14609: checking for XextCreateExtension in -lXext" >&5 14610echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 14611if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 14612 echo $ECHO_N "(cached) $ECHO_C" >&6 14613else 14614 ac_check_lib_save_LIBS=$LIBS 14615LIBS="-lXext $LIBS" 14616cat >conftest.$ac_ext <<_ACEOF 14617#line 14617 "configure" 14618#include "confdefs.h" 14619 14620/* Override any gcc2 internal prototype to avoid an error. */ 14621#ifdef __cplusplus 14622extern "C" 14623#endif 14624/* We use char because int might match the return type of a gcc2 14625 builtin and then its argument prototype would still apply. */ 14626char XextCreateExtension (); 14627int 14628main () 14629{ 14630XextCreateExtension (); 14631 ; 14632 return 0; 14633} 14634_ACEOF 14635rm -f conftest.$ac_objext conftest$ac_exeext 14636if { (eval echo "$as_me:14636: \"$ac_link\"") >&5 14637 (eval $ac_link) 2>&5 14638 ac_status=$? 14639 echo "$as_me:14639: \$? = $ac_status" >&5 14640 (exit $ac_status); } && 14641 { ac_try='test -s conftest$ac_exeext' 14642 { (eval echo "$as_me:14642: \"$ac_try\"") >&5 14643 (eval $ac_try) 2>&5 14644 ac_status=$? 14645 echo "$as_me:14645: \$? = $ac_status" >&5 14646 (exit $ac_status); }; }; then 14647 ac_cv_lib_Xext_XextCreateExtension=yes 14648else 14649 echo "$as_me: failed program was:" >&5 14650cat conftest.$ac_ext >&5 14651ac_cv_lib_Xext_XextCreateExtension=no 14652fi 14653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14654LIBS=$ac_check_lib_save_LIBS 14655fi 14656echo "$as_me:14656: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 14657echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 14658if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 14659 LIBS="-lXext $LIBS" 14660fi 14661 14662fi 14663 14664 ;; 14665 esac 14666 14667cat >>confdefs.h <<\EOF 14668#define OPT_DOUBLE_BUFFER 1 14669EOF 14670 14671fi 14672 14673echo "$as_me:14673: checking if you want to use FreeType library" >&5 14674echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 14675 14676# Check whether --enable-freetype or --disable-freetype was given. 14677if test "${enable_freetype+set}" = set; then 14678 enableval="$enable_freetype" 14679 test "$enableval" != no && enableval=yes 14680 if test "$enableval" != "yes" ; then 14681 enable_freetype=no 14682 else 14683 enable_freetype=yes 14684 fi 14685else 14686 enableval=yes 14687 enable_freetype=yes 14688 14689fi; 14690echo "$as_me:14690: result: $enable_freetype" >&5 14691echo "${ECHO_T}$enable_freetype" >&6 14692if test "$enable_freetype" = yes ; then 14693 14694cf_cv_x_freetype_incs=no 14695cf_cv_x_freetype_libs=no 14696cf_extra_freetype_libs= 14697FREETYPE_CONFIG=none 14698FREETYPE_PARAMS= 14699 14700echo "$as_me:14700: checking for FreeType configuration script" >&5 14701echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 14702 14703# Check whether --with-freetype-config or --without-freetype-config was given. 14704if test "${with_freetype_config+set}" = set; then 14705 withval="$with_freetype_config" 14706 cf_cv_x_freetype_cfgs="$withval" 14707else 14708 cf_cv_x_freetype_cfgs=auto 14709fi; 14710test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 14711test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 14712echo "$as_me:14712: result: $cf_cv_x_freetype_cfgs" >&5 14713echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 14714 14715case $cf_cv_x_freetype_cfgs in 14716none) #(vi 14717 echo "$as_me:14717: checking if you specified -D/-I options for FreeType" >&5 14718echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 14719 14720# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 14721if test "${with_freetype_cflags+set}" = set; then 14722 withval="$with_freetype_cflags" 14723 cf_cv_x_freetype_incs="$with_freetype_cflags" 14724else 14725 cf_cv_x_freetype_incs=no 14726fi; 14727 echo "$as_me:14727: result: $cf_cv_x_freetype_incs" >&5 14728echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 14729 14730 echo "$as_me:14730: checking if you specified -L/-l options for FreeType" >&5 14731echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 14732 14733# Check whether --with-freetype-libs or --without-freetype-libs was given. 14734if test "${with_freetype_libs+set}" = set; then 14735 withval="$with_freetype_libs" 14736 cf_cv_x_freetype_libs="$with_freetype_libs" 14737else 14738 cf_cv_x_freetype_libs=no 14739fi; 14740 echo "$as_me:14740: result: $cf_cv_x_freetype_libs" >&5 14741echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 14742 ;; 14743auto) #(vi 14744 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 14745 FREETYPE_CONFIG=$PKG_CONFIG 14746 FREETYPE_PARAMS=xft 14747 else 14748 # Extract the first word of "freetype-config", so it can be a program name with args. 14749set dummy freetype-config; ac_word=$2 14750echo "$as_me:14750: checking for $ac_word" >&5 14751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14752if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 14753 echo $ECHO_N "(cached) $ECHO_C" >&6 14754else 14755 case $FREETYPE_CONFIG in 14756 [\\/]* | ?:[\\/]*) 14757 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 14758 ;; 14759 *) 14760 ac_save_IFS=$IFS; IFS=$ac_path_separator 14761ac_dummy="$PATH" 14762for ac_dir in $ac_dummy; do 14763 IFS=$ac_save_IFS 14764 test -z "$ac_dir" && ac_dir=. 14765 if $as_executable_p "$ac_dir/$ac_word"; then 14766 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 14767 echo "$as_me:14767: found $ac_dir/$ac_word" >&5 14768 break 14769fi 14770done 14771 14772 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 14773 ;; 14774esac 14775fi 14776FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 14777 14778if test -n "$FREETYPE_CONFIG"; then 14779 echo "$as_me:14779: result: $FREETYPE_CONFIG" >&5 14780echo "${ECHO_T}$FREETYPE_CONFIG" >&6 14781else 14782 echo "$as_me:14782: result: no" >&5 14783echo "${ECHO_T}no" >&6 14784fi 14785 14786 if test "$FREETYPE_CONFIG" != none; then 14787 FREETYPE_CONFIG=$FREETYPE_CONFIG 14788 cf_extra_freetype_libs="-lXft" 14789 else 14790 # Extract the first word of "xft-config", so it can be a program name with args. 14791set dummy xft-config; ac_word=$2 14792echo "$as_me:14792: checking for $ac_word" >&5 14793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14794if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 14795 echo $ECHO_N "(cached) $ECHO_C" >&6 14796else 14797 case $FREETYPE_OLD_CONFIG in 14798 [\\/]* | ?:[\\/]*) 14799 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 14800 ;; 14801 *) 14802 ac_save_IFS=$IFS; IFS=$ac_path_separator 14803ac_dummy="$PATH" 14804for ac_dir in $ac_dummy; do 14805 IFS=$ac_save_IFS 14806 test -z "$ac_dir" && ac_dir=. 14807 if $as_executable_p "$ac_dir/$ac_word"; then 14808 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 14809 echo "$as_me:14809: found $ac_dir/$ac_word" >&5 14810 break 14811fi 14812done 14813 14814 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 14815 ;; 14816esac 14817fi 14818FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 14819 14820if test -n "$FREETYPE_OLD_CONFIG"; then 14821 echo "$as_me:14821: result: $FREETYPE_OLD_CONFIG" >&5 14822echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 14823else 14824 echo "$as_me:14824: result: no" >&5 14825echo "${ECHO_T}no" >&6 14826fi 14827 14828 if test "$FREETYPE_OLD_CONFIG" != none; then 14829 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 14830 fi 14831 fi 14832 fi 14833 ;; 14834pkg*) #(vi 14835 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 14836 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 14837 FREETYPE_PARAMS=xft 14838 else 14839 { echo "$as_me:14839: WARNING: cannot find pkg-config for Xft" >&5 14840echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 14841 fi 14842 ;; 14843*) #(vi 14844 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 14845set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 14846echo "$as_me:14846: checking for $ac_word" >&5 14847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14848if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 14849 echo $ECHO_N "(cached) $ECHO_C" >&6 14850else 14851 case $FREETYPE_XFT_CONFIG in 14852 [\\/]* | ?:[\\/]*) 14853 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 14854 ;; 14855 *) 14856 ac_save_IFS=$IFS; IFS=$ac_path_separator 14857ac_dummy="$PATH" 14858for ac_dir in $ac_dummy; do 14859 IFS=$ac_save_IFS 14860 test -z "$ac_dir" && ac_dir=. 14861 if $as_executable_p "$ac_dir/$ac_word"; then 14862 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 14863 echo "$as_me:14863: found $ac_dir/$ac_word" >&5 14864 break 14865fi 14866done 14867 14868 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 14869 ;; 14870esac 14871fi 14872FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 14873 14874if test -n "$FREETYPE_XFT_CONFIG"; then 14875 echo "$as_me:14875: result: $FREETYPE_XFT_CONFIG" >&5 14876echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 14877else 14878 echo "$as_me:14878: result: no" >&5 14879echo "${ECHO_T}no" >&6 14880fi 14881 14882 if test "$FREETYPE_XFT_CONFIG" != none; then 14883 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 14884 else 14885 { echo "$as_me:14885: WARNING: cannot find config script for Xft" >&5 14886echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 14887 fi 14888 ;; 14889esac 14890 14891if test "$FREETYPE_CONFIG" != none ; then 14892 echo "$as_me:14892: checking for FreeType config" >&5 14893echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 14894 echo "$as_me:14894: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 14895echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 14896 14897 if test "$cf_cv_x_freetype_incs" = no ; then 14898 echo "$as_me:14898: checking for $FREETYPE_CONFIG cflags" >&5 14899echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 14900 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 14901 echo "$as_me:14901: result: $cf_cv_x_freetype_incs" >&5 14902echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 14903 fi 14904 14905 if test "$cf_cv_x_freetype_libs" = no ; then 14906 echo "$as_me:14906: checking for $FREETYPE_CONFIG libs" >&5 14907echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 14908 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 14909 echo "$as_me:14909: result: $cf_cv_x_freetype_libs" >&5 14910echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 14911 fi 14912fi 14913 14914if test "$cf_cv_x_freetype_incs" = no ; then 14915 cf_cv_x_freetype_incs= 14916fi 14917 14918if test "$cf_cv_x_freetype_libs" = no ; then 14919 cf_cv_x_freetype_libs=-lXft 14920fi 14921 14922echo "$as_me:14922: checking if we can link with FreeType libraries" >&5 14923echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 14924 14925cf_save_LIBS="$LIBS" 14926cf_save_INCS="$CPPFLAGS" 14927 14928LIBS="$cf_cv_x_freetype_libs $LIBS" 14929CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 14930 14931cat >conftest.$ac_ext <<_ACEOF 14932#line 14932 "configure" 14933#include "confdefs.h" 14934 14935#include <X11/Xlib.h> 14936#include <X11/extensions/Xrender.h> 14937#include <X11/Xft/Xft.h> 14938int 14939main () 14940{ 14941 14942 XftPattern *pat = XftNameParse ("name"); 14943 ; 14944 return 0; 14945} 14946_ACEOF 14947rm -f conftest.$ac_objext conftest$ac_exeext 14948if { (eval echo "$as_me:14948: \"$ac_link\"") >&5 14949 (eval $ac_link) 2>&5 14950 ac_status=$? 14951 echo "$as_me:14951: \$? = $ac_status" >&5 14952 (exit $ac_status); } && 14953 { ac_try='test -s conftest$ac_exeext' 14954 { (eval echo "$as_me:14954: \"$ac_try\"") >&5 14955 (eval $ac_try) 2>&5 14956 ac_status=$? 14957 echo "$as_me:14957: \$? = $ac_status" >&5 14958 (exit $ac_status); }; }; then 14959 cf_cv_found_freetype=yes 14960else 14961 echo "$as_me: failed program was:" >&5 14962cat conftest.$ac_ext >&5 14963cf_cv_found_freetype=no 14964fi 14965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14966echo "$as_me:14966: result: $cf_cv_found_freetype" >&5 14967echo "${ECHO_T}$cf_cv_found_freetype" >&6 14968 14969LIBS="$cf_save_LIBS" 14970CPPFLAGS="$cf_save_INCS" 14971 14972if test "$cf_cv_found_freetype" = yes ; then 14973 LIBS="$cf_cv_x_freetype_libs $LIBS" 14974 14975cf_fix_cppflags=no 14976cf_new_cflags= 14977cf_new_cppflags= 14978cf_new_extra_cppflags= 14979 14980for cf_add_cflags in $cf_cv_x_freetype_incs 14981do 14982case $cf_fix_cppflags in 14983no) 14984 case $cf_add_cflags in #(vi 14985 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 14986 case $cf_add_cflags in 14987 -D*) 14988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14989 14990 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14991 && test -z "${cf_tst_cflags}" \ 14992 && cf_fix_cppflags=yes 14993 14994 if test $cf_fix_cppflags = yes ; then 14995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14996 continue 14997 elif test "${cf_tst_cflags}" = "\"'" ; then 14998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14999 continue 15000 fi 15001 ;; 15002 esac 15003 case "$CPPFLAGS" in 15004 *$cf_add_cflags) #(vi 15005 ;; 15006 *) #(vi 15007 case $cf_add_cflags in #(vi 15008 -D*) 15009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15010 15011CPPFLAGS=`echo "$CPPFLAGS" | \ 15012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15014 15015 ;; 15016 esac 15017 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15018 ;; 15019 esac 15020 ;; 15021 *) 15022 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15023 ;; 15024 esac 15025 ;; 15026yes) 15027 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15028 15029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15030 15031 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15032 && test -z "${cf_tst_cflags}" \ 15033 && cf_fix_cppflags=no 15034 ;; 15035esac 15036done 15037 15038if test -n "$cf_new_cflags" ; then 15039 15040 CFLAGS="$CFLAGS $cf_new_cflags" 15041fi 15042 15043if test -n "$cf_new_cppflags" ; then 15044 15045 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15046fi 15047 15048if test -n "$cf_new_extra_cppflags" ; then 15049 15050 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15051fi 15052 15053cat >>confdefs.h <<\EOF 15054#define XRENDERFONT 1 15055EOF 15056 15057for ac_func in \ 15058 XftDrawCharSpec \ 15059 XftDrawSetClip \ 15060 XftDrawSetClipRectangles \ 15061 15062do 15063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15064echo "$as_me:15064: checking for $ac_func" >&5 15065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15066if eval "test \"\${$as_ac_var+set}\" = set"; then 15067 echo $ECHO_N "(cached) $ECHO_C" >&6 15068else 15069 cat >conftest.$ac_ext <<_ACEOF 15070#line 15070 "configure" 15071#include "confdefs.h" 15072/* System header to define __stub macros and hopefully few prototypes, 15073 which can conflict with char $ac_func (); below. */ 15074#include <assert.h> 15075/* Override any gcc2 internal prototype to avoid an error. */ 15076#ifdef __cplusplus 15077extern "C" 15078#endif 15079/* We use char because int might match the return type of a gcc2 15080 builtin and then its argument prototype would still apply. */ 15081char $ac_func (); 15082char (*f) (); 15083 15084int 15085main () 15086{ 15087/* The GNU C library defines this for functions which it implements 15088 to always fail with ENOSYS. Some functions are actually named 15089 something starting with __ and the normal name is an alias. */ 15090#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15091choke me 15092#else 15093f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 15094#endif 15095 15096 ; 15097 return 0; 15098} 15099_ACEOF 15100rm -f conftest.$ac_objext conftest$ac_exeext 15101if { (eval echo "$as_me:15101: \"$ac_link\"") >&5 15102 (eval $ac_link) 2>&5 15103 ac_status=$? 15104 echo "$as_me:15104: \$? = $ac_status" >&5 15105 (exit $ac_status); } && 15106 { ac_try='test -s conftest$ac_exeext' 15107 { (eval echo "$as_me:15107: \"$ac_try\"") >&5 15108 (eval $ac_try) 2>&5 15109 ac_status=$? 15110 echo "$as_me:15110: \$? = $ac_status" >&5 15111 (exit $ac_status); }; }; then 15112 eval "$as_ac_var=yes" 15113else 15114 echo "$as_me: failed program was:" >&5 15115cat conftest.$ac_ext >&5 15116eval "$as_ac_var=no" 15117fi 15118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15119fi 15120echo "$as_me:15120: result: `eval echo '${'$as_ac_var'}'`" >&5 15121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15122if test `eval echo '${'$as_ac_var'}'` = yes; then 15123 cat >>confdefs.h <<EOF 15124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15125EOF 15126 15127fi 15128done 15129 15130else 15131 { echo "$as_me:15131: WARNING: No libraries found for FreeType" >&5 15132echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 15133 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 15134fi 15135 15136# FIXME: revisit this if needed 15137 15138if test "$cf_cv_found_freetype" = yes ; then 15139echo "$as_me:15139: checking for usable Xft/fontconfig package" >&5 15140echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 15141if test "${cf_cv_xft_compat+set}" = set; then 15142 echo $ECHO_N "(cached) $ECHO_C" >&6 15143else 15144 15145cat >conftest.$ac_ext <<_ACEOF 15146#line 15146 "configure" 15147#include "confdefs.h" 15148 15149#include <X11/Xft/Xft.h> 15150 15151int 15152main () 15153{ 15154 15155 XftPattern *pat; 15156 XftPatternBuild(pat, 15157 XFT_FAMILY, XftTypeString, "mono", 15158 (void *) 0); 15159 15160 ; 15161 return 0; 15162} 15163_ACEOF 15164rm -f conftest.$ac_objext conftest$ac_exeext 15165if { (eval echo "$as_me:15165: \"$ac_link\"") >&5 15166 (eval $ac_link) 2>&5 15167 ac_status=$? 15168 echo "$as_me:15168: \$? = $ac_status" >&5 15169 (exit $ac_status); } && 15170 { ac_try='test -s conftest$ac_exeext' 15171 { (eval echo "$as_me:15171: \"$ac_try\"") >&5 15172 (eval $ac_try) 2>&5 15173 ac_status=$? 15174 echo "$as_me:15174: \$? = $ac_status" >&5 15175 (exit $ac_status); }; }; then 15176 cf_cv_xft_compat=yes 15177else 15178 echo "$as_me: failed program was:" >&5 15179cat conftest.$ac_ext >&5 15180cf_cv_xft_compat=no 15181fi 15182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15183 15184fi 15185echo "$as_me:15185: result: $cf_cv_xft_compat" >&5 15186echo "${ECHO_T}$cf_cv_xft_compat" >&6 15187 15188if test "$cf_cv_xft_compat" = no 15189then 15190 # workaround for broken ".pc" files used for Xft. 15191 case "$cf_cv_x_freetype_libs" in #(vi 15192 *-lfontconfig*) #(vi 15193 ;; 15194 *) 15195 test -n "$verbose" && echo " work around broken package" 1>&6 15196 15197echo "${as_me:-configure}:15197: testing work around broken package ..." 1>&5 15198 15199 cf_save_fontconfig="$LIBS" 15200 15201if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then 15202 test -n "$verbose" && echo " found package fontconfig" 1>&6 15203 15204echo "${as_me:-configure}:15204: testing found package fontconfig ..." 1>&5 15205 15206 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`" 15207 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`" 15208 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 15209 15210echo "${as_me:-configure}:15210: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15211 15212 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 15213 15214echo "${as_me:-configure}:15214: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 15215 15216cf_fix_cppflags=no 15217cf_new_cflags= 15218cf_new_cppflags= 15219cf_new_extra_cppflags= 15220 15221for cf_add_cflags in $cf_pkgconfig_incs 15222do 15223case $cf_fix_cppflags in 15224no) 15225 case $cf_add_cflags in #(vi 15226 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15227 case $cf_add_cflags in 15228 -D*) 15229 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15230 15231 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15232 && test -z "${cf_tst_cflags}" \ 15233 && cf_fix_cppflags=yes 15234 15235 if test $cf_fix_cppflags = yes ; then 15236 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15237 continue 15238 elif test "${cf_tst_cflags}" = "\"'" ; then 15239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15240 continue 15241 fi 15242 ;; 15243 esac 15244 case "$CPPFLAGS" in 15245 *$cf_add_cflags) #(vi 15246 ;; 15247 *) #(vi 15248 case $cf_add_cflags in #(vi 15249 -D*) 15250 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15251 15252CPPFLAGS=`echo "$CPPFLAGS" | \ 15253 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15254 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15255 15256 ;; 15257 esac 15258 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15259 ;; 15260 esac 15261 ;; 15262 *) 15263 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15264 ;; 15265 esac 15266 ;; 15267yes) 15268 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15269 15270 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15271 15272 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15273 && test -z "${cf_tst_cflags}" \ 15274 && cf_fix_cppflags=no 15275 ;; 15276esac 15277done 15278 15279if test -n "$cf_new_cflags" ; then 15280 15281 CFLAGS="$CFLAGS $cf_new_cflags" 15282fi 15283 15284if test -n "$cf_new_cppflags" ; then 15285 15286 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15287fi 15288 15289if test -n "$cf_new_extra_cppflags" ; then 15290 15291 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15292fi 15293 15294 LIBS="$cf_pkgconfig_libs $LIBS" 15295 15296cf_fix_cppflags=no 15297cf_new_cflags= 15298cf_new_cppflags= 15299cf_new_extra_cppflags= 15300 15301for cf_add_cflags in $cf_pkgconfig_incs 15302do 15303case $cf_fix_cppflags in 15304no) 15305 case $cf_add_cflags in #(vi 15306 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15307 case $cf_add_cflags in 15308 -D*) 15309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15310 15311 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15312 && test -z "${cf_tst_cflags}" \ 15313 && cf_fix_cppflags=yes 15314 15315 if test $cf_fix_cppflags = yes ; then 15316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15317 continue 15318 elif test "${cf_tst_cflags}" = "\"'" ; then 15319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15320 continue 15321 fi 15322 ;; 15323 esac 15324 case "$CPPFLAGS" in 15325 *$cf_add_cflags) #(vi 15326 ;; 15327 *) #(vi 15328 case $cf_add_cflags in #(vi 15329 -D*) 15330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15331 15332CPPFLAGS=`echo "$CPPFLAGS" | \ 15333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15335 15336 ;; 15337 esac 15338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15339 ;; 15340 esac 15341 ;; 15342 *) 15343 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15344 ;; 15345 esac 15346 ;; 15347yes) 15348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15349 15350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15351 15352 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15353 && test -z "${cf_tst_cflags}" \ 15354 && cf_fix_cppflags=no 15355 ;; 15356esac 15357done 15358 15359if test -n "$cf_new_cflags" ; then 15360 15361 CFLAGS="$CFLAGS $cf_new_cflags" 15362fi 15363 15364if test -n "$cf_new_cppflags" ; then 15365 15366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15367fi 15368 15369if test -n "$cf_new_extra_cppflags" ; then 15370 15371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15372fi 15373 15374 LIBS="$cf_save_fontconfig" 15375 15376test -n "$verbose" && echo " ...before $LIBS" 1>&6 15377 15378echo "${as_me:-configure}:15378: testing ...before $LIBS ..." 1>&5 15379 15380LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 15381test -n "$verbose" && echo " ...after $LIBS" 1>&6 15382 15383echo "${as_me:-configure}:15383: testing ...after $LIBS ..." 1>&5 15384 15385else 15386 cf_pkgconfig_incs= 15387 cf_pkgconfig_libs= 15388 15389test -n "$verbose" && echo " ...before $LIBS" 1>&6 15390 15391echo "${as_me:-configure}:15391: testing ...before $LIBS ..." 1>&5 15392 15393LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 15394test -n "$verbose" && echo " ...after $LIBS" 1>&6 15395 15396echo "${as_me:-configure}:15396: testing ...after $LIBS ..." 1>&5 15397 15398fi 15399 15400 ;; 15401 esac 15402fi 15403fi 15404 15405else 15406 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 15407fi 15408 15409echo "$as_me:15409: checking if you want support for HP-style function keys" >&5 15410echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 15411 15412# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 15413if test "${enable_hp_fkeys+set}" = set; then 15414 enableval="$enable_hp_fkeys" 15415 test "$enableval" != yes && enableval=no 15416 if test "$enableval" != "no" ; then 15417 enable_hp_fkeys=yes 15418 else 15419 enable_hp_fkeys=no 15420 fi 15421else 15422 enableval=no 15423 enable_hp_fkeys=no 15424 15425fi; 15426echo "$as_me:15426: result: $enable_hp_fkeys" >&5 15427echo "${ECHO_T}$enable_hp_fkeys" >&6 15428if test "$enable_hp_fkeys" = yes ; then 15429 15430cat >>confdefs.h <<\EOF 15431#define OPT_HP_FUNC_KEYS 1 15432EOF 15433 15434fi 15435 15436echo "$as_me:15436: checking if you want support for SCO-style function keys" >&5 15437echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 15438 15439# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 15440if test "${enable_sco_fkeys+set}" = set; then 15441 enableval="$enable_sco_fkeys" 15442 test "$enableval" != yes && enableval=no 15443 if test "$enableval" != "no" ; then 15444 enable_sco_fkeys=yes 15445 else 15446 enable_sco_fkeys=no 15447 fi 15448else 15449 enableval=no 15450 enable_sco_fkeys=no 15451 15452fi; 15453echo "$as_me:15453: result: $enable_sco_fkeys" >&5 15454echo "${ECHO_T}$enable_sco_fkeys" >&6 15455if test "$enable_sco_fkeys" = yes ; then 15456 15457cat >>confdefs.h <<\EOF 15458#define OPT_SCO_FUNC_KEYS 1 15459EOF 15460 15461fi 15462 15463echo "$as_me:15463: checking if you want support for Sun-style function keys" >&5 15464echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 15465 15466# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 15467if test "${enable_sun_fkeys+set}" = set; then 15468 enableval="$enable_sun_fkeys" 15469 test "$enableval" != no && enableval=yes 15470 if test "$enableval" != "yes" ; then 15471 enable_sun_fkeys=no 15472 else 15473 enable_sun_fkeys=yes 15474 fi 15475else 15476 enableval=yes 15477 enable_sun_fkeys=yes 15478 15479fi; 15480echo "$as_me:15480: result: $enable_sun_fkeys" >&5 15481echo "${ECHO_T}$enable_sun_fkeys" >&6 15482if test "$enable_sun_fkeys" = no ; then 15483 15484cat >>confdefs.h <<\EOF 15485#define OPT_SUN_FUNC_KEYS 0 15486EOF 15487 15488fi 15489 15490echo "$as_me:15490: checking if you want saved-lines stored as a FIFO" >&5 15491echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 15492 15493# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 15494if test "${enable_fifo_lines+set}" = set; then 15495 enableval="$enable_fifo_lines" 15496 test "$enableval" != no && enableval=yes 15497 if test "$enableval" != "yes" ; then 15498 enable_fifo_lines=no 15499 else 15500 enable_fifo_lines=yes 15501 fi 15502else 15503 enableval=yes 15504 enable_fifo_lines=yes 15505 15506fi; 15507echo "$as_me:15507: result: $enable_fifo_lines" >&5 15508echo "${ECHO_T}$enable_fifo_lines" >&6 15509if test "$enable_fifo_lines" = yes ; then 15510 15511cat >>confdefs.h <<\EOF 15512#define OPT_FIFO_LINES 1 15513EOF 15514 15515fi 15516 15517echo "$as_me:15517: checking if you want support for internationalization" >&5 15518echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 15519 15520# Check whether --enable-i18n or --disable-i18n was given. 15521if test "${enable_i18n+set}" = set; then 15522 enableval="$enable_i18n" 15523 test "$enableval" != no && enableval=yes 15524 if test "$enableval" != "yes" ; then 15525 enable_i18n=no 15526 else 15527 enable_i18n=yes 15528 fi 15529else 15530 enableval=yes 15531 enable_i18n=yes 15532 15533fi; 15534echo "$as_me:15534: result: $enable_i18n" >&5 15535echo "${ECHO_T}$enable_i18n" >&6 15536if test "$enable_i18n" = no ; then 15537 15538cat >>confdefs.h <<\EOF 15539#define OPT_I18N_SUPPORT 0 15540EOF 15541 15542fi 15543 15544echo "$as_me:15544: checking if you want support for initial-erase setup" >&5 15545echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 15546 15547# Check whether --enable-initial-erase or --disable-initial-erase was given. 15548if test "${enable_initial_erase+set}" = set; then 15549 enableval="$enable_initial_erase" 15550 test "$enableval" != no && enableval=yes 15551 if test "$enableval" != "yes" ; then 15552 enable_ie=no 15553 else 15554 enable_ie=yes 15555 fi 15556else 15557 enableval=yes 15558 enable_ie=yes 15559 15560fi; 15561echo "$as_me:15561: result: $enable_ie" >&5 15562echo "${ECHO_T}$enable_ie" >&6 15563if test "$enable_ie" = no ; then 15564 15565cat >>confdefs.h <<\EOF 15566#define OPT_INITIAL_ERASE 0 15567EOF 15568 15569fi 15570 15571echo "$as_me:15571: checking if you want support for input-method" >&5 15572echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 15573 15574# Check whether --enable-input-method or --disable-input-method was given. 15575if test "${enable_input_method+set}" = set; then 15576 enableval="$enable_input_method" 15577 test "$enableval" != no && enableval=yes 15578 if test "$enableval" != "yes" ; then 15579 enable_ximp=no 15580 else 15581 enable_ximp=yes 15582 fi 15583else 15584 enableval=yes 15585 enable_ximp=yes 15586 15587fi; 15588echo "$as_me:15588: result: $enable_ximp" >&5 15589echo "${ECHO_T}$enable_ximp" >&6 15590 15591echo "$as_me:15591: checking if X libraries support input-method" >&5 15592echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 15593if test "${cf_cv_input_method+set}" = set; then 15594 echo $ECHO_N "(cached) $ECHO_C" >&6 15595else 15596 15597cat >conftest.$ac_ext <<_ACEOF 15598#line 15598 "configure" 15599#include "confdefs.h" 15600 15601#include <X11/IntrinsicP.h> 15602#include <X11/Xatom.h> 15603#include <X11/Xutil.h> 15604#include <X11/Xmu/Atoms.h> 15605#include <X11/Xmu/Converters.h> 15606#include <X11/Xaw/XawImP.h> 15607 15608int 15609main () 15610{ 15611 15612{ 15613 XIM xim; 15614 XIMStyles *xim_styles = 0; 15615 XIMStyle input_style; 15616 Widget w = 0; 15617 15618 XSetLocaleModifiers("@im=none"); 15619 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 15620 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 15621 XCloseIM(xim); 15622 input_style = (XIMPreeditNothing | XIMStatusNothing); 15623} 15624 15625 ; 15626 return 0; 15627} 15628_ACEOF 15629rm -f conftest.$ac_objext conftest$ac_exeext 15630if { (eval echo "$as_me:15630: \"$ac_link\"") >&5 15631 (eval $ac_link) 2>&5 15632 ac_status=$? 15633 echo "$as_me:15633: \$? = $ac_status" >&5 15634 (exit $ac_status); } && 15635 { ac_try='test -s conftest$ac_exeext' 15636 { (eval echo "$as_me:15636: \"$ac_try\"") >&5 15637 (eval $ac_try) 2>&5 15638 ac_status=$? 15639 echo "$as_me:15639: \$? = $ac_status" >&5 15640 (exit $ac_status); }; }; then 15641 cf_cv_input_method=yes 15642else 15643 echo "$as_me: failed program was:" >&5 15644cat conftest.$ac_ext >&5 15645cf_cv_input_method=no 15646fi 15647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15648fi 15649echo "$as_me:15649: result: $cf_cv_input_method" >&5 15650echo "${ECHO_T}$cf_cv_input_method" >&6 15651 15652test "$cf_cv_input_method" = no && enable_ximp=no 15653if test "$enable_ximp" = no ; then 15654 15655cat >>confdefs.h <<\EOF 15656#define OPT_INPUT_METHOD 0 15657EOF 15658 15659fi 15660 15661echo "$as_me:15661: checking if you want support for load-vt-fonts" >&5 15662echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 15663 15664# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 15665if test "${enable_load_vt_fonts+set}" = set; then 15666 enableval="$enable_load_vt_fonts" 15667 test "$enableval" != yes && enableval=no 15668 if test "$enableval" != "no" ; then 15669 enable_load_vt_fonts=yes 15670 else 15671 enable_load_vt_fonts=no 15672 fi 15673else 15674 enableval=no 15675 enable_load_vt_fonts=no 15676 15677fi; 15678echo "$as_me:15678: result: $enable_load_vt_fonts" >&5 15679echo "${ECHO_T}$enable_load_vt_fonts" >&6 15680if test "$enable_load_vt_fonts" = yes ; then 15681 15682cat >>confdefs.h <<\EOF 15683#define OPT_LOAD_VTFONTS 1 15684EOF 15685 15686fi 15687 15688echo "$as_me:15688: checking if you want support for logging" >&5 15689echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 15690 15691# Check whether --enable-logging or --disable-logging was given. 15692if test "${enable_logging+set}" = set; then 15693 enableval="$enable_logging" 15694 test "$enableval" != yes && enableval=no 15695 if test "$enableval" != "no" ; then 15696 enable_logging=yes 15697 else 15698 enable_logging=no 15699 fi 15700else 15701 enableval=no 15702 enable_logging=no 15703 15704fi; 15705echo "$as_me:15705: result: $enable_logging" >&5 15706echo "${ECHO_T}$enable_logging" >&6 15707if test "$enable_logging" = yes ; then 15708 15709cat >>confdefs.h <<\EOF 15710#define ALLOWLOGGING 1 15711EOF 15712 15713 echo "$as_me:15713: checking if you want to allow logging via a pipe" >&5 15714echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 15715 15716# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 15717if test "${enable_logfile_exec+set}" = set; then 15718 enableval="$enable_logfile_exec" 15719 test "$enableval" != yes && enableval=no 15720 if test "$enableval" != "no" ; then 15721 enable_log_exec=yes 15722 else 15723 enable_log_exec=no 15724 fi 15725else 15726 enableval=no 15727 enable_log_exec=no 15728 15729fi; 15730 echo "$as_me:15730: result: $enable_log_exec" >&5 15731echo "${ECHO_T}$enable_log_exec" >&6 15732 if test "$enable_log_exec" = yes ; then 15733 15734cat >>confdefs.h <<\EOF 15735#define ALLOWLOGFILEEXEC 1 15736EOF 15737 15738 fi 15739fi 15740 15741echo "$as_me:15741: checking if you want support for iconify/maximize translations" >&5 15742echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 15743 15744# Check whether --enable-maximize or --disable-maximize was given. 15745if test "${enable_maximize+set}" = set; then 15746 enableval="$enable_maximize" 15747 test "$enableval" != no && enableval=yes 15748 if test "$enableval" != "yes" ; then 15749 enable_maximize=no 15750 else 15751 enable_maximize=yes 15752 fi 15753else 15754 enableval=yes 15755 enable_maximize=yes 15756 15757fi; 15758echo "$as_me:15758: result: $enable_maximize" >&5 15759echo "${ECHO_T}$enable_maximize" >&6 15760test "$enable_maximize" = no && 15761cat >>confdefs.h <<\EOF 15762#define OPT_MAXIMIZE 0 15763EOF 15764 15765echo "$as_me:15765: checking if you want NumLock to override keyboard tables" >&5 15766echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 15767 15768# Check whether --enable-num-lock or --disable-num-lock was given. 15769if test "${enable_num_lock+set}" = set; then 15770 enableval="$enable_num_lock" 15771 test "$enableval" != no && enableval=yes 15772 if test "$enableval" != "yes" ; then 15773 enable_numlock=no 15774 else 15775 enable_numlock=yes 15776 fi 15777else 15778 enableval=yes 15779 enable_numlock=yes 15780 15781fi; 15782echo "$as_me:15782: result: $enable_numlock" >&5 15783echo "${ECHO_T}$enable_numlock" >&6 15784test "$enable_numlock" = no && 15785cat >>confdefs.h <<\EOF 15786#define OPT_NUM_LOCK 0 15787EOF 15788 15789echo "$as_me:15789: checking if you want support for get/set of base64 selection data" >&5 15790echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 15791 15792# Check whether --enable-paste64 or --disable-paste64 was given. 15793if test "${enable_paste64+set}" = set; then 15794 enableval="$enable_paste64" 15795 test "$enableval" != no && enableval=yes 15796 if test "$enableval" != "yes" ; then 15797 enable_paste64=no 15798 else 15799 enable_paste64=yes 15800 fi 15801else 15802 enableval=yes 15803 enable_paste64=yes 15804 15805fi; 15806echo "$as_me:15806: result: $enable_paste64" >&5 15807echo "${ECHO_T}$enable_paste64" >&6 15808if test "$enable_paste64" = yes ; then 15809 15810cat >>confdefs.h <<\EOF 15811#define OPT_PASTE64 1 15812EOF 15813 15814else 15815 15816cat >>confdefs.h <<\EOF 15817#define OPT_PASTE64 0 15818EOF 15819 15820fi 15821 15822echo "$as_me:15822: checking if you want support for pty-handshaking" >&5 15823echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 15824 15825# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 15826if test "${enable_pty_handshake+set}" = set; then 15827 enableval="$enable_pty_handshake" 15828 test "$enableval" != no && enableval=yes 15829 if test "$enableval" != "yes" ; then 15830 enable_pty_handshake=no 15831 else 15832 enable_pty_handshake=yes 15833 fi 15834else 15835 enableval=yes 15836 enable_pty_handshake=yes 15837 15838fi; 15839echo "$as_me:15839: result: $enable_pty_handshake" >&5 15840echo "${ECHO_T}$enable_pty_handshake" >&6 15841if test "$enable_pty_handshake" = yes ; then 15842 15843cat >>confdefs.h <<\EOF 15844#define OPT_PTY_HANDSHAKE 1 15845EOF 15846 15847else 15848 15849cat >>confdefs.h <<\EOF 15850#define OPT_PTY_HANDSHAKE 0 15851EOF 15852 15853fi 15854 15855echo "$as_me:15855: checking if you want support for mouse in readline applications" >&5 15856echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 15857 15858# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 15859if test "${enable_readline_mouse+set}" = set; then 15860 enableval="$enable_readline_mouse" 15861 test "$enableval" != yes && enableval=no 15862 if test "$enableval" != "no" ; then 15863 enable_readline_mouse=yes 15864 else 15865 enable_readline_mouse=no 15866 fi 15867else 15868 enableval=no 15869 enable_readline_mouse=no 15870 15871fi; 15872echo "$as_me:15872: result: $enable_readline_mouse" >&5 15873echo "${ECHO_T}$enable_readline_mouse" >&6 15874if test "$enable_readline_mouse" = yes ; then 15875 15876cat >>confdefs.h <<\EOF 15877#define OPT_READLINE 1 15878EOF 15879 15880fi 15881 15882echo "$as_me:15882: checking if you want support for regular-expression selections" >&5 15883echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 15884 15885# Check whether --enable-regex or --disable-regex was given. 15886if test "${enable_regex+set}" = set; then 15887 enableval="$enable_regex" 15888 test "$enableval" != no && enableval=yes 15889 if test "$enableval" != "yes" ; then 15890 enable_regex=no 15891 else 15892 enable_regex=yes 15893 fi 15894else 15895 enableval=yes 15896 enable_regex=yes 15897 15898fi; 15899echo "$as_me:15899: result: $enable_regex" >&5 15900echo "${ECHO_T}$enable_regex" >&6 15901if test "$enable_regex" = yes ; then 15902 15903echo "$as_me:15903: checking if you want to use PCRE for regular-expressions" >&5 15904echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 15905 15906# Check whether --with-pcre or --without-pcre was given. 15907if test "${with_pcre+set}" = set; then 15908 withval="$with_pcre" 15909 15910fi; 15911test -z "$with_pcre" && with_pcre=no 15912echo "$as_me:15912: result: $with_pcre" >&5 15913echo "${ECHO_T}$with_pcre" >&6 15914 15915if test "$with_pcre" != no ; then 15916 15917if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then 15918 test -n "$verbose" && echo " found package libpcre" 1>&6 15919 15920echo "${as_me:-configure}:15920: testing found package libpcre ..." 1>&5 15921 15922 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`" 15923 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`" 15924 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 15925 15926echo "${as_me:-configure}:15926: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15927 15928 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 15929 15930echo "${as_me:-configure}:15930: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 15931 15932cf_fix_cppflags=no 15933cf_new_cflags= 15934cf_new_cppflags= 15935cf_new_extra_cppflags= 15936 15937for cf_add_cflags in $cf_pkgconfig_incs 15938do 15939case $cf_fix_cppflags in 15940no) 15941 case $cf_add_cflags in #(vi 15942 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15943 case $cf_add_cflags in 15944 -D*) 15945 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15946 15947 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15948 && test -z "${cf_tst_cflags}" \ 15949 && cf_fix_cppflags=yes 15950 15951 if test $cf_fix_cppflags = yes ; then 15952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15953 continue 15954 elif test "${cf_tst_cflags}" = "\"'" ; then 15955 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15956 continue 15957 fi 15958 ;; 15959 esac 15960 case "$CPPFLAGS" in 15961 *$cf_add_cflags) #(vi 15962 ;; 15963 *) #(vi 15964 case $cf_add_cflags in #(vi 15965 -D*) 15966 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15967 15968CPPFLAGS=`echo "$CPPFLAGS" | \ 15969 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15970 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15971 15972 ;; 15973 esac 15974 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15975 ;; 15976 esac 15977 ;; 15978 *) 15979 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15980 ;; 15981 esac 15982 ;; 15983yes) 15984 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15985 15986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15987 15988 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15989 && test -z "${cf_tst_cflags}" \ 15990 && cf_fix_cppflags=no 15991 ;; 15992esac 15993done 15994 15995if test -n "$cf_new_cflags" ; then 15996 15997 CFLAGS="$CFLAGS $cf_new_cflags" 15998fi 15999 16000if test -n "$cf_new_cppflags" ; then 16001 16002 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 16003fi 16004 16005if test -n "$cf_new_extra_cppflags" ; then 16006 16007 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 16008fi 16009 16010 LIBS="$cf_pkgconfig_libs $LIBS" 16011 : 16012else 16013 cf_pkgconfig_incs= 16014 cf_pkgconfig_libs= 16015 16016echo "$as_me:16016: checking for pcre_compile in -lpcre" >&5 16017echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 16018if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 16019 echo $ECHO_N "(cached) $ECHO_C" >&6 16020else 16021 ac_check_lib_save_LIBS=$LIBS 16022LIBS="-lpcre $LIBS" 16023cat >conftest.$ac_ext <<_ACEOF 16024#line 16024 "configure" 16025#include "confdefs.h" 16026 16027/* Override any gcc2 internal prototype to avoid an error. */ 16028#ifdef __cplusplus 16029extern "C" 16030#endif 16031/* We use char because int might match the return type of a gcc2 16032 builtin and then its argument prototype would still apply. */ 16033char pcre_compile (); 16034int 16035main () 16036{ 16037pcre_compile (); 16038 ; 16039 return 0; 16040} 16041_ACEOF 16042rm -f conftest.$ac_objext conftest$ac_exeext 16043if { (eval echo "$as_me:16043: \"$ac_link\"") >&5 16044 (eval $ac_link) 2>&5 16045 ac_status=$? 16046 echo "$as_me:16046: \$? = $ac_status" >&5 16047 (exit $ac_status); } && 16048 { ac_try='test -s conftest$ac_exeext' 16049 { (eval echo "$as_me:16049: \"$ac_try\"") >&5 16050 (eval $ac_try) 2>&5 16051 ac_status=$? 16052 echo "$as_me:16052: \$? = $ac_status" >&5 16053 (exit $ac_status); }; }; then 16054 ac_cv_lib_pcre_pcre_compile=yes 16055else 16056 echo "$as_me: failed program was:" >&5 16057cat conftest.$ac_ext >&5 16058ac_cv_lib_pcre_pcre_compile=no 16059fi 16060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16061LIBS=$ac_check_lib_save_LIBS 16062fi 16063echo "$as_me:16063: result: $ac_cv_lib_pcre_pcre_compile" >&5 16064echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 16065if test $ac_cv_lib_pcre_pcre_compile = yes; then 16066 cat >>confdefs.h <<EOF 16067#define HAVE_LIBPCRE 1 16068EOF 16069 16070 LIBS="-lpcre $LIBS" 16071 16072else 16073 { { echo "$as_me:16073: error: Cannot find PCRE library" >&5 16074echo "$as_me: error: Cannot find PCRE library" >&2;} 16075 { (exit 1); exit 1; }; } 16076fi 16077 16078fi 16079 16080cat >>confdefs.h <<\EOF 16081#define HAVE_LIB_PCRE 1 16082EOF 16083 16084 case $LIBS in #(vi 16085 *pcreposix*) #(vi 16086 ;; 16087 *) 16088 echo "$as_me:16088: checking for pcreposix_regcomp in -lpcreposix" >&5 16089echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 16090if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 16091 echo $ECHO_N "(cached) $ECHO_C" >&6 16092else 16093 ac_check_lib_save_LIBS=$LIBS 16094LIBS="-lpcreposix $LIBS" 16095cat >conftest.$ac_ext <<_ACEOF 16096#line 16096 "configure" 16097#include "confdefs.h" 16098 16099/* Override any gcc2 internal prototype to avoid an error. */ 16100#ifdef __cplusplus 16101extern "C" 16102#endif 16103/* We use char because int might match the return type of a gcc2 16104 builtin and then its argument prototype would still apply. */ 16105char pcreposix_regcomp (); 16106int 16107main () 16108{ 16109pcreposix_regcomp (); 16110 ; 16111 return 0; 16112} 16113_ACEOF 16114rm -f conftest.$ac_objext conftest$ac_exeext 16115if { (eval echo "$as_me:16115: \"$ac_link\"") >&5 16116 (eval $ac_link) 2>&5 16117 ac_status=$? 16118 echo "$as_me:16118: \$? = $ac_status" >&5 16119 (exit $ac_status); } && 16120 { ac_try='test -s conftest$ac_exeext' 16121 { (eval echo "$as_me:16121: \"$ac_try\"") >&5 16122 (eval $ac_try) 2>&5 16123 ac_status=$? 16124 echo "$as_me:16124: \$? = $ac_status" >&5 16125 (exit $ac_status); }; }; then 16126 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 16127else 16128 echo "$as_me: failed program was:" >&5 16129cat conftest.$ac_ext >&5 16130ac_cv_lib_pcreposix_pcreposix_regcomp=no 16131fi 16132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16133LIBS=$ac_check_lib_save_LIBS 16134fi 16135echo "$as_me:16135: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 16136echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 16137if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then 16138 16139cat >>confdefs.h <<\EOF 16140#define HAVE_PCREPOSIX_H 1 16141EOF 16142 16143 LIBS="-lpcreposix $LIBS" 16144else 16145 echo "$as_me:16145: checking for regcomp in -lpcreposix" >&5 16146echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 16147if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 16148 echo $ECHO_N "(cached) $ECHO_C" >&6 16149else 16150 ac_check_lib_save_LIBS=$LIBS 16151LIBS="-lpcreposix $LIBS" 16152cat >conftest.$ac_ext <<_ACEOF 16153#line 16153 "configure" 16154#include "confdefs.h" 16155 16156/* Override any gcc2 internal prototype to avoid an error. */ 16157#ifdef __cplusplus 16158extern "C" 16159#endif 16160/* We use char because int might match the return type of a gcc2 16161 builtin and then its argument prototype would still apply. */ 16162char regcomp (); 16163int 16164main () 16165{ 16166regcomp (); 16167 ; 16168 return 0; 16169} 16170_ACEOF 16171rm -f conftest.$ac_objext conftest$ac_exeext 16172if { (eval echo "$as_me:16172: \"$ac_link\"") >&5 16173 (eval $ac_link) 2>&5 16174 ac_status=$? 16175 echo "$as_me:16175: \$? = $ac_status" >&5 16176 (exit $ac_status); } && 16177 { ac_try='test -s conftest$ac_exeext' 16178 { (eval echo "$as_me:16178: \"$ac_try\"") >&5 16179 (eval $ac_try) 2>&5 16180 ac_status=$? 16181 echo "$as_me:16181: \$? = $ac_status" >&5 16182 (exit $ac_status); }; }; then 16183 ac_cv_lib_pcreposix_regcomp=yes 16184else 16185 echo "$as_me: failed program was:" >&5 16186cat conftest.$ac_ext >&5 16187ac_cv_lib_pcreposix_regcomp=no 16188fi 16189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16190LIBS=$ac_check_lib_save_LIBS 16191fi 16192echo "$as_me:16192: result: $ac_cv_lib_pcreposix_regcomp" >&5 16193echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 16194if test $ac_cv_lib_pcreposix_regcomp = yes; then 16195 16196cat >>confdefs.h <<\EOF 16197#define HAVE_PCREPOSIX_H 1 16198EOF 16199 16200 LIBS="-lpcreposix $LIBS" 16201else 16202 { { echo "$as_me:16202: error: Cannot find PCRE POSIX library" >&5 16203echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 16204 { (exit 1); exit 1; }; } 16205fi 16206 16207fi 16208 16209 ;; 16210 esac 16211fi 16212 16213 if test "$with_pcre" = no ; then 16214 16215cf_regex_func=no 16216 16217cf_regex_libs="regex re" 16218case $host_os in #(vi 16219mingw*) 16220 cf_regex_libs="gnurx $cf_regex_libs" 16221 ;; 16222esac 16223 16224echo "$as_me:16224: checking for regcomp" >&5 16225echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 16226if test "${ac_cv_func_regcomp+set}" = set; then 16227 echo $ECHO_N "(cached) $ECHO_C" >&6 16228else 16229 cat >conftest.$ac_ext <<_ACEOF 16230#line 16230 "configure" 16231#include "confdefs.h" 16232/* System header to define __stub macros and hopefully few prototypes, 16233 which can conflict with char regcomp (); below. */ 16234#include <assert.h> 16235/* Override any gcc2 internal prototype to avoid an error. */ 16236#ifdef __cplusplus 16237extern "C" 16238#endif 16239/* We use char because int might match the return type of a gcc2 16240 builtin and then its argument prototype would still apply. */ 16241char regcomp (); 16242char (*f) (); 16243 16244int 16245main () 16246{ 16247/* The GNU C library defines this for functions which it implements 16248 to always fail with ENOSYS. Some functions are actually named 16249 something starting with __ and the normal name is an alias. */ 16250#if defined (__stub_regcomp) || defined (__stub___regcomp) 16251choke me 16252#else 16253f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 16254#endif 16255 16256 ; 16257 return 0; 16258} 16259_ACEOF 16260rm -f conftest.$ac_objext conftest$ac_exeext 16261if { (eval echo "$as_me:16261: \"$ac_link\"") >&5 16262 (eval $ac_link) 2>&5 16263 ac_status=$? 16264 echo "$as_me:16264: \$? = $ac_status" >&5 16265 (exit $ac_status); } && 16266 { ac_try='test -s conftest$ac_exeext' 16267 { (eval echo "$as_me:16267: \"$ac_try\"") >&5 16268 (eval $ac_try) 2>&5 16269 ac_status=$? 16270 echo "$as_me:16270: \$? = $ac_status" >&5 16271 (exit $ac_status); }; }; then 16272 ac_cv_func_regcomp=yes 16273else 16274 echo "$as_me: failed program was:" >&5 16275cat conftest.$ac_ext >&5 16276ac_cv_func_regcomp=no 16277fi 16278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16279fi 16280echo "$as_me:16280: result: $ac_cv_func_regcomp" >&5 16281echo "${ECHO_T}$ac_cv_func_regcomp" >&6 16282if test $ac_cv_func_regcomp = yes; then 16283 cf_regex_func=regcomp 16284else 16285 16286 for cf_regex_lib in $cf_regex_libs 16287 do 16288 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 16289echo "$as_me:16289: checking for regcomp in -l$cf_regex_lib" >&5 16290echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 16291if eval "test \"\${$as_ac_Lib+set}\" = set"; then 16292 echo $ECHO_N "(cached) $ECHO_C" >&6 16293else 16294 ac_check_lib_save_LIBS=$LIBS 16295LIBS="-l$cf_regex_lib $LIBS" 16296cat >conftest.$ac_ext <<_ACEOF 16297#line 16297 "configure" 16298#include "confdefs.h" 16299 16300/* Override any gcc2 internal prototype to avoid an error. */ 16301#ifdef __cplusplus 16302extern "C" 16303#endif 16304/* We use char because int might match the return type of a gcc2 16305 builtin and then its argument prototype would still apply. */ 16306char regcomp (); 16307int 16308main () 16309{ 16310regcomp (); 16311 ; 16312 return 0; 16313} 16314_ACEOF 16315rm -f conftest.$ac_objext conftest$ac_exeext 16316if { (eval echo "$as_me:16316: \"$ac_link\"") >&5 16317 (eval $ac_link) 2>&5 16318 ac_status=$? 16319 echo "$as_me:16319: \$? = $ac_status" >&5 16320 (exit $ac_status); } && 16321 { ac_try='test -s conftest$ac_exeext' 16322 { (eval echo "$as_me:16322: \"$ac_try\"") >&5 16323 (eval $ac_try) 2>&5 16324 ac_status=$? 16325 echo "$as_me:16325: \$? = $ac_status" >&5 16326 (exit $ac_status); }; }; then 16327 eval "$as_ac_Lib=yes" 16328else 16329 echo "$as_me: failed program was:" >&5 16330cat conftest.$ac_ext >&5 16331eval "$as_ac_Lib=no" 16332fi 16333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16334LIBS=$ac_check_lib_save_LIBS 16335fi 16336echo "$as_me:16336: result: `eval echo '${'$as_ac_Lib'}'`" >&5 16337echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 16338if test `eval echo '${'$as_ac_Lib'}'` = yes; then 16339 16340 LIBS="-l$cf_regex_lib $LIBS" 16341 cf_regex_func=regcomp 16342 break 16343fi 16344 16345 done 16346 16347fi 16348 16349if test "$cf_regex_func" = no ; then 16350 echo "$as_me:16350: checking for compile" >&5 16351echo $ECHO_N "checking for compile... $ECHO_C" >&6 16352if test "${ac_cv_func_compile+set}" = set; then 16353 echo $ECHO_N "(cached) $ECHO_C" >&6 16354else 16355 cat >conftest.$ac_ext <<_ACEOF 16356#line 16356 "configure" 16357#include "confdefs.h" 16358/* System header to define __stub macros and hopefully few prototypes, 16359 which can conflict with char compile (); below. */ 16360#include <assert.h> 16361/* Override any gcc2 internal prototype to avoid an error. */ 16362#ifdef __cplusplus 16363extern "C" 16364#endif 16365/* We use char because int might match the return type of a gcc2 16366 builtin and then its argument prototype would still apply. */ 16367char compile (); 16368char (*f) (); 16369 16370int 16371main () 16372{ 16373/* The GNU C library defines this for functions which it implements 16374 to always fail with ENOSYS. Some functions are actually named 16375 something starting with __ and the normal name is an alias. */ 16376#if defined (__stub_compile) || defined (__stub___compile) 16377choke me 16378#else 16379f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 16380#endif 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386rm -f conftest.$ac_objext conftest$ac_exeext 16387if { (eval echo "$as_me:16387: \"$ac_link\"") >&5 16388 (eval $ac_link) 2>&5 16389 ac_status=$? 16390 echo "$as_me:16390: \$? = $ac_status" >&5 16391 (exit $ac_status); } && 16392 { ac_try='test -s conftest$ac_exeext' 16393 { (eval echo "$as_me:16393: \"$ac_try\"") >&5 16394 (eval $ac_try) 2>&5 16395 ac_status=$? 16396 echo "$as_me:16396: \$? = $ac_status" >&5 16397 (exit $ac_status); }; }; then 16398 ac_cv_func_compile=yes 16399else 16400 echo "$as_me: failed program was:" >&5 16401cat conftest.$ac_ext >&5 16402ac_cv_func_compile=no 16403fi 16404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16405fi 16406echo "$as_me:16406: result: $ac_cv_func_compile" >&5 16407echo "${ECHO_T}$ac_cv_func_compile" >&6 16408if test $ac_cv_func_compile = yes; then 16409 cf_regex_func=compile 16410else 16411 16412 echo "$as_me:16412: checking for compile in -lgen" >&5 16413echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 16414if test "${ac_cv_lib_gen_compile+set}" = set; then 16415 echo $ECHO_N "(cached) $ECHO_C" >&6 16416else 16417 ac_check_lib_save_LIBS=$LIBS 16418LIBS="-lgen $LIBS" 16419cat >conftest.$ac_ext <<_ACEOF 16420#line 16420 "configure" 16421#include "confdefs.h" 16422 16423/* Override any gcc2 internal prototype to avoid an error. */ 16424#ifdef __cplusplus 16425extern "C" 16426#endif 16427/* We use char because int might match the return type of a gcc2 16428 builtin and then its argument prototype would still apply. */ 16429char compile (); 16430int 16431main () 16432{ 16433compile (); 16434 ; 16435 return 0; 16436} 16437_ACEOF 16438rm -f conftest.$ac_objext conftest$ac_exeext 16439if { (eval echo "$as_me:16439: \"$ac_link\"") >&5 16440 (eval $ac_link) 2>&5 16441 ac_status=$? 16442 echo "$as_me:16442: \$? = $ac_status" >&5 16443 (exit $ac_status); } && 16444 { ac_try='test -s conftest$ac_exeext' 16445 { (eval echo "$as_me:16445: \"$ac_try\"") >&5 16446 (eval $ac_try) 2>&5 16447 ac_status=$? 16448 echo "$as_me:16448: \$? = $ac_status" >&5 16449 (exit $ac_status); }; }; then 16450 ac_cv_lib_gen_compile=yes 16451else 16452 echo "$as_me: failed program was:" >&5 16453cat conftest.$ac_ext >&5 16454ac_cv_lib_gen_compile=no 16455fi 16456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16457LIBS=$ac_check_lib_save_LIBS 16458fi 16459echo "$as_me:16459: result: $ac_cv_lib_gen_compile" >&5 16460echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 16461if test $ac_cv_lib_gen_compile = yes; then 16462 16463 LIBS="-lgen $LIBS" 16464 cf_regex_func=compile 16465fi 16466 16467fi 16468 16469fi 16470 16471if test "$cf_regex_func" = no ; then 16472 { echo "$as_me:16472: WARNING: cannot find regular expression library" >&5 16473echo "$as_me: WARNING: cannot find regular expression library" >&2;} 16474fi 16475 16476echo "$as_me:16476: checking for regular-expression headers" >&5 16477echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 16478if test "${cf_cv_regex_hdrs+set}" = set; then 16479 echo $ECHO_N "(cached) $ECHO_C" >&6 16480else 16481 16482cf_cv_regex_hdrs=no 16483case $cf_regex_func in #(vi 16484compile) #(vi 16485 for cf_regex_hdr in regexp.h regexpr.h 16486 do 16487 cat >conftest.$ac_ext <<_ACEOF 16488#line 16488 "configure" 16489#include "confdefs.h" 16490#include <$cf_regex_hdr> 16491int 16492main () 16493{ 16494 16495 char *p = compile("", "", "", 0); 16496 int x = step("", ""); 16497 16498 ; 16499 return 0; 16500} 16501_ACEOF 16502rm -f conftest.$ac_objext conftest$ac_exeext 16503if { (eval echo "$as_me:16503: \"$ac_link\"") >&5 16504 (eval $ac_link) 2>&5 16505 ac_status=$? 16506 echo "$as_me:16506: \$? = $ac_status" >&5 16507 (exit $ac_status); } && 16508 { ac_try='test -s conftest$ac_exeext' 16509 { (eval echo "$as_me:16509: \"$ac_try\"") >&5 16510 (eval $ac_try) 2>&5 16511 ac_status=$? 16512 echo "$as_me:16512: \$? = $ac_status" >&5 16513 (exit $ac_status); }; }; then 16514 16515 cf_cv_regex_hdrs=$cf_regex_hdr 16516 break 16517 16518else 16519 echo "$as_me: failed program was:" >&5 16520cat conftest.$ac_ext >&5 16521fi 16522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16523 done 16524 ;; 16525*) 16526 for cf_regex_hdr in regex.h 16527 do 16528 cat >conftest.$ac_ext <<_ACEOF 16529#line 16529 "configure" 16530#include "confdefs.h" 16531#include <sys/types.h> 16532#include <$cf_regex_hdr> 16533int 16534main () 16535{ 16536 16537 regex_t *p; 16538 int x = regcomp(p, "", 0); 16539 int y = regexec(p, "", 0, 0, 0); 16540 regfree(p); 16541 16542 ; 16543 return 0; 16544} 16545_ACEOF 16546rm -f conftest.$ac_objext conftest$ac_exeext 16547if { (eval echo "$as_me:16547: \"$ac_link\"") >&5 16548 (eval $ac_link) 2>&5 16549 ac_status=$? 16550 echo "$as_me:16550: \$? = $ac_status" >&5 16551 (exit $ac_status); } && 16552 { ac_try='test -s conftest$ac_exeext' 16553 { (eval echo "$as_me:16553: \"$ac_try\"") >&5 16554 (eval $ac_try) 2>&5 16555 ac_status=$? 16556 echo "$as_me:16556: \$? = $ac_status" >&5 16557 (exit $ac_status); }; }; then 16558 16559 cf_cv_regex_hdrs=$cf_regex_hdr 16560 break 16561 16562else 16563 echo "$as_me: failed program was:" >&5 16564cat conftest.$ac_ext >&5 16565fi 16566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16567 done 16568 ;; 16569esac 16570 16571fi 16572echo "$as_me:16572: result: $cf_cv_regex_hdrs" >&5 16573echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 16574 16575case $cf_cv_regex_hdrs in #(vi 16576 no) { echo "$as_me:16576: WARNING: no regular expression header found" >&5 16577echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi 16578 regex.h) 16579cat >>confdefs.h <<\EOF 16580#define HAVE_REGEX_H_FUNCS 1 16581EOF 16582 ;; #(vi 16583 regexp.h) 16584cat >>confdefs.h <<\EOF 16585#define HAVE_REGEXP_H_FUNCS 1 16586EOF 16587 ;; #(vi 16588 regexpr.h) 16589cat >>confdefs.h <<\EOF 16590#define HAVE_REGEXPR_H_FUNCS 1 16591EOF 16592 ;; 16593esac 16594 16595 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 16596 { { echo "$as_me:16596: error: Only POSIX or PCRE regular expressions are supported" >&5 16597echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;} 16598 { (exit 1); exit 1; }; } 16599 fi 16600 fi 16601 16602cat >>confdefs.h <<\EOF 16603#define OPT_SELECT_REGEX 1 16604EOF 16605 16606fi 16607 16608echo "$as_me:16608: checking if you want support for right-scrollbar" >&5 16609echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 16610 16611# Check whether --enable-rightbar or --disable-rightbar was given. 16612if test "${enable_rightbar+set}" = set; then 16613 enableval="$enable_rightbar" 16614 test "$enableval" != no && enableval=yes 16615 if test "$enableval" != "yes" ; then 16616 enable_rightbar=no 16617 else 16618 enable_rightbar=yes 16619 fi 16620else 16621 enableval=yes 16622 enable_rightbar=yes 16623 16624fi; 16625echo "$as_me:16625: result: $enable_rightbar" >&5 16626echo "${ECHO_T}$enable_rightbar" >&6 16627if test "$enable_rightbar" = yes ; then 16628 16629cat >>confdefs.h <<\EOF 16630#define SCROLLBAR_RIGHT 1 16631EOF 16632 16633fi 16634 16635echo "$as_me:16635: checking if you want check for redundant name-change" >&5 16636echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 16637 16638# Check whether --enable-samename or --disable-samename was given. 16639if test "${enable_samename+set}" = set; then 16640 enableval="$enable_samename" 16641 test "$enableval" != no && enableval=yes 16642 if test "$enableval" != "yes" ; then 16643 enable_samename=no 16644 else 16645 enable_samename=yes 16646 fi 16647else 16648 enableval=yes 16649 enable_samename=yes 16650 16651fi; 16652echo "$as_me:16652: result: $enable_samename" >&5 16653echo "${ECHO_T}$enable_samename" >&6 16654test "$enable_samename" = no && 16655cat >>confdefs.h <<\EOF 16656#define OPT_SAME_NAME 0 16657EOF 16658 16659echo "$as_me:16659: checking if you want support for selection-actions" >&5 16660echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 16661 16662# Check whether --enable-selection-ops or --disable-selection-ops was given. 16663if test "${enable_selection_ops+set}" = set; then 16664 enableval="$enable_selection_ops" 16665 test "$enableval" != no && enableval=yes 16666 if test "$enableval" != "yes" ; then 16667 enable_selection_ops=no 16668 else 16669 enable_selection_ops=yes 16670 fi 16671else 16672 enableval=yes 16673 enable_selection_ops=yes 16674 16675fi; 16676echo "$as_me:16676: result: $enable_selection_ops" >&5 16677echo "${ECHO_T}$enable_selection_ops" >&6 16678test "$enable_selection_ops" = no && 16679cat >>confdefs.h <<\EOF 16680#define OPT_SELECTION_OPS 0 16681EOF 16682 16683echo "$as_me:16683: checking if you want support for session management" >&5 16684echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 16685 16686# Check whether --enable-session-mgt or --disable-session-mgt was given. 16687if test "${enable_session_mgt+set}" = set; then 16688 enableval="$enable_session_mgt" 16689 test "$enableval" != no && enableval=yes 16690 if test "$enableval" != "yes" ; then 16691 enable_session_mgt=no 16692 else 16693 enable_session_mgt=yes 16694 fi 16695else 16696 enableval=yes 16697 enable_session_mgt=yes 16698 16699fi; 16700echo "$as_me:16700: result: $enable_session_mgt" >&5 16701echo "${ECHO_T}$enable_session_mgt" >&6 16702test "$enable_session_mgt" = no && 16703cat >>confdefs.h <<\EOF 16704#define OPT_SESSION_MGT 0 16705EOF 16706 16707echo "$as_me:16707: checking if you want to use termcap function-keys" >&5 16708echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 16709 16710# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 16711if test "${enable_tcap_fkeys+set}" = set; then 16712 enableval="$enable_tcap_fkeys" 16713 test "$enableval" != no && enableval=yes 16714 if test "$enableval" != "yes" ; then 16715 enable_tcap_fkeys=no 16716 else 16717 enable_tcap_fkeys=yes 16718 fi 16719else 16720 enableval=yes 16721 enable_tcap_fkeys=yes 16722 16723fi; 16724echo "$as_me:16724: result: $enable_tcap_fkeys" >&5 16725echo "${ECHO_T}$enable_tcap_fkeys" >&6 16726test "$enable_tcap_fkeys" = yes && 16727cat >>confdefs.h <<\EOF 16728#define OPT_TCAP_FKEYS 1 16729EOF 16730 16731echo "$as_me:16731: checking if you want to use termcap-query/report" >&5 16732echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 16733 16734# Check whether --enable-tcap-query or --disable-tcap-query was given. 16735if test "${enable_tcap_query+set}" = set; then 16736 enableval="$enable_tcap_query" 16737 test "$enableval" != no && enableval=yes 16738 if test "$enableval" != "yes" ; then 16739 enable_tcap_query=no 16740 else 16741 enable_tcap_query=yes 16742 fi 16743else 16744 enableval=yes 16745 enable_tcap_query=yes 16746 16747fi; 16748echo "$as_me:16748: result: $enable_tcap_query" >&5 16749echo "${ECHO_T}$enable_tcap_query" >&6 16750test "$enable_tcap_query" = yes && 16751cat >>confdefs.h <<\EOF 16752#define OPT_TCAP_QUERY 1 16753EOF 16754 16755echo "$as_me:16755: checking if you want support for tek4014" >&5 16756echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 16757 16758# Check whether --enable-tek4014 or --disable-tek4014 was given. 16759if test "${enable_tek4014+set}" = set; then 16760 enableval="$enable_tek4014" 16761 test "$enableval" != no && enableval=yes 16762 if test "$enableval" != "yes" ; then 16763 enable_tek4014=no 16764 else 16765 enable_tek4014=yes 16766 fi 16767else 16768 enableval=yes 16769 enable_tek4014=yes 16770 16771fi; 16772echo "$as_me:16772: result: $enable_tek4014" >&5 16773echo "${ECHO_T}$enable_tek4014" >&6 16774if test "$enable_tek4014" = no ; then 16775 16776cat >>confdefs.h <<\EOF 16777#define OPT_TEK4014 0 16778EOF 16779 16780else 16781 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 16782 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 16783 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 16784fi 16785 16786echo "$as_me:16786: checking if you want pulldown menus with a toolbar" >&5 16787echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 16788 16789# Check whether --enable-toolbar or --disable-toolbar was given. 16790if test "${enable_toolbar+set}" = set; then 16791 enableval="$enable_toolbar" 16792 test "$enableval" != yes && enableval=no 16793 if test "$enableval" != "no" ; then 16794 enable_toolbar=yes 16795 else 16796 enable_toolbar=no 16797 fi 16798else 16799 enableval=no 16800 enable_toolbar=no 16801 16802fi; 16803echo "$as_me:16803: result: $enable_toolbar" >&5 16804echo "${ECHO_T}$enable_toolbar" >&6 16805if test "$enable_toolbar" = yes ; then 16806 16807cat >>confdefs.h <<\EOF 16808#define OPT_TOOLBAR 1 16809EOF 16810 16811fi 16812 16813echo "$as_me:16813: checking if you want VT52 emulation" >&5 16814echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 16815 16816# Check whether --enable-vt52 or --disable-vt52 was given. 16817if test "${enable_vt52+set}" = set; then 16818 enableval="$enable_vt52" 16819 test "$enableval" != no && enableval=yes 16820 if test "$enableval" != "yes" ; then 16821 enable_vt52=no 16822 else 16823 enable_vt52=yes 16824 fi 16825else 16826 enableval=yes 16827 enable_vt52=yes 16828 16829fi; 16830echo "$as_me:16830: result: $enable_vt52" >&5 16831echo "${ECHO_T}$enable_vt52" >&6 16832test "$enable_vt52" = no && 16833cat >>confdefs.h <<\EOF 16834#define OPT_VT52_MODE 0 16835EOF 16836 16837echo "$as_me:16837: checking if you want wide-attribute support" >&5 16838echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 16839 16840# Check whether --enable-wide-attrs or --disable-wide-attrs was given. 16841if test "${enable_wide_attrs+set}" = set; then 16842 enableval="$enable_wide_attrs" 16843 test "$enableval" != no && enableval=yes 16844 if test "$enableval" != "yes" ; then 16845 enable_wattr=no 16846 else 16847 enable_wattr=yes 16848 fi 16849else 16850 enableval=yes 16851 enable_wattr=yes 16852 16853fi; 16854echo "$as_me:16854: result: $enable_wattr" >&5 16855echo "${ECHO_T}$enable_wattr" >&6 16856 16857echo "$as_me:16857: checking if you want wide-character support" >&5 16858echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 16859 16860# Check whether --enable-wide-chars or --disable-wide-chars was given. 16861if test "${enable_wide_chars+set}" = set; then 16862 enableval="$enable_wide_chars" 16863 test "$enableval" != no && enableval=yes 16864 if test "$enableval" != "yes" ; then 16865 enable_wchar=no 16866 else 16867 enable_wchar=yes 16868 fi 16869else 16870 enableval=yes 16871 enable_wchar=yes 16872 16873fi; 16874echo "$as_me:16874: result: $enable_wchar" >&5 16875echo "${ECHO_T}$enable_wchar" >&6 16876test "$enable_wattr" = no && 16877cat >>confdefs.h <<\EOF 16878#define OPT_WIDE_ATTRS 0 16879EOF 16880 16881echo "$as_me:16881: checking if you want only 16-bit character support" >&5 16882echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 16883 16884# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 16885if test "${enable_16bit_chars+set}" = set; then 16886 enableval="$enable_16bit_chars" 16887 test "$enableval" != yes && enableval=no 16888 if test "$enableval" != "no" ; then 16889 enable_16bit_chars=yes 16890 else 16891 enable_16bit_chars=no 16892 fi 16893else 16894 enableval=no 16895 enable_16bit_chars=no 16896 16897fi; 16898echo "$as_me:16898: result: $enable_16bit_chars" >&5 16899echo "${ECHO_T}$enable_16bit_chars" >&6 16900 16901if test "$enable_16bit_chars" = yes ; then 16902 16903cat >>confdefs.h <<\EOF 16904#define OPT_WIDER_ICHAR 0 16905EOF 16906 16907 enable_wchar=yes 16908fi 16909 16910if test "$enable_wchar" = yes ; then 16911 16912echo "$as_me:16912: checking if you want to use mini-luit/Latin9 built-in support" >&5 16913echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 16914 16915# Check whether --enable-mini-luit or --disable-mini-luit was given. 16916if test "${enable_mini_luit+set}" = set; then 16917 enableval="$enable_mini_luit" 16918 test "$enableval" != yes && enableval=no 16919 if test "$enableval" != "no" ; then 16920 enable_mini_luit=yes 16921 else 16922 enable_mini_luit=no 16923 fi 16924else 16925 enableval=no 16926 enable_mini_luit=no 16927 16928fi; 16929echo "$as_me:16929: result: $enable_mini_luit" >&5 16930echo "${ECHO_T}$enable_mini_luit" >&6 16931if test "$enable_mini_luit" = yes ; then 16932 16933cat >>confdefs.h <<\EOF 16934#define OPT_MINI_LUIT 1 16935EOF 16936 16937fi 16938 16939echo "$as_me:16939: checking if you want to use luit" >&5 16940echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 16941 16942# Check whether --enable-luit or --disable-luit was given. 16943if test "${enable_luit+set}" = set; then 16944 enableval="$enable_luit" 16945 test "$enableval" != no && enableval=yes 16946 if test "$enableval" != "yes" ; then 16947 enable_luit=no 16948 else 16949 enable_luit=yes 16950 fi 16951else 16952 enableval=yes 16953 enable_luit=yes 16954 16955fi; 16956echo "$as_me:16956: result: $enable_luit" >&5 16957echo "${ECHO_T}$enable_luit" >&6 16958if test "$enable_luit" = yes ; then 16959 16960cat >>confdefs.h <<\EOF 16961#define OPT_LUIT_PROG 1 16962EOF 16963 16964test -z "$LUIT" && LUIT=xterm-filter 16965for ac_prog in $LUIT xterm-filter bluit luit 16966do 16967 # Extract the first word of "$ac_prog", so it can be a program name with args. 16968set dummy $ac_prog; ac_word=$2 16969echo "$as_me:16969: checking for $ac_word" >&5 16970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16971if test "${ac_cv_path_LUIT+set}" = set; then 16972 echo $ECHO_N "(cached) $ECHO_C" >&6 16973else 16974 case $LUIT in 16975 [\\/]* | ?:[\\/]*) 16976 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 16977 ;; 16978 *) 16979 ac_save_IFS=$IFS; IFS=$ac_path_separator 16980ac_dummy="$PATH" 16981for ac_dir in $ac_dummy; do 16982 IFS=$ac_save_IFS 16983 test -z "$ac_dir" && ac_dir=. 16984 if $as_executable_p "$ac_dir/$ac_word"; then 16985 ac_cv_path_LUIT="$ac_dir/$ac_word" 16986 echo "$as_me:16986: found $ac_dir/$ac_word" >&5 16987 break 16988fi 16989done 16990 16991 ;; 16992esac 16993fi 16994LUIT=$ac_cv_path_LUIT 16995 16996if test -n "$LUIT"; then 16997 echo "$as_me:16997: result: $LUIT" >&5 16998echo "${ECHO_T}$LUIT" >&6 16999else 17000 echo "$as_me:17000: result: no" >&5 17001echo "${ECHO_T}no" >&6 17002fi 17003 17004 test -n "$LUIT" && break 17005done 17006test -n "$LUIT" || LUIT="$LUIT" 17007 17008cf_path_prog="" 17009cf_path_args="" 17010IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 17011for cf_temp in $ac_cv_path_LUIT 17012do 17013 if test -z "$cf_path_prog" ; then 17014 if test "$with_full_paths" = yes ; then 17015 17016if test "x$prefix" != xNONE; then 17017 cf_path_syntax="$prefix" 17018else 17019 cf_path_syntax="$ac_default_prefix" 17020fi 17021 17022case ".$cf_temp" in #(vi 17023.\$\(*\)*|.\'*\'*) #(vi 17024 ;; 17025..|./*|.\\*) #(vi 17026 ;; 17027.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 17028 ;; 17029.\${*prefix}*|.\${*dir}*) #(vi 17030 eval cf_temp="$cf_temp" 17031 case ".$cf_temp" in #(vi 17032 .NONE/*) 17033 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 17034 ;; 17035 esac 17036 ;; #(vi 17037.no|.NONE/*) 17038 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 17039 ;; 17040*) 17041 break 17042 ;; 17043esac 17044 17045 cf_path_prog="$cf_temp" 17046 else 17047 cf_path_prog="`basename $cf_temp`" 17048 fi 17049 elif test -z "$cf_path_args" ; then 17050 cf_path_args="$cf_temp" 17051 else 17052 cf_path_args="$cf_path_args $cf_temp" 17053 fi 17054done 17055IFS="$cf_save_ifs" 17056 17057if test -n "$cf_path_prog" ; then 17058 17059echo "${as_me:-configure}:17059: testing defining path for ${cf_path_prog} ..." 1>&5 17060 17061cat >>confdefs.h <<EOF 17062#define LUIT_PATH "$cf_path_prog" 17063EOF 17064 17065 test -n "$cf_path_args" && 17066cat >>confdefs.h <<EOF 17067#define LUIT_ARGS "$cf_path_args" 17068EOF 17069 17070fi 17071 17072fi 17073 17074cat >>confdefs.h <<\EOF 17075#define OPT_WIDE_CHARS 1 17076EOF 17077 17078 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 17079 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 17080 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 17081fi 17082 17083echo "$as_me:17083: checking if you want dynamic-abbreviation support" >&5 17084echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 17085 17086# Check whether --enable-dabbrev or --disable-dabbrev was given. 17087if test "${enable_dabbrev+set}" = set; then 17088 enableval="$enable_dabbrev" 17089 test "$enableval" != yes && enableval=no 17090 if test "$enableval" != "no" ; then 17091 enable_dabbrev=yes 17092 else 17093 enable_dabbrev=no 17094 fi 17095else 17096 enableval=no 17097 enable_dabbrev=no 17098 17099fi; 17100echo "$as_me:17100: result: $enable_dabbrev" >&5 17101echo "${ECHO_T}$enable_dabbrev" >&6 17102if test "$enable_dabbrev" = yes ; then 17103 17104cat >>confdefs.h <<\EOF 17105#define OPT_DABBREV 1 17106EOF 17107 17108fi 17109 17110echo "$as_me:17110: checking if you want DECterm Locator support" >&5 17111echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 17112 17113# Check whether --enable-dec-locator or --disable-dec-locator was given. 17114if test "${enable_dec_locator+set}" = set; then 17115 enableval="$enable_dec_locator" 17116 test "$enableval" != yes && enableval=no 17117 if test "$enableval" != "no" ; then 17118 enable_dec_locator=yes 17119 else 17120 enable_dec_locator=no 17121 fi 17122else 17123 enableval=no 17124 enable_dec_locator=no 17125 17126fi; 17127echo "$as_me:17127: result: $enable_dec_locator" >&5 17128echo "${ECHO_T}$enable_dec_locator" >&6 17129if test "$enable_dec_locator" = yes ; then 17130 17131cat >>confdefs.h <<\EOF 17132#define OPT_DEC_LOCATOR 1 17133EOF 17134 17135fi 17136 17137echo "$as_me:17137: checking if you want ReGIS graphics support" >&5 17138echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 17139 17140# Check whether --enable-regis-graphics or --disable-regis-graphics was given. 17141if test "${enable_regis_graphics+set}" = set; then 17142 enableval="$enable_regis_graphics" 17143 test "$enableval" != yes && enableval=no 17144 if test "$enableval" != "no" ; then 17145 enable_regis_graphics=yes 17146 else 17147 enable_regis_graphics=no 17148 fi 17149else 17150 enableval=no 17151 enable_regis_graphics=no 17152 17153fi; 17154echo "$as_me:17154: result: $enable_regis_graphics" >&5 17155echo "${ECHO_T}$enable_regis_graphics" >&6 17156if test "$enable_regis_graphics" = yes ; then 17157 17158cat >>confdefs.h <<\EOF 17159#define OPT_REGIS_GRAPHICS 1 17160EOF 17161 17162 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 17163 EXTRASRCS="$EXTRASRCS graphics_regis.c" 17164 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 17165 17166echo "$as_me:17166: checking if -lm needed for math functions" >&5 17167echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 17168if test "${cf_cv_need_libm+set}" = set; then 17169 echo $ECHO_N "(cached) $ECHO_C" >&6 17170else 17171 17172 cat >conftest.$ac_ext <<_ACEOF 17173#line 17173 "configure" 17174#include "confdefs.h" 17175 17176 #include <stdio.h> 17177 #include <math.h> 17178 17179int 17180main () 17181{ 17182double x = rand(); printf("result = %g\n", sin(x)) 17183 ; 17184 return 0; 17185} 17186_ACEOF 17187rm -f conftest.$ac_objext conftest$ac_exeext 17188if { (eval echo "$as_me:17188: \"$ac_link\"") >&5 17189 (eval $ac_link) 2>&5 17190 ac_status=$? 17191 echo "$as_me:17191: \$? = $ac_status" >&5 17192 (exit $ac_status); } && 17193 { ac_try='test -s conftest$ac_exeext' 17194 { (eval echo "$as_me:17194: \"$ac_try\"") >&5 17195 (eval $ac_try) 2>&5 17196 ac_status=$? 17197 echo "$as_me:17197: \$? = $ac_status" >&5 17198 (exit $ac_status); }; }; then 17199 cf_cv_need_libm=no 17200else 17201 echo "$as_me: failed program was:" >&5 17202cat conftest.$ac_ext >&5 17203cf_cv_need_libm=yes 17204fi 17205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17206fi 17207echo "$as_me:17207: result: $cf_cv_need_libm" >&5 17208echo "${ECHO_T}$cf_cv_need_libm" >&6 17209if test "$cf_cv_need_libm" = yes 17210then 17211 17212 LIBS="-lm $LIBS" 17213 17214fi 17215 17216fi 17217 17218echo "$as_me:17218: checking if you want sixel graphics support" >&5 17219echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 17220 17221# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 17222if test "${enable_sixel_graphics+set}" = set; then 17223 enableval="$enable_sixel_graphics" 17224 test "$enableval" != yes && enableval=no 17225 if test "$enableval" != "no" ; then 17226 enable_sixel_graphics=yes 17227 else 17228 enable_sixel_graphics=no 17229 fi 17230else 17231 enableval=no 17232 enable_sixel_graphics=no 17233 17234fi; 17235echo "$as_me:17235: result: $enable_sixel_graphics" >&5 17236echo "${ECHO_T}$enable_sixel_graphics" >&6 17237if test "$enable_sixel_graphics" = yes ; then 17238 17239cat >>confdefs.h <<\EOF 17240#define OPT_SIXEL_GRAPHICS 1 17241EOF 17242 17243 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 17244 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 17245 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 17246fi 17247 17248if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 17249 17250cat >>confdefs.h <<\EOF 17251#define OPT_GRAPHICS 1 17252EOF 17253 17254 EXTRAHDRS="$EXTRAHDRS graphics.h" 17255 EXTRASRCS="$EXTRASRCS graphics.c" 17256 EXTRAOBJS="$EXTRAOBJS graphics.o" 17257fi 17258 17259echo "$as_me:17259: checking if you want VT420 rectangle support" >&5 17260echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 17261 17262# Check whether --enable-rectangles or --disable-rectangles was given. 17263if test "${enable_rectangles+set}" = set; then 17264 enableval="$enable_rectangles" 17265 test "$enableval" != no && enableval=yes 17266 if test "$enableval" != "yes" ; then 17267 enable_rectangles=no 17268 else 17269 enable_rectangles=yes 17270 fi 17271else 17272 enableval=yes 17273 enable_rectangles=yes 17274 17275fi; 17276echo "$as_me:17276: result: $enable_rectangles" >&5 17277echo "${ECHO_T}$enable_rectangles" >&6 17278if test "$enable_rectangles" = yes ; then 17279 17280cat >>confdefs.h <<\EOF 17281#define OPT_DEC_RECTOPS 1 17282EOF 17283 17284fi 17285 17286echo "$as_me:17286: checking if you want -ziconbeep option" >&5 17287echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 17288 17289# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 17290if test "${enable_ziconbeep+set}" = set; then 17291 enableval="$enable_ziconbeep" 17292 test "$enableval" != no && enableval=yes 17293 if test "$enableval" != "yes" ; then 17294 enable_ziconbeep=no 17295 else 17296 enable_ziconbeep=yes 17297 fi 17298else 17299 enableval=yes 17300 enable_ziconbeep=yes 17301 17302fi; 17303echo "$as_me:17303: result: $enable_ziconbeep" >&5 17304echo "${ECHO_T}$enable_ziconbeep" >&6 17305test "$enable_ziconbeep" = no && 17306cat >>confdefs.h <<\EOF 17307#define OPT_ZICONBEEP 0 17308EOF 17309 17310############################################################################### 17311 17312echo "$as_me:17312: checking if you want debugging traces" >&5 17313echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 17314 17315# Check whether --enable-trace or --disable-trace was given. 17316if test "${enable_trace+set}" = set; then 17317 enableval="$enable_trace" 17318 test "$enableval" != yes && enableval=no 17319 if test "$enableval" != "no" ; then 17320 enable_trace=yes 17321 else 17322 enable_trace=no 17323 fi 17324else 17325 enableval=no 17326 enable_trace=no 17327 17328fi; 17329echo "$as_me:17329: result: $enable_trace" >&5 17330echo "${ECHO_T}$enable_trace" >&6 17331if test "$enable_trace" = yes ; then 17332 17333cat >>confdefs.h <<\EOF 17334#define OPT_TRACE 1 17335EOF 17336 17337 EXTRASRCS="$EXTRASRCS trace.c" 17338 EXTRAOBJS="$EXTRAOBJS trace.o" 17339fi 17340 17341echo "$as_me:17341: checking if you want to use dmalloc for testing" >&5 17342echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 17343 17344# Check whether --with-dmalloc or --without-dmalloc was given. 17345if test "${with_dmalloc+set}" = set; then 17346 withval="$with_dmalloc" 17347 17348cat >>confdefs.h <<EOF 17349#define USE_DMALLOC 1 17350EOF 17351 17352 : ${with_cflags:=-g} 17353 : ${with_no_leaks:=yes} 17354 with_dmalloc=yes 17355else 17356 with_dmalloc= 17357fi; 17358echo "$as_me:17358: result: ${with_dmalloc:-no}" >&5 17359echo "${ECHO_T}${with_dmalloc:-no}" >&6 17360 17361case .$with_cflags in #(vi 17362.*-g*) 17363 case .$CFLAGS in #(vi 17364 .*-g*) #(vi 17365 ;; 17366 *) 17367 17368cf_fix_cppflags=no 17369cf_new_cflags= 17370cf_new_cppflags= 17371cf_new_extra_cppflags= 17372 17373for cf_add_cflags in -g 17374do 17375case $cf_fix_cppflags in 17376no) 17377 case $cf_add_cflags in #(vi 17378 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17379 case $cf_add_cflags in 17380 -D*) 17381 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17382 17383 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17384 && test -z "${cf_tst_cflags}" \ 17385 && cf_fix_cppflags=yes 17386 17387 if test $cf_fix_cppflags = yes ; then 17388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17389 continue 17390 elif test "${cf_tst_cflags}" = "\"'" ; then 17391 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17392 continue 17393 fi 17394 ;; 17395 esac 17396 case "$CPPFLAGS" in 17397 *$cf_add_cflags) #(vi 17398 ;; 17399 *) #(vi 17400 case $cf_add_cflags in #(vi 17401 -D*) 17402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17403 17404CPPFLAGS=`echo "$CPPFLAGS" | \ 17405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17407 17408 ;; 17409 esac 17410 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17411 ;; 17412 esac 17413 ;; 17414 *) 17415 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17416 ;; 17417 esac 17418 ;; 17419yes) 17420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17421 17422 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17423 17424 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17425 && test -z "${cf_tst_cflags}" \ 17426 && cf_fix_cppflags=no 17427 ;; 17428esac 17429done 17430 17431if test -n "$cf_new_cflags" ; then 17432 17433 CFLAGS="$CFLAGS $cf_new_cflags" 17434fi 17435 17436if test -n "$cf_new_cppflags" ; then 17437 17438 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17439fi 17440 17441if test -n "$cf_new_extra_cppflags" ; then 17442 17443 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17444fi 17445 17446 ;; 17447 esac 17448 ;; 17449esac 17450 17451if test "$with_dmalloc" = yes ; then 17452 echo "$as_me:17452: checking for dmalloc.h" >&5 17453echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 17454if test "${ac_cv_header_dmalloc_h+set}" = set; then 17455 echo $ECHO_N "(cached) $ECHO_C" >&6 17456else 17457 cat >conftest.$ac_ext <<_ACEOF 17458#line 17458 "configure" 17459#include "confdefs.h" 17460#include <dmalloc.h> 17461_ACEOF 17462if { (eval echo "$as_me:17462: \"$ac_cpp conftest.$ac_ext\"") >&5 17463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17464 ac_status=$? 17465 egrep -v '^ *\+' conftest.er1 >conftest.err 17466 rm -f conftest.er1 17467 cat conftest.err >&5 17468 echo "$as_me:17468: \$? = $ac_status" >&5 17469 (exit $ac_status); } >/dev/null; then 17470 if test -s conftest.err; then 17471 ac_cpp_err=$ac_c_preproc_warn_flag 17472 else 17473 ac_cpp_err= 17474 fi 17475else 17476 ac_cpp_err=yes 17477fi 17478if test -z "$ac_cpp_err"; then 17479 ac_cv_header_dmalloc_h=yes 17480else 17481 echo "$as_me: failed program was:" >&5 17482 cat conftest.$ac_ext >&5 17483 ac_cv_header_dmalloc_h=no 17484fi 17485rm -f conftest.err conftest.$ac_ext 17486fi 17487echo "$as_me:17487: result: $ac_cv_header_dmalloc_h" >&5 17488echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 17489if test $ac_cv_header_dmalloc_h = yes; then 17490 17491echo "$as_me:17491: checking for dmalloc_debug in -ldmalloc" >&5 17492echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 17493if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 17494 echo $ECHO_N "(cached) $ECHO_C" >&6 17495else 17496 ac_check_lib_save_LIBS=$LIBS 17497LIBS="-ldmalloc $LIBS" 17498cat >conftest.$ac_ext <<_ACEOF 17499#line 17499 "configure" 17500#include "confdefs.h" 17501 17502/* Override any gcc2 internal prototype to avoid an error. */ 17503#ifdef __cplusplus 17504extern "C" 17505#endif 17506/* We use char because int might match the return type of a gcc2 17507 builtin and then its argument prototype would still apply. */ 17508char dmalloc_debug (); 17509int 17510main () 17511{ 17512dmalloc_debug (); 17513 ; 17514 return 0; 17515} 17516_ACEOF 17517rm -f conftest.$ac_objext conftest$ac_exeext 17518if { (eval echo "$as_me:17518: \"$ac_link\"") >&5 17519 (eval $ac_link) 2>&5 17520 ac_status=$? 17521 echo "$as_me:17521: \$? = $ac_status" >&5 17522 (exit $ac_status); } && 17523 { ac_try='test -s conftest$ac_exeext' 17524 { (eval echo "$as_me:17524: \"$ac_try\"") >&5 17525 (eval $ac_try) 2>&5 17526 ac_status=$? 17527 echo "$as_me:17527: \$? = $ac_status" >&5 17528 (exit $ac_status); }; }; then 17529 ac_cv_lib_dmalloc_dmalloc_debug=yes 17530else 17531 echo "$as_me: failed program was:" >&5 17532cat conftest.$ac_ext >&5 17533ac_cv_lib_dmalloc_dmalloc_debug=no 17534fi 17535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17536LIBS=$ac_check_lib_save_LIBS 17537fi 17538echo "$as_me:17538: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 17539echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 17540if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 17541 cat >>confdefs.h <<EOF 17542#define HAVE_LIBDMALLOC 1 17543EOF 17544 17545 LIBS="-ldmalloc $LIBS" 17546 17547fi 17548 17549fi 17550 17551fi 17552 17553echo "$as_me:17553: checking if you want to use dbmalloc for testing" >&5 17554echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 17555 17556# Check whether --with-dbmalloc or --without-dbmalloc was given. 17557if test "${with_dbmalloc+set}" = set; then 17558 withval="$with_dbmalloc" 17559 17560cat >>confdefs.h <<EOF 17561#define USE_DBMALLOC 1 17562EOF 17563 17564 : ${with_cflags:=-g} 17565 : ${with_no_leaks:=yes} 17566 with_dbmalloc=yes 17567else 17568 with_dbmalloc= 17569fi; 17570echo "$as_me:17570: result: ${with_dbmalloc:-no}" >&5 17571echo "${ECHO_T}${with_dbmalloc:-no}" >&6 17572 17573case .$with_cflags in #(vi 17574.*-g*) 17575 case .$CFLAGS in #(vi 17576 .*-g*) #(vi 17577 ;; 17578 *) 17579 17580cf_fix_cppflags=no 17581cf_new_cflags= 17582cf_new_cppflags= 17583cf_new_extra_cppflags= 17584 17585for cf_add_cflags in -g 17586do 17587case $cf_fix_cppflags in 17588no) 17589 case $cf_add_cflags in #(vi 17590 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17591 case $cf_add_cflags in 17592 -D*) 17593 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17594 17595 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17596 && test -z "${cf_tst_cflags}" \ 17597 && cf_fix_cppflags=yes 17598 17599 if test $cf_fix_cppflags = yes ; then 17600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17601 continue 17602 elif test "${cf_tst_cflags}" = "\"'" ; then 17603 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17604 continue 17605 fi 17606 ;; 17607 esac 17608 case "$CPPFLAGS" in 17609 *$cf_add_cflags) #(vi 17610 ;; 17611 *) #(vi 17612 case $cf_add_cflags in #(vi 17613 -D*) 17614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17615 17616CPPFLAGS=`echo "$CPPFLAGS" | \ 17617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17619 17620 ;; 17621 esac 17622 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17623 ;; 17624 esac 17625 ;; 17626 *) 17627 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17628 ;; 17629 esac 17630 ;; 17631yes) 17632 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17633 17634 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17635 17636 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17637 && test -z "${cf_tst_cflags}" \ 17638 && cf_fix_cppflags=no 17639 ;; 17640esac 17641done 17642 17643if test -n "$cf_new_cflags" ; then 17644 17645 CFLAGS="$CFLAGS $cf_new_cflags" 17646fi 17647 17648if test -n "$cf_new_cppflags" ; then 17649 17650 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17651fi 17652 17653if test -n "$cf_new_extra_cppflags" ; then 17654 17655 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17656fi 17657 17658 ;; 17659 esac 17660 ;; 17661esac 17662 17663if test "$with_dbmalloc" = yes ; then 17664 echo "$as_me:17664: checking for dbmalloc.h" >&5 17665echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 17666if test "${ac_cv_header_dbmalloc_h+set}" = set; then 17667 echo $ECHO_N "(cached) $ECHO_C" >&6 17668else 17669 cat >conftest.$ac_ext <<_ACEOF 17670#line 17670 "configure" 17671#include "confdefs.h" 17672#include <dbmalloc.h> 17673_ACEOF 17674if { (eval echo "$as_me:17674: \"$ac_cpp conftest.$ac_ext\"") >&5 17675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17676 ac_status=$? 17677 egrep -v '^ *\+' conftest.er1 >conftest.err 17678 rm -f conftest.er1 17679 cat conftest.err >&5 17680 echo "$as_me:17680: \$? = $ac_status" >&5 17681 (exit $ac_status); } >/dev/null; then 17682 if test -s conftest.err; then 17683 ac_cpp_err=$ac_c_preproc_warn_flag 17684 else 17685 ac_cpp_err= 17686 fi 17687else 17688 ac_cpp_err=yes 17689fi 17690if test -z "$ac_cpp_err"; then 17691 ac_cv_header_dbmalloc_h=yes 17692else 17693 echo "$as_me: failed program was:" >&5 17694 cat conftest.$ac_ext >&5 17695 ac_cv_header_dbmalloc_h=no 17696fi 17697rm -f conftest.err conftest.$ac_ext 17698fi 17699echo "$as_me:17699: result: $ac_cv_header_dbmalloc_h" >&5 17700echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 17701if test $ac_cv_header_dbmalloc_h = yes; then 17702 17703echo "$as_me:17703: checking for debug_malloc in -ldbmalloc" >&5 17704echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 17705if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 17706 echo $ECHO_N "(cached) $ECHO_C" >&6 17707else 17708 ac_check_lib_save_LIBS=$LIBS 17709LIBS="-ldbmalloc $LIBS" 17710cat >conftest.$ac_ext <<_ACEOF 17711#line 17711 "configure" 17712#include "confdefs.h" 17713 17714/* Override any gcc2 internal prototype to avoid an error. */ 17715#ifdef __cplusplus 17716extern "C" 17717#endif 17718/* We use char because int might match the return type of a gcc2 17719 builtin and then its argument prototype would still apply. */ 17720char debug_malloc (); 17721int 17722main () 17723{ 17724debug_malloc (); 17725 ; 17726 return 0; 17727} 17728_ACEOF 17729rm -f conftest.$ac_objext conftest$ac_exeext 17730if { (eval echo "$as_me:17730: \"$ac_link\"") >&5 17731 (eval $ac_link) 2>&5 17732 ac_status=$? 17733 echo "$as_me:17733: \$? = $ac_status" >&5 17734 (exit $ac_status); } && 17735 { ac_try='test -s conftest$ac_exeext' 17736 { (eval echo "$as_me:17736: \"$ac_try\"") >&5 17737 (eval $ac_try) 2>&5 17738 ac_status=$? 17739 echo "$as_me:17739: \$? = $ac_status" >&5 17740 (exit $ac_status); }; }; then 17741 ac_cv_lib_dbmalloc_debug_malloc=yes 17742else 17743 echo "$as_me: failed program was:" >&5 17744cat conftest.$ac_ext >&5 17745ac_cv_lib_dbmalloc_debug_malloc=no 17746fi 17747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17748LIBS=$ac_check_lib_save_LIBS 17749fi 17750echo "$as_me:17750: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 17751echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 17752if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 17753 cat >>confdefs.h <<EOF 17754#define HAVE_LIBDBMALLOC 1 17755EOF 17756 17757 LIBS="-ldbmalloc $LIBS" 17758 17759fi 17760 17761fi 17762 17763fi 17764 17765echo "$as_me:17765: checking if you want to use valgrind for testing" >&5 17766echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 17767 17768# Check whether --with-valgrind or --without-valgrind was given. 17769if test "${with_valgrind+set}" = set; then 17770 withval="$with_valgrind" 17771 17772cat >>confdefs.h <<EOF 17773#define USE_VALGRIND 1 17774EOF 17775 17776 : ${with_cflags:=-g} 17777 : ${with_no_leaks:=yes} 17778 with_valgrind=yes 17779else 17780 with_valgrind= 17781fi; 17782echo "$as_me:17782: result: ${with_valgrind:-no}" >&5 17783echo "${ECHO_T}${with_valgrind:-no}" >&6 17784 17785case .$with_cflags in #(vi 17786.*-g*) 17787 case .$CFLAGS in #(vi 17788 .*-g*) #(vi 17789 ;; 17790 *) 17791 17792cf_fix_cppflags=no 17793cf_new_cflags= 17794cf_new_cppflags= 17795cf_new_extra_cppflags= 17796 17797for cf_add_cflags in -g 17798do 17799case $cf_fix_cppflags in 17800no) 17801 case $cf_add_cflags in #(vi 17802 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17803 case $cf_add_cflags in 17804 -D*) 17805 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17806 17807 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17808 && test -z "${cf_tst_cflags}" \ 17809 && cf_fix_cppflags=yes 17810 17811 if test $cf_fix_cppflags = yes ; then 17812 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17813 continue 17814 elif test "${cf_tst_cflags}" = "\"'" ; then 17815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17816 continue 17817 fi 17818 ;; 17819 esac 17820 case "$CPPFLAGS" in 17821 *$cf_add_cflags) #(vi 17822 ;; 17823 *) #(vi 17824 case $cf_add_cflags in #(vi 17825 -D*) 17826 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17827 17828CPPFLAGS=`echo "$CPPFLAGS" | \ 17829 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17830 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17831 17832 ;; 17833 esac 17834 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17835 ;; 17836 esac 17837 ;; 17838 *) 17839 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17840 ;; 17841 esac 17842 ;; 17843yes) 17844 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17845 17846 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17847 17848 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17849 && test -z "${cf_tst_cflags}" \ 17850 && cf_fix_cppflags=no 17851 ;; 17852esac 17853done 17854 17855if test -n "$cf_new_cflags" ; then 17856 17857 CFLAGS="$CFLAGS $cf_new_cflags" 17858fi 17859 17860if test -n "$cf_new_cppflags" ; then 17861 17862 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17863fi 17864 17865if test -n "$cf_new_extra_cppflags" ; then 17866 17867 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17868fi 17869 17870 ;; 17871 esac 17872 ;; 17873esac 17874 17875echo "$as_me:17875: checking if you want to perform memory-leak testing" >&5 17876echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 17877 17878# Check whether --enable-leaks or --disable-leaks was given. 17879if test "${enable_leaks+set}" = set; then 17880 enableval="$enable_leaks" 17881 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 17882else 17883 : ${with_no_leaks:=no} 17884fi; 17885echo "$as_me:17885: result: $with_no_leaks" >&5 17886echo "${ECHO_T}$with_no_leaks" >&6 17887 17888if test "$with_no_leaks" = yes ; then 17889 17890cat >>confdefs.h <<\EOF 17891#define NO_LEAKS 1 17892EOF 17893 17894cat >>confdefs.h <<\EOF 17895#define YY_NO_LEAKS 1 17896EOF 17897 17898fi 17899 17900echo "$as_me:17900: checking if you want to see long compiling messages" >&5 17901echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 17902 17903# Check whether --enable-echo or --disable-echo was given. 17904if test "${enable_echo+set}" = set; then 17905 enableval="$enable_echo" 17906 test "$enableval" != no && enableval=yes 17907 if test "$enableval" != "yes" ; then 17908 17909 ECHO_LT='--silent' 17910 ECHO_LD='@echo linking $@;' 17911 RULE_CC='@echo compiling $<' 17912 SHOW_CC='@echo compiling $@' 17913 ECHO_CC='@' 17914 17915 else 17916 17917 ECHO_LT='' 17918 ECHO_LD='' 17919 RULE_CC='' 17920 SHOW_CC='' 17921 ECHO_CC='' 17922 17923 fi 17924else 17925 enableval=yes 17926 17927 ECHO_LT='' 17928 ECHO_LD='' 17929 RULE_CC='' 17930 SHOW_CC='' 17931 ECHO_CC='' 17932 17933fi; 17934echo "$as_me:17934: result: $enableval" >&5 17935echo "${ECHO_T}$enableval" >&6 17936 17937echo "$as_me:17937: checking if you want magic cookie emulation" >&5 17938echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 17939 17940# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 17941if test "${enable_xmc_glitch+set}" = set; then 17942 enableval="$enable_xmc_glitch" 17943 test "$enableval" != yes && enableval=no 17944 if test "$enableval" != "no" ; then 17945 enable_xmc=yes 17946 else 17947 enable_xmc=no 17948 fi 17949else 17950 enableval=no 17951 enable_xmc=no 17952 17953fi; 17954echo "$as_me:17954: result: $enable_xmc" >&5 17955echo "${ECHO_T}$enable_xmc" >&6 17956if test "$enable_xmc" = yes ; then 17957 17958cat >>confdefs.h <<\EOF 17959#define OPT_XMC_GLITCH 1 17960EOF 17961 17962 EXTRASRCS="$EXTRASRCS testxmc.c" 17963 EXTRAOBJS="$EXTRAOBJS testxmc.o" 17964fi 17965 17966for ac_func in tigetstr 17967do 17968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17969echo "$as_me:17969: checking for $ac_func" >&5 17970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17971if eval "test \"\${$as_ac_var+set}\" = set"; then 17972 echo $ECHO_N "(cached) $ECHO_C" >&6 17973else 17974 cat >conftest.$ac_ext <<_ACEOF 17975#line 17975 "configure" 17976#include "confdefs.h" 17977/* System header to define __stub macros and hopefully few prototypes, 17978 which can conflict with char $ac_func (); below. */ 17979#include <assert.h> 17980/* Override any gcc2 internal prototype to avoid an error. */ 17981#ifdef __cplusplus 17982extern "C" 17983#endif 17984/* We use char because int might match the return type of a gcc2 17985 builtin and then its argument prototype would still apply. */ 17986char $ac_func (); 17987char (*f) (); 17988 17989int 17990main () 17991{ 17992/* The GNU C library defines this for functions which it implements 17993 to always fail with ENOSYS. Some functions are actually named 17994 something starting with __ and the normal name is an alias. */ 17995#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17996choke me 17997#else 17998f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 17999#endif 18000 18001 ; 18002 return 0; 18003} 18004_ACEOF 18005rm -f conftest.$ac_objext conftest$ac_exeext 18006if { (eval echo "$as_me:18006: \"$ac_link\"") >&5 18007 (eval $ac_link) 2>&5 18008 ac_status=$? 18009 echo "$as_me:18009: \$? = $ac_status" >&5 18010 (exit $ac_status); } && 18011 { ac_try='test -s conftest$ac_exeext' 18012 { (eval echo "$as_me:18012: \"$ac_try\"") >&5 18013 (eval $ac_try) 2>&5 18014 ac_status=$? 18015 echo "$as_me:18015: \$? = $ac_status" >&5 18016 (exit $ac_status); }; }; then 18017 eval "$as_ac_var=yes" 18018else 18019 echo "$as_me: failed program was:" >&5 18020cat conftest.$ac_ext >&5 18021eval "$as_ac_var=no" 18022fi 18023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18024fi 18025echo "$as_me:18025: result: `eval echo '${'$as_ac_var'}'`" >&5 18026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18027if test `eval echo '${'$as_ac_var'}'` = yes; then 18028 cat >>confdefs.h <<EOF 18029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18030EOF 18031 18032fi 18033done 18034 18035if test -n "$cf_cv_lib_part_tgetent"; then 18036 18037for ac_func in use_extended_names 18038do 18039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18040echo "$as_me:18040: checking for $ac_func" >&5 18041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18042if eval "test \"\${$as_ac_var+set}\" = set"; then 18043 echo $ECHO_N "(cached) $ECHO_C" >&6 18044else 18045 cat >conftest.$ac_ext <<_ACEOF 18046#line 18046 "configure" 18047#include "confdefs.h" 18048/* System header to define __stub macros and hopefully few prototypes, 18049 which can conflict with char $ac_func (); below. */ 18050#include <assert.h> 18051/* Override any gcc2 internal prototype to avoid an error. */ 18052#ifdef __cplusplus 18053extern "C" 18054#endif 18055/* We use char because int might match the return type of a gcc2 18056 builtin and then its argument prototype would still apply. */ 18057char $ac_func (); 18058char (*f) (); 18059 18060int 18061main () 18062{ 18063/* The GNU C library defines this for functions which it implements 18064 to always fail with ENOSYS. Some functions are actually named 18065 something starting with __ and the normal name is an alias. */ 18066#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18067choke me 18068#else 18069f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 18070#endif 18071 18072 ; 18073 return 0; 18074} 18075_ACEOF 18076rm -f conftest.$ac_objext conftest$ac_exeext 18077if { (eval echo "$as_me:18077: \"$ac_link\"") >&5 18078 (eval $ac_link) 2>&5 18079 ac_status=$? 18080 echo "$as_me:18080: \$? = $ac_status" >&5 18081 (exit $ac_status); } && 18082 { ac_try='test -s conftest$ac_exeext' 18083 { (eval echo "$as_me:18083: \"$ac_try\"") >&5 18084 (eval $ac_try) 2>&5 18085 ac_status=$? 18086 echo "$as_me:18086: \$? = $ac_status" >&5 18087 (exit $ac_status); }; }; then 18088 eval "$as_ac_var=yes" 18089else 18090 echo "$as_me: failed program was:" >&5 18091cat conftest.$ac_ext >&5 18092eval "$as_ac_var=no" 18093fi 18094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18095fi 18096echo "$as_me:18096: result: `eval echo '${'$as_ac_var'}'`" >&5 18097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18098if test `eval echo '${'$as_ac_var'}'` = yes; then 18099 cat >>confdefs.h <<EOF 18100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18101EOF 18102 18103fi 18104done 18105 18106fi 18107 18108if test -n "$GCC" ; then 18109echo "$as_me:18109: checking if you want to turn on gcc warnings" >&5 18110echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 18111 18112# Check whether --enable-warnings or --disable-warnings was given. 18113if test "${enable_warnings+set}" = set; then 18114 enableval="$enable_warnings" 18115 test "$enableval" != yes && enableval=no 18116 if test "$enableval" != "no" ; then 18117 with_warnings=yes 18118 else 18119 with_warnings=no 18120 fi 18121else 18122 enableval=no 18123 with_warnings=no 18124 18125fi; 18126echo "$as_me:18126: result: $with_warnings" >&5 18127echo "${ECHO_T}$with_warnings" >&6 18128if test "$with_warnings" = yes 18129then 18130 18131if test "$GCC" = yes 18132then 18133cat > conftest.i <<EOF 18134#ifndef GCC_PRINTF 18135#define GCC_PRINTF 0 18136#endif 18137#ifndef GCC_SCANF 18138#define GCC_SCANF 0 18139#endif 18140#ifndef GCC_NORETURN 18141#define GCC_NORETURN /* nothing */ 18142#endif 18143#ifndef GCC_UNUSED 18144#define GCC_UNUSED /* nothing */ 18145#endif 18146EOF 18147if test "$GCC" = yes 18148then 18149 { echo "$as_me:18149: checking for $CC __attribute__ directives..." >&5 18150echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 18151cat > conftest.$ac_ext <<EOF 18152#line 18152 "${as_me:-configure}" 18153#include "confdefs.h" 18154#include "conftest.h" 18155#include "conftest.i" 18156#if GCC_PRINTF 18157#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 18158#else 18159#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 18160#endif 18161#if GCC_SCANF 18162#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 18163#else 18164#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 18165#endif 18166extern void wow(char *,...) GCC_SCANFLIKE(1,2); 18167extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 18168extern void foo(void) GCC_NORETURN; 18169int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 18170EOF 18171 cf_printf_attribute=no 18172 cf_scanf_attribute=no 18173 for cf_attribute in scanf printf unused noreturn 18174 do 18175 18176cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18177 18178 cf_directive="__attribute__(($cf_attribute))" 18179 echo "checking for $CC $cf_directive" 1>&5 18180 18181 case $cf_attribute in #(vi 18182 printf) #(vi 18183 cf_printf_attribute=yes 18184 cat >conftest.h <<EOF 18185#define GCC_$cf_ATTRIBUTE 1 18186EOF 18187 ;; 18188 scanf) #(vi 18189 cf_scanf_attribute=yes 18190 cat >conftest.h <<EOF 18191#define GCC_$cf_ATTRIBUTE 1 18192EOF 18193 ;; 18194 *) #(vi 18195 cat >conftest.h <<EOF 18196#define GCC_$cf_ATTRIBUTE $cf_directive 18197EOF 18198 ;; 18199 esac 18200 18201 if { (eval echo "$as_me:18201: \"$ac_compile\"") >&5 18202 (eval $ac_compile) 2>&5 18203 ac_status=$? 18204 echo "$as_me:18204: \$? = $ac_status" >&5 18205 (exit $ac_status); }; then 18206 test -n "$verbose" && echo "$as_me:18206: result: ... $cf_attribute" >&5 18207echo "${ECHO_T}... $cf_attribute" >&6 18208 cat conftest.h >>confdefs.h 18209 case $cf_attribute in #(vi 18210 noreturn) #(vi 18211 18212cat >>confdefs.h <<EOF 18213#define GCC_NORETURN $cf_directive 18214EOF 18215 18216 ;; 18217 printf) #(vi 18218 cf_value='/* nothing */' 18219 if test "$cf_printf_attribute" != no ; then 18220 cf_value='__attribute__((format(printf,fmt,var)))' 18221 18222cat >>confdefs.h <<\EOF 18223#define GCC_PRINTF 1 18224EOF 18225 18226 fi 18227 18228cat >>confdefs.h <<EOF 18229#define GCC_PRINTFLIKE(fmt,var) $cf_value 18230EOF 18231 18232 ;; 18233 scanf) #(vi 18234 cf_value='/* nothing */' 18235 if test "$cf_scanf_attribute" != no ; then 18236 cf_value='__attribute__((format(scanf,fmt,var)))' 18237 18238cat >>confdefs.h <<\EOF 18239#define GCC_SCANF 1 18240EOF 18241 18242 fi 18243 18244cat >>confdefs.h <<EOF 18245#define GCC_SCANFLIKE(fmt,var) $cf_value 18246EOF 18247 18248 ;; 18249 unused) #(vi 18250 18251cat >>confdefs.h <<EOF 18252#define GCC_UNUSED $cf_directive 18253EOF 18254 18255 ;; 18256 esac 18257 fi 18258 done 18259else 18260 fgrep define conftest.i >>confdefs.h 18261fi 18262rm -rf conftest* 18263fi 18264 18265INTEL_COMPILER=no 18266 18267if test "$GCC" = yes ; then 18268 case $host_os in 18269 linux*|gnu*) 18270 echo "$as_me:18270: checking if this is really Intel C compiler" >&5 18271echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 18272 cf_save_CFLAGS="$CFLAGS" 18273 CFLAGS="$CFLAGS -no-gcc" 18274 cat >conftest.$ac_ext <<_ACEOF 18275#line 18275 "configure" 18276#include "confdefs.h" 18277 18278int 18279main () 18280{ 18281 18282#ifdef __INTEL_COMPILER 18283#else 18284make an error 18285#endif 18286 18287 ; 18288 return 0; 18289} 18290_ACEOF 18291rm -f conftest.$ac_objext 18292if { (eval echo "$as_me:18292: \"$ac_compile\"") >&5 18293 (eval $ac_compile) 2>&5 18294 ac_status=$? 18295 echo "$as_me:18295: \$? = $ac_status" >&5 18296 (exit $ac_status); } && 18297 { ac_try='test -s conftest.$ac_objext' 18298 { (eval echo "$as_me:18298: \"$ac_try\"") >&5 18299 (eval $ac_try) 2>&5 18300 ac_status=$? 18301 echo "$as_me:18301: \$? = $ac_status" >&5 18302 (exit $ac_status); }; }; then 18303 INTEL_COMPILER=yes 18304cf_save_CFLAGS="$cf_save_CFLAGS -we147" 18305 18306else 18307 echo "$as_me: failed program was:" >&5 18308cat conftest.$ac_ext >&5 18309fi 18310rm -f conftest.$ac_objext conftest.$ac_ext 18311 CFLAGS="$cf_save_CFLAGS" 18312 echo "$as_me:18312: result: $INTEL_COMPILER" >&5 18313echo "${ECHO_T}$INTEL_COMPILER" >&6 18314 ;; 18315 esac 18316fi 18317 18318CLANG_COMPILER=no 18319 18320if test "$GCC" = yes ; then 18321 echo "$as_me:18321: checking if this is really Clang C compiler" >&5 18322echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 18323 cf_save_CFLAGS="$CFLAGS" 18324 CFLAGS="$CFLAGS -Qunused-arguments" 18325 cat >conftest.$ac_ext <<_ACEOF 18326#line 18326 "configure" 18327#include "confdefs.h" 18328 18329int 18330main () 18331{ 18332 18333#ifdef __clang__ 18334#else 18335make an error 18336#endif 18337 18338 ; 18339 return 0; 18340} 18341_ACEOF 18342rm -f conftest.$ac_objext 18343if { (eval echo "$as_me:18343: \"$ac_compile\"") >&5 18344 (eval $ac_compile) 2>&5 18345 ac_status=$? 18346 echo "$as_me:18346: \$? = $ac_status" >&5 18347 (exit $ac_status); } && 18348 { ac_try='test -s conftest.$ac_objext' 18349 { (eval echo "$as_me:18349: \"$ac_try\"") >&5 18350 (eval $ac_try) 2>&5 18351 ac_status=$? 18352 echo "$as_me:18352: \$? = $ac_status" >&5 18353 (exit $ac_status); }; }; then 18354 CLANG_COMPILER=yes 18355cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 18356 18357else 18358 echo "$as_me: failed program was:" >&5 18359cat conftest.$ac_ext >&5 18360fi 18361rm -f conftest.$ac_objext conftest.$ac_ext 18362 CFLAGS="$cf_save_CFLAGS" 18363 echo "$as_me:18363: result: $CLANG_COMPILER" >&5 18364echo "${ECHO_T}$CLANG_COMPILER" >&6 18365fi 18366 18367cat > conftest.$ac_ext <<EOF 18368#line 18368 "${as_me:-configure}" 18369int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 18370EOF 18371 18372if test "$INTEL_COMPILER" = yes 18373then 18374# The "-wdXXX" options suppress warnings: 18375# remark #1419: external declaration in primary source file 18376# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 18377# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 18378# remark #193: zero used for undefined preprocessing identifier 18379# remark #593: variable "curs_sb_left_arrow" was set but never used 18380# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 18381# remark #869: parameter "tw" was never referenced 18382# remark #981: operands are evaluated in unspecified order 18383# warning #279: controlling expression is constant 18384 18385 { echo "$as_me:18385: checking for $CC warning options..." >&5 18386echo "$as_me: checking for $CC warning options..." >&6;} 18387 cf_save_CFLAGS="$CFLAGS" 18388 EXTRA_CFLAGS="-Wall" 18389 for cf_opt in \ 18390 wd1419 \ 18391 wd1683 \ 18392 wd1684 \ 18393 wd193 \ 18394 wd593 \ 18395 wd279 \ 18396 wd810 \ 18397 wd869 \ 18398 wd981 18399 do 18400 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 18401 if { (eval echo "$as_me:18401: \"$ac_compile\"") >&5 18402 (eval $ac_compile) 2>&5 18403 ac_status=$? 18404 echo "$as_me:18404: \$? = $ac_status" >&5 18405 (exit $ac_status); }; then 18406 test -n "$verbose" && echo "$as_me:18406: result: ... -$cf_opt" >&5 18407echo "${ECHO_T}... -$cf_opt" >&6 18408 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 18409 fi 18410 done 18411 CFLAGS="$cf_save_CFLAGS" 18412 18413elif test "$GCC" = yes 18414then 18415 { echo "$as_me:18415: checking for $CC warning options..." >&5 18416echo "$as_me: checking for $CC warning options..." >&6;} 18417 cf_save_CFLAGS="$CFLAGS" 18418 EXTRA_CFLAGS= 18419 cf_warn_CONST="" 18420 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 18421 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 18422 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 18423 for cf_opt in W Wall \ 18424 Wbad-function-cast \ 18425 Wcast-align \ 18426 Wcast-qual \ 18427 Wdeclaration-after-statement \ 18428 Wextra \ 18429 Winline \ 18430 Wmissing-declarations \ 18431 Wmissing-prototypes \ 18432 Wnested-externs \ 18433 Wpointer-arith \ 18434 Wshadow \ 18435 Wstrict-prototypes \ 18436 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum 18437 do 18438 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 18439 if { (eval echo "$as_me:18439: \"$ac_compile\"") >&5 18440 (eval $ac_compile) 2>&5 18441 ac_status=$? 18442 echo "$as_me:18442: \$? = $ac_status" >&5 18443 (exit $ac_status); }; then 18444 test -n "$verbose" && echo "$as_me:18444: result: ... -$cf_opt" >&5 18445echo "${ECHO_T}... -$cf_opt" >&6 18446 case $cf_opt in #(vi 18447 Wcast-qual) #(vi 18448 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 18449 ;; 18450 Winline) #(vi 18451 case $GCC_VERSION in 18452 [34].*) 18453 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 18454 18455echo "${as_me:-configure}:18455: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 18456 18457 continue;; 18458 esac 18459 ;; 18460 Wpointer-arith) #(vi 18461 case $GCC_VERSION in 18462 [12].*) 18463 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 18464 18465echo "${as_me:-configure}:18465: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 18466 18467 continue;; 18468 esac 18469 ;; 18470 esac 18471 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 18472 fi 18473 done 18474 CFLAGS="$cf_save_CFLAGS" 18475fi 18476rm -rf conftest* 18477 18478fi 18479fi 18480 18481test "$disable_setuid" = yes && 18482cat >>confdefs.h <<\EOF 18483#define DISABLE_SETUID 1 18484EOF 18485 18486test "$disable_setgid" = yes && 18487cat >>confdefs.h <<\EOF 18488#define DISABLE_SETGID 1 18489EOF 18490 18491if test $disable_setuid = yes ; then 18492 MAY_SETUID="#" 18493 NOT_SETUID= 18494elif test $disable_setgid = yes ; then 18495 MAY_SETUID="#" 18496 NOT_SETUID= 18497else 18498 MAY_SETUID= 18499 NOT_SETUID="#" 18500fi 18501 18502### remove from CPPFLAGS the optional features we define in xtermcfg.h 18503### or other conflicting symbols that may be defined via imake: 18504for cf_def in \ 18505 __STDC__ \ 18506 ALLOWLOGGING \ 18507 ALLOWLOGFILEEXEC \ 18508 OPT_LUIT_PROG \ 18509 OPT_WIDE_CHARS \ 18510 SCROLLBAR_RIGHT \ 18511 USE_TTY_GROUP \ 18512 USE_UTEMPTER \ 18513 XRENDERFONT 18514do 18515 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 18516done 18517 18518echo "$as_me:18518: checking if filesystem supports mixed-case filenames" >&5 18519echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 18520if test "${cf_cv_mixedcase+set}" = set; then 18521 echo $ECHO_N "(cached) $ECHO_C" >&6 18522else 18523 18524if test "$cross_compiling" = yes ; then 18525 case $target_alias in #(vi 18526 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi 18527 cf_cv_mixedcase=no 18528 ;; 18529 *) 18530 cf_cv_mixedcase=yes 18531 ;; 18532 esac 18533else 18534 rm -f conftest CONFTEST 18535 echo test >conftest 18536 if test -f CONFTEST ; then 18537 cf_cv_mixedcase=no 18538 else 18539 cf_cv_mixedcase=yes 18540 fi 18541 rm -f conftest CONFTEST 18542fi 18543 18544fi 18545echo "$as_me:18545: result: $cf_cv_mixedcase" >&5 18546echo "${ECHO_T}$cf_cv_mixedcase" >&6 18547test "$cf_cv_mixedcase" = yes && 18548cat >>confdefs.h <<\EOF 18549#define MIXEDCASE_FILENAMES 1 18550EOF 18551 18552for ac_prog in exctags ctags 18553do 18554 # Extract the first word of "$ac_prog", so it can be a program name with args. 18555set dummy $ac_prog; ac_word=$2 18556echo "$as_me:18556: checking for $ac_word" >&5 18557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18558if test "${ac_cv_prog_CTAGS+set}" = set; then 18559 echo $ECHO_N "(cached) $ECHO_C" >&6 18560else 18561 if test -n "$CTAGS"; then 18562 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 18563else 18564 ac_save_IFS=$IFS; IFS=$ac_path_separator 18565ac_dummy="$PATH" 18566for ac_dir in $ac_dummy; do 18567 IFS=$ac_save_IFS 18568 test -z "$ac_dir" && ac_dir=. 18569 $as_executable_p "$ac_dir/$ac_word" || continue 18570ac_cv_prog_CTAGS="$ac_prog" 18571echo "$as_me:18571: found $ac_dir/$ac_word" >&5 18572break 18573done 18574 18575fi 18576fi 18577CTAGS=$ac_cv_prog_CTAGS 18578if test -n "$CTAGS"; then 18579 echo "$as_me:18579: result: $CTAGS" >&5 18580echo "${ECHO_T}$CTAGS" >&6 18581else 18582 echo "$as_me:18582: result: no" >&5 18583echo "${ECHO_T}no" >&6 18584fi 18585 18586 test -n "$CTAGS" && break 18587done 18588 18589for ac_prog in exetags etags 18590do 18591 # Extract the first word of "$ac_prog", so it can be a program name with args. 18592set dummy $ac_prog; ac_word=$2 18593echo "$as_me:18593: checking for $ac_word" >&5 18594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18595if test "${ac_cv_prog_ETAGS+set}" = set; then 18596 echo $ECHO_N "(cached) $ECHO_C" >&6 18597else 18598 if test -n "$ETAGS"; then 18599 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 18600else 18601 ac_save_IFS=$IFS; IFS=$ac_path_separator 18602ac_dummy="$PATH" 18603for ac_dir in $ac_dummy; do 18604 IFS=$ac_save_IFS 18605 test -z "$ac_dir" && ac_dir=. 18606 $as_executable_p "$ac_dir/$ac_word" || continue 18607ac_cv_prog_ETAGS="$ac_prog" 18608echo "$as_me:18608: found $ac_dir/$ac_word" >&5 18609break 18610done 18611 18612fi 18613fi 18614ETAGS=$ac_cv_prog_ETAGS 18615if test -n "$ETAGS"; then 18616 echo "$as_me:18616: result: $ETAGS" >&5 18617echo "${ECHO_T}$ETAGS" >&6 18618else 18619 echo "$as_me:18619: result: no" >&5 18620echo "${ECHO_T}no" >&6 18621fi 18622 18623 test -n "$ETAGS" && break 18624done 18625 18626# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 18627set dummy ${CTAGS:-ctags}; ac_word=$2 18628echo "$as_me:18628: checking for $ac_word" >&5 18629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18630if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 18631 echo $ECHO_N "(cached) $ECHO_C" >&6 18632else 18633 if test -n "$MAKE_LOWER_TAGS"; then 18634 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 18635else 18636 ac_save_IFS=$IFS; IFS=$ac_path_separator 18637ac_dummy="$PATH" 18638for ac_dir in $ac_dummy; do 18639 IFS=$ac_save_IFS 18640 test -z "$ac_dir" && ac_dir=. 18641 $as_executable_p "$ac_dir/$ac_word" || continue 18642ac_cv_prog_MAKE_LOWER_TAGS="yes" 18643echo "$as_me:18643: found $ac_dir/$ac_word" >&5 18644break 18645done 18646 18647 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 18648fi 18649fi 18650MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 18651if test -n "$MAKE_LOWER_TAGS"; then 18652 echo "$as_me:18652: result: $MAKE_LOWER_TAGS" >&5 18653echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 18654else 18655 echo "$as_me:18655: result: no" >&5 18656echo "${ECHO_T}no" >&6 18657fi 18658 18659if test "$cf_cv_mixedcase" = yes ; then 18660 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 18661set dummy ${ETAGS:-etags}; ac_word=$2 18662echo "$as_me:18662: checking for $ac_word" >&5 18663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18664if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 18665 echo $ECHO_N "(cached) $ECHO_C" >&6 18666else 18667 if test -n "$MAKE_UPPER_TAGS"; then 18668 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 18669else 18670 ac_save_IFS=$IFS; IFS=$ac_path_separator 18671ac_dummy="$PATH" 18672for ac_dir in $ac_dummy; do 18673 IFS=$ac_save_IFS 18674 test -z "$ac_dir" && ac_dir=. 18675 $as_executable_p "$ac_dir/$ac_word" || continue 18676ac_cv_prog_MAKE_UPPER_TAGS="yes" 18677echo "$as_me:18677: found $ac_dir/$ac_word" >&5 18678break 18679done 18680 18681 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 18682fi 18683fi 18684MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 18685if test -n "$MAKE_UPPER_TAGS"; then 18686 echo "$as_me:18686: result: $MAKE_UPPER_TAGS" >&5 18687echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 18688else 18689 echo "$as_me:18689: result: no" >&5 18690echo "${ECHO_T}no" >&6 18691fi 18692 18693else 18694 MAKE_UPPER_TAGS=no 18695fi 18696 18697if test "$MAKE_UPPER_TAGS" = yes ; then 18698 MAKE_UPPER_TAGS= 18699else 18700 MAKE_UPPER_TAGS="#" 18701fi 18702 18703if test "$MAKE_LOWER_TAGS" = yes ; then 18704 MAKE_LOWER_TAGS= 18705else 18706 MAKE_LOWER_TAGS="#" 18707fi 18708 18709LD_RPATH_OPT= 18710echo "$as_me:18710: checking for an rpath option" >&5 18711echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 18712case $cf_cv_system_name in #(vi 18713irix*) #(vi 18714 if test "$GCC" = yes; then 18715 LD_RPATH_OPT="-Wl,-rpath," 18716 else 18717 LD_RPATH_OPT="-rpath " 18718 fi 18719 ;; 18720linux*|gnu*|k*bsd*-gnu) #(vi 18721 LD_RPATH_OPT="-Wl,-rpath," 18722 ;; 18723openbsd[2-9].*|mirbsd*) #(vi 18724 LD_RPATH_OPT="-Wl,-rpath," 18725 ;; 18726dragonfly*|freebsd*) #(vi 18727 LD_RPATH_OPT="-rpath " 18728 ;; 18729netbsd*) #(vi 18730 LD_RPATH_OPT="-Wl,-rpath," 18731 ;; 18732osf*|mls+*) #(vi 18733 LD_RPATH_OPT="-rpath " 18734 ;; 18735solaris2*) #(vi 18736 LD_RPATH_OPT="-R" 18737 ;; 18738*) 18739 ;; 18740esac 18741echo "$as_me:18741: result: $LD_RPATH_OPT" >&5 18742echo "${ECHO_T}$LD_RPATH_OPT" >&6 18743 18744case "x$LD_RPATH_OPT" in #(vi 18745x-R*) 18746 echo "$as_me:18746: checking if we need a space after rpath option" >&5 18747echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 18748 cf_save_LIBS="$LIBS" 18749 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 18750 cat >conftest.$ac_ext <<_ACEOF 18751#line 18751 "configure" 18752#include "confdefs.h" 18753 18754int 18755main () 18756{ 18757 18758 ; 18759 return 0; 18760} 18761_ACEOF 18762rm -f conftest.$ac_objext conftest$ac_exeext 18763if { (eval echo "$as_me:18763: \"$ac_link\"") >&5 18764 (eval $ac_link) 2>&5 18765 ac_status=$? 18766 echo "$as_me:18766: \$? = $ac_status" >&5 18767 (exit $ac_status); } && 18768 { ac_try='test -s conftest$ac_exeext' 18769 { (eval echo "$as_me:18769: \"$ac_try\"") >&5 18770 (eval $ac_try) 2>&5 18771 ac_status=$? 18772 echo "$as_me:18772: \$? = $ac_status" >&5 18773 (exit $ac_status); }; }; then 18774 cf_rpath_space=no 18775else 18776 echo "$as_me: failed program was:" >&5 18777cat conftest.$ac_ext >&5 18778cf_rpath_space=yes 18779fi 18780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18781 LIBS="$cf_save_LIBS" 18782 echo "$as_me:18782: result: $cf_rpath_space" >&5 18783echo "${ECHO_T}$cf_rpath_space" >&6 18784 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 18785 ;; 18786esac 18787 18788echo "$as_me:18788: checking if rpath-hack should be disabled" >&5 18789echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 18790 18791# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 18792if test "${enable_rpath_hack+set}" = set; then 18793 enableval="$enable_rpath_hack" 18794 test "$enableval" != no && enableval=yes 18795 if test "$enableval" != "yes" ; then 18796 cf_disable_rpath_hack=yes 18797 else 18798 cf_disable_rpath_hack=no 18799 fi 18800else 18801 enableval=yes 18802 cf_disable_rpath_hack=no 18803 18804fi; 18805echo "$as_me:18805: result: $cf_disable_rpath_hack" >&5 18806echo "${ECHO_T}$cf_disable_rpath_hack" >&6 18807if test "$cf_disable_rpath_hack" = no ; then 18808 18809echo "$as_me:18809: checking for updated LDFLAGS" >&5 18810echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 18811if test -n "$LD_RPATH_OPT" ; then 18812 echo "$as_me:18812: result: maybe" >&5 18813echo "${ECHO_T}maybe" >&6 18814 18815 for ac_prog in ldd 18816do 18817 # Extract the first word of "$ac_prog", so it can be a program name with args. 18818set dummy $ac_prog; ac_word=$2 18819echo "$as_me:18819: checking for $ac_word" >&5 18820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18821if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 18822 echo $ECHO_N "(cached) $ECHO_C" >&6 18823else 18824 if test -n "$cf_ldd_prog"; then 18825 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 18826else 18827 ac_save_IFS=$IFS; IFS=$ac_path_separator 18828ac_dummy="$PATH" 18829for ac_dir in $ac_dummy; do 18830 IFS=$ac_save_IFS 18831 test -z "$ac_dir" && ac_dir=. 18832 $as_executable_p "$ac_dir/$ac_word" || continue 18833ac_cv_prog_cf_ldd_prog="$ac_prog" 18834echo "$as_me:18834: found $ac_dir/$ac_word" >&5 18835break 18836done 18837 18838fi 18839fi 18840cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 18841if test -n "$cf_ldd_prog"; then 18842 echo "$as_me:18842: result: $cf_ldd_prog" >&5 18843echo "${ECHO_T}$cf_ldd_prog" >&6 18844else 18845 echo "$as_me:18845: result: no" >&5 18846echo "${ECHO_T}no" >&6 18847fi 18848 18849 test -n "$cf_ldd_prog" && break 18850done 18851test -n "$cf_ldd_prog" || cf_ldd_prog="no" 18852 18853 cf_rpath_list="/usr/lib /lib" 18854 if test "$cf_ldd_prog" != no 18855 then 18856 cf_rpath_oops= 18857 18858cat >conftest.$ac_ext <<_ACEOF 18859#line 18859 "configure" 18860#include "confdefs.h" 18861#include <stdio.h> 18862int 18863main () 18864{ 18865printf("Hello"); 18866 ; 18867 return 0; 18868} 18869_ACEOF 18870rm -f conftest.$ac_objext conftest$ac_exeext 18871if { (eval echo "$as_me:18871: \"$ac_link\"") >&5 18872 (eval $ac_link) 2>&5 18873 ac_status=$? 18874 echo "$as_me:18874: \$? = $ac_status" >&5 18875 (exit $ac_status); } && 18876 { ac_try='test -s conftest$ac_exeext' 18877 { (eval echo "$as_me:18877: \"$ac_try\"") >&5 18878 (eval $ac_try) 2>&5 18879 ac_status=$? 18880 echo "$as_me:18880: \$? = $ac_status" >&5 18881 (exit $ac_status); }; }; then 18882 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 18883 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 18884else 18885 echo "$as_me: failed program was:" >&5 18886cat conftest.$ac_ext >&5 18887fi 18888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18889 18890 # If we passed the link-test, but get a "not found" on a given library, 18891 # this could be due to inept reconfiguration of gcc to make it only 18892 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 18893 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 18894 # /usr/local libraries. 18895 if test -n "$cf_rpath_oops" 18896 then 18897 for cf_rpath_src in $cf_rpath_oops 18898 do 18899 for cf_rpath_dir in \ 18900 /usr/local \ 18901 /usr/pkg \ 18902 /opt/sfw 18903 do 18904 if test -f $cf_rpath_dir/lib/$cf_rpath_src 18905 then 18906 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 18907 18908echo "${as_me:-configure}:18908: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 18909 18910 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 18911 break 18912 fi 18913 done 18914 done 18915 fi 18916 fi 18917 18918 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 18919 18920echo "${as_me:-configure}:18920: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 18921 18922test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 18923 18924echo "${as_me:-configure}:18924: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 18925 18926cf_rpath_dst= 18927for cf_rpath_src in $LDFLAGS 18928do 18929 case $cf_rpath_src in #(vi 18930 -L*) #(vi 18931 18932 # check if this refers to a directory which we will ignore 18933 cf_rpath_skip=no 18934 if test -n "$cf_rpath_list" 18935 then 18936 for cf_rpath_item in $cf_rpath_list 18937 do 18938 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 18939 then 18940 cf_rpath_skip=yes 18941 break 18942 fi 18943 done 18944 fi 18945 18946 if test "$cf_rpath_skip" = no 18947 then 18948 # transform the option 18949 if test "$LD_RPATH_OPT" = "-R " ; then 18950 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 18951 else 18952 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 18953 fi 18954 18955 # if we have not already added this, add it now 18956 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 18957 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 18958 then 18959 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 18960 18961echo "${as_me:-configure}:18961: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 18962 18963 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 18964 fi 18965 fi 18966 ;; 18967 esac 18968 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 18969done 18970LDFLAGS=$cf_rpath_dst 18971 18972test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 18973 18974echo "${as_me:-configure}:18974: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 18975 18976test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 18977 18978echo "${as_me:-configure}:18978: testing ...checking LIBS $LIBS ..." 1>&5 18979 18980cf_rpath_dst= 18981for cf_rpath_src in $LIBS 18982do 18983 case $cf_rpath_src in #(vi 18984 -L*) #(vi 18985 18986 # check if this refers to a directory which we will ignore 18987 cf_rpath_skip=no 18988 if test -n "$cf_rpath_list" 18989 then 18990 for cf_rpath_item in $cf_rpath_list 18991 do 18992 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 18993 then 18994 cf_rpath_skip=yes 18995 break 18996 fi 18997 done 18998 fi 18999 19000 if test "$cf_rpath_skip" = no 19001 then 19002 # transform the option 19003 if test "$LD_RPATH_OPT" = "-R " ; then 19004 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 19005 else 19006 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 19007 fi 19008 19009 # if we have not already added this, add it now 19010 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 19011 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 19012 then 19013 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 19014 19015echo "${as_me:-configure}:19015: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 19016 19017 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 19018 fi 19019 fi 19020 ;; 19021 esac 19022 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 19023done 19024LIBS=$cf_rpath_dst 19025 19026test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 19027 19028echo "${as_me:-configure}:19028: testing ...checked LIBS $LIBS ..." 1>&5 19029 19030 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 19031 19032echo "${as_me:-configure}:19032: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 19033 19034else 19035 echo "$as_me:19035: result: no" >&5 19036echo "${ECHO_T}no" >&6 19037fi 19038 19039fi 19040 19041# Force plink.sh to not trim pcre's libraries, which have the same symbol 19042# names as the system regexp. 19043if test "$with_pcre" != no 19044then 19045 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 19046fi 19047 19048### output xtermcfg.h, etc 19049ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in" 19050 19051cat >confcache <<\_ACEOF 19052# This file is a shell script that caches the results of configure 19053# tests run on this system so they can be shared between configure 19054# scripts and configure runs, see configure's option --config-cache. 19055# It is not useful on other systems. If it contains results you don't 19056# want to keep, you may remove or edit it. 19057# 19058# config.status only pays attention to the cache file if you give it 19059# the --recheck option to rerun configure. 19060# 19061# `ac_cv_env_foo' variables (set or unset) will be overriden when 19062# loading this file, other *unset* `ac_cv_foo' will be assigned the 19063# following values. 19064 19065_ACEOF 19066 19067# The following way of writing the cache mishandles newlines in values, 19068# but we know of no workaround that is simple, portable, and efficient. 19069# So, don't put newlines in cache variables' values. 19070# Ultrix sh set writes to stderr and can't be redirected directly, 19071# and sets the high bit in the cache file unless we assign to the vars. 19072{ 19073 (set) 2>&1 | 19074 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19075 *ac_space=\ *) 19076 # `set' does not quote correctly, so add quotes (double-quote 19077 # substitution turns \\\\ into \\, and sed turns \\ into \). 19078 sed -n \ 19079 "s/'/'\\\\''/g; 19080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19081 ;; 19082 *) 19083 # `set' quotes correctly as required by POSIX, so do not add quotes. 19084 sed -n \ 19085 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19086 ;; 19087 esac; 19088} | 19089 sed ' 19090 t clear 19091 : clear 19092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19093 t end 19094 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19095 : end' >>confcache 19096if cmp -s $cache_file confcache; then :; else 19097 if test -w $cache_file; then 19098 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19099 cat confcache >$cache_file 19100 else 19101 echo "not updating unwritable cache $cache_file" 19102 fi 19103fi 19104rm -f confcache 19105 19106test "x$prefix" = xNONE && prefix=$ac_default_prefix 19107# Let make expand exec_prefix. 19108test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19109 19110# VPATH may cause trouble with some makes, so we remove $(srcdir), 19111# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19112# trailing colons and then remove the whole line if VPATH becomes empty 19113# (actually we leave an empty line to preserve line numbers). 19114if test "x$srcdir" = x.; then 19115 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19116s/:*\$(srcdir):*/:/; 19117s/:*\${srcdir}:*/:/; 19118s/:*@srcdir@:*/:/; 19119s/^\([^=]*=[ ]*\):*/\1/; 19120s/:*$//; 19121s/^[^=]*=[ ]*$//; 19122}' 19123fi 19124 19125DEFS=-DHAVE_CONFIG_H 19126 19127: ${CONFIG_STATUS=./config.status} 19128ac_clean_files_save=$ac_clean_files 19129ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19130{ echo "$as_me:19130: creating $CONFIG_STATUS" >&5 19131echo "$as_me: creating $CONFIG_STATUS" >&6;} 19132cat >$CONFIG_STATUS <<_ACEOF 19133#! $SHELL 19134# Generated automatically by configure. 19135# Run this file to recreate the current configuration. 19136# Compiler output produced by configure, useful for debugging 19137# configure, is in config.log if it exists. 19138 19139debug=false 19140SHELL=\${CONFIG_SHELL-$SHELL} 19141ac_cs_invocation="\$0 \$@" 19142 19143_ACEOF 19144 19145cat >>$CONFIG_STATUS <<\_ACEOF 19146# Be Bourne compatible 19147if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19148 emulate sh 19149 NULLCMD=: 19150elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19151 set -o posix 19152fi 19153 19154# Name of the executable. 19155as_me=`echo "$0" |sed 's,.*[\\/],,'` 19156 19157if expr a : '\(a\)' >/dev/null 2>&1; then 19158 as_expr=expr 19159else 19160 as_expr=false 19161fi 19162 19163rm -f conf$$ conf$$.exe conf$$.file 19164echo >conf$$.file 19165if ln -s conf$$.file conf$$ 2>/dev/null; then 19166 # We could just check for DJGPP; but this test a) works b) is more generic 19167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19168 if test -f conf$$.exe; then 19169 # Don't use ln at all; we don't have any links 19170 as_ln_s='cp -p' 19171 else 19172 as_ln_s='ln -s' 19173 fi 19174elif ln conf$$.file conf$$ 2>/dev/null; then 19175 as_ln_s=ln 19176else 19177 as_ln_s='cp -p' 19178fi 19179rm -f conf$$ conf$$.exe conf$$.file 19180 19181as_executable_p="test -f" 19182 19183# Support unset when possible. 19184if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 19185 as_unset=unset 19186else 19187 as_unset=false 19188fi 19189 19190# NLS nuisances. 19191$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 19192$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 19193$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 19194$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 19195$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 19196$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 19197$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 19198$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 19199 19200# IFS 19201# We need space, tab and new line, in precisely that order. 19202as_nl=' 19203' 19204IFS=" $as_nl" 19205 19206# CDPATH. 19207$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 19208 19209exec 6>&1 19210 19211_ACEOF 19212 19213# Files that config.status was made for. 19214if test -n "$ac_config_files"; then 19215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19216fi 19217 19218if test -n "$ac_config_headers"; then 19219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19220fi 19221 19222if test -n "$ac_config_links"; then 19223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19224fi 19225 19226if test -n "$ac_config_commands"; then 19227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19228fi 19229 19230cat >>$CONFIG_STATUS <<\EOF 19231 19232ac_cs_usage="\ 19233\`$as_me' instantiates files from templates according to the 19234current configuration. 19235 19236Usage: $0 [OPTIONS] [FILE]... 19237 19238 -h, --help print this help, then exit 19239 -V, --version print version number, then exit 19240 -d, --debug don't remove temporary files 19241 --recheck update $as_me by reconfiguring in the same conditions 19242 --file=FILE[:TEMPLATE] 19243 instantiate the configuration file FILE 19244 --header=FILE[:TEMPLATE] 19245 instantiate the configuration header FILE 19246 19247Configuration files: 19248$config_files 19249 19250Configuration headers: 19251$config_headers 19252 19253Report bugs to <dickey@invisible-island.net>." 19254EOF 19255 19256cat >>$CONFIG_STATUS <<EOF 19257ac_cs_version="\\ 19258config.status 19259configured by $0, generated by GNU Autoconf 2.52.20121002, 19260 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19261 19262Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 19263Free Software Foundation, Inc. 19264This config.status script is free software; the Free Software Foundation 19265gives unlimited permission to copy, distribute and modify it." 19266srcdir=$srcdir 19267INSTALL="$INSTALL" 19268EOF 19269 19270cat >>$CONFIG_STATUS <<\EOF 19271# If no file are specified by the user, then we need to provide default 19272# value. By we need to know if files were specified by the user. 19273ac_need_defaults=: 19274while test $# != 0 19275do 19276 case $1 in 19277 --*=*) 19278 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19279 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19280 shift 19281 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 19282 shift 19283 ;; 19284 -*);; 19285 *) # This is not an option, so the user has probably given explicit 19286 # arguments. 19287 ac_need_defaults=false;; 19288 esac 19289 19290 case $1 in 19291 # Handling of the options. 19292EOF 19293cat >>$CONFIG_STATUS <<EOF 19294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19295 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 19296 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 19297EOF 19298cat >>$CONFIG_STATUS <<\EOF 19299 --version | --vers* | -V ) 19300 echo "$ac_cs_version"; exit 0 ;; 19301 --he | --h) 19302 # Conflict between --help and --header 19303 { { echo "$as_me:19303: error: ambiguous option: $1 19304Try \`$0 --help' for more information." >&5 19305echo "$as_me: error: ambiguous option: $1 19306Try \`$0 --help' for more information." >&2;} 19307 { (exit 1); exit 1; }; };; 19308 --help | --hel | -h ) 19309 echo "$ac_cs_usage"; exit 0 ;; 19310 --debug | --d* | -d ) 19311 debug=: ;; 19312 --file | --fil | --fi | --f ) 19313 shift 19314 CONFIG_FILES="$CONFIG_FILES $1" 19315 ac_need_defaults=false;; 19316 --header | --heade | --head | --hea ) 19317 shift 19318 CONFIG_HEADERS="$CONFIG_HEADERS $1" 19319 ac_need_defaults=false;; 19320 19321 # This is an error. 19322 -*) { { echo "$as_me:19322: error: unrecognized option: $1 19323Try \`$0 --help' for more information." >&5 19324echo "$as_me: error: unrecognized option: $1 19325Try \`$0 --help' for more information." >&2;} 19326 { (exit 1); exit 1; }; } ;; 19327 19328 *) ac_config_targets="$ac_config_targets $1" ;; 19329 19330 esac 19331 shift 19332done 19333 19334exec 5>>config.log 19335cat >&5 << _ACEOF 19336 19337## ----------------------- ## 19338## Running config.status. ## 19339## ----------------------- ## 19340 19341This file was extended by $as_me 2.52.20121002, executed with 19342 CONFIG_FILES = $CONFIG_FILES 19343 CONFIG_HEADERS = $CONFIG_HEADERS 19344 CONFIG_LINKS = $CONFIG_LINKS 19345 CONFIG_COMMANDS = $CONFIG_COMMANDS 19346 > $ac_cs_invocation 19347on `(hostname || uname -n) 2>/dev/null | sed 1q` 19348 19349_ACEOF 19350EOF 19351 19352cat >>$CONFIG_STATUS <<\EOF 19353for ac_config_target in $ac_config_targets 19354do 19355 case "$ac_config_target" in 19356 # Handling of arguments. 19357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19358 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 19359 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 19360 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 19361 *) { { echo "$as_me:19361: error: invalid argument: $ac_config_target" >&5 19362echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19363 { (exit 1); exit 1; }; };; 19364 esac 19365done 19366 19367# If the user did not use the arguments to specify the items to instantiate, 19368# then the envvar interface is used. Set only those that are not. 19369# We use the long form for the default assignment because of an extremely 19370# bizarre bug on SunOS 4.1.3. 19371if $ac_need_defaults; then 19372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19374fi 19375 19376# Create a temporary directory, and hook for its removal unless debugging. 19377$debug || 19378{ 19379 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19380 trap '{ (exit 1); exit 1; }' 1 2 13 15 19381} 19382 19383# Create a (secure) tmp directory for tmp files. 19384: ${TMPDIR=/tmp} 19385{ 19386 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 19387 test -n "$tmp" && test -d "$tmp" 19388} || 19389{ 19390 tmp=$TMPDIR/cs$$-$RANDOM 19391 (umask 077 && mkdir $tmp) 19392} || 19393{ 19394 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 19395 { (exit 1); exit 1; } 19396} 19397 19398EOF 19399 19400cat >>$CONFIG_STATUS <<EOF 19401 19402# 19403# CONFIG_FILES section. 19404# 19405 19406# No need to generate the scripts if there are no CONFIG_FILES. 19407# This happens for instance when ./config.status config.h 19408if test -n "\$CONFIG_FILES"; then 19409 # Protect against being on the right side of a sed subst in config.status. 19410 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19411 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19412s,@SHELL@,$SHELL,;t t 19413s,@exec_prefix@,$exec_prefix,;t t 19414s,@prefix@,$prefix,;t t 19415s,@program_transform_name@,$program_transform_name,;t t 19416s,@bindir@,$bindir,;t t 19417s,@sbindir@,$sbindir,;t t 19418s,@libexecdir@,$libexecdir,;t t 19419s,@datarootdir@,$datarootdir,;t t 19420s,@datadir@,$datadir,;t t 19421s,@sysconfdir@,$sysconfdir,;t t 19422s,@sharedstatedir@,$sharedstatedir,;t t 19423s,@localstatedir@,$localstatedir,;t t 19424s,@libdir@,$libdir,;t t 19425s,@includedir@,$includedir,;t t 19426s,@oldincludedir@,$oldincludedir,;t t 19427s,@infodir@,$infodir,;t t 19428s,@mandir@,$mandir,;t t 19429s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19430s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19431s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19432s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19433s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19434s,@build_alias@,$build_alias,;t t 19435s,@host_alias@,$host_alias,;t t 19436s,@target_alias@,$target_alias,;t t 19437s,@ECHO_C@,$ECHO_C,;t t 19438s,@ECHO_N@,$ECHO_N,;t t 19439s,@ECHO_T@,$ECHO_T,;t t 19440s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19441s,@DEFS@,$DEFS,;t t 19442s,@LIBS@,$LIBS,;t t 19443s,@build@,$build,;t t 19444s,@build_cpu@,$build_cpu,;t t 19445s,@build_vendor@,$build_vendor,;t t 19446s,@build_os@,$build_os,;t t 19447s,@host@,$host,;t t 19448s,@host_cpu@,$host_cpu,;t t 19449s,@host_vendor@,$host_vendor,;t t 19450s,@host_os@,$host_os,;t t 19451s,@CC@,$CC,;t t 19452s,@CFLAGS@,$CFLAGS,;t t 19453s,@LDFLAGS@,$LDFLAGS,;t t 19454s,@CPPFLAGS@,$CPPFLAGS,;t t 19455s,@ac_ct_CC@,$ac_ct_CC,;t t 19456s,@EXEEXT@,$EXEEXT,;t t 19457s,@OBJEXT@,$OBJEXT,;t t 19458s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 19459s,@CPP@,$CPP,;t t 19460s,@AWK@,$AWK,;t t 19461s,@GROFF_PATH@,$GROFF_PATH,;t t 19462s,@GROFF_NOTE@,$GROFF_NOTE,;t t 19463s,@NROFF_NOTE@,$NROFF_NOTE,;t t 19464s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19465s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19466s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19467s,@LN_S@,$LN_S,;t t 19468s,@LINT@,$LINT,;t t 19469s,@APP_CLASS@,$APP_CLASS,;t t 19470s,@APPSDIR@,$APPSDIR,;t t 19471s,@no_appsdir@,$no_appsdir,;t t 19472s,@ICON_NAME@,$ICON_NAME,;t t 19473s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 19474s,@PIXMAPDIR@,$PIXMAPDIR,;t t 19475s,@no_pixmapdir@,$no_pixmapdir,;t t 19476s,@ICONDIR@,$ICONDIR,;t t 19477s,@no_icondir@,$no_icondir,;t t 19478s,@ICON_FORMAT@,$ICON_FORMAT,;t t 19479s,@ICON_THEME@,$ICON_THEME,;t t 19480s,@ICON_LIST@,$ICON_LIST,;t t 19481s,@desktop_utils@,$desktop_utils,;t t 19482s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 19483s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 19484s,@XTERM_PATH@,$XTERM_PATH,;t t 19485s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 19486s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 19487s,@X_CFLAGS@,$X_CFLAGS,;t t 19488s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 19489s,@X_LIBS@,$X_LIBS,;t t 19490s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 19491s,@PKG_CONFIG@,$PKG_CONFIG,;t t 19492s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 19493s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 19494s,@IMAKE@,$IMAKE,;t t 19495s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 19496s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 19497s,@default_termid@,$default_termid,;t t 19498s,@default_TERM@,$default_TERM,;t t 19499s,@backarrow_is_bs@,$backarrow_is_bs,;t t 19500s,@backarrow_is_erase@,$backarrow_is_erase,;t t 19501s,@delete_is_del@,$delete_is_del,;t t 19502s,@alt_sends_esc@,$alt_sends_esc,;t t 19503s,@meta_sends_esc@,$meta_sends_esc,;t t 19504s,@cf_tic_prog@,$cf_tic_prog,;t t 19505s,@no_ticprog@,$no_ticprog,;t t 19506s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 19507s,@SET_TERMINFO@,$SET_TERMINFO,;t t 19508s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 19509s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 19510s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 19511s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 19512s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 19513s,@LUIT@,$LUIT,;t t 19514s,@ECHO_LT@,$ECHO_LT,;t t 19515s,@ECHO_LD@,$ECHO_LD,;t t 19516s,@RULE_CC@,$RULE_CC,;t t 19517s,@SHOW_CC@,$SHOW_CC,;t t 19518s,@ECHO_CC@,$ECHO_CC,;t t 19519s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 19520s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 19521s,@EXTRAHDRS@,$EXTRAHDRS,;t t 19522s,@EXTRASRCS@,$EXTRASRCS,;t t 19523s,@EXTRAOBJS@,$EXTRAOBJS,;t t 19524s,@MAY_SETUID@,$MAY_SETUID,;t t 19525s,@NOT_SETUID@,$NOT_SETUID,;t t 19526s,@CTAGS@,$CTAGS,;t t 19527s,@ETAGS@,$ETAGS,;t t 19528s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 19529s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 19530s,@cf_ldd_prog@,$cf_ldd_prog,;t t 19531s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 19532CEOF 19533 19534EOF 19535 19536 cat >>$CONFIG_STATUS <<\EOF 19537 # Split the substitutions into bite-sized pieces for seds with 19538 # small command number limits, like on Digital OSF/1 and HP-UX. 19539 ac_max_sed_lines=48 19540 ac_sed_frag=1 # Number of current file. 19541 ac_beg=1 # First line for current file. 19542 ac_end=$ac_max_sed_lines # Line after last line for current file. 19543 ac_more_lines=: 19544 ac_sed_cmds= 19545 while $ac_more_lines; do 19546 if test $ac_beg -gt 1; then 19547 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19548 else 19549 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19550 fi 19551 if test ! -s $tmp/subs.frag; then 19552 ac_more_lines=false 19553 else 19554 # The purpose of the label and of the branching condition is to 19555 # speed up the sed processing (if there are no `@' at all, there 19556 # is no need to browse any of the substitutions). 19557 # These are the two extra sed commands mentioned above. 19558 (echo ':t 19559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19560 if test -z "$ac_sed_cmds"; then 19561 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19562 else 19563 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19564 fi 19565 ac_sed_frag=`expr $ac_sed_frag + 1` 19566 ac_beg=$ac_end 19567 ac_end=`expr $ac_end + $ac_max_sed_lines` 19568 fi 19569 done 19570 if test -z "$ac_sed_cmds"; then 19571 ac_sed_cmds=cat 19572 fi 19573fi # test -n "$CONFIG_FILES" 19574 19575EOF 19576cat >>$CONFIG_STATUS <<\EOF 19577for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19579 case $ac_file in 19580 - | *:- | *:-:* ) # input from stdin 19581 cat >$tmp/stdin 19582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19586 * ) ac_file_in=$ac_file.in ;; 19587 esac 19588 19589 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19590 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19591 X"$ac_file" : 'X\(//\)[^/]' \| \ 19592 X"$ac_file" : 'X\(//\)$' \| \ 19593 X"$ac_file" : 'X\(/\)' \| \ 19594 . : '\(.\)' 2>/dev/null || 19595echo X"$ac_file" | 19596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19597 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19598 /^X\(\/\/\)$/{ s//\1/; q; } 19599 /^X\(\/\).*/{ s//\1/; q; } 19600 s/.*/./; q'` 19601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 19602 { case "$ac_dir" in 19603 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 19604 *) as_incr_dir=.;; 19605esac 19606as_dummy="$ac_dir" 19607for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 19608 case $as_mkdir_dir in 19609 # Skip DOS drivespec 19610 ?:) as_incr_dir=$as_mkdir_dir ;; 19611 *) 19612 as_incr_dir=$as_incr_dir/$as_mkdir_dir 19613 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 19614 ;; 19615 esac 19616done; } 19617 19618 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 19619 # A "../" for each directory in $ac_dir_suffix. 19620 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 19621 else 19622 ac_dir_suffix= ac_dots= 19623 fi 19624 19625 case $srcdir in 19626 .) ac_srcdir=. 19627 if test -z "$ac_dots"; then 19628 ac_top_srcdir=. 19629 else 19630 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 19631 fi ;; 19632 [\\/]* | ?:[\\/]* ) 19633 ac_srcdir=$srcdir$ac_dir_suffix; 19634 ac_top_srcdir=$srcdir ;; 19635 *) # Relative path. 19636 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 19637 ac_top_srcdir=$ac_dots$srcdir ;; 19638 esac 19639 19640 case $INSTALL in 19641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19642 *) ac_INSTALL=$ac_dots$INSTALL ;; 19643 esac 19644 19645 if test x"$ac_file" != x-; then 19646 { echo "$as_me:19646: creating $ac_file" >&5 19647echo "$as_me: creating $ac_file" >&6;} 19648 rm -f "$ac_file" 19649 fi 19650 # Let's still pretend it is `configure' which instantiates (i.e., don't 19651 # use $as_me), people would be surprised to read: 19652 # /* config.h. Generated automatically by config.status. */ 19653 configure_input="Generated automatically from `echo $ac_file_in | 19654 sed 's,.*/,,'` by configure." 19655 19656 # First look for the input files in the build tree, otherwise in the 19657 # src tree. 19658 ac_file_inputs=`IFS=: 19659 for f in $ac_file_in; do 19660 case $f in 19661 -) echo $tmp/stdin ;; 19662 [\\/$]*) 19663 # Absolute (can't be DOS-style, as IFS=:) 19664 test -f "$f" || { { echo "$as_me:19664: error: cannot find input file: $f" >&5 19665echo "$as_me: error: cannot find input file: $f" >&2;} 19666 { (exit 1); exit 1; }; } 19667 echo $f;; 19668 *) # Relative 19669 if test -f "$f"; then 19670 # Build tree 19671 echo $f 19672 elif test -f "$srcdir/$f"; then 19673 # Source tree 19674 echo $srcdir/$f 19675 else 19676 # /dev/null tree 19677 { { echo "$as_me:19677: error: cannot find input file: $f" >&5 19678echo "$as_me: error: cannot find input file: $f" >&2;} 19679 { (exit 1); exit 1; }; } 19680 fi;; 19681 esac 19682 done` || { (exit 1); exit 1; } 19683EOF 19684cat >>$CONFIG_STATUS <<\EOF 19685 ac_warn_datarootdir=no 19686 if test x"$ac_file" != x-; then 19687 for ac_item in $ac_file_inputs 19688 do 19689 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 19690 if test -n "$ac_seen"; then 19691 ac_used=`grep '@datarootdir@' $ac_item` 19692 if test -z "$ac_used"; then 19693 { echo "$as_me:19693: WARNING: datarootdir was used implicitly but not set: 19694$ac_seen" >&5 19695echo "$as_me: WARNING: datarootdir was used implicitly but not set: 19696$ac_seen" >&2;} 19697 ac_warn_datarootdir=yes 19698 fi 19699 fi 19700 ac_seen=`grep '${datarootdir}' $ac_item` 19701 if test -n "$ac_seen"; then 19702 { echo "$as_me:19702: WARNING: datarootdir was used explicitly but not set: 19703$ac_seen" >&5 19704echo "$as_me: WARNING: datarootdir was used explicitly but not set: 19705$ac_seen" >&2;} 19706 ac_warn_datarootdir=yes 19707 fi 19708 done 19709 fi 19710 19711if test "x$ac_warn_datarootdir" = xyes; then 19712 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 19713fi 19714 19715EOF 19716cat >>$CONFIG_STATUS <<EOF 19717 sed "$ac_vpsub 19718$extrasub 19719EOF 19720cat >>$CONFIG_STATUS <<\EOF 19721:t 19722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19723s,@configure_input@,$configure_input,;t t 19724s,@srcdir@,$ac_srcdir,;t t 19725s,@top_srcdir@,$ac_top_srcdir,;t t 19726s,@INSTALL@,$ac_INSTALL,;t t 19727" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 19728 rm -f $tmp/stdin 19729 if test x"$ac_file" != x-; then 19730 cp $tmp/out $ac_file 19731 19732 for ac_name in prefix exec_prefix datarootdir 19733 do 19734 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 19735 if test -n "$ac_seen"; then 19736 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 19737 if test -z "$ac_init"; then 19738 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 19739 { echo "$as_me:19739: WARNING: Variable $ac_name is used but was not set: 19740$ac_seen" >&5 19741echo "$as_me: WARNING: Variable $ac_name is used but was not set: 19742$ac_seen" >&2;} 19743 fi 19744 fi 19745 done 19746 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 19747 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 19748 if test -s $tmp/out; then 19749 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 19750 { echo "$as_me:19750: WARNING: Some variables may not be substituted: 19751$ac_seen" >&5 19752echo "$as_me: WARNING: Some variables may not be substituted: 19753$ac_seen" >&2;} 19754 fi 19755 else 19756 cat $tmp/out 19757 fi 19758 rm -f $tmp/out 19759 19760done 19761EOF 19762cat >>$CONFIG_STATUS <<\EOF 19763 19764# 19765# CONFIG_HEADER section. 19766# 19767 19768# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 19769# NAME is the cpp macro being defined and VALUE is the value it is being given. 19770# 19771# ac_d sets the value in "#define NAME VALUE" lines. 19772ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 19773ac_dB='[ ].*$,\1#\2' 19774ac_dC=' ' 19775ac_dD=',;t' 19776# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 19777ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19778ac_iB='\([ ]\),\1#\2define\3' 19779ac_iC=' ' 19780ac_iD='\4,;t' 19781# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 19782ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19783ac_uB='$,\1#\2define\3' 19784ac_uC=' ' 19785ac_uD=',;t' 19786 19787for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 19788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19789 case $ac_file in 19790 - | *:- | *:-:* ) # input from stdin 19791 cat >$tmp/stdin 19792 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19793 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19794 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19796 * ) ac_file_in=$ac_file.in ;; 19797 esac 19798 19799 test x"$ac_file" != x- && { echo "$as_me:19799: creating $ac_file" >&5 19800echo "$as_me: creating $ac_file" >&6;} 19801 19802 # First look for the input files in the build tree, otherwise in the 19803 # src tree. 19804 ac_file_inputs=`IFS=: 19805 for f in $ac_file_in; do 19806 case $f in 19807 -) echo $tmp/stdin ;; 19808 [\\/$]*) 19809 # Absolute (can't be DOS-style, as IFS=:) 19810 test -f "$f" || { { echo "$as_me:19810: error: cannot find input file: $f" >&5 19811echo "$as_me: error: cannot find input file: $f" >&2;} 19812 { (exit 1); exit 1; }; } 19813 echo $f;; 19814 *) # Relative 19815 if test -f "$f"; then 19816 # Build tree 19817 echo $f 19818 elif test -f "$srcdir/$f"; then 19819 # Source tree 19820 echo $srcdir/$f 19821 else 19822 # /dev/null tree 19823 { { echo "$as_me:19823: error: cannot find input file: $f" >&5 19824echo "$as_me: error: cannot find input file: $f" >&2;} 19825 { (exit 1); exit 1; }; } 19826 fi;; 19827 esac 19828 done` || { (exit 1); exit 1; } 19829 # Remove the trailing spaces. 19830 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 19831 19832EOF 19833 19834# Transform confdefs.h into two sed scripts, `conftest.defines' and 19835# `conftest.undefs', that substitutes the proper values into 19836# config.h.in to produce config.h. The first handles `#define' 19837# templates, and the second `#undef' templates. 19838# And first: Protect against being on the right side of a sed subst in 19839# config.status. Protect against being in an unquoted here document 19840# in config.status. 19841rm -f conftest.defines conftest.undefs 19842# Using a here document instead of a string reduces the quoting nightmare. 19843# Putting comments in sed scripts is not portable. 19844# 19845# `end' is used to avoid that the second main sed command (meant for 19846# 0-ary CPP macros) applies to n-ary macro definitions. 19847# See the Autoconf documentation for `clear'. 19848cat >confdef2sed.sed <<\EOF 19849s/[\\&,]/\\&/g 19850s,[\\$`],\\&,g 19851t clear 19852: clear 19853s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 19854t end 19855s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 19856: end 19857EOF 19858# If some macros were called several times there might be several times 19859# the same #defines, which is useless. Nevertheless, we may not want to 19860# sort them, since we want the *last* AC-DEFINE to be honored. 19861uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 19862sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 19863sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 19864rm -f confdef2sed.sed 19865 19866# This sed command replaces #undef with comments. This is necessary, for 19867# example, in the case of _POSIX_SOURCE, which is predefined and required 19868# on some systems where configure will not decide to define it. 19869cat >>conftest.undefs <<\EOF 19870s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 19871EOF 19872 19873# Break up conftest.defines because some shells have a limit on the size 19874# of here documents, and old seds have small limits too (100 cmds). 19875echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 19876echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 19877echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 19878echo ' :' >>$CONFIG_STATUS 19879rm -f conftest.tail 19880while grep . conftest.defines >/dev/null 19881do 19882 # Write a limited-size here document to $tmp/defines.sed. 19883 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 19884 # Speed up: don't consider the non `#define' lines. 19885 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 19886 # Work around the forget-to-reset-the-flag bug. 19887 echo 't clr' >>$CONFIG_STATUS 19888 echo ': clr' >>$CONFIG_STATUS 19889 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 19890 echo 'CEOF 19891 sed -f $tmp/defines.sed $tmp/in >$tmp/out 19892 rm -f $tmp/in 19893 mv $tmp/out $tmp/in 19894' >>$CONFIG_STATUS 19895 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 19896 rm -f conftest.defines 19897 mv conftest.tail conftest.defines 19898done 19899rm -f conftest.defines 19900echo ' fi # egrep' >>$CONFIG_STATUS 19901echo >>$CONFIG_STATUS 19902 19903# Break up conftest.undefs because some shells have a limit on the size 19904# of here documents, and old seds have small limits too (100 cmds). 19905echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 19906rm -f conftest.tail 19907while grep . conftest.undefs >/dev/null 19908do 19909 # Write a limited-size here document to $tmp/undefs.sed. 19910 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 19911 # Speed up: don't consider the non `#undef' 19912 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 19913 # Work around the forget-to-reset-the-flag bug. 19914 echo 't clr' >>$CONFIG_STATUS 19915 echo ': clr' >>$CONFIG_STATUS 19916 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 19917 echo 'CEOF 19918 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 19919 rm -f $tmp/in 19920 mv $tmp/out $tmp/in 19921' >>$CONFIG_STATUS 19922 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 19923 rm -f conftest.undefs 19924 mv conftest.tail conftest.undefs 19925done 19926rm -f conftest.undefs 19927 19928cat >>$CONFIG_STATUS <<\EOF 19929 # Let's still pretend it is `configure' which instantiates (i.e., don't 19930 # use $as_me), people would be surprised to read: 19931 # /* config.h. Generated automatically by config.status. */ 19932 if test x"$ac_file" = x-; then 19933 echo "/* Generated automatically by configure. */" >$tmp/config.h 19934 else 19935 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 19936 fi 19937 cat $tmp/in >>$tmp/config.h 19938 rm -f $tmp/in 19939 if test x"$ac_file" != x-; then 19940 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 19941 { echo "$as_me:19941: $ac_file is unchanged" >&5 19942echo "$as_me: $ac_file is unchanged" >&6;} 19943 else 19944 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19945 X"$ac_file" : 'X\(//\)[^/]' \| \ 19946 X"$ac_file" : 'X\(//\)$' \| \ 19947 X"$ac_file" : 'X\(/\)' \| \ 19948 . : '\(.\)' 2>/dev/null || 19949echo X"$ac_file" | 19950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19951 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19952 /^X\(\/\/\)$/{ s//\1/; q; } 19953 /^X\(\/\).*/{ s//\1/; q; } 19954 s/.*/./; q'` 19955 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 19956 { case "$ac_dir" in 19957 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 19958 *) as_incr_dir=.;; 19959esac 19960as_dummy="$ac_dir" 19961for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 19962 case $as_mkdir_dir in 19963 # Skip DOS drivespec 19964 ?:) as_incr_dir=$as_mkdir_dir ;; 19965 *) 19966 as_incr_dir=$as_incr_dir/$as_mkdir_dir 19967 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 19968 ;; 19969 esac 19970done; } 19971 19972 fi 19973 rm -f $ac_file 19974 mv $tmp/config.h $ac_file 19975 fi 19976 else 19977 cat $tmp/config.h 19978 rm -f $tmp/config.h 19979 fi 19980done 19981EOF 19982 19983cat >>$CONFIG_STATUS <<\EOF 19984 19985{ (exit 0); exit 0; } 19986EOF 19987chmod +x $CONFIG_STATUS 19988ac_clean_files=$ac_clean_files_save 19989 19990# configure is writing to config.log, and then calls config.status. 19991# config.status does its own redirection, appending to config.log. 19992# Unfortunately, on DOS this fails, as config.log is still kept open 19993# by configure, so config.status won't be able to write to it; its 19994# output is simply discarded. So we exec the FD to /dev/null, 19995# effectively closing config.log, so it can be properly (re)opened and 19996# appended to by config.status. When coming back to configure, we 19997# need to make the FD available again. 19998if test "$no_create" != yes; then 19999 ac_cs_success=: 20000 exec 5>/dev/null 20001 $SHELL $CONFIG_STATUS || ac_cs_success=false 20002 exec 5>>config.log 20003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20004 # would make configure fail if this is the last instruction. 20005 $ac_cs_success || { (exit 1); exit 1; } 20006fi 20007 20008