configure revision 5307cd1a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20230114. 4# 5# Copyright 2003-2022,2023 Thomas E. Dickey 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10 11# Avoid depending upon Character Ranges. 12as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15as_cr_digits='0123456789' 16as_cr_alnum=$as_cr_Letters$as_cr_digits 17 18# Sed expression to map a string onto a valid variable name. 19as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20 21# Sed expression to map a string onto a valid CPP name. 22as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23 24# Be Bourne compatible 25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26 emulate sh 27 NULLCMD=: 28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29 set -o posix 30fi 31 32# Name of the executable. 33as_me=`echo "$0" |sed 's,.*[\\/],,'` 34 35if expr a : '\(a\)' >/dev/null 2>&1; then 36 as_expr="expr" 37else 38 as_expr="false" 39fi 40 41rm -f conf$$ conf$$.exe conf$$.file 42echo >conf$$.file 43if ln -s conf$$.file conf$$ 2>/dev/null; then 44 # We could just check for DJGPP; but this test a) works b) is more generic 45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46 if test -f conf$$.exe; then 47 # Don't use ln at all; we don't have any links 48 as_ln_s='cp -p' 49 else 50 as_ln_s='ln -s' 51 fi 52elif ln conf$$.file conf$$ 2>/dev/null; then 53 as_ln_s='ln' 54else 55 as_ln_s='cp -p' 56fi 57rm -f conf$$ conf$$.exe conf$$.file 58 59as_executable_p="test -f" 60 61# Support unset when possible. 62if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63 as_unset="unset" 64else 65 as_unset="false" 66fi 67 68# NLS nuisances. 69$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77 78# IFS 79# We need space, tab and new line, in precisely that order. 80as_nl=' 81' 82IFS=" $as_nl" 83 84# CDPATH. 85$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86 87# Name of the host. 88# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89# so uname gets run too. 90ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91 92exec 6>&1 93 94# 95# Initializations. 96# 97ac_default_prefix=/usr/local 98cross_compiling=no 99subdirs= 100MFLAGS= 101MAKEFLAGS= 102SHELL=${CONFIG_SHELL-/bin/sh} 103 104# Maximum number of lines to put in a shell here document. 105# This variable seems obsolete. It should probably be removed, and 106# only ac_max_sed_lines should be used. 107: "${ac_max_here_lines=38}" 108 109ac_unique_file="charproc.c" 110# Factoring default headers for most tests. 111ac_includes_default="\ 112#include <stdio.h> 113#if HAVE_SYS_TYPES_H 114# include <sys/types.h> 115#endif 116#if HAVE_SYS_STAT_H 117# include <sys/stat.h> 118#endif 119#if STDC_HEADERS 120# include <stdlib.h> 121# include <stddef.h> 122#else 123# if HAVE_STDLIB_H 124# include <stdlib.h> 125# endif 126#endif 127#if HAVE_STRING_H 128# if !STDC_HEADERS && HAVE_MEMORY_H 129# include <memory.h> 130# endif 131# include <string.h> 132#endif 133#if HAVE_STRINGS_H 134# include <strings.h> 135#endif 136#if HAVE_INTTYPES_H 137# include <inttypes.h> 138#else 139# if HAVE_STDINT_H 140# include <stdint.h> 141# endif 142#endif 143#if HAVE_UNISTD_H 144# include <unistd.h> 145#endif" 146 147# Initialize some variables set by options. 148ac_init_help= 149ac_init_version=false 150# The variables have the same names as the options, with 151# dashes changed to underlines. 152cache_file=/dev/null 153exec_prefix=NONE 154no_create= 155no_recursion= 156prefix=NONE 157program_prefix=NONE 158program_suffix=NONE 159program_transform_name=s,x,x, 160silent= 161site= 162srcdir= 163verbose= 164x_includes=NONE 165x_libraries=NONE 166 167# Installation directory options. 168# These are left unexpanded so users can "make install exec_prefix=/foo" 169# and all the variables that are supposed to be based on exec_prefix 170# by default will actually change. 171# Use braces instead of parens because sh, perl, etc. also accept them. 172bindir='${exec_prefix}/bin' 173sbindir='${exec_prefix}/sbin' 174libexecdir='${exec_prefix}/libexec' 175datarootdir='${prefix}/share' 176datadir='${datarootdir}' 177sysconfdir='${prefix}/etc' 178sharedstatedir='${prefix}/com' 179localstatedir='${prefix}/var' 180runstatedir='${localstatedir}/run' 181libdir='${exec_prefix}/lib' 182includedir='${prefix}/include' 183oldincludedir='/usr/include' 184infodir='${datarootdir}/info' 185mandir='${datarootdir}/man' 186 187# Identity of this package. 188PACKAGE_NAME= 189PACKAGE_TARNAME= 190PACKAGE_VERSION= 191PACKAGE_STRING= 192PACKAGE_BUGREPORT= 193 194ac_prev= 195for ac_option 196do 197 # If the previous option needs an argument, assign it. 198 if test -n "$ac_prev"; then 199 eval "$ac_prev=\$ac_option" 200 ac_prev= 201 continue 202 fi 203 204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 205 206 # Accept the important Cygnus configure options, so we can diagnose typos. 207 208 case "$ac_option" in 209 210 -bindir | --bindir | --bindi | --bind | --bin | --bi) 211 ac_prev=bindir ;; 212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 213 bindir=$ac_optarg ;; 214 215 -build | --build | --buil | --bui | --bu) 216 ac_prev=build_alias ;; 217 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 218 build_alias=$ac_optarg ;; 219 220 -cache-file | --cache-file | --cache-fil | --cache-fi \ 221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 222 ac_prev=cache_file ;; 223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 225 cache_file=$ac_optarg ;; 226 227 --config-cache | -C) 228 cache_file=config.cache ;; 229 230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 231 ac_prev=datadir ;; 232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 233 | --da=*) 234 datadir=$ac_optarg ;; 235 236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 237 | --dataroo | --dataro | --datar) 238 ac_prev=datarootdir ;; 239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 241 datarootdir=$ac_optarg ;; 242 243 -disable-* | --disable-*) 244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 245 # Reject names that are not valid shell variable names. 246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 247 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 248 { (exit 1); exit 1; }; } 249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 250 eval "enable_$ac_feature=no" ;; 251 252 -enable-* | --enable-*) 253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 254 # Reject names that are not valid shell variable names. 255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 256 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 257 { (exit 1); exit 1; }; } 258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 259 case "$ac_option" in 260 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 261 *) ac_optarg=yes ;; 262 esac 263 eval "enable_$ac_feature='$ac_optarg'" ;; 264 265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 267 | --exec | --exe | --ex) 268 ac_prev=exec_prefix ;; 269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 271 | --exec=* | --exe=* | --ex=*) 272 exec_prefix=$ac_optarg ;; 273 274 -gas | --gas | --ga | --g) 275 # Obsolete; use --with-gas. 276 with_gas=yes ;; 277 278 -help | --help | --hel | --he | -h) 279 ac_init_help=long ;; 280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 281 ac_init_help=recursive ;; 282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 283 ac_init_help=short ;; 284 285 -host | --host | --hos | --ho) 286 ac_prev=host_alias ;; 287 -host=* | --host=* | --hos=* | --ho=*) 288 host_alias=$ac_optarg ;; 289 290 -includedir | --includedir | --includedi | --included | --include \ 291 | --includ | --inclu | --incl | --inc) 292 ac_prev=includedir ;; 293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 294 | --includ=* | --inclu=* | --incl=* | --inc=*) 295 includedir=$ac_optarg ;; 296 297 -infodir | --infodir | --infodi | --infod | --info | --inf) 298 ac_prev=infodir ;; 299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 300 infodir=$ac_optarg ;; 301 302 -libdir | --libdir | --libdi | --libd) 303 ac_prev=libdir ;; 304 -libdir=* | --libdir=* | --libdi=* | --libd=*) 305 libdir=$ac_optarg ;; 306 307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 308 | --libexe | --libex | --libe) 309 ac_prev=libexecdir ;; 310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 311 | --libexe=* | --libex=* | --libe=*) 312 libexecdir=$ac_optarg ;; 313 314 -localstatedir | --localstatedir | --localstatedi | --localstated \ 315 | --localstate | --localstat | --localsta | --localst \ 316 | --locals | --local | --loca | --loc | --lo) 317 ac_prev=localstatedir ;; 318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 321 localstatedir=$ac_optarg ;; 322 323 -runstatedir | --runstatedir | --runstatedi | --runstated \ 324 | --runstate | --runstat | --runsta | --runst \ 325 | --runs | --run | --ru) 326 ac_prev=runstatedir ;; 327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 329 | --runs=* | --run=* | --ru=*) 330 runstatedir=$ac_optarg ;; 331 332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 333 ac_prev=mandir ;; 334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 335 mandir=$ac_optarg ;; 336 337 -nfp | --nfp | --nf) 338 # Obsolete; use --without-fp. 339 with_fp=no ;; 340 341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 342 | --no-cr | --no-c) 343 no_create=yes ;; 344 345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 347 no_recursion=yes ;; 348 349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 351 | --oldin | --oldi | --old | --ol | --o) 352 ac_prev=oldincludedir ;; 353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 356 oldincludedir=$ac_optarg ;; 357 358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 359 ac_prev=prefix ;; 360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 361 prefix=$ac_optarg ;; 362 363 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 364 | --program-pre | --program-pr | --program-p) 365 ac_prev=program_prefix ;; 366 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 368 program_prefix=$ac_optarg ;; 369 370 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 371 | --program-suf | --program-su | --program-s) 372 ac_prev=program_suffix ;; 373 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 375 program_suffix=$ac_optarg ;; 376 377 -program-transform-name | --program-transform-name \ 378 | --program-transform-nam | --program-transform-na \ 379 | --program-transform-n | --program-transform- \ 380 | --program-transform | --program-transfor \ 381 | --program-transfo | --program-transf \ 382 | --program-trans | --program-tran \ 383 | --progr-tra | --program-tr | --program-t) 384 ac_prev=program_transform_name ;; 385 -program-transform-name=* | --program-transform-name=* \ 386 | --program-transform-nam=* | --program-transform-na=* \ 387 | --program-transform-n=* | --program-transform-=* \ 388 | --program-transform=* | --program-transfor=* \ 389 | --program-transfo=* | --program-transf=* \ 390 | --program-trans=* | --program-tran=* \ 391 | --progr-tra=* | --program-tr=* | --program-t=*) 392 program_transform_name=$ac_optarg ;; 393 394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 395 | -silent | --silent | --silen | --sile | --sil) 396 silent=yes ;; 397 398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 399 ac_prev=sbindir ;; 400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 401 | --sbi=* | --sb=*) 402 sbindir=$ac_optarg ;; 403 404 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 406 | --sharedst | --shareds | --shared | --share | --shar \ 407 | --sha | --sh) 408 ac_prev=sharedstatedir ;; 409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 412 | --sha=* | --sh=*) 413 sharedstatedir=$ac_optarg ;; 414 415 -site | --site | --sit) 416 ac_prev=site ;; 417 -site=* | --site=* | --sit=*) 418 site=$ac_optarg ;; 419 420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 421 ac_prev=srcdir ;; 422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 423 srcdir=$ac_optarg ;; 424 425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 426 | --syscon | --sysco | --sysc | --sys | --sy) 427 ac_prev=sysconfdir ;; 428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 430 sysconfdir=$ac_optarg ;; 431 432 -target | --target | --targe | --targ | --tar | --ta | --t) 433 ac_prev=target_alias ;; 434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 435 target_alias=$ac_optarg ;; 436 437 -v | -verbose | --verbose | --verbos | --verbo | --verb) 438 verbose=yes ;; 439 440 -version | --version | --versio | --versi | --vers | -V) 441 ac_init_version=: ;; 442 443 -with-* | --with-*) 444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 445 # Reject names that are not valid shell variable names. 446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 447 { echo "$as_me: error: invalid package name: $ac_package" >&2 448 { (exit 1); exit 1; }; } 449 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 450 case "$ac_option" in 451 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 452 *) ac_optarg=yes ;; 453 esac 454 eval "with_$ac_package='$ac_optarg'" ;; 455 456 -without-* | --without-*) 457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 458 # Reject names that are not valid shell variable names. 459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 460 { echo "$as_me: error: invalid package name: $ac_package" >&2 461 { (exit 1); exit 1; }; } 462 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 463 eval "with_$ac_package=no" ;; 464 465 --x) 466 # Obsolete; use --with-x. 467 with_x=yes ;; 468 469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 470 | --x-incl | --x-inc | --x-in | --x-i) 471 ac_prev=x_includes ;; 472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 474 x_includes=$ac_optarg ;; 475 476 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 478 ac_prev=x_libraries ;; 479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 481 x_libraries=$ac_optarg ;; 482 483 -*) { echo "$as_me: error: unrecognized option: $ac_option 484Try \`$0 --help' for more information." >&2 485 { (exit 1); exit 1; }; } 486 ;; 487 488 *=*) 489 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 490 # Reject names that are not valid shell variable names. 491 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 492 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 493 { (exit 1); exit 1; }; } 494 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 495 eval "$ac_envvar='$ac_optarg'" 496 export "$ac_envvar" ;; 497 498 *) 499 # FIXME: should be removed in autoconf 3.0. 500 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 501 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 502 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 503 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 504 ;; 505 506 esac 507done 508 509if test -n "$ac_prev"; then 510 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 511 { echo "$as_me: error: missing argument to $ac_option" >&2 512 { (exit 1); exit 1; }; } 513fi 514 515# Be sure to have absolute paths. 516for ac_var in exec_prefix prefix 517do 518 eval ac_val=$`echo "$ac_var"` 519 case "$ac_val" in 520 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 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# Be sure to have absolute paths. 527for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 528 localstatedir libdir includedir oldincludedir infodir mandir 529do 530 eval ac_val=$`echo "$ac_var"` 531 case "$ac_val" in 532 [\\/$]* | ?:[\\/]* ) ;; 533 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 534 { (exit 1); exit 1; }; };; 535 esac 536done 537 538# There might be people who depend on the old broken behavior: `$host' 539# used to hold the argument of --host etc. 540build=$build_alias 541host=$host_alias 542target=$target_alias 543 544# FIXME: should be removed in autoconf 3.0. 545if test "x$host_alias" != x; then 546 if test "x$build_alias" = x; then 547 cross_compiling=maybe 548 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 549 If a cross compiler is detected then cross compile mode will be used." >&2 550 elif test "x$build_alias" != "x$host_alias"; then 551 cross_compiling=yes 552 fi 553fi 554 555ac_tool_prefix= 556test -n "$host_alias" && ac_tool_prefix=$host_alias- 557 558test "$silent" = yes && exec 6>/dev/null 559 560# Find the source files, if location was not specified. 561if test -z "$srcdir"; then 562 ac_srcdir_defaulted=yes 563 # Try the directory containing this script, then its parent. 564 ac_prog=$0 565 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 566 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 567 srcdir=$ac_confdir 568 if test ! -r "$srcdir/$ac_unique_file"; then 569 srcdir=.. 570 fi 571else 572 ac_srcdir_defaulted=no 573fi 574if test ! -r "$srcdir/$ac_unique_file"; then 575 if test "$ac_srcdir_defaulted" = yes; then 576 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 577 { (exit 1); exit 1; }; } 578 else 579 { echo "$as_me: error: cannot find sources in $srcdir" >&2 580 { (exit 1); exit 1; }; } 581 fi 582fi 583srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 584ac_env_build_alias_set=${build_alias+set} 585ac_env_build_alias_value=$build_alias 586ac_cv_env_build_alias_set=${build_alias+set} 587ac_cv_env_build_alias_value=$build_alias 588ac_env_host_alias_set=${host_alias+set} 589ac_env_host_alias_value=$host_alias 590ac_cv_env_host_alias_set=${host_alias+set} 591ac_cv_env_host_alias_value=$host_alias 592ac_env_target_alias_set=${target_alias+set} 593ac_env_target_alias_value=$target_alias 594ac_cv_env_target_alias_set=${target_alias+set} 595ac_cv_env_target_alias_value=$target_alias 596ac_env_CC_set=${CC+set} 597ac_env_CC_value=$CC 598ac_cv_env_CC_set=${CC+set} 599ac_cv_env_CC_value=$CC 600ac_env_CFLAGS_set=${CFLAGS+set} 601ac_env_CFLAGS_value=$CFLAGS 602ac_cv_env_CFLAGS_set=${CFLAGS+set} 603ac_cv_env_CFLAGS_value=$CFLAGS 604ac_env_LDFLAGS_set=${LDFLAGS+set} 605ac_env_LDFLAGS_value=$LDFLAGS 606ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 607ac_cv_env_LDFLAGS_value=$LDFLAGS 608ac_env_CPPFLAGS_set=${CPPFLAGS+set} 609ac_env_CPPFLAGS_value=$CPPFLAGS 610ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 611ac_cv_env_CPPFLAGS_value=$CPPFLAGS 612ac_env_CPP_set=${CPP+set} 613ac_env_CPP_value=$CPP 614ac_cv_env_CPP_set=${CPP+set} 615ac_cv_env_CPP_value=$CPP 616 617# 618# Report the --help message. 619# 620if test "$ac_init_help" = "long"; then 621 # Omit some internal or obsolete options to make the list less imposing. 622 # This message is too long to be a string in the A/UX 3.1 sh. 623 cat <<EOF 624\`configure' configures this package to adapt to many kinds of systems. 625 626Usage: $0 [OPTION]... [VAR=VALUE]... 627 628To assign environment variables (e.g., CC, CFLAGS...), specify them as 629VAR=VALUE. See below for descriptions of some of the useful variables. 630 631Defaults for the options are specified in brackets. 632 633Configuration: 634 -h, --help display this help and exit 635 --help=short display options specific to this package 636 --help=recursive display the short help of all the included packages 637 -V, --version display version information and exit 638 -q, --quiet, --silent do not print \`checking...' messages 639 --cache-file=FILE cache test results in FILE [disabled] 640 -C, --config-cache alias for \`--cache-file=config.cache' 641 -n, --no-create do not create output files 642 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 643 644EOF 645 646 cat <<EOF 647Installation directories: 648 --prefix=PREFIX install architecture-independent files in PREFIX 649 [$ac_default_prefix] 650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 651 [PREFIX] 652 653By default, \`make install' will install all the files in 654\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 655an installation prefix other than \`$ac_default_prefix' using \`--prefix', 656for instance \`--prefix=\$HOME'. 657 658For better control, use the options below. 659 660Fine tuning of the installation directories: 661 --bindir=DIR user executables [EPREFIX/bin] 662 --sbindir=DIR system admin executables [EPREFIX/sbin] 663 --libexecdir=DIR program executables [EPREFIX/libexec] 664 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 668 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 669 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 670 --libdir=DIR object code libraries [EPREFIX/lib] 671 --includedir=DIR C header files [PREFIX/include] 672 --oldincludedir=DIR C header files for non-gcc [/usr/include] 673 --infodir=DIR info documentation [DATAROOTDIR/info] 674 --mandir=DIR man documentation [DATAROOTDIR/man] 675EOF 676 677 cat <<\EOF 678 679Program names: 680 --program-prefix=PREFIX prepend PREFIX to installed program names 681 --program-suffix=SUFFIX append SUFFIX to installed program names 682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 683 684X features: 685 --x-includes=DIR X include files are in DIR 686 --x-libraries=DIR X library files are in DIR 687 688System types: 689 --build=BUILD configure for building on BUILD [guessed] 690 --host=HOST build programs to run on HOST [BUILD] 691EOF 692fi 693 694if test -n "$ac_init_help"; then 695 696 cat <<\EOF 697 698Optional Features: 699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 701 702Optional Packages: 703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 705 706Compile/Install Options: 707 --disable-full-tgetent disable check for full tgetent function 708 --with-app-class=XXX override X applications class (default XTerm) 709 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 710 --with-icon-name=XXXX override icon name (default: mini.xterm) 711 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm) 712 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 713 --with-icondir=DIR directory in which to install icons for desktop 714 --with-icon-theme=XXX install icons into desktop theme (hicolor) 715 --disable-desktop disable install of xterm desktop files 716 --with-desktop-category=XXX one or more desktop catgories or auto 717 --with-reference=XXX program to use as permissions-reference 718 --with-xterm-symlink=XXX make symbolic link to installed xterm 719 --disable-openpty disable openpty, prefer other interfaces 720 --disable-setuid disable setuid in xterm, do not install setuid/setgid 721 --disable-setgid disable setgid in xterm, do not install setuid/setgid 722 --with-setuid=XXX use the given setuid user 723 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 724 --with-utempter use utempter library for access to utmp 725 --with-tty-group=XXX use XXX for the tty-group 726 --with-x use the X Window System 727 --with-pkg-config{=path} enable/disable use of pkg-config 728 --with-xpm=DIR use Xpm library for colored icon, may specify path 729 --without-xinerama do not use Xinerama extension for multiscreen support 730 --with-Xaw3d link with Xaw 3d library 731 --with-Xaw3dxft link with Xaw 3d xft library 732 --with-neXtaw link with neXT Athena library 733 --with-XawPlus link with Athena-Plus library 734 --disable-xcursor disable cursorTheme resource 735 --enable-narrowproto enable narrow prototypes for X libraries 736 --disable-imake disable use of imake for definitions 737 --with-man2html=XXX use XXX rather than groff 738Terminal Configuration: 739 --with-terminal-id=V set default decTerminalID (default: vt420) 740 --with-terminal-type=T set default $TERM (default: xterm) 741 --enable-backarrow-key set default backarrowKey resource (default: true) 742 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 743 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 744 --enable-pty-erase set default ptyInitialErase resource (default: maybe) 745 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 746 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 747 --with-own-terminfo=P set default $TERMINFO (default: from environment) 748 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value 749Optional Features: 750 --disable-active-icon disable X11R6.3 active-icon feature 751 --disable-ansi-color disable ANSI color 752 --disable-16-color disable 16-color support 753 --disable-256-color disable 256-color support 754 --disable-direct-color disable direct-color support 755 --disable-88-color disable 88-color support 756 --disable-blink-cursor disable support for blinking cursor 757 --enable-broken-osc allow broken Linux OSC-strings 758 --disable-broken-st disallow broken string-terminators 759 --enable-builtin-xpms compile-in icon data 760 --disable-c1-print disallow -k8 option for printable 128-159 761 --disable-bold-color disable PC-style mapping of bold colors 762 --disable-color-class disable separate color class resources 763 --disable-color-mode disable default colorMode resource 764 --disable-highlighting disable support for color highlighting 765 --disable-doublechars disable support for double-size chars 766 --disable-boxchars disable fallback-support for box chars 767 --disable-exec-selection disable "exec-formatted" and "exec-selection" actions 768 --enable-exec-xterm enable "spawn-new-terminal" action 769 --enable-double-buffer enable double-buffering in default resources 770 --disable-freetype disable freetype library-support 771 --with-freetype-config configure script to use for FreeType 772 --with-freetype-cflags -D/-I options for compiling with FreeType 773 --with-freetype-libs -L/-l options to link FreeType 774 --enable-hp-fkeys enable support for HP-style function keys 775 --enable-sco-fkeys enable support for SCO-style function keys 776 --disable-sun-fkeys disable support for Sun-style function keys 777 --disable-fifo-lines disable FIFO-storage for saved-lines 778 --disable-i18n disable internationalization 779 --disable-initial-erase disable setup for stty erase 780 --disable-input-method disable input-method 781 --enable-load-vt-fonts enable load-vt-fonts() action 782 --enable-logging enable logging 783 --enable-logfile-exec enable exec'd logfile filter 784 --disable-maximize disable actions for iconify/deiconify/maximize/restore 785 --disable-num-lock disable NumLock keypad support 786 --disable-paste64 disable get/set base64 selection data 787 --disable-pty-handshake disable pty-handshake support 788 --disable-readline-mouse disable support for mouse in readline applications 789 --disable-regex disable regular-expression selections 790 --with-pcre2 use PCRE2 for regular-expressions 791 --with-pcre use PCRE for regular-expressions 792 --disable-rightbar disable right-scrollbar support 793 --disable-samename disable check for redundant name-change 794 --disable-selection-ops disable selection-action operations 795 --disable-session-mgt disable support for session management 796 --enable-status-line enable support for status-line 797 --disable-tcap-fkeys disable termcap function-keys support 798 --disable-tcap-query disable compiled-in termcap-query support 799 --disable-tek4014 disable tek4014 emulation 800 --enable-toolbar compile-in toolbar for pulldown menus 801 --disable-vt52 disable VT52 emulation 802 --disable-wide-attrs disable wide-attribute support 803 --disable-wide-chars disable wide-character support 804 --enable-16bit-chars enable 16-bit character support 805 --enable-mini-luit enable mini-luit (built-in Latin9 support) 806 --disable-luit enable luit filter (Unicode translation) 807 --enable-dabbrev enable dynamic-abbreviation support 808 --enable-dec-locator enable DECterm Locator support 809 --disable-screen-dumps disable XHTML and SVG screen dumps 810 --enable-regis-graphics enable ReGIS graphics support 811 --disable-sixel-graphics disable sixel graphics support 812 --disable-print-graphics disable screen dump to sixel support 813 --disable-rectangles disable VT420 rectangle support 814 --disable-ziconbeep disable -ziconbeep option 815Testing/development Options: 816 --enable-trace test: set to enable debugging traces 817 --with-dmalloc test: use Gray Watson's dmalloc library 818 --with-dbmalloc test: use Conor Cahill's dbmalloc library 819 --with-valgrind test: use valgrind 820 --disable-leaks test: free permanent memory, analyze leaks 821 --disable-echo do not display "compiling" commands 822 --enable-xmc-glitch test: enable xmc magic-cookie emulation 823 --enable-warnings test: turn on gcc compiler warnings 824 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics 825 --disable-rpath-hack don't add rpath options for additional libraries 826 827Some influential environment variables: 828 CC C compiler command 829 CFLAGS C compiler flags 830 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 831 nonstandard directory <lib dir> 832 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 833 headers in a nonstandard directory <include dir> 834 CPP C preprocessor 835 836Use these variables to override the choices made by `configure' or to help 837it to find libraries and programs with nonstandard names/locations. 838 839EOF 840fi 841 842if test "$ac_init_help" = "recursive"; then 843 # If there are subdirs, report their specific --help. 844 ac_popdir=`pwd` 845 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 846 cd "$ac_subdir" 847 # A "../" for each directory in /$ac_subdir. 848 ac_dots=`echo "$ac_subdir" | 849 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 850 851 case "$srcdir" in 852 .) # No --srcdir option. We are building in place. 853 ac_sub_srcdir="$srcdir" ;; 854 [\\/]* | ?:[\\/]* ) # Absolute path. 855 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 856 *) # Relative path. 857 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 858 esac 859 860 # Check for guested configure; otherwise get Cygnus style configure. 861 if test -f "$ac_sub_srcdir/configure.gnu"; then 862 echo 863 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 864 elif test -f "$ac_sub_srcdir/configure"; then 865 echo 866 $SHELL "$ac_sub_srcdir/configure" --help=recursive 867 elif test -f "$ac_sub_srcdir/configure.ac" || 868 test -f "$ac_sub_srcdir/configure.in"; then 869 echo 870 "$ac_configure" --help 871 else 872 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 873 fi 874 cd "$ac_popdir" 875 done 876fi 877 878test -n "$ac_init_help" && exit 0 879if "$ac_init_version"; then 880 cat <<\EOF 881 882Copyright 2003-2022,2023 Thomas E. Dickey 883Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 884Free Software Foundation, Inc. 885This configure script is free software; the Free Software Foundation 886gives unlimited permission to copy, distribute and modify it. 887EOF 888 exit 0 889fi 890exec 5>config.log 891cat >&5 <<EOF 892This file contains any messages produced by compilers while 893running configure, to aid debugging if configure makes a mistake. 894 895It was created by $as_me, which was 896generated by GNU Autoconf 2.52.20230114. Invocation command line was 897 898 $ $0 $@ 899 900EOF 901{ 902cat <<_ASUNAME 903## ---------- ## 904## Platform. ## 905## ---------- ## 906 907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 908uname -m = `(uname -m) 2>/dev/null || echo unknown` 909uname -r = `(uname -r) 2>/dev/null || echo unknown` 910uname -s = `(uname -s) 2>/dev/null || echo unknown` 911uname -v = `(uname -v) 2>/dev/null || echo unknown` 912 913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 914/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 915 916/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 917/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 919hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 920/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 921/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 922/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 923 924PATH = $PATH 925 926_ASUNAME 927} >&5 928 929cat >&5 <<EOF 930## ------------ ## 931## Core tests. ## 932## ------------ ## 933 934EOF 935 936# Keep a trace of the command line. 937# Strip out --no-create and --no-recursion so they do not pile up. 938# Also quote any args containing shell meta-characters. 939ac_configure_args= 940ac_sep= 941for ac_arg 942do 943 case "$ac_arg" in 944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 945 | --no-cr | --no-c) ;; 946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 948 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 949 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 950 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 951 ac_sep=" " ;; 952 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 953 ac_sep=" " ;; 954 esac 955 # Get rid of the leading space. 956done 957 958# When interrupted or exit'd, cleanup temporary files, and complete 959# config.log. We remove comments because anyway the quotes in there 960# would cause problems or look ugly. 961trap 'exit_status=$? 962 # Save into config.log some information that might help in debugging. 963 echo >&5 964 echo "## ----------------- ##" >&5 965 echo "## Cache variables. ##" >&5 966 echo "## ----------------- ##" >&5 967 echo >&5 968 # The following way of writing the cache mishandles newlines in values, 969{ 970 (set) 2>&1 | 971 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 972 *ac_space=\ *) 973 sed -n \ 974 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 976 ;; 977 *) 978 sed -n \ 979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 980 ;; 981 esac; 982} >&5 983 sed "/^$/d" confdefs.h >conftest.log 984 if test -s conftest.log; then 985 echo >&5 986 echo "## ------------ ##" >&5 987 echo "## confdefs.h. ##" >&5 988 echo "## ------------ ##" >&5 989 echo >&5 990 cat conftest.log >&5 991 fi 992 (echo; echo) >&5 993 test "$ac_signal" != 0 && 994 echo "$as_me: caught signal $ac_signal" >&5 995 echo "$as_me: exit $exit_status" >&5 996 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 997 exit $exit_status 998 ' 0 999for ac_signal in 1 2 13 15; do 1000 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 1001done 1002ac_signal=0 1003 1004# confdefs.h avoids OS command line length limits that DEFS can exceed. 1005rm -rf conftest* confdefs.h 1006# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1007echo >confdefs.h 1008 1009# Let the site file select an alternate cache file if it wants to. 1010# Prefer explicitly selected file to automatically selected ones. 1011if test -z "$CONFIG_SITE"; then 1012 if test "x$prefix" != xNONE; then 1013 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1014 else 1015 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1016 fi 1017fi 1018for ac_site_file in $CONFIG_SITE; do 1019 if test -r "$ac_site_file"; then 1020 { echo "$as_me:1020: loading site script $ac_site_file" >&5 1021echo "$as_me: loading site script $ac_site_file" >&6;} 1022 cat "$ac_site_file" >&5 1023 . "$ac_site_file" 1024 fi 1025done 1026 1027if test -r "$cache_file"; then 1028 # Some versions of bash will fail to source /dev/null (special 1029 # files actually), so we avoid doing that. 1030 if test -f "$cache_file"; then 1031 { echo "$as_me:1031: loading cache $cache_file" >&5 1032echo "$as_me: loading cache $cache_file" >&6;} 1033 case $cache_file in 1034 [\\/]* | ?:[\\/]* ) . $cache_file;; 1035 *) . ./$cache_file;; 1036 esac 1037 fi 1038else 1039 { echo "$as_me:1039: creating cache $cache_file" >&5 1040echo "$as_me: creating cache $cache_file" >&6;} 1041 >$cache_file 1042fi 1043 1044# Check that the precious variables saved in the cache have kept the same 1045# value. 1046ac_cache_corrupted=false 1047for ac_var in `(set) 2>&1 | 1048 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1049 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1050 eval ac_new_set=\$ac_env_${ac_var}_set 1051 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1052 eval ac_new_val="\$ac_env_${ac_var}_value" 1053 case "$ac_old_set,$ac_new_set" in 1054 set,) 1055 { echo "$as_me:1055: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1056echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1057 ac_cache_corrupted=: ;; 1058 ,set) 1059 { echo "$as_me:1059: error: \`$ac_var' was not set in the previous run" >&5 1060echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1061 ac_cache_corrupted=: ;; 1062 ,);; 1063 *) 1064 if test "x$ac_old_val" != "x$ac_new_val"; then 1065 { echo "$as_me:1065: error: \`$ac_var' has changed since the previous run:" >&5 1066echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1067 { echo "$as_me:1067: former value: $ac_old_val" >&5 1068echo "$as_me: former value: $ac_old_val" >&2;} 1069 { echo "$as_me:1069: current value: $ac_new_val" >&5 1070echo "$as_me: current value: $ac_new_val" >&2;} 1071 ac_cache_corrupted=: 1072 fi;; 1073 esac 1074 # Pass precious variables to config.status. It doesn't matter if 1075 # we pass some twice (in addition to the command line arguments). 1076 if test "$ac_new_set" = set; then 1077 case "$ac_new_val" in 1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1079 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1080 ac_configure_args="$ac_configure_args '$ac_arg'" 1081 ;; 1082 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1083 ;; 1084 esac 1085 fi 1086done 1087if "$ac_cache_corrupted"; then 1088 { echo "$as_me:1088: error: changes in the environment can compromise the build" >&5 1089echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1090 { { echo "$as_me:1090: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1091echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1092 { (exit 1); exit 1; }; } 1093fi 1094 1095ac_ext=c 1096ac_cpp='$CPP $CPPFLAGS' 1097ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1098ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1099ac_compiler_gnu=$ac_cv_c_compiler_gnu 1100ac_main_return="return" 1101 1102case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1103 *c*,-n*) ECHO_N= 1104 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1105 ECHO_T=' ' 1106 ;; 1107 *c*,* ) ECHO_N=-n 1108 ECHO_C= 1109 ECHO_T= 1110 ;; 1111 *) ECHO_N= 1112 ECHO_C='\c' 1113 ECHO_T= 1114 ;; 1115esac 1116echo "#! $SHELL" >conftest.sh 1117echo "exit 0" >>conftest.sh 1118chmod +x conftest.sh 1119if { (echo "$as_me:1119: PATH=\".;.\"; conftest.sh") >&5 1120 (PATH=".;."; conftest.sh) 2>&5 1121 ac_status=$? 1122 echo "$as_me:1122: \$? = $ac_status" >&5 1123 (exit "$ac_status"); }; then 1124 ac_path_separator=';' 1125else 1126 ac_path_separator=: 1127fi 1128PATH_SEPARATOR="$ac_path_separator" 1129rm -f conftest.sh 1130 1131ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1132 1133ac_aux_dir= 1134for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1135 if test -f "$ac_dir/install-sh"; then 1136 ac_aux_dir=$ac_dir 1137 ac_install_sh="$ac_aux_dir/install-sh -c" 1138 break 1139 elif test -f "$ac_dir/install.sh"; then 1140 ac_aux_dir=$ac_dir 1141 ac_install_sh="$ac_aux_dir/install.sh -c" 1142 break 1143 elif test -f "$ac_dir/shtool"; then 1144 ac_aux_dir=$ac_dir 1145 ac_install_sh="$ac_aux_dir/shtool install -c" 1146 break 1147 fi 1148done 1149if test -z "$ac_aux_dir"; then 1150 { { echo "$as_me:1150: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1151echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1152 { (exit 1); exit 1; }; } 1153fi 1154ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1155ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1156ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1157 1158# Make sure we can run config.sub. 1159$ac_config_sub sun4 >/dev/null 2>&1 || 1160 { { echo "$as_me:1160: error: cannot run $ac_config_sub" >&5 1161echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1162 { (exit 1); exit 1; }; } 1163 1164echo "$as_me:1164: checking build system type" >&5 1165echo $ECHO_N "checking build system type... $ECHO_C" >&6 1166if test "${ac_cv_build+set}" = set; then 1167 echo $ECHO_N "(cached) $ECHO_C" >&6 1168else 1169 ac_cv_build_alias=$build_alias 1170test -z "$ac_cv_build_alias" && 1171 ac_cv_build_alias=`$ac_config_guess` 1172test -z "$ac_cv_build_alias" && 1173 { { echo "$as_me:1173: error: cannot guess build type; you must specify one" >&5 1174echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1175 { (exit 1); exit 1; }; } 1176ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1177 { { echo "$as_me:1177: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1178echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1179 { (exit 1); exit 1; }; } 1180 1181fi 1182echo "$as_me:1182: result: $ac_cv_build" >&5 1183echo "${ECHO_T}$ac_cv_build" >&6 1184build=$ac_cv_build 1185build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1186build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1187build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1188 1189if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1190 echo "$as_me:1190: checking host system type" >&5 1191echo $ECHO_N "checking host system type... $ECHO_C" >&6 1192if test "${ac_cv_host+set}" = set; then 1193 echo $ECHO_N "(cached) $ECHO_C" >&6 1194else 1195 ac_cv_host_alias=$host_alias 1196test -z "$ac_cv_host_alias" && 1197 ac_cv_host_alias=$ac_cv_build_alias 1198ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1199 { { echo "$as_me:1199: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1200echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1201 { (exit 1); exit 1; }; } 1202 1203fi 1204echo "$as_me:1204: result: $ac_cv_host" >&5 1205echo "${ECHO_T}$ac_cv_host" >&6 1206host=$ac_cv_host 1207host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1208host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1209host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1210 1211 system_name="$host_os" 1212else 1213 system_name="`(uname -s -r) 2>/dev/null`" 1214 if test -z "$system_name" ; then 1215 system_name="`(hostname) 2>/dev/null`" 1216 fi 1217fi 1218test -n "$system_name" && 1219cat >>confdefs.h <<EOF 1220#define SYSTEM_NAME "$system_name" 1221EOF 1222 1223if test "${cf_cv_system_name+set}" = set; then 1224 echo $ECHO_N "(cached) $ECHO_C" >&6 1225else 1226 cf_cv_system_name="$system_name" 1227fi 1228 1229test -z "$system_name" && system_name="$cf_cv_system_name" 1230test -n "$cf_cv_system_name" && echo "$as_me:1230: result: Configuring for $cf_cv_system_name" >&5 1231echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1232 1233if test ".$system_name" != ".$cf_cv_system_name" ; then 1234 echo "$as_me:1234: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1235echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1236 { { echo "$as_me:1236: error: \"Please remove config.cache and try again.\"" >&5 1237echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1238 { (exit 1); exit 1; }; } 1239fi 1240 1241### checks for alternative programs 1242 1243case "$host_os" in 1244(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 1245 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 1246 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 1247 : "${CC=c89}";; 1248(darwin*) 1249 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 1250esac 1251 1252ac_ext=c 1253ac_cpp='$CPP $CPPFLAGS' 1254ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1255ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1256ac_compiler_gnu=$ac_cv_c_compiler_gnu 1257ac_main_return="return" 1258if test -n "$ac_tool_prefix"; then 1259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1260set dummy ${ac_tool_prefix}gcc; ac_word=$2 1261echo "$as_me:1261: checking for $ac_word" >&5 1262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1263if test "${ac_cv_prog_CC+set}" = set; then 1264 echo $ECHO_N "(cached) $ECHO_C" >&6 1265else 1266 if test -n "$CC"; then 1267 ac_cv_prog_CC="$CC" # Let the user override the test. 1268else 1269 ac_save_IFS=$IFS; IFS=$ac_path_separator 1270ac_dummy="$PATH" 1271for ac_dir in $ac_dummy; do 1272 IFS=$ac_save_IFS 1273 test -z "$ac_dir" && ac_dir=. 1274 $as_executable_p "$ac_dir/$ac_word" || continue 1275ac_cv_prog_CC="${ac_tool_prefix}gcc" 1276echo "$as_me:1276: found $ac_dir/$ac_word" >&5 1277break 1278done 1279 1280fi 1281fi 1282CC=$ac_cv_prog_CC 1283if test -n "$CC"; then 1284 echo "$as_me:1284: result: $CC" >&5 1285echo "${ECHO_T}$CC" >&6 1286else 1287 echo "$as_me:1287: result: no" >&5 1288echo "${ECHO_T}no" >&6 1289fi 1290 1291fi 1292if test -z "$ac_cv_prog_CC"; then 1293 ac_ct_CC=$CC 1294 # Extract the first word of "gcc", so it can be a program name with args. 1295set dummy gcc; ac_word=$2 1296echo "$as_me:1296: checking for $ac_word" >&5 1297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1298if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1299 echo $ECHO_N "(cached) $ECHO_C" >&6 1300else 1301 if test -n "$ac_ct_CC"; then 1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1303else 1304 ac_save_IFS=$IFS; IFS=$ac_path_separator 1305ac_dummy="$PATH" 1306for ac_dir in $ac_dummy; do 1307 IFS=$ac_save_IFS 1308 test -z "$ac_dir" && ac_dir=. 1309 $as_executable_p "$ac_dir/$ac_word" || continue 1310ac_cv_prog_ac_ct_CC="gcc" 1311echo "$as_me:1311: found $ac_dir/$ac_word" >&5 1312break 1313done 1314 1315fi 1316fi 1317ac_ct_CC=$ac_cv_prog_ac_ct_CC 1318if test -n "$ac_ct_CC"; then 1319 echo "$as_me:1319: result: $ac_ct_CC" >&5 1320echo "${ECHO_T}$ac_ct_CC" >&6 1321else 1322 echo "$as_me:1322: result: no" >&5 1323echo "${ECHO_T}no" >&6 1324fi 1325 1326 CC=$ac_ct_CC 1327else 1328 CC="$ac_cv_prog_CC" 1329fi 1330 1331if test -z "$CC"; then 1332 if test -n "$ac_tool_prefix"; then 1333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1334set dummy ${ac_tool_prefix}cc; ac_word=$2 1335echo "$as_me:1335: checking for $ac_word" >&5 1336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1337if test "${ac_cv_prog_CC+set}" = set; then 1338 echo $ECHO_N "(cached) $ECHO_C" >&6 1339else 1340 if test -n "$CC"; then 1341 ac_cv_prog_CC="$CC" # Let the user override the test. 1342else 1343 ac_save_IFS=$IFS; IFS=$ac_path_separator 1344ac_dummy="$PATH" 1345for ac_dir in $ac_dummy; do 1346 IFS=$ac_save_IFS 1347 test -z "$ac_dir" && ac_dir=. 1348 $as_executable_p "$ac_dir/$ac_word" || continue 1349ac_cv_prog_CC="${ac_tool_prefix}cc" 1350echo "$as_me:1350: found $ac_dir/$ac_word" >&5 1351break 1352done 1353 1354fi 1355fi 1356CC=$ac_cv_prog_CC 1357if test -n "$CC"; then 1358 echo "$as_me:1358: result: $CC" >&5 1359echo "${ECHO_T}$CC" >&6 1360else 1361 echo "$as_me:1361: result: no" >&5 1362echo "${ECHO_T}no" >&6 1363fi 1364 1365fi 1366if test -z "$ac_cv_prog_CC"; then 1367 ac_ct_CC=$CC 1368 # Extract the first word of "cc", so it can be a program name with args. 1369set dummy cc; ac_word=$2 1370echo "$as_me:1370: checking for $ac_word" >&5 1371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1372if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1373 echo $ECHO_N "(cached) $ECHO_C" >&6 1374else 1375 if test -n "$ac_ct_CC"; then 1376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1377else 1378 ac_save_IFS=$IFS; IFS=$ac_path_separator 1379ac_dummy="$PATH" 1380for ac_dir in $ac_dummy; do 1381 IFS=$ac_save_IFS 1382 test -z "$ac_dir" && ac_dir=. 1383 $as_executable_p "$ac_dir/$ac_word" || continue 1384ac_cv_prog_ac_ct_CC="cc" 1385echo "$as_me:1385: found $ac_dir/$ac_word" >&5 1386break 1387done 1388 1389fi 1390fi 1391ac_ct_CC=$ac_cv_prog_ac_ct_CC 1392if test -n "$ac_ct_CC"; then 1393 echo "$as_me:1393: result: $ac_ct_CC" >&5 1394echo "${ECHO_T}$ac_ct_CC" >&6 1395else 1396 echo "$as_me:1396: result: no" >&5 1397echo "${ECHO_T}no" >&6 1398fi 1399 1400 CC=$ac_ct_CC 1401else 1402 CC="$ac_cv_prog_CC" 1403fi 1404 1405fi 1406if test -z "$CC"; then 1407 # Extract the first word of "cc", so it can be a program name with args. 1408set dummy cc; ac_word=$2 1409echo "$as_me:1409: checking for $ac_word" >&5 1410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1411if test "${ac_cv_prog_CC+set}" = set; then 1412 echo $ECHO_N "(cached) $ECHO_C" >&6 1413else 1414 if test -n "$CC"; then 1415 ac_cv_prog_CC="$CC" # Let the user override the test. 1416else 1417 ac_prog_rejected=no 1418 ac_save_IFS=$IFS; IFS=$ac_path_separator 1419ac_dummy="$PATH" 1420for ac_dir in $ac_dummy; do 1421 IFS=$ac_save_IFS 1422 test -z "$ac_dir" && ac_dir=. 1423 $as_executable_p "$ac_dir/$ac_word" || continue 1424if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1425 ac_prog_rejected=yes 1426 continue 1427fi 1428ac_cv_prog_CC="cc" 1429echo "$as_me:1429: found $ac_dir/$ac_word" >&5 1430break 1431done 1432 1433if test "$ac_prog_rejected" = yes; then 1434 # We found a bogon in the path, so make sure we never use it. 1435 set dummy $ac_cv_prog_CC 1436 shift 1437 if test $# != 0; then 1438 # We chose a different compiler from the bogus one. 1439 # However, it has the same basename, so the bogon will be chosen 1440 # first if we set CC to just the basename; use the full file name. 1441 shift 1442 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1443 shift 1444 ac_cv_prog_CC="$@" 1445 fi 1446fi 1447fi 1448fi 1449CC=$ac_cv_prog_CC 1450if test -n "$CC"; then 1451 echo "$as_me:1451: result: $CC" >&5 1452echo "${ECHO_T}$CC" >&6 1453else 1454 echo "$as_me:1454: result: no" >&5 1455echo "${ECHO_T}no" >&6 1456fi 1457 1458fi 1459if test -z "$CC"; then 1460 if test -n "$ac_tool_prefix"; then 1461 for ac_prog in cl 1462 do 1463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1464set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1465echo "$as_me:1465: checking for $ac_word" >&5 1466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1467if test "${ac_cv_prog_CC+set}" = set; then 1468 echo $ECHO_N "(cached) $ECHO_C" >&6 1469else 1470 if test -n "$CC"; then 1471 ac_cv_prog_CC="$CC" # Let the user override the test. 1472else 1473 ac_save_IFS=$IFS; IFS=$ac_path_separator 1474ac_dummy="$PATH" 1475for ac_dir in $ac_dummy; do 1476 IFS=$ac_save_IFS 1477 test -z "$ac_dir" && ac_dir=. 1478 $as_executable_p "$ac_dir/$ac_word" || continue 1479ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1480echo "$as_me:1480: found $ac_dir/$ac_word" >&5 1481break 1482done 1483 1484fi 1485fi 1486CC=$ac_cv_prog_CC 1487if test -n "$CC"; then 1488 echo "$as_me:1488: result: $CC" >&5 1489echo "${ECHO_T}$CC" >&6 1490else 1491 echo "$as_me:1491: result: no" >&5 1492echo "${ECHO_T}no" >&6 1493fi 1494 1495 test -n "$CC" && break 1496 done 1497fi 1498if test -z "$CC"; then 1499 ac_ct_CC=$CC 1500 for ac_prog in cl 1501do 1502 # Extract the first word of "$ac_prog", so it can be a program name with args. 1503set dummy $ac_prog; ac_word=$2 1504echo "$as_me:1504: checking for $ac_word" >&5 1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1507 echo $ECHO_N "(cached) $ECHO_C" >&6 1508else 1509 if test -n "$ac_ct_CC"; then 1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1511else 1512 ac_save_IFS=$IFS; IFS=$ac_path_separator 1513ac_dummy="$PATH" 1514for ac_dir in $ac_dummy; do 1515 IFS=$ac_save_IFS 1516 test -z "$ac_dir" && ac_dir=. 1517 $as_executable_p "$ac_dir/$ac_word" || continue 1518ac_cv_prog_ac_ct_CC="$ac_prog" 1519echo "$as_me:1519: found $ac_dir/$ac_word" >&5 1520break 1521done 1522 1523fi 1524fi 1525ac_ct_CC=$ac_cv_prog_ac_ct_CC 1526if test -n "$ac_ct_CC"; then 1527 echo "$as_me:1527: result: $ac_ct_CC" >&5 1528echo "${ECHO_T}$ac_ct_CC" >&6 1529else 1530 echo "$as_me:1530: result: no" >&5 1531echo "${ECHO_T}no" >&6 1532fi 1533 1534 test -n "$ac_ct_CC" && break 1535done 1536 1537 CC=$ac_ct_CC 1538fi 1539 1540fi 1541 1542test -z "$CC" && { { echo "$as_me:1542: error: no acceptable cc found in \$PATH" >&5 1543echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1544 { (exit 1); exit 1; }; } 1545 1546# Provide some information about the compiler. 1547echo "$as_me:1547:" \ 1548 "checking for C compiler version" >&5 1549ac_compiler=`set X $ac_compile; echo "$2"` 1550{ (eval echo "$as_me:1550: \"$ac_compiler --version </dev/null >&5\"") >&5 1551 (eval $ac_compiler --version </dev/null >&5) 2>&5 1552 ac_status=$? 1553 echo "$as_me:1553: \$? = $ac_status" >&5 1554 (exit "$ac_status"); } 1555{ (eval echo "$as_me:1555: \"$ac_compiler -v </dev/null >&5\"") >&5 1556 (eval $ac_compiler -v </dev/null >&5) 2>&5 1557 ac_status=$? 1558 echo "$as_me:1558: \$? = $ac_status" >&5 1559 (exit "$ac_status"); } 1560{ (eval echo "$as_me:1560: \"$ac_compiler -V </dev/null >&5\"") >&5 1561 (eval $ac_compiler -V </dev/null >&5) 2>&5 1562 ac_status=$? 1563 echo "$as_me:1563: \$? = $ac_status" >&5 1564 (exit "$ac_status"); } 1565 1566cat >"conftest.$ac_ext" <<_ACEOF 1567#line 1567 "configure" 1568#include "confdefs.h" 1569 1570int 1571main (void) 1572{ 1573 1574 ; 1575 return 0; 1576} 1577_ACEOF 1578ac_clean_files_save=$ac_clean_files 1579ac_clean_files="$ac_clean_files a.out a.exe" 1580# Try to create an executable without -o first, disregard a.out. 1581# It will help us diagnose broken compilers, and finding out an intuition 1582# of exeext. 1583echo "$as_me:1583: checking for C compiler default output" >&5 1584echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1585ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1586if { (eval echo "$as_me:1586: \"$ac_link_default\"") >&5 1587 (eval $ac_link_default) 2>&5 1588 ac_status=$? 1589 echo "$as_me:1589: \$? = $ac_status" >&5 1590 (exit "$ac_status"); }; then 1591 # Find the output, starting from the most likely. This scheme is 1592# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1593# resort. 1594for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1595 ls a.out conftest 2>/dev/null; 1596 ls a.* conftest.* 2>/dev/null`; do 1597 case $ac_file in 1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1599 a.out ) # We found the default executable, but exeext='' is most 1600 # certainly right. 1601 break;; 1602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1603 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1604 export ac_cv_exeext 1605 break;; 1606 * ) break;; 1607 esac 1608done 1609else 1610 echo "$as_me: failed program was:" >&5 1611cat "conftest.$ac_ext" >&5 1612{ { echo "$as_me:1612: error: C compiler cannot create executables" >&5 1613echo "$as_me: error: C compiler cannot create executables" >&2;} 1614 { (exit 77); exit 77; }; } 1615fi 1616 1617ac_exeext=$ac_cv_exeext 1618echo "$as_me:1618: result: $ac_file" >&5 1619echo "${ECHO_T}$ac_file" >&6 1620 1621# Check the compiler produces executables we can run. If not, either 1622# the compiler is broken, or we cross compile. 1623echo "$as_me:1623: checking whether the C compiler works" >&5 1624echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1625# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1626# If not cross compiling, check that we can run a simple program. 1627if test "$cross_compiling" != yes; then 1628 if { ac_try='./$ac_file' 1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5 1630 (eval $ac_try) 2>&5 1631 ac_status=$? 1632 echo "$as_me:1632: \$? = $ac_status" >&5 1633 (exit "$ac_status"); }; }; then 1634 cross_compiling=no 1635 else 1636 if test "$cross_compiling" = maybe; then 1637 cross_compiling=yes 1638 else 1639 { { echo "$as_me:1639: error: cannot run C compiled programs. 1640If you meant to cross compile, use \`--host'." >&5 1641echo "$as_me: error: cannot run C compiled programs. 1642If you meant to cross compile, use \`--host'." >&2;} 1643 { (exit 1); exit 1; }; } 1644 fi 1645 fi 1646fi 1647echo "$as_me:1647: result: yes" >&5 1648echo "${ECHO_T}yes" >&6 1649 1650rm -f a.out a.exe "conftest$ac_cv_exeext" 1651ac_clean_files=$ac_clean_files_save 1652# Check the compiler produces executables we can run. If not, either 1653# the compiler is broken, or we cross compile. 1654echo "$as_me:1654: checking whether we are cross compiling" >&5 1655echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1656echo "$as_me:1656: result: $cross_compiling" >&5 1657echo "${ECHO_T}$cross_compiling" >&6 1658 1659echo "$as_me:1659: checking for executable suffix" >&5 1660echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1661if { (eval echo "$as_me:1661: \"$ac_link\"") >&5 1662 (eval $ac_link) 2>&5 1663 ac_status=$? 1664 echo "$as_me:1664: \$? = $ac_status" >&5 1665 (exit "$ac_status"); }; then 1666 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1667# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1668# work properly (i.e., refer to `conftest.exe'), while it won't with 1669# `rm'. 1670for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1671 case $ac_file in 1672 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1674 export ac_cv_exeext 1675 break;; 1676 * ) break;; 1677 esac 1678done 1679else 1680 { { echo "$as_me:1680: error: cannot compute EXEEXT: cannot compile and link" >&5 1681echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1682 { (exit 1); exit 1; }; } 1683fi 1684 1685rm -f "conftest$ac_cv_exeext" 1686echo "$as_me:1686: result: $ac_cv_exeext" >&5 1687echo "${ECHO_T}$ac_cv_exeext" >&6 1688 1689rm -f "conftest.$ac_ext" 1690EXEEXT=$ac_cv_exeext 1691ac_exeext=$EXEEXT 1692echo "$as_me:1692: checking for object suffix" >&5 1693echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1694if test "${ac_cv_objext+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 cat >"conftest.$ac_ext" <<_ACEOF 1698#line 1698 "configure" 1699#include "confdefs.h" 1700 1701int 1702main (void) 1703{ 1704 1705 ; 1706 return 0; 1707} 1708_ACEOF 1709rm -f conftest.o conftest.obj 1710if { (eval echo "$as_me:1710: \"$ac_compile\"") >&5 1711 (eval $ac_compile) 2>&5 1712 ac_status=$? 1713 echo "$as_me:1713: \$? = $ac_status" >&5 1714 (exit "$ac_status"); }; then 1715 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1716 case $ac_file in 1717 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1718 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1719 break;; 1720 esac 1721done 1722else 1723 echo "$as_me: failed program was:" >&5 1724cat "conftest.$ac_ext" >&5 1725{ { echo "$as_me:1725: error: cannot compute OBJEXT: cannot compile" >&5 1726echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1727 { (exit 1); exit 1; }; } 1728fi 1729 1730rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 1731fi 1732echo "$as_me:1732: result: $ac_cv_objext" >&5 1733echo "${ECHO_T}$ac_cv_objext" >&6 1734OBJEXT=$ac_cv_objext 1735ac_objext=$OBJEXT 1736echo "$as_me:1736: checking whether we are using the GNU C compiler" >&5 1737echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1738if test "${ac_cv_c_compiler_gnu+set}" = set; then 1739 echo $ECHO_N "(cached) $ECHO_C" >&6 1740else 1741 cat >"conftest.$ac_ext" <<_ACEOF 1742#line 1742 "configure" 1743#include "confdefs.h" 1744 1745int 1746main (void) 1747{ 1748#ifndef __GNUC__ 1749 choke me 1750#endif 1751 1752 ; 1753 return 0; 1754} 1755_ACEOF 1756rm -f "conftest.$ac_objext" 1757if { (eval echo "$as_me:1757: \"$ac_compile\"") >&5 1758 (eval $ac_compile) 2>&5 1759 ac_status=$? 1760 echo "$as_me:1760: \$? = $ac_status" >&5 1761 (exit "$ac_status"); } && 1762 { ac_try='test -s "conftest.$ac_objext"' 1763 { (eval echo "$as_me:1763: \"$ac_try\"") >&5 1764 (eval $ac_try) 2>&5 1765 ac_status=$? 1766 echo "$as_me:1766: \$? = $ac_status" >&5 1767 (exit "$ac_status"); }; }; then 1768 ac_compiler_gnu=yes 1769else 1770 echo "$as_me: failed program was:" >&5 1771cat "conftest.$ac_ext" >&5 1772ac_compiler_gnu=no 1773fi 1774rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1775ac_cv_c_compiler_gnu=$ac_compiler_gnu 1776 1777fi 1778echo "$as_me:1778: result: $ac_cv_c_compiler_gnu" >&5 1779echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1780GCC=`test $ac_compiler_gnu = yes && echo yes` 1781ac_test_CFLAGS=${CFLAGS+set} 1782ac_save_CFLAGS=$CFLAGS 1783CFLAGS="-g" 1784echo "$as_me:1784: checking whether $CC accepts -g" >&5 1785echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1786if test "${ac_cv_prog_cc_g+set}" = set; then 1787 echo $ECHO_N "(cached) $ECHO_C" >&6 1788else 1789 cat >"conftest.$ac_ext" <<_ACEOF 1790#line 1790 "configure" 1791#include "confdefs.h" 1792 1793int 1794main (void) 1795{ 1796 1797 ; 1798 return 0; 1799} 1800_ACEOF 1801rm -f "conftest.$ac_objext" 1802if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5 1803 (eval $ac_compile) 2>&5 1804 ac_status=$? 1805 echo "$as_me:1805: \$? = $ac_status" >&5 1806 (exit "$ac_status"); } && 1807 { ac_try='test -s "conftest.$ac_objext"' 1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5 1809 (eval $ac_try) 2>&5 1810 ac_status=$? 1811 echo "$as_me:1811: \$? = $ac_status" >&5 1812 (exit "$ac_status"); }; }; then 1813 ac_cv_prog_cc_g=yes 1814else 1815 echo "$as_me: failed program was:" >&5 1816cat "conftest.$ac_ext" >&5 1817ac_cv_prog_cc_g=no 1818fi 1819rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1820fi 1821echo "$as_me:1821: result: $ac_cv_prog_cc_g" >&5 1822echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1823if test "$ac_test_CFLAGS" = set; then 1824 CFLAGS=$ac_save_CFLAGS 1825elif test $ac_cv_prog_cc_g = yes; then 1826 if test "$GCC" = yes; then 1827 CFLAGS="-g -O2" 1828 else 1829 CFLAGS="-g" 1830 fi 1831else 1832 if test "$GCC" = yes; then 1833 CFLAGS="-O2" 1834 else 1835 CFLAGS= 1836 fi 1837fi 1838# Some people use a C++ compiler to compile C. Since we use `exit', 1839# in C++ we need to declare it. In case someone uses the same compiler 1840# for both compiling C and C++ we need to have the C++ compiler decide 1841# the declaration of exit, since it's the most demanding environment. 1842cat >"conftest.$ac_ext" <<_ACEOF 1843#ifndef __cplusplus 1844 choke me 1845#endif 1846_ACEOF 1847rm -f "conftest.$ac_objext" 1848if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5 1849 (eval $ac_compile) 2>&5 1850 ac_status=$? 1851 echo "$as_me:1851: \$? = $ac_status" >&5 1852 (exit "$ac_status"); } && 1853 { ac_try='test -s "conftest.$ac_objext"' 1854 { (eval echo "$as_me:1854: \"$ac_try\"") >&5 1855 (eval $ac_try) 2>&5 1856 ac_status=$? 1857 echo "$as_me:1857: \$? = $ac_status" >&5 1858 (exit "$ac_status"); }; }; then 1859 for ac_declaration in \ 1860 ''\ 1861 '#include <stdlib.h>' \ 1862 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1863 'extern "C" void std::exit (int); using std::exit;' \ 1864 'extern "C" void exit (int) throw ();' \ 1865 'extern "C" void exit (int);' \ 1866 'void exit (int);' 1867do 1868 cat >"conftest.$ac_ext" <<_ACEOF 1869#line 1869 "configure" 1870#include "confdefs.h" 1871#include <stdlib.h> 1872$ac_declaration 1873int 1874main (void) 1875{ 1876exit (42); 1877 ; 1878 return 0; 1879} 1880_ACEOF 1881rm -f "conftest.$ac_objext" 1882if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5 1883 (eval $ac_compile) 2>&5 1884 ac_status=$? 1885 echo "$as_me:1885: \$? = $ac_status" >&5 1886 (exit "$ac_status"); } && 1887 { ac_try='test -s "conftest.$ac_objext"' 1888 { (eval echo "$as_me:1888: \"$ac_try\"") >&5 1889 (eval $ac_try) 2>&5 1890 ac_status=$? 1891 echo "$as_me:1891: \$? = $ac_status" >&5 1892 (exit "$ac_status"); }; }; then 1893 : 1894else 1895 echo "$as_me: failed program was:" >&5 1896cat "conftest.$ac_ext" >&5 1897continue 1898fi 1899rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1900 cat >"conftest.$ac_ext" <<_ACEOF 1901#line 1901 "configure" 1902#include "confdefs.h" 1903$ac_declaration 1904int 1905main (void) 1906{ 1907exit (42); 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912rm -f "conftest.$ac_objext" 1913if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5 1914 (eval $ac_compile) 2>&5 1915 ac_status=$? 1916 echo "$as_me:1916: \$? = $ac_status" >&5 1917 (exit "$ac_status"); } && 1918 { ac_try='test -s "conftest.$ac_objext"' 1919 { (eval echo "$as_me:1919: \"$ac_try\"") >&5 1920 (eval $ac_try) 2>&5 1921 ac_status=$? 1922 echo "$as_me:1922: \$? = $ac_status" >&5 1923 (exit "$ac_status"); }; }; then 1924 break 1925else 1926 echo "$as_me: failed program was:" >&5 1927cat "conftest.$ac_ext" >&5 1928fi 1929rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1930done 1931rm -rf conftest* 1932if test -n "$ac_declaration"; then 1933 echo '#ifdef __cplusplus' >>confdefs.h 1934 echo "$ac_declaration" >>confdefs.h 1935 echo '#endif' >>confdefs.h 1936fi 1937 1938else 1939 echo "$as_me: failed program was:" >&5 1940cat "conftest.$ac_ext" >&5 1941fi 1942rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1943ac_ext=c 1944ac_cpp='$CPP $CPPFLAGS' 1945ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1946ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 1948ac_main_return="return" 1949 1950GCC_VERSION=none 1951if test "$GCC" = yes ; then 1952 echo "$as_me:1952: checking version of $CC" >&5 1953echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1954 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.].*//'`" 1955 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1956 echo "$as_me:1956: result: $GCC_VERSION" >&5 1957echo "${ECHO_T}$GCC_VERSION" >&6 1958fi 1959 1960INTEL_COMPILER=no 1961 1962if test "$GCC" = yes ; then 1963 case "$host_os" in 1964 (linux*|gnu*) 1965 echo "$as_me:1965: checking if this is really Intel C compiler" >&5 1966echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 1967 cf_save_CFLAGS="$CFLAGS" 1968 CFLAGS="$CFLAGS -no-gcc" 1969 cat >"conftest.$ac_ext" <<_ACEOF 1970#line 1970 "configure" 1971#include "confdefs.h" 1972 1973int 1974main (void) 1975{ 1976 1977#ifdef __INTEL_COMPILER 1978#else 1979#error __INTEL_COMPILER is not defined 1980#endif 1981 1982 ; 1983 return 0; 1984} 1985_ACEOF 1986rm -f "conftest.$ac_objext" 1987if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5 1988 (eval $ac_compile) 2>&5 1989 ac_status=$? 1990 echo "$as_me:1990: \$? = $ac_status" >&5 1991 (exit "$ac_status"); } && 1992 { ac_try='test -s "conftest.$ac_objext"' 1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5 1994 (eval $ac_try) 2>&5 1995 ac_status=$? 1996 echo "$as_me:1996: \$? = $ac_status" >&5 1997 (exit "$ac_status"); }; }; then 1998 INTEL_COMPILER=yes 1999cf_save_CFLAGS="$cf_save_CFLAGS -we147" 2000 2001else 2002 echo "$as_me: failed program was:" >&5 2003cat "conftest.$ac_ext" >&5 2004fi 2005rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2006 CFLAGS="$cf_save_CFLAGS" 2007 echo "$as_me:2007: result: $INTEL_COMPILER" >&5 2008echo "${ECHO_T}$INTEL_COMPILER" >&6 2009 ;; 2010 esac 2011fi 2012 2013CLANG_COMPILER=no 2014 2015if test "$GCC" = yes ; then 2016 echo "$as_me:2016: checking if this is really Clang C compiler" >&5 2017echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2018 cf_save_CFLAGS="$CFLAGS" 2019 cat >"conftest.$ac_ext" <<_ACEOF 2020#line 2020 "configure" 2021#include "confdefs.h" 2022 2023int 2024main (void) 2025{ 2026 2027#ifdef __clang__ 2028#else 2029#error __clang__ is not defined 2030#endif 2031 2032 ; 2033 return 0; 2034} 2035_ACEOF 2036rm -f "conftest.$ac_objext" 2037if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5 2038 (eval $ac_compile) 2>&5 2039 ac_status=$? 2040 echo "$as_me:2040: \$? = $ac_status" >&5 2041 (exit "$ac_status"); } && 2042 { ac_try='test -s "conftest.$ac_objext"' 2043 { (eval echo "$as_me:2043: \"$ac_try\"") >&5 2044 (eval $ac_try) 2>&5 2045 ac_status=$? 2046 echo "$as_me:2046: \$? = $ac_status" >&5 2047 (exit "$ac_status"); }; }; then 2048 CLANG_COMPILER=yes 2049 2050else 2051 echo "$as_me: failed program was:" >&5 2052cat "conftest.$ac_ext" >&5 2053fi 2054rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2055 CFLAGS="$cf_save_CFLAGS" 2056 echo "$as_me:2056: result: $CLANG_COMPILER" >&5 2057echo "${ECHO_T}$CLANG_COMPILER" >&6 2058fi 2059 2060CLANG_VERSION=none 2061 2062if test "x$CLANG_COMPILER" = "xyes" ; then 2063 case "$CC" in 2064 (c[1-9][0-9]|*/c[1-9][0-9]) 2065 { echo "$as_me:2065: WARNING: replacing broken compiler alias $CC" >&5 2066echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2067 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2068 CC=clang 2069 ;; 2070 esac 2071 2072 echo "$as_me:2072: checking version of $CC" >&5 2073echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2074 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2075 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2076 echo "$as_me:2076: result: $CLANG_VERSION" >&5 2077echo "${ECHO_T}$CLANG_VERSION" >&6 2078 2079 for cf_clang_opt in \ 2080 -Qunused-arguments \ 2081 -Wno-error=implicit-function-declaration 2082 do 2083 echo "$as_me:2083: checking if option $cf_clang_opt works" >&5 2084echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2085 cf_save_CFLAGS="$CFLAGS" 2086 CFLAGS="$CFLAGS $cf_clang_opt" 2087 cat >"conftest.$ac_ext" <<_ACEOF 2088#line 2088 "configure" 2089#include "confdefs.h" 2090 2091 #include <stdio.h> 2092int 2093main (void) 2094{ 2095 2096 printf("hello!\\n"); 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2102if { (eval echo "$as_me:2102: \"$ac_link\"") >&5 2103 (eval $ac_link) 2>&5 2104 ac_status=$? 2105 echo "$as_me:2105: \$? = $ac_status" >&5 2106 (exit "$ac_status"); } && 2107 { ac_try='test -s "conftest$ac_exeext"' 2108 { (eval echo "$as_me:2108: \"$ac_try\"") >&5 2109 (eval $ac_try) 2>&5 2110 ac_status=$? 2111 echo "$as_me:2111: \$? = $ac_status" >&5 2112 (exit "$ac_status"); }; }; then 2113 2114 cf_clang_optok=yes 2115else 2116 echo "$as_me: failed program was:" >&5 2117cat "conftest.$ac_ext" >&5 2118 2119 cf_clang_optok=no 2120fi 2121rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2122 echo "$as_me:2122: result: $cf_clang_optok" >&5 2123echo "${ECHO_T}$cf_clang_optok" >&6 2124 CFLAGS="$cf_save_CFLAGS" 2125 if test "$cf_clang_optok" = yes; then 2126 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2127 2128echo "${as_me:-configure}:2128: testing adding option $cf_clang_opt ..." 1>&5 2129 2130 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2131 CFLAGS="${CFLAGS}$cf_clang_opt" 2132 2133 fi 2134 done 2135fi 2136 2137echo "$as_me:2137: checking for $CC option to accept ANSI C" >&5 2138echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2139if test "${ac_cv_prog_cc_stdc+set}" = set; then 2140 echo $ECHO_N "(cached) $ECHO_C" >&6 2141else 2142 ac_cv_prog_cc_stdc=no 2143ac_save_CC=$CC 2144cat >"conftest.$ac_ext" <<_ACEOF 2145#line 2145 "configure" 2146#include "confdefs.h" 2147#include <stdarg.h> 2148#include <stdio.h> 2149#include <sys/types.h> 2150#include <sys/stat.h> 2151/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2152struct buf { int x; }; 2153FILE * (*rcsopen) (struct buf *, struct stat *, int); 2154static char *e (char **p, int i) 2155{ 2156 return p[i]; 2157} 2158static char *f (char * (*g) (char **, int), char **p, ...) 2159{ 2160 char *s; 2161 va_list v; 2162 va_start (v,p); 2163 s = g (p, va_arg (v,int)); 2164 va_end (v); 2165 return s; 2166} 2167int test (int i, double x); 2168struct s1 {int (*f) (int a);}; 2169struct s2 {int (*f) (double a);}; 2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2171int argc; 2172char **argv; 2173int 2174main (void) 2175{ 2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181# Don't try gcc -ansi; that turns off useful extensions and 2182# breaks some systems' header files. 2183# AIX -qlanglvl=ansi 2184# Ultrix and OSF/1 -std1 2185# HP-UX 10.20 and later -Ae 2186# HP-UX older versions -Aa -D_HPUX_SOURCE 2187# SVR4 -Xc -D__EXTENSIONS__ 2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2189do 2190 CC="$ac_save_CC $ac_arg" 2191 rm -f "conftest.$ac_objext" 2192if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5 2193 (eval $ac_compile) 2>&5 2194 ac_status=$? 2195 echo "$as_me:2195: \$? = $ac_status" >&5 2196 (exit "$ac_status"); } && 2197 { ac_try='test -s "conftest.$ac_objext"' 2198 { (eval echo "$as_me:2198: \"$ac_try\"") >&5 2199 (eval $ac_try) 2>&5 2200 ac_status=$? 2201 echo "$as_me:2201: \$? = $ac_status" >&5 2202 (exit "$ac_status"); }; }; then 2203 ac_cv_prog_cc_stdc=$ac_arg 2204break 2205else 2206 echo "$as_me: failed program was:" >&5 2207cat "conftest.$ac_ext" >&5 2208fi 2209rm -f "conftest.$ac_objext" 2210done 2211rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2212CC=$ac_save_CC 2213 2214fi 2215 2216case "x$ac_cv_prog_cc_stdc" in 2217 x|xno) 2218 echo "$as_me:2218: result: none needed" >&5 2219echo "${ECHO_T}none needed" >&6 ;; 2220 *) 2221 echo "$as_me:2221: result: $ac_cv_prog_cc_stdc" >&5 2222echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2223 CC="$CC $ac_cv_prog_cc_stdc" ;; 2224esac 2225 2226# This should have been defined by AC_PROG_CC 2227: "${CC:=cc}" 2228 2229echo "$as_me:2229: checking \$CFLAGS variable" >&5 2230echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2231case "x$CFLAGS" in 2232(*-[IUD]*) 2233 echo "$as_me:2233: result: broken" >&5 2234echo "${ECHO_T}broken" >&6 2235 { echo "$as_me:2235: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2236echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2237 cf_flags="$CFLAGS" 2238 CFLAGS= 2239 for cf_arg in $cf_flags 2240 do 2241 2242cf_fix_cppflags=no 2243cf_new_cflags= 2244cf_new_cppflags= 2245cf_new_extra_cppflags= 2246 2247for cf_add_cflags in $cf_arg 2248do 2249case "$cf_fix_cppflags" in 2250(no) 2251 case "$cf_add_cflags" in 2252 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2253 case "$cf_add_cflags" in 2254 (-D*) 2255 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2256 2257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2258 && test -z "${cf_tst_cflags}" \ 2259 && cf_fix_cppflags=yes 2260 2261 if test "$cf_fix_cppflags" = yes ; then 2262 2263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2265 2266 continue 2267 elif test "${cf_tst_cflags}" = "\"'" ; then 2268 2269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2271 2272 continue 2273 fi 2274 ;; 2275 esac 2276 case "$CPPFLAGS" in 2277 (*$cf_add_cflags) 2278 ;; 2279 (*) 2280 case "$cf_add_cflags" in 2281 (-D*) 2282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2283 2284CPPFLAGS=`echo "$CPPFLAGS" | \ 2285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2287 2288 ;; 2289 esac 2290 2291 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2292 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2293 2294 ;; 2295 esac 2296 ;; 2297 (*) 2298 2299 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2300 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2301 2302 ;; 2303 esac 2304 ;; 2305(yes) 2306 2307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2309 2310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2311 2312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2313 && test -z "${cf_tst_cflags}" \ 2314 && cf_fix_cppflags=no 2315 ;; 2316esac 2317done 2318 2319if test -n "$cf_new_cflags" ; then 2320 2321 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2322 CFLAGS="${CFLAGS}$cf_new_cflags" 2323 2324fi 2325 2326if test -n "$cf_new_cppflags" ; then 2327 2328 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2329 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2330 2331fi 2332 2333if test -n "$cf_new_extra_cppflags" ; then 2334 2335 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2336 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2337 2338fi 2339 2340 done 2341 ;; 2342(*) 2343 echo "$as_me:2343: result: ok" >&5 2344echo "${ECHO_T}ok" >&6 2345 ;; 2346esac 2347 2348echo "$as_me:2348: checking \$CC variable" >&5 2349echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2350case "$CC" in 2351(*[\ \ ]-*) 2352 echo "$as_me:2352: result: broken" >&5 2353echo "${ECHO_T}broken" >&6 2354 { echo "$as_me:2354: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2355echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2356 # humor him... 2357 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2358 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"` 2359 CC="$cf_prog" 2360 for cf_arg in $cf_flags 2361 do 2362 case "x$cf_arg" in 2363 (x-[IUDfgOW]*) 2364 2365cf_fix_cppflags=no 2366cf_new_cflags= 2367cf_new_cppflags= 2368cf_new_extra_cppflags= 2369 2370for cf_add_cflags in $cf_arg 2371do 2372case "$cf_fix_cppflags" in 2373(no) 2374 case "$cf_add_cflags" in 2375 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2376 case "$cf_add_cflags" in 2377 (-D*) 2378 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2379 2380 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2381 && test -z "${cf_tst_cflags}" \ 2382 && cf_fix_cppflags=yes 2383 2384 if test "$cf_fix_cppflags" = yes ; then 2385 2386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2388 2389 continue 2390 elif test "${cf_tst_cflags}" = "\"'" ; then 2391 2392 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2393 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2394 2395 continue 2396 fi 2397 ;; 2398 esac 2399 case "$CPPFLAGS" in 2400 (*$cf_add_cflags) 2401 ;; 2402 (*) 2403 case "$cf_add_cflags" in 2404 (-D*) 2405 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2406 2407CPPFLAGS=`echo "$CPPFLAGS" | \ 2408 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2409 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2410 2411 ;; 2412 esac 2413 2414 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2415 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2416 2417 ;; 2418 esac 2419 ;; 2420 (*) 2421 2422 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2423 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2424 2425 ;; 2426 esac 2427 ;; 2428(yes) 2429 2430 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2431 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2432 2433 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2434 2435 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2436 && test -z "${cf_tst_cflags}" \ 2437 && cf_fix_cppflags=no 2438 ;; 2439esac 2440done 2441 2442if test -n "$cf_new_cflags" ; then 2443 2444 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2445 CFLAGS="${CFLAGS}$cf_new_cflags" 2446 2447fi 2448 2449if test -n "$cf_new_cppflags" ; then 2450 2451 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2452 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2453 2454fi 2455 2456if test -n "$cf_new_extra_cppflags" ; then 2457 2458 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2459 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2460 2461fi 2462 2463 ;; 2464 (*) 2465 CC="$CC $cf_arg" 2466 ;; 2467 esac 2468 done 2469 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2470 2471echo "${as_me:-configure}:2471: testing resulting CC: '$CC' ..." 1>&5 2472 2473 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2474 2475echo "${as_me:-configure}:2475: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2476 2477 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2478 2479echo "${as_me:-configure}:2479: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2480 2481 ;; 2482(*) 2483 echo "$as_me:2483: result: ok" >&5 2484echo "${ECHO_T}ok" >&6 2485 ;; 2486esac 2487 2488for ac_prog in ggrep grep 2489do 2490 # Extract the first word of "$ac_prog", so it can be a program name with args. 2491set dummy $ac_prog; ac_word=$2 2492echo "$as_me:2492: checking for $ac_word" >&5 2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2494if test "${ac_cv_prog_GREP+set}" = set; then 2495 echo $ECHO_N "(cached) $ECHO_C" >&6 2496else 2497 if test -n "$GREP"; then 2498 ac_cv_prog_GREP="$GREP" # Let the user override the test. 2499else 2500 ac_save_IFS=$IFS; IFS=$ac_path_separator 2501ac_dummy="$PATH" 2502for ac_dir in $ac_dummy; do 2503 IFS=$ac_save_IFS 2504 test -z "$ac_dir" && ac_dir=. 2505 $as_executable_p "$ac_dir/$ac_word" || continue 2506ac_cv_prog_GREP="$ac_prog" 2507echo "$as_me:2507: found $ac_dir/$ac_word" >&5 2508break 2509done 2510 2511fi 2512fi 2513GREP=$ac_cv_prog_GREP 2514if test -n "$GREP"; then 2515 echo "$as_me:2515: result: $GREP" >&5 2516echo "${ECHO_T}$GREP" >&6 2517else 2518 echo "$as_me:2518: result: no" >&5 2519echo "${ECHO_T}no" >&6 2520fi 2521 2522 test -n "$GREP" && break 2523done 2524test -n "$GREP" || GREP=": " 2525 2526echo "$as_me:2526: checking for egrep" >&5 2527echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2528if test "${ac_cv_path_EGREP+set}" = set; then 2529 echo $ECHO_N "(cached) $ECHO_C" >&6 2530else 2531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2532 then ac_cv_path_EGREP="$GREP -E" 2533 else 2534 for ac_prog in gegrep egrep 2535do 2536 # Extract the first word of "$ac_prog", so it can be a program name with args. 2537set dummy $ac_prog; ac_word=$2 2538echo "$as_me:2538: checking for $ac_word" >&5 2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2540if test "${ac_cv_path_EGREP+set}" = set; then 2541 echo $ECHO_N "(cached) $ECHO_C" >&6 2542else 2543 case $EGREP in 2544 [\\/]* | ?:[\\/]*) 2545 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 2546 ;; 2547 *) 2548 ac_save_IFS=$IFS; IFS=$ac_path_separator 2549ac_dummy="$PATH" 2550for ac_dir in $ac_dummy; do 2551 IFS=$ac_save_IFS 2552 test -z "$ac_dir" && ac_dir=. 2553 if $as_executable_p "$ac_dir/$ac_word"; then 2554 ac_cv_path_EGREP="$ac_dir/$ac_word" 2555 echo "$as_me:2555: found $ac_dir/$ac_word" >&5 2556 break 2557fi 2558done 2559 2560 ;; 2561esac 2562fi 2563EGREP=$ac_cv_path_EGREP 2564 2565if test -n "$EGREP"; then 2566 echo "$as_me:2566: result: $EGREP" >&5 2567echo "${ECHO_T}$EGREP" >&6 2568else 2569 echo "$as_me:2569: result: no" >&5 2570echo "${ECHO_T}no" >&6 2571fi 2572 2573 test -n "$EGREP" && break 2574done 2575test -n "$EGREP" || EGREP=": " 2576 2577 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2577: error: cannot find workable egrep" >&5 2578echo "$as_me: error: cannot find workable egrep" >&2;} 2579 { (exit 1); exit 1; }; } 2580 fi 2581fi 2582echo "$as_me:2582: result: $ac_cv_path_EGREP" >&5 2583echo "${ECHO_T}$ac_cv_path_EGREP" >&6 2584 EGREP="$ac_cv_path_EGREP" 2585 2586ac_ext=c 2587ac_cpp='$CPP $CPPFLAGS' 2588ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2589ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2590ac_compiler_gnu=$ac_cv_c_compiler_gnu 2591ac_main_return="return" 2592echo "$as_me:2592: checking how to run the C preprocessor" >&5 2593echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2594# On Suns, sometimes $CPP names a directory. 2595if test -n "$CPP" && test -d "$CPP"; then 2596 CPP= 2597fi 2598if test -z "$CPP"; then 2599 if test "${ac_cv_prog_CPP+set}" = set; then 2600 echo $ECHO_N "(cached) $ECHO_C" >&6 2601else 2602 # Double quotes because CPP needs to be expanded 2603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2604 do 2605 ac_preproc_ok=false 2606for ac_c_preproc_warn_flag in '' yes 2607do 2608 # Use a header file that comes with gcc, so configuring glibc 2609 # with a fresh cross-compiler works. 2610 # On the NeXT, cc -E runs the code through the compiler's parser, 2611 # not just through cpp. "Syntax error" is here to catch this case. 2612 cat >"conftest.$ac_ext" <<_ACEOF 2613#line 2613 "configure" 2614#include "confdefs.h" 2615#include <assert.h> 2616 Syntax error 2617_ACEOF 2618if { (eval echo "$as_me:2618: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2619 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2620 ac_status=$? 2621 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2622 rm -f conftest.er1 2623 cat conftest.err >&5 2624 echo "$as_me:2624: \$? = $ac_status" >&5 2625 (exit "$ac_status"); } >/dev/null; then 2626 if test -s conftest.err; then 2627 ac_cpp_err=$ac_c_preproc_warn_flag 2628 else 2629 ac_cpp_err= 2630 fi 2631else 2632 ac_cpp_err=yes 2633fi 2634if test -z "$ac_cpp_err"; then 2635 : 2636else 2637 echo "$as_me: failed program was:" >&5 2638 cat "conftest.$ac_ext" >&5 2639 # Broken: fails on valid input. 2640continue 2641fi 2642rm -f conftest.err "conftest.$ac_ext" 2643 2644 # OK, works on sane cases. Now check whether non-existent headers 2645 # can be detected and how. 2646 cat >"conftest.$ac_ext" <<_ACEOF 2647#line 2647 "configure" 2648#include "confdefs.h" 2649#include <ac_nonexistent.h> 2650_ACEOF 2651if { (eval echo "$as_me:2651: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2652 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2653 ac_status=$? 2654 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2655 rm -f conftest.er1 2656 cat conftest.err >&5 2657 echo "$as_me:2657: \$? = $ac_status" >&5 2658 (exit "$ac_status"); } >/dev/null; then 2659 if test -s conftest.err; then 2660 ac_cpp_err=$ac_c_preproc_warn_flag 2661 else 2662 ac_cpp_err= 2663 fi 2664else 2665 ac_cpp_err=yes 2666fi 2667if test -z "$ac_cpp_err"; then 2668 # Broken: success on invalid input. 2669continue 2670else 2671 echo "$as_me: failed program was:" >&5 2672 cat "conftest.$ac_ext" >&5 2673 # Passes both tests. 2674ac_preproc_ok=: 2675break 2676fi 2677rm -f conftest.err "conftest.$ac_ext" 2678 2679done 2680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2681rm -f conftest.err "conftest.$ac_ext" 2682if $ac_preproc_ok; then 2683 break 2684fi 2685 2686 done 2687 ac_cv_prog_CPP=$CPP 2688 2689fi 2690 CPP=$ac_cv_prog_CPP 2691else 2692 ac_cv_prog_CPP=$CPP 2693fi 2694echo "$as_me:2694: result: $CPP" >&5 2695echo "${ECHO_T}$CPP" >&6 2696ac_preproc_ok=false 2697for ac_c_preproc_warn_flag in '' yes 2698do 2699 # Use a header file that comes with gcc, so configuring glibc 2700 # with a fresh cross-compiler works. 2701 # On the NeXT, cc -E runs the code through the compiler's parser, 2702 # not just through cpp. "Syntax error" is here to catch this case. 2703 cat >"conftest.$ac_ext" <<_ACEOF 2704#line 2704 "configure" 2705#include "confdefs.h" 2706#include <assert.h> 2707 Syntax error 2708_ACEOF 2709if { (eval echo "$as_me:2709: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2710 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2711 ac_status=$? 2712 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2713 rm -f conftest.er1 2714 cat conftest.err >&5 2715 echo "$as_me:2715: \$? = $ac_status" >&5 2716 (exit "$ac_status"); } >/dev/null; then 2717 if test -s conftest.err; then 2718 ac_cpp_err=$ac_c_preproc_warn_flag 2719 else 2720 ac_cpp_err= 2721 fi 2722else 2723 ac_cpp_err=yes 2724fi 2725if test -z "$ac_cpp_err"; then 2726 : 2727else 2728 echo "$as_me: failed program was:" >&5 2729 cat "conftest.$ac_ext" >&5 2730 # Broken: fails on valid input. 2731continue 2732fi 2733rm -f conftest.err "conftest.$ac_ext" 2734 2735 # OK, works on sane cases. Now check whether non-existent headers 2736 # can be detected and how. 2737 cat >"conftest.$ac_ext" <<_ACEOF 2738#line 2738 "configure" 2739#include "confdefs.h" 2740#include <ac_nonexistent.h> 2741_ACEOF 2742if { (eval echo "$as_me:2742: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2743 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2744 ac_status=$? 2745 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2746 rm -f conftest.er1 2747 cat conftest.err >&5 2748 echo "$as_me:2748: \$? = $ac_status" >&5 2749 (exit "$ac_status"); } >/dev/null; then 2750 if test -s conftest.err; then 2751 ac_cpp_err=$ac_c_preproc_warn_flag 2752 else 2753 ac_cpp_err= 2754 fi 2755else 2756 ac_cpp_err=yes 2757fi 2758if test -z "$ac_cpp_err"; then 2759 # Broken: success on invalid input. 2760continue 2761else 2762 echo "$as_me: failed program was:" >&5 2763 cat "conftest.$ac_ext" >&5 2764 # Passes both tests. 2765ac_preproc_ok=: 2766break 2767fi 2768rm -f conftest.err "conftest.$ac_ext" 2769 2770done 2771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2772rm -f conftest.err "conftest.$ac_ext" 2773if $ac_preproc_ok; then 2774 : 2775else 2776 { { echo "$as_me:2776: error: C preprocessor \"$CPP\" fails sanity check" >&5 2777echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2778 { (exit 1); exit 1; }; } 2779fi 2780 2781ac_ext=c 2782ac_cpp='$CPP $CPPFLAGS' 2783ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2784ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2785ac_compiler_gnu=$ac_cv_c_compiler_gnu 2786ac_main_return="return" 2787 2788for ac_prog in mawk gawk nawk awk 2789do 2790 # Extract the first word of "$ac_prog", so it can be a program name with args. 2791set dummy $ac_prog; ac_word=$2 2792echo "$as_me:2792: checking for $ac_word" >&5 2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2794if test "${ac_cv_prog_AWK+set}" = set; then 2795 echo $ECHO_N "(cached) $ECHO_C" >&6 2796else 2797 if test -n "$AWK"; then 2798 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2799else 2800 ac_save_IFS=$IFS; IFS=$ac_path_separator 2801ac_dummy="$PATH" 2802for ac_dir in $ac_dummy; do 2803 IFS=$ac_save_IFS 2804 test -z "$ac_dir" && ac_dir=. 2805 $as_executable_p "$ac_dir/$ac_word" || continue 2806ac_cv_prog_AWK="$ac_prog" 2807echo "$as_me:2807: found $ac_dir/$ac_word" >&5 2808break 2809done 2810 2811fi 2812fi 2813AWK=$ac_cv_prog_AWK 2814if test -n "$AWK"; then 2815 echo "$as_me:2815: result: $AWK" >&5 2816echo "${ECHO_T}$AWK" >&6 2817else 2818 echo "$as_me:2818: result: no" >&5 2819echo "${ECHO_T}no" >&6 2820fi 2821 2822 test -n "$AWK" && break 2823done 2824 2825# Find a good install program. We prefer a C program (faster), 2826# so one script is as good as another. But avoid the broken or 2827# incompatible versions: 2828# SysV /etc/install, /usr/sbin/install 2829# SunOS /usr/etc/install 2830# IRIX /sbin/install 2831# AIX /bin/install 2832# AmigaOS /C/install, which installs bootblocks on floppy discs 2833# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2834# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2835# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2836# ./install, which can be erroneously created by make from ./install.sh. 2837echo "$as_me:2837: checking for a BSD compatible install" >&5 2838echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2839if test -z "$INSTALL"; then 2840if test "${ac_cv_path_install+set}" = set; then 2841 echo $ECHO_N "(cached) $ECHO_C" >&6 2842else 2843 ac_save_IFS=$IFS; IFS=$ac_path_separator 2844 for ac_dir in $PATH; do 2845 IFS=$ac_save_IFS 2846 # Account for people who put trailing slashes in PATH elements. 2847 case $ac_dir/ in 2848 / | ./ | .// | /cC/* \ 2849 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2850 | /usr/ucb/* ) ;; 2851 *) 2852 # OSF1 and SCO ODT 3.0 have their own names for install. 2853 # Don't use installbsd from OSF since it installs stuff as root 2854 # by default. 2855 for ac_prog in ginstall scoinst install; do 2856 if $as_executable_p "$ac_dir/$ac_prog"; then 2857 if test $ac_prog = install && 2858 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2859 # AIX install. It has an incompatible calling convention. 2860 : 2861 elif test $ac_prog = install && 2862 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2863 # program-specific install script used by HP pwplus--don't use. 2864 : 2865 else 2866 ac_cv_path_install="$ac_dir/$ac_prog -c" 2867 break 2 2868 fi 2869 fi 2870 done 2871 ;; 2872 esac 2873 done 2874 2875fi 2876 if test "${ac_cv_path_install+set}" = set; then 2877 INSTALL=$ac_cv_path_install 2878 else 2879 # As a last resort, use the slow shell script. We don't cache a 2880 # path for INSTALL within a source directory, because that will 2881 # break other packages using the cache if that directory is 2882 # removed, or if the path is relative. 2883 INSTALL=$ac_install_sh 2884 fi 2885fi 2886echo "$as_me:2886: result: $INSTALL" >&5 2887echo "${ECHO_T}$INSTALL" >&6 2888 2889# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2890# It thinks the first close brace ends the variable substitution. 2891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2892 2893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2894 2895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2896 2897echo "$as_me:2897: checking whether ln -s works" >&5 2898echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2899LN_S=$as_ln_s 2900if test "$LN_S" = "ln -s"; then 2901 echo "$as_me:2901: result: yes" >&5 2902echo "${ECHO_T}yes" >&6 2903else 2904 echo "$as_me:2904: result: no, using $LN_S" >&5 2905echo "${ECHO_T}no, using $LN_S" >&6 2906fi 2907 2908test "$program_prefix" != NONE && 2909 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2910# Use a double $ so make ignores it. 2911test "$program_suffix" != NONE && 2912 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2913# Double any \ or $. echo might interpret backslashes. 2914# By default was `s,x,x', remove it if useless. 2915cat <<\_ACEOF >conftest.sed 2916s/[\\$]/&&/g;s/;s,x,x,$// 2917_ACEOF 2918program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2919rm conftest.sed 2920 2921for ac_prog in lint cppcheck splint 2922do 2923 # Extract the first word of "$ac_prog", so it can be a program name with args. 2924set dummy $ac_prog; ac_word=$2 2925echo "$as_me:2925: checking for $ac_word" >&5 2926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2927if test "${ac_cv_prog_LINT+set}" = set; then 2928 echo $ECHO_N "(cached) $ECHO_C" >&6 2929else 2930 if test -n "$LINT"; then 2931 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2932else 2933 ac_save_IFS=$IFS; IFS=$ac_path_separator 2934ac_dummy="$PATH" 2935for ac_dir in $ac_dummy; do 2936 IFS=$ac_save_IFS 2937 test -z "$ac_dir" && ac_dir=. 2938 $as_executable_p "$ac_dir/$ac_word" || continue 2939ac_cv_prog_LINT="$ac_prog" 2940echo "$as_me:2940: found $ac_dir/$ac_word" >&5 2941break 2942done 2943 2944fi 2945fi 2946LINT=$ac_cv_prog_LINT 2947if test -n "$LINT"; then 2948 echo "$as_me:2948: result: $LINT" >&5 2949echo "${ECHO_T}$LINT" >&6 2950else 2951 echo "$as_me:2951: result: no" >&5 2952echo "${ECHO_T}no" >&6 2953fi 2954 2955 test -n "$LINT" && break 2956done 2957 2958case "x$LINT" in 2959(xcppcheck|x*/cppcheck) 2960 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" 2961 ;; 2962esac 2963 2964### checks for compiler characteristics 2965 2966echo "$as_me:2966: checking if the POSIX test-macros are already defined" >&5 2967echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 2968if test "${cf_cv_posix_visible+set}" = set; then 2969 echo $ECHO_N "(cached) $ECHO_C" >&6 2970else 2971 2972cat >"conftest.$ac_ext" <<_ACEOF 2973#line 2973 "configure" 2974#include "confdefs.h" 2975#include <stdio.h> 2976int 2977main (void) 2978{ 2979 2980#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 2981 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 2982 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 2983 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 2984#error conflicting symbols found 2985#endif 2986 2987 ; 2988 return 0; 2989} 2990_ACEOF 2991rm -f "conftest.$ac_objext" 2992if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5 2993 (eval $ac_compile) 2>&5 2994 ac_status=$? 2995 echo "$as_me:2995: \$? = $ac_status" >&5 2996 (exit "$ac_status"); } && 2997 { ac_try='test -s "conftest.$ac_objext"' 2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5 2999 (eval $ac_try) 2>&5 3000 ac_status=$? 3001 echo "$as_me:3001: \$? = $ac_status" >&5 3002 (exit "$ac_status"); }; }; then 3003 cf_cv_posix_visible=no 3004else 3005 echo "$as_me: failed program was:" >&5 3006cat "conftest.$ac_ext" >&5 3007cf_cv_posix_visible=yes 3008fi 3009rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3010 3011fi 3012echo "$as_me:3012: result: $cf_cv_posix_visible" >&5 3013echo "${ECHO_T}$cf_cv_posix_visible" >&6 3014 3015if test "$cf_cv_posix_visible" = no; then 3016 3017cf_XOPEN_SOURCE=700 3018cf_POSIX_C_SOURCE=199506L 3019cf_xopen_source= 3020 3021case "$host_os" in 3022(aix[4-7]*) 3023 cf_xopen_source="-D_ALL_SOURCE" 3024 ;; 3025(darwin[0-8].*) 3026 cf_xopen_source="-D_APPLE_C_SOURCE" 3027 ;; 3028(darwin*) 3029 cf_xopen_source="-D_DARWIN_C_SOURCE" 3030 cf_XOPEN_SOURCE= 3031 ;; 3032(freebsd*|dragonfly*|midnightbsd*) 3033 # 5.x headers associate 3034 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3035 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3036 cf_POSIX_C_SOURCE=200112L 3037 cf_XOPEN_SOURCE=600 3038 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3039 ;; 3040(hpux11*) 3041 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3042 ;; 3043(hpux*) 3044 cf_xopen_source="-D_HPUX_SOURCE" 3045 ;; 3046(irix[56].*) 3047 cf_xopen_source="-D_SGI_SOURCE" 3048 cf_XOPEN_SOURCE= 3049 ;; 3050(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys) 3051 3052cf_gnu_xopen_source=$cf_XOPEN_SOURCE 3053 3054echo "$as_me:3054: checking if this is the GNU C library" >&5 3055echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 3056if test "${cf_cv_gnu_library+set}" = set; then 3057 echo $ECHO_N "(cached) $ECHO_C" >&6 3058else 3059 3060cat >"conftest.$ac_ext" <<_ACEOF 3061#line 3061 "configure" 3062#include "confdefs.h" 3063#include <sys/types.h> 3064int 3065main (void) 3066{ 3067 3068 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 3069 return 0; 3070 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 3071 return 0; 3072 #else 3073 # error not GNU C library 3074 #endif 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079rm -f "conftest.$ac_objext" 3080if { (eval echo "$as_me:3080: \"$ac_compile\"") >&5 3081 (eval $ac_compile) 2>&5 3082 ac_status=$? 3083 echo "$as_me:3083: \$? = $ac_status" >&5 3084 (exit "$ac_status"); } && 3085 { ac_try='test -s "conftest.$ac_objext"' 3086 { (eval echo "$as_me:3086: \"$ac_try\"") >&5 3087 (eval $ac_try) 2>&5 3088 ac_status=$? 3089 echo "$as_me:3089: \$? = $ac_status" >&5 3090 (exit "$ac_status"); }; }; then 3091 cf_cv_gnu_library=yes 3092else 3093 echo "$as_me: failed program was:" >&5 3094cat "conftest.$ac_ext" >&5 3095cf_cv_gnu_library=no 3096fi 3097rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3098 3099fi 3100echo "$as_me:3100: result: $cf_cv_gnu_library" >&5 3101echo "${ECHO_T}$cf_cv_gnu_library" >&6 3102 3103if test x$cf_cv_gnu_library = xyes; then 3104 3105 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 3106 # was changed to help a little. newlib incorporated the change about 4 3107 # years later. 3108 echo "$as_me:3108: checking if _DEFAULT_SOURCE can be used as a basis" >&5 3109echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 3110if test "${cf_cv_gnu_library_219+set}" = set; then 3111 echo $ECHO_N "(cached) $ECHO_C" >&6 3112else 3113 3114 cf_save="$CPPFLAGS" 3115 3116 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3117 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3118 3119 cat >"conftest.$ac_ext" <<_ACEOF 3120#line 3120 "configure" 3121#include "confdefs.h" 3122#include <sys/types.h> 3123int 3124main (void) 3125{ 3126 3127 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 3128 return 0; 3129 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 3130 return 0; 3131 #else 3132 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 3133 #endif 3134 ; 3135 return 0; 3136} 3137_ACEOF 3138rm -f "conftest.$ac_objext" 3139if { (eval echo "$as_me:3139: \"$ac_compile\"") >&5 3140 (eval $ac_compile) 2>&5 3141 ac_status=$? 3142 echo "$as_me:3142: \$? = $ac_status" >&5 3143 (exit "$ac_status"); } && 3144 { ac_try='test -s "conftest.$ac_objext"' 3145 { (eval echo "$as_me:3145: \"$ac_try\"") >&5 3146 (eval $ac_try) 2>&5 3147 ac_status=$? 3148 echo "$as_me:3148: \$? = $ac_status" >&5 3149 (exit "$ac_status"); }; }; then 3150 cf_cv_gnu_library_219=yes 3151else 3152 echo "$as_me: failed program was:" >&5 3153cat "conftest.$ac_ext" >&5 3154cf_cv_gnu_library_219=no 3155fi 3156rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3157 CPPFLAGS="$cf_save" 3158 3159fi 3160echo "$as_me:3160: result: $cf_cv_gnu_library_219" >&5 3161echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 3162 3163 if test "x$cf_cv_gnu_library_219" = xyes; then 3164 cf_save="$CPPFLAGS" 3165 echo "$as_me:3165: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 3166echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 3167if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 3168 echo $ECHO_N "(cached) $ECHO_C" >&6 3169else 3170 3171cf_fix_cppflags=no 3172cf_new_cflags= 3173cf_new_cppflags= 3174cf_new_extra_cppflags= 3175 3176for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 3177do 3178case "$cf_fix_cppflags" in 3179(no) 3180 case "$cf_add_cflags" in 3181 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3182 case "$cf_add_cflags" in 3183 (-D*) 3184 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3185 3186 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3187 && test -z "${cf_tst_cflags}" \ 3188 && cf_fix_cppflags=yes 3189 3190 if test "$cf_fix_cppflags" = yes ; then 3191 3192 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3193 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3194 3195 continue 3196 elif test "${cf_tst_cflags}" = "\"'" ; then 3197 3198 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3199 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3200 3201 continue 3202 fi 3203 ;; 3204 esac 3205 case "$CPPFLAGS" in 3206 (*$cf_add_cflags) 3207 ;; 3208 (*) 3209 case "$cf_add_cflags" in 3210 (-D*) 3211 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3212 3213CPPFLAGS=`echo "$CPPFLAGS" | \ 3214 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3215 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3216 3217 ;; 3218 esac 3219 3220 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3221 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3222 3223 ;; 3224 esac 3225 ;; 3226 (*) 3227 3228 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3229 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3230 3231 ;; 3232 esac 3233 ;; 3234(yes) 3235 3236 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3237 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3238 3239 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3240 3241 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3242 && test -z "${cf_tst_cflags}" \ 3243 && cf_fix_cppflags=no 3244 ;; 3245esac 3246done 3247 3248if test -n "$cf_new_cflags" ; then 3249 3250 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3251 CFLAGS="${CFLAGS}$cf_new_cflags" 3252 3253fi 3254 3255if test -n "$cf_new_cppflags" ; then 3256 3257 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3258 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3259 3260fi 3261 3262if test -n "$cf_new_extra_cppflags" ; then 3263 3264 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3265 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3266 3267fi 3268 3269 cat >"conftest.$ac_ext" <<_ACEOF 3270#line 3270 "configure" 3271#include "confdefs.h" 3272 3273 #include <limits.h> 3274 #include <sys/types.h> 3275 3276int 3277main (void) 3278{ 3279 3280 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 3281 return 0; 3282 #else 3283 # error GNU C library is too old 3284 #endif 3285 ; 3286 return 0; 3287} 3288_ACEOF 3289rm -f "conftest.$ac_objext" 3290if { (eval echo "$as_me:3290: \"$ac_compile\"") >&5 3291 (eval $ac_compile) 2>&5 3292 ac_status=$? 3293 echo "$as_me:3293: \$? = $ac_status" >&5 3294 (exit "$ac_status"); } && 3295 { ac_try='test -s "conftest.$ac_objext"' 3296 { (eval echo "$as_me:3296: \"$ac_try\"") >&5 3297 (eval $ac_try) 2>&5 3298 ac_status=$? 3299 echo "$as_me:3299: \$? = $ac_status" >&5 3300 (exit "$ac_status"); }; }; then 3301 cf_cv_gnu_dftsrc_219=yes 3302else 3303 echo "$as_me: failed program was:" >&5 3304cat "conftest.$ac_ext" >&5 3305cf_cv_gnu_dftsrc_219=no 3306fi 3307rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3308 3309fi 3310echo "$as_me:3310: result: $cf_cv_gnu_dftsrc_219" >&5 3311echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 3312 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 3313 else 3314 cf_cv_gnu_dftsrc_219=maybe 3315 fi 3316 3317 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 3318 3319 echo "$as_me:3319: checking if we must define _GNU_SOURCE" >&5 3320echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 3321if test "${cf_cv_gnu_source+set}" = set; then 3322 echo $ECHO_N "(cached) $ECHO_C" >&6 3323else 3324 3325 cat >"conftest.$ac_ext" <<_ACEOF 3326#line 3326 "configure" 3327#include "confdefs.h" 3328#include <sys/types.h> 3329int 3330main (void) 3331{ 3332 3333 #ifndef _XOPEN_SOURCE 3334 #error expected _XOPEN_SOURCE to be defined 3335 #endif 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340rm -f "conftest.$ac_objext" 3341if { (eval echo "$as_me:3341: \"$ac_compile\"") >&5 3342 (eval $ac_compile) 2>&5 3343 ac_status=$? 3344 echo "$as_me:3344: \$? = $ac_status" >&5 3345 (exit "$ac_status"); } && 3346 { ac_try='test -s "conftest.$ac_objext"' 3347 { (eval echo "$as_me:3347: \"$ac_try\"") >&5 3348 (eval $ac_try) 2>&5 3349 ac_status=$? 3350 echo "$as_me:3350: \$? = $ac_status" >&5 3351 (exit "$ac_status"); }; }; then 3352 cf_cv_gnu_source=no 3353else 3354 echo "$as_me: failed program was:" >&5 3355cat "conftest.$ac_ext" >&5 3356cf_save="$CPPFLAGS" 3357 3358cf_fix_cppflags=no 3359cf_new_cflags= 3360cf_new_cppflags= 3361cf_new_extra_cppflags= 3362 3363for cf_add_cflags in -D_GNU_SOURCE 3364do 3365case "$cf_fix_cppflags" in 3366(no) 3367 case "$cf_add_cflags" in 3368 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3369 case "$cf_add_cflags" in 3370 (-D*) 3371 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3372 3373 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3374 && test -z "${cf_tst_cflags}" \ 3375 && cf_fix_cppflags=yes 3376 3377 if test "$cf_fix_cppflags" = yes ; then 3378 3379 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3380 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3381 3382 continue 3383 elif test "${cf_tst_cflags}" = "\"'" ; then 3384 3385 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3386 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3387 3388 continue 3389 fi 3390 ;; 3391 esac 3392 case "$CPPFLAGS" in 3393 (*$cf_add_cflags) 3394 ;; 3395 (*) 3396 case "$cf_add_cflags" in 3397 (-D*) 3398 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3399 3400CPPFLAGS=`echo "$CPPFLAGS" | \ 3401 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3402 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3403 3404 ;; 3405 esac 3406 3407 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3408 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3409 3410 ;; 3411 esac 3412 ;; 3413 (*) 3414 3415 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3416 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3417 3418 ;; 3419 esac 3420 ;; 3421(yes) 3422 3423 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3424 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3425 3426 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3427 3428 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3429 && test -z "${cf_tst_cflags}" \ 3430 && cf_fix_cppflags=no 3431 ;; 3432esac 3433done 3434 3435if test -n "$cf_new_cflags" ; then 3436 3437 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3438 CFLAGS="${CFLAGS}$cf_new_cflags" 3439 3440fi 3441 3442if test -n "$cf_new_cppflags" ; then 3443 3444 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3445 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3446 3447fi 3448 3449if test -n "$cf_new_extra_cppflags" ; then 3450 3451 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3452 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3453 3454fi 3455 3456 cat >"conftest.$ac_ext" <<_ACEOF 3457#line 3457 "configure" 3458#include "confdefs.h" 3459#include <sys/types.h> 3460int 3461main (void) 3462{ 3463 3464 #ifdef _XOPEN_SOURCE 3465 #error expected _XOPEN_SOURCE to be undefined 3466 #endif 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471rm -f "conftest.$ac_objext" 3472if { (eval echo "$as_me:3472: \"$ac_compile\"") >&5 3473 (eval $ac_compile) 2>&5 3474 ac_status=$? 3475 echo "$as_me:3475: \$? = $ac_status" >&5 3476 (exit "$ac_status"); } && 3477 { ac_try='test -s "conftest.$ac_objext"' 3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5 3479 (eval $ac_try) 2>&5 3480 ac_status=$? 3481 echo "$as_me:3481: \$? = $ac_status" >&5 3482 (exit "$ac_status"); }; }; then 3483 cf_cv_gnu_source=no 3484else 3485 echo "$as_me: failed program was:" >&5 3486cat "conftest.$ac_ext" >&5 3487cf_cv_gnu_source=yes 3488fi 3489rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3490 CPPFLAGS="$cf_save" 3491 3492fi 3493rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3494 3495fi 3496echo "$as_me:3496: result: $cf_cv_gnu_source" >&5 3497echo "${ECHO_T}$cf_cv_gnu_source" >&6 3498 3499 if test "$cf_cv_gnu_source" = yes 3500 then 3501 echo "$as_me:3501: checking if we should also define _DEFAULT_SOURCE" >&5 3502echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 3503if test "${cf_cv_default_source+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505else 3506 3507 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3508 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 3509 3510 cat >"conftest.$ac_ext" <<_ACEOF 3511#line 3511 "configure" 3512#include "confdefs.h" 3513#include <sys/types.h> 3514int 3515main (void) 3516{ 3517 3518 #ifdef _DEFAULT_SOURCE 3519 #error expected _DEFAULT_SOURCE to be undefined 3520 #endif 3521 ; 3522 return 0; 3523} 3524_ACEOF 3525rm -f "conftest.$ac_objext" 3526if { (eval echo "$as_me:3526: \"$ac_compile\"") >&5 3527 (eval $ac_compile) 2>&5 3528 ac_status=$? 3529 echo "$as_me:3529: \$? = $ac_status" >&5 3530 (exit "$ac_status"); } && 3531 { ac_try='test -s "conftest.$ac_objext"' 3532 { (eval echo "$as_me:3532: \"$ac_try\"") >&5 3533 (eval $ac_try) 2>&5 3534 ac_status=$? 3535 echo "$as_me:3535: \$? = $ac_status" >&5 3536 (exit "$ac_status"); }; }; then 3537 cf_cv_default_source=no 3538else 3539 echo "$as_me: failed program was:" >&5 3540cat "conftest.$ac_ext" >&5 3541cf_cv_default_source=yes 3542fi 3543rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3544 3545fi 3546echo "$as_me:3546: result: $cf_cv_default_source" >&5 3547echo "${ECHO_T}$cf_cv_default_source" >&6 3548 if test "$cf_cv_default_source" = yes 3549 then 3550 3551 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3552 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3553 3554 fi 3555 fi 3556 fi 3557 3558fi 3559 3560 ;; 3561(minix*) 3562 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 3563 ;; 3564(mirbsd*) 3565 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 3566 cf_XOPEN_SOURCE= 3567 3568if test "$cf_cv_posix_visible" = no; then 3569 3570cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3571 3572cf_save_CFLAGS="$CFLAGS" 3573cf_save_CPPFLAGS="$CPPFLAGS" 3574 3575cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3576 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3577 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3578 3579cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3580 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3581 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3582 3583echo "$as_me:3583: checking if we should define _POSIX_C_SOURCE" >&5 3584echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3585if test "${cf_cv_posix_c_source+set}" = set; then 3586 echo $ECHO_N "(cached) $ECHO_C" >&6 3587else 3588 3589echo "${as_me:-configure}:3589: testing if the symbol is already defined go no further ..." 1>&5 3590 3591 cat >"conftest.$ac_ext" <<_ACEOF 3592#line 3592 "configure" 3593#include "confdefs.h" 3594#include <sys/types.h> 3595int 3596main (void) 3597{ 3598 3599#ifndef _POSIX_C_SOURCE 3600#error _POSIX_C_SOURCE is not defined 3601#endif 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606rm -f "conftest.$ac_objext" 3607if { (eval echo "$as_me:3607: \"$ac_compile\"") >&5 3608 (eval $ac_compile) 2>&5 3609 ac_status=$? 3610 echo "$as_me:3610: \$? = $ac_status" >&5 3611 (exit "$ac_status"); } && 3612 { ac_try='test -s "conftest.$ac_objext"' 3613 { (eval echo "$as_me:3613: \"$ac_try\"") >&5 3614 (eval $ac_try) 2>&5 3615 ac_status=$? 3616 echo "$as_me:3616: \$? = $ac_status" >&5 3617 (exit "$ac_status"); }; }; then 3618 cf_cv_posix_c_source=no 3619else 3620 echo "$as_me: failed program was:" >&5 3621cat "conftest.$ac_ext" >&5 3622cf_want_posix_source=no 3623 case .$cf_POSIX_C_SOURCE in 3624 (.[12]??*) 3625 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3626 ;; 3627 (.2) 3628 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3629 cf_want_posix_source=yes 3630 ;; 3631 (.*) 3632 cf_want_posix_source=yes 3633 ;; 3634 esac 3635 if test "$cf_want_posix_source" = yes ; then 3636 cat >"conftest.$ac_ext" <<_ACEOF 3637#line 3637 "configure" 3638#include "confdefs.h" 3639#include <sys/types.h> 3640int 3641main (void) 3642{ 3643 3644#ifdef _POSIX_SOURCE 3645#error _POSIX_SOURCE is defined 3646#endif 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651rm -f "conftest.$ac_objext" 3652if { (eval echo "$as_me:3652: \"$ac_compile\"") >&5 3653 (eval $ac_compile) 2>&5 3654 ac_status=$? 3655 echo "$as_me:3655: \$? = $ac_status" >&5 3656 (exit "$ac_status"); } && 3657 { ac_try='test -s "conftest.$ac_objext"' 3658 { (eval echo "$as_me:3658: \"$ac_try\"") >&5 3659 (eval $ac_try) 2>&5 3660 ac_status=$? 3661 echo "$as_me:3661: \$? = $ac_status" >&5 3662 (exit "$ac_status"); }; }; then 3663 : 3664else 3665 echo "$as_me: failed program was:" >&5 3666cat "conftest.$ac_ext" >&5 3667cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3668fi 3669rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3670 fi 3671 3672echo "${as_me:-configure}:3672: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3673 3674 CFLAGS="$cf_trim_CFLAGS" 3675 CPPFLAGS="$cf_trim_CPPFLAGS" 3676 3677 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3678 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 3679 3680echo "${as_me:-configure}:3680: testing if the second compile does not leave our definition intact error ..." 1>&5 3681 3682 cat >"conftest.$ac_ext" <<_ACEOF 3683#line 3683 "configure" 3684#include "confdefs.h" 3685#include <sys/types.h> 3686int 3687main (void) 3688{ 3689 3690#ifndef _POSIX_C_SOURCE 3691#error _POSIX_C_SOURCE is not defined 3692#endif 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697rm -f "conftest.$ac_objext" 3698if { (eval echo "$as_me:3698: \"$ac_compile\"") >&5 3699 (eval $ac_compile) 2>&5 3700 ac_status=$? 3701 echo "$as_me:3701: \$? = $ac_status" >&5 3702 (exit "$ac_status"); } && 3703 { ac_try='test -s "conftest.$ac_objext"' 3704 { (eval echo "$as_me:3704: \"$ac_try\"") >&5 3705 (eval $ac_try) 2>&5 3706 ac_status=$? 3707 echo "$as_me:3707: \$? = $ac_status" >&5 3708 (exit "$ac_status"); }; }; then 3709 : 3710else 3711 echo "$as_me: failed program was:" >&5 3712cat "conftest.$ac_ext" >&5 3713cf_cv_posix_c_source=no 3714fi 3715rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3716 CFLAGS="$cf_save_CFLAGS" 3717 CPPFLAGS="$cf_save_CPPFLAGS" 3718 3719fi 3720rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3721 3722fi 3723echo "$as_me:3723: result: $cf_cv_posix_c_source" >&5 3724echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3725 3726if test "$cf_cv_posix_c_source" != no ; then 3727 CFLAGS="$cf_trim_CFLAGS" 3728 CPPFLAGS="$cf_trim_CPPFLAGS" 3729 3730cf_fix_cppflags=no 3731cf_new_cflags= 3732cf_new_cppflags= 3733cf_new_extra_cppflags= 3734 3735for cf_add_cflags in $cf_cv_posix_c_source 3736do 3737case "$cf_fix_cppflags" in 3738(no) 3739 case "$cf_add_cflags" in 3740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3741 case "$cf_add_cflags" in 3742 (-D*) 3743 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3744 3745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3746 && test -z "${cf_tst_cflags}" \ 3747 && cf_fix_cppflags=yes 3748 3749 if test "$cf_fix_cppflags" = yes ; then 3750 3751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3753 3754 continue 3755 elif test "${cf_tst_cflags}" = "\"'" ; then 3756 3757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3759 3760 continue 3761 fi 3762 ;; 3763 esac 3764 case "$CPPFLAGS" in 3765 (*$cf_add_cflags) 3766 ;; 3767 (*) 3768 case "$cf_add_cflags" in 3769 (-D*) 3770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3771 3772CPPFLAGS=`echo "$CPPFLAGS" | \ 3773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3775 3776 ;; 3777 esac 3778 3779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3781 3782 ;; 3783 esac 3784 ;; 3785 (*) 3786 3787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3789 3790 ;; 3791 esac 3792 ;; 3793(yes) 3794 3795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3797 3798 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3799 3800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3801 && test -z "${cf_tst_cflags}" \ 3802 && cf_fix_cppflags=no 3803 ;; 3804esac 3805done 3806 3807if test -n "$cf_new_cflags" ; then 3808 3809 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3810 CFLAGS="${CFLAGS}$cf_new_cflags" 3811 3812fi 3813 3814if test -n "$cf_new_cppflags" ; then 3815 3816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3818 3819fi 3820 3821if test -n "$cf_new_extra_cppflags" ; then 3822 3823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3825 3826fi 3827 3828fi 3829 3830fi # cf_cv_posix_visible 3831 3832 ;; 3833(netbsd*) 3834 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3835 ;; 3836(openbsd[6-9]*) 3837 # OpenBSD 6.x has broken locale support, both compile-time and runtime. 3838 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html 3839 # Abusing the conformance level is a workaround. 3840 { echo "$as_me:3840: WARNING: this system does not provide usable locale support" >&5 3841echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} 3842 cf_xopen_source="-D_BSD_SOURCE" 3843 cf_XOPEN_SOURCE=700 3844 ;; 3845(openbsd[4-5]*) 3846 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3847 cf_xopen_source="-D_BSD_SOURCE" 3848 cf_XOPEN_SOURCE=600 3849 ;; 3850(openbsd*) 3851 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3852 ;; 3853(osf[45]*) 3854 cf_xopen_source="-D_OSF_SOURCE" 3855 ;; 3856(nto-qnx*) 3857 cf_xopen_source="-D_QNX_SOURCE" 3858 ;; 3859(sco*) 3860 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3861 ;; 3862(solaris2.*) 3863 cf_xopen_source="-D__EXTENSIONS__" 3864 cf_cv_xopen_source=broken 3865 ;; 3866(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 3867 cf_XOPEN_SOURCE= 3868 cf_POSIX_C_SOURCE= 3869 ;; 3870(*) 3871 3872echo "$as_me:3872: checking if we should define _XOPEN_SOURCE" >&5 3873echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3874if test "${cf_cv_xopen_source+set}" = set; then 3875 echo $ECHO_N "(cached) $ECHO_C" >&6 3876else 3877 3878 cat >"conftest.$ac_ext" <<_ACEOF 3879#line 3879 "configure" 3880#include "confdefs.h" 3881 3882$ac_includes_default 3883 3884int 3885main (void) 3886{ 3887 3888#ifndef _XOPEN_SOURCE 3889#error _XOPEN_SOURCE is not defined 3890#endif 3891 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896rm -f "conftest.$ac_objext" 3897if { (eval echo "$as_me:3897: \"$ac_compile\"") >&5 3898 (eval $ac_compile) 2>&5 3899 ac_status=$? 3900 echo "$as_me:3900: \$? = $ac_status" >&5 3901 (exit "$ac_status"); } && 3902 { ac_try='test -s "conftest.$ac_objext"' 3903 { (eval echo "$as_me:3903: \"$ac_try\"") >&5 3904 (eval $ac_try) 2>&5 3905 ac_status=$? 3906 echo "$as_me:3906: \$? = $ac_status" >&5 3907 (exit "$ac_status"); }; }; then 3908 cf_cv_xopen_source=no 3909else 3910 echo "$as_me: failed program was:" >&5 3911cat "conftest.$ac_ext" >&5 3912cf_save="$CPPFLAGS" 3913 3914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3915 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3916 3917 cat >"conftest.$ac_ext" <<_ACEOF 3918#line 3918 "configure" 3919#include "confdefs.h" 3920 3921$ac_includes_default 3922 3923int 3924main (void) 3925{ 3926 3927#ifndef _XOPEN_SOURCE 3928#error _XOPEN_SOURCE is not defined 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935rm -f "conftest.$ac_objext" 3936if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5 3937 (eval $ac_compile) 2>&5 3938 ac_status=$? 3939 echo "$as_me:3939: \$? = $ac_status" >&5 3940 (exit "$ac_status"); } && 3941 { ac_try='test -s "conftest.$ac_objext"' 3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5 3943 (eval $ac_try) 2>&5 3944 ac_status=$? 3945 echo "$as_me:3945: \$? = $ac_status" >&5 3946 (exit "$ac_status"); }; }; then 3947 cf_cv_xopen_source=no 3948else 3949 echo "$as_me: failed program was:" >&5 3950cat "conftest.$ac_ext" >&5 3951cf_cv_xopen_source=$cf_XOPEN_SOURCE 3952fi 3953rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3954 CPPFLAGS="$cf_save" 3955 3956fi 3957rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3958 3959fi 3960echo "$as_me:3960: result: $cf_cv_xopen_source" >&5 3961echo "${ECHO_T}$cf_cv_xopen_source" >&6 3962 3963if test "$cf_cv_xopen_source" != no ; then 3964 3965CFLAGS=`echo "$CFLAGS" | \ 3966 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3967 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3968 3969CPPFLAGS=`echo "$CPPFLAGS" | \ 3970 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3971 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3972 3973 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3974 3975for cf_add_cflags in $cf_temp_xopen_source 3976do 3977 case "x$cf_add_cflags" in 3978 (x-[DU]*) 3979 3980cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 3981while true 3982do 3983 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 3984 test "$CFLAGS" != "$cf_old_cflag" || break 3985 3986 CFLAGS="$cf_old_cflag" 3987done 3988 3989cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 3990while true 3991do 3992 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 3993 test "$CPPFLAGS" != "$cf_old_cflag" || break 3994 3995 CPPFLAGS="$cf_old_cflag" 3996done 3997 3998 ;; 3999 esac 4000 4001cf_fix_cppflags=no 4002cf_new_cflags= 4003cf_new_cppflags= 4004cf_new_extra_cppflags= 4005 4006for cf_add_cflags in $cf_add_cflags 4007do 4008case "$cf_fix_cppflags" in 4009(no) 4010 case "$cf_add_cflags" in 4011 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4012 case "$cf_add_cflags" in 4013 (-D*) 4014 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4015 4016 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4017 && test -z "${cf_tst_cflags}" \ 4018 && cf_fix_cppflags=yes 4019 4020 if test "$cf_fix_cppflags" = yes ; then 4021 4022 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4023 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4024 4025 continue 4026 elif test "${cf_tst_cflags}" = "\"'" ; then 4027 4028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4030 4031 continue 4032 fi 4033 ;; 4034 esac 4035 case "$CPPFLAGS" in 4036 (*$cf_add_cflags) 4037 ;; 4038 (*) 4039 case "$cf_add_cflags" in 4040 (-D*) 4041 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4042 4043CPPFLAGS=`echo "$CPPFLAGS" | \ 4044 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4045 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4046 4047 ;; 4048 esac 4049 4050 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4051 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4052 4053 ;; 4054 esac 4055 ;; 4056 (*) 4057 4058 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4059 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4060 4061 ;; 4062 esac 4063 ;; 4064(yes) 4065 4066 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4067 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4068 4069 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4070 4071 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4072 && test -z "${cf_tst_cflags}" \ 4073 && cf_fix_cppflags=no 4074 ;; 4075esac 4076done 4077 4078if test -n "$cf_new_cflags" ; then 4079 4080 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4081 CFLAGS="${CFLAGS}$cf_new_cflags" 4082 4083fi 4084 4085if test -n "$cf_new_cppflags" ; then 4086 4087 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4088 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4089 4090fi 4091 4092if test -n "$cf_new_extra_cppflags" ; then 4093 4094 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4095 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4096 4097fi 4098 4099done 4100 4101fi 4102 4103 cf_save_xopen_cppflags="$CPPFLAGS" 4104 4105if test "$cf_cv_posix_visible" = no; then 4106 4107cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4108 4109cf_save_CFLAGS="$CFLAGS" 4110cf_save_CPPFLAGS="$CPPFLAGS" 4111 4112cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4113 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4114 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4115 4116cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4117 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4118 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4119 4120echo "$as_me:4120: checking if we should define _POSIX_C_SOURCE" >&5 4121echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4122if test "${cf_cv_posix_c_source+set}" = set; then 4123 echo $ECHO_N "(cached) $ECHO_C" >&6 4124else 4125 4126echo "${as_me:-configure}:4126: testing if the symbol is already defined go no further ..." 1>&5 4127 4128 cat >"conftest.$ac_ext" <<_ACEOF 4129#line 4129 "configure" 4130#include "confdefs.h" 4131#include <sys/types.h> 4132int 4133main (void) 4134{ 4135 4136#ifndef _POSIX_C_SOURCE 4137#error _POSIX_C_SOURCE is not defined 4138#endif 4139 ; 4140 return 0; 4141} 4142_ACEOF 4143rm -f "conftest.$ac_objext" 4144if { (eval echo "$as_me:4144: \"$ac_compile\"") >&5 4145 (eval $ac_compile) 2>&5 4146 ac_status=$? 4147 echo "$as_me:4147: \$? = $ac_status" >&5 4148 (exit "$ac_status"); } && 4149 { ac_try='test -s "conftest.$ac_objext"' 4150 { (eval echo "$as_me:4150: \"$ac_try\"") >&5 4151 (eval $ac_try) 2>&5 4152 ac_status=$? 4153 echo "$as_me:4153: \$? = $ac_status" >&5 4154 (exit "$ac_status"); }; }; then 4155 cf_cv_posix_c_source=no 4156else 4157 echo "$as_me: failed program was:" >&5 4158cat "conftest.$ac_ext" >&5 4159cf_want_posix_source=no 4160 case .$cf_POSIX_C_SOURCE in 4161 (.[12]??*) 4162 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4163 ;; 4164 (.2) 4165 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4166 cf_want_posix_source=yes 4167 ;; 4168 (.*) 4169 cf_want_posix_source=yes 4170 ;; 4171 esac 4172 if test "$cf_want_posix_source" = yes ; then 4173 cat >"conftest.$ac_ext" <<_ACEOF 4174#line 4174 "configure" 4175#include "confdefs.h" 4176#include <sys/types.h> 4177int 4178main (void) 4179{ 4180 4181#ifdef _POSIX_SOURCE 4182#error _POSIX_SOURCE is defined 4183#endif 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188rm -f "conftest.$ac_objext" 4189if { (eval echo "$as_me:4189: \"$ac_compile\"") >&5 4190 (eval $ac_compile) 2>&5 4191 ac_status=$? 4192 echo "$as_me:4192: \$? = $ac_status" >&5 4193 (exit "$ac_status"); } && 4194 { ac_try='test -s "conftest.$ac_objext"' 4195 { (eval echo "$as_me:4195: \"$ac_try\"") >&5 4196 (eval $ac_try) 2>&5 4197 ac_status=$? 4198 echo "$as_me:4198: \$? = $ac_status" >&5 4199 (exit "$ac_status"); }; }; then 4200 : 4201else 4202 echo "$as_me: failed program was:" >&5 4203cat "conftest.$ac_ext" >&5 4204cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4205fi 4206rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4207 fi 4208 4209echo "${as_me:-configure}:4209: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4210 4211 CFLAGS="$cf_trim_CFLAGS" 4212 CPPFLAGS="$cf_trim_CPPFLAGS" 4213 4214 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4215 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 4216 4217echo "${as_me:-configure}:4217: testing if the second compile does not leave our definition intact error ..." 1>&5 4218 4219 cat >"conftest.$ac_ext" <<_ACEOF 4220#line 4220 "configure" 4221#include "confdefs.h" 4222#include <sys/types.h> 4223int 4224main (void) 4225{ 4226 4227#ifndef _POSIX_C_SOURCE 4228#error _POSIX_C_SOURCE is not defined 4229#endif 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234rm -f "conftest.$ac_objext" 4235if { (eval echo "$as_me:4235: \"$ac_compile\"") >&5 4236 (eval $ac_compile) 2>&5 4237 ac_status=$? 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit "$ac_status"); } && 4240 { ac_try='test -s "conftest.$ac_objext"' 4241 { (eval echo "$as_me:4241: \"$ac_try\"") >&5 4242 (eval $ac_try) 2>&5 4243 ac_status=$? 4244 echo "$as_me:4244: \$? = $ac_status" >&5 4245 (exit "$ac_status"); }; }; then 4246 : 4247else 4248 echo "$as_me: failed program was:" >&5 4249cat "conftest.$ac_ext" >&5 4250cf_cv_posix_c_source=no 4251fi 4252rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4253 CFLAGS="$cf_save_CFLAGS" 4254 CPPFLAGS="$cf_save_CPPFLAGS" 4255 4256fi 4257rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4258 4259fi 4260echo "$as_me:4260: result: $cf_cv_posix_c_source" >&5 4261echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4262 4263if test "$cf_cv_posix_c_source" != no ; then 4264 CFLAGS="$cf_trim_CFLAGS" 4265 CPPFLAGS="$cf_trim_CPPFLAGS" 4266 4267cf_fix_cppflags=no 4268cf_new_cflags= 4269cf_new_cppflags= 4270cf_new_extra_cppflags= 4271 4272for cf_add_cflags in $cf_cv_posix_c_source 4273do 4274case "$cf_fix_cppflags" in 4275(no) 4276 case "$cf_add_cflags" in 4277 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4278 case "$cf_add_cflags" in 4279 (-D*) 4280 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4281 4282 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4283 && test -z "${cf_tst_cflags}" \ 4284 && cf_fix_cppflags=yes 4285 4286 if test "$cf_fix_cppflags" = yes ; then 4287 4288 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4289 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4290 4291 continue 4292 elif test "${cf_tst_cflags}" = "\"'" ; then 4293 4294 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4295 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4296 4297 continue 4298 fi 4299 ;; 4300 esac 4301 case "$CPPFLAGS" in 4302 (*$cf_add_cflags) 4303 ;; 4304 (*) 4305 case "$cf_add_cflags" in 4306 (-D*) 4307 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4308 4309CPPFLAGS=`echo "$CPPFLAGS" | \ 4310 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4311 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4312 4313 ;; 4314 esac 4315 4316 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4317 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4318 4319 ;; 4320 esac 4321 ;; 4322 (*) 4323 4324 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4325 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4326 4327 ;; 4328 esac 4329 ;; 4330(yes) 4331 4332 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4333 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4334 4335 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4336 4337 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4338 && test -z "${cf_tst_cflags}" \ 4339 && cf_fix_cppflags=no 4340 ;; 4341esac 4342done 4343 4344if test -n "$cf_new_cflags" ; then 4345 4346 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4347 CFLAGS="${CFLAGS}$cf_new_cflags" 4348 4349fi 4350 4351if test -n "$cf_new_cppflags" ; then 4352 4353 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4354 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4355 4356fi 4357 4358if test -n "$cf_new_extra_cppflags" ; then 4359 4360 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4361 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4362 4363fi 4364 4365fi 4366 4367fi # cf_cv_posix_visible 4368 4369 # Some of these niche implementations use copy/paste, double-check... 4370 if test "$cf_cv_xopen_source" != no ; then 4371 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE inteferes" 1>&6 4372 4373echo "${as_me:-configure}:4373: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5 4374 4375 cat >"conftest.$ac_ext" <<_ACEOF 4376#line 4376 "configure" 4377#include "confdefs.h" 4378 4379$ac_includes_default 4380 4381int 4382main (void) 4383{ 4384 4385#ifndef _XOPEN_SOURCE 4386#error _XOPEN_SOURCE is not defined 4387#endif 4388 4389 ; 4390 return 0; 4391} 4392_ACEOF 4393rm -f "conftest.$ac_objext" 4394if { (eval echo "$as_me:4394: \"$ac_compile\"") >&5 4395 (eval $ac_compile) 2>&5 4396 ac_status=$? 4397 echo "$as_me:4397: \$? = $ac_status" >&5 4398 (exit "$ac_status"); } && 4399 { ac_try='test -s "conftest.$ac_objext"' 4400 { (eval echo "$as_me:4400: \"$ac_try\"") >&5 4401 (eval $ac_try) 2>&5 4402 ac_status=$? 4403 echo "$as_me:4403: \$? = $ac_status" >&5 4404 (exit "$ac_status"); }; }; then 4405 : 4406else 4407 echo "$as_me: failed program was:" >&5 4408cat "conftest.$ac_ext" >&5 4409 4410 { echo "$as_me:4410: WARNING: _POSIX_C_SOURCE definition is not usable" >&5 4411echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;} 4412 CPPFLAGS="$cf_save_xopen_cppflags" 4413fi 4414rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4415 fi 4416 ;; 4417esac 4418 4419if test -n "$cf_xopen_source" ; then 4420 4421for cf_add_cflags in $cf_xopen_source 4422do 4423 case "x$cf_add_cflags" in 4424 (x-[DU]*) 4425 4426cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4427while true 4428do 4429 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4430 test "$CFLAGS" != "$cf_old_cflag" || break 4431 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6 4432 4433echo "${as_me:-configure}:4433: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5 4434 4435 CFLAGS="$cf_old_cflag" 4436done 4437 4438cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4439while true 4440do 4441 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4442 test "$CPPFLAGS" != "$cf_old_cflag" || break 4443 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6 4444 4445echo "${as_me:-configure}:4445: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5 4446 4447 CPPFLAGS="$cf_old_cflag" 4448done 4449 4450 ;; 4451 esac 4452 4453cf_fix_cppflags=no 4454cf_new_cflags= 4455cf_new_cppflags= 4456cf_new_extra_cppflags= 4457 4458for cf_add_cflags in $cf_add_cflags 4459do 4460case "$cf_fix_cppflags" in 4461(no) 4462 case "$cf_add_cflags" in 4463 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4464 case "$cf_add_cflags" in 4465 (-D*) 4466 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4467 4468 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4469 && test -z "${cf_tst_cflags}" \ 4470 && cf_fix_cppflags=yes 4471 4472 if test "$cf_fix_cppflags" = yes ; then 4473 4474 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4475 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4476 4477 continue 4478 elif test "${cf_tst_cflags}" = "\"'" ; then 4479 4480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4482 4483 continue 4484 fi 4485 ;; 4486 esac 4487 case "$CPPFLAGS" in 4488 (*$cf_add_cflags) 4489 ;; 4490 (*) 4491 case "$cf_add_cflags" in 4492 (-D*) 4493 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4494 4495CPPFLAGS=`echo "$CPPFLAGS" | \ 4496 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4497 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4498 4499 ;; 4500 esac 4501 4502 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4503 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4504 4505 ;; 4506 esac 4507 ;; 4508 (*) 4509 4510 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4511 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4512 4513 ;; 4514 esac 4515 ;; 4516(yes) 4517 4518 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4519 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4520 4521 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4522 4523 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4524 && test -z "${cf_tst_cflags}" \ 4525 && cf_fix_cppflags=no 4526 ;; 4527esac 4528done 4529 4530if test -n "$cf_new_cflags" ; then 4531 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 4532 4533echo "${as_me:-configure}:4533: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 4534 4535 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4536 CFLAGS="${CFLAGS}$cf_new_cflags" 4537 4538fi 4539 4540if test -n "$cf_new_cppflags" ; then 4541 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 4542 4543echo "${as_me:-configure}:4543: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 4544 4545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4547 4548fi 4549 4550if test -n "$cf_new_extra_cppflags" ; then 4551 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 4552 4553echo "${as_me:-configure}:4553: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 4554 4555 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4556 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4557 4558fi 4559 4560done 4561 4562fi 4563 4564if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 4565 echo "$as_me:4565: checking if _XOPEN_SOURCE really is set" >&5 4566echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 4567 cat >"conftest.$ac_ext" <<_ACEOF 4568#line 4568 "configure" 4569#include "confdefs.h" 4570#include <stdlib.h> 4571int 4572main (void) 4573{ 4574 4575#ifndef _XOPEN_SOURCE 4576#error _XOPEN_SOURCE is not defined 4577#endif 4578 ; 4579 return 0; 4580} 4581_ACEOF 4582rm -f "conftest.$ac_objext" 4583if { (eval echo "$as_me:4583: \"$ac_compile\"") >&5 4584 (eval $ac_compile) 2>&5 4585 ac_status=$? 4586 echo "$as_me:4586: \$? = $ac_status" >&5 4587 (exit "$ac_status"); } && 4588 { ac_try='test -s "conftest.$ac_objext"' 4589 { (eval echo "$as_me:4589: \"$ac_try\"") >&5 4590 (eval $ac_try) 2>&5 4591 ac_status=$? 4592 echo "$as_me:4592: \$? = $ac_status" >&5 4593 (exit "$ac_status"); }; }; then 4594 cf_XOPEN_SOURCE_set=yes 4595else 4596 echo "$as_me: failed program was:" >&5 4597cat "conftest.$ac_ext" >&5 4598cf_XOPEN_SOURCE_set=no 4599fi 4600rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4601 echo "$as_me:4601: result: $cf_XOPEN_SOURCE_set" >&5 4602echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 4603 if test "$cf_XOPEN_SOURCE_set" = yes 4604 then 4605 cat >"conftest.$ac_ext" <<_ACEOF 4606#line 4606 "configure" 4607#include "confdefs.h" 4608#include <stdlib.h> 4609int 4610main (void) 4611{ 4612 4613#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4614#error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4615#endif 4616 ; 4617 return 0; 4618} 4619_ACEOF 4620rm -f "conftest.$ac_objext" 4621if { (eval echo "$as_me:4621: \"$ac_compile\"") >&5 4622 (eval $ac_compile) 2>&5 4623 ac_status=$? 4624 echo "$as_me:4624: \$? = $ac_status" >&5 4625 (exit "$ac_status"); } && 4626 { ac_try='test -s "conftest.$ac_objext"' 4627 { (eval echo "$as_me:4627: \"$ac_try\"") >&5 4628 (eval $ac_try) 2>&5 4629 ac_status=$? 4630 echo "$as_me:4630: \$? = $ac_status" >&5 4631 (exit "$ac_status"); }; }; then 4632 cf_XOPEN_SOURCE_set_ok=yes 4633else 4634 echo "$as_me: failed program was:" >&5 4635cat "conftest.$ac_ext" >&5 4636cf_XOPEN_SOURCE_set_ok=no 4637fi 4638rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4639 if test "$cf_XOPEN_SOURCE_set_ok" = no 4640 then 4641 { echo "$as_me:4641: WARNING: _XOPEN_SOURCE is lower than requested" >&5 4642echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 4643 fi 4644 else 4645 4646echo "$as_me:4646: checking if we should define _XOPEN_SOURCE" >&5 4647echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4648if test "${cf_cv_xopen_source+set}" = set; then 4649 echo $ECHO_N "(cached) $ECHO_C" >&6 4650else 4651 4652 cat >"conftest.$ac_ext" <<_ACEOF 4653#line 4653 "configure" 4654#include "confdefs.h" 4655 4656$ac_includes_default 4657 4658int 4659main (void) 4660{ 4661 4662#ifndef _XOPEN_SOURCE 4663#error _XOPEN_SOURCE is not defined 4664#endif 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670rm -f "conftest.$ac_objext" 4671if { (eval echo "$as_me:4671: \"$ac_compile\"") >&5 4672 (eval $ac_compile) 2>&5 4673 ac_status=$? 4674 echo "$as_me:4674: \$? = $ac_status" >&5 4675 (exit "$ac_status"); } && 4676 { ac_try='test -s "conftest.$ac_objext"' 4677 { (eval echo "$as_me:4677: \"$ac_try\"") >&5 4678 (eval $ac_try) 2>&5 4679 ac_status=$? 4680 echo "$as_me:4680: \$? = $ac_status" >&5 4681 (exit "$ac_status"); }; }; then 4682 cf_cv_xopen_source=no 4683else 4684 echo "$as_me: failed program was:" >&5 4685cat "conftest.$ac_ext" >&5 4686cf_save="$CPPFLAGS" 4687 4688 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4689 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4690 4691 cat >"conftest.$ac_ext" <<_ACEOF 4692#line 4692 "configure" 4693#include "confdefs.h" 4694 4695$ac_includes_default 4696 4697int 4698main (void) 4699{ 4700 4701#ifndef _XOPEN_SOURCE 4702#error _XOPEN_SOURCE is not defined 4703#endif 4704 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_xopen_source=no 4722else 4723 echo "$as_me: failed program was:" >&5 4724cat "conftest.$ac_ext" >&5 4725cf_cv_xopen_source=$cf_XOPEN_SOURCE 4726fi 4727rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4728 CPPFLAGS="$cf_save" 4729 4730fi 4731rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4732 4733fi 4734echo "$as_me:4734: result: $cf_cv_xopen_source" >&5 4735echo "${ECHO_T}$cf_cv_xopen_source" >&6 4736 4737if test "$cf_cv_xopen_source" != no ; then 4738 4739CFLAGS=`echo "$CFLAGS" | \ 4740 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4741 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4742 4743CPPFLAGS=`echo "$CPPFLAGS" | \ 4744 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4745 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4746 4747 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4748 4749for cf_add_cflags in $cf_temp_xopen_source 4750do 4751 case "x$cf_add_cflags" in 4752 (x-[DU]*) 4753 4754cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4755while true 4756do 4757 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4758 test "$CFLAGS" != "$cf_old_cflag" || break 4759 4760 CFLAGS="$cf_old_cflag" 4761done 4762 4763cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4764while true 4765do 4766 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4767 test "$CPPFLAGS" != "$cf_old_cflag" || break 4768 4769 CPPFLAGS="$cf_old_cflag" 4770done 4771 4772 ;; 4773 esac 4774 4775cf_fix_cppflags=no 4776cf_new_cflags= 4777cf_new_cppflags= 4778cf_new_extra_cppflags= 4779 4780for cf_add_cflags in $cf_add_cflags 4781do 4782case "$cf_fix_cppflags" in 4783(no) 4784 case "$cf_add_cflags" in 4785 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4786 case "$cf_add_cflags" in 4787 (-D*) 4788 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4789 4790 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4791 && test -z "${cf_tst_cflags}" \ 4792 && cf_fix_cppflags=yes 4793 4794 if test "$cf_fix_cppflags" = yes ; then 4795 4796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4798 4799 continue 4800 elif test "${cf_tst_cflags}" = "\"'" ; then 4801 4802 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4803 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4804 4805 continue 4806 fi 4807 ;; 4808 esac 4809 case "$CPPFLAGS" in 4810 (*$cf_add_cflags) 4811 ;; 4812 (*) 4813 case "$cf_add_cflags" in 4814 (-D*) 4815 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4816 4817CPPFLAGS=`echo "$CPPFLAGS" | \ 4818 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4819 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4820 4821 ;; 4822 esac 4823 4824 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4825 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4826 4827 ;; 4828 esac 4829 ;; 4830 (*) 4831 4832 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4833 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4834 4835 ;; 4836 esac 4837 ;; 4838(yes) 4839 4840 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4841 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4842 4843 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4844 4845 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4846 && test -z "${cf_tst_cflags}" \ 4847 && cf_fix_cppflags=no 4848 ;; 4849esac 4850done 4851 4852if test -n "$cf_new_cflags" ; then 4853 4854 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4855 CFLAGS="${CFLAGS}$cf_new_cflags" 4856 4857fi 4858 4859if test -n "$cf_new_cppflags" ; then 4860 4861 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4862 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4863 4864fi 4865 4866if test -n "$cf_new_extra_cppflags" ; then 4867 4868 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4869 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4870 4871fi 4872 4873done 4874 4875fi 4876 4877 fi 4878fi 4879fi # cf_cv_posix_visible 4880 4881echo "$as_me:4881: checking if SIGWINCH is defined" >&5 4882echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 4883if test "${cf_cv_define_sigwinch+set}" = set; then 4884 echo $ECHO_N "(cached) $ECHO_C" >&6 4885else 4886 4887 cat >"conftest.$ac_ext" <<_ACEOF 4888#line 4888 "configure" 4889#include "confdefs.h" 4890 4891#include <sys/types.h> 4892#include <sys/signal.h> 4893 4894int 4895main (void) 4896{ 4897int x = SIGWINCH; (void)x 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902rm -f "conftest.$ac_objext" 4903if { (eval echo "$as_me:4903: \"$ac_compile\"") >&5 4904 (eval $ac_compile) 2>&5 4905 ac_status=$? 4906 echo "$as_me:4906: \$? = $ac_status" >&5 4907 (exit "$ac_status"); } && 4908 { ac_try='test -s "conftest.$ac_objext"' 4909 { (eval echo "$as_me:4909: \"$ac_try\"") >&5 4910 (eval $ac_try) 2>&5 4911 ac_status=$? 4912 echo "$as_me:4912: \$? = $ac_status" >&5 4913 (exit "$ac_status"); }; }; then 4914 cf_cv_define_sigwinch=yes 4915else 4916 echo "$as_me: failed program was:" >&5 4917cat "conftest.$ac_ext" >&5 4918cat >"conftest.$ac_ext" <<_ACEOF 4919#line 4919 "configure" 4920#include "confdefs.h" 4921 4922#undef _XOPEN_SOURCE 4923#undef _POSIX_SOURCE 4924#undef _POSIX_C_SOURCE 4925#include <sys/types.h> 4926#include <sys/signal.h> 4927 4928int 4929main (void) 4930{ 4931int x = SIGWINCH; (void)x 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936rm -f "conftest.$ac_objext" 4937if { (eval echo "$as_me:4937: \"$ac_compile\"") >&5 4938 (eval $ac_compile) 2>&5 4939 ac_status=$? 4940 echo "$as_me:4940: \$? = $ac_status" >&5 4941 (exit "$ac_status"); } && 4942 { ac_try='test -s "conftest.$ac_objext"' 4943 { (eval echo "$as_me:4943: \"$ac_try\"") >&5 4944 (eval $ac_try) 2>&5 4945 ac_status=$? 4946 echo "$as_me:4946: \$? = $ac_status" >&5 4947 (exit "$ac_status"); }; }; then 4948 cf_cv_define_sigwinch=maybe 4949else 4950 echo "$as_me: failed program was:" >&5 4951cat "conftest.$ac_ext" >&5 4952cf_cv_define_sigwinch=no 4953fi 4954rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4955 4956fi 4957rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4958 4959fi 4960echo "$as_me:4960: result: $cf_cv_define_sigwinch" >&5 4961echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 4962 4963if test "$cf_cv_define_sigwinch" = maybe ; then 4964echo "$as_me:4964: checking for actual SIGWINCH definition" >&5 4965echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 4966if test "${cf_cv_fixup_sigwinch+set}" = set; then 4967 echo $ECHO_N "(cached) $ECHO_C" >&6 4968else 4969 4970cf_cv_fixup_sigwinch=unknown 4971cf_sigwinch=32 4972while test "$cf_sigwinch" != 1 4973do 4974 cat >"conftest.$ac_ext" <<_ACEOF 4975#line 4975 "configure" 4976#include "confdefs.h" 4977 4978#undef _XOPEN_SOURCE 4979#undef _POSIX_SOURCE 4980#undef _POSIX_C_SOURCE 4981#include <sys/types.h> 4982#include <sys/signal.h> 4983 4984int 4985main (void) 4986{ 4987 4988#if SIGWINCH != $cf_sigwinch 4989#error SIGWINCH is not $cf_sigwinch 4990#endif 4991int x = SIGWINCH; (void)x 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996rm -f "conftest.$ac_objext" 4997if { (eval echo "$as_me:4997: \"$ac_compile\"") >&5 4998 (eval $ac_compile) 2>&5 4999 ac_status=$? 5000 echo "$as_me:5000: \$? = $ac_status" >&5 5001 (exit "$ac_status"); } && 5002 { ac_try='test -s "conftest.$ac_objext"' 5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5 5004 (eval $ac_try) 2>&5 5005 ac_status=$? 5006 echo "$as_me:5006: \$? = $ac_status" >&5 5007 (exit "$ac_status"); }; }; then 5008 cf_cv_fixup_sigwinch=$cf_sigwinch 5009 break 5010else 5011 echo "$as_me: failed program was:" >&5 5012cat "conftest.$ac_ext" >&5 5013fi 5014rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5015 5016cf_sigwinch="`expr "$cf_sigwinch" - 1`" 5017done 5018 5019fi 5020echo "$as_me:5020: result: $cf_cv_fixup_sigwinch" >&5 5021echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 5022 5023 if test "$cf_cv_fixup_sigwinch" != unknown ; then 5024 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 5025 fi 5026fi 5027 5028### checks for header files 5029 5030echo "$as_me:5030: checking for ANSI C header files" >&5 5031echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5032if test "${ac_cv_header_stdc+set}" = set; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034else 5035 cat >"conftest.$ac_ext" <<_ACEOF 5036#line 5036 "configure" 5037#include "confdefs.h" 5038#include <stdlib.h> 5039#include <stdarg.h> 5040#include <string.h> 5041#include <float.h> 5042 5043_ACEOF 5044if { (eval echo "$as_me:5044: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5045 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5046 ac_status=$? 5047 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 echo "$as_me:5050: \$? = $ac_status" >&5 5051 (exit "$ac_status"); } >/dev/null; then 5052 if test -s conftest.err; then 5053 ac_cpp_err=$ac_c_preproc_warn_flag 5054 else 5055 ac_cpp_err= 5056 fi 5057else 5058 ac_cpp_err=yes 5059fi 5060if test -z "$ac_cpp_err"; then 5061 ac_cv_header_stdc=yes 5062else 5063 echo "$as_me: failed program was:" >&5 5064 cat "conftest.$ac_ext" >&5 5065 ac_cv_header_stdc=no 5066fi 5067rm -f conftest.err "conftest.$ac_ext" 5068 5069if test $ac_cv_header_stdc = yes; then 5070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5071 cat >"conftest.$ac_ext" <<_ACEOF 5072#line 5072 "configure" 5073#include "confdefs.h" 5074#include <string.h> 5075 5076_ACEOF 5077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5078 $EGREP "memchr" >/dev/null 2>&1; then 5079 : 5080else 5081 ac_cv_header_stdc=no 5082fi 5083rm -rf conftest* 5084 5085fi 5086 5087if test $ac_cv_header_stdc = yes; then 5088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5089 cat >"conftest.$ac_ext" <<_ACEOF 5090#line 5090 "configure" 5091#include "confdefs.h" 5092#include <stdlib.h> 5093 5094_ACEOF 5095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5096 $EGREP "free" >/dev/null 2>&1; then 5097 : 5098else 5099 ac_cv_header_stdc=no 5100fi 5101rm -rf conftest* 5102 5103fi 5104 5105if test $ac_cv_header_stdc = yes; then 5106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5107 if test "$cross_compiling" = yes; then 5108 : 5109else 5110 cat >"conftest.$ac_ext" <<_ACEOF 5111#line 5111 "configure" 5112#include "confdefs.h" 5113#include <ctype.h> 5114#if ((' ' & 0x0FF) == 0x020) 5115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5117#else 5118# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5119 || ('j' <= (c) && (c) <= 'r') \ 5120 || ('s' <= (c) && (c) <= 'z')) 5121# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5122#endif 5123 5124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5125int 5126main (void) 5127{ 5128 int i; 5129 for (i = 0; i < 256; i++) 5130 if (XOR (islower (i), ISLOWER (i)) 5131 || toupper (i) != TOUPPER (i)) 5132 $ac_main_return(2); 5133 $ac_main_return (0); 5134} 5135_ACEOF 5136rm -f "conftest$ac_exeext" 5137if { (eval echo "$as_me:5137: \"$ac_link\"") >&5 5138 (eval $ac_link) 2>&5 5139 ac_status=$? 5140 echo "$as_me:5140: \$? = $ac_status" >&5 5141 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 5142 { (eval echo "$as_me:5142: \"$ac_try\"") >&5 5143 (eval $ac_try) 2>&5 5144 ac_status=$? 5145 echo "$as_me:5145: \$? = $ac_status" >&5 5146 (exit "$ac_status"); }; }; then 5147 : 5148else 5149 echo "$as_me: program exited with status $ac_status" >&5 5150echo "$as_me: failed program was:" >&5 5151cat "conftest.$ac_ext" >&5 5152ac_cv_header_stdc=no 5153fi 5154rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 5155fi 5156fi 5157fi 5158echo "$as_me:5158: result: $ac_cv_header_stdc" >&5 5159echo "${ECHO_T}$ac_cv_header_stdc" >&6 5160if test $ac_cv_header_stdc = yes; then 5161 5162cat >>confdefs.h <<\EOF 5163#define STDC_HEADERS 1 5164EOF 5165 5166fi 5167 5168# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5169 5170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5171 inttypes.h stdint.h unistd.h 5172do 5173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5174echo "$as_me:5174: checking for $ac_header" >&5 5175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5176if eval "test \"\${$as_ac_Header+set}\" = set"; then 5177 echo $ECHO_N "(cached) $ECHO_C" >&6 5178else 5179 cat >"conftest.$ac_ext" <<_ACEOF 5180#line 5180 "configure" 5181#include "confdefs.h" 5182$ac_includes_default 5183#include <$ac_header> 5184_ACEOF 5185rm -f "conftest.$ac_objext" 5186if { (eval echo "$as_me:5186: \"$ac_compile\"") >&5 5187 (eval $ac_compile) 2>&5 5188 ac_status=$? 5189 echo "$as_me:5189: \$? = $ac_status" >&5 5190 (exit "$ac_status"); } && 5191 { ac_try='test -s "conftest.$ac_objext"' 5192 { (eval echo "$as_me:5192: \"$ac_try\"") >&5 5193 (eval $ac_try) 2>&5 5194 ac_status=$? 5195 echo "$as_me:5195: \$? = $ac_status" >&5 5196 (exit "$ac_status"); }; }; then 5197 eval "$as_ac_Header=yes" 5198else 5199 echo "$as_me: failed program was:" >&5 5200cat "conftest.$ac_ext" >&5 5201eval "$as_ac_Header=no" 5202fi 5203rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5204fi 5205echo "$as_me:5205: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5206echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5207if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5208 cat >>confdefs.h <<EOF 5209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5210EOF 5211 5212fi 5213done 5214 5215echo "$as_me:5215: checking whether exit is declared" >&5 5216echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6 5217if test "${ac_cv_have_decl_exit+set}" = set; then 5218 echo $ECHO_N "(cached) $ECHO_C" >&6 5219else 5220 cat >"conftest.$ac_ext" <<_ACEOF 5221#line 5221 "configure" 5222#include "confdefs.h" 5223$ac_includes_default 5224int 5225main (void) 5226{ 5227#ifndef exit 5228 char *p = (char *) exit; (void) p; 5229#endif 5230 5231 ; 5232 return 0; 5233} 5234_ACEOF 5235rm -f "conftest.$ac_objext" 5236if { (eval echo "$as_me:5236: \"$ac_compile\"") >&5 5237 (eval $ac_compile) 2>&5 5238 ac_status=$? 5239 echo "$as_me:5239: \$? = $ac_status" >&5 5240 (exit "$ac_status"); } && 5241 { ac_try='test -s "conftest.$ac_objext"' 5242 { (eval echo "$as_me:5242: \"$ac_try\"") >&5 5243 (eval $ac_try) 2>&5 5244 ac_status=$? 5245 echo "$as_me:5245: \$? = $ac_status" >&5 5246 (exit "$ac_status"); }; }; then 5247 ac_cv_have_decl_exit=yes 5248else 5249 echo "$as_me: failed program was:" >&5 5250cat "conftest.$ac_ext" >&5 5251ac_cv_have_decl_exit=no 5252fi 5253rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5254fi 5255echo "$as_me:5255: result: $ac_cv_have_decl_exit" >&5 5256echo "${ECHO_T}$ac_cv_have_decl_exit" >&6 5257 5258for ac_header in \ 5259ncurses/curses.h \ 5260ncurses/term.h \ 5261sys/ptem.h \ 5262sys/ttydefaults.h \ 5263term.h \ 5264termios.h \ 5265wchar.h \ 5266 5267do 5268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5269echo "$as_me:5269: checking for $ac_header" >&5 5270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5271if eval "test \"\${$as_ac_Header+set}\" = set"; then 5272 echo $ECHO_N "(cached) $ECHO_C" >&6 5273else 5274 cat >"conftest.$ac_ext" <<_ACEOF 5275#line 5275 "configure" 5276#include "confdefs.h" 5277#include <$ac_header> 5278_ACEOF 5279if { (eval echo "$as_me:5279: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5280 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5281 ac_status=$? 5282 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5283 rm -f conftest.er1 5284 cat conftest.err >&5 5285 echo "$as_me:5285: \$? = $ac_status" >&5 5286 (exit "$ac_status"); } >/dev/null; then 5287 if test -s conftest.err; then 5288 ac_cpp_err=$ac_c_preproc_warn_flag 5289 else 5290 ac_cpp_err= 5291 fi 5292else 5293 ac_cpp_err=yes 5294fi 5295if test -z "$ac_cpp_err"; then 5296 eval "$as_ac_Header=yes" 5297else 5298 echo "$as_me: failed program was:" >&5 5299 cat "conftest.$ac_ext" >&5 5300 eval "$as_ac_Header=no" 5301fi 5302rm -f conftest.err "conftest.$ac_ext" 5303fi 5304echo "$as_me:5304: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5305echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5306if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5307 cat >>confdefs.h <<EOF 5308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5309EOF 5310 5311fi 5312done 5313 5314echo "$as_me:5314: checking whether time.h and sys/time.h may both be included" >&5 5315echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5316if test "${ac_cv_header_time+set}" = set; then 5317 echo $ECHO_N "(cached) $ECHO_C" >&6 5318else 5319 cat >"conftest.$ac_ext" <<_ACEOF 5320#line 5320 "configure" 5321#include "confdefs.h" 5322#include <sys/types.h> 5323#include <sys/time.h> 5324#include <time.h> 5325 5326int 5327main (void) 5328{ 5329if ((struct tm *) 0) 5330return 0; 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335rm -f "conftest.$ac_objext" 5336if { (eval echo "$as_me:5336: \"$ac_compile\"") >&5 5337 (eval $ac_compile) 2>&5 5338 ac_status=$? 5339 echo "$as_me:5339: \$? = $ac_status" >&5 5340 (exit "$ac_status"); } && 5341 { ac_try='test -s "conftest.$ac_objext"' 5342 { (eval echo "$as_me:5342: \"$ac_try\"") >&5 5343 (eval $ac_try) 2>&5 5344 ac_status=$? 5345 echo "$as_me:5345: \$? = $ac_status" >&5 5346 (exit "$ac_status"); }; }; then 5347 ac_cv_header_time=yes 5348else 5349 echo "$as_me: failed program was:" >&5 5350cat "conftest.$ac_ext" >&5 5351ac_cv_header_time=no 5352fi 5353rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5354fi 5355echo "$as_me:5355: result: $ac_cv_header_time" >&5 5356echo "${ECHO_T}$ac_cv_header_time" >&6 5357if test $ac_cv_header_time = yes; then 5358 5359cat >>confdefs.h <<\EOF 5360#define TIME_WITH_SYS_TIME 1 5361EOF 5362 5363fi 5364 5365echo "$as_me:5365: checking for nl_langinfo and CODESET" >&5 5366echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 5367if test "${am_cv_langinfo_codeset+set}" = set; then 5368 echo $ECHO_N "(cached) $ECHO_C" >&6 5369else 5370 cat >"conftest.$ac_ext" <<_ACEOF 5371#line 5371 "configure" 5372#include "confdefs.h" 5373 5374$ac_includes_default 5375#include <langinfo.h> 5376int 5377main (void) 5378{ 5379char* cs = nl_langinfo(CODESET); (void)cs 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5385if { (eval echo "$as_me:5385: \"$ac_link\"") >&5 5386 (eval $ac_link) 2>&5 5387 ac_status=$? 5388 echo "$as_me:5388: \$? = $ac_status" >&5 5389 (exit "$ac_status"); } && 5390 { ac_try='test -s "conftest$ac_exeext"' 5391 { (eval echo "$as_me:5391: \"$ac_try\"") >&5 5392 (eval $ac_try) 2>&5 5393 ac_status=$? 5394 echo "$as_me:5394: \$? = $ac_status" >&5 5395 (exit "$ac_status"); }; }; then 5396 am_cv_langinfo_codeset=yes 5397else 5398 echo "$as_me: failed program was:" >&5 5399cat "conftest.$ac_ext" >&5 5400am_cv_langinfo_codeset=no 5401fi 5402rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5403 5404fi 5405echo "$as_me:5405: result: $am_cv_langinfo_codeset" >&5 5406echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 5407 if test "$am_cv_langinfo_codeset" = yes; then 5408 5409cat >>confdefs.h <<\EOF 5410#define HAVE_LANGINFO_CODESET 1 5411EOF 5412 5413 fi 5414 5415### checks for typedefs 5416 5417echo "$as_me:5417: checking for signal global datatype" >&5 5418echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 5419if test "${cf_cv_sig_atomic_t+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421else 5422 5423 for cf_type in \ 5424 "volatile sig_atomic_t" \ 5425 "sig_atomic_t" \ 5426 "int" 5427 do 5428 cat >"conftest.$ac_ext" <<_ACEOF 5429#line 5429 "configure" 5430#include "confdefs.h" 5431 5432#include <sys/types.h> 5433#include <signal.h> 5434#include <stdio.h> 5435 5436extern $cf_type x; 5437$cf_type x; 5438static void handler(int sig) 5439{ 5440 (void)sig; 5441 x = 5; 5442} 5443int 5444main (void) 5445{ 5446signal(SIGINT, handler); 5447 x = 1 5448 ; 5449 return 0; 5450} 5451_ACEOF 5452rm -f "conftest.$ac_objext" 5453if { (eval echo "$as_me:5453: \"$ac_compile\"") >&5 5454 (eval $ac_compile) 2>&5 5455 ac_status=$? 5456 echo "$as_me:5456: \$? = $ac_status" >&5 5457 (exit "$ac_status"); } && 5458 { ac_try='test -s "conftest.$ac_objext"' 5459 { (eval echo "$as_me:5459: \"$ac_try\"") >&5 5460 (eval $ac_try) 2>&5 5461 ac_status=$? 5462 echo "$as_me:5462: \$? = $ac_status" >&5 5463 (exit "$ac_status"); }; }; then 5464 cf_cv_sig_atomic_t=$cf_type 5465else 5466 echo "$as_me: failed program was:" >&5 5467cat "conftest.$ac_ext" >&5 5468cf_cv_sig_atomic_t=no 5469fi 5470rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5471 test "$cf_cv_sig_atomic_t" != no && break 5472 done 5473 5474fi 5475 5476echo "$as_me:5476: result: $cf_cv_sig_atomic_t" >&5 5477echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 5478test "$cf_cv_sig_atomic_t" != no && 5479cat >>confdefs.h <<EOF 5480#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 5481EOF 5482 5483echo "$as_me:5483: checking for time_t" >&5 5484echo $ECHO_N "checking for time_t... $ECHO_C" >&6 5485if test "${ac_cv_type_time_t+set}" = set; then 5486 echo $ECHO_N "(cached) $ECHO_C" >&6 5487else 5488 cat >"conftest.$ac_ext" <<_ACEOF 5489#line 5489 "configure" 5490#include "confdefs.h" 5491$ac_includes_default 5492int 5493main (void) 5494{ 5495if ((time_t *) 0) 5496 return 0; 5497if (sizeof (time_t)) 5498 return 0; 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503rm -f "conftest.$ac_objext" 5504if { (eval echo "$as_me:5504: \"$ac_compile\"") >&5 5505 (eval $ac_compile) 2>&5 5506 ac_status=$? 5507 echo "$as_me:5507: \$? = $ac_status" >&5 5508 (exit "$ac_status"); } && 5509 { ac_try='test -s "conftest.$ac_objext"' 5510 { (eval echo "$as_me:5510: \"$ac_try\"") >&5 5511 (eval $ac_try) 2>&5 5512 ac_status=$? 5513 echo "$as_me:5513: \$? = $ac_status" >&5 5514 (exit "$ac_status"); }; }; then 5515 ac_cv_type_time_t=yes 5516else 5517 echo "$as_me: failed program was:" >&5 5518cat "conftest.$ac_ext" >&5 5519ac_cv_type_time_t=no 5520fi 5521rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5522fi 5523echo "$as_me:5523: result: $ac_cv_type_time_t" >&5 5524echo "${ECHO_T}$ac_cv_type_time_t" >&6 5525if test "$ac_cv_type_time_t" = yes; then 5526 : 5527else 5528 5529cat >>confdefs.h <<EOF 5530#define time_t long 5531EOF 5532 5533fi 5534 5535echo "$as_me:5535: checking for cc_t in <termios.h> or <termio.h>" >&5 5536echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 5537if test "${cf_cv_type_cc_t+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539else 5540 5541 cat >"conftest.$ac_ext" <<_ACEOF 5542#line 5542 "configure" 5543#include "confdefs.h" 5544 5545#include <sys/types.h> 5546#if defined(HAVE_TERMIOS_H) 5547#include <termios.h> 5548#else 5549#include <termio.h> 5550#include <sys/ioctl.h> 5551#endif 5552 5553int 5554main (void) 5555{ 5556cc_t x; (void)x 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561rm -f "conftest.$ac_objext" 5562if { (eval echo "$as_me:5562: \"$ac_compile\"") >&5 5563 (eval $ac_compile) 2>&5 5564 ac_status=$? 5565 echo "$as_me:5565: \$? = $ac_status" >&5 5566 (exit "$ac_status"); } && 5567 { ac_try='test -s "conftest.$ac_objext"' 5568 { (eval echo "$as_me:5568: \"$ac_try\"") >&5 5569 (eval $ac_try) 2>&5 5570 ac_status=$? 5571 echo "$as_me:5571: \$? = $ac_status" >&5 5572 (exit "$ac_status"); }; }; then 5573 cf_cv_type_cc_t=yes 5574else 5575 echo "$as_me: failed program was:" >&5 5576cat "conftest.$ac_ext" >&5 5577cf_cv_type_cc_t=no 5578fi 5579rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5580 5581fi 5582 5583echo "$as_me:5583: result: $cf_cv_type_cc_t" >&5 5584echo "${ECHO_T}$cf_cv_type_cc_t" >&6 5585test $cf_cv_type_cc_t = no && 5586cat >>confdefs.h <<\EOF 5587#define cc_t unsigned char 5588EOF 5589 5590echo "$as_me:5590: checking for nfds_t in <poll.h>" >&5 5591echo $ECHO_N "checking for nfds_t in <poll.h>... $ECHO_C" >&6 5592if test "${cf_cv_type_nfds_t+set}" = set; then 5593 echo $ECHO_N "(cached) $ECHO_C" >&6 5594else 5595 5596 cat >"conftest.$ac_ext" <<_ACEOF 5597#line 5597 "configure" 5598#include "confdefs.h" 5599 5600$ac_includes_default 5601#include <poll.h> 5602 5603int 5604main (void) 5605{ 5606nfds_t x; (void)x 5607 ; 5608 return 0; 5609} 5610_ACEOF 5611rm -f "conftest.$ac_objext" 5612if { (eval echo "$as_me:5612: \"$ac_compile\"") >&5 5613 (eval $ac_compile) 2>&5 5614 ac_status=$? 5615 echo "$as_me:5615: \$? = $ac_status" >&5 5616 (exit "$ac_status"); } && 5617 { ac_try='test -s "conftest.$ac_objext"' 5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5 5619 (eval $ac_try) 2>&5 5620 ac_status=$? 5621 echo "$as_me:5621: \$? = $ac_status" >&5 5622 (exit "$ac_status"); }; }; then 5623 cf_cv_type_nfds_t=yes 5624else 5625 echo "$as_me: failed program was:" >&5 5626cat "conftest.$ac_ext" >&5 5627cf_cv_type_nfds_t=no 5628fi 5629rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5630 5631fi 5632 5633echo "$as_me:5633: result: $cf_cv_type_nfds_t" >&5 5634echo "${ECHO_T}$cf_cv_type_nfds_t" >&6 5635test $cf_cv_type_nfds_t = no && 5636cat >>confdefs.h <<\EOF 5637#define nfds_t unsigned 5638EOF 5639 5640echo "$as_me:5640: checking for mode_t" >&5 5641echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5642if test "${ac_cv_type_mode_t+set}" = set; then 5643 echo $ECHO_N "(cached) $ECHO_C" >&6 5644else 5645 cat >"conftest.$ac_ext" <<_ACEOF 5646#line 5646 "configure" 5647#include "confdefs.h" 5648$ac_includes_default 5649int 5650main (void) 5651{ 5652if ((mode_t *) 0) 5653 return 0; 5654if (sizeof (mode_t)) 5655 return 0; 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660rm -f "conftest.$ac_objext" 5661if { (eval echo "$as_me:5661: \"$ac_compile\"") >&5 5662 (eval $ac_compile) 2>&5 5663 ac_status=$? 5664 echo "$as_me:5664: \$? = $ac_status" >&5 5665 (exit "$ac_status"); } && 5666 { ac_try='test -s "conftest.$ac_objext"' 5667 { (eval echo "$as_me:5667: \"$ac_try\"") >&5 5668 (eval $ac_try) 2>&5 5669 ac_status=$? 5670 echo "$as_me:5670: \$? = $ac_status" >&5 5671 (exit "$ac_status"); }; }; then 5672 ac_cv_type_mode_t=yes 5673else 5674 echo "$as_me: failed program was:" >&5 5675cat "conftest.$ac_ext" >&5 5676ac_cv_type_mode_t=no 5677fi 5678rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5679fi 5680echo "$as_me:5680: result: $ac_cv_type_mode_t" >&5 5681echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5682if test "$ac_cv_type_mode_t" = yes; then 5683 : 5684else 5685 5686cat >>confdefs.h <<EOF 5687#define mode_t int 5688EOF 5689 5690fi 5691 5692echo "$as_me:5692: checking for pid_t" >&5 5693echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5694if test "${ac_cv_type_pid_t+set}" = set; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 cat >"conftest.$ac_ext" <<_ACEOF 5698#line 5698 "configure" 5699#include "confdefs.h" 5700$ac_includes_default 5701int 5702main (void) 5703{ 5704if ((pid_t *) 0) 5705 return 0; 5706if (sizeof (pid_t)) 5707 return 0; 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712rm -f "conftest.$ac_objext" 5713if { (eval echo "$as_me:5713: \"$ac_compile\"") >&5 5714 (eval $ac_compile) 2>&5 5715 ac_status=$? 5716 echo "$as_me:5716: \$? = $ac_status" >&5 5717 (exit "$ac_status"); } && 5718 { ac_try='test -s "conftest.$ac_objext"' 5719 { (eval echo "$as_me:5719: \"$ac_try\"") >&5 5720 (eval $ac_try) 2>&5 5721 ac_status=$? 5722 echo "$as_me:5722: \$? = $ac_status" >&5 5723 (exit "$ac_status"); }; }; then 5724 ac_cv_type_pid_t=yes 5725else 5726 echo "$as_me: failed program was:" >&5 5727cat "conftest.$ac_ext" >&5 5728ac_cv_type_pid_t=no 5729fi 5730rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5731fi 5732echo "$as_me:5732: result: $ac_cv_type_pid_t" >&5 5733echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5734if test "$ac_cv_type_pid_t" = yes; then 5735 : 5736else 5737 5738cat >>confdefs.h <<EOF 5739#define pid_t int 5740EOF 5741 5742fi 5743 5744echo "$as_me:5744: checking for uid_t in sys/types.h" >&5 5745echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5746if test "${ac_cv_type_uid_t+set}" = set; then 5747 echo $ECHO_N "(cached) $ECHO_C" >&6 5748else 5749 cat >"conftest.$ac_ext" <<_ACEOF 5750#line 5750 "configure" 5751#include "confdefs.h" 5752#include <sys/types.h> 5753 5754_ACEOF 5755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5756 $EGREP "uid_t" >/dev/null 2>&1; then 5757 ac_cv_type_uid_t=yes 5758else 5759 ac_cv_type_uid_t=no 5760fi 5761rm -rf conftest* 5762 5763fi 5764echo "$as_me:5764: result: $ac_cv_type_uid_t" >&5 5765echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5766if test $ac_cv_type_uid_t = no; then 5767 5768cat >>confdefs.h <<\EOF 5769#define uid_t int 5770EOF 5771 5772cat >>confdefs.h <<\EOF 5773#define gid_t int 5774EOF 5775 5776fi 5777 5778echo "$as_me:5778: checking for off_t" >&5 5779echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5780if test "${ac_cv_type_off_t+set}" = set; then 5781 echo $ECHO_N "(cached) $ECHO_C" >&6 5782else 5783 cat >"conftest.$ac_ext" <<_ACEOF 5784#line 5784 "configure" 5785#include "confdefs.h" 5786$ac_includes_default 5787int 5788main (void) 5789{ 5790if ((off_t *) 0) 5791 return 0; 5792if (sizeof (off_t)) 5793 return 0; 5794 ; 5795 return 0; 5796} 5797_ACEOF 5798rm -f "conftest.$ac_objext" 5799if { (eval echo "$as_me:5799: \"$ac_compile\"") >&5 5800 (eval $ac_compile) 2>&5 5801 ac_status=$? 5802 echo "$as_me:5802: \$? = $ac_status" >&5 5803 (exit "$ac_status"); } && 5804 { ac_try='test -s "conftest.$ac_objext"' 5805 { (eval echo "$as_me:5805: \"$ac_try\"") >&5 5806 (eval $ac_try) 2>&5 5807 ac_status=$? 5808 echo "$as_me:5808: \$? = $ac_status" >&5 5809 (exit "$ac_status"); }; }; then 5810 ac_cv_type_off_t=yes 5811else 5812 echo "$as_me: failed program was:" >&5 5813cat "conftest.$ac_ext" >&5 5814ac_cv_type_off_t=no 5815fi 5816rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5817fi 5818echo "$as_me:5818: result: $ac_cv_type_off_t" >&5 5819echo "${ECHO_T}$ac_cv_type_off_t" >&6 5820if test "$ac_cv_type_off_t" = yes; then 5821 : 5822else 5823 5824cat >>confdefs.h <<EOF 5825#define off_t long 5826EOF 5827 5828fi 5829 5830### checks for library functions 5831 5832for ac_func in \ 5833 gethostname \ 5834 getusershell \ 5835 endusershell \ 5836 getlogin \ 5837 initgroups \ 5838 mkdtemp \ 5839 putenv \ 5840 unsetenv \ 5841 sched_yield \ 5842 setpgid \ 5843 strftime \ 5844 tcgetattr \ 5845 waitpid \ 5846 wcswidth \ 5847 wcwidth 5848do 5849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5850echo "$as_me:5850: checking for $ac_func" >&5 5851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5852if eval "test \"\${$as_ac_var+set}\" = set"; then 5853 echo $ECHO_N "(cached) $ECHO_C" >&6 5854else 5855 cat >"conftest.$ac_ext" <<_ACEOF 5856#line 5856 "configure" 5857#include "confdefs.h" 5858#define $ac_func autoconf_temporary 5859#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5860#undef $ac_func 5861 5862#ifdef __cplusplus 5863extern "C" 5864#endif 5865 5866/* We use char because int might match the return type of a gcc2 5867 builtin and then its argument prototype would still apply. */ 5868char $ac_func (void); 5869 5870int 5871main (void) 5872{ 5873 5874/* The GNU C library defines stubs for functions which it implements 5875 to always fail with ENOSYS. Some functions are actually named 5876 something starting with __ and the normal name is an alias. */ 5877#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5878#error found stub for $ac_func 5879#endif 5880 5881 return $ac_func (); 5882 ; 5883 return 0; 5884} 5885_ACEOF 5886rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5887if { (eval echo "$as_me:5887: \"$ac_link\"") >&5 5888 (eval $ac_link) 2>&5 5889 ac_status=$? 5890 echo "$as_me:5890: \$? = $ac_status" >&5 5891 (exit "$ac_status"); } && 5892 { ac_try='test -s "conftest$ac_exeext"' 5893 { (eval echo "$as_me:5893: \"$ac_try\"") >&5 5894 (eval $ac_try) 2>&5 5895 ac_status=$? 5896 echo "$as_me:5896: \$? = $ac_status" >&5 5897 (exit "$ac_status"); }; }; then 5898 eval "$as_ac_var=yes" 5899else 5900 echo "$as_me: failed program was:" >&5 5901cat "conftest.$ac_ext" >&5 5902eval "$as_ac_var=no" 5903fi 5904rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5905fi 5906echo "$as_me:5906: result: `eval echo '${'"$as_ac_var"'}'`" >&5 5907echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 5908if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 5909 cat >>confdefs.h <<EOF 5910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5911EOF 5912 5913fi 5914done 5915 5916for ac_header in \ 5917unistd.h \ 5918 5919do 5920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5921echo "$as_me:5921: checking for $ac_header" >&5 5922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5923if eval "test \"\${$as_ac_Header+set}\" = set"; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 cat >"conftest.$ac_ext" <<_ACEOF 5927#line 5927 "configure" 5928#include "confdefs.h" 5929#include <$ac_header> 5930_ACEOF 5931if { (eval echo "$as_me:5931: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5932 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5933 ac_status=$? 5934 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5935 rm -f conftest.er1 5936 cat conftest.err >&5 5937 echo "$as_me:5937: \$? = $ac_status" >&5 5938 (exit "$ac_status"); } >/dev/null; then 5939 if test -s conftest.err; then 5940 ac_cpp_err=$ac_c_preproc_warn_flag 5941 else 5942 ac_cpp_err= 5943 fi 5944else 5945 ac_cpp_err=yes 5946fi 5947if test -z "$ac_cpp_err"; then 5948 eval "$as_ac_Header=yes" 5949else 5950 echo "$as_me: failed program was:" >&5 5951 cat "conftest.$ac_ext" >&5 5952 eval "$as_ac_Header=no" 5953fi 5954rm -f conftest.err "conftest.$ac_ext" 5955fi 5956echo "$as_me:5956: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5957echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5958if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5959 cat >>confdefs.h <<EOF 5960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5961EOF 5962 5963fi 5964done 5965 5966echo "$as_me:5966: checking for working mkstemp" >&5 5967echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 5968if test "${cf_cv_func_mkstemp+set}" = set; then 5969 echo $ECHO_N "(cached) $ECHO_C" >&6 5970else 5971 5972rm -rf ./conftest* 5973if test "$cross_compiling" = yes; then 5974 cf_cv_func_mkstemp=maybe 5975else 5976 cat >"conftest.$ac_ext" <<_ACEOF 5977#line 5977 "configure" 5978#include "confdefs.h" 5979 5980$ac_includes_default 5981 5982int main(void) 5983{ 5984 char *tmpl = "conftestXXXXXX"; 5985 char name[2][80]; 5986 int n; 5987 int result = 0; 5988 int fd; 5989 struct stat sb; 5990 5991 umask(077); 5992 for (n = 0; n < 2; ++n) { 5993 strcpy(name[n], tmpl); 5994 if ((fd = mkstemp(name[n])) >= 0) { 5995 if (!strcmp(name[n], tmpl) 5996 || stat(name[n], &sb) != 0 5997 || (sb.st_mode & S_IFMT) != S_IFREG 5998 || (sb.st_mode & 077) != 0) { 5999 result = 1; 6000 } 6001 close(fd); 6002 } 6003 } 6004 if (result == 0 6005 && !strcmp(name[0], name[1])) 6006 result = 1; 6007 ${cf_cv_main_return:-return}(result); 6008} 6009 6010_ACEOF 6011rm -f "conftest$ac_exeext" 6012if { (eval echo "$as_me:6012: \"$ac_link\"") >&5 6013 (eval $ac_link) 2>&5 6014 ac_status=$? 6015 echo "$as_me:6015: \$? = $ac_status" >&5 6016 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6017 { (eval echo "$as_me:6017: \"$ac_try\"") >&5 6018 (eval $ac_try) 2>&5 6019 ac_status=$? 6020 echo "$as_me:6020: \$? = $ac_status" >&5 6021 (exit "$ac_status"); }; }; then 6022 cf_cv_func_mkstemp=yes 6023 6024else 6025 echo "$as_me: program exited with status $ac_status" >&5 6026echo "$as_me: failed program was:" >&5 6027cat "conftest.$ac_ext" >&5 6028cf_cv_func_mkstemp=no 6029 6030fi 6031rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6032fi 6033 6034fi 6035echo "$as_me:6035: result: $cf_cv_func_mkstemp" >&5 6036echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 6037if test "x$cf_cv_func_mkstemp" = xmaybe ; then 6038 echo "$as_me:6038: checking for mkstemp" >&5 6039echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 6040if test "${ac_cv_func_mkstemp+set}" = set; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042else 6043 cat >"conftest.$ac_ext" <<_ACEOF 6044#line 6044 "configure" 6045#include "confdefs.h" 6046#define mkstemp autoconf_temporary 6047#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6048#undef mkstemp 6049 6050#ifdef __cplusplus 6051extern "C" 6052#endif 6053 6054/* We use char because int might match the return type of a gcc2 6055 builtin and then its argument prototype would still apply. */ 6056char mkstemp (void); 6057 6058int 6059main (void) 6060{ 6061 6062/* The GNU C library defines stubs for functions which it implements 6063 to always fail with ENOSYS. Some functions are actually named 6064 something starting with __ and the normal name is an alias. */ 6065#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 6066#error found stub for mkstemp 6067#endif 6068 6069 return mkstemp (); 6070 ; 6071 return 0; 6072} 6073_ACEOF 6074rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6075if { (eval echo "$as_me:6075: \"$ac_link\"") >&5 6076 (eval $ac_link) 2>&5 6077 ac_status=$? 6078 echo "$as_me:6078: \$? = $ac_status" >&5 6079 (exit "$ac_status"); } && 6080 { ac_try='test -s "conftest$ac_exeext"' 6081 { (eval echo "$as_me:6081: \"$ac_try\"") >&5 6082 (eval $ac_try) 2>&5 6083 ac_status=$? 6084 echo "$as_me:6084: \$? = $ac_status" >&5 6085 (exit "$ac_status"); }; }; then 6086 ac_cv_func_mkstemp=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089cat "conftest.$ac_ext" >&5 6090ac_cv_func_mkstemp=no 6091fi 6092rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6093fi 6094echo "$as_me:6094: result: $ac_cv_func_mkstemp" >&5 6095echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 6096 6097fi 6098if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 6099 6100cat >>confdefs.h <<\EOF 6101#define HAVE_MKSTEMP 1 6102EOF 6103 6104fi 6105 6106echo "$as_me:6106: checking if setitimer is available" >&5 6107echo $ECHO_N "checking if setitimer is available... $ECHO_C" >&6 6108if test "${cf_cv_func_setitimer+set}" = set; then 6109 echo $ECHO_N "(cached) $ECHO_C" >&6 6110else 6111 6112cat >"conftest.$ac_ext" <<_ACEOF 6113#line 6113 "configure" 6114#include "confdefs.h" 6115 6116$ac_includes_default 6117#include <sys/time.h> 6118 6119int 6120main (void) 6121{ 6122 6123 struct itimerval it; 6124 memset(&it, 0, sizeof(struct itimerval)); 6125 it.it_value.tv_sec = 1; 6126 setitimer(ITIMER_REAL, &it, NULL); 6127 6128 ; 6129 return 0; 6130} 6131_ACEOF 6132rm -f "conftest.$ac_objext" 6133if { (eval echo "$as_me:6133: \"$ac_compile\"") >&5 6134 (eval $ac_compile) 2>&5 6135 ac_status=$? 6136 echo "$as_me:6136: \$? = $ac_status" >&5 6137 (exit "$ac_status"); } && 6138 { ac_try='test -s "conftest.$ac_objext"' 6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5 6140 (eval $ac_try) 2>&5 6141 ac_status=$? 6142 echo "$as_me:6142: \$? = $ac_status" >&5 6143 (exit "$ac_status"); }; }; then 6144 cf_cv_func_setitimer=yes 6145else 6146 echo "$as_me: failed program was:" >&5 6147cat "conftest.$ac_ext" >&5 6148cf_cv_func_setitimer=no 6149fi 6150rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6151 6152fi 6153echo "$as_me:6153: result: $cf_cv_func_setitimer" >&5 6154echo "${ECHO_T}$cf_cv_func_setitimer" >&6 6155test "$cf_cv_func_setitimer" != no && 6156cat >>confdefs.h <<\EOF 6157#define HAVE_SETITIMER 1 6158EOF 6159 6160for ac_header in lastlog.h paths.h 6161do 6162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6163echo "$as_me:6163: checking for $ac_header" >&5 6164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6165if eval "test \"\${$as_ac_Header+set}\" = set"; then 6166 echo $ECHO_N "(cached) $ECHO_C" >&6 6167else 6168 cat >"conftest.$ac_ext" <<_ACEOF 6169#line 6169 "configure" 6170#include "confdefs.h" 6171#include <$ac_header> 6172_ACEOF 6173if { (eval echo "$as_me:6173: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6174 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6175 ac_status=$? 6176 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6177 rm -f conftest.er1 6178 cat conftest.err >&5 6179 echo "$as_me:6179: \$? = $ac_status" >&5 6180 (exit "$ac_status"); } >/dev/null; then 6181 if test -s conftest.err; then 6182 ac_cpp_err=$ac_c_preproc_warn_flag 6183 else 6184 ac_cpp_err= 6185 fi 6186else 6187 ac_cpp_err=yes 6188fi 6189if test -z "$ac_cpp_err"; then 6190 eval "$as_ac_Header=yes" 6191else 6192 echo "$as_me: failed program was:" >&5 6193 cat "conftest.$ac_ext" >&5 6194 eval "$as_ac_Header=no" 6195fi 6196rm -f conftest.err "conftest.$ac_ext" 6197fi 6198echo "$as_me:6198: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6199echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6200if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6201 cat >>confdefs.h <<EOF 6202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6203EOF 6204 6205fi 6206done 6207 6208echo "$as_me:6208: checking for lastlog path" >&5 6209echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 6210if test "${cf_cv_path_lastlog+set}" = set; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 6214cat >"conftest.$ac_ext" <<_ACEOF 6215#line 6215 "configure" 6216#include "confdefs.h" 6217 6218#include <sys/types.h> 6219#ifdef HAVE_LASTLOG_H 6220#include <lastlog.h> 6221#else 6222#ifdef HAVE_PATHS_H 6223#include <paths.h> 6224#endif 6225#endif 6226int 6227main (void) 6228{ 6229char *path = _PATH_LASTLOG; (void)path 6230 ; 6231 return 0; 6232} 6233_ACEOF 6234rm -f "conftest.$ac_objext" 6235if { (eval echo "$as_me:6235: \"$ac_compile\"") >&5 6236 (eval $ac_compile) 2>&5 6237 ac_status=$? 6238 echo "$as_me:6238: \$? = $ac_status" >&5 6239 (exit "$ac_status"); } && 6240 { ac_try='test -s "conftest.$ac_objext"' 6241 { (eval echo "$as_me:6241: \"$ac_try\"") >&5 6242 (eval $ac_try) 2>&5 6243 ac_status=$? 6244 echo "$as_me:6244: \$? = $ac_status" >&5 6245 (exit "$ac_status"); }; }; then 6246 cf_cv_path_lastlog="_PATH_LASTLOG" 6247else 6248 echo "$as_me: failed program was:" >&5 6249cat "conftest.$ac_ext" >&5 6250if test -f /usr/adm/lastlog ; then 6251 cf_cv_path_lastlog=/usr/adm/lastlog 6252 else 6253 cf_cv_path_lastlog=no 6254 fi 6255fi 6256rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6257 6258fi 6259echo "$as_me:6259: result: $cf_cv_path_lastlog" >&5 6260echo "${ECHO_T}$cf_cv_path_lastlog" >&6 6261test "$cf_cv_path_lastlog" != no && 6262cat >>confdefs.h <<\EOF 6263#define USE_LASTLOG 1 6264EOF 6265 6266echo "$as_me:6266: checking for utmp implementation" >&5 6267echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 6268if test "${cf_cv_have_utmp+set}" = set; then 6269 echo $ECHO_N "(cached) $ECHO_C" >&6 6270else 6271 6272 cf_cv_have_utmp=no 6273for cf_header in utmpx utmp ; do 6274cf_utmp_includes=" 6275#include <sys/types.h> 6276#include <${cf_header}.h> 6277#define getutent getutxent 6278#ifdef USE_LASTLOG 6279#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6280#endif 6281" 6282 cat >"conftest.$ac_ext" <<_ACEOF 6283#line 6283 "configure" 6284#include "confdefs.h" 6285$cf_utmp_includes 6286int 6287main (void) 6288{ 6289struct $cf_header x; 6290 char *name = x.ut_name; /* utmp.h and compatible definitions */ 6291 (void)x; 6292 (void)name; 6293 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298rm -f "conftest.$ac_objext" 6299if { (eval echo "$as_me:6299: \"$ac_compile\"") >&5 6300 (eval $ac_compile) 2>&5 6301 ac_status=$? 6302 echo "$as_me:6302: \$? = $ac_status" >&5 6303 (exit "$ac_status"); } && 6304 { ac_try='test -s "conftest.$ac_objext"' 6305 { (eval echo "$as_me:6305: \"$ac_try\"") >&5 6306 (eval $ac_try) 2>&5 6307 ac_status=$? 6308 echo "$as_me:6308: \$? = $ac_status" >&5 6309 (exit "$ac_status"); }; }; then 6310 cf_cv_have_utmp=$cf_header 6311 break 6312else 6313 echo "$as_me: failed program was:" >&5 6314cat "conftest.$ac_ext" >&5 6315 6316 cat >"conftest.$ac_ext" <<_ACEOF 6317#line 6317 "configure" 6318#include "confdefs.h" 6319$cf_utmp_includes 6320int 6321main (void) 6322{ 6323struct $cf_header x; 6324 char *name = x.ut_user; /* utmpx.h must declare this */ 6325 (void)x; 6326 (void)name; 6327 6328 ; 6329 return 0; 6330} 6331_ACEOF 6332rm -f "conftest.$ac_objext" 6333if { (eval echo "$as_me:6333: \"$ac_compile\"") >&5 6334 (eval $ac_compile) 2>&5 6335 ac_status=$? 6336 echo "$as_me:6336: \$? = $ac_status" >&5 6337 (exit "$ac_status"); } && 6338 { ac_try='test -s "conftest.$ac_objext"' 6339 { (eval echo "$as_me:6339: \"$ac_try\"") >&5 6340 (eval $ac_try) 2>&5 6341 ac_status=$? 6342 echo "$as_me:6342: \$? = $ac_status" >&5 6343 (exit "$ac_status"); }; }; then 6344 cf_cv_have_utmp=$cf_header 6345 break 6346 6347else 6348 echo "$as_me: failed program was:" >&5 6349cat "conftest.$ac_ext" >&5 6350fi 6351rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6352fi 6353rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6354done 6355 6356fi 6357echo "$as_me:6357: result: $cf_cv_have_utmp" >&5 6358echo "${ECHO_T}$cf_cv_have_utmp" >&6 6359 6360if test "$cf_cv_have_utmp" != no ; then 6361 6362cat >>confdefs.h <<\EOF 6363#define HAVE_UTMP 1 6364EOF 6365 6366 test "$cf_cv_have_utmp" = utmpx && 6367cat >>confdefs.h <<\EOF 6368#define UTMPX_FOR_UTMP 1 6369EOF 6370 6371if test "$cf_cv_have_utmp" != no ; then 6372echo "$as_me:6372: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 6373echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 6374if test "${cf_cv_have_utmp_ut_host+set}" = set; then 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 6376else 6377 6378 cat >"conftest.$ac_ext" <<_ACEOF 6379#line 6379 "configure" 6380#include "confdefs.h" 6381 6382#include <sys/types.h> 6383#include <${cf_cv_have_utmp}.h> 6384int 6385main (void) 6386{ 6387struct $cf_cv_have_utmp x; 6388 char *y = &x.ut_host[0]; 6389 (void)x; 6390 (void)y 6391 ; 6392 return 0; 6393} 6394_ACEOF 6395rm -f "conftest.$ac_objext" 6396if { (eval echo "$as_me:6396: \"$ac_compile\"") >&5 6397 (eval $ac_compile) 2>&5 6398 ac_status=$? 6399 echo "$as_me:6399: \$? = $ac_status" >&5 6400 (exit "$ac_status"); } && 6401 { ac_try='test -s "conftest.$ac_objext"' 6402 { (eval echo "$as_me:6402: \"$ac_try\"") >&5 6403 (eval $ac_try) 2>&5 6404 ac_status=$? 6405 echo "$as_me:6405: \$? = $ac_status" >&5 6406 (exit "$ac_status"); }; }; then 6407 cf_cv_have_utmp_ut_host=yes 6408else 6409 echo "$as_me: failed program was:" >&5 6410cat "conftest.$ac_ext" >&5 6411cf_cv_have_utmp_ut_host=no 6412fi 6413rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6414 6415fi 6416 6417echo "$as_me:6417: result: $cf_cv_have_utmp_ut_host" >&5 6418echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 6419test "$cf_cv_have_utmp_ut_host" != no && 6420cat >>confdefs.h <<\EOF 6421#define HAVE_UTMP_UT_HOST 1 6422EOF 6423 6424fi 6425 6426if test "$cf_cv_have_utmp" != no ; then 6427echo "$as_me:6427: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 6428echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 6429if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 6430 echo $ECHO_N "(cached) $ECHO_C" >&6 6431else 6432 6433 cat >"conftest.$ac_ext" <<_ACEOF 6434#line 6434 "configure" 6435#include "confdefs.h" 6436 6437#include <sys/types.h> 6438#include <${cf_cv_have_utmp}.h> 6439int 6440main (void) 6441{ 6442struct $cf_cv_have_utmp x; 6443 int y = x.ut_syslen; 6444 (void)x; 6445 (void)y 6446 ; 6447 return 0; 6448} 6449_ACEOF 6450rm -f "conftest.$ac_objext" 6451if { (eval echo "$as_me:6451: \"$ac_compile\"") >&5 6452 (eval $ac_compile) 2>&5 6453 ac_status=$? 6454 echo "$as_me:6454: \$? = $ac_status" >&5 6455 (exit "$ac_status"); } && 6456 { ac_try='test -s "conftest.$ac_objext"' 6457 { (eval echo "$as_me:6457: \"$ac_try\"") >&5 6458 (eval $ac_try) 2>&5 6459 ac_status=$? 6460 echo "$as_me:6460: \$? = $ac_status" >&5 6461 (exit "$ac_status"); }; }; then 6462 cf_cv_have_utmp_ut_syslen=yes 6463else 6464 echo "$as_me: failed program was:" >&5 6465cat "conftest.$ac_ext" >&5 6466cf_cv_have_utmp_ut_syslen=no 6467fi 6468rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6469 6470fi 6471 6472echo "$as_me:6472: result: $cf_cv_have_utmp_ut_syslen" >&5 6473echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 6474test "$cf_cv_have_utmp_ut_syslen" != no && 6475cat >>confdefs.h <<\EOF 6476#define HAVE_UTMP_UT_SYSLEN 1 6477EOF 6478 6479fi 6480 6481if test "$cf_cv_have_utmp" != no ; then 6482echo "$as_me:6482: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 6483echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 6484if test "${cf_cv_have_utmp_ut_name+set}" = set; then 6485 echo $ECHO_N "(cached) $ECHO_C" >&6 6486else 6487 6488 cf_cv_have_utmp_ut_name=no 6489cf_utmp_includes=" 6490#include <sys/types.h> 6491#include <${cf_cv_have_utmp}.h> 6492#define getutent getutxent 6493#ifdef USE_LASTLOG 6494#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6495#endif 6496" 6497for cf_header in ut_name ut_user ; do 6498 cat >"conftest.$ac_ext" <<_ACEOF 6499#line 6499 "configure" 6500#include "confdefs.h" 6501$cf_utmp_includes 6502int 6503main (void) 6504{ 6505struct $cf_cv_have_utmp x; 6506 char *name = x.$cf_header; 6507 (void)x; 6508 (void)name; 6509 6510 ; 6511 return 0; 6512} 6513_ACEOF 6514rm -f "conftest.$ac_objext" 6515if { (eval echo "$as_me:6515: \"$ac_compile\"") >&5 6516 (eval $ac_compile) 2>&5 6517 ac_status=$? 6518 echo "$as_me:6518: \$? = $ac_status" >&5 6519 (exit "$ac_status"); } && 6520 { ac_try='test -s "conftest.$ac_objext"' 6521 { (eval echo "$as_me:6521: \"$ac_try\"") >&5 6522 (eval $ac_try) 2>&5 6523 ac_status=$? 6524 echo "$as_me:6524: \$? = $ac_status" >&5 6525 (exit "$ac_status"); }; }; then 6526 cf_cv_have_utmp_ut_name=$cf_header 6527 break 6528else 6529 echo "$as_me: failed program was:" >&5 6530cat "conftest.$ac_ext" >&5 6531fi 6532rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6533done 6534 6535fi 6536echo "$as_me:6536: result: $cf_cv_have_utmp_ut_name" >&5 6537echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 6538 6539case "$cf_cv_have_utmp_ut_name" in 6540(no) 6541 { { echo "$as_me:6541: error: Cannot find declaration for ut.ut_name" >&5 6542echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 6543 { (exit 1); exit 1; }; } 6544 ;; 6545(ut_user) 6546 6547cat >>confdefs.h <<\EOF 6548#define ut_name ut_user 6549EOF 6550 6551 ;; 6552esac 6553fi 6554 6555if test "$cf_cv_have_utmp" != no ; then 6556echo "$as_me:6556: checking for exit-status in $cf_cv_have_utmp" >&5 6557echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 6558if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 6559 echo $ECHO_N "(cached) $ECHO_C" >&6 6560else 6561 6562for cf_result in \ 6563 ut_exit.__e_exit \ 6564 ut_exit.e_exit \ 6565 ut_exit.ut_e_exit \ 6566 ut_exit.ut_exit 6567do 6568cat >"conftest.$ac_ext" <<_ACEOF 6569#line 6569 "configure" 6570#include "confdefs.h" 6571 6572#include <sys/types.h> 6573#include <${cf_cv_have_utmp}.h> 6574int 6575main (void) 6576{ 6577struct $cf_cv_have_utmp x; 6578 long y = x.$cf_result = 0; 6579 (void)x; 6580 (void)y 6581 ; 6582 return 0; 6583} 6584_ACEOF 6585rm -f "conftest.$ac_objext" 6586if { (eval echo "$as_me:6586: \"$ac_compile\"") >&5 6587 (eval $ac_compile) 2>&5 6588 ac_status=$? 6589 echo "$as_me:6589: \$? = $ac_status" >&5 6590 (exit "$ac_status"); } && 6591 { ac_try='test -s "conftest.$ac_objext"' 6592 { (eval echo "$as_me:6592: \"$ac_try\"") >&5 6593 (eval $ac_try) 2>&5 6594 ac_status=$? 6595 echo "$as_me:6595: \$? = $ac_status" >&5 6596 (exit "$ac_status"); }; }; then 6597 cf_cv_have_utmp_ut_xstatus=$cf_result 6598 break 6599else 6600 echo "$as_me: failed program was:" >&5 6601cat "conftest.$ac_ext" >&5 6602cf_cv_have_utmp_ut_xstatus=no 6603fi 6604rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6605done 6606 6607fi 6608echo "$as_me:6608: result: $cf_cv_have_utmp_ut_xstatus" >&5 6609echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 6610if test "$cf_cv_have_utmp_ut_xstatus" != no ; then 6611 6612cat >>confdefs.h <<\EOF 6613#define HAVE_UTMP_UT_XSTATUS 1 6614EOF 6615 6616cat >>confdefs.h <<EOF 6617#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 6618EOF 6619 6620fi 6621fi 6622 6623if test "$cf_cv_have_utmp" != no ; then 6624echo "$as_me:6624: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 6625echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 6626if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 6627 echo $ECHO_N "(cached) $ECHO_C" >&6 6628else 6629 6630 cat >"conftest.$ac_ext" <<_ACEOF 6631#line 6631 "configure" 6632#include "confdefs.h" 6633 6634#include <sys/types.h> 6635#include <${cf_cv_have_utmp}.h> 6636int 6637main (void) 6638{ 6639struct $cf_cv_have_utmp x; 6640 long y = x.ut_xtime = 0; 6641 (void)x; 6642 (void)y 6643 ; 6644 return 0; 6645} 6646_ACEOF 6647rm -f "conftest.$ac_objext" 6648if { (eval echo "$as_me:6648: \"$ac_compile\"") >&5 6649 (eval $ac_compile) 2>&5 6650 ac_status=$? 6651 echo "$as_me:6651: \$? = $ac_status" >&5 6652 (exit "$ac_status"); } && 6653 { ac_try='test -s "conftest.$ac_objext"' 6654 { (eval echo "$as_me:6654: \"$ac_try\"") >&5 6655 (eval $ac_try) 2>&5 6656 ac_status=$? 6657 echo "$as_me:6657: \$? = $ac_status" >&5 6658 (exit "$ac_status"); }; }; then 6659 cf_cv_have_utmp_ut_xtime=yes 6660else 6661 echo "$as_me: failed program was:" >&5 6662cat "conftest.$ac_ext" >&5 6663cat >"conftest.$ac_ext" <<_ACEOF 6664#line 6664 "configure" 6665#include "confdefs.h" 6666 6667#include <sys/types.h> 6668#include <${cf_cv_have_utmp}.h> 6669int 6670main (void) 6671{ 6672struct $cf_cv_have_utmp x; 6673 long y = x.ut_tv.tv_sec; 6674 (void)x; 6675 (void)y 6676 ; 6677 return 0; 6678} 6679_ACEOF 6680rm -f "conftest.$ac_objext" 6681if { (eval echo "$as_me:6681: \"$ac_compile\"") >&5 6682 (eval $ac_compile) 2>&5 6683 ac_status=$? 6684 echo "$as_me:6684: \$? = $ac_status" >&5 6685 (exit "$ac_status"); } && 6686 { ac_try='test -s "conftest.$ac_objext"' 6687 { (eval echo "$as_me:6687: \"$ac_try\"") >&5 6688 (eval $ac_try) 2>&5 6689 ac_status=$? 6690 echo "$as_me:6690: \$? = $ac_status" >&5 6691 (exit "$ac_status"); }; }; then 6692 cf_cv_have_utmp_ut_xtime=define 6693else 6694 echo "$as_me: failed program was:" >&5 6695cat "conftest.$ac_ext" >&5 6696cf_cv_have_utmp_ut_xtime=no 6697fi 6698rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6699 6700fi 6701rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6702 6703fi 6704echo "$as_me:6704: result: $cf_cv_have_utmp_ut_xtime" >&5 6705echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 6706if test "$cf_cv_have_utmp_ut_xtime" != no ; then 6707 6708cat >>confdefs.h <<\EOF 6709#define HAVE_UTMP_UT_XTIME 1 6710EOF 6711 6712 if test "$cf_cv_have_utmp_ut_xtime" = define ; then 6713 6714cat >>confdefs.h <<\EOF 6715#define ut_xtime ut_tv.tv_sec 6716EOF 6717 6718 fi 6719fi 6720fi 6721 6722if test "$cf_cv_have_utmp" != no ; then 6723echo "$as_me:6723: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 6724echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 6725if test "${cf_cv_have_utmp_ut_session+set}" = set; then 6726 echo $ECHO_N "(cached) $ECHO_C" >&6 6727else 6728 6729 cat >"conftest.$ac_ext" <<_ACEOF 6730#line 6730 "configure" 6731#include "confdefs.h" 6732 6733#include <sys/types.h> 6734#include <${cf_cv_have_utmp}.h> 6735int 6736main (void) 6737{ 6738static struct $cf_cv_have_utmp x; 6739 long y = x.ut_session; 6740 (void)x; 6741 (void)y 6742 ; 6743 return 0; 6744} 6745_ACEOF 6746rm -f "conftest.$ac_objext" 6747if { (eval echo "$as_me:6747: \"$ac_compile\"") >&5 6748 (eval $ac_compile) 2>&5 6749 ac_status=$? 6750 echo "$as_me:6750: \$? = $ac_status" >&5 6751 (exit "$ac_status"); } && 6752 { ac_try='test -s "conftest.$ac_objext"' 6753 { (eval echo "$as_me:6753: \"$ac_try\"") >&5 6754 (eval $ac_try) 2>&5 6755 ac_status=$? 6756 echo "$as_me:6756: \$? = $ac_status" >&5 6757 (exit "$ac_status"); }; }; then 6758 cf_cv_have_utmp_ut_session=yes 6759else 6760 echo "$as_me: failed program was:" >&5 6761cat "conftest.$ac_ext" >&5 6762cf_cv_have_utmp_ut_session=no 6763fi 6764rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6765 6766fi 6767echo "$as_me:6767: result: $cf_cv_have_utmp_ut_session" >&5 6768echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 6769if test "$cf_cv_have_utmp_ut_session" != no ; then 6770 6771cat >>confdefs.h <<\EOF 6772#define HAVE_UTMP_UT_SESSION 1 6773EOF 6774 6775fi 6776fi 6777 6778echo "$as_me:6778: checking if $cf_cv_have_utmp is SYSV flavor" >&5 6779echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 6780if test "${cf_cv_sysv_utmp+set}" = set; then 6781 echo $ECHO_N "(cached) $ECHO_C" >&6 6782else 6783 6784test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 6785cat >"conftest.$ac_ext" <<_ACEOF 6786#line 6786 "configure" 6787#include "confdefs.h" 6788 6789#include <sys/types.h> 6790#include <${cf_cv_have_utmp}.h> 6791int 6792main (void) 6793{ 6794 6795struct $cf_cv_have_utmp x; 6796 set${cf_prefix}ent (); 6797 get${cf_prefix}id(&x); 6798 put${cf_prefix}line(&x); 6799 end${cf_prefix}ent(); 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6805if { (eval echo "$as_me:6805: \"$ac_link\"") >&5 6806 (eval $ac_link) 2>&5 6807 ac_status=$? 6808 echo "$as_me:6808: \$? = $ac_status" >&5 6809 (exit "$ac_status"); } && 6810 { ac_try='test -s "conftest$ac_exeext"' 6811 { (eval echo "$as_me:6811: \"$ac_try\"") >&5 6812 (eval $ac_try) 2>&5 6813 ac_status=$? 6814 echo "$as_me:6814: \$? = $ac_status" >&5 6815 (exit "$ac_status"); }; }; then 6816 cf_cv_sysv_utmp=yes 6817else 6818 echo "$as_me: failed program was:" >&5 6819cat "conftest.$ac_ext" >&5 6820cf_cv_sysv_utmp=no 6821fi 6822rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6823 6824fi 6825echo "$as_me:6825: result: $cf_cv_sysv_utmp" >&5 6826echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 6827test "$cf_cv_sysv_utmp" = yes && 6828cat >>confdefs.h <<\EOF 6829#define USE_SYSV_UTMP 1 6830EOF 6831 6832fi 6833 6834for ac_header in lastlog.h 6835do 6836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6837echo "$as_me:6837: checking for $ac_header" >&5 6838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6839if eval "test \"\${$as_ac_Header+set}\" = set"; then 6840 echo $ECHO_N "(cached) $ECHO_C" >&6 6841else 6842 cat >"conftest.$ac_ext" <<_ACEOF 6843#line 6843 "configure" 6844#include "confdefs.h" 6845#include <$ac_header> 6846_ACEOF 6847if { (eval echo "$as_me:6847: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6848 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6849 ac_status=$? 6850 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6851 rm -f conftest.er1 6852 cat conftest.err >&5 6853 echo "$as_me:6853: \$? = $ac_status" >&5 6854 (exit "$ac_status"); } >/dev/null; then 6855 if test -s conftest.err; then 6856 ac_cpp_err=$ac_c_preproc_warn_flag 6857 else 6858 ac_cpp_err= 6859 fi 6860else 6861 ac_cpp_err=yes 6862fi 6863if test -z "$ac_cpp_err"; then 6864 eval "$as_ac_Header=yes" 6865else 6866 echo "$as_me: failed program was:" >&5 6867 cat "conftest.$ac_ext" >&5 6868 eval "$as_ac_Header=no" 6869fi 6870rm -f conftest.err "conftest.$ac_ext" 6871fi 6872echo "$as_me:6872: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6873echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6874if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6875 cat >>confdefs.h <<EOF 6876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6877EOF 6878 6879fi 6880done 6881 6882echo "$as_me:6882: checking for struct lastlog" >&5 6883echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 6884if test "${cf_cv_struct_lastlog+set}" = set; then 6885 echo $ECHO_N "(cached) $ECHO_C" >&6 6886else 6887 6888if test "$cross_compiling" = yes; then 6889 6890cf_cv_struct_lastlog=unknown 6891else 6892 cat >"conftest.$ac_ext" <<_ACEOF 6893#line 6893 "configure" 6894#include "confdefs.h" 6895 6896$ac_includes_default 6897 6898#include <time.h> 6899#include <lastlog.h> 6900 6901int main(void) 6902{ 6903 struct lastlog data; 6904 return (sizeof(data.ll_time) != sizeof(time_t)); 6905} 6906_ACEOF 6907rm -f "conftest$ac_exeext" 6908if { (eval echo "$as_me:6908: \"$ac_link\"") >&5 6909 (eval $ac_link) 2>&5 6910 ac_status=$? 6911 echo "$as_me:6911: \$? = $ac_status" >&5 6912 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6913 { (eval echo "$as_me:6913: \"$ac_try\"") >&5 6914 (eval $ac_try) 2>&5 6915 ac_status=$? 6916 echo "$as_me:6916: \$? = $ac_status" >&5 6917 (exit "$ac_status"); }; }; then 6918 6919cf_cv_struct_lastlog=yes 6920else 6921 echo "$as_me: program exited with status $ac_status" >&5 6922echo "$as_me: failed program was:" >&5 6923cat "conftest.$ac_ext" >&5 6924 6925cf_cv_struct_lastlog=no 6926fi 6927rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6928fi 6929fi 6930echo "$as_me:6930: result: $cf_cv_struct_lastlog" >&5 6931echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 6932 6933test $cf_cv_struct_lastlog != no && 6934cat >>confdefs.h <<\EOF 6935#define USE_STRUCT_LASTLOG 1 6936EOF 6937 6938for ac_header in \ 6939sys/param.h \ 6940 6941do 6942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6943echo "$as_me:6943: checking for $ac_header" >&5 6944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6945if eval "test \"\${$as_ac_Header+set}\" = set"; then 6946 echo $ECHO_N "(cached) $ECHO_C" >&6 6947else 6948 cat >"conftest.$ac_ext" <<_ACEOF 6949#line 6949 "configure" 6950#include "confdefs.h" 6951#include <$ac_header> 6952_ACEOF 6953if { (eval echo "$as_me:6953: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6954 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6955 ac_status=$? 6956 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6957 rm -f conftest.er1 6958 cat conftest.err >&5 6959 echo "$as_me:6959: \$? = $ac_status" >&5 6960 (exit "$ac_status"); } >/dev/null; then 6961 if test -s conftest.err; then 6962 ac_cpp_err=$ac_c_preproc_warn_flag 6963 else 6964 ac_cpp_err= 6965 fi 6966else 6967 ac_cpp_err=yes 6968fi 6969if test -z "$ac_cpp_err"; then 6970 eval "$as_ac_Header=yes" 6971else 6972 echo "$as_me: failed program was:" >&5 6973 cat "conftest.$ac_ext" >&5 6974 eval "$as_ac_Header=no" 6975fi 6976rm -f conftest.err "conftest.$ac_ext" 6977fi 6978echo "$as_me:6978: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6979echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6980if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6981 cat >>confdefs.h <<EOF 6982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6983EOF 6984 6985fi 6986done 6987 6988echo "$as_me:6988: checking if POSIX saved-ids are supported" >&5 6989echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 6990if test "${cf_cv_posix_saved_ids+set}" = set; then 6991 echo $ECHO_N "(cached) $ECHO_C" >&6 6992else 6993 6994cat >"conftest.$ac_ext" <<_ACEOF 6995#line 6995 "configure" 6996#include "confdefs.h" 6997 6998#include <unistd.h> 6999#ifdef HAVE_SYS_PARAM_H 7000#include <sys/param.h> /* this may define "BSD" */ 7001#endif 7002 7003int 7004main (void) 7005{ 7006 7007#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 7008 void *p = (void *) seteuid; 7009 int x = seteuid(geteuid()); 7010 (void)p; 7011 (void)x; 7012#elif defined(BSD) && (BSD >= 199103) 7013/* The BSD's may implement the runtime check - and it fails. 7014 * However, saved-ids work almost like POSIX (close enough for most uses). 7015 */ 7016#else 7017make an error 7018#endif 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7025if { (eval echo "$as_me:7025: \"$ac_link\"") >&5 7026 (eval $ac_link) 2>&5 7027 ac_status=$? 7028 echo "$as_me:7028: \$? = $ac_status" >&5 7029 (exit "$ac_status"); } && 7030 { ac_try='test -s "conftest$ac_exeext"' 7031 { (eval echo "$as_me:7031: \"$ac_try\"") >&5 7032 (eval $ac_try) 2>&5 7033 ac_status=$? 7034 echo "$as_me:7034: \$? = $ac_status" >&5 7035 (exit "$ac_status"); }; }; then 7036 cf_cv_posix_saved_ids=yes 7037 7038else 7039 echo "$as_me: failed program was:" >&5 7040cat "conftest.$ac_ext" >&5 7041 7042if test "$cross_compiling" = yes; then 7043 cf_cv_posix_saved_ids=unknown 7044else 7045 cat >"conftest.$ac_ext" <<_ACEOF 7046#line 7046 "configure" 7047#include "confdefs.h" 7048 7049$ac_includes_default 7050 7051int main(void) 7052{ 7053 void *p = (void *) seteuid; 7054 long code = sysconf(_SC_SAVED_IDS); 7055 (void)p; 7056 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 7057} 7058_ACEOF 7059rm -f "conftest$ac_exeext" 7060if { (eval echo "$as_me:7060: \"$ac_link\"") >&5 7061 (eval $ac_link) 2>&5 7062 ac_status=$? 7063 echo "$as_me:7063: \$? = $ac_status" >&5 7064 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7065 { (eval echo "$as_me:7065: \"$ac_try\"") >&5 7066 (eval $ac_try) 2>&5 7067 ac_status=$? 7068 echo "$as_me:7068: \$? = $ac_status" >&5 7069 (exit "$ac_status"); }; }; then 7070 cf_cv_posix_saved_ids=yes 7071else 7072 echo "$as_me: program exited with status $ac_status" >&5 7073echo "$as_me: failed program was:" >&5 7074cat "conftest.$ac_ext" >&5 7075cf_cv_posix_saved_ids=no 7076fi 7077rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7078fi 7079 7080fi 7081rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7082 7083fi 7084echo "$as_me:7084: result: $cf_cv_posix_saved_ids" >&5 7085echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 7086 7087test "$cf_cv_posix_saved_ids" = yes && 7088cat >>confdefs.h <<\EOF 7089#define HAVE_POSIX_SAVED_IDS 1 7090EOF 7091 7092# compute a reasonable value for $TERM to give tgetent(), since we may be 7093# running in 'screen', which sets $TERMCAP to a specific entry that is not 7094# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 7095# discard $TERMCAP. 7096cf_TERMVAR=vt100 7097if test -n "$TERMCAP" 7098then 7099 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 7100 case "$cf_TERMCAP" in 7101 (screen*.*) 7102 ;; 7103 (*) 7104 cf_TERMVAR="$cf_TERMCAP" 7105 ;; 7106 esac 7107fi 7108test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 7109 7110# BSD termcap used no header file 7111# SVr4 provided termcap prototypes as a legacy feature in term.h 7112# GNU termcap provided termcap prototypes in termcap.h 7113# ncurses provides termcap prototypes in both term.h and termcap.h 7114# 7115# The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do 7116# not return the text of the termcap entry in the buffer), but as a special 7117# case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that 7118# returns the termcap text. 7119 7120for ac_header in termcap.h 7121do 7122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7123echo "$as_me:7123: checking for $ac_header" >&5 7124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7125if eval "test \"\${$as_ac_Header+set}\" = set"; then 7126 echo $ECHO_N "(cached) $ECHO_C" >&6 7127else 7128 cat >"conftest.$ac_ext" <<_ACEOF 7129#line 7129 "configure" 7130#include "confdefs.h" 7131#include <$ac_header> 7132_ACEOF 7133if { (eval echo "$as_me:7133: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7134 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7135 ac_status=$? 7136 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7137 rm -f conftest.er1 7138 cat conftest.err >&5 7139 echo "$as_me:7139: \$? = $ac_status" >&5 7140 (exit "$ac_status"); } >/dev/null; then 7141 if test -s conftest.err; then 7142 ac_cpp_err=$ac_c_preproc_warn_flag 7143 else 7144 ac_cpp_err= 7145 fi 7146else 7147 ac_cpp_err=yes 7148fi 7149if test -z "$ac_cpp_err"; then 7150 eval "$as_ac_Header=yes" 7151else 7152 echo "$as_me: failed program was:" >&5 7153 cat "conftest.$ac_ext" >&5 7154 eval "$as_ac_Header=no" 7155fi 7156rm -f conftest.err "conftest.$ac_ext" 7157fi 7158echo "$as_me:7158: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7159echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7160if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7161 cat >>confdefs.h <<EOF 7162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7163EOF 7164 7165fi 7166done 7167 7168cf_termcap_h="\ 7169#ifdef HAVE_TERMCAP_H 7170#include <termcap.h> 7171#else 7172extern int tgetent(char *, const char *); 7173#endif" 7174 7175echo "$as_me:7175: checking if we want full tgetent function" >&5 7176echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 7177 7178# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 7179if test "${enable_full_tgetent+set}" = set; then 7180 enableval="$enable_full_tgetent" 7181 test "$enableval" != no && enableval=yes 7182 if test "$enableval" != "yes" ; then 7183 cf_full_tgetent=no 7184 else 7185 cf_full_tgetent=yes 7186 fi 7187else 7188 enableval=yes 7189 cf_full_tgetent=yes 7190 7191fi; 7192echo "$as_me:7192: result: $cf_full_tgetent" >&5 7193echo "${ECHO_T}$cf_full_tgetent" >&6 7194 7195if test "$cf_full_tgetent" = yes ; then 7196 cf_test_message="full tgetent" 7197else 7198 cf_test_message="tgetent" 7199fi 7200 7201echo "$as_me:7201: checking for $cf_test_message function" >&5 7202echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 7203if test "${cf_cv_lib_tgetent+set}" = set; then 7204 echo $ECHO_N "(cached) $ECHO_C" >&6 7205else 7206 7207cf_save_LIBS="$LIBS" 7208cf_cv_lib_tgetent=no 7209cf_TERMLIB="termlib ncursesw ncurses curses" 7210if test "$cf_full_tgetent" = yes ; then 7211 cf_TERMLIB="otermcap termcap $cf_TERMLIB" 7212 cf_TERMTST="buffer[0] == 0" 7213else 7214 cf_TERMLIB="tinfow tinfo $cf_TERMLIB" 7215 cf_TERMTST="0" 7216fi 7217for cf_termlib in '' $cf_TERMLIB ; do 7218 LIBS="$cf_save_LIBS" 7219 test -n "$cf_termlib" && { 7220cf_add_libs="$LIBS" 7221# reverse order 7222cf_add_0lib= 7223for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7224# filter duplicates 7225for cf_add_1lib in $cf_add_0lib; do 7226 for cf_add_2lib in $cf_add_libs; do 7227 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7228 cf_add_1lib= 7229 break 7230 fi 7231 done 7232 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7233done 7234LIBS="$cf_add_libs" 7235 } 7236 if test "$cross_compiling" = yes; then 7237 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 7238else 7239 cat >"conftest.$ac_ext" <<_ACEOF 7240#line 7240 "configure" 7241#include "confdefs.h" 7242 7243$cf_termcap_h 7244 7245/* terminfo implementations ignore the buffer argument, making it useless for 7246 * the xterm application, which uses this information to make a new TERMCAP 7247 * environment variable. 7248 */ 7249int main(void) 7250{ 7251 char buffer[1024]; 7252 buffer[0] = 0; 7253 tgetent(buffer, "$cf_TERMVAR"); 7254 ${cf_cv_main_return:-return} ($cf_TERMTST); } 7255_ACEOF 7256rm -f "conftest$ac_exeext" 7257if { (eval echo "$as_me:7257: \"$ac_link\"") >&5 7258 (eval $ac_link) 2>&5 7259 ac_status=$? 7260 echo "$as_me:7260: \$? = $ac_status" >&5 7261 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7262 { (eval echo "$as_me:7262: \"$ac_try\"") >&5 7263 (eval $ac_try) 2>&5 7264 ac_status=$? 7265 echo "$as_me:7265: \$? = $ac_status" >&5 7266 (exit "$ac_status"); }; }; then 7267 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 7268 if test -n "$cf_termlib" ; then 7269 cf_cv_lib_tgetent="-l$cf_termlib" 7270 else 7271 cf_cv_lib_tgetent=yes 7272 fi 7273 break 7274else 7275 echo "$as_me: program exited with status $ac_status" >&5 7276echo "$as_me: failed program was:" >&5 7277cat "conftest.$ac_ext" >&5 7278echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 7279fi 7280rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7281fi 7282done 7283LIBS="$cf_save_LIBS" 7284 7285fi 7286echo "$as_me:7286: result: $cf_cv_lib_tgetent" >&5 7287echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 7288 7289# If we found a working tgetent(), set LIBS and check for termcap.h. 7290# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 7291# not have side effects other than setting the cache variable, because 7292# they are not executed when a cached value exists.) 7293if test "x$cf_cv_lib_tgetent" != xno ; then 7294 test "x$cf_cv_lib_tgetent" != xyes && { 7295cf_add_libs="$LIBS" 7296# reverse order 7297cf_add_0lib= 7298for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7299# filter duplicates 7300for cf_add_1lib in $cf_add_0lib; do 7301 for cf_add_2lib in $cf_add_libs; do 7302 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7303 cf_add_1lib= 7304 break 7305 fi 7306 done 7307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7308done 7309LIBS="$cf_add_libs" 7310 } 7311 7312cat >>confdefs.h <<\EOF 7313#define USE_TERMCAP 1 7314EOF 7315 7316 if test "$cf_full_tgetent" = no ; then 7317 cat >"conftest.$ac_ext" <<_ACEOF 7318#line 7318 "configure" 7319#include "confdefs.h" 7320 7321#include <termcap.h> 7322int 7323main (void) 7324{ 7325 7326#ifdef NCURSES_VERSION 7327make an error 7328#endif 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333rm -f "conftest.$ac_objext" 7334if { (eval echo "$as_me:7334: \"$ac_compile\"") >&5 7335 (eval $ac_compile) 2>&5 7336 ac_status=$? 7337 echo "$as_me:7337: \$? = $ac_status" >&5 7338 (exit "$ac_status"); } && 7339 { ac_try='test -s "conftest.$ac_objext"' 7340 { (eval echo "$as_me:7340: \"$ac_try\"") >&5 7341 (eval $ac_try) 2>&5 7342 ac_status=$? 7343 echo "$as_me:7343: \$? = $ac_status" >&5 7344 (exit "$ac_status"); }; }; then 7345 cat >>confdefs.h <<\EOF 7346#define HAVE_TERMCAP_H 1 7347EOF 7348 7349else 7350 echo "$as_me: failed program was:" >&5 7351cat "conftest.$ac_ext" >&5 7352fi 7353rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7354 fi 7355else 7356 # If we didn't find a tgetent() that supports the buffer 7357 # argument, look again to see whether we can find even 7358 # a crippled one. A crippled tgetent() is still useful to 7359 # validate values for the TERM environment variable given to 7360 # child processes. 7361 echo "$as_me:7361: checking for partial tgetent function" >&5 7362echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 7363if test "${cf_cv_lib_part_tgetent+set}" = set; then 7364 echo $ECHO_N "(cached) $ECHO_C" >&6 7365else 7366 7367 cf_cv_lib_part_tgetent=no 7368 for cf_termlib in $cf_TERMLIB ; do 7369 LIBS="$cf_save_LIBS -l$cf_termlib" 7370 cat >"conftest.$ac_ext" <<_ACEOF 7371#line 7371 "configure" 7372#include "confdefs.h" 7373$cf_termcap_h 7374int 7375main (void) 7376{ 7377tgetent(0, "$cf_TERMVAR") 7378 ; 7379 return 0; 7380} 7381_ACEOF 7382rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7383if { (eval echo "$as_me:7383: \"$ac_link\"") >&5 7384 (eval $ac_link) 2>&5 7385 ac_status=$? 7386 echo "$as_me:7386: \$? = $ac_status" >&5 7387 (exit "$ac_status"); } && 7388 { ac_try='test -s "conftest$ac_exeext"' 7389 { (eval echo "$as_me:7389: \"$ac_try\"") >&5 7390 (eval $ac_try) 2>&5 7391 ac_status=$? 7392 echo "$as_me:7392: \$? = $ac_status" >&5 7393 (exit "$ac_status"); }; }; then 7394 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 7395 cf_cv_lib_part_tgetent="-l$cf_termlib" 7396 break 7397else 7398 echo "$as_me: failed program was:" >&5 7399cat "conftest.$ac_ext" >&5 7400fi 7401rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7402 done 7403 LIBS="$cf_save_LIBS" 7404 7405fi 7406echo "$as_me:7406: result: $cf_cv_lib_part_tgetent" >&5 7407echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 7408 7409 if test "$cf_cv_lib_part_tgetent" != no ; then 7410 7411cf_add_libs="$LIBS" 7412# reverse order 7413cf_add_0lib= 7414for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7415# filter duplicates 7416for cf_add_1lib in $cf_add_0lib; do 7417 for cf_add_2lib in $cf_add_libs; do 7418 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7419 cf_add_1lib= 7420 break 7421 fi 7422 done 7423 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7424done 7425LIBS="$cf_add_libs" 7426 7427 # If this is linking against ncurses, we'll trigger the 7428 # ifdef in resize.c that turns the termcap stuff back off. 7429 7430cat >>confdefs.h <<\EOF 7431#define USE_TERMINFO 1 7432EOF 7433 7434 fi 7435fi 7436 7437echo "$as_me:7437: checking for X applications class" >&5 7438echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 7439 7440# Check whether --with-app-class or --without-app-class was given. 7441if test "${with_app_class+set}" = set; then 7442 withval="$with_app_class" 7443 APP_CLASS=$withval 7444else 7445 APP_CLASS=XTerm 7446fi; 7447 7448case x$APP_CLASS in 7449(*[/@,%]*) 7450 { echo "$as_me:7450: WARNING: X applications class cannot contain punctuation" >&5 7451echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 7452 APP_CLASS=XTerm 7453 ;; 7454(x[A-Z]*) 7455 ;; 7456(*) 7457 { echo "$as_me:7457: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 7458echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 7459 APP_CLASS=XTerm 7460 ;; 7461esac 7462 7463echo "$as_me:7463: result: $APP_CLASS" >&5 7464echo "${ECHO_T}$APP_CLASS" >&6 7465 7466echo "$as_me:7466: checking for directory to install resource files" >&5 7467echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 7468 7469# Check whether --with-app-defaults or --without-app-defaults was given. 7470if test "${with_app_defaults+set}" = set; then 7471 withval="$with_app_defaults" 7472 APPSDIR=$withval 7473else 7474 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7475fi; 7476 7477if test "x$APPSDIR" = xauto 7478then 7479 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7480 for cf_path in \ 7481 /opt/local/share/X11/app-defaults \ 7482 /opt/X11/share/X11/app-defaults \ 7483 /usr/share/X11/app-defaults \ 7484 /usr/X11/share/X11/app-defaults \ 7485 /usr/X11/lib/X11/app-defaults \ 7486 /usr/lib/X11/app-defaults \ 7487 /etc/X11/app-defaults \ 7488 /usr/pkg/lib/X11/app-defaults \ 7489 /usr/X11R7/lib/X11/app-defaults \ 7490 /usr/X11R6/lib/X11/app-defaults \ 7491 /usr/X11R5/lib/X11/app-defaults \ 7492 /usr/X11R4/lib/X11/app-defaults \ 7493 /usr/local/lib/X11/app-defaults \ 7494 /usr/local/share/X11/app-defaults \ 7495 /usr/lib64/X11/app-defaults 7496 do 7497 if test -d "$cf_path" ; then 7498 APPSDIR="$cf_path" 7499 break 7500 fi 7501 done 7502else 7503 cf_path=$APPSDIR 7504 7505if test "x$prefix" != xNONE; then 7506 cf_path_syntax="$prefix" 7507else 7508 cf_path_syntax="$ac_default_prefix" 7509fi 7510 7511case ".$cf_path" in 7512(.\$\(*\)*|.\'*\'*) 7513 ;; 7514(..|./*|.\\*) 7515 ;; 7516(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7517 ;; 7518(.\$\{*prefix\}*|.\$\{*dir\}*) 7519 eval cf_path="$cf_path" 7520 case ".$cf_path" in 7521 (.NONE/*) 7522 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7523 ;; 7524 esac 7525 ;; 7526(.no|.NONE/*) 7527 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7528 ;; 7529(*) 7530 { { echo "$as_me:7530: error: expected a pathname, not \"$cf_path\"" >&5 7531echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7532 { (exit 1); exit 1; }; } 7533 ;; 7534esac 7535 7536fi 7537 7538echo "$as_me:7538: result: $APPSDIR" >&5 7539echo "${ECHO_T}$APPSDIR" >&6 7540 7541no_appsdir= 7542if test "$APPSDIR" = no 7543then 7544 no_appsdir="#" 7545else 7546 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 7547fi 7548 7549echo "$as_me:7549: checking for the icon name" >&5 7550echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 7551 7552# Check whether --with-icon-name or --without-icon-name was given. 7553if test "${with_icon_name+set}" = set; then 7554 withval="$with_icon_name" 7555 ICON_NAME="$withval" 7556else 7557 ICON_NAME=mini.xterm 7558fi; 7559case "x$ICON_NAME" in 7560(xyes|xno|x) 7561 ICON_NAME=mini.xterm 7562 ;; 7563esac 7564 7565echo "$as_me:7565: result: $ICON_NAME" >&5 7566echo "${ECHO_T}$ICON_NAME" >&6 7567 7568echo "$as_me:7568: checking for icon symlink to use" >&5 7569echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 7570 7571# Check whether --with-icon-symlink or --without-icon-symlink was given. 7572if test "${with_icon_symlink+set}" = set; then 7573 withval="$with_icon_symlink" 7574 ICON_SYMLINK="$withval" 7575else 7576 ICON_SYMLINK=NONE 7577fi; 7578case "x$ICON_SYMLINK" in 7579(xyes) 7580 ICON_SYMLINK=xterm 7581 ;; 7582(xno|x) 7583 ICON_SYMLINK=NONE 7584 ;; 7585esac 7586 7587echo "$as_me:7587: result: $ICON_SYMLINK" >&5 7588echo "${ECHO_T}$ICON_SYMLINK" >&6 7589 7590# Install all icons except for the overused "terminal". 7591cf_cv_icon_list= 7592for my_item in $srcdir/icons/*.svg 7593do 7594 test -f "$my_item" || continue 7595 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 7596 case $cf_icon_name in 7597 (*_48x48) 7598 continue 7599 ;; 7600 esac 7601 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 7602 7603echo "${as_me:-configure}:7603: testing adding $cf_icon_name to icon-list ..." 1>&5 7604 7605 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 7606 if test -f "${cf_icon_name}_48x48.png" 7607 then 7608 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6 7609 7610echo "${as_me:-configure}:7610: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5 7611 7612 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 7613 fi 7614done 7615 7616echo "$as_me:7616: checking for directory to install pixmaps" >&5 7617echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 7618 7619# Check whether --with-pixmapdir or --without-pixmapdir was given. 7620if test "${with_pixmapdir+set}" = set; then 7621 withval="$with_pixmapdir" 7622 PIXMAPDIR=$withval 7623else 7624 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 7625fi; 7626 7627if test "x$PIXMAPDIR" = xauto 7628then 7629 PIXMAPDIR='${datadir}/pixmaps' 7630 for cf_path in \ 7631 /usr/share/pixmaps \ 7632 /usr/X11R6/share/pixmaps 7633 do 7634 if test -d "$cf_path" ; then 7635 PIXMAPDIR="$cf_path" 7636 break 7637 fi 7638 done 7639else 7640 cf_path=$PIXMAPDIR 7641 7642if test "x$prefix" != xNONE; then 7643 cf_path_syntax="$prefix" 7644else 7645 cf_path_syntax="$ac_default_prefix" 7646fi 7647 7648case ".$cf_path" in 7649(.\$\(*\)*|.\'*\'*) 7650 ;; 7651(..|./*|.\\*) 7652 ;; 7653(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7654 ;; 7655(.\$\{*prefix\}*|.\$\{*dir\}*) 7656 eval cf_path="$cf_path" 7657 case ".$cf_path" in 7658 (.NONE/*) 7659 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7660 ;; 7661 esac 7662 ;; 7663(.no|.NONE/*) 7664 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7665 ;; 7666(*) 7667 { { echo "$as_me:7667: error: expected a pathname, not \"$cf_path\"" >&5 7668echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7669 { (exit 1); exit 1; }; } 7670 ;; 7671esac 7672 7673fi 7674echo "$as_me:7674: result: $PIXMAPDIR" >&5 7675echo "${ECHO_T}$PIXMAPDIR" >&6 7676 7677no_pixmapdir= 7678if test "$PIXMAPDIR" = no 7679then 7680 no_pixmapdir="#" 7681else 7682 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 7683fi 7684 7685echo "$as_me:7685: checking for directory to install icons" >&5 7686echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 7687 7688# Check whether --with-icondir or --without-icondir was given. 7689if test "${with_icondir+set}" = set; then 7690 withval="$with_icondir" 7691 ICONDIR=$withval 7692else 7693 test -z "$ICONDIR" && ICONDIR=no 7694fi; 7695 7696if test "x$ICONDIR" = xauto 7697then 7698 ICONDIR='${datadir}/icons' 7699 for cf_path in \ 7700 /usr/share/icons \ 7701 /usr/X11R6/share/icons 7702 do 7703 if test -d "$cf_path" ; then 7704 ICONDIR="$cf_path" 7705 break 7706 fi 7707 done 7708else 7709 cf_path=$ICONDIR 7710 7711if test "x$prefix" != xNONE; then 7712 cf_path_syntax="$prefix" 7713else 7714 cf_path_syntax="$ac_default_prefix" 7715fi 7716 7717case ".$cf_path" in 7718(.\$\(*\)*|.\'*\'*) 7719 ;; 7720(..|./*|.\\*) 7721 ;; 7722(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7723 ;; 7724(.\$\{*prefix\}*|.\$\{*dir\}*) 7725 eval cf_path="$cf_path" 7726 case ".$cf_path" in 7727 (.NONE/*) 7728 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7729 ;; 7730 esac 7731 ;; 7732(.no|.NONE/*) 7733 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7734 ;; 7735(*) 7736 { { echo "$as_me:7736: error: expected a pathname, not \"$cf_path\"" >&5 7737echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7738 { (exit 1); exit 1; }; } 7739 ;; 7740esac 7741 7742fi 7743echo "$as_me:7743: result: $ICONDIR" >&5 7744echo "${ECHO_T}$ICONDIR" >&6 7745 7746no_icondir= 7747if test "$ICONDIR" = no 7748then 7749 no_icondir="#" 7750else 7751 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 7752fi 7753 7754echo "$as_me:7754: checking if icon theme should be used" >&5 7755echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 7756 7757# Check whether --with-icon-theme or --without-icon-theme was given. 7758if test "${with_icon_theme+set}" = set; then 7759 withval="$with_icon_theme" 7760 ICON_THEME=$withval 7761else 7762 ICON_THEME=no 7763fi; 7764 7765case "x$ICON_THEME" in 7766(xno) 7767 ;; 7768(x|xyes) 7769 ICON_THEME=hicolor 7770 ;; 7771esac 7772echo "$as_me:7772: result: $ICON_THEME" >&5 7773echo "${ECHO_T}$ICON_THEME" >&6 7774 7775if test "x$ICON_THEME" = xno 7776then 7777 if test "x$ICONDIR" != xno 7778 then 7779 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 7780 7781echo "${as_me:-configure}:7781: testing ignoring icondir without theme ..." 1>&5 7782 7783 no_icondir="#" 7784 fi 7785else 7786 if test "x$ICONDIR" = xno 7787 then 7788 { { echo "$as_me:7788: error: icondir must be set for icon theme" >&5 7789echo "$as_me: error: icondir must be set for icon theme" >&2;} 7790 { (exit 1); exit 1; }; } 7791 fi 7792fi 7793 7794: ${ICON_FORMAT:=".svg .png .xpm"} 7795 7796ICON_LIST= 7797 7798if test "x$ICON_THEME" != xno 7799then 7800 cf_icon_list="$cf_cv_icon_list" 7801else 7802 cf_icon_list="icons/${ICON_NAME}_48x48" 7803fi 7804 7805echo "$as_me:7805: checking for icon(s) to install" >&5 7806echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 7807for cf_name in $cf_icon_list 7808do 7809 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 7810 7811echo "${as_me:-configure}:7811: testing using $ICON_FORMAT ..." 1>&5 7812 7813 for cf_suffix in $ICON_FORMAT 7814 do 7815 cf_icon="${cf_name}${cf_suffix}" 7816 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 7817 if test ! -f "${cf_left}" 7818 then 7819 if test "x$srcdir" != "x." 7820 then 7821 cf_icon="${srcdir}/${cf_left}" 7822 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 7823 if test ! -f "${cf_left}" 7824 then 7825 continue 7826 fi 7827 else 7828 continue 7829 fi 7830 fi 7831 if test "x$ICON_THEME" != xno 7832 then 7833 cf_base=`basename "$cf_left"` 7834 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 7835 case "x${cf_base}" in 7836 (*:*) 7837 cf_next=$cf_base 7838 # user-defined mapping 7839 ;; 7840 (*.png) 7841 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'` 7842 if test -z "$cf_size" 7843 then 7844 { echo "$as_me:7844: WARNING: cannot determine size of $cf_left" >&5 7845echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 7846 continue 7847 fi 7848 cf_next="$cf_size/apps/$cf_trim" 7849 ;; 7850 (*.svg) 7851 cf_next="scalable/apps/$cf_trim" 7852 ;; 7853 (*.xpm) 7854 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 7855 7856echo "${as_me:-configure}:7856: testing ignored XPM file in icon theme ..." 1>&5 7857 7858 continue 7859 ;; 7860 (*_[0-9][0-9]*x[0-9][0-9]*.*) 7861 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 7862 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 7863 cf_next="$cf_size/apps/$cf_base" 7864 ;; 7865 esac 7866 test -n "$verbose" && echo " adding $cf_next" 1>&6 7867 7868echo "${as_me:-configure}:7868: testing adding $cf_next ..." 1>&5 7869 7870 cf_icon="${cf_icon}:${cf_next}" 7871 fi 7872 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 7873 ICON_LIST="$ICON_LIST${cf_icon}" 7874 if test -z "$ICON_NAME" 7875 then 7876 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` 7877 fi 7878 done 7879done 7880 7881if test -n "$verbose" 7882then 7883 echo "$as_me:7883: checking result" >&5 7884echo $ECHO_N "checking result... $ECHO_C" >&6 7885fi 7886echo "$as_me:7886: result: $ICON_LIST" >&5 7887echo "${ECHO_T}$ICON_LIST" >&6 7888 7889if test -z "$ICON_LIST" 7890then 7891 { { echo "$as_me:7891: error: no icons found" >&5 7892echo "$as_me: error: no icons found" >&2;} 7893 { (exit 1); exit 1; }; } 7894fi 7895 7896echo "$as_me:7896: checking for icon name" >&5 7897echo $ECHO_N "checking for icon name... $ECHO_C" >&6 7898echo "$as_me:7898: result: $ICON_NAME" >&5 7899echo "${ECHO_T}$ICON_NAME" >&6 7900 7901# Comment-out the install-desktop rule if the desktop-utils are not found. 7902echo "$as_me:7902: checking if you want to install desktop files" >&5 7903echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 7904 7905# Check whether --enable-desktop or --disable-desktop was given. 7906if test "${enable_desktop+set}" = set; then 7907 enableval="$enable_desktop" 7908 test "$enableval" != no && enableval=yes 7909 if test "$enableval" != "yes" ; then 7910 enable_desktop=$enableval 7911 else 7912 enable_desktop=$enableval 7913 fi 7914else 7915 enableval=yes 7916 enable_desktop=$enableval 7917 7918fi; 7919echo "$as_me:7919: result: $enable_desktop" >&5 7920echo "${ECHO_T}$enable_desktop" >&6 7921 7922desktop_utils= 7923if test "$enable_desktop" = yes ; then 7924# Extract the first word of "desktop-file-install", so it can be a program name with args. 7925set dummy desktop-file-install; ac_word=$2 7926echo "$as_me:7926: checking for $ac_word" >&5 7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7928if test "${ac_cv_prog_desktop_utils+set}" = set; then 7929 echo $ECHO_N "(cached) $ECHO_C" >&6 7930else 7931 if test -n "$desktop_utils"; then 7932 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 7933else 7934 ac_save_IFS=$IFS; IFS=$ac_path_separator 7935ac_dummy="$PATH" 7936for ac_dir in $ac_dummy; do 7937 IFS=$ac_save_IFS 7938 test -z "$ac_dir" && ac_dir=. 7939 $as_executable_p "$ac_dir/$ac_word" || continue 7940ac_cv_prog_desktop_utils="yes" 7941echo "$as_me:7941: found $ac_dir/$ac_word" >&5 7942break 7943done 7944 7945 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 7946fi 7947fi 7948desktop_utils=$ac_cv_prog_desktop_utils 7949if test -n "$desktop_utils"; then 7950 echo "$as_me:7950: result: $desktop_utils" >&5 7951echo "${ECHO_T}$desktop_utils" >&6 7952else 7953 echo "$as_me:7953: result: no" >&5 7954echo "${ECHO_T}no" >&6 7955fi 7956 7957fi 7958 7959test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 7960 7961if test -z "$desktop_utils" 7962then 7963 echo "$as_me:7963: checking for requested desktop-category" >&5 7964echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 7965 7966# Check whether --with-desktop-category or --without-desktop-category was given. 7967if test "${with_desktop_category+set}" = set; then 7968 withval="$with_desktop_category" 7969 cf_desktop_want=$withval 7970else 7971 cf_desktop_want=auto 7972fi; 7973 echo "$as_me:7973: result: $cf_desktop_want" >&5 7974echo "${ECHO_T}$cf_desktop_want" >&6 7975 7976 if test "$cf_desktop_want" = auto 7977 then 7978 rm -rf conftest* 7979 cf_desktop_also= 7980 for cf_desktop_dir in \ 7981 /usr/share/app-install \ 7982 /usr/share/applications 7983 do 7984 if test -d $cf_desktop_dir 7985 then 7986 find $cf_desktop_dir -name '*.desktop' | \ 7987 while true 7988 do 7989 read cf_desktop_path 7990 test -z "$cf_desktop_path" && break 7991 cf_desktop_name=`basename "$cf_desktop_path" .desktop` 7992 case $cf_desktop_name in 7993 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal) 7994 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 7995 7996echo "${as_me:-configure}:7996: testing inspect $cf_desktop_path ..." 1>&5 7997 7998 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \ 7999 tr ';' '\n' | \ 8000 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 8001 ;; 8002 esac 8003 done 8004 fi 8005 done 8006 if test -s conftest.1 8007 then 8008 cf_desktop_last= 8009 sort conftest.1 | \ 8010 while true 8011 do 8012 read cf_desktop_this 8013 test -z "$cf_desktop_this" && break 8014 if test -s conftest.2 8015 then 8016 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue 8017 elif test -s conftest.3 8018 then 8019 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue 8020 fi 8021 case "$cf_desktop_this" in 8022 (-*) 8023 ;; 8024 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*) 8025 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6 8026 8027echo "${as_me:-configure}:8027: testing ignored $cf_desktop_this ..." 1>&5 8028 8029 echo "$cf_desktop_this" >> conftest.3 8030 ;; 8031 (System|TerminalEmulator|*) 8032 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6 8033 8034echo "${as_me:-configure}:8034: testing applied $cf_desktop_this ..." 1>&5 8035 8036 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2 8037 ;; 8038 esac 8039 cf_desktop_last=$cf_desktop_this 8040 done 8041 cf_desktop_want="`tr '\n' ';' < conftest.2`" 8042 fi 8043 if test -n "$cf_desktop_want" 8044 then 8045 if test "$cf_desktop_want" = auto 8046 then 8047 cf_desktop_want= 8048 else 8049 # do a sanity check on the semicolon-separated list, ignore on failure 8050 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 8051 test -z "$cf_desktop_test" && cf_desktop_want= 8052 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 8053 test -z "$cf_desktop_test" && cf_desktop_want= 8054 fi 8055 fi 8056 if test -z "$cf_desktop_want" 8057 then 8058 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 8059 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 8060 8061echo "${as_me:-configure}:8061: testing no usable value found for desktop category ..." 1>&5 8062 8063 fi 8064 fi 8065 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 8066 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 8067 8068echo "${as_me:-configure}:8068: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 8069 8070fi 8071 8072echo "$as_me:8072: checking for install-permissions reference" >&5 8073echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 8074 8075# Check whether --with-reference or --without-reference was given. 8076if test "${with_reference+set}" = set; then 8077 withval="$with_reference" 8078 with_reference=$withval 8079else 8080 with_reference=xterm 8081fi; 8082echo "$as_me:8082: result: $with_reference" >&5 8083echo "${ECHO_T}$with_reference" >&6 8084 8085with_full_paths=yes 8086 8087 echo "$as_me:8087: checking for PATH separator" >&5 8088echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 8089 case "$cf_cv_system_name" in 8090 (os2*) PATH_SEPARATOR=';' ;; 8091 (*) ${PATH_SEPARATOR:=':'} ;; 8092 esac 8093 8094 echo "$as_me:8094: result: $PATH_SEPARATOR" >&5 8095echo "${ECHO_T}$PATH_SEPARATOR" >&6 8096 8097test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" 8098for ac_prog in $XTERM_PATH $with_reference 8099do 8100 # Extract the first word of "$ac_prog", so it can be a program name with args. 8101set dummy $ac_prog; ac_word=$2 8102echo "$as_me:8102: checking for $ac_word" >&5 8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8104if test "${ac_cv_path_XTERM_PATH+set}" = set; then 8105 echo $ECHO_N "(cached) $ECHO_C" >&6 8106else 8107 case $XTERM_PATH in 8108 [\\/]* | ?:[\\/]*) 8109 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 8110 ;; 8111 *) 8112 ac_save_IFS=$IFS; IFS=$ac_path_separator 8113ac_dummy="$PATH" 8114for ac_dir in $ac_dummy; do 8115 IFS=$ac_save_IFS 8116 test -z "$ac_dir" && ac_dir=. 8117 if $as_executable_p "$ac_dir/$ac_word"; then 8118 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 8119 echo "$as_me:8119: found $ac_dir/$ac_word" >&5 8120 break 8121fi 8122done 8123 8124 ;; 8125esac 8126fi 8127XTERM_PATH=$ac_cv_path_XTERM_PATH 8128 8129if test -n "$XTERM_PATH"; then 8130 echo "$as_me:8130: result: $XTERM_PATH" >&5 8131echo "${ECHO_T}$XTERM_PATH" >&6 8132else 8133 echo "$as_me:8133: result: no" >&5 8134echo "${ECHO_T}no" >&6 8135fi 8136 8137 test -n "$XTERM_PATH" && break 8138done 8139test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 8140 8141cf_path_prog="" 8142cf_path_args="" 8143IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8144for cf_temp in $ac_cv_path_XTERM_PATH 8145do 8146 if test -z "$cf_path_prog" ; then 8147 if test "$with_full_paths" = yes ; then 8148 8149if test "x$prefix" != xNONE; then 8150 cf_path_syntax="$prefix" 8151else 8152 cf_path_syntax="$ac_default_prefix" 8153fi 8154 8155case ".$cf_temp" in 8156(.\$\(*\)*|.\'*\'*) 8157 ;; 8158(..|./*|.\\*) 8159 ;; 8160(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8161 ;; 8162(.\$\{*prefix\}*|.\$\{*dir\}*) 8163 eval cf_temp="$cf_temp" 8164 case ".$cf_temp" in 8165 (.NONE/*) 8166 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8167 ;; 8168 esac 8169 ;; 8170(.no|.NONE/*) 8171 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8172 ;; 8173(*) 8174 break 8175 ;; 8176esac 8177 8178 cf_path_prog="$cf_temp" 8179 else 8180 cf_path_prog="`basename "$cf_temp"`" 8181 fi 8182 elif test -z "$cf_path_args" ; then 8183 cf_path_args="$cf_temp" 8184 else 8185 cf_path_args="$cf_path_args $cf_temp" 8186 fi 8187done 8188IFS="$cf_save_ifs" 8189 8190if test -n "$cf_path_prog" ; then 8191 8192echo "${as_me:-configure}:8192: testing defining path for ${cf_path_prog} ..." 1>&5 8193 8194cat >>confdefs.h <<EOF 8195#define XTERM_PATH_PATH "$cf_path_prog" 8196EOF 8197 8198 test -n "$cf_path_args" && 8199cat >>confdefs.h <<EOF 8200#define XTERM_PATH_ARGS "$cf_path_args" 8201EOF 8202 8203fi 8204 8205# If any of --program-prefix, --program-suffix or --program-transform-name is 8206# given, accept an option tell the makefile to create a symbolic link, e.g., 8207# to "xterm" on install. 8208XTERM_SYMLINK=NONE 8209 8210if test "$program_transform_name" != "'s,,,'" ; then 8211cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 8212cf_name=`echo xterm |sed -e "$cf_name"` 8213echo "$as_me:8213: checking for symbolic link to create to $cf_name" >&5 8214echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 8215 8216# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 8217if test "${with_xterm_symlink+set}" = set; then 8218 withval="$with_xterm_symlink" 8219 with_symlink=$withval 8220else 8221 with_symlink=xterm 8222fi; 8223echo "$as_me:8223: result: $with_symlink" >&5 8224echo "${ECHO_T}$with_symlink" >&6 8225test "$with_symlink" = yes && with_symlink=xterm 8226test -n "$with_symlink" && \ 8227 test "$with_symlink" != no && \ 8228 test "$with_symlink" != "$cf_name" && \ 8229 XTERM_SYMLINK="$with_symlink" 8230fi 8231 8232echo "$as_me:8232: checking if you want to disable openpty" >&5 8233echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 8234 8235# Check whether --enable-openpty or --disable-openpty was given. 8236if test "${enable_openpty+set}" = set; then 8237 enableval="$enable_openpty" 8238 test "$enableval" != no && enableval=yes 8239 if test "$enableval" != "yes" ; then 8240 disable_openpty=yes 8241 else 8242 disable_openpty=no 8243 fi 8244else 8245 enableval=yes 8246 disable_openpty=no 8247 8248fi; 8249echo "$as_me:8249: result: $disable_openpty" >&5 8250echo "${ECHO_T}$disable_openpty" >&6 8251 8252echo "$as_me:8252: checking if you want to disable setuid" >&5 8253echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 8254 8255# Check whether --enable-setuid or --disable-setuid was given. 8256if test "${enable_setuid+set}" = set; then 8257 enableval="$enable_setuid" 8258 test "$enableval" != no && enableval=yes 8259 if test "$enableval" != "yes" ; then 8260 disable_setuid=yes 8261 else 8262 disable_setuid=no 8263 fi 8264else 8265 enableval=yes 8266 disable_setuid=no 8267 8268fi; 8269echo "$as_me:8269: result: $disable_setuid" >&5 8270echo "${ECHO_T}$disable_setuid" >&6 8271 8272echo "$as_me:8272: checking if you want to disable setgid" >&5 8273echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 8274 8275# Check whether --enable-setgid or --disable-setgid was given. 8276if test "${enable_setgid+set}" = set; then 8277 enableval="$enable_setgid" 8278 test "$enableval" != no && enableval=yes 8279 if test "$enableval" != "yes" ; then 8280 disable_setgid=yes 8281 else 8282 disable_setgid=no 8283 fi 8284else 8285 enableval=yes 8286 disable_setgid=no 8287 8288fi; 8289echo "$as_me:8289: result: $disable_setgid" >&5 8290echo "${ECHO_T}$disable_setgid" >&6 8291 8292echo "$as_me:8292: checking if you want to run xterm setuid to a given user" >&5 8293echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 8294 8295# Check whether --with-setuid or --without-setuid was given. 8296if test "${with_setuid+set}" = set; then 8297 withval="$with_setuid" 8298 use_given_setuid=$withval 8299else 8300 use_given_setuid=no 8301fi; 8302echo "$as_me:8302: result: $use_given_setuid" >&5 8303echo "${ECHO_T}$use_given_setuid" >&6 8304 8305if test "$use_given_setuid" != no ; then 8306 if test "$use_given_setuid" = yes ; then 8307 cf_cv_given_setuid=root 8308 else 8309 cf_cv_given_setuid=$use_given_setuid 8310 fi 8311 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 8312 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 8313fi 8314 8315echo "$as_me:8315: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 8316echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 8317 8318# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 8319if test "${with_utmp_setgid+set}" = set; then 8320 withval="$with_utmp_setgid" 8321 use_utmp_setgid=$withval 8322else 8323 use_utmp_setgid=no 8324fi; 8325echo "$as_me:8325: result: $use_utmp_setgid" >&5 8326echo "${ECHO_T}$use_utmp_setgid" >&6 8327 8328if test "$use_utmp_setgid" != no ; then 8329 if test "$use_utmp_setgid" = yes ; then 8330 8331if test $cf_cv_have_utmp != no ; then 8332echo "$as_me:8332: checking for utmp/utmpx group" >&5 8333echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 8334if test "${cf_cv_utmp_group+set}" = set; then 8335 echo $ECHO_N "(cached) $ECHO_C" >&6 8336else 8337 8338for cf_utmp_path in /var/adm /var/run 8339do 8340 for cf_utmp_file in utmpx utmp 8341 do 8342 if test -f $cf_utmp_path/$cf_utmp_file 8343 then 8344 cf_cv_utmp_group=root 8345 8346 cf_option="-lL" 8347 8348 # Expect listing to have fields like this: 8349 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 8350 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8351 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8352 if test -z "$cf_rest" ; then 8353 cf_option="${cf_option}g" 8354 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8355 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8356 fi 8357 rm -f conftest 8358 8359 # If we have a pathname, and the date fields look right, assume we've 8360 # captured the group as well. 8361 if test -n "$cf_rest" ; then 8362 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 8363 if test -z "$cf_test" ; then 8364 cf_cv_utmp_group=$cf_grp; 8365 fi 8366 fi 8367 break 8368 fi 8369 done 8370 test -n "$cf_cv_utmp_group" && break 8371done 8372 8373fi 8374echo "$as_me:8374: result: $cf_cv_utmp_group" >&5 8375echo "${ECHO_T}$cf_cv_utmp_group" >&6 8376else 8377 { { echo "$as_me:8377: error: cannot find utmp group" >&5 8378echo "$as_me: error: cannot find utmp group" >&2;} 8379 { (exit 1); exit 1; }; } 8380fi 8381 8382 else 8383 cf_cv_utmp_group=$use_utmp_setgid 8384 fi 8385 if test "$cf_cv_posix_saved_ids" != yes ; then 8386 { { echo "$as_me:8386: error: Your system does not support POSIX saved-ids" >&5 8387echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 8388 { (exit 1); exit 1; }; } 8389 fi 8390 8391cat >>confdefs.h <<\EOF 8392#define USE_UTMP_SETGID 1 8393EOF 8394 8395 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 8396fi 8397 8398echo "$as_me:8398: checking if you want to link with utempter" >&5 8399echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 8400 8401# Check whether --with-utempter or --without-utempter was given. 8402if test "${with_utempter+set}" = set; then 8403 withval="$with_utempter" 8404 use_utempter=$withval 8405else 8406 use_utempter=no 8407fi; 8408echo "$as_me:8408: result: $use_utempter" >&5 8409echo "${ECHO_T}$use_utempter" >&6 8410 8411if test "$use_utempter" = yes ; then 8412 8413echo "$as_me:8413: checking if we can link with utempter library" >&5 8414echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 8415if test "${cf_cv_have_utempter+set}" = set; then 8416 echo $ECHO_N "(cached) $ECHO_C" >&6 8417else 8418 8419cf_save_LIBS="$LIBS" 8420 8421cf_add_libs="$LIBS" 8422# reverse order 8423cf_add_0lib= 8424for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8425# filter duplicates 8426for cf_add_1lib in $cf_add_0lib; do 8427 for cf_add_2lib in $cf_add_libs; do 8428 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8429 cf_add_1lib= 8430 break 8431 fi 8432 done 8433 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8434done 8435LIBS="$cf_add_libs" 8436 8437cat >"conftest.$ac_ext" <<_ACEOF 8438#line 8438 "configure" 8439#include "confdefs.h" 8440 8441#include <utempter.h> 8442 8443int 8444main (void) 8445{ 8446 8447 addToUtmp("/dev/tty", 0, 1); 8448 removeFromUtmp(); 8449 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8455if { (eval echo "$as_me:8455: \"$ac_link\"") >&5 8456 (eval $ac_link) 2>&5 8457 ac_status=$? 8458 echo "$as_me:8458: \$? = $ac_status" >&5 8459 (exit "$ac_status"); } && 8460 { ac_try='test -s "conftest$ac_exeext"' 8461 { (eval echo "$as_me:8461: \"$ac_try\"") >&5 8462 (eval $ac_try) 2>&5 8463 ac_status=$? 8464 echo "$as_me:8464: \$? = $ac_status" >&5 8465 (exit "$ac_status"); }; }; then 8466 8467 cf_cv_have_utempter=yes 8468else 8469 echo "$as_me: failed program was:" >&5 8470cat "conftest.$ac_ext" >&5 8471 8472 cf_cv_have_utempter=no 8473fi 8474rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8475LIBS="$cf_save_LIBS" 8476 8477fi 8478echo "$as_me:8478: result: $cf_cv_have_utempter" >&5 8479echo "${ECHO_T}$cf_cv_have_utempter" >&6 8480if test "$cf_cv_have_utempter" = yes ; then 8481 8482cat >>confdefs.h <<\EOF 8483#define USE_UTEMPTER 1 8484EOF 8485 8486cf_add_libs="$LIBS" 8487# reverse order 8488cf_add_0lib= 8489for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8490# filter duplicates 8491for cf_add_1lib in $cf_add_0lib; do 8492 for cf_add_2lib in $cf_add_libs; do 8493 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8494 cf_add_1lib= 8495 break 8496 fi 8497 done 8498 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8499done 8500LIBS="$cf_add_libs" 8501 8502fi 8503 8504 test "$cf_cv_have_utempter" != yes && use_utempter=no 8505else 8506 use_utempter=no 8507fi 8508 8509# Some configurations permit (or require) either setuid or setgid mode. 8510# Let the user decide. 8511if test "$use_utempter" = yes ; then 8512 if test "${enable_setuid+set}" != set ; then 8513 disable_setuid=yes 8514 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 8515 8516echo "${as_me:-configure}:8516: testing No --disable-setuid option given, force to yes ..." 1>&5 8517 8518 fi 8519fi 8520 8521### checks for external data 8522 8523echo "$as_me:8523: checking if external errno is declared" >&5 8524echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 8525if test "${cf_cv_dcl_errno+set}" = set; then 8526 echo $ECHO_N "(cached) $ECHO_C" >&6 8527else 8528 8529 cat >"conftest.$ac_ext" <<_ACEOF 8530#line 8530 "configure" 8531#include "confdefs.h" 8532 8533$ac_includes_default 8534#include <errno.h> 8535int 8536main (void) 8537{ 8538int x = (int) errno; (void)x 8539 ; 8540 return 0; 8541} 8542_ACEOF 8543rm -f "conftest.$ac_objext" 8544if { (eval echo "$as_me:8544: \"$ac_compile\"") >&5 8545 (eval $ac_compile) 2>&5 8546 ac_status=$? 8547 echo "$as_me:8547: \$? = $ac_status" >&5 8548 (exit "$ac_status"); } && 8549 { ac_try='test -s "conftest.$ac_objext"' 8550 { (eval echo "$as_me:8550: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:8553: \$? = $ac_status" >&5 8554 (exit "$ac_status"); }; }; then 8555 cf_cv_dcl_errno=yes 8556else 8557 echo "$as_me: failed program was:" >&5 8558cat "conftest.$ac_ext" >&5 8559cf_cv_dcl_errno=no 8560fi 8561rm -f "conftest.$ac_objext" "conftest.$ac_ext" 8562 8563fi 8564echo "$as_me:8564: result: $cf_cv_dcl_errno" >&5 8565echo "${ECHO_T}$cf_cv_dcl_errno" >&6 8566 8567if test "$cf_cv_dcl_errno" = no ; then 8568 8569cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8570 8571 cat >>confdefs.h <<EOF 8572#define $cf_result 1 8573EOF 8574 8575fi 8576 8577# It's possible (for near-UNIX clones) that the data doesn't exist 8578 8579echo "$as_me:8579: checking if external errno exists" >&5 8580echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 8581if test "${cf_cv_have_errno+set}" = set; then 8582 echo $ECHO_N "(cached) $ECHO_C" >&6 8583else 8584 8585 cat >"conftest.$ac_ext" <<_ACEOF 8586#line 8586 "configure" 8587#include "confdefs.h" 8588 8589#undef errno 8590extern int errno; 8591 8592int 8593main (void) 8594{ 8595errno = 2 8596 ; 8597 return 0; 8598} 8599_ACEOF 8600rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8601if { (eval echo "$as_me:8601: \"$ac_link\"") >&5 8602 (eval $ac_link) 2>&5 8603 ac_status=$? 8604 echo "$as_me:8604: \$? = $ac_status" >&5 8605 (exit "$ac_status"); } && 8606 { ac_try='test -s "conftest$ac_exeext"' 8607 { (eval echo "$as_me:8607: \"$ac_try\"") >&5 8608 (eval $ac_try) 2>&5 8609 ac_status=$? 8610 echo "$as_me:8610: \$? = $ac_status" >&5 8611 (exit "$ac_status"); }; }; then 8612 cf_cv_have_errno=yes 8613else 8614 echo "$as_me: failed program was:" >&5 8615cat "conftest.$ac_ext" >&5 8616cf_cv_have_errno=no 8617fi 8618rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8619 8620fi 8621echo "$as_me:8621: result: $cf_cv_have_errno" >&5 8622echo "${ECHO_T}$cf_cv_have_errno" >&6 8623 8624if test "$cf_cv_have_errno" = yes ; then 8625 8626cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8627 8628 cat >>confdefs.h <<EOF 8629#define $cf_result 1 8630EOF 8631 8632fi 8633 8634echo "$as_me:8634: checking for explicit tty group name" >&5 8635echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 8636 8637# Check whether --with-tty-group or --without-tty-group was given. 8638if test "${with_tty_group+set}" = set; then 8639 withval="$with_tty_group" 8640 cf_tty_group=$withval 8641else 8642 cf_tty_group=auto... 8643fi; 8644test -z "$cf_tty_group" && cf_tty_group=auto... 8645test "$cf_tty_group" = yes && cf_tty_group=auto... 8646echo "$as_me:8646: result: $cf_tty_group" >&5 8647echo "${ECHO_T}$cf_tty_group" >&6 8648 8649if test "$cf_tty_group" = "auto..." ; then 8650echo "$as_me:8650: checking for tty group name" >&5 8651echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 8652if test "${cf_cv_tty_group_name+set}" = set; then 8653 echo $ECHO_N "(cached) $ECHO_C" >&6 8654else 8655 8656# If we are configuring as root, it is hard to get a clue about the tty group. 8657# But we'll guess based on how our connection is set up - assuming it is done 8658# properly. 8659 8660cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" 8661# )vi 8662if test "$cf_uid" != 0 ; then 8663cf_cv_tty_group_name= 8664cf_tty_name="`tty`" 8665test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 8666test -z "$cf_tty_name" && cf_tty_name=/dev/tty 8667if test -c "$cf_tty_name" 8668then 8669 cf_option="-lL" 8670 8671 # Expect listing to have fields like this: 8672 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 8673 ls $cf_option "$cf_tty_name" >conftest.out 8674 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 8675 if test -z "$cf_rest" ; then 8676 cf_option="${cf_option}g" 8677 ls "$cf_option" "$cf_tty_name" >conftest.out 8678 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 8679 fi 8680 rm -f conftest.out 8681 cf_cv_tty_group_name=$cf_grp 8682fi 8683fi 8684 8685# If we cannot deduce the tty group, fall back on hardcoded cases 8686 8687if test -z "$cf_cv_tty_group_name" 8688then 8689case $host_os in 8690(osf*) 8691 cf_cv_tty_group_name="terminal" 8692 ;; 8693(*) 8694 cf_cv_tty_group_name="unknown" 8695 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 8696 cf_cv_tty_group_name="tty" 8697 fi 8698 ;; 8699esac 8700fi 8701 8702fi 8703echo "$as_me:8703: result: $cf_cv_tty_group_name" >&5 8704echo "${ECHO_T}$cf_cv_tty_group_name" >&6 8705cf_tty_group="$cf_cv_tty_group_name" 8706else 8707 # if configure option, always do this 8708 8709cat >>confdefs.h <<\EOF 8710#define USE_TTY_GROUP 1 8711EOF 8712 8713fi 8714 8715cat >>confdefs.h <<EOF 8716#define TTY_GROUP_NAME "$cf_tty_group" 8717EOF 8718 8719# This is only a double-check that the group-name we obtained above really 8720# does apply to the device. We cannot perform this test if we are in batch 8721# mode, or if we are cross-compiling. 8722 8723echo "$as_me:8723: checking if we may use the $cf_tty_group group" >&5 8724echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 8725if test "${cf_cv_tty_group+set}" = set; then 8726 echo $ECHO_N "(cached) $ECHO_C" >&6 8727else 8728 8729cf_tty_name="`tty`" 8730if test "$cf_tty_name" != "not a tty" 8731then 8732if test "$cross_compiling" = yes; then 8733 cf_cv_tty_group=unknown 8734else 8735 cat >"conftest.$ac_ext" <<_ACEOF 8736#line 8736 "configure" 8737#include "confdefs.h" 8738 8739$ac_includes_default 8740 8741#include <grp.h> 8742 8743int main(void) 8744{ 8745 struct stat sb; 8746 struct group *ttygrp; 8747 int fd; 8748 char *name; 8749 8750 for (fd = 0; fd < 3; ++fd) { 8751 if ((name = ttyname(fd)) != 0) 8752 break; 8753 } 8754 if (name == 0) 8755 name = "/dev/tty"; 8756 8757 ttygrp = getgrnam(TTY_GROUP_NAME); 8758 endgrent(); 8759 8760 if (ttygrp != 0 8761 && name != 0 8762 && stat(name, &sb) == 0 8763 && sb.st_gid != getgid() 8764 && sb.st_gid == ttygrp->gr_gid) { 8765 ${cf_cv_main_return:-return} (0); 8766 } 8767 ${cf_cv_main_return:-return} (1); 8768} 8769 8770_ACEOF 8771rm -f "conftest$ac_exeext" 8772if { (eval echo "$as_me:8772: \"$ac_link\"") >&5 8773 (eval $ac_link) 2>&5 8774 ac_status=$? 8775 echo "$as_me:8775: \$? = $ac_status" >&5 8776 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 8777 { (eval echo "$as_me:8777: \"$ac_try\"") >&5 8778 (eval $ac_try) 2>&5 8779 ac_status=$? 8780 echo "$as_me:8780: \$? = $ac_status" >&5 8781 (exit "$ac_status"); }; }; then 8782 cf_cv_tty_group=yes 8783else 8784 echo "$as_me: program exited with status $ac_status" >&5 8785echo "$as_me: failed program was:" >&5 8786cat "conftest.$ac_ext" >&5 8787cf_cv_tty_group=no 8788fi 8789rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 8790fi 8791elif test "$cross_compiling" = yes; then 8792 cf_cv_tty_group=unknown 8793else 8794 cf_cv_tty_group=yes 8795fi 8796 8797fi 8798echo "$as_me:8798: result: $cf_cv_tty_group" >&5 8799echo "${ECHO_T}$cf_cv_tty_group" >&6 8800 8801if test $cf_cv_tty_group = no ; then 8802 { echo "$as_me:8802: WARNING: Cannot use $cf_tty_group group" >&5 8803echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 8804else 8805 cat >>confdefs.h <<\EOF 8806#define USE_TTY_GROUP 1 8807EOF 8808 8809fi 8810 8811### checks for system services and user specified options 8812 8813echo "$as_me:8813: checking for X" >&5 8814echo $ECHO_N "checking for X... $ECHO_C" >&6 8815 8816# Check whether --with-x or --without-x was given. 8817if test "${with_x+set}" = set; then 8818 withval="$with_x" 8819 8820fi; 8821# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8822if test "x$with_x" = xno; then 8823 # The user explicitly disabled X. 8824 have_x=disabled 8825else 8826 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8827 # Both variables are already set. 8828 have_x=yes 8829 else 8830 if test "${ac_cv_have_x+set}" = set; then 8831 echo $ECHO_N "(cached) $ECHO_C" >&6 8832else 8833 # One or both of the vars are not set, and there is no cached value. 8834ac_x_includes=no ac_x_libraries=no 8835rm -fr conftest.dir 8836if mkdir conftest.dir; then 8837 cd conftest.dir 8838 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8839 cat >Imakefile <<'EOF' 8840acfindx: 8841 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8842EOF 8843 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8845 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`" 8846 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8847 for ac_extension in a so sl dylib dll; do 8848 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8849 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8850 ac_im_usrlibdir=$ac_im_libdir; break 8851 fi 8852 done 8853 # Screen out bogus values from the imake configuration. They are 8854 # bogus both because they are the default anyway, and because 8855 # using them would break gcc on systems where it needs fixed includes. 8856 case $ac_im_incroot in 8857 /usr/include) ;; 8858 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8859 esac 8860 case $ac_im_usrlibdir in 8861 /usr/lib | /lib) ;; 8862 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8863 esac 8864 fi 8865 cd .. 8866 rm -fr conftest.dir 8867fi 8868 8869# Standard set of common directories for X headers. 8870# Check X11 before X11Rn because it is often a symlink to the current release. 8871ac_x_header_dirs=' 8872/usr/X11/include 8873/usr/X11R7/include 8874/usr/X11R6/include 8875/usr/X11R5/include 8876/usr/X11R4/include 8877 8878/opt/local/include 8879/opt/X11/include 8880 8881/usr/include/X11 8882/usr/include/X11R7 8883/usr/include/X11R6 8884/usr/include/X11R5 8885/usr/include/X11R4 8886 8887/usr/local/X11/include 8888/usr/local/X11R7/include 8889/usr/local/X11R6/include 8890/usr/local/X11R5/include 8891/usr/local/X11R4/include 8892 8893/usr/local/include/X11 8894/usr/local/include/X11R7 8895/usr/local/include/X11R6 8896/usr/local/include/X11R5 8897/usr/local/include/X11R4 8898 8899/usr/X386/include 8900/usr/x386/include 8901/usr/XFree86/include/X11 8902 8903/usr/include 8904/usr/local/include 8905/usr/unsupported/include 8906/usr/athena/include 8907/usr/local/x11r5/include 8908/usr/lpp/Xamples/include 8909 8910/usr/openwin/include 8911/usr/openwin/share/include' 8912 8913if test "$ac_x_includes" = no; then 8914 # Guess where to find include files, by looking for Intrinsic.h. 8915 # First, try using that file with no special directory specified. 8916 cat >"conftest.$ac_ext" <<_ACEOF 8917#line 8917 "configure" 8918#include "confdefs.h" 8919#include <X11/Intrinsic.h> 8920_ACEOF 8921if { (eval echo "$as_me:8921: \"$ac_cpp "conftest.$ac_ext"\"") >&5 8922 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 8923 ac_status=$? 8924 $EGREP -v '^ *\+' conftest.er1 >conftest.err 8925 rm -f conftest.er1 8926 cat conftest.err >&5 8927 echo "$as_me:8927: \$? = $ac_status" >&5 8928 (exit "$ac_status"); } >/dev/null; then 8929 if test -s conftest.err; then 8930 ac_cpp_err=$ac_c_preproc_warn_flag 8931 else 8932 ac_cpp_err= 8933 fi 8934else 8935 ac_cpp_err=yes 8936fi 8937if test -z "$ac_cpp_err"; then 8938 # We can compile using X headers with no special include directory. 8939ac_x_includes= 8940else 8941 echo "$as_me: failed program was:" >&5 8942 cat "conftest.$ac_ext" >&5 8943 for ac_dir in $ac_x_header_dirs; do 8944 if test -r "$ac_dir/X11/Intrinsic.h"; then 8945 ac_x_includes=$ac_dir 8946 break 8947 fi 8948done 8949fi 8950rm -f conftest.err "conftest.$ac_ext" 8951fi # $ac_x_includes = no 8952 8953if test "$ac_x_libraries" = no; then 8954 # Check for the libraries. 8955 # See if we find them without any special options. 8956 # Don't add to $LIBS permanently. 8957 ac_save_LIBS=$LIBS 8958 LIBS="-lXt $LIBS" 8959 cat >"conftest.$ac_ext" <<_ACEOF 8960#line 8960 "configure" 8961#include "confdefs.h" 8962#include <X11/Intrinsic.h> 8963int 8964main (void) 8965{ 8966XtMalloc (0) 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8972if { (eval echo "$as_me:8972: \"$ac_link\"") >&5 8973 (eval $ac_link) 2>&5 8974 ac_status=$? 8975 echo "$as_me:8975: \$? = $ac_status" >&5 8976 (exit "$ac_status"); } && 8977 { ac_try='test -s "conftest$ac_exeext"' 8978 { (eval echo "$as_me:8978: \"$ac_try\"") >&5 8979 (eval $ac_try) 2>&5 8980 ac_status=$? 8981 echo "$as_me:8981: \$? = $ac_status" >&5 8982 (exit "$ac_status"); }; }; then 8983 LIBS=$ac_save_LIBS 8984# We can link X programs with no special library path. 8985ac_x_libraries= 8986else 8987 echo "$as_me: failed program was:" >&5 8988cat "conftest.$ac_ext" >&5 8989LIBS=$ac_save_LIBS 8990for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8991do 8992 # Don't even attempt the hair of trying to link an X program! 8993 for ac_extension in a so sl dylib dll; do 8994 if test -r "$ac_dir/libXt.$ac_extension"; then 8995 ac_x_libraries=$ac_dir 8996 break 2 8997 fi 8998 done 8999done 9000fi 9001rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9002fi # $ac_x_libraries = no 9003 9004if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 9005 # Didn't find X anywhere. Cache the known absence of X. 9006 ac_cv_have_x="have_x=no" 9007else 9008 # Record where we found X for the cache. 9009 ac_cv_have_x="have_x=yes \ 9010 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9011fi 9012fi 9013 9014 fi 9015 eval "$ac_cv_have_x" 9016fi # $with_x != no 9017 9018if test "$have_x" != yes; then 9019 echo "$as_me:9019: result: $have_x" >&5 9020echo "${ECHO_T}$have_x" >&6 9021 no_x=yes 9022else 9023 # If each of the values was on the command line, it overrides each guess. 9024 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9025 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9026 # Update the cache value to reflect the command line values. 9027 ac_cv_have_x="have_x=yes \ 9028 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9029 echo "$as_me:9029: result: libraries $x_libraries, headers $x_includes" >&5 9030echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 9031fi 9032 9033if test "$no_x" = yes; then 9034 # Not all programs may use this symbol, but it does not hurt to define it. 9035 9036cat >>confdefs.h <<\EOF 9037#define X_DISPLAY_MISSING 1 9038EOF 9039 9040 X_CFLAGS= 9041 X_PRE_LIBS= 9042 X_LIBS= 9043 X_EXTRA_LIBS= 9044else 9045 if test -n "$x_includes"; then 9046 X_CFLAGS="$X_CFLAGS -I$x_includes" 9047 fi 9048 9049 # It would also be nice to do this for all -L options, not just this one. 9050 if test -n "$x_libraries"; then 9051 X_LIBS="$X_LIBS -L$x_libraries" 9052 # For Solaris; some versions of Sun CC require a space after -R and 9053 # others require no space. Words are not sufficient . . . . 9054 case `(uname -sr) 2>/dev/null` in 9055 "SunOS 5"*) 9056 echo "$as_me:9056: checking whether -R must be followed by a space" >&5 9057echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 9058 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 9059 cat >"conftest.$ac_ext" <<_ACEOF 9060#line 9060 "configure" 9061#include "confdefs.h" 9062 9063int 9064main (void) 9065{ 9066 9067 ; 9068 return 0; 9069} 9070_ACEOF 9071rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9072if { (eval echo "$as_me:9072: \"$ac_link\"") >&5 9073 (eval $ac_link) 2>&5 9074 ac_status=$? 9075 echo "$as_me:9075: \$? = $ac_status" >&5 9076 (exit "$ac_status"); } && 9077 { ac_try='test -s "conftest$ac_exeext"' 9078 { (eval echo "$as_me:9078: \"$ac_try\"") >&5 9079 (eval $ac_try) 2>&5 9080 ac_status=$? 9081 echo "$as_me:9081: \$? = $ac_status" >&5 9082 (exit "$ac_status"); }; }; then 9083 ac_R_nospace=yes 9084else 9085 echo "$as_me: failed program was:" >&5 9086cat "conftest.$ac_ext" >&5 9087ac_R_nospace=no 9088fi 9089rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9090 if test $ac_R_nospace = yes; then 9091 echo "$as_me:9091: result: no" >&5 9092echo "${ECHO_T}no" >&6 9093 X_LIBS="$X_LIBS -R$x_libraries" 9094 else 9095 LIBS="$ac_xsave_LIBS -R $x_libraries" 9096 cat >"conftest.$ac_ext" <<_ACEOF 9097#line 9097 "configure" 9098#include "confdefs.h" 9099 9100int 9101main (void) 9102{ 9103 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9109if { (eval echo "$as_me:9109: \"$ac_link\"") >&5 9110 (eval $ac_link) 2>&5 9111 ac_status=$? 9112 echo "$as_me:9112: \$? = $ac_status" >&5 9113 (exit "$ac_status"); } && 9114 { ac_try='test -s "conftest$ac_exeext"' 9115 { (eval echo "$as_me:9115: \"$ac_try\"") >&5 9116 (eval $ac_try) 2>&5 9117 ac_status=$? 9118 echo "$as_me:9118: \$? = $ac_status" >&5 9119 (exit "$ac_status"); }; }; then 9120 ac_R_space=yes 9121else 9122 echo "$as_me: failed program was:" >&5 9123cat "conftest.$ac_ext" >&5 9124ac_R_space=no 9125fi 9126rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9127 if test $ac_R_space = yes; then 9128 echo "$as_me:9128: result: yes" >&5 9129echo "${ECHO_T}yes" >&6 9130 X_LIBS="$X_LIBS -R $x_libraries" 9131 else 9132 echo "$as_me:9132: result: neither works" >&5 9133echo "${ECHO_T}neither works" >&6 9134 fi 9135 fi 9136 LIBS=$ac_xsave_LIBS 9137 esac 9138 fi 9139 9140 # Check for system-dependent libraries X programs must link with. 9141 # Do this before checking for the system-independent R6 libraries 9142 # (-lICE), since we may need -lsocket or whatever for X linking. 9143 9144 if test "$ISC" = yes; then 9145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9146 else 9147 # Martyn Johnson says this is needed for Ultrix, if the X 9148 # libraries were built with DECnet support. And Karl Berry says 9149 # the Alpha needs dnet_stub (dnet does not exist). 9150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 9151 cat >"conftest.$ac_ext" <<_ACEOF 9152#line 9152 "configure" 9153#include "confdefs.h" 9154 9155/* Override any gcc2 internal prototype to avoid an error. */ 9156#ifdef __cplusplus 9157extern "C" 9158#endif 9159/* We use char because int might match the return type of a gcc2 9160 builtin and then its argument prototype would still apply. */ 9161char XOpenDisplay (); 9162int 9163main (void) 9164{ 9165XOpenDisplay (); 9166 ; 9167 return 0; 9168} 9169_ACEOF 9170rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9171if { (eval echo "$as_me:9171: \"$ac_link\"") >&5 9172 (eval $ac_link) 2>&5 9173 ac_status=$? 9174 echo "$as_me:9174: \$? = $ac_status" >&5 9175 (exit "$ac_status"); } && 9176 { ac_try='test -s "conftest$ac_exeext"' 9177 { (eval echo "$as_me:9177: \"$ac_try\"") >&5 9178 (eval $ac_try) 2>&5 9179 ac_status=$? 9180 echo "$as_me:9180: \$? = $ac_status" >&5 9181 (exit "$ac_status"); }; }; then 9182 : 9183else 9184 echo "$as_me: failed program was:" >&5 9185cat "conftest.$ac_ext" >&5 9186echo "$as_me:9186: checking for dnet_ntoa in -ldnet" >&5 9187echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 9188if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 9189 echo $ECHO_N "(cached) $ECHO_C" >&6 9190else 9191 ac_check_lib_save_LIBS=$LIBS 9192LIBS="-ldnet $LIBS" 9193cat >"conftest.$ac_ext" <<_ACEOF 9194#line 9194 "configure" 9195#include "confdefs.h" 9196 9197/* Override any gcc2 internal prototype to avoid an error. */ 9198#ifdef __cplusplus 9199extern "C" 9200#endif 9201/* We use char because int might match the return type of a gcc2 9202 builtin and then its argument prototype would still apply. */ 9203char dnet_ntoa (); 9204int 9205main (void) 9206{ 9207dnet_ntoa (); 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9213if { (eval echo "$as_me:9213: \"$ac_link\"") >&5 9214 (eval $ac_link) 2>&5 9215 ac_status=$? 9216 echo "$as_me:9216: \$? = $ac_status" >&5 9217 (exit "$ac_status"); } && 9218 { ac_try='test -s "conftest$ac_exeext"' 9219 { (eval echo "$as_me:9219: \"$ac_try\"") >&5 9220 (eval $ac_try) 2>&5 9221 ac_status=$? 9222 echo "$as_me:9222: \$? = $ac_status" >&5 9223 (exit "$ac_status"); }; }; then 9224 ac_cv_lib_dnet_dnet_ntoa=yes 9225else 9226 echo "$as_me: failed program was:" >&5 9227cat "conftest.$ac_ext" >&5 9228ac_cv_lib_dnet_dnet_ntoa=no 9229fi 9230rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9231LIBS=$ac_check_lib_save_LIBS 9232fi 9233echo "$as_me:9233: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 9234echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 9235if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then 9236 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9237fi 9238 9239 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9240 echo "$as_me:9240: checking for dnet_ntoa in -ldnet_stub" >&5 9241echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 9242if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 9243 echo $ECHO_N "(cached) $ECHO_C" >&6 9244else 9245 ac_check_lib_save_LIBS=$LIBS 9246LIBS="-ldnet_stub $LIBS" 9247cat >"conftest.$ac_ext" <<_ACEOF 9248#line 9248 "configure" 9249#include "confdefs.h" 9250 9251/* Override any gcc2 internal prototype to avoid an error. */ 9252#ifdef __cplusplus 9253extern "C" 9254#endif 9255/* We use char because int might match the return type of a gcc2 9256 builtin and then its argument prototype would still apply. */ 9257char dnet_ntoa (); 9258int 9259main (void) 9260{ 9261dnet_ntoa (); 9262 ; 9263 return 0; 9264} 9265_ACEOF 9266rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9267if { (eval echo "$as_me:9267: \"$ac_link\"") >&5 9268 (eval $ac_link) 2>&5 9269 ac_status=$? 9270 echo "$as_me:9270: \$? = $ac_status" >&5 9271 (exit "$ac_status"); } && 9272 { ac_try='test -s "conftest$ac_exeext"' 9273 { (eval echo "$as_me:9273: \"$ac_try\"") >&5 9274 (eval $ac_try) 2>&5 9275 ac_status=$? 9276 echo "$as_me:9276: \$? = $ac_status" >&5 9277 (exit "$ac_status"); }; }; then 9278 ac_cv_lib_dnet_stub_dnet_ntoa=yes 9279else 9280 echo "$as_me: failed program was:" >&5 9281cat "conftest.$ac_ext" >&5 9282ac_cv_lib_dnet_stub_dnet_ntoa=no 9283fi 9284rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9285LIBS=$ac_check_lib_save_LIBS 9286fi 9287echo "$as_me:9287: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 9288echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 9289if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then 9290 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9291fi 9292 9293 fi 9294fi 9295rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9296 LIBS="$ac_xsave_LIBS" 9297 9298 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9299 # to get the SysV transport functions. 9300 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 9301 # needs -lnsl. 9302 # The nsl library prevents programs from opening the X display 9303 # on Irix 5.2, according to T.E. Dickey. 9304 # The functions gethostbyname, getservbyname, and inet_addr are 9305 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 9306 echo "$as_me:9306: checking for gethostbyname" >&5 9307echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 9308if test "${ac_cv_func_gethostbyname+set}" = set; then 9309 echo $ECHO_N "(cached) $ECHO_C" >&6 9310else 9311 cat >"conftest.$ac_ext" <<_ACEOF 9312#line 9312 "configure" 9313#include "confdefs.h" 9314#define gethostbyname autoconf_temporary 9315#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9316#undef gethostbyname 9317 9318#ifdef __cplusplus 9319extern "C" 9320#endif 9321 9322/* We use char because int might match the return type of a gcc2 9323 builtin and then its argument prototype would still apply. */ 9324char gethostbyname (void); 9325 9326int 9327main (void) 9328{ 9329 9330/* The GNU C library defines stubs for functions which it implements 9331 to always fail with ENOSYS. Some functions are actually named 9332 something starting with __ and the normal name is an alias. */ 9333#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9334#error found stub for gethostbyname 9335#endif 9336 9337 return gethostbyname (); 9338 ; 9339 return 0; 9340} 9341_ACEOF 9342rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9343if { (eval echo "$as_me:9343: \"$ac_link\"") >&5 9344 (eval $ac_link) 2>&5 9345 ac_status=$? 9346 echo "$as_me:9346: \$? = $ac_status" >&5 9347 (exit "$ac_status"); } && 9348 { ac_try='test -s "conftest$ac_exeext"' 9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5 9350 (eval $ac_try) 2>&5 9351 ac_status=$? 9352 echo "$as_me:9352: \$? = $ac_status" >&5 9353 (exit "$ac_status"); }; }; then 9354 ac_cv_func_gethostbyname=yes 9355else 9356 echo "$as_me: failed program was:" >&5 9357cat "conftest.$ac_ext" >&5 9358ac_cv_func_gethostbyname=no 9359fi 9360rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9361fi 9362echo "$as_me:9362: result: $ac_cv_func_gethostbyname" >&5 9363echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 9364 9365 if test $ac_cv_func_gethostbyname = no; then 9366 echo "$as_me:9366: checking for gethostbyname in -lnsl" >&5 9367echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 9368if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 9369 echo $ECHO_N "(cached) $ECHO_C" >&6 9370else 9371 ac_check_lib_save_LIBS=$LIBS 9372LIBS="-lnsl $LIBS" 9373cat >"conftest.$ac_ext" <<_ACEOF 9374#line 9374 "configure" 9375#include "confdefs.h" 9376 9377/* Override any gcc2 internal prototype to avoid an error. */ 9378#ifdef __cplusplus 9379extern "C" 9380#endif 9381/* We use char because int might match the return type of a gcc2 9382 builtin and then its argument prototype would still apply. */ 9383char gethostbyname (); 9384int 9385main (void) 9386{ 9387gethostbyname (); 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9393if { (eval echo "$as_me:9393: \"$ac_link\"") >&5 9394 (eval $ac_link) 2>&5 9395 ac_status=$? 9396 echo "$as_me:9396: \$? = $ac_status" >&5 9397 (exit "$ac_status"); } && 9398 { ac_try='test -s "conftest$ac_exeext"' 9399 { (eval echo "$as_me:9399: \"$ac_try\"") >&5 9400 (eval $ac_try) 2>&5 9401 ac_status=$? 9402 echo "$as_me:9402: \$? = $ac_status" >&5 9403 (exit "$ac_status"); }; }; then 9404 ac_cv_lib_nsl_gethostbyname=yes 9405else 9406 echo "$as_me: failed program was:" >&5 9407cat "conftest.$ac_ext" >&5 9408ac_cv_lib_nsl_gethostbyname=no 9409fi 9410rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9411LIBS=$ac_check_lib_save_LIBS 9412fi 9413echo "$as_me:9413: result: $ac_cv_lib_nsl_gethostbyname" >&5 9414echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 9415if test "$ac_cv_lib_nsl_gethostbyname" = yes; then 9416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9417fi 9418 9419 if test $ac_cv_lib_nsl_gethostbyname = no; then 9420 echo "$as_me:9420: checking for gethostbyname in -lbsd" >&5 9421echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 9422if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 9423 echo $ECHO_N "(cached) $ECHO_C" >&6 9424else 9425 ac_check_lib_save_LIBS=$LIBS 9426LIBS="-lbsd $LIBS" 9427cat >"conftest.$ac_ext" <<_ACEOF 9428#line 9428 "configure" 9429#include "confdefs.h" 9430 9431/* Override any gcc2 internal prototype to avoid an error. */ 9432#ifdef __cplusplus 9433extern "C" 9434#endif 9435/* We use char because int might match the return type of a gcc2 9436 builtin and then its argument prototype would still apply. */ 9437char gethostbyname (); 9438int 9439main (void) 9440{ 9441gethostbyname (); 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9447if { (eval echo "$as_me:9447: \"$ac_link\"") >&5 9448 (eval $ac_link) 2>&5 9449 ac_status=$? 9450 echo "$as_me:9450: \$? = $ac_status" >&5 9451 (exit "$ac_status"); } && 9452 { ac_try='test -s "conftest$ac_exeext"' 9453 { (eval echo "$as_me:9453: \"$ac_try\"") >&5 9454 (eval $ac_try) 2>&5 9455 ac_status=$? 9456 echo "$as_me:9456: \$? = $ac_status" >&5 9457 (exit "$ac_status"); }; }; then 9458 ac_cv_lib_bsd_gethostbyname=yes 9459else 9460 echo "$as_me: failed program was:" >&5 9461cat "conftest.$ac_ext" >&5 9462ac_cv_lib_bsd_gethostbyname=no 9463fi 9464rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9465LIBS=$ac_check_lib_save_LIBS 9466fi 9467echo "$as_me:9467: result: $ac_cv_lib_bsd_gethostbyname" >&5 9468echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 9469if test "$ac_cv_lib_bsd_gethostbyname" = yes; then 9470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 9471fi 9472 9473 fi 9474 fi 9475 9476 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9477 # socket/setsockopt and other routines are undefined under SCO ODT 9478 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9479 # on later versions), says Simon Leinen: it contains gethostby* 9480 # variants that don't use the nameserver (or something). -lsocket 9481 # must be given before -lnsl if both are needed. We assume that 9482 # if connect needs -lnsl, so does gethostbyname. 9483 echo "$as_me:9483: checking for connect" >&5 9484echo $ECHO_N "checking for connect... $ECHO_C" >&6 9485if test "${ac_cv_func_connect+set}" = set; then 9486 echo $ECHO_N "(cached) $ECHO_C" >&6 9487else 9488 cat >"conftest.$ac_ext" <<_ACEOF 9489#line 9489 "configure" 9490#include "confdefs.h" 9491#define connect autoconf_temporary 9492#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9493#undef connect 9494 9495#ifdef __cplusplus 9496extern "C" 9497#endif 9498 9499/* We use char because int might match the return type of a gcc2 9500 builtin and then its argument prototype would still apply. */ 9501char connect (void); 9502 9503int 9504main (void) 9505{ 9506 9507/* The GNU C library defines stubs for functions which it implements 9508 to always fail with ENOSYS. Some functions are actually named 9509 something starting with __ and the normal name is an alias. */ 9510#if defined (__stub_connect) || defined (__stub___connect) 9511#error found stub for connect 9512#endif 9513 9514 return connect (); 9515 ; 9516 return 0; 9517} 9518_ACEOF 9519rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9520if { (eval echo "$as_me:9520: \"$ac_link\"") >&5 9521 (eval $ac_link) 2>&5 9522 ac_status=$? 9523 echo "$as_me:9523: \$? = $ac_status" >&5 9524 (exit "$ac_status"); } && 9525 { ac_try='test -s "conftest$ac_exeext"' 9526 { (eval echo "$as_me:9526: \"$ac_try\"") >&5 9527 (eval $ac_try) 2>&5 9528 ac_status=$? 9529 echo "$as_me:9529: \$? = $ac_status" >&5 9530 (exit "$ac_status"); }; }; then 9531 ac_cv_func_connect=yes 9532else 9533 echo "$as_me: failed program was:" >&5 9534cat "conftest.$ac_ext" >&5 9535ac_cv_func_connect=no 9536fi 9537rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9538fi 9539echo "$as_me:9539: result: $ac_cv_func_connect" >&5 9540echo "${ECHO_T}$ac_cv_func_connect" >&6 9541 9542 if test $ac_cv_func_connect = no; then 9543 echo "$as_me:9543: checking for connect in -lsocket" >&5 9544echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 9545if test "${ac_cv_lib_socket_connect+set}" = set; then 9546 echo $ECHO_N "(cached) $ECHO_C" >&6 9547else 9548 ac_check_lib_save_LIBS=$LIBS 9549LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9550cat >"conftest.$ac_ext" <<_ACEOF 9551#line 9551 "configure" 9552#include "confdefs.h" 9553 9554/* Override any gcc2 internal prototype to avoid an error. */ 9555#ifdef __cplusplus 9556extern "C" 9557#endif 9558/* We use char because int might match the return type of a gcc2 9559 builtin and then its argument prototype would still apply. */ 9560char connect (); 9561int 9562main (void) 9563{ 9564connect (); 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9570if { (eval echo "$as_me:9570: \"$ac_link\"") >&5 9571 (eval $ac_link) 2>&5 9572 ac_status=$? 9573 echo "$as_me:9573: \$? = $ac_status" >&5 9574 (exit "$ac_status"); } && 9575 { ac_try='test -s "conftest$ac_exeext"' 9576 { (eval echo "$as_me:9576: \"$ac_try\"") >&5 9577 (eval $ac_try) 2>&5 9578 ac_status=$? 9579 echo "$as_me:9579: \$? = $ac_status" >&5 9580 (exit "$ac_status"); }; }; then 9581 ac_cv_lib_socket_connect=yes 9582else 9583 echo "$as_me: failed program was:" >&5 9584cat "conftest.$ac_ext" >&5 9585ac_cv_lib_socket_connect=no 9586fi 9587rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9588LIBS=$ac_check_lib_save_LIBS 9589fi 9590echo "$as_me:9590: result: $ac_cv_lib_socket_connect" >&5 9591echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 9592if test "$ac_cv_lib_socket_connect" = yes; then 9593 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9594fi 9595 9596 fi 9597 9598 # Guillermo Gomez says -lposix is necessary on A/UX. 9599 echo "$as_me:9599: checking for remove" >&5 9600echo $ECHO_N "checking for remove... $ECHO_C" >&6 9601if test "${ac_cv_func_remove+set}" = set; then 9602 echo $ECHO_N "(cached) $ECHO_C" >&6 9603else 9604 cat >"conftest.$ac_ext" <<_ACEOF 9605#line 9605 "configure" 9606#include "confdefs.h" 9607#define remove autoconf_temporary 9608#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9609#undef remove 9610 9611#ifdef __cplusplus 9612extern "C" 9613#endif 9614 9615/* We use char because int might match the return type of a gcc2 9616 builtin and then its argument prototype would still apply. */ 9617char remove (void); 9618 9619int 9620main (void) 9621{ 9622 9623/* The GNU C library defines stubs for functions which it implements 9624 to always fail with ENOSYS. Some functions are actually named 9625 something starting with __ and the normal name is an alias. */ 9626#if defined (__stub_remove) || defined (__stub___remove) 9627#error found stub for remove 9628#endif 9629 9630 return remove (); 9631 ; 9632 return 0; 9633} 9634_ACEOF 9635rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9636if { (eval echo "$as_me:9636: \"$ac_link\"") >&5 9637 (eval $ac_link) 2>&5 9638 ac_status=$? 9639 echo "$as_me:9639: \$? = $ac_status" >&5 9640 (exit "$ac_status"); } && 9641 { ac_try='test -s "conftest$ac_exeext"' 9642 { (eval echo "$as_me:9642: \"$ac_try\"") >&5 9643 (eval $ac_try) 2>&5 9644 ac_status=$? 9645 echo "$as_me:9645: \$? = $ac_status" >&5 9646 (exit "$ac_status"); }; }; then 9647 ac_cv_func_remove=yes 9648else 9649 echo "$as_me: failed program was:" >&5 9650cat "conftest.$ac_ext" >&5 9651ac_cv_func_remove=no 9652fi 9653rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9654fi 9655echo "$as_me:9655: result: $ac_cv_func_remove" >&5 9656echo "${ECHO_T}$ac_cv_func_remove" >&6 9657 9658 if test $ac_cv_func_remove = no; then 9659 echo "$as_me:9659: checking for remove in -lposix" >&5 9660echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 9661if test "${ac_cv_lib_posix_remove+set}" = set; then 9662 echo $ECHO_N "(cached) $ECHO_C" >&6 9663else 9664 ac_check_lib_save_LIBS=$LIBS 9665LIBS="-lposix $LIBS" 9666cat >"conftest.$ac_ext" <<_ACEOF 9667#line 9667 "configure" 9668#include "confdefs.h" 9669 9670/* Override any gcc2 internal prototype to avoid an error. */ 9671#ifdef __cplusplus 9672extern "C" 9673#endif 9674/* We use char because int might match the return type of a gcc2 9675 builtin and then its argument prototype would still apply. */ 9676char remove (); 9677int 9678main (void) 9679{ 9680remove (); 9681 ; 9682 return 0; 9683} 9684_ACEOF 9685rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9686if { (eval echo "$as_me:9686: \"$ac_link\"") >&5 9687 (eval $ac_link) 2>&5 9688 ac_status=$? 9689 echo "$as_me:9689: \$? = $ac_status" >&5 9690 (exit "$ac_status"); } && 9691 { ac_try='test -s "conftest$ac_exeext"' 9692 { (eval echo "$as_me:9692: \"$ac_try\"") >&5 9693 (eval $ac_try) 2>&5 9694 ac_status=$? 9695 echo "$as_me:9695: \$? = $ac_status" >&5 9696 (exit "$ac_status"); }; }; then 9697 ac_cv_lib_posix_remove=yes 9698else 9699 echo "$as_me: failed program was:" >&5 9700cat "conftest.$ac_ext" >&5 9701ac_cv_lib_posix_remove=no 9702fi 9703rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9704LIBS=$ac_check_lib_save_LIBS 9705fi 9706echo "$as_me:9706: result: $ac_cv_lib_posix_remove" >&5 9707echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 9708if test "$ac_cv_lib_posix_remove" = yes; then 9709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9710fi 9711 9712 fi 9713 9714 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9715 echo "$as_me:9715: checking for shmat" >&5 9716echo $ECHO_N "checking for shmat... $ECHO_C" >&6 9717if test "${ac_cv_func_shmat+set}" = set; then 9718 echo $ECHO_N "(cached) $ECHO_C" >&6 9719else 9720 cat >"conftest.$ac_ext" <<_ACEOF 9721#line 9721 "configure" 9722#include "confdefs.h" 9723#define shmat autoconf_temporary 9724#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9725#undef shmat 9726 9727#ifdef __cplusplus 9728extern "C" 9729#endif 9730 9731/* We use char because int might match the return type of a gcc2 9732 builtin and then its argument prototype would still apply. */ 9733char shmat (void); 9734 9735int 9736main (void) 9737{ 9738 9739/* The GNU C library defines stubs for functions which it implements 9740 to always fail with ENOSYS. Some functions are actually named 9741 something starting with __ and the normal name is an alias. */ 9742#if defined (__stub_shmat) || defined (__stub___shmat) 9743#error found stub for shmat 9744#endif 9745 9746 return shmat (); 9747 ; 9748 return 0; 9749} 9750_ACEOF 9751rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9752if { (eval echo "$as_me:9752: \"$ac_link\"") >&5 9753 (eval $ac_link) 2>&5 9754 ac_status=$? 9755 echo "$as_me:9755: \$? = $ac_status" >&5 9756 (exit "$ac_status"); } && 9757 { ac_try='test -s "conftest$ac_exeext"' 9758 { (eval echo "$as_me:9758: \"$ac_try\"") >&5 9759 (eval $ac_try) 2>&5 9760 ac_status=$? 9761 echo "$as_me:9761: \$? = $ac_status" >&5 9762 (exit "$ac_status"); }; }; then 9763 ac_cv_func_shmat=yes 9764else 9765 echo "$as_me: failed program was:" >&5 9766cat "conftest.$ac_ext" >&5 9767ac_cv_func_shmat=no 9768fi 9769rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9770fi 9771echo "$as_me:9771: result: $ac_cv_func_shmat" >&5 9772echo "${ECHO_T}$ac_cv_func_shmat" >&6 9773 9774 if test $ac_cv_func_shmat = no; then 9775 echo "$as_me:9775: checking for shmat in -lipc" >&5 9776echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 9777if test "${ac_cv_lib_ipc_shmat+set}" = set; then 9778 echo $ECHO_N "(cached) $ECHO_C" >&6 9779else 9780 ac_check_lib_save_LIBS=$LIBS 9781LIBS="-lipc $LIBS" 9782cat >"conftest.$ac_ext" <<_ACEOF 9783#line 9783 "configure" 9784#include "confdefs.h" 9785 9786/* Override any gcc2 internal prototype to avoid an error. */ 9787#ifdef __cplusplus 9788extern "C" 9789#endif 9790/* We use char because int might match the return type of a gcc2 9791 builtin and then its argument prototype would still apply. */ 9792char shmat (); 9793int 9794main (void) 9795{ 9796shmat (); 9797 ; 9798 return 0; 9799} 9800_ACEOF 9801rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9802if { (eval echo "$as_me:9802: \"$ac_link\"") >&5 9803 (eval $ac_link) 2>&5 9804 ac_status=$? 9805 echo "$as_me:9805: \$? = $ac_status" >&5 9806 (exit "$ac_status"); } && 9807 { ac_try='test -s "conftest$ac_exeext"' 9808 { (eval echo "$as_me:9808: \"$ac_try\"") >&5 9809 (eval $ac_try) 2>&5 9810 ac_status=$? 9811 echo "$as_me:9811: \$? = $ac_status" >&5 9812 (exit "$ac_status"); }; }; then 9813 ac_cv_lib_ipc_shmat=yes 9814else 9815 echo "$as_me: failed program was:" >&5 9816cat "conftest.$ac_ext" >&5 9817ac_cv_lib_ipc_shmat=no 9818fi 9819rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9820LIBS=$ac_check_lib_save_LIBS 9821fi 9822echo "$as_me:9822: result: $ac_cv_lib_ipc_shmat" >&5 9823echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 9824if test "$ac_cv_lib_ipc_shmat" = yes; then 9825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 9826fi 9827 9828 fi 9829 fi 9830 9831 # Check for libraries that X11R6 Xt/Xaw programs need. 9832 ac_save_LDFLAGS=$LDFLAGS 9833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 9834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 9835 # check for ICE first), but we must link in the order -lSM -lICE or 9836 # we get undefined symbols. So assume we have SM if we have ICE. 9837 # These have to be linked with before -lX11, unlike the other 9838 # libraries we check for below, so use a different variable. 9839 # John Interrante, Karl Berry 9840 echo "$as_me:9840: checking for IceConnectionNumber in -lICE" >&5 9841echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 9842if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 9843 echo $ECHO_N "(cached) $ECHO_C" >&6 9844else 9845 ac_check_lib_save_LIBS=$LIBS 9846LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9847cat >"conftest.$ac_ext" <<_ACEOF 9848#line 9848 "configure" 9849#include "confdefs.h" 9850 9851/* Override any gcc2 internal prototype to avoid an error. */ 9852#ifdef __cplusplus 9853extern "C" 9854#endif 9855/* We use char because int might match the return type of a gcc2 9856 builtin and then its argument prototype would still apply. */ 9857char IceConnectionNumber (); 9858int 9859main (void) 9860{ 9861IceConnectionNumber (); 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9867if { (eval echo "$as_me:9867: \"$ac_link\"") >&5 9868 (eval $ac_link) 2>&5 9869 ac_status=$? 9870 echo "$as_me:9870: \$? = $ac_status" >&5 9871 (exit "$ac_status"); } && 9872 { ac_try='test -s "conftest$ac_exeext"' 9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5 9874 (eval $ac_try) 2>&5 9875 ac_status=$? 9876 echo "$as_me:9876: \$? = $ac_status" >&5 9877 (exit "$ac_status"); }; }; then 9878 ac_cv_lib_ICE_IceConnectionNumber=yes 9879else 9880 echo "$as_me: failed program was:" >&5 9881cat "conftest.$ac_ext" >&5 9882ac_cv_lib_ICE_IceConnectionNumber=no 9883fi 9884rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9885LIBS=$ac_check_lib_save_LIBS 9886fi 9887echo "$as_me:9887: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 9888echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 9889if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then 9890 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 9891fi 9892 9893 LDFLAGS=$ac_save_LDFLAGS 9894 9895fi 9896 9897echo "$as_me:9897: checking for sys/wait.h that is POSIX.1 compatible" >&5 9898echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 9899if test "${ac_cv_header_sys_wait_h+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 cat >"conftest.$ac_ext" <<_ACEOF 9903#line 9903 "configure" 9904#include "confdefs.h" 9905#include <sys/types.h> 9906#include <sys/wait.h> 9907#ifndef WEXITSTATUS 9908# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 9909#endif 9910#ifndef WIFEXITED 9911# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9912#endif 9913 9914int 9915main (void) 9916{ 9917 int s; 9918 wait (&s); 9919 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9920 ; 9921 return 0; 9922} 9923_ACEOF 9924rm -f "conftest.$ac_objext" 9925if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5 9926 (eval $ac_compile) 2>&5 9927 ac_status=$? 9928 echo "$as_me:9928: \$? = $ac_status" >&5 9929 (exit "$ac_status"); } && 9930 { ac_try='test -s "conftest.$ac_objext"' 9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5 9932 (eval $ac_try) 2>&5 9933 ac_status=$? 9934 echo "$as_me:9934: \$? = $ac_status" >&5 9935 (exit "$ac_status"); }; }; then 9936 ac_cv_header_sys_wait_h=yes 9937else 9938 echo "$as_me: failed program was:" >&5 9939cat "conftest.$ac_ext" >&5 9940ac_cv_header_sys_wait_h=no 9941fi 9942rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9943fi 9944echo "$as_me:9944: result: $ac_cv_header_sys_wait_h" >&5 9945echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 9946if test $ac_cv_header_sys_wait_h = yes; then 9947 9948cat >>confdefs.h <<\EOF 9949#define HAVE_SYS_WAIT_H 1 9950EOF 9951 9952fi 9953 9954echo "$as_me:9954: checking for POSIX wait functions" >&5 9955echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 9956if test "${cf_cv_posix_wait+set}" = set; then 9957 echo $ECHO_N "(cached) $ECHO_C" >&6 9958else 9959 9960cat >"conftest.$ac_ext" <<_ACEOF 9961#line 9961 "configure" 9962#include "confdefs.h" 9963 9964$ac_includes_default 9965 9966#ifdef HAVE_SYS_WAIT_H 9967#include <sys/wait.h> 9968#endif 9969 9970int 9971main (void) 9972{ 9973 9974 int stat_loc; 9975 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 9976 pid_t pid2 = wait(&stat_loc); 9977 (void)pid; 9978 (void)pid2; 9979 9980 ; 9981 return 0; 9982} 9983_ACEOF 9984rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9985if { (eval echo "$as_me:9985: \"$ac_link\"") >&5 9986 (eval $ac_link) 2>&5 9987 ac_status=$? 9988 echo "$as_me:9988: \$? = $ac_status" >&5 9989 (exit "$ac_status"); } && 9990 { ac_try='test -s "conftest$ac_exeext"' 9991 { (eval echo "$as_me:9991: \"$ac_try\"") >&5 9992 (eval $ac_try) 2>&5 9993 ac_status=$? 9994 echo "$as_me:9994: \$? = $ac_status" >&5 9995 (exit "$ac_status"); }; }; then 9996 cf_cv_posix_wait=yes 9997else 9998 echo "$as_me: failed program was:" >&5 9999cat "conftest.$ac_ext" >&5 10000cf_cv_posix_wait=no 10001fi 10002rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10003 10004fi 10005echo "$as_me:10005: result: $cf_cv_posix_wait" >&5 10006echo "${ECHO_T}$cf_cv_posix_wait" >&6 10007test "$cf_cv_posix_wait" = yes && 10008cat >>confdefs.h <<\EOF 10009#define USE_POSIX_WAIT 1 10010EOF 10011 10012echo "$as_me:10012: checking if external sys_nerr is declared" >&5 10013echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 10014if test "${cf_cv_dcl_sys_nerr+set}" = set; then 10015 echo $ECHO_N "(cached) $ECHO_C" >&6 10016else 10017 10018 cat >"conftest.$ac_ext" <<_ACEOF 10019#line 10019 "configure" 10020#include "confdefs.h" 10021 10022$ac_includes_default 10023#include <errno.h> 10024int 10025main (void) 10026{ 10027int x = (int) sys_nerr; (void)x 10028 ; 10029 return 0; 10030} 10031_ACEOF 10032rm -f "conftest.$ac_objext" 10033if { (eval echo "$as_me:10033: \"$ac_compile\"") >&5 10034 (eval $ac_compile) 2>&5 10035 ac_status=$? 10036 echo "$as_me:10036: \$? = $ac_status" >&5 10037 (exit "$ac_status"); } && 10038 { ac_try='test -s "conftest.$ac_objext"' 10039 { (eval echo "$as_me:10039: \"$ac_try\"") >&5 10040 (eval $ac_try) 2>&5 10041 ac_status=$? 10042 echo "$as_me:10042: \$? = $ac_status" >&5 10043 (exit "$ac_status"); }; }; then 10044 cf_cv_dcl_sys_nerr=yes 10045else 10046 echo "$as_me: failed program was:" >&5 10047cat "conftest.$ac_ext" >&5 10048cf_cv_dcl_sys_nerr=no 10049fi 10050rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10051 10052fi 10053echo "$as_me:10053: result: $cf_cv_dcl_sys_nerr" >&5 10054echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 10055 10056if test "$cf_cv_dcl_sys_nerr" = no ; then 10057 10058cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10059 10060 cat >>confdefs.h <<EOF 10061#define $cf_result 1 10062EOF 10063 10064fi 10065 10066# It's possible (for near-UNIX clones) that the data doesn't exist 10067 10068echo "$as_me:10068: checking if external sys_nerr exists" >&5 10069echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 10070if test "${cf_cv_have_sys_nerr+set}" = set; then 10071 echo $ECHO_N "(cached) $ECHO_C" >&6 10072else 10073 10074 cat >"conftest.$ac_ext" <<_ACEOF 10075#line 10075 "configure" 10076#include "confdefs.h" 10077 10078#undef sys_nerr 10079extern int sys_nerr; 10080 10081int 10082main (void) 10083{ 10084sys_nerr = 2 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10090if { (eval echo "$as_me:10090: \"$ac_link\"") >&5 10091 (eval $ac_link) 2>&5 10092 ac_status=$? 10093 echo "$as_me:10093: \$? = $ac_status" >&5 10094 (exit "$ac_status"); } && 10095 { ac_try='test -s "conftest$ac_exeext"' 10096 { (eval echo "$as_me:10096: \"$ac_try\"") >&5 10097 (eval $ac_try) 2>&5 10098 ac_status=$? 10099 echo "$as_me:10099: \$? = $ac_status" >&5 10100 (exit "$ac_status"); }; }; then 10101 cf_cv_have_sys_nerr=yes 10102else 10103 echo "$as_me: failed program was:" >&5 10104cat "conftest.$ac_ext" >&5 10105cf_cv_have_sys_nerr=no 10106fi 10107rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10108 10109fi 10110echo "$as_me:10110: result: $cf_cv_have_sys_nerr" >&5 10111echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 10112 10113if test "$cf_cv_have_sys_nerr" = yes ; then 10114 10115cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10116 10117 cat >>confdefs.h <<EOF 10118#define $cf_result 1 10119EOF 10120 10121fi 10122 10123echo "$as_me:10123: checking if external sys_errlist is declared" >&5 10124echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 10125if test "${cf_cv_dcl_sys_errlist+set}" = set; then 10126 echo $ECHO_N "(cached) $ECHO_C" >&6 10127else 10128 10129 cat >"conftest.$ac_ext" <<_ACEOF 10130#line 10130 "configure" 10131#include "confdefs.h" 10132 10133$ac_includes_default 10134#include <errno.h> 10135int 10136main (void) 10137{ 10138int x = (int) sys_errlist; (void)x 10139 ; 10140 return 0; 10141} 10142_ACEOF 10143rm -f "conftest.$ac_objext" 10144if { (eval echo "$as_me:10144: \"$ac_compile\"") >&5 10145 (eval $ac_compile) 2>&5 10146 ac_status=$? 10147 echo "$as_me:10147: \$? = $ac_status" >&5 10148 (exit "$ac_status"); } && 10149 { ac_try='test -s "conftest.$ac_objext"' 10150 { (eval echo "$as_me:10150: \"$ac_try\"") >&5 10151 (eval $ac_try) 2>&5 10152 ac_status=$? 10153 echo "$as_me:10153: \$? = $ac_status" >&5 10154 (exit "$ac_status"); }; }; then 10155 cf_cv_dcl_sys_errlist=yes 10156else 10157 echo "$as_me: failed program was:" >&5 10158cat "conftest.$ac_ext" >&5 10159cf_cv_dcl_sys_errlist=no 10160fi 10161rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10162 10163fi 10164echo "$as_me:10164: result: $cf_cv_dcl_sys_errlist" >&5 10165echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 10166 10167if test "$cf_cv_dcl_sys_errlist" = no ; then 10168 10169cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10170 10171 cat >>confdefs.h <<EOF 10172#define $cf_result 1 10173EOF 10174 10175fi 10176 10177# It's possible (for near-UNIX clones) that the data doesn't exist 10178 10179echo "$as_me:10179: checking if external sys_errlist exists" >&5 10180echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 10181if test "${cf_cv_have_sys_errlist+set}" = set; then 10182 echo $ECHO_N "(cached) $ECHO_C" >&6 10183else 10184 10185 cat >"conftest.$ac_ext" <<_ACEOF 10186#line 10186 "configure" 10187#include "confdefs.h" 10188 10189#undef sys_errlist 10190extern int sys_errlist; 10191 10192int 10193main (void) 10194{ 10195sys_errlist = 2 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10201if { (eval echo "$as_me:10201: \"$ac_link\"") >&5 10202 (eval $ac_link) 2>&5 10203 ac_status=$? 10204 echo "$as_me:10204: \$? = $ac_status" >&5 10205 (exit "$ac_status"); } && 10206 { ac_try='test -s "conftest$ac_exeext"' 10207 { (eval echo "$as_me:10207: \"$ac_try\"") >&5 10208 (eval $ac_try) 2>&5 10209 ac_status=$? 10210 echo "$as_me:10210: \$? = $ac_status" >&5 10211 (exit "$ac_status"); }; }; then 10212 cf_cv_have_sys_errlist=yes 10213else 10214 echo "$as_me: failed program was:" >&5 10215cat "conftest.$ac_ext" >&5 10216cf_cv_have_sys_errlist=no 10217fi 10218rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10219 10220fi 10221echo "$as_me:10221: result: $cf_cv_have_sys_errlist" >&5 10222echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 10223 10224if test "$cf_cv_have_sys_errlist" = yes ; then 10225 10226cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10227 10228 cat >>confdefs.h <<EOF 10229#define $cf_result 1 10230EOF 10231 10232fi 10233 10234cf_save_LIBS_CF_SYSV="$LIBS" 10235cf_save_CFLAGS_CF_SYSV="$CFLAGS" 10236cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS" 10237LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 10238for cf_X_CFLAGS in $X_CFLAGS 10239do 10240 case "x$cf_X_CFLAGS" in 10241 x-[IUD]*) 10242 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 10243 ;; 10244 *) 10245 CFLAGS="$CFLAGS $cf_X_CFLAGS" 10246 ;; 10247 esac 10248done 10249 10250for ac_header in \ 10251termios.h \ 10252stdlib.h \ 10253X11/Intrinsic.h \ 10254 10255do 10256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10257echo "$as_me:10257: checking for $ac_header" >&5 10258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10259if eval "test \"\${$as_ac_Header+set}\" = set"; then 10260 echo $ECHO_N "(cached) $ECHO_C" >&6 10261else 10262 cat >"conftest.$ac_ext" <<_ACEOF 10263#line 10263 "configure" 10264#include "confdefs.h" 10265#include <$ac_header> 10266_ACEOF 10267if { (eval echo "$as_me:10267: \"$ac_cpp "conftest.$ac_ext"\"") >&5 10268 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 10269 ac_status=$? 10270 $EGREP -v '^ *\+' conftest.er1 >conftest.err 10271 rm -f conftest.er1 10272 cat conftest.err >&5 10273 echo "$as_me:10273: \$? = $ac_status" >&5 10274 (exit "$ac_status"); } >/dev/null; then 10275 if test -s conftest.err; then 10276 ac_cpp_err=$ac_c_preproc_warn_flag 10277 else 10278 ac_cpp_err= 10279 fi 10280else 10281 ac_cpp_err=yes 10282fi 10283if test -z "$ac_cpp_err"; then 10284 eval "$as_ac_Header=yes" 10285else 10286 echo "$as_me: failed program was:" >&5 10287 cat "conftest.$ac_ext" >&5 10288 eval "$as_ac_Header=no" 10289fi 10290rm -f conftest.err "conftest.$ac_ext" 10291fi 10292echo "$as_me:10292: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 10293echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 10294if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 10295 cat >>confdefs.h <<EOF 10296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10297EOF 10298 10299fi 10300done 10301 10302echo "$as_me:10302: checking if we should define SYSV" >&5 10303echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 10304if test "${cf_cv_sysv+set}" = set; then 10305 echo $ECHO_N "(cached) $ECHO_C" >&6 10306else 10307 10308cat >"conftest.$ac_ext" <<_ACEOF 10309#line 10309 "configure" 10310#include "confdefs.h" 10311 10312#undef SYSV 10313#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 10314#ifdef HAVE_STDLIB_H 10315#include <stdlib.h> /* look for wchar_t */ 10316#endif 10317#ifdef HAVE_X11_INTRINSIC_H 10318#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 10319#endif 10320#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 10321#include <termios.h> 10322#define STRUCT_TERMIOS struct termios 10323#else 10324#define STRUCT_TERMIOS struct termio 10325#endif 10326#include <curses.h> 10327#include <term.h> /* eliminate most BSD hacks */ 10328#include <errno.h> /* declare sys_errlist on older systems */ 10329#include <sys/termio.h> /* eliminate most of the remaining ones */ 10330 10331int 10332main (void) 10333{ 10334 10335static STRUCT_TERMIOS d_tio; 10336 d_tio.c_cc[VINTR] = 0; 10337 d_tio.c_cc[VQUIT] = 0; 10338 d_tio.c_cc[VERASE] = 0; 10339 d_tio.c_cc[VKILL] = 0; 10340 d_tio.c_cc[VEOF] = 0; 10341 d_tio.c_cc[VEOL] = 0; 10342 d_tio.c_cc[VMIN] = 0; 10343 d_tio.c_cc[VTIME] = 0; 10344#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 10345sys_errlist[0] = ""; /* Cygwin mis-declares this */ 10346#endif 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352rm -f "conftest.$ac_objext" 10353if { (eval echo "$as_me:10353: \"$ac_compile\"") >&5 10354 (eval $ac_compile) 2>&5 10355 ac_status=$? 10356 echo "$as_me:10356: \$? = $ac_status" >&5 10357 (exit "$ac_status"); } && 10358 { ac_try='test -s "conftest.$ac_objext"' 10359 { (eval echo "$as_me:10359: \"$ac_try\"") >&5 10360 (eval $ac_try) 2>&5 10361 ac_status=$? 10362 echo "$as_me:10362: \$? = $ac_status" >&5 10363 (exit "$ac_status"); }; }; then 10364 cf_cv_sysv=yes 10365else 10366 echo "$as_me: failed program was:" >&5 10367cat "conftest.$ac_ext" >&5 10368cf_cv_sysv=no 10369fi 10370rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10371 10372fi 10373echo "$as_me:10373: result: $cf_cv_sysv" >&5 10374echo "${ECHO_T}$cf_cv_sysv" >&6 10375test "$cf_cv_sysv" = yes && 10376cat >>confdefs.h <<\EOF 10377#define SYSV 1 10378EOF 10379 10380LIBS="$cf_save_LIBS_CF_SYSV" 10381CFLAGS="$cf_save_CFLAGS_CF_SYSV" 10382CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV" 10383 10384echo "$as_me:10384: checking for elf_begin in -lelf" >&5 10385echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 10386if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 10387 echo $ECHO_N "(cached) $ECHO_C" >&6 10388else 10389 ac_check_lib_save_LIBS=$LIBS 10390LIBS="-lelf $LIBS" 10391cat >"conftest.$ac_ext" <<_ACEOF 10392#line 10392 "configure" 10393#include "confdefs.h" 10394 10395/* Override any gcc2 internal prototype to avoid an error. */ 10396#ifdef __cplusplus 10397extern "C" 10398#endif 10399/* We use char because int might match the return type of a gcc2 10400 builtin and then its argument prototype would still apply. */ 10401char elf_begin (); 10402int 10403main (void) 10404{ 10405elf_begin (); 10406 ; 10407 return 0; 10408} 10409_ACEOF 10410rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10411if { (eval echo "$as_me:10411: \"$ac_link\"") >&5 10412 (eval $ac_link) 2>&5 10413 ac_status=$? 10414 echo "$as_me:10414: \$? = $ac_status" >&5 10415 (exit "$ac_status"); } && 10416 { ac_try='test -s "conftest$ac_exeext"' 10417 { (eval echo "$as_me:10417: \"$ac_try\"") >&5 10418 (eval $ac_try) 2>&5 10419 ac_status=$? 10420 echo "$as_me:10420: \$? = $ac_status" >&5 10421 (exit "$ac_status"); }; }; then 10422 ac_cv_lib_elf_elf_begin=yes 10423else 10424 echo "$as_me: failed program was:" >&5 10425cat "conftest.$ac_ext" >&5 10426ac_cv_lib_elf_elf_begin=no 10427fi 10428rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10429LIBS=$ac_check_lib_save_LIBS 10430fi 10431echo "$as_me:10431: result: $ac_cv_lib_elf_elf_begin" >&5 10432echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 10433if test "$ac_cv_lib_elf_elf_begin" = yes; then 10434 10435echo "$as_me:10435: checking if this is an SVR4 system" >&5 10436echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 10437if test "${cf_cv_svr4+set}" = set; then 10438 echo $ECHO_N "(cached) $ECHO_C" >&6 10439else 10440 10441cat >"conftest.$ac_ext" <<_ACEOF 10442#line 10442 "configure" 10443#include "confdefs.h" 10444 10445#if defined(__CYGWIN__) 10446make an error 10447#endif 10448#include <elf.h> 10449#include <sys/termio.h> 10450 10451int 10452main (void) 10453{ 10454 10455static struct termio d_tio; 10456 d_tio.c_cc[VINTR] = 0; 10457 d_tio.c_cc[VQUIT] = 0; 10458 d_tio.c_cc[VERASE] = 0; 10459 d_tio.c_cc[VKILL] = 0; 10460 d_tio.c_cc[VEOF] = 0; 10461 d_tio.c_cc[VEOL] = 0; 10462 d_tio.c_cc[VMIN] = 0; 10463 d_tio.c_cc[VTIME] = 0; 10464 d_tio.c_cc[VLNEXT] = 0; 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470rm -f "conftest.$ac_objext" 10471if { (eval echo "$as_me:10471: \"$ac_compile\"") >&5 10472 (eval $ac_compile) 2>&5 10473 ac_status=$? 10474 echo "$as_me:10474: \$? = $ac_status" >&5 10475 (exit "$ac_status"); } && 10476 { ac_try='test -s "conftest.$ac_objext"' 10477 { (eval echo "$as_me:10477: \"$ac_try\"") >&5 10478 (eval $ac_try) 2>&5 10479 ac_status=$? 10480 echo "$as_me:10480: \$? = $ac_status" >&5 10481 (exit "$ac_status"); }; }; then 10482 cf_cv_svr4=yes 10483else 10484 echo "$as_me: failed program was:" >&5 10485cat "conftest.$ac_ext" >&5 10486cf_cv_svr4=no 10487fi 10488rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10489 10490fi 10491echo "$as_me:10491: result: $cf_cv_svr4" >&5 10492echo "${ECHO_T}$cf_cv_svr4" >&6 10493 10494fi 10495 10496test "$cf_cv_svr4" = yes && 10497cat >>confdefs.h <<\EOF 10498#define SVR4 1 10499EOF 10500 10501echo "$as_me:10501: checking if you want to use pkg-config" >&5 10502echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 10503 10504# Check whether --with-pkg-config or --without-pkg-config was given. 10505if test "${with_pkg_config+set}" = set; then 10506 withval="$with_pkg_config" 10507 cf_pkg_config=$withval 10508else 10509 cf_pkg_config=yes 10510fi; 10511echo "$as_me:10511: result: $cf_pkg_config" >&5 10512echo "${ECHO_T}$cf_pkg_config" >&6 10513 10514case "$cf_pkg_config" in 10515(no) 10516 PKG_CONFIG=none 10517 ;; 10518(yes) 10519 10520if test -n "$ac_tool_prefix"; then 10521 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10522set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10523echo "$as_me:10523: checking for $ac_word" >&5 10524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10525if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 10526 echo $ECHO_N "(cached) $ECHO_C" >&6 10527else 10528 case $PKG_CONFIG in 10529 [\\/]* | ?:[\\/]*) 10530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10531 ;; 10532 *) 10533 ac_save_IFS=$IFS; IFS=$ac_path_separator 10534ac_dummy="$PATH" 10535for ac_dir in $ac_dummy; do 10536 IFS=$ac_save_IFS 10537 test -z "$ac_dir" && ac_dir=. 10538 if $as_executable_p "$ac_dir/$ac_word"; then 10539 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 10540 echo "$as_me:10540: found $ac_dir/$ac_word" >&5 10541 break 10542fi 10543done 10544 10545 ;; 10546esac 10547fi 10548PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10549 10550if test -n "$PKG_CONFIG"; then 10551 echo "$as_me:10551: result: $PKG_CONFIG" >&5 10552echo "${ECHO_T}$PKG_CONFIG" >&6 10553else 10554 echo "$as_me:10554: result: no" >&5 10555echo "${ECHO_T}no" >&6 10556fi 10557 10558fi 10559if test -z "$ac_cv_path_PKG_CONFIG"; then 10560 ac_pt_PKG_CONFIG=$PKG_CONFIG 10561 # Extract the first word of "pkg-config", so it can be a program name with args. 10562set dummy pkg-config; ac_word=$2 10563echo "$as_me:10563: checking for $ac_word" >&5 10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10565if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 10566 echo $ECHO_N "(cached) $ECHO_C" >&6 10567else 10568 case $ac_pt_PKG_CONFIG in 10569 [\\/]* | ?:[\\/]*) 10570 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10571 ;; 10572 *) 10573 ac_save_IFS=$IFS; IFS=$ac_path_separator 10574ac_dummy="$PATH" 10575for ac_dir in $ac_dummy; do 10576 IFS=$ac_save_IFS 10577 test -z "$ac_dir" && ac_dir=. 10578 if $as_executable_p "$ac_dir/$ac_word"; then 10579 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 10580 echo "$as_me:10580: found $ac_dir/$ac_word" >&5 10581 break 10582fi 10583done 10584 10585 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 10586 ;; 10587esac 10588fi 10589ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10590 10591if test -n "$ac_pt_PKG_CONFIG"; then 10592 echo "$as_me:10592: result: $ac_pt_PKG_CONFIG" >&5 10593echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 10594else 10595 echo "$as_me:10595: result: no" >&5 10596echo "${ECHO_T}no" >&6 10597fi 10598 10599 PKG_CONFIG=$ac_pt_PKG_CONFIG 10600else 10601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10602fi 10603 10604 ;; 10605(*) 10606 PKG_CONFIG=$withval 10607 ;; 10608esac 10609 10610test -z "$PKG_CONFIG" && PKG_CONFIG=none 10611if test "$PKG_CONFIG" != none ; then 10612 10613if test "x$prefix" != xNONE; then 10614 cf_path_syntax="$prefix" 10615else 10616 cf_path_syntax="$ac_default_prefix" 10617fi 10618 10619case ".$PKG_CONFIG" in 10620(.\$\(*\)*|.\'*\'*) 10621 ;; 10622(..|./*|.\\*) 10623 ;; 10624(.[a-zA-Z]:[\\/]*) # OS/2 EMX 10625 ;; 10626(.\$\{*prefix\}*|.\$\{*dir\}*) 10627 eval PKG_CONFIG="$PKG_CONFIG" 10628 case ".$PKG_CONFIG" in 10629 (.NONE/*) 10630 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 10631 ;; 10632 esac 10633 ;; 10634(.no|.NONE/*) 10635 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 10636 ;; 10637(*) 10638 { { echo "$as_me:10638: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 10639echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 10640 { (exit 1); exit 1; }; } 10641 ;; 10642esac 10643 10644elif test "x$cf_pkg_config" != xno ; then 10645 { echo "$as_me:10645: WARNING: pkg-config is not installed" >&5 10646echo "$as_me: WARNING: pkg-config is not installed" >&2;} 10647fi 10648 10649# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 10650# in some cases has installed dummy files in the former, other cases replaced 10651# it with a link to the new location). This complicates the configure script. 10652# Check for that pitfall, and recover using pkg-config 10653# 10654# If none of these are set, the configuration is almost certainly broken. 10655if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 10656then 10657 10658if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 10659 test -n "$verbose" && echo " found package x11" 1>&6 10660 10661echo "${as_me:-configure}:10661: testing found package x11 ..." 1>&5 10662 10663 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 10664 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 10665 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 10666 10667echo "${as_me:-configure}:10667: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10668 10669 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 10670 10671echo "${as_me:-configure}:10671: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 10672 10673cf_fix_cppflags=no 10674cf_new_cflags= 10675cf_new_cppflags= 10676cf_new_extra_cppflags= 10677 10678for cf_add_cflags in $cf_pkgconfig_incs 10679do 10680case "$cf_fix_cppflags" in 10681(no) 10682 case "$cf_add_cflags" in 10683 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10684 case "$cf_add_cflags" in 10685 (-D*) 10686 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10687 10688 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10689 && test -z "${cf_tst_cflags}" \ 10690 && cf_fix_cppflags=yes 10691 10692 if test "$cf_fix_cppflags" = yes ; then 10693 10694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10696 10697 continue 10698 elif test "${cf_tst_cflags}" = "\"'" ; then 10699 10700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10702 10703 continue 10704 fi 10705 ;; 10706 esac 10707 case "$CPPFLAGS" in 10708 (*$cf_add_cflags) 10709 ;; 10710 (*) 10711 case "$cf_add_cflags" in 10712 (-D*) 10713 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10714 10715CPPFLAGS=`echo "$CPPFLAGS" | \ 10716 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10717 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10718 10719 ;; 10720 esac 10721 10722 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10723 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10724 10725 ;; 10726 esac 10727 ;; 10728 (*) 10729 10730 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10731 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10732 10733 ;; 10734 esac 10735 ;; 10736(yes) 10737 10738 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10739 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10740 10741 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10742 10743 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10744 && test -z "${cf_tst_cflags}" \ 10745 && cf_fix_cppflags=no 10746 ;; 10747esac 10748done 10749 10750if test -n "$cf_new_cflags" ; then 10751 10752 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10753 CFLAGS="${CFLAGS}$cf_new_cflags" 10754 10755fi 10756 10757if test -n "$cf_new_cppflags" ; then 10758 10759 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10760 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10761 10762fi 10763 10764if test -n "$cf_new_extra_cppflags" ; then 10765 10766 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10767 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10768 10769fi 10770 10771cf_add_libs="$LIBS" 10772# reverse order 10773cf_add_0lib= 10774for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10775# filter duplicates 10776for cf_add_1lib in $cf_add_0lib; do 10777 for cf_add_2lib in $cf_add_libs; do 10778 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10779 cf_add_1lib= 10780 break 10781 fi 10782 done 10783 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10784done 10785LIBS="$cf_add_libs" 10786 10787 : 10788else 10789 cf_pkgconfig_incs= 10790 cf_pkgconfig_libs= 10791 { echo "$as_me:10791: WARNING: unable to find X11 library" >&5 10792echo "$as_me: WARNING: unable to find X11 library" >&2;} 10793fi 10794 10795if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 10796 test -n "$verbose" && echo " found package ice" 1>&6 10797 10798echo "${as_me:-configure}:10798: testing found package ice ..." 1>&5 10799 10800 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 10801 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 10802 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 10803 10804echo "${as_me:-configure}:10804: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10805 10806 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 10807 10808echo "${as_me:-configure}:10808: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 10809 10810cf_fix_cppflags=no 10811cf_new_cflags= 10812cf_new_cppflags= 10813cf_new_extra_cppflags= 10814 10815for cf_add_cflags in $cf_pkgconfig_incs 10816do 10817case "$cf_fix_cppflags" in 10818(no) 10819 case "$cf_add_cflags" in 10820 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10821 case "$cf_add_cflags" in 10822 (-D*) 10823 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10824 10825 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10826 && test -z "${cf_tst_cflags}" \ 10827 && cf_fix_cppflags=yes 10828 10829 if test "$cf_fix_cppflags" = yes ; then 10830 10831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10833 10834 continue 10835 elif test "${cf_tst_cflags}" = "\"'" ; then 10836 10837 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10838 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10839 10840 continue 10841 fi 10842 ;; 10843 esac 10844 case "$CPPFLAGS" in 10845 (*$cf_add_cflags) 10846 ;; 10847 (*) 10848 case "$cf_add_cflags" in 10849 (-D*) 10850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10851 10852CPPFLAGS=`echo "$CPPFLAGS" | \ 10853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10855 10856 ;; 10857 esac 10858 10859 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10860 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10861 10862 ;; 10863 esac 10864 ;; 10865 (*) 10866 10867 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10868 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10869 10870 ;; 10871 esac 10872 ;; 10873(yes) 10874 10875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10877 10878 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10879 10880 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10881 && test -z "${cf_tst_cflags}" \ 10882 && cf_fix_cppflags=no 10883 ;; 10884esac 10885done 10886 10887if test -n "$cf_new_cflags" ; then 10888 10889 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10890 CFLAGS="${CFLAGS}$cf_new_cflags" 10891 10892fi 10893 10894if test -n "$cf_new_cppflags" ; then 10895 10896 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10897 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10898 10899fi 10900 10901if test -n "$cf_new_extra_cppflags" ; then 10902 10903 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10904 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10905 10906fi 10907 10908cf_add_libs="$LIBS" 10909# reverse order 10910cf_add_0lib= 10911for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10912# filter duplicates 10913for cf_add_1lib in $cf_add_0lib; do 10914 for cf_add_2lib in $cf_add_libs; do 10915 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10916 cf_add_1lib= 10917 break 10918 fi 10919 done 10920 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10921done 10922LIBS="$cf_add_libs" 10923 10924 : 10925else 10926 cf_pkgconfig_incs= 10927 cf_pkgconfig_libs= 10928 { echo "$as_me:10928: WARNING: unable to find ICE library" >&5 10929echo "$as_me: WARNING: unable to find ICE library" >&2;} 10930fi 10931 10932if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 10933 test -n "$verbose" && echo " found package sm" 1>&6 10934 10935echo "${as_me:-configure}:10935: testing found package sm ..." 1>&5 10936 10937 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 10938 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 10939 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 10940 10941echo "${as_me:-configure}:10941: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10942 10943 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 10944 10945echo "${as_me:-configure}:10945: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 10946 10947cf_fix_cppflags=no 10948cf_new_cflags= 10949cf_new_cppflags= 10950cf_new_extra_cppflags= 10951 10952for cf_add_cflags in $cf_pkgconfig_incs 10953do 10954case "$cf_fix_cppflags" in 10955(no) 10956 case "$cf_add_cflags" in 10957 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10958 case "$cf_add_cflags" in 10959 (-D*) 10960 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10961 10962 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10963 && test -z "${cf_tst_cflags}" \ 10964 && cf_fix_cppflags=yes 10965 10966 if test "$cf_fix_cppflags" = yes ; then 10967 10968 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10969 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10970 10971 continue 10972 elif test "${cf_tst_cflags}" = "\"'" ; then 10973 10974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10976 10977 continue 10978 fi 10979 ;; 10980 esac 10981 case "$CPPFLAGS" in 10982 (*$cf_add_cflags) 10983 ;; 10984 (*) 10985 case "$cf_add_cflags" in 10986 (-D*) 10987 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10988 10989CPPFLAGS=`echo "$CPPFLAGS" | \ 10990 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10991 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10992 10993 ;; 10994 esac 10995 10996 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10997 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10998 10999 ;; 11000 esac 11001 ;; 11002 (*) 11003 11004 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11005 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11006 11007 ;; 11008 esac 11009 ;; 11010(yes) 11011 11012 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11013 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11014 11015 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11016 11017 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11018 && test -z "${cf_tst_cflags}" \ 11019 && cf_fix_cppflags=no 11020 ;; 11021esac 11022done 11023 11024if test -n "$cf_new_cflags" ; then 11025 11026 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11027 CFLAGS="${CFLAGS}$cf_new_cflags" 11028 11029fi 11030 11031if test -n "$cf_new_cppflags" ; then 11032 11033 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11034 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11035 11036fi 11037 11038if test -n "$cf_new_extra_cppflags" ; then 11039 11040 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11041 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11042 11043fi 11044 11045cf_add_libs="$LIBS" 11046# reverse order 11047cf_add_0lib= 11048for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11049# filter duplicates 11050for cf_add_1lib in $cf_add_0lib; do 11051 for cf_add_2lib in $cf_add_libs; do 11052 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11053 cf_add_1lib= 11054 break 11055 fi 11056 done 11057 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11058done 11059LIBS="$cf_add_libs" 11060 11061 : 11062else 11063 cf_pkgconfig_incs= 11064 cf_pkgconfig_libs= 11065 { echo "$as_me:11065: WARNING: unable to find SM library" >&5 11066echo "$as_me: WARNING: unable to find SM library" >&2;} 11067fi 11068 11069if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11070 test -n "$verbose" && echo " found package xt" 1>&6 11071 11072echo "${as_me:-configure}:11072: testing found package xt ..." 1>&5 11073 11074 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11075 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11076 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11077 11078echo "${as_me:-configure}:11078: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11079 11080 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11081 11082echo "${as_me:-configure}:11082: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11083 11084cf_fix_cppflags=no 11085cf_new_cflags= 11086cf_new_cppflags= 11087cf_new_extra_cppflags= 11088 11089for cf_add_cflags in $cf_pkgconfig_incs 11090do 11091case "$cf_fix_cppflags" in 11092(no) 11093 case "$cf_add_cflags" in 11094 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11095 case "$cf_add_cflags" in 11096 (-D*) 11097 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11098 11099 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11100 && test -z "${cf_tst_cflags}" \ 11101 && cf_fix_cppflags=yes 11102 11103 if test "$cf_fix_cppflags" = yes ; then 11104 11105 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11106 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11107 11108 continue 11109 elif test "${cf_tst_cflags}" = "\"'" ; then 11110 11111 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11112 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11113 11114 continue 11115 fi 11116 ;; 11117 esac 11118 case "$CPPFLAGS" in 11119 (*$cf_add_cflags) 11120 ;; 11121 (*) 11122 case "$cf_add_cflags" in 11123 (-D*) 11124 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11125 11126CPPFLAGS=`echo "$CPPFLAGS" | \ 11127 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11128 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11129 11130 ;; 11131 esac 11132 11133 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11134 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11135 11136 ;; 11137 esac 11138 ;; 11139 (*) 11140 11141 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11142 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11143 11144 ;; 11145 esac 11146 ;; 11147(yes) 11148 11149 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11150 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11151 11152 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11153 11154 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11155 && test -z "${cf_tst_cflags}" \ 11156 && cf_fix_cppflags=no 11157 ;; 11158esac 11159done 11160 11161if test -n "$cf_new_cflags" ; then 11162 11163 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11164 CFLAGS="${CFLAGS}$cf_new_cflags" 11165 11166fi 11167 11168if test -n "$cf_new_cppflags" ; then 11169 11170 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11171 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11172 11173fi 11174 11175if test -n "$cf_new_extra_cppflags" ; then 11176 11177 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11178 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11179 11180fi 11181 11182cf_add_libs="$LIBS" 11183# reverse order 11184cf_add_0lib= 11185for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11186# filter duplicates 11187for cf_add_1lib in $cf_add_0lib; do 11188 for cf_add_2lib in $cf_add_libs; do 11189 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11190 cf_add_1lib= 11191 break 11192 fi 11193 done 11194 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11195done 11196LIBS="$cf_add_libs" 11197 11198 : 11199else 11200 cf_pkgconfig_incs= 11201 cf_pkgconfig_libs= 11202 { echo "$as_me:11202: WARNING: unable to find Xt library" >&5 11203echo "$as_me: WARNING: unable to find Xt library" >&2;} 11204fi 11205 11206else 11207 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 11208fi 11209 11210cf_have_X_LIBS=no 11211 11212if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11213 test -n "$verbose" && echo " found package xt" 1>&6 11214 11215echo "${as_me:-configure}:11215: testing found package xt ..." 1>&5 11216 11217 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11218 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11219 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11220 11221echo "${as_me:-configure}:11221: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11222 11223 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11224 11225echo "${as_me:-configure}:11225: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11226 11227cf_fix_cppflags=no 11228cf_new_cflags= 11229cf_new_cppflags= 11230cf_new_extra_cppflags= 11231 11232for cf_add_cflags in $cf_pkgconfig_incs 11233do 11234case "$cf_fix_cppflags" in 11235(no) 11236 case "$cf_add_cflags" in 11237 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11238 case "$cf_add_cflags" in 11239 (-D*) 11240 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11241 11242 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11243 && test -z "${cf_tst_cflags}" \ 11244 && cf_fix_cppflags=yes 11245 11246 if test "$cf_fix_cppflags" = yes ; then 11247 11248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11250 11251 continue 11252 elif test "${cf_tst_cflags}" = "\"'" ; then 11253 11254 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11255 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11256 11257 continue 11258 fi 11259 ;; 11260 esac 11261 case "$CPPFLAGS" in 11262 (*$cf_add_cflags) 11263 ;; 11264 (*) 11265 case "$cf_add_cflags" in 11266 (-D*) 11267 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11268 11269CPPFLAGS=`echo "$CPPFLAGS" | \ 11270 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11271 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11272 11273 ;; 11274 esac 11275 11276 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11277 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11278 11279 ;; 11280 esac 11281 ;; 11282 (*) 11283 11284 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11285 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11286 11287 ;; 11288 esac 11289 ;; 11290(yes) 11291 11292 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11293 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11294 11295 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11296 11297 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11298 && test -z "${cf_tst_cflags}" \ 11299 && cf_fix_cppflags=no 11300 ;; 11301esac 11302done 11303 11304if test -n "$cf_new_cflags" ; then 11305 11306 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11307 CFLAGS="${CFLAGS}$cf_new_cflags" 11308 11309fi 11310 11311if test -n "$cf_new_cppflags" ; then 11312 11313 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11314 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11315 11316fi 11317 11318if test -n "$cf_new_extra_cppflags" ; then 11319 11320 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11321 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11322 11323fi 11324 11325cf_add_libs="$LIBS" 11326# reverse order 11327cf_add_0lib= 11328for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11329# filter duplicates 11330for cf_add_1lib in $cf_add_0lib; do 11331 for cf_add_2lib in $cf_add_libs; do 11332 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11333 cf_add_1lib= 11334 break 11335 fi 11336 done 11337 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11338done 11339LIBS="$cf_add_libs" 11340 11341 case "x$LIBS" in 11342 (*-lX11*) 11343 ;; 11344 (*) 11345# we have an "xt" package, but it may omit Xt's dependency on X11 11346echo "$as_me:11346: checking for usable X dependency" >&5 11347echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 11348if test "${cf_cv_xt_x11_compat+set}" = set; then 11349 echo $ECHO_N "(cached) $ECHO_C" >&6 11350else 11351 11352cat >"conftest.$ac_ext" <<_ACEOF 11353#line 11353 "configure" 11354#include "confdefs.h" 11355 11356$ac_includes_default 11357#include <X11/Xlib.h> 11358 11359int 11360main (void) 11361{ 11362 11363 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 11364 int rc2 = XClearWindow((Display*) 0, (Window) 0); 11365 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 11366 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 11367 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11373if { (eval echo "$as_me:11373: \"$ac_link\"") >&5 11374 (eval $ac_link) 2>&5 11375 ac_status=$? 11376 echo "$as_me:11376: \$? = $ac_status" >&5 11377 (exit "$ac_status"); } && 11378 { ac_try='test -s "conftest$ac_exeext"' 11379 { (eval echo "$as_me:11379: \"$ac_try\"") >&5 11380 (eval $ac_try) 2>&5 11381 ac_status=$? 11382 echo "$as_me:11382: \$? = $ac_status" >&5 11383 (exit "$ac_status"); }; }; then 11384 cf_cv_xt_x11_compat=yes 11385else 11386 echo "$as_me: failed program was:" >&5 11387cat "conftest.$ac_ext" >&5 11388cf_cv_xt_x11_compat=no 11389fi 11390rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11391fi 11392echo "$as_me:11392: result: $cf_cv_xt_x11_compat" >&5 11393echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 11394 if test "$cf_cv_xt_x11_compat" = no 11395 then 11396 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 11397 11398echo "${as_me:-configure}:11398: testing work around broken X11 dependency ..." 1>&5 11399 11400 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 11401 11402if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11403 test -n "$verbose" && echo " found package x11" 1>&6 11404 11405echo "${as_me:-configure}:11405: testing found package x11 ..." 1>&5 11406 11407 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11408 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11409 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11410 11411echo "${as_me:-configure}:11411: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11412 11413 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11414 11415echo "${as_me:-configure}:11415: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11416 11417cf_fix_cppflags=no 11418cf_new_cflags= 11419cf_new_cppflags= 11420cf_new_extra_cppflags= 11421 11422for cf_add_cflags in $cf_pkgconfig_incs 11423do 11424case "$cf_fix_cppflags" in 11425(no) 11426 case "$cf_add_cflags" in 11427 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11428 case "$cf_add_cflags" in 11429 (-D*) 11430 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11431 11432 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11433 && test -z "${cf_tst_cflags}" \ 11434 && cf_fix_cppflags=yes 11435 11436 if test "$cf_fix_cppflags" = yes ; then 11437 11438 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11439 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11440 11441 continue 11442 elif test "${cf_tst_cflags}" = "\"'" ; then 11443 11444 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11445 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11446 11447 continue 11448 fi 11449 ;; 11450 esac 11451 case "$CPPFLAGS" in 11452 (*$cf_add_cflags) 11453 ;; 11454 (*) 11455 case "$cf_add_cflags" in 11456 (-D*) 11457 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11458 11459CPPFLAGS=`echo "$CPPFLAGS" | \ 11460 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11461 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11462 11463 ;; 11464 esac 11465 11466 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11467 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11468 11469 ;; 11470 esac 11471 ;; 11472 (*) 11473 11474 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11475 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11476 11477 ;; 11478 esac 11479 ;; 11480(yes) 11481 11482 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11483 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11484 11485 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11486 11487 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11488 && test -z "${cf_tst_cflags}" \ 11489 && cf_fix_cppflags=no 11490 ;; 11491esac 11492done 11493 11494if test -n "$cf_new_cflags" ; then 11495 11496 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11497 CFLAGS="${CFLAGS}$cf_new_cflags" 11498 11499fi 11500 11501if test -n "$cf_new_cppflags" ; then 11502 11503 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11504 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11505 11506fi 11507 11508if test -n "$cf_new_extra_cppflags" ; then 11509 11510 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11511 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11512 11513fi 11514 11515cf_add_libs="$LIBS" 11516# reverse order 11517cf_add_0lib= 11518for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11519# filter duplicates 11520for cf_add_1lib in $cf_add_0lib; do 11521 for cf_add_2lib in $cf_add_libs; do 11522 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11523 cf_add_1lib= 11524 break 11525 fi 11526 done 11527 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11528done 11529LIBS="$cf_add_libs" 11530 11531 : 11532else 11533 cf_pkgconfig_incs= 11534 cf_pkgconfig_libs= 11535 11536test -n "$verbose" && echo " ...before $LIBS" 1>&6 11537 11538echo "${as_me:-configure}:11538: testing ...before $LIBS ..." 1>&5 11539 11540LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 11541test -n "$verbose" && echo " ...after $LIBS" 1>&6 11542 11543echo "${as_me:-configure}:11543: testing ...after $LIBS ..." 1>&5 11544 11545fi 11546 11547 fi 11548 ;; 11549 esac 11550 11551echo "$as_me:11551: checking for usable X Toolkit package" >&5 11552echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 11553if test "${cf_cv_xt_ice_compat+set}" = set; then 11554 echo $ECHO_N "(cached) $ECHO_C" >&6 11555else 11556 11557cat >"conftest.$ac_ext" <<_ACEOF 11558#line 11558 "configure" 11559#include "confdefs.h" 11560 11561$ac_includes_default 11562#include <X11/Shell.h> 11563 11564int 11565main (void) 11566{ 11567int num = IceConnectionNumber(0); (void) num 11568 11569 ; 11570 return 0; 11571} 11572_ACEOF 11573rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11574if { (eval echo "$as_me:11574: \"$ac_link\"") >&5 11575 (eval $ac_link) 2>&5 11576 ac_status=$? 11577 echo "$as_me:11577: \$? = $ac_status" >&5 11578 (exit "$ac_status"); } && 11579 { ac_try='test -s "conftest$ac_exeext"' 11580 { (eval echo "$as_me:11580: \"$ac_try\"") >&5 11581 (eval $ac_try) 2>&5 11582 ac_status=$? 11583 echo "$as_me:11583: \$? = $ac_status" >&5 11584 (exit "$ac_status"); }; }; then 11585 cf_cv_xt_ice_compat=yes 11586else 11587 echo "$as_me: failed program was:" >&5 11588cat "conftest.$ac_ext" >&5 11589cf_cv_xt_ice_compat=no 11590fi 11591rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11592fi 11593echo "$as_me:11593: result: $cf_cv_xt_ice_compat" >&5 11594echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 11595 11596 if test "$cf_cv_xt_ice_compat" = no 11597 then 11598 # workaround for broken ".pc" files used for X Toolkit. 11599 case "x$X_PRE_LIBS" in 11600 (*-lICE*) 11601 case "x$LIBS" in 11602 (*-lICE*) 11603 ;; 11604 (*) 11605 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 11606 11607echo "${as_me:-configure}:11607: testing work around broken ICE dependency ..." 1>&5 11608 11609if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 11610 test -n "$verbose" && echo " found package ice" 1>&6 11611 11612echo "${as_me:-configure}:11612: testing found package ice ..." 1>&5 11613 11614 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 11615 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 11616 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11617 11618echo "${as_me:-configure}:11618: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11619 11620 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11621 11622echo "${as_me:-configure}:11622: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11623 11624cf_fix_cppflags=no 11625cf_new_cflags= 11626cf_new_cppflags= 11627cf_new_extra_cppflags= 11628 11629for cf_add_cflags in $cf_pkgconfig_incs 11630do 11631case "$cf_fix_cppflags" in 11632(no) 11633 case "$cf_add_cflags" in 11634 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11635 case "$cf_add_cflags" in 11636 (-D*) 11637 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11638 11639 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11640 && test -z "${cf_tst_cflags}" \ 11641 && cf_fix_cppflags=yes 11642 11643 if test "$cf_fix_cppflags" = yes ; then 11644 11645 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11646 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11647 11648 continue 11649 elif test "${cf_tst_cflags}" = "\"'" ; then 11650 11651 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11652 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11653 11654 continue 11655 fi 11656 ;; 11657 esac 11658 case "$CPPFLAGS" in 11659 (*$cf_add_cflags) 11660 ;; 11661 (*) 11662 case "$cf_add_cflags" in 11663 (-D*) 11664 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11665 11666CPPFLAGS=`echo "$CPPFLAGS" | \ 11667 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11668 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11669 11670 ;; 11671 esac 11672 11673 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11674 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11675 11676 ;; 11677 esac 11678 ;; 11679 (*) 11680 11681 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11682 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11683 11684 ;; 11685 esac 11686 ;; 11687(yes) 11688 11689 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11690 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11691 11692 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11693 11694 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11695 && test -z "${cf_tst_cflags}" \ 11696 && cf_fix_cppflags=no 11697 ;; 11698esac 11699done 11700 11701if test -n "$cf_new_cflags" ; then 11702 11703 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11704 CFLAGS="${CFLAGS}$cf_new_cflags" 11705 11706fi 11707 11708if test -n "$cf_new_cppflags" ; then 11709 11710 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11711 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11712 11713fi 11714 11715if test -n "$cf_new_extra_cppflags" ; then 11716 11717 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11718 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11719 11720fi 11721 11722cf_add_libs="$LIBS" 11723# reverse order 11724cf_add_0lib= 11725for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11726# filter duplicates 11727for cf_add_1lib in $cf_add_0lib; do 11728 for cf_add_2lib in $cf_add_libs; do 11729 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11730 cf_add_1lib= 11731 break 11732 fi 11733 done 11734 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11735done 11736LIBS="$cf_add_libs" 11737 11738if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 11739 test -n "$verbose" && echo " found package sm" 1>&6 11740 11741echo "${as_me:-configure}:11741: testing found package sm ..." 1>&5 11742 11743 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 11744 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 11745 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11746 11747echo "${as_me:-configure}:11747: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11748 11749 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11750 11751echo "${as_me:-configure}:11751: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11752 11753cf_fix_cppflags=no 11754cf_new_cflags= 11755cf_new_cppflags= 11756cf_new_extra_cppflags= 11757 11758for cf_add_cflags in $cf_pkgconfig_incs 11759do 11760case "$cf_fix_cppflags" in 11761(no) 11762 case "$cf_add_cflags" in 11763 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11764 case "$cf_add_cflags" in 11765 (-D*) 11766 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11767 11768 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11769 && test -z "${cf_tst_cflags}" \ 11770 && cf_fix_cppflags=yes 11771 11772 if test "$cf_fix_cppflags" = yes ; then 11773 11774 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11775 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11776 11777 continue 11778 elif test "${cf_tst_cflags}" = "\"'" ; then 11779 11780 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11781 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11782 11783 continue 11784 fi 11785 ;; 11786 esac 11787 case "$CPPFLAGS" in 11788 (*$cf_add_cflags) 11789 ;; 11790 (*) 11791 case "$cf_add_cflags" in 11792 (-D*) 11793 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11794 11795CPPFLAGS=`echo "$CPPFLAGS" | \ 11796 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11797 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11798 11799 ;; 11800 esac 11801 11802 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11803 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11804 11805 ;; 11806 esac 11807 ;; 11808 (*) 11809 11810 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11811 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11812 11813 ;; 11814 esac 11815 ;; 11816(yes) 11817 11818 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11819 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11820 11821 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11822 11823 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11824 && test -z "${cf_tst_cflags}" \ 11825 && cf_fix_cppflags=no 11826 ;; 11827esac 11828done 11829 11830if test -n "$cf_new_cflags" ; then 11831 11832 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11833 CFLAGS="${CFLAGS}$cf_new_cflags" 11834 11835fi 11836 11837if test -n "$cf_new_cppflags" ; then 11838 11839 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11840 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11841 11842fi 11843 11844if test -n "$cf_new_extra_cppflags" ; then 11845 11846 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11847 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11848 11849fi 11850 11851cf_add_libs="$LIBS" 11852# reverse order 11853cf_add_0lib= 11854for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11855# filter duplicates 11856for cf_add_1lib in $cf_add_0lib; do 11857 for cf_add_2lib in $cf_add_libs; do 11858 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11859 cf_add_1lib= 11860 break 11861 fi 11862 done 11863 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11864done 11865LIBS="$cf_add_libs" 11866 11867 : 11868else 11869 cf_pkgconfig_incs= 11870 cf_pkgconfig_libs= 11871 : 11872fi 11873 11874else 11875 cf_pkgconfig_incs= 11876 cf_pkgconfig_libs= 11877 11878test -n "$verbose" && echo " ...before $LIBS" 1>&6 11879 11880echo "${as_me:-configure}:11880: testing ...before $LIBS ..." 1>&5 11881 11882LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 11883test -n "$verbose" && echo " ...after $LIBS" 1>&6 11884 11885echo "${as_me:-configure}:11885: testing ...after $LIBS ..." 1>&5 11886 11887fi 11888 11889 ;; 11890 esac 11891 ;; 11892 esac 11893 fi 11894 11895 cf_have_X_LIBS=yes 11896 11897else 11898 cf_pkgconfig_incs= 11899 cf_pkgconfig_libs= 11900 11901 LDFLAGS="$X_LIBS $LDFLAGS" 11902 11903test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 11904 11905echo "${as_me:-configure}:11905: testing checking additions to CFLAGS ..." 1>&5 11906 11907cf_check_cflags="$CFLAGS" 11908cf_check_cppflags="$CPPFLAGS" 11909 11910cf_fix_cppflags=no 11911cf_new_cflags= 11912cf_new_cppflags= 11913cf_new_extra_cppflags= 11914 11915for cf_add_cflags in $X_CFLAGS 11916do 11917case "$cf_fix_cppflags" in 11918(no) 11919 case "$cf_add_cflags" in 11920 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11921 case "$cf_add_cflags" in 11922 (-D*) 11923 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11924 11925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11926 && test -z "${cf_tst_cflags}" \ 11927 && cf_fix_cppflags=yes 11928 11929 if test "$cf_fix_cppflags" = yes ; then 11930 11931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11933 11934 continue 11935 elif test "${cf_tst_cflags}" = "\"'" ; then 11936 11937 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11938 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11939 11940 continue 11941 fi 11942 ;; 11943 esac 11944 case "$CPPFLAGS" in 11945 (*$cf_add_cflags) 11946 ;; 11947 (*) 11948 case "$cf_add_cflags" in 11949 (-D*) 11950 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11951 11952CPPFLAGS=`echo "$CPPFLAGS" | \ 11953 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11954 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11955 11956 ;; 11957 esac 11958 11959 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11960 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11961 11962 ;; 11963 esac 11964 ;; 11965 (*) 11966 11967 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11968 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11969 11970 ;; 11971 esac 11972 ;; 11973(yes) 11974 11975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11977 11978 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11979 11980 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11981 && test -z "${cf_tst_cflags}" \ 11982 && cf_fix_cppflags=no 11983 ;; 11984esac 11985done 11986 11987if test -n "$cf_new_cflags" ; then 11988 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11989 11990echo "${as_me:-configure}:11990: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11991 11992 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11993 CFLAGS="${CFLAGS}$cf_new_cflags" 11994 11995fi 11996 11997if test -n "$cf_new_cppflags" ; then 11998 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11999 12000echo "${as_me:-configure}:12000: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 12001 12002 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12003 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12004 12005fi 12006 12007if test -n "$cf_new_extra_cppflags" ; then 12008 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 12009 12010echo "${as_me:-configure}:12010: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 12011 12012 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12013 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12014 12015fi 12016 12017if test "x$cf_check_cflags" != "x$CFLAGS" ; then 12018cat >"conftest.$ac_ext" <<_ACEOF 12019#line 12019 "configure" 12020#include "confdefs.h" 12021#include <stdio.h> 12022int 12023main (void) 12024{ 12025printf("Hello world"); 12026 ; 12027 return 0; 12028} 12029_ACEOF 12030rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12031if { (eval echo "$as_me:12031: \"$ac_link\"") >&5 12032 (eval $ac_link) 2>&5 12033 ac_status=$? 12034 echo "$as_me:12034: \$? = $ac_status" >&5 12035 (exit "$ac_status"); } && 12036 { ac_try='test -s "conftest$ac_exeext"' 12037 { (eval echo "$as_me:12037: \"$ac_try\"") >&5 12038 (eval $ac_try) 2>&5 12039 ac_status=$? 12040 echo "$as_me:12040: \$? = $ac_status" >&5 12041 (exit "$ac_status"); }; }; then 12042 : 12043else 12044 echo "$as_me: failed program was:" >&5 12045cat "conftest.$ac_ext" >&5 12046test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 12047 12048echo "${as_me:-configure}:12048: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 12049 12050 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 12051 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 12052 12053echo "${as_me:-configure}:12053: testing but keeping change to \$CPPFLAGS ..." 1>&5 12054 12055 fi 12056 CFLAGS="$cf_check_cflags" 12057fi 12058rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12059fi 12060 12061 echo "$as_me:12061: checking for XOpenDisplay" >&5 12062echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 12063if test "${ac_cv_func_XOpenDisplay+set}" = set; then 12064 echo $ECHO_N "(cached) $ECHO_C" >&6 12065else 12066 cat >"conftest.$ac_ext" <<_ACEOF 12067#line 12067 "configure" 12068#include "confdefs.h" 12069#define XOpenDisplay autoconf_temporary 12070#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12071#undef XOpenDisplay 12072 12073#ifdef __cplusplus 12074extern "C" 12075#endif 12076 12077/* We use char because int might match the return type of a gcc2 12078 builtin and then its argument prototype would still apply. */ 12079char XOpenDisplay (void); 12080 12081int 12082main (void) 12083{ 12084 12085/* The GNU C library defines stubs for functions which it implements 12086 to always fail with ENOSYS. Some functions are actually named 12087 something starting with __ and the normal name is an alias. */ 12088#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 12089#error found stub for XOpenDisplay 12090#endif 12091 12092 return XOpenDisplay (); 12093 ; 12094 return 0; 12095} 12096_ACEOF 12097rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12098if { (eval echo "$as_me:12098: \"$ac_link\"") >&5 12099 (eval $ac_link) 2>&5 12100 ac_status=$? 12101 echo "$as_me:12101: \$? = $ac_status" >&5 12102 (exit "$ac_status"); } && 12103 { ac_try='test -s "conftest$ac_exeext"' 12104 { (eval echo "$as_me:12104: \"$ac_try\"") >&5 12105 (eval $ac_try) 2>&5 12106 ac_status=$? 12107 echo "$as_me:12107: \$? = $ac_status" >&5 12108 (exit "$ac_status"); }; }; then 12109 ac_cv_func_XOpenDisplay=yes 12110else 12111 echo "$as_me: failed program was:" >&5 12112cat "conftest.$ac_ext" >&5 12113ac_cv_func_XOpenDisplay=no 12114fi 12115rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12116fi 12117echo "$as_me:12117: result: $ac_cv_func_XOpenDisplay" >&5 12118echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 12119if test "$ac_cv_func_XOpenDisplay" = yes; then 12120 : 12121else 12122 12123 echo "$as_me:12123: checking for XOpenDisplay in -lX11" >&5 12124echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 12125if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 12126 echo $ECHO_N "(cached) $ECHO_C" >&6 12127else 12128 ac_check_lib_save_LIBS=$LIBS 12129LIBS="-lX11 $LIBS" 12130cat >"conftest.$ac_ext" <<_ACEOF 12131#line 12131 "configure" 12132#include "confdefs.h" 12133 12134/* Override any gcc2 internal prototype to avoid an error. */ 12135#ifdef __cplusplus 12136extern "C" 12137#endif 12138/* We use char because int might match the return type of a gcc2 12139 builtin and then its argument prototype would still apply. */ 12140char XOpenDisplay (); 12141int 12142main (void) 12143{ 12144XOpenDisplay (); 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12150if { (eval echo "$as_me:12150: \"$ac_link\"") >&5 12151 (eval $ac_link) 2>&5 12152 ac_status=$? 12153 echo "$as_me:12153: \$? = $ac_status" >&5 12154 (exit "$ac_status"); } && 12155 { ac_try='test -s "conftest$ac_exeext"' 12156 { (eval echo "$as_me:12156: \"$ac_try\"") >&5 12157 (eval $ac_try) 2>&5 12158 ac_status=$? 12159 echo "$as_me:12159: \$? = $ac_status" >&5 12160 (exit "$ac_status"); }; }; then 12161 ac_cv_lib_X11_XOpenDisplay=yes 12162else 12163 echo "$as_me: failed program was:" >&5 12164cat "conftest.$ac_ext" >&5 12165ac_cv_lib_X11_XOpenDisplay=no 12166fi 12167rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12168LIBS=$ac_check_lib_save_LIBS 12169fi 12170echo "$as_me:12170: result: $ac_cv_lib_X11_XOpenDisplay" >&5 12171echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 12172if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 12173 12174cf_add_libs="$LIBS" 12175# reverse order 12176cf_add_0lib= 12177for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12178# filter duplicates 12179for cf_add_1lib in $cf_add_0lib; do 12180 for cf_add_2lib in $cf_add_libs; do 12181 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12182 cf_add_1lib= 12183 break 12184 fi 12185 done 12186 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12187done 12188LIBS="$cf_add_libs" 12189 12190fi 12191 12192fi 12193 12194 echo "$as_me:12194: checking for XtAppInitialize" >&5 12195echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 12196if test "${ac_cv_func_XtAppInitialize+set}" = set; then 12197 echo $ECHO_N "(cached) $ECHO_C" >&6 12198else 12199 cat >"conftest.$ac_ext" <<_ACEOF 12200#line 12200 "configure" 12201#include "confdefs.h" 12202#define XtAppInitialize autoconf_temporary 12203#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12204#undef XtAppInitialize 12205 12206#ifdef __cplusplus 12207extern "C" 12208#endif 12209 12210/* We use char because int might match the return type of a gcc2 12211 builtin and then its argument prototype would still apply. */ 12212char XtAppInitialize (void); 12213 12214int 12215main (void) 12216{ 12217 12218/* The GNU C library defines stubs for functions which it implements 12219 to always fail with ENOSYS. Some functions are actually named 12220 something starting with __ and the normal name is an alias. */ 12221#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 12222#error found stub for XtAppInitialize 12223#endif 12224 12225 return XtAppInitialize (); 12226 ; 12227 return 0; 12228} 12229_ACEOF 12230rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12231if { (eval echo "$as_me:12231: \"$ac_link\"") >&5 12232 (eval $ac_link) 2>&5 12233 ac_status=$? 12234 echo "$as_me:12234: \$? = $ac_status" >&5 12235 (exit "$ac_status"); } && 12236 { ac_try='test -s "conftest$ac_exeext"' 12237 { (eval echo "$as_me:12237: \"$ac_try\"") >&5 12238 (eval $ac_try) 2>&5 12239 ac_status=$? 12240 echo "$as_me:12240: \$? = $ac_status" >&5 12241 (exit "$ac_status"); }; }; then 12242 ac_cv_func_XtAppInitialize=yes 12243else 12244 echo "$as_me: failed program was:" >&5 12245cat "conftest.$ac_ext" >&5 12246ac_cv_func_XtAppInitialize=no 12247fi 12248rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12249fi 12250echo "$as_me:12250: result: $ac_cv_func_XtAppInitialize" >&5 12251echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 12252if test "$ac_cv_func_XtAppInitialize" = yes; then 12253 : 12254else 12255 12256 echo "$as_me:12256: checking for XtAppInitialize in -lXt" >&5 12257echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 12258if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 12259 echo $ECHO_N "(cached) $ECHO_C" >&6 12260else 12261 ac_check_lib_save_LIBS=$LIBS 12262LIBS="-lXt $LIBS" 12263cat >"conftest.$ac_ext" <<_ACEOF 12264#line 12264 "configure" 12265#include "confdefs.h" 12266 12267/* Override any gcc2 internal prototype to avoid an error. */ 12268#ifdef __cplusplus 12269extern "C" 12270#endif 12271/* We use char because int might match the return type of a gcc2 12272 builtin and then its argument prototype would still apply. */ 12273char XtAppInitialize (); 12274int 12275main (void) 12276{ 12277XtAppInitialize (); 12278 ; 12279 return 0; 12280} 12281_ACEOF 12282rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12283if { (eval echo "$as_me:12283: \"$ac_link\"") >&5 12284 (eval $ac_link) 2>&5 12285 ac_status=$? 12286 echo "$as_me:12286: \$? = $ac_status" >&5 12287 (exit "$ac_status"); } && 12288 { ac_try='test -s "conftest$ac_exeext"' 12289 { (eval echo "$as_me:12289: \"$ac_try\"") >&5 12290 (eval $ac_try) 2>&5 12291 ac_status=$? 12292 echo "$as_me:12292: \$? = $ac_status" >&5 12293 (exit "$ac_status"); }; }; then 12294 ac_cv_lib_Xt_XtAppInitialize=yes 12295else 12296 echo "$as_me: failed program was:" >&5 12297cat "conftest.$ac_ext" >&5 12298ac_cv_lib_Xt_XtAppInitialize=no 12299fi 12300rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12301LIBS=$ac_check_lib_save_LIBS 12302fi 12303echo "$as_me:12303: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 12304echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 12305if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 12306 12307cat >>confdefs.h <<\EOF 12308#define HAVE_LIBXT 1 12309EOF 12310 12311 cf_have_X_LIBS=Xt 12312 LIBS="-lXt $LIBS" 12313fi 12314 12315fi 12316 12317fi 12318 12319if test "$cf_have_X_LIBS" = no ; then 12320 { echo "$as_me:12320: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12321test program. You will have to check and add the proper libraries by hand 12322to makefile." >&5 12323echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12324test program. You will have to check and add the proper libraries by hand 12325to makefile." >&2;} 12326fi 12327 12328for ac_header in \ 12329 X11/DECkeysym.h \ 12330 X11/Sunkeysym.h \ 12331 X11/XF86keysym.h \ 12332 X11/XKBlib.h \ 12333 X11/TranslateI.h \ 12334 X11/Xpoll.h \ 12335 X11/extensions/XKB.h \ 12336 12337do 12338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12339echo "$as_me:12339: checking for $ac_header" >&5 12340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12341if eval "test \"\${$as_ac_Header+set}\" = set"; then 12342 echo $ECHO_N "(cached) $ECHO_C" >&6 12343else 12344 cat >"conftest.$ac_ext" <<_ACEOF 12345#line 12345 "configure" 12346#include "confdefs.h" 12347#include <$ac_header> 12348_ACEOF 12349if { (eval echo "$as_me:12349: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12350 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12351 ac_status=$? 12352 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12353 rm -f conftest.er1 12354 cat conftest.err >&5 12355 echo "$as_me:12355: \$? = $ac_status" >&5 12356 (exit "$ac_status"); } >/dev/null; then 12357 if test -s conftest.err; then 12358 ac_cpp_err=$ac_c_preproc_warn_flag 12359 else 12360 ac_cpp_err= 12361 fi 12362else 12363 ac_cpp_err=yes 12364fi 12365if test -z "$ac_cpp_err"; then 12366 eval "$as_ac_Header=yes" 12367else 12368 echo "$as_me: failed program was:" >&5 12369 cat "conftest.$ac_ext" >&5 12370 eval "$as_ac_Header=no" 12371fi 12372rm -f conftest.err "conftest.$ac_ext" 12373fi 12374echo "$as_me:12374: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12375echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12376if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12377 cat >>confdefs.h <<EOF 12378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12379EOF 12380 12381fi 12382done 12383 12384ICON_SUFFIX=.xbm 12385 12386cf_save_cppflags="${CPPFLAGS}" 12387cf_save_ldflags="${LDFLAGS}" 12388 12389echo "$as_me:12389: checking if you want to use the Xpm library for colored icon" >&5 12390echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 12391 12392# Check whether --with-xpm or --without-xpm was given. 12393if test "${with_xpm+set}" = set; then 12394 withval="$with_xpm" 12395 cf_Xpm_library="$withval" 12396else 12397 cf_Xpm_library=yes 12398fi; 12399echo "$as_me:12399: result: $cf_Xpm_library" >&5 12400echo "${ECHO_T}$cf_Xpm_library" >&6 12401 12402if test "$cf_Xpm_library" != no ; then 12403 if test "$cf_Xpm_library" != yes ; then 12404 CPPFLAGS="$CPPFLAGS -I$withval/include" 12405 LDFLAGS="$LDFLAGS -L$withval/lib" 12406 fi 12407 echo "$as_me:12407: checking for X11/xpm.h" >&5 12408echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 12409if test "${ac_cv_header_X11_xpm_h+set}" = set; then 12410 echo $ECHO_N "(cached) $ECHO_C" >&6 12411else 12412 cat >"conftest.$ac_ext" <<_ACEOF 12413#line 12413 "configure" 12414#include "confdefs.h" 12415#include <X11/xpm.h> 12416_ACEOF 12417if { (eval echo "$as_me:12417: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12418 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12419 ac_status=$? 12420 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12421 rm -f conftest.er1 12422 cat conftest.err >&5 12423 echo "$as_me:12423: \$? = $ac_status" >&5 12424 (exit "$ac_status"); } >/dev/null; then 12425 if test -s conftest.err; then 12426 ac_cpp_err=$ac_c_preproc_warn_flag 12427 else 12428 ac_cpp_err= 12429 fi 12430else 12431 ac_cpp_err=yes 12432fi 12433if test -z "$ac_cpp_err"; then 12434 ac_cv_header_X11_xpm_h=yes 12435else 12436 echo "$as_me: failed program was:" >&5 12437 cat "conftest.$ac_ext" >&5 12438 ac_cv_header_X11_xpm_h=no 12439fi 12440rm -f conftest.err "conftest.$ac_ext" 12441fi 12442echo "$as_me:12442: result: $ac_cv_header_X11_xpm_h" >&5 12443echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 12444if test "$ac_cv_header_X11_xpm_h" = yes; then 12445 12446 echo "$as_me:12446: checking for XpmCreatePixmapFromData in -lXpm" >&5 12447echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 12448if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 12449 echo $ECHO_N "(cached) $ECHO_C" >&6 12450else 12451 ac_check_lib_save_LIBS=$LIBS 12452LIBS="-lXpm -lX11 $X_LIBS $LIBS" 12453cat >"conftest.$ac_ext" <<_ACEOF 12454#line 12454 "configure" 12455#include "confdefs.h" 12456 12457/* Override any gcc2 internal prototype to avoid an error. */ 12458#ifdef __cplusplus 12459extern "C" 12460#endif 12461/* We use char because int might match the return type of a gcc2 12462 builtin and then its argument prototype would still apply. */ 12463char XpmCreatePixmapFromData (); 12464int 12465main (void) 12466{ 12467XpmCreatePixmapFromData (); 12468 ; 12469 return 0; 12470} 12471_ACEOF 12472rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12473if { (eval echo "$as_me:12473: \"$ac_link\"") >&5 12474 (eval $ac_link) 2>&5 12475 ac_status=$? 12476 echo "$as_me:12476: \$? = $ac_status" >&5 12477 (exit "$ac_status"); } && 12478 { ac_try='test -s "conftest$ac_exeext"' 12479 { (eval echo "$as_me:12479: \"$ac_try\"") >&5 12480 (eval $ac_try) 2>&5 12481 ac_status=$? 12482 echo "$as_me:12482: \$? = $ac_status" >&5 12483 (exit "$ac_status"); }; }; then 12484 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 12485else 12486 echo "$as_me: failed program was:" >&5 12487cat "conftest.$ac_ext" >&5 12488ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 12489fi 12490rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12491LIBS=$ac_check_lib_save_LIBS 12492fi 12493echo "$as_me:12493: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 12494echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 12495if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then 12496 12497cat >>confdefs.h <<\EOF 12498#define HAVE_LIBXPM 1 12499EOF 12500 12501 ICON_SUFFIX=.xpm 12502 LIBS="-lXpm $LIBS" 12503else 12504 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 12505fi 12506 12507else 12508 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 12509fi 12510 12511fi 12512 12513echo "$as_me:12513: checking if you want to use the Xinerama extension" >&5 12514echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 12515 12516# Check whether --with-xinerama or --without-xinerama was given. 12517if test "${with_xinerama+set}" = set; then 12518 withval="$with_xinerama" 12519 cf_with_xinerama="$withval" 12520else 12521 cf_with_xinerama=yes 12522fi; 12523echo "$as_me:12523: result: $cf_with_xinerama" >&5 12524echo "${ECHO_T}$cf_with_xinerama" >&6 12525if test "$cf_with_xinerama" = yes; then 12526 12527if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then 12528 test -n "$verbose" && echo " found package xinerama" 1>&6 12529 12530echo "${as_me:-configure}:12530: testing found package xinerama ..." 1>&5 12531 12532 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`" 12533 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`" 12534 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6 12535 12536echo "${as_me:-configure}:12536: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12537 12538 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6 12539 12540echo "${as_me:-configure}:12540: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5 12541 12542cf_fix_cppflags=no 12543cf_new_cflags= 12544cf_new_cppflags= 12545cf_new_extra_cppflags= 12546 12547for cf_add_cflags in $cf_pkgconfig_incs 12548do 12549case "$cf_fix_cppflags" in 12550(no) 12551 case "$cf_add_cflags" in 12552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12553 case "$cf_add_cflags" in 12554 (-D*) 12555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12556 12557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12558 && test -z "${cf_tst_cflags}" \ 12559 && cf_fix_cppflags=yes 12560 12561 if test "$cf_fix_cppflags" = yes ; then 12562 12563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12565 12566 continue 12567 elif test "${cf_tst_cflags}" = "\"'" ; then 12568 12569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12571 12572 continue 12573 fi 12574 ;; 12575 esac 12576 case "$CPPFLAGS" in 12577 (*$cf_add_cflags) 12578 ;; 12579 (*) 12580 case "$cf_add_cflags" in 12581 (-D*) 12582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12583 12584CPPFLAGS=`echo "$CPPFLAGS" | \ 12585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12587 12588 ;; 12589 esac 12590 12591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12593 12594 ;; 12595 esac 12596 ;; 12597 (*) 12598 12599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12601 12602 ;; 12603 esac 12604 ;; 12605(yes) 12606 12607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12609 12610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12611 12612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12613 && test -z "${cf_tst_cflags}" \ 12614 && cf_fix_cppflags=no 12615 ;; 12616esac 12617done 12618 12619if test -n "$cf_new_cflags" ; then 12620 12621 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12622 CFLAGS="${CFLAGS}$cf_new_cflags" 12623 12624fi 12625 12626if test -n "$cf_new_cppflags" ; then 12627 12628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12630 12631fi 12632 12633if test -n "$cf_new_extra_cppflags" ; then 12634 12635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12637 12638fi 12639 12640cf_add_libs="$LIBS" 12641# reverse order 12642cf_add_0lib= 12643for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12644# filter duplicates 12645for cf_add_1lib in $cf_add_0lib; do 12646 for cf_add_2lib in $cf_add_libs; do 12647 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12648 cf_add_1lib= 12649 break 12650 fi 12651 done 12652 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12653done 12654LIBS="$cf_add_libs" 12655 12656 cat >>confdefs.h <<\EOF 12657#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 12658EOF 12659 12660else 12661 cf_pkgconfig_incs= 12662 cf_pkgconfig_libs= 12663 12664 echo "$as_me:12664: checking for XineramaQueryScreens in -lXinerama" >&5 12665echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 12666if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 12667 echo $ECHO_N "(cached) $ECHO_C" >&6 12668else 12669 ac_check_lib_save_LIBS=$LIBS 12670LIBS="-lXinerama $LIBS" 12671cat >"conftest.$ac_ext" <<_ACEOF 12672#line 12672 "configure" 12673#include "confdefs.h" 12674 12675/* Override any gcc2 internal prototype to avoid an error. */ 12676#ifdef __cplusplus 12677extern "C" 12678#endif 12679/* We use char because int might match the return type of a gcc2 12680 builtin and then its argument prototype would still apply. */ 12681char XineramaQueryScreens (); 12682int 12683main (void) 12684{ 12685XineramaQueryScreens (); 12686 ; 12687 return 0; 12688} 12689_ACEOF 12690rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12691if { (eval echo "$as_me:12691: \"$ac_link\"") >&5 12692 (eval $ac_link) 2>&5 12693 ac_status=$? 12694 echo "$as_me:12694: \$? = $ac_status" >&5 12695 (exit "$ac_status"); } && 12696 { ac_try='test -s "conftest$ac_exeext"' 12697 { (eval echo "$as_me:12697: \"$ac_try\"") >&5 12698 (eval $ac_try) 2>&5 12699 ac_status=$? 12700 echo "$as_me:12700: \$? = $ac_status" >&5 12701 (exit "$ac_status"); }; }; then 12702 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 12703else 12704 echo "$as_me: failed program was:" >&5 12705cat "conftest.$ac_ext" >&5 12706ac_cv_lib_Xinerama_XineramaQueryScreens=no 12707fi 12708rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12709LIBS=$ac_check_lib_save_LIBS 12710fi 12711echo "$as_me:12711: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 12712echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 12713if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then 12714 12715cf_add_libs="$LIBS" 12716# reverse order 12717cf_add_0lib= 12718for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12719# filter duplicates 12720for cf_add_1lib in $cf_add_0lib; do 12721 for cf_add_2lib in $cf_add_libs; do 12722 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12723 cf_add_1lib= 12724 break 12725 fi 12726 done 12727 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12728done 12729LIBS="$cf_add_libs" 12730 12731for ac_header in \ 12732 X11/extensions/Xinerama.h \ 12733 12734do 12735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12736echo "$as_me:12736: checking for $ac_header" >&5 12737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12738if eval "test \"\${$as_ac_Header+set}\" = set"; then 12739 echo $ECHO_N "(cached) $ECHO_C" >&6 12740else 12741 cat >"conftest.$ac_ext" <<_ACEOF 12742#line 12742 "configure" 12743#include "confdefs.h" 12744#include <$ac_header> 12745_ACEOF 12746if { (eval echo "$as_me:12746: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12747 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12748 ac_status=$? 12749 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12750 rm -f conftest.er1 12751 cat conftest.err >&5 12752 echo "$as_me:12752: \$? = $ac_status" >&5 12753 (exit "$ac_status"); } >/dev/null; then 12754 if test -s conftest.err; then 12755 ac_cpp_err=$ac_c_preproc_warn_flag 12756 else 12757 ac_cpp_err= 12758 fi 12759else 12760 ac_cpp_err=yes 12761fi 12762if test -z "$ac_cpp_err"; then 12763 eval "$as_ac_Header=yes" 12764else 12765 echo "$as_me: failed program was:" >&5 12766 cat "conftest.$ac_ext" >&5 12767 eval "$as_ac_Header=no" 12768fi 12769rm -f conftest.err "conftest.$ac_ext" 12770fi 12771echo "$as_me:12771: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12772echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12773if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12774 cat >>confdefs.h <<EOF 12775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12776EOF 12777 12778fi 12779done 12780 12781fi 12782 12783fi 12784 12785fi 12786 12787cf_x_athena=${cf_x_athena:-Xaw} 12788 12789echo "$as_me:12789: checking if you want to link with Xaw 3d library" >&5 12790echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 12791withval= 12792 12793# Check whether --with-Xaw3d or --without-Xaw3d was given. 12794if test "${with_Xaw3d+set}" = set; then 12795 withval="$with_Xaw3d" 12796 12797fi; 12798if test "$withval" = yes ; then 12799 cf_x_athena=Xaw3d 12800 echo "$as_me:12800: result: yes" >&5 12801echo "${ECHO_T}yes" >&6 12802else 12803 echo "$as_me:12803: result: no" >&5 12804echo "${ECHO_T}no" >&6 12805fi 12806 12807echo "$as_me:12807: checking if you want to link with Xaw 3d xft library" >&5 12808echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 12809withval= 12810 12811# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 12812if test "${with_Xaw3dxft+set}" = set; then 12813 withval="$with_Xaw3dxft" 12814 12815fi; 12816if test "$withval" = yes ; then 12817 cf_x_athena=Xaw3dxft 12818 echo "$as_me:12818: result: yes" >&5 12819echo "${ECHO_T}yes" >&6 12820else 12821 echo "$as_me:12821: result: no" >&5 12822echo "${ECHO_T}no" >&6 12823fi 12824 12825echo "$as_me:12825: checking if you want to link with neXT Athena library" >&5 12826echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 12827withval= 12828 12829# Check whether --with-neXtaw or --without-neXtaw was given. 12830if test "${with_neXtaw+set}" = set; then 12831 withval="$with_neXtaw" 12832 12833fi; 12834if test "$withval" = yes ; then 12835 cf_x_athena=neXtaw 12836 echo "$as_me:12836: result: yes" >&5 12837echo "${ECHO_T}yes" >&6 12838else 12839 echo "$as_me:12839: result: no" >&5 12840echo "${ECHO_T}no" >&6 12841fi 12842 12843echo "$as_me:12843: checking if you want to link with Athena-Plus library" >&5 12844echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 12845withval= 12846 12847# Check whether --with-XawPlus or --without-XawPlus was given. 12848if test "${with_XawPlus+set}" = set; then 12849 withval="$with_XawPlus" 12850 12851fi; 12852if test "$withval" = yes ; then 12853 cf_x_athena=XawPlus 12854 echo "$as_me:12854: result: yes" >&5 12855echo "${ECHO_T}yes" >&6 12856else 12857 echo "$as_me:12857: result: no" >&5 12858echo "${ECHO_T}no" >&6 12859fi 12860 12861cf_x_athena_lib="" 12862 12863if test "$PKG_CONFIG" != none ; then 12864 cf_athena_list= 12865 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 12866 for cf_athena_pkg in \ 12867 $cf_athena_list \ 12868 ${cf_x_athena} \ 12869 ${cf_x_athena}-devel \ 12870 lib${cf_x_athena} \ 12871 lib${cf_x_athena}-devel 12872 do 12873 12874if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then 12875 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 12876 12877echo "${as_me:-configure}:12877: testing found package $cf_athena_pkg ..." 1>&5 12878 12879 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`" 12880 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`" 12881 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 12882 12883echo "${as_me:-configure}:12883: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12884 12885 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 12886 12887echo "${as_me:-configure}:12887: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 12888 12889cf_fix_cppflags=no 12890cf_new_cflags= 12891cf_new_cppflags= 12892cf_new_extra_cppflags= 12893 12894for cf_add_cflags in $cf_pkgconfig_incs 12895do 12896case "$cf_fix_cppflags" in 12897(no) 12898 case "$cf_add_cflags" in 12899 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12900 case "$cf_add_cflags" in 12901 (-D*) 12902 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12903 12904 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12905 && test -z "${cf_tst_cflags}" \ 12906 && cf_fix_cppflags=yes 12907 12908 if test "$cf_fix_cppflags" = yes ; then 12909 12910 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12911 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12912 12913 continue 12914 elif test "${cf_tst_cflags}" = "\"'" ; then 12915 12916 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12917 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12918 12919 continue 12920 fi 12921 ;; 12922 esac 12923 case "$CPPFLAGS" in 12924 (*$cf_add_cflags) 12925 ;; 12926 (*) 12927 case "$cf_add_cflags" in 12928 (-D*) 12929 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12930 12931CPPFLAGS=`echo "$CPPFLAGS" | \ 12932 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12933 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12934 12935 ;; 12936 esac 12937 12938 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12939 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12940 12941 ;; 12942 esac 12943 ;; 12944 (*) 12945 12946 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12947 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12948 12949 ;; 12950 esac 12951 ;; 12952(yes) 12953 12954 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12955 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12956 12957 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12958 12959 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12960 && test -z "${cf_tst_cflags}" \ 12961 && cf_fix_cppflags=no 12962 ;; 12963esac 12964done 12965 12966if test -n "$cf_new_cflags" ; then 12967 12968 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12969 CFLAGS="${CFLAGS}$cf_new_cflags" 12970 12971fi 12972 12973if test -n "$cf_new_cppflags" ; then 12974 12975 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12976 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12977 12978fi 12979 12980if test -n "$cf_new_extra_cppflags" ; then 12981 12982 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12983 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12984 12985fi 12986 12987cf_add_libs="$LIBS" 12988# reverse order 12989cf_add_0lib= 12990for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12991# filter duplicates 12992for cf_add_1lib in $cf_add_0lib; do 12993 for cf_add_2lib in $cf_add_libs; do 12994 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12995 cf_add_1lib= 12996 break 12997 fi 12998 done 12999 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13000done 13001LIBS="$cf_add_libs" 13002 13003 cf_x_athena_lib="$cf_pkgconfig_libs" 13004 13005cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13006 13007 cat >>confdefs.h <<EOF 13008#define $cf_x_athena_LIBS 1 13009EOF 13010 13011 for cf_trim_lib in Xmu Xt X11 13012 do 13013 case "$LIBS" in 13014 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13015 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13016 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13017 13018echo "${as_me:-configure}:13018: testing ..trimmed $LIBS ..." 1>&5 13019 13020 ;; 13021 esac 13022 done 13023 13024echo "$as_me:13024: checking for usable $cf_x_athena/Xmu package" >&5 13025echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 13026if test "${cf_cv_xaw_compat+set}" = set; then 13027 echo $ECHO_N "(cached) $ECHO_C" >&6 13028else 13029 13030cat >"conftest.$ac_ext" <<_ACEOF 13031#line 13031 "configure" 13032#include "confdefs.h" 13033 13034$ac_includes_default 13035#include <X11/Xmu/CharSet.h> 13036 13037int 13038main (void) 13039{ 13040 13041int check = XmuCompareISOLatin1("big", "small"); 13042(void)check; 13043 13044 ; 13045 return 0; 13046} 13047_ACEOF 13048rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13049if { (eval echo "$as_me:13049: \"$ac_link\"") >&5 13050 (eval $ac_link) 2>&5 13051 ac_status=$? 13052 echo "$as_me:13052: \$? = $ac_status" >&5 13053 (exit "$ac_status"); } && 13054 { ac_try='test -s "conftest$ac_exeext"' 13055 { (eval echo "$as_me:13055: \"$ac_try\"") >&5 13056 (eval $ac_try) 2>&5 13057 ac_status=$? 13058 echo "$as_me:13058: \$? = $ac_status" >&5 13059 (exit "$ac_status"); }; }; then 13060 cf_cv_xaw_compat=yes 13061else 13062 echo "$as_me: failed program was:" >&5 13063cat "conftest.$ac_ext" >&5 13064cf_cv_xaw_compat=no 13065fi 13066rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13067fi 13068echo "$as_me:13068: result: $cf_cv_xaw_compat" >&5 13069echo "${ECHO_T}$cf_cv_xaw_compat" >&6 13070 13071 if test "$cf_cv_xaw_compat" = no 13072 then 13073 # workaround for broken ".pc" files... 13074 case "$cf_x_athena_lib" in 13075 (*-lXmu*) 13076 ;; 13077 (*) 13078 test -n "$verbose" && echo " work around broken package" 1>&6 13079 13080echo "${as_me:-configure}:13080: testing work around broken package ..." 1>&5 13081 13082 cf_save_xmu="$LIBS" 13083 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 13084 13085if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then 13086 test -n "$verbose" && echo " found package xmu" 1>&6 13087 13088echo "${as_me:-configure}:13088: testing found package xmu ..." 1>&5 13089 13090 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`" 13091 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`" 13092 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 13093 13094echo "${as_me:-configure}:13094: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13095 13096 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 13097 13098echo "${as_me:-configure}:13098: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 13099 13100cf_fix_cppflags=no 13101cf_new_cflags= 13102cf_new_cppflags= 13103cf_new_extra_cppflags= 13104 13105for cf_add_cflags in $cf_pkgconfig_incs 13106do 13107case "$cf_fix_cppflags" in 13108(no) 13109 case "$cf_add_cflags" in 13110 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13111 case "$cf_add_cflags" in 13112 (-D*) 13113 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13114 13115 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13116 && test -z "${cf_tst_cflags}" \ 13117 && cf_fix_cppflags=yes 13118 13119 if test "$cf_fix_cppflags" = yes ; then 13120 13121 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13122 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13123 13124 continue 13125 elif test "${cf_tst_cflags}" = "\"'" ; then 13126 13127 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13128 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13129 13130 continue 13131 fi 13132 ;; 13133 esac 13134 case "$CPPFLAGS" in 13135 (*$cf_add_cflags) 13136 ;; 13137 (*) 13138 case "$cf_add_cflags" in 13139 (-D*) 13140 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13141 13142CPPFLAGS=`echo "$CPPFLAGS" | \ 13143 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13144 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13145 13146 ;; 13147 esac 13148 13149 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13150 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13151 13152 ;; 13153 esac 13154 ;; 13155 (*) 13156 13157 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13158 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13159 13160 ;; 13161 esac 13162 ;; 13163(yes) 13164 13165 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13166 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13167 13168 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13169 13170 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13171 && test -z "${cf_tst_cflags}" \ 13172 && cf_fix_cppflags=no 13173 ;; 13174esac 13175done 13176 13177if test -n "$cf_new_cflags" ; then 13178 13179 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13180 CFLAGS="${CFLAGS}$cf_new_cflags" 13181 13182fi 13183 13184if test -n "$cf_new_cppflags" ; then 13185 13186 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13187 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13188 13189fi 13190 13191if test -n "$cf_new_extra_cppflags" ; then 13192 13193 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13194 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13195 13196fi 13197 13198cf_add_libs="$LIBS" 13199# reverse order 13200cf_add_0lib= 13201for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13202# filter duplicates 13203for cf_add_1lib in $cf_add_0lib; do 13204 for cf_add_2lib in $cf_add_libs; do 13205 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13206 cf_add_1lib= 13207 break 13208 fi 13209 done 13210 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13211done 13212LIBS="$cf_add_libs" 13213 13214 LIBS="$cf_save_xmu" 13215 13216test -n "$verbose" && echo " ...before $LIBS" 1>&6 13217 13218echo "${as_me:-configure}:13218: testing ...before $LIBS ..." 1>&5 13219 13220LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 13221test -n "$verbose" && echo " ...after $LIBS" 1>&6 13222 13223echo "${as_me:-configure}:13223: testing ...after $LIBS ..." 1>&5 13224 13225else 13226 cf_pkgconfig_incs= 13227 cf_pkgconfig_libs= 13228 13229test -n "$verbose" && echo " ...before $LIBS" 1>&6 13230 13231echo "${as_me:-configure}:13231: testing ...before $LIBS ..." 1>&5 13232 13233LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 13234test -n "$verbose" && echo " ...after $LIBS" 1>&6 13235 13236echo "${as_me:-configure}:13236: testing ...after $LIBS ..." 1>&5 13237 13238fi 13239 13240 for cf_trim_lib in Xmu Xt X11 13241 do 13242 case "$LIBS" in 13243 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13244 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13245 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13246 13247echo "${as_me:-configure}:13247: testing ..trimmed $LIBS ..." 1>&5 13248 13249 ;; 13250 esac 13251 done 13252 13253 ;; 13254 esac 13255 fi 13256 13257 break 13258else 13259 cf_pkgconfig_incs= 13260 cf_pkgconfig_libs= 13261 : 13262fi 13263 13264 done 13265fi 13266 13267if test -z "$cf_x_athena_lib" ; then 13268 13269if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 13270 test -n "$verbose" && echo " found package Xext" 1>&6 13271 13272echo "${as_me:-configure}:13272: testing found package Xext ..." 1>&5 13273 13274 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 13275 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 13276 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 13277 13278echo "${as_me:-configure}:13278: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13279 13280 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 13281 13282echo "${as_me:-configure}:13282: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 13283 13284cf_fix_cppflags=no 13285cf_new_cflags= 13286cf_new_cppflags= 13287cf_new_extra_cppflags= 13288 13289for cf_add_cflags in $cf_pkgconfig_incs 13290do 13291case "$cf_fix_cppflags" in 13292(no) 13293 case "$cf_add_cflags" in 13294 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13295 case "$cf_add_cflags" in 13296 (-D*) 13297 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13298 13299 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13300 && test -z "${cf_tst_cflags}" \ 13301 && cf_fix_cppflags=yes 13302 13303 if test "$cf_fix_cppflags" = yes ; then 13304 13305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13307 13308 continue 13309 elif test "${cf_tst_cflags}" = "\"'" ; then 13310 13311 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13312 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13313 13314 continue 13315 fi 13316 ;; 13317 esac 13318 case "$CPPFLAGS" in 13319 (*$cf_add_cflags) 13320 ;; 13321 (*) 13322 case "$cf_add_cflags" in 13323 (-D*) 13324 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13325 13326CPPFLAGS=`echo "$CPPFLAGS" | \ 13327 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13328 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13329 13330 ;; 13331 esac 13332 13333 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13334 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13335 13336 ;; 13337 esac 13338 ;; 13339 (*) 13340 13341 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13342 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13343 13344 ;; 13345 esac 13346 ;; 13347(yes) 13348 13349 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13350 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13351 13352 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13353 13354 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13355 && test -z "${cf_tst_cflags}" \ 13356 && cf_fix_cppflags=no 13357 ;; 13358esac 13359done 13360 13361if test -n "$cf_new_cflags" ; then 13362 13363 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13364 CFLAGS="${CFLAGS}$cf_new_cflags" 13365 13366fi 13367 13368if test -n "$cf_new_cppflags" ; then 13369 13370 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13371 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13372 13373fi 13374 13375if test -n "$cf_new_extra_cppflags" ; then 13376 13377 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13378 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13379 13380fi 13381 13382cf_add_libs="$LIBS" 13383# reverse order 13384cf_add_0lib= 13385for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13386# filter duplicates 13387for cf_add_1lib in $cf_add_0lib; do 13388 for cf_add_2lib in $cf_add_libs; do 13389 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13390 cf_add_1lib= 13391 break 13392 fi 13393 done 13394 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13395done 13396LIBS="$cf_add_libs" 13397 13398 : 13399else 13400 cf_pkgconfig_incs= 13401 cf_pkgconfig_libs= 13402 13403 echo "$as_me:13403: checking for XextCreateExtension in -lXext" >&5 13404echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 13405if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 13406 echo $ECHO_N "(cached) $ECHO_C" >&6 13407else 13408 ac_check_lib_save_LIBS=$LIBS 13409LIBS="-lXext $LIBS" 13410cat >"conftest.$ac_ext" <<_ACEOF 13411#line 13411 "configure" 13412#include "confdefs.h" 13413 13414/* Override any gcc2 internal prototype to avoid an error. */ 13415#ifdef __cplusplus 13416extern "C" 13417#endif 13418/* We use char because int might match the return type of a gcc2 13419 builtin and then its argument prototype would still apply. */ 13420char XextCreateExtension (); 13421int 13422main (void) 13423{ 13424XextCreateExtension (); 13425 ; 13426 return 0; 13427} 13428_ACEOF 13429rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13430if { (eval echo "$as_me:13430: \"$ac_link\"") >&5 13431 (eval $ac_link) 2>&5 13432 ac_status=$? 13433 echo "$as_me:13433: \$? = $ac_status" >&5 13434 (exit "$ac_status"); } && 13435 { ac_try='test -s "conftest$ac_exeext"' 13436 { (eval echo "$as_me:13436: \"$ac_try\"") >&5 13437 (eval $ac_try) 2>&5 13438 ac_status=$? 13439 echo "$as_me:13439: \$? = $ac_status" >&5 13440 (exit "$ac_status"); }; }; then 13441 ac_cv_lib_Xext_XextCreateExtension=yes 13442else 13443 echo "$as_me: failed program was:" >&5 13444cat "conftest.$ac_ext" >&5 13445ac_cv_lib_Xext_XextCreateExtension=no 13446fi 13447rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13448LIBS=$ac_check_lib_save_LIBS 13449fi 13450echo "$as_me:13450: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 13451echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 13452if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 13453 13454cf_add_libs="$LIBS" 13455# reverse order 13456cf_add_0lib= 13457for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13458# filter duplicates 13459for cf_add_1lib in $cf_add_0lib; do 13460 for cf_add_2lib in $cf_add_libs; do 13461 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13462 cf_add_1lib= 13463 break 13464 fi 13465 done 13466 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13467done 13468LIBS="$cf_add_libs" 13469 13470fi 13471 13472fi 13473 13474# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 13475# in some cases has installed dummy files in the former, other cases replaced 13476# it with a link to the new location). This complicates the configure script. 13477# Check for that pitfall, and recover using pkg-config 13478# 13479# If none of these are set, the configuration is almost certainly broken. 13480if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 13481then 13482 13483if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 13484 test -n "$verbose" && echo " found package x11" 1>&6 13485 13486echo "${as_me:-configure}:13486: testing found package x11 ..." 1>&5 13487 13488 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 13489 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 13490 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 13491 13492echo "${as_me:-configure}:13492: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13493 13494 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 13495 13496echo "${as_me:-configure}:13496: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 13497 13498cf_fix_cppflags=no 13499cf_new_cflags= 13500cf_new_cppflags= 13501cf_new_extra_cppflags= 13502 13503for cf_add_cflags in $cf_pkgconfig_incs 13504do 13505case "$cf_fix_cppflags" in 13506(no) 13507 case "$cf_add_cflags" in 13508 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13509 case "$cf_add_cflags" in 13510 (-D*) 13511 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13512 13513 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13514 && test -z "${cf_tst_cflags}" \ 13515 && cf_fix_cppflags=yes 13516 13517 if test "$cf_fix_cppflags" = yes ; then 13518 13519 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13520 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13521 13522 continue 13523 elif test "${cf_tst_cflags}" = "\"'" ; then 13524 13525 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13526 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13527 13528 continue 13529 fi 13530 ;; 13531 esac 13532 case "$CPPFLAGS" in 13533 (*$cf_add_cflags) 13534 ;; 13535 (*) 13536 case "$cf_add_cflags" in 13537 (-D*) 13538 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13539 13540CPPFLAGS=`echo "$CPPFLAGS" | \ 13541 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13542 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13543 13544 ;; 13545 esac 13546 13547 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13548 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13549 13550 ;; 13551 esac 13552 ;; 13553 (*) 13554 13555 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13556 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13557 13558 ;; 13559 esac 13560 ;; 13561(yes) 13562 13563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13565 13566 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13567 13568 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13569 && test -z "${cf_tst_cflags}" \ 13570 && cf_fix_cppflags=no 13571 ;; 13572esac 13573done 13574 13575if test -n "$cf_new_cflags" ; then 13576 13577 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13578 CFLAGS="${CFLAGS}$cf_new_cflags" 13579 13580fi 13581 13582if test -n "$cf_new_cppflags" ; then 13583 13584 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13585 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13586 13587fi 13588 13589if test -n "$cf_new_extra_cppflags" ; then 13590 13591 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13592 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13593 13594fi 13595 13596cf_add_libs="$LIBS" 13597# reverse order 13598cf_add_0lib= 13599for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13600# filter duplicates 13601for cf_add_1lib in $cf_add_0lib; do 13602 for cf_add_2lib in $cf_add_libs; do 13603 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13604 cf_add_1lib= 13605 break 13606 fi 13607 done 13608 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13609done 13610LIBS="$cf_add_libs" 13611 13612 : 13613else 13614 cf_pkgconfig_incs= 13615 cf_pkgconfig_libs= 13616 { echo "$as_me:13616: WARNING: unable to find X11 library" >&5 13617echo "$as_me: WARNING: unable to find X11 library" >&2;} 13618fi 13619 13620if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 13621 test -n "$verbose" && echo " found package ice" 1>&6 13622 13623echo "${as_me:-configure}:13623: testing found package ice ..." 1>&5 13624 13625 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 13626 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 13627 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 13628 13629echo "${as_me:-configure}:13629: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13630 13631 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 13632 13633echo "${as_me:-configure}:13633: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 13634 13635cf_fix_cppflags=no 13636cf_new_cflags= 13637cf_new_cppflags= 13638cf_new_extra_cppflags= 13639 13640for cf_add_cflags in $cf_pkgconfig_incs 13641do 13642case "$cf_fix_cppflags" in 13643(no) 13644 case "$cf_add_cflags" in 13645 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13646 case "$cf_add_cflags" in 13647 (-D*) 13648 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13649 13650 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13651 && test -z "${cf_tst_cflags}" \ 13652 && cf_fix_cppflags=yes 13653 13654 if test "$cf_fix_cppflags" = yes ; then 13655 13656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13658 13659 continue 13660 elif test "${cf_tst_cflags}" = "\"'" ; then 13661 13662 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13663 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13664 13665 continue 13666 fi 13667 ;; 13668 esac 13669 case "$CPPFLAGS" in 13670 (*$cf_add_cflags) 13671 ;; 13672 (*) 13673 case "$cf_add_cflags" in 13674 (-D*) 13675 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13676 13677CPPFLAGS=`echo "$CPPFLAGS" | \ 13678 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13679 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13680 13681 ;; 13682 esac 13683 13684 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13685 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13686 13687 ;; 13688 esac 13689 ;; 13690 (*) 13691 13692 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13693 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13694 13695 ;; 13696 esac 13697 ;; 13698(yes) 13699 13700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13702 13703 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13704 13705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13706 && test -z "${cf_tst_cflags}" \ 13707 && cf_fix_cppflags=no 13708 ;; 13709esac 13710done 13711 13712if test -n "$cf_new_cflags" ; then 13713 13714 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13715 CFLAGS="${CFLAGS}$cf_new_cflags" 13716 13717fi 13718 13719if test -n "$cf_new_cppflags" ; then 13720 13721 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13722 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13723 13724fi 13725 13726if test -n "$cf_new_extra_cppflags" ; then 13727 13728 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13729 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13730 13731fi 13732 13733cf_add_libs="$LIBS" 13734# reverse order 13735cf_add_0lib= 13736for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13737# filter duplicates 13738for cf_add_1lib in $cf_add_0lib; do 13739 for cf_add_2lib in $cf_add_libs; do 13740 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13741 cf_add_1lib= 13742 break 13743 fi 13744 done 13745 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13746done 13747LIBS="$cf_add_libs" 13748 13749 : 13750else 13751 cf_pkgconfig_incs= 13752 cf_pkgconfig_libs= 13753 { echo "$as_me:13753: WARNING: unable to find ICE library" >&5 13754echo "$as_me: WARNING: unable to find ICE library" >&2;} 13755fi 13756 13757if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 13758 test -n "$verbose" && echo " found package sm" 1>&6 13759 13760echo "${as_me:-configure}:13760: testing found package sm ..." 1>&5 13761 13762 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 13763 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 13764 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 13765 13766echo "${as_me:-configure}:13766: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13767 13768 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 13769 13770echo "${as_me:-configure}:13770: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 13771 13772cf_fix_cppflags=no 13773cf_new_cflags= 13774cf_new_cppflags= 13775cf_new_extra_cppflags= 13776 13777for cf_add_cflags in $cf_pkgconfig_incs 13778do 13779case "$cf_fix_cppflags" in 13780(no) 13781 case "$cf_add_cflags" in 13782 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13783 case "$cf_add_cflags" in 13784 (-D*) 13785 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13786 13787 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13788 && test -z "${cf_tst_cflags}" \ 13789 && cf_fix_cppflags=yes 13790 13791 if test "$cf_fix_cppflags" = yes ; then 13792 13793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13795 13796 continue 13797 elif test "${cf_tst_cflags}" = "\"'" ; then 13798 13799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13801 13802 continue 13803 fi 13804 ;; 13805 esac 13806 case "$CPPFLAGS" in 13807 (*$cf_add_cflags) 13808 ;; 13809 (*) 13810 case "$cf_add_cflags" in 13811 (-D*) 13812 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13813 13814CPPFLAGS=`echo "$CPPFLAGS" | \ 13815 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13816 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13817 13818 ;; 13819 esac 13820 13821 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13822 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13823 13824 ;; 13825 esac 13826 ;; 13827 (*) 13828 13829 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13830 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13831 13832 ;; 13833 esac 13834 ;; 13835(yes) 13836 13837 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13838 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13839 13840 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13841 13842 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13843 && test -z "${cf_tst_cflags}" \ 13844 && cf_fix_cppflags=no 13845 ;; 13846esac 13847done 13848 13849if test -n "$cf_new_cflags" ; then 13850 13851 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13852 CFLAGS="${CFLAGS}$cf_new_cflags" 13853 13854fi 13855 13856if test -n "$cf_new_cppflags" ; then 13857 13858 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13859 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13860 13861fi 13862 13863if test -n "$cf_new_extra_cppflags" ; then 13864 13865 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13866 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13867 13868fi 13869 13870cf_add_libs="$LIBS" 13871# reverse order 13872cf_add_0lib= 13873for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13874# filter duplicates 13875for cf_add_1lib in $cf_add_0lib; do 13876 for cf_add_2lib in $cf_add_libs; do 13877 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13878 cf_add_1lib= 13879 break 13880 fi 13881 done 13882 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13883done 13884LIBS="$cf_add_libs" 13885 13886 : 13887else 13888 cf_pkgconfig_incs= 13889 cf_pkgconfig_libs= 13890 { echo "$as_me:13890: WARNING: unable to find SM library" >&5 13891echo "$as_me: WARNING: unable to find SM library" >&2;} 13892fi 13893 13894if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 13895 test -n "$verbose" && echo " found package xt" 1>&6 13896 13897echo "${as_me:-configure}:13897: testing found package xt ..." 1>&5 13898 13899 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 13900 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 13901 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 13902 13903echo "${as_me:-configure}:13903: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13904 13905 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 13906 13907echo "${as_me:-configure}:13907: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 13908 13909cf_fix_cppflags=no 13910cf_new_cflags= 13911cf_new_cppflags= 13912cf_new_extra_cppflags= 13913 13914for cf_add_cflags in $cf_pkgconfig_incs 13915do 13916case "$cf_fix_cppflags" in 13917(no) 13918 case "$cf_add_cflags" in 13919 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13920 case "$cf_add_cflags" in 13921 (-D*) 13922 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13923 13924 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13925 && test -z "${cf_tst_cflags}" \ 13926 && cf_fix_cppflags=yes 13927 13928 if test "$cf_fix_cppflags" = yes ; then 13929 13930 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13931 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13932 13933 continue 13934 elif test "${cf_tst_cflags}" = "\"'" ; then 13935 13936 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13937 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13938 13939 continue 13940 fi 13941 ;; 13942 esac 13943 case "$CPPFLAGS" in 13944 (*$cf_add_cflags) 13945 ;; 13946 (*) 13947 case "$cf_add_cflags" in 13948 (-D*) 13949 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13950 13951CPPFLAGS=`echo "$CPPFLAGS" | \ 13952 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13953 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13954 13955 ;; 13956 esac 13957 13958 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13959 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13960 13961 ;; 13962 esac 13963 ;; 13964 (*) 13965 13966 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13967 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13968 13969 ;; 13970 esac 13971 ;; 13972(yes) 13973 13974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13976 13977 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13978 13979 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13980 && test -z "${cf_tst_cflags}" \ 13981 && cf_fix_cppflags=no 13982 ;; 13983esac 13984done 13985 13986if test -n "$cf_new_cflags" ; then 13987 13988 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13989 CFLAGS="${CFLAGS}$cf_new_cflags" 13990 13991fi 13992 13993if test -n "$cf_new_cppflags" ; then 13994 13995 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13996 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13997 13998fi 13999 14000if test -n "$cf_new_extra_cppflags" ; then 14001 14002 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14003 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14004 14005fi 14006 14007cf_add_libs="$LIBS" 14008# reverse order 14009cf_add_0lib= 14010for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14011# filter duplicates 14012for cf_add_1lib in $cf_add_0lib; do 14013 for cf_add_2lib in $cf_add_libs; do 14014 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14015 cf_add_1lib= 14016 break 14017 fi 14018 done 14019 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14020done 14021LIBS="$cf_add_libs" 14022 14023 : 14024else 14025 cf_pkgconfig_incs= 14026 cf_pkgconfig_libs= 14027 { echo "$as_me:14027: WARNING: unable to find Xt library" >&5 14028echo "$as_me: WARNING: unable to find Xt library" >&2;} 14029fi 14030 14031else 14032 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 14033fi 14034 14035cf_have_X_LIBS=no 14036 14037if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 14038 test -n "$verbose" && echo " found package xt" 1>&6 14039 14040echo "${as_me:-configure}:14040: testing found package xt ..." 1>&5 14041 14042 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 14043 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 14044 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 14045 14046echo "${as_me:-configure}:14046: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14047 14048 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 14049 14050echo "${as_me:-configure}:14050: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 14051 14052cf_fix_cppflags=no 14053cf_new_cflags= 14054cf_new_cppflags= 14055cf_new_extra_cppflags= 14056 14057for cf_add_cflags in $cf_pkgconfig_incs 14058do 14059case "$cf_fix_cppflags" in 14060(no) 14061 case "$cf_add_cflags" in 14062 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14063 case "$cf_add_cflags" in 14064 (-D*) 14065 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14066 14067 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14068 && test -z "${cf_tst_cflags}" \ 14069 && cf_fix_cppflags=yes 14070 14071 if test "$cf_fix_cppflags" = yes ; then 14072 14073 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14074 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14075 14076 continue 14077 elif test "${cf_tst_cflags}" = "\"'" ; then 14078 14079 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14080 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14081 14082 continue 14083 fi 14084 ;; 14085 esac 14086 case "$CPPFLAGS" in 14087 (*$cf_add_cflags) 14088 ;; 14089 (*) 14090 case "$cf_add_cflags" in 14091 (-D*) 14092 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14093 14094CPPFLAGS=`echo "$CPPFLAGS" | \ 14095 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14096 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14097 14098 ;; 14099 esac 14100 14101 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14102 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14103 14104 ;; 14105 esac 14106 ;; 14107 (*) 14108 14109 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14110 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14111 14112 ;; 14113 esac 14114 ;; 14115(yes) 14116 14117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14119 14120 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14121 14122 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14123 && test -z "${cf_tst_cflags}" \ 14124 && cf_fix_cppflags=no 14125 ;; 14126esac 14127done 14128 14129if test -n "$cf_new_cflags" ; then 14130 14131 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14132 CFLAGS="${CFLAGS}$cf_new_cflags" 14133 14134fi 14135 14136if test -n "$cf_new_cppflags" ; then 14137 14138 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14139 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14140 14141fi 14142 14143if test -n "$cf_new_extra_cppflags" ; then 14144 14145 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14146 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14147 14148fi 14149 14150cf_add_libs="$LIBS" 14151# reverse order 14152cf_add_0lib= 14153for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14154# filter duplicates 14155for cf_add_1lib in $cf_add_0lib; do 14156 for cf_add_2lib in $cf_add_libs; do 14157 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14158 cf_add_1lib= 14159 break 14160 fi 14161 done 14162 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14163done 14164LIBS="$cf_add_libs" 14165 14166 case "x$LIBS" in 14167 (*-lX11*) 14168 ;; 14169 (*) 14170# we have an "xt" package, but it may omit Xt's dependency on X11 14171echo "$as_me:14171: checking for usable X dependency" >&5 14172echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 14173if test "${cf_cv_xt_x11_compat+set}" = set; then 14174 echo $ECHO_N "(cached) $ECHO_C" >&6 14175else 14176 14177cat >"conftest.$ac_ext" <<_ACEOF 14178#line 14178 "configure" 14179#include "confdefs.h" 14180 14181$ac_includes_default 14182#include <X11/Xlib.h> 14183 14184int 14185main (void) 14186{ 14187 14188 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 14189 int rc2 = XClearWindow((Display*) 0, (Window) 0); 14190 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 14191 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 14192 14193 ; 14194 return 0; 14195} 14196_ACEOF 14197rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14198if { (eval echo "$as_me:14198: \"$ac_link\"") >&5 14199 (eval $ac_link) 2>&5 14200 ac_status=$? 14201 echo "$as_me:14201: \$? = $ac_status" >&5 14202 (exit "$ac_status"); } && 14203 { ac_try='test -s "conftest$ac_exeext"' 14204 { (eval echo "$as_me:14204: \"$ac_try\"") >&5 14205 (eval $ac_try) 2>&5 14206 ac_status=$? 14207 echo "$as_me:14207: \$? = $ac_status" >&5 14208 (exit "$ac_status"); }; }; then 14209 cf_cv_xt_x11_compat=yes 14210else 14211 echo "$as_me: failed program was:" >&5 14212cat "conftest.$ac_ext" >&5 14213cf_cv_xt_x11_compat=no 14214fi 14215rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14216fi 14217echo "$as_me:14217: result: $cf_cv_xt_x11_compat" >&5 14218echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 14219 if test "$cf_cv_xt_x11_compat" = no 14220 then 14221 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 14222 14223echo "${as_me:-configure}:14223: testing work around broken X11 dependency ..." 1>&5 14224 14225 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 14226 14227if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 14228 test -n "$verbose" && echo " found package x11" 1>&6 14229 14230echo "${as_me:-configure}:14230: testing found package x11 ..." 1>&5 14231 14232 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 14233 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 14234 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 14235 14236echo "${as_me:-configure}:14236: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14237 14238 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 14239 14240echo "${as_me:-configure}:14240: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 14241 14242cf_fix_cppflags=no 14243cf_new_cflags= 14244cf_new_cppflags= 14245cf_new_extra_cppflags= 14246 14247for cf_add_cflags in $cf_pkgconfig_incs 14248do 14249case "$cf_fix_cppflags" in 14250(no) 14251 case "$cf_add_cflags" in 14252 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14253 case "$cf_add_cflags" in 14254 (-D*) 14255 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14256 14257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14258 && test -z "${cf_tst_cflags}" \ 14259 && cf_fix_cppflags=yes 14260 14261 if test "$cf_fix_cppflags" = yes ; then 14262 14263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14265 14266 continue 14267 elif test "${cf_tst_cflags}" = "\"'" ; then 14268 14269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14271 14272 continue 14273 fi 14274 ;; 14275 esac 14276 case "$CPPFLAGS" in 14277 (*$cf_add_cflags) 14278 ;; 14279 (*) 14280 case "$cf_add_cflags" in 14281 (-D*) 14282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14283 14284CPPFLAGS=`echo "$CPPFLAGS" | \ 14285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14287 14288 ;; 14289 esac 14290 14291 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14292 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14293 14294 ;; 14295 esac 14296 ;; 14297 (*) 14298 14299 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14300 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14301 14302 ;; 14303 esac 14304 ;; 14305(yes) 14306 14307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14309 14310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14311 14312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14313 && test -z "${cf_tst_cflags}" \ 14314 && cf_fix_cppflags=no 14315 ;; 14316esac 14317done 14318 14319if test -n "$cf_new_cflags" ; then 14320 14321 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14322 CFLAGS="${CFLAGS}$cf_new_cflags" 14323 14324fi 14325 14326if test -n "$cf_new_cppflags" ; then 14327 14328 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14329 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14330 14331fi 14332 14333if test -n "$cf_new_extra_cppflags" ; then 14334 14335 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14336 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14337 14338fi 14339 14340cf_add_libs="$LIBS" 14341# reverse order 14342cf_add_0lib= 14343for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14344# filter duplicates 14345for cf_add_1lib in $cf_add_0lib; do 14346 for cf_add_2lib in $cf_add_libs; do 14347 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14348 cf_add_1lib= 14349 break 14350 fi 14351 done 14352 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14353done 14354LIBS="$cf_add_libs" 14355 14356 : 14357else 14358 cf_pkgconfig_incs= 14359 cf_pkgconfig_libs= 14360 14361test -n "$verbose" && echo " ...before $LIBS" 1>&6 14362 14363echo "${as_me:-configure}:14363: testing ...before $LIBS ..." 1>&5 14364 14365LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 14366test -n "$verbose" && echo " ...after $LIBS" 1>&6 14367 14368echo "${as_me:-configure}:14368: testing ...after $LIBS ..." 1>&5 14369 14370fi 14371 14372 fi 14373 ;; 14374 esac 14375 14376echo "$as_me:14376: checking for usable X Toolkit package" >&5 14377echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 14378if test "${cf_cv_xt_ice_compat+set}" = set; then 14379 echo $ECHO_N "(cached) $ECHO_C" >&6 14380else 14381 14382cat >"conftest.$ac_ext" <<_ACEOF 14383#line 14383 "configure" 14384#include "confdefs.h" 14385 14386$ac_includes_default 14387#include <X11/Shell.h> 14388 14389int 14390main (void) 14391{ 14392int num = IceConnectionNumber(0); (void) num 14393 14394 ; 14395 return 0; 14396} 14397_ACEOF 14398rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14399if { (eval echo "$as_me:14399: \"$ac_link\"") >&5 14400 (eval $ac_link) 2>&5 14401 ac_status=$? 14402 echo "$as_me:14402: \$? = $ac_status" >&5 14403 (exit "$ac_status"); } && 14404 { ac_try='test -s "conftest$ac_exeext"' 14405 { (eval echo "$as_me:14405: \"$ac_try\"") >&5 14406 (eval $ac_try) 2>&5 14407 ac_status=$? 14408 echo "$as_me:14408: \$? = $ac_status" >&5 14409 (exit "$ac_status"); }; }; then 14410 cf_cv_xt_ice_compat=yes 14411else 14412 echo "$as_me: failed program was:" >&5 14413cat "conftest.$ac_ext" >&5 14414cf_cv_xt_ice_compat=no 14415fi 14416rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14417fi 14418echo "$as_me:14418: result: $cf_cv_xt_ice_compat" >&5 14419echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 14420 14421 if test "$cf_cv_xt_ice_compat" = no 14422 then 14423 # workaround for broken ".pc" files used for X Toolkit. 14424 case "x$X_PRE_LIBS" in 14425 (*-lICE*) 14426 case "x$LIBS" in 14427 (*-lICE*) 14428 ;; 14429 (*) 14430 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 14431 14432echo "${as_me:-configure}:14432: testing work around broken ICE dependency ..." 1>&5 14433 14434if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 14435 test -n "$verbose" && echo " found package ice" 1>&6 14436 14437echo "${as_me:-configure}:14437: testing found package ice ..." 1>&5 14438 14439 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 14440 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 14441 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 14442 14443echo "${as_me:-configure}:14443: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14444 14445 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 14446 14447echo "${as_me:-configure}:14447: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 14448 14449cf_fix_cppflags=no 14450cf_new_cflags= 14451cf_new_cppflags= 14452cf_new_extra_cppflags= 14453 14454for cf_add_cflags in $cf_pkgconfig_incs 14455do 14456case "$cf_fix_cppflags" in 14457(no) 14458 case "$cf_add_cflags" in 14459 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14460 case "$cf_add_cflags" in 14461 (-D*) 14462 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14463 14464 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14465 && test -z "${cf_tst_cflags}" \ 14466 && cf_fix_cppflags=yes 14467 14468 if test "$cf_fix_cppflags" = yes ; then 14469 14470 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14471 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14472 14473 continue 14474 elif test "${cf_tst_cflags}" = "\"'" ; then 14475 14476 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14477 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14478 14479 continue 14480 fi 14481 ;; 14482 esac 14483 case "$CPPFLAGS" in 14484 (*$cf_add_cflags) 14485 ;; 14486 (*) 14487 case "$cf_add_cflags" in 14488 (-D*) 14489 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14490 14491CPPFLAGS=`echo "$CPPFLAGS" | \ 14492 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14493 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14494 14495 ;; 14496 esac 14497 14498 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14499 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14500 14501 ;; 14502 esac 14503 ;; 14504 (*) 14505 14506 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14507 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14508 14509 ;; 14510 esac 14511 ;; 14512(yes) 14513 14514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14516 14517 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14518 14519 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14520 && test -z "${cf_tst_cflags}" \ 14521 && cf_fix_cppflags=no 14522 ;; 14523esac 14524done 14525 14526if test -n "$cf_new_cflags" ; then 14527 14528 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14529 CFLAGS="${CFLAGS}$cf_new_cflags" 14530 14531fi 14532 14533if test -n "$cf_new_cppflags" ; then 14534 14535 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14536 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14537 14538fi 14539 14540if test -n "$cf_new_extra_cppflags" ; then 14541 14542 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14543 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14544 14545fi 14546 14547cf_add_libs="$LIBS" 14548# reverse order 14549cf_add_0lib= 14550for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14551# filter duplicates 14552for cf_add_1lib in $cf_add_0lib; do 14553 for cf_add_2lib in $cf_add_libs; do 14554 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14555 cf_add_1lib= 14556 break 14557 fi 14558 done 14559 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14560done 14561LIBS="$cf_add_libs" 14562 14563if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 14564 test -n "$verbose" && echo " found package sm" 1>&6 14565 14566echo "${as_me:-configure}:14566: testing found package sm ..." 1>&5 14567 14568 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 14569 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 14570 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 14571 14572echo "${as_me:-configure}:14572: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14573 14574 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 14575 14576echo "${as_me:-configure}:14576: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 14577 14578cf_fix_cppflags=no 14579cf_new_cflags= 14580cf_new_cppflags= 14581cf_new_extra_cppflags= 14582 14583for cf_add_cflags in $cf_pkgconfig_incs 14584do 14585case "$cf_fix_cppflags" in 14586(no) 14587 case "$cf_add_cflags" in 14588 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14589 case "$cf_add_cflags" in 14590 (-D*) 14591 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14592 14593 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14594 && test -z "${cf_tst_cflags}" \ 14595 && cf_fix_cppflags=yes 14596 14597 if test "$cf_fix_cppflags" = yes ; then 14598 14599 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14600 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14601 14602 continue 14603 elif test "${cf_tst_cflags}" = "\"'" ; then 14604 14605 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14606 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14607 14608 continue 14609 fi 14610 ;; 14611 esac 14612 case "$CPPFLAGS" in 14613 (*$cf_add_cflags) 14614 ;; 14615 (*) 14616 case "$cf_add_cflags" in 14617 (-D*) 14618 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14619 14620CPPFLAGS=`echo "$CPPFLAGS" | \ 14621 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14622 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14623 14624 ;; 14625 esac 14626 14627 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14628 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14629 14630 ;; 14631 esac 14632 ;; 14633 (*) 14634 14635 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14636 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14637 14638 ;; 14639 esac 14640 ;; 14641(yes) 14642 14643 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14644 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14645 14646 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14647 14648 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14649 && test -z "${cf_tst_cflags}" \ 14650 && cf_fix_cppflags=no 14651 ;; 14652esac 14653done 14654 14655if test -n "$cf_new_cflags" ; then 14656 14657 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14658 CFLAGS="${CFLAGS}$cf_new_cflags" 14659 14660fi 14661 14662if test -n "$cf_new_cppflags" ; then 14663 14664 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14665 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14666 14667fi 14668 14669if test -n "$cf_new_extra_cppflags" ; then 14670 14671 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14672 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14673 14674fi 14675 14676cf_add_libs="$LIBS" 14677# reverse order 14678cf_add_0lib= 14679for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14680# filter duplicates 14681for cf_add_1lib in $cf_add_0lib; do 14682 for cf_add_2lib in $cf_add_libs; do 14683 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14684 cf_add_1lib= 14685 break 14686 fi 14687 done 14688 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14689done 14690LIBS="$cf_add_libs" 14691 14692 : 14693else 14694 cf_pkgconfig_incs= 14695 cf_pkgconfig_libs= 14696 : 14697fi 14698 14699else 14700 cf_pkgconfig_incs= 14701 cf_pkgconfig_libs= 14702 14703test -n "$verbose" && echo " ...before $LIBS" 1>&6 14704 14705echo "${as_me:-configure}:14705: testing ...before $LIBS ..." 1>&5 14706 14707LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 14708test -n "$verbose" && echo " ...after $LIBS" 1>&6 14709 14710echo "${as_me:-configure}:14710: testing ...after $LIBS ..." 1>&5 14711 14712fi 14713 14714 ;; 14715 esac 14716 ;; 14717 esac 14718 fi 14719 14720 cf_have_X_LIBS=yes 14721 14722else 14723 cf_pkgconfig_incs= 14724 cf_pkgconfig_libs= 14725 14726 LDFLAGS="$X_LIBS $LDFLAGS" 14727 14728test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 14729 14730echo "${as_me:-configure}:14730: testing checking additions to CFLAGS ..." 1>&5 14731 14732cf_check_cflags="$CFLAGS" 14733cf_check_cppflags="$CPPFLAGS" 14734 14735cf_fix_cppflags=no 14736cf_new_cflags= 14737cf_new_cppflags= 14738cf_new_extra_cppflags= 14739 14740for cf_add_cflags in $X_CFLAGS 14741do 14742case "$cf_fix_cppflags" in 14743(no) 14744 case "$cf_add_cflags" in 14745 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14746 case "$cf_add_cflags" in 14747 (-D*) 14748 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14749 14750 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14751 && test -z "${cf_tst_cflags}" \ 14752 && cf_fix_cppflags=yes 14753 14754 if test "$cf_fix_cppflags" = yes ; then 14755 14756 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14757 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14758 14759 continue 14760 elif test "${cf_tst_cflags}" = "\"'" ; then 14761 14762 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14763 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14764 14765 continue 14766 fi 14767 ;; 14768 esac 14769 case "$CPPFLAGS" in 14770 (*$cf_add_cflags) 14771 ;; 14772 (*) 14773 case "$cf_add_cflags" in 14774 (-D*) 14775 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14776 14777CPPFLAGS=`echo "$CPPFLAGS" | \ 14778 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14779 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14780 14781 ;; 14782 esac 14783 14784 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14785 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14786 14787 ;; 14788 esac 14789 ;; 14790 (*) 14791 14792 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14793 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14794 14795 ;; 14796 esac 14797 ;; 14798(yes) 14799 14800 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14801 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14802 14803 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14804 14805 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14806 && test -z "${cf_tst_cflags}" \ 14807 && cf_fix_cppflags=no 14808 ;; 14809esac 14810done 14811 14812if test -n "$cf_new_cflags" ; then 14813 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 14814 14815echo "${as_me:-configure}:14815: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 14816 14817 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14818 CFLAGS="${CFLAGS}$cf_new_cflags" 14819 14820fi 14821 14822if test -n "$cf_new_cppflags" ; then 14823 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 14824 14825echo "${as_me:-configure}:14825: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 14826 14827 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14828 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14829 14830fi 14831 14832if test -n "$cf_new_extra_cppflags" ; then 14833 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 14834 14835echo "${as_me:-configure}:14835: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 14836 14837 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14838 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14839 14840fi 14841 14842if test "x$cf_check_cflags" != "x$CFLAGS" ; then 14843cat >"conftest.$ac_ext" <<_ACEOF 14844#line 14844 "configure" 14845#include "confdefs.h" 14846#include <stdio.h> 14847int 14848main (void) 14849{ 14850printf("Hello world"); 14851 ; 14852 return 0; 14853} 14854_ACEOF 14855rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14856if { (eval echo "$as_me:14856: \"$ac_link\"") >&5 14857 (eval $ac_link) 2>&5 14858 ac_status=$? 14859 echo "$as_me:14859: \$? = $ac_status" >&5 14860 (exit "$ac_status"); } && 14861 { ac_try='test -s "conftest$ac_exeext"' 14862 { (eval echo "$as_me:14862: \"$ac_try\"") >&5 14863 (eval $ac_try) 2>&5 14864 ac_status=$? 14865 echo "$as_me:14865: \$? = $ac_status" >&5 14866 (exit "$ac_status"); }; }; then 14867 : 14868else 14869 echo "$as_me: failed program was:" >&5 14870cat "conftest.$ac_ext" >&5 14871test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 14872 14873echo "${as_me:-configure}:14873: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 14874 14875 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 14876 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 14877 14878echo "${as_me:-configure}:14878: testing but keeping change to \$CPPFLAGS ..." 1>&5 14879 14880 fi 14881 CFLAGS="$cf_check_cflags" 14882fi 14883rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14884fi 14885 14886 echo "$as_me:14886: checking for XOpenDisplay" >&5 14887echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 14888if test "${ac_cv_func_XOpenDisplay+set}" = set; then 14889 echo $ECHO_N "(cached) $ECHO_C" >&6 14890else 14891 cat >"conftest.$ac_ext" <<_ACEOF 14892#line 14892 "configure" 14893#include "confdefs.h" 14894#define XOpenDisplay autoconf_temporary 14895#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 14896#undef XOpenDisplay 14897 14898#ifdef __cplusplus 14899extern "C" 14900#endif 14901 14902/* We use char because int might match the return type of a gcc2 14903 builtin and then its argument prototype would still apply. */ 14904char XOpenDisplay (void); 14905 14906int 14907main (void) 14908{ 14909 14910/* The GNU C library defines stubs for functions which it implements 14911 to always fail with ENOSYS. Some functions are actually named 14912 something starting with __ and the normal name is an alias. */ 14913#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 14914#error found stub for XOpenDisplay 14915#endif 14916 14917 return XOpenDisplay (); 14918 ; 14919 return 0; 14920} 14921_ACEOF 14922rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14923if { (eval echo "$as_me:14923: \"$ac_link\"") >&5 14924 (eval $ac_link) 2>&5 14925 ac_status=$? 14926 echo "$as_me:14926: \$? = $ac_status" >&5 14927 (exit "$ac_status"); } && 14928 { ac_try='test -s "conftest$ac_exeext"' 14929 { (eval echo "$as_me:14929: \"$ac_try\"") >&5 14930 (eval $ac_try) 2>&5 14931 ac_status=$? 14932 echo "$as_me:14932: \$? = $ac_status" >&5 14933 (exit "$ac_status"); }; }; then 14934 ac_cv_func_XOpenDisplay=yes 14935else 14936 echo "$as_me: failed program was:" >&5 14937cat "conftest.$ac_ext" >&5 14938ac_cv_func_XOpenDisplay=no 14939fi 14940rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14941fi 14942echo "$as_me:14942: result: $ac_cv_func_XOpenDisplay" >&5 14943echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 14944if test "$ac_cv_func_XOpenDisplay" = yes; then 14945 : 14946else 14947 14948 echo "$as_me:14948: checking for XOpenDisplay in -lX11" >&5 14949echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 14950if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 14951 echo $ECHO_N "(cached) $ECHO_C" >&6 14952else 14953 ac_check_lib_save_LIBS=$LIBS 14954LIBS="-lX11 $LIBS" 14955cat >"conftest.$ac_ext" <<_ACEOF 14956#line 14956 "configure" 14957#include "confdefs.h" 14958 14959/* Override any gcc2 internal prototype to avoid an error. */ 14960#ifdef __cplusplus 14961extern "C" 14962#endif 14963/* We use char because int might match the return type of a gcc2 14964 builtin and then its argument prototype would still apply. */ 14965char XOpenDisplay (); 14966int 14967main (void) 14968{ 14969XOpenDisplay (); 14970 ; 14971 return 0; 14972} 14973_ACEOF 14974rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14975if { (eval echo "$as_me:14975: \"$ac_link\"") >&5 14976 (eval $ac_link) 2>&5 14977 ac_status=$? 14978 echo "$as_me:14978: \$? = $ac_status" >&5 14979 (exit "$ac_status"); } && 14980 { ac_try='test -s "conftest$ac_exeext"' 14981 { (eval echo "$as_me:14981: \"$ac_try\"") >&5 14982 (eval $ac_try) 2>&5 14983 ac_status=$? 14984 echo "$as_me:14984: \$? = $ac_status" >&5 14985 (exit "$ac_status"); }; }; then 14986 ac_cv_lib_X11_XOpenDisplay=yes 14987else 14988 echo "$as_me: failed program was:" >&5 14989cat "conftest.$ac_ext" >&5 14990ac_cv_lib_X11_XOpenDisplay=no 14991fi 14992rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14993LIBS=$ac_check_lib_save_LIBS 14994fi 14995echo "$as_me:14995: result: $ac_cv_lib_X11_XOpenDisplay" >&5 14996echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 14997if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 14998 14999cf_add_libs="$LIBS" 15000# reverse order 15001cf_add_0lib= 15002for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15003# filter duplicates 15004for cf_add_1lib in $cf_add_0lib; do 15005 for cf_add_2lib in $cf_add_libs; do 15006 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15007 cf_add_1lib= 15008 break 15009 fi 15010 done 15011 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15012done 15013LIBS="$cf_add_libs" 15014 15015fi 15016 15017fi 15018 15019 echo "$as_me:15019: checking for XtAppInitialize" >&5 15020echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 15021if test "${ac_cv_func_XtAppInitialize+set}" = set; then 15022 echo $ECHO_N "(cached) $ECHO_C" >&6 15023else 15024 cat >"conftest.$ac_ext" <<_ACEOF 15025#line 15025 "configure" 15026#include "confdefs.h" 15027#define XtAppInitialize autoconf_temporary 15028#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15029#undef XtAppInitialize 15030 15031#ifdef __cplusplus 15032extern "C" 15033#endif 15034 15035/* We use char because int might match the return type of a gcc2 15036 builtin and then its argument prototype would still apply. */ 15037char XtAppInitialize (void); 15038 15039int 15040main (void) 15041{ 15042 15043/* The GNU C library defines stubs for functions which it implements 15044 to always fail with ENOSYS. Some functions are actually named 15045 something starting with __ and the normal name is an alias. */ 15046#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 15047#error found stub for XtAppInitialize 15048#endif 15049 15050 return XtAppInitialize (); 15051 ; 15052 return 0; 15053} 15054_ACEOF 15055rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15056if { (eval echo "$as_me:15056: \"$ac_link\"") >&5 15057 (eval $ac_link) 2>&5 15058 ac_status=$? 15059 echo "$as_me:15059: \$? = $ac_status" >&5 15060 (exit "$ac_status"); } && 15061 { ac_try='test -s "conftest$ac_exeext"' 15062 { (eval echo "$as_me:15062: \"$ac_try\"") >&5 15063 (eval $ac_try) 2>&5 15064 ac_status=$? 15065 echo "$as_me:15065: \$? = $ac_status" >&5 15066 (exit "$ac_status"); }; }; then 15067 ac_cv_func_XtAppInitialize=yes 15068else 15069 echo "$as_me: failed program was:" >&5 15070cat "conftest.$ac_ext" >&5 15071ac_cv_func_XtAppInitialize=no 15072fi 15073rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15074fi 15075echo "$as_me:15075: result: $ac_cv_func_XtAppInitialize" >&5 15076echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 15077if test "$ac_cv_func_XtAppInitialize" = yes; then 15078 : 15079else 15080 15081 echo "$as_me:15081: checking for XtAppInitialize in -lXt" >&5 15082echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 15083if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 15084 echo $ECHO_N "(cached) $ECHO_C" >&6 15085else 15086 ac_check_lib_save_LIBS=$LIBS 15087LIBS="-lXt $LIBS" 15088cat >"conftest.$ac_ext" <<_ACEOF 15089#line 15089 "configure" 15090#include "confdefs.h" 15091 15092/* Override any gcc2 internal prototype to avoid an error. */ 15093#ifdef __cplusplus 15094extern "C" 15095#endif 15096/* We use char because int might match the return type of a gcc2 15097 builtin and then its argument prototype would still apply. */ 15098char XtAppInitialize (); 15099int 15100main (void) 15101{ 15102XtAppInitialize (); 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15108if { (eval echo "$as_me:15108: \"$ac_link\"") >&5 15109 (eval $ac_link) 2>&5 15110 ac_status=$? 15111 echo "$as_me:15111: \$? = $ac_status" >&5 15112 (exit "$ac_status"); } && 15113 { ac_try='test -s "conftest$ac_exeext"' 15114 { (eval echo "$as_me:15114: \"$ac_try\"") >&5 15115 (eval $ac_try) 2>&5 15116 ac_status=$? 15117 echo "$as_me:15117: \$? = $ac_status" >&5 15118 (exit "$ac_status"); }; }; then 15119 ac_cv_lib_Xt_XtAppInitialize=yes 15120else 15121 echo "$as_me: failed program was:" >&5 15122cat "conftest.$ac_ext" >&5 15123ac_cv_lib_Xt_XtAppInitialize=no 15124fi 15125rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15126LIBS=$ac_check_lib_save_LIBS 15127fi 15128echo "$as_me:15128: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 15129echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 15130if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 15131 15132cat >>confdefs.h <<\EOF 15133#define HAVE_LIBXT 1 15134EOF 15135 15136 cf_have_X_LIBS=Xt 15137 LIBS="-lXt $LIBS" 15138fi 15139 15140fi 15141 15142fi 15143 15144if test "$cf_have_X_LIBS" = no ; then 15145 { echo "$as_me:15145: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15146test program. You will have to check and add the proper libraries by hand 15147to makefile." >&5 15148echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15149test program. You will have to check and add the proper libraries by hand 15150to makefile." >&2;} 15151fi 15152 15153cf_x_athena_root=$cf_x_athena 15154cf_x_athena_inc="" 15155 15156for cf_path in default \ 15157 /usr/contrib/X11R6 \ 15158 /usr/contrib/X11R5 \ 15159 /usr/lib/X11R5 \ 15160 /usr/local 15161do 15162 if test -z "$cf_x_athena_inc" ; then 15163 15164cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS" 15165cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS" 15166cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS" 15167LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15168for cf_X_CFLAGS in $X_CFLAGS 15169do 15170 case "x$cf_X_CFLAGS" in 15171 x-[IUD]*) 15172 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15173 ;; 15174 *) 15175 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15176 ;; 15177 esac 15178done 15179 15180 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 15181 if test "$cf_path" != default ; then 15182 15183 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15184 CPPFLAGS="${CPPFLAGS}-I$cf_path/include" 15185 15186 echo "$as_me:15186: checking for $cf_test in $cf_path" >&5 15187echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 15188 else 15189 echo "$as_me:15189: checking for $cf_test" >&5 15190echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 15191 fi 15192 cat >"conftest.$ac_ext" <<_ACEOF 15193#line 15193 "configure" 15194#include "confdefs.h" 15195 15196#include <X11/Intrinsic.h> 15197#include <$cf_test> 15198int 15199main (void) 15200{ 15201 15202 ; 15203 return 0; 15204} 15205_ACEOF 15206rm -f "conftest.$ac_objext" 15207if { (eval echo "$as_me:15207: \"$ac_compile\"") >&5 15208 (eval $ac_compile) 2>&5 15209 ac_status=$? 15210 echo "$as_me:15210: \$? = $ac_status" >&5 15211 (exit "$ac_status"); } && 15212 { ac_try='test -s "conftest.$ac_objext"' 15213 { (eval echo "$as_me:15213: \"$ac_try\"") >&5 15214 (eval $ac_try) 2>&5 15215 ac_status=$? 15216 echo "$as_me:15216: \$? = $ac_status" >&5 15217 (exit "$ac_status"); }; }; then 15218 cf_result=yes 15219else 15220 echo "$as_me: failed program was:" >&5 15221cat "conftest.$ac_ext" >&5 15222cf_result=no 15223fi 15224rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15225 echo "$as_me:15225: result: $cf_result" >&5 15226echo "${ECHO_T}$cf_result" >&6 15227 15228LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS" 15229CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS" 15230CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS" 15231 15232 if test "$cf_result" = yes ; then 15233 test "$cf_path" = default && cf_x_athena_inc=default 15234 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include" 15235 break 15236 fi 15237 fi 15238done 15239 15240if test -z "$cf_x_athena_inc" ; then 15241 { echo "$as_me:15241: WARNING: Unable to find Athena header files" >&5 15242echo "$as_me: WARNING: Unable to find Athena header files" >&2;} 15243elif test "$cf_x_athena_inc" != default ; then 15244 15245 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15246 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc" 15247 15248fi 15249 15250cf_x_athena_root=$cf_x_athena 15251cf_x_athena_lib="" 15252 15253for cf_path in default \ 15254 /usr/contrib/X11R6 \ 15255 /usr/contrib/X11R5 \ 15256 /usr/lib/X11R5 \ 15257 /usr/local 15258do 15259 for cf_lib in \ 15260 ${cf_x_athena_root} \ 15261 ${cf_x_athena_root}7 \ 15262 ${cf_x_athena_root}6 15263 do 15264 for cf_libs in \ 15265 "-l$cf_lib -lXmu" \ 15266 "-l$cf_lib -lXpm -lXmu" \ 15267 "-l${cf_lib}_s -lXmu_s" 15268 do 15269 test -n "$cf_x_athena_lib" && break 15270 15271cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS" 15272cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS" 15273cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS" 15274LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15275for cf_X_CFLAGS in $X_CFLAGS 15276do 15277 case "x$cf_X_CFLAGS" in 15278 x-[IUD]*) 15279 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15280 ;; 15281 *) 15282 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15283 ;; 15284 esac 15285done 15286 15287 cf_test=XawSimpleMenuAddGlobalActions 15288 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs" 15289 15290cf_add_libs="$LIBS" 15291# reverse order 15292cf_add_0lib= 15293for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15294# filter duplicates 15295for cf_add_1lib in $cf_add_0lib; do 15296 for cf_add_2lib in $cf_add_libs; do 15297 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15298 cf_add_1lib= 15299 break 15300 fi 15301 done 15302 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15303done 15304LIBS="$cf_add_libs" 15305 15306 echo "$as_me:15306: checking for $cf_test in $cf_libs" >&5 15307echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 15308 cat >"conftest.$ac_ext" <<_ACEOF 15309#line 15309 "configure" 15310#include "confdefs.h" 15311 15312$ac_includes_default 15313#include <X11/Intrinsic.h> 15314#include <X11/$cf_x_athena_root/SimpleMenu.h> 15315 15316int 15317main (void) 15318{ 15319 15320$cf_test((XtAppContext) 0) 15321 ; 15322 return 0; 15323} 15324_ACEOF 15325rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15326if { (eval echo "$as_me:15326: \"$ac_link\"") >&5 15327 (eval $ac_link) 2>&5 15328 ac_status=$? 15329 echo "$as_me:15329: \$? = $ac_status" >&5 15330 (exit "$ac_status"); } && 15331 { ac_try='test -s "conftest$ac_exeext"' 15332 { (eval echo "$as_me:15332: \"$ac_try\"") >&5 15333 (eval $ac_try) 2>&5 15334 ac_status=$? 15335 echo "$as_me:15335: \$? = $ac_status" >&5 15336 (exit "$ac_status"); }; }; then 15337 cf_result=yes 15338else 15339 echo "$as_me: failed program was:" >&5 15340cat "conftest.$ac_ext" >&5 15341cf_result=no 15342fi 15343rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15344 echo "$as_me:15344: result: $cf_result" >&5 15345echo "${ECHO_T}$cf_result" >&6 15346 15347LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS" 15348CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS" 15349CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS" 15350 15351 if test "$cf_result" = yes ; then 15352 cf_x_athena_lib="$cf_libs" 15353 break 15354 fi 15355 done # cf_libs 15356 test -n "$cf_x_athena_lib" && break 15357 done # cf_lib 15358done 15359 15360if test -z "$cf_x_athena_lib" ; then 15361 { { echo "$as_me:15361: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 15362echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 15363 { (exit 1); exit 1; }; } 15364fi 15365 15366cf_add_libs="$LIBS" 15367# reverse order 15368cf_add_0lib= 15369for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15370# filter duplicates 15371for cf_add_1lib in $cf_add_0lib; do 15372 for cf_add_2lib in $cf_add_libs; do 15373 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15374 cf_add_1lib= 15375 break 15376 fi 15377 done 15378 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15379done 15380LIBS="$cf_add_libs" 15381 15382cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15383 15384cat >>confdefs.h <<EOF 15385#define $cf_x_athena_LIBS 1 15386EOF 15387 15388fi 15389 15390for ac_header in X11/Xpoll.h 15391do 15392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15393echo "$as_me:15393: checking for $ac_header" >&5 15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15395if eval "test \"\${$as_ac_Header+set}\" = set"; then 15396 echo $ECHO_N "(cached) $ECHO_C" >&6 15397else 15398 cat >"conftest.$ac_ext" <<_ACEOF 15399#line 15399 "configure" 15400#include "confdefs.h" 15401#include <$ac_header> 15402_ACEOF 15403if { (eval echo "$as_me:15403: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15404 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15405 ac_status=$? 15406 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15407 rm -f conftest.er1 15408 cat conftest.err >&5 15409 echo "$as_me:15409: \$? = $ac_status" >&5 15410 (exit "$ac_status"); } >/dev/null; then 15411 if test -s conftest.err; then 15412 ac_cpp_err=$ac_c_preproc_warn_flag 15413 else 15414 ac_cpp_err= 15415 fi 15416else 15417 ac_cpp_err=yes 15418fi 15419if test -z "$ac_cpp_err"; then 15420 eval "$as_ac_Header=yes" 15421else 15422 echo "$as_me: failed program was:" >&5 15423 cat "conftest.$ac_ext" >&5 15424 eval "$as_ac_Header=no" 15425fi 15426rm -f conftest.err "conftest.$ac_ext" 15427fi 15428echo "$as_me:15428: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15429echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 15430if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 15431 cat >>confdefs.h <<EOF 15432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15433EOF 15434 15435fi 15436done 15437 15438echo "$as_me:15438: checking for declaration of fd_set" >&5 15439echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 15440if test "${cf_cv_type_fd_set+set}" = set; then 15441 echo $ECHO_N "(cached) $ECHO_C" >&6 15442else 15443 15444echo "${as_me:-configure}:15444: testing sys/types alone ..." 1>&5 15445 15446cat >"conftest.$ac_ext" <<_ACEOF 15447#line 15447 "configure" 15448#include "confdefs.h" 15449 15450#include <sys/types.h> 15451int 15452main (void) 15453{ 15454fd_set x; (void)x 15455 ; 15456 return 0; 15457} 15458_ACEOF 15459rm -f "conftest.$ac_objext" 15460if { (eval echo "$as_me:15460: \"$ac_compile\"") >&5 15461 (eval $ac_compile) 2>&5 15462 ac_status=$? 15463 echo "$as_me:15463: \$? = $ac_status" >&5 15464 (exit "$ac_status"); } && 15465 { ac_try='test -s "conftest.$ac_objext"' 15466 { (eval echo "$as_me:15466: \"$ac_try\"") >&5 15467 (eval $ac_try) 2>&5 15468 ac_status=$? 15469 echo "$as_me:15469: \$? = $ac_status" >&5 15470 (exit "$ac_status"); }; }; then 15471 cf_cv_type_fd_set=sys/types.h 15472else 15473 echo "$as_me: failed program was:" >&5 15474cat "conftest.$ac_ext" >&5 15475 15476echo "${as_me:-configure}:15476: testing X11/Xpoll.h ..." 1>&5 15477 15478cat >"conftest.$ac_ext" <<_ACEOF 15479#line 15479 "configure" 15480#include "confdefs.h" 15481 15482#ifdef HAVE_X11_XPOLL_H 15483#include <X11/Xpoll.h> 15484#endif 15485int 15486main (void) 15487{ 15488fd_set x; (void)x 15489 ; 15490 return 0; 15491} 15492_ACEOF 15493rm -f "conftest.$ac_objext" 15494if { (eval echo "$as_me:15494: \"$ac_compile\"") >&5 15495 (eval $ac_compile) 2>&5 15496 ac_status=$? 15497 echo "$as_me:15497: \$? = $ac_status" >&5 15498 (exit "$ac_status"); } && 15499 { ac_try='test -s "conftest.$ac_objext"' 15500 { (eval echo "$as_me:15500: \"$ac_try\"") >&5 15501 (eval $ac_try) 2>&5 15502 ac_status=$? 15503 echo "$as_me:15503: \$? = $ac_status" >&5 15504 (exit "$ac_status"); }; }; then 15505 cf_cv_type_fd_set=X11/Xpoll.h 15506else 15507 echo "$as_me: failed program was:" >&5 15508cat "conftest.$ac_ext" >&5 15509 15510echo "${as_me:-configure}:15510: testing sys/select.h ..." 1>&5 15511 15512cat >"conftest.$ac_ext" <<_ACEOF 15513#line 15513 "configure" 15514#include "confdefs.h" 15515 15516#include <sys/types.h> 15517#include <sys/select.h> 15518int 15519main (void) 15520{ 15521fd_set x; (void)x 15522 ; 15523 return 0; 15524} 15525_ACEOF 15526rm -f "conftest.$ac_objext" 15527if { (eval echo "$as_me:15527: \"$ac_compile\"") >&5 15528 (eval $ac_compile) 2>&5 15529 ac_status=$? 15530 echo "$as_me:15530: \$? = $ac_status" >&5 15531 (exit "$ac_status"); } && 15532 { ac_try='test -s "conftest.$ac_objext"' 15533 { (eval echo "$as_me:15533: \"$ac_try\"") >&5 15534 (eval $ac_try) 2>&5 15535 ac_status=$? 15536 echo "$as_me:15536: \$? = $ac_status" >&5 15537 (exit "$ac_status"); }; }; then 15538 cf_cv_type_fd_set=sys/select.h 15539else 15540 echo "$as_me: failed program was:" >&5 15541cat "conftest.$ac_ext" >&5 15542cf_cv_type_fd_set=unknown 15543fi 15544rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15545fi 15546rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15547fi 15548rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15549fi 15550echo "$as_me:15550: result: $cf_cv_type_fd_set" >&5 15551echo "${ECHO_T}$cf_cv_type_fd_set" >&6 15552if test $cf_cv_type_fd_set = sys/select.h ; then 15553 15554cat >>confdefs.h <<\EOF 15555#define USE_SYS_SELECT_H 1 15556EOF 15557 15558fi 15559 15560echo "$as_me:15560: checking for declaration of fd_mask" >&5 15561echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 15562if test "${cf_cv_type_fd_mask+set}" = set; then 15563 echo $ECHO_N "(cached) $ECHO_C" >&6 15564else 15565 15566 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 15567 cat >"conftest.$ac_ext" <<_ACEOF 15568#line 15568 "configure" 15569#include "confdefs.h" 15570 15571#include <X11/Xpoll.h> 15572int 15573main (void) 15574{ 15575fd_mask x 15576 ; 15577 return 0; 15578} 15579_ACEOF 15580rm -f "conftest.$ac_objext" 15581if { (eval echo "$as_me:15581: \"$ac_compile\"") >&5 15582 (eval $ac_compile) 2>&5 15583 ac_status=$? 15584 echo "$as_me:15584: \$? = $ac_status" >&5 15585 (exit "$ac_status"); } && 15586 { ac_try='test -s "conftest.$ac_objext"' 15587 { (eval echo "$as_me:15587: \"$ac_try\"") >&5 15588 (eval $ac_try) 2>&5 15589 ac_status=$? 15590 echo "$as_me:15590: \$? = $ac_status" >&5 15591 (exit "$ac_status"); }; }; then 15592 : 15593else 15594 echo "$as_me: failed program was:" >&5 15595cat "conftest.$ac_ext" >&5 15596 15597echo "${as_me:-configure}:15597: testing if we must define CSRG_BASED ..." 1>&5 15598 15599# Xosdefs.h on Mac OS X may not define this (but it should). 15600 cat >"conftest.$ac_ext" <<_ACEOF 15601#line 15601 "configure" 15602#include "confdefs.h" 15603 15604#define CSRG_BASED 15605#include <X11/Xpoll.h> 15606int 15607main (void) 15608{ 15609fd_mask x 15610 ; 15611 return 0; 15612} 15613_ACEOF 15614rm -f "conftest.$ac_objext" 15615if { (eval echo "$as_me:15615: \"$ac_compile\"") >&5 15616 (eval $ac_compile) 2>&5 15617 ac_status=$? 15618 echo "$as_me:15618: \$? = $ac_status" >&5 15619 (exit "$ac_status"); } && 15620 { ac_try='test -s "conftest.$ac_objext"' 15621 { (eval echo "$as_me:15621: \"$ac_try\"") >&5 15622 (eval $ac_try) 2>&5 15623 ac_status=$? 15624 echo "$as_me:15624: \$? = $ac_status" >&5 15625 (exit "$ac_status"); }; }; then 15626 cf_cv_type_fd_mask=CSRG_BASED 15627else 15628 echo "$as_me: failed program was:" >&5 15629cat "conftest.$ac_ext" >&5 15630fi 15631rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15632fi 15633rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15634 else 15635 cf_cv_type_fd_mask=$cf_cv_type_fd_set 15636 fi 15637 15638fi 15639echo "$as_me:15639: result: $cf_cv_type_fd_mask" >&5 15640echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 15641if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 15642 15643cat >>confdefs.h <<\EOF 15644#define CSRG_BASED 1 15645EOF 15646 15647fi 15648 15649echo "$as_me:15649: checking for IRIX 6.5 baud-rate redefinitions" >&5 15650echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 15651if test "${cf_cv_termio_c_ispeed+set}" = set; then 15652 echo $ECHO_N "(cached) $ECHO_C" >&6 15653else 15654 15655cat >"conftest.$ac_ext" <<_ACEOF 15656#line 15656 "configure" 15657#include "confdefs.h" 15658 15659#include <sys/types.h> 15660#include <sys/termio.h> 15661int 15662main (void) 15663{ 15664 15665struct termio foo; 15666foo.c_ispeed = B38400; 15667foo.c_ospeed = B9600; 15668(void)foo; 15669 15670 ; 15671 return 0; 15672} 15673_ACEOF 15674rm -f "conftest.$ac_objext" 15675if { (eval echo "$as_me:15675: \"$ac_compile\"") >&5 15676 (eval $ac_compile) 2>&5 15677 ac_status=$? 15678 echo "$as_me:15678: \$? = $ac_status" >&5 15679 (exit "$ac_status"); } && 15680 { ac_try='test -s "conftest.$ac_objext"' 15681 { (eval echo "$as_me:15681: \"$ac_try\"") >&5 15682 (eval $ac_try) 2>&5 15683 ac_status=$? 15684 echo "$as_me:15684: \$? = $ac_status" >&5 15685 (exit "$ac_status"); }; }; then 15686 cf_cv_termio_c_ispeed=yes 15687 15688else 15689 echo "$as_me: failed program was:" >&5 15690cat "conftest.$ac_ext" >&5 15691cf_cv_termio_c_ispeed=no 15692fi 15693rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15694 15695fi 15696echo "$as_me:15696: result: $cf_cv_termio_c_ispeed" >&5 15697echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 15698test "$cf_cv_termio_c_ispeed" = yes && 15699cat >>confdefs.h <<\EOF 15700#define HAVE_TERMIO_C_ISPEED 1 15701EOF 15702 15703echo "$as_me:15703: checking for termios type tcflag_t" >&5 15704echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6 15705if test "${cf_cv_havetype_tcflag_t+set}" = set; then 15706 echo $ECHO_N "(cached) $ECHO_C" >&6 15707else 15708 15709 cat >"conftest.$ac_ext" <<_ACEOF 15710#line 15710 "configure" 15711#include "confdefs.h" 15712#include <termios.h> 15713int 15714main (void) 15715{ 15716 15717 tcflag_t x = 0; (void)x 15718 ; 15719 return 0; 15720} 15721_ACEOF 15722rm -f "conftest.$ac_objext" 15723if { (eval echo "$as_me:15723: \"$ac_compile\"") >&5 15724 (eval $ac_compile) 2>&5 15725 ac_status=$? 15726 echo "$as_me:15726: \$? = $ac_status" >&5 15727 (exit "$ac_status"); } && 15728 { ac_try='test -s "conftest.$ac_objext"' 15729 { (eval echo "$as_me:15729: \"$ac_try\"") >&5 15730 (eval $ac_try) 2>&5 15731 ac_status=$? 15732 echo "$as_me:15732: \$? = $ac_status" >&5 15733 (exit "$ac_status"); }; }; then 15734 cf_cv_havetype_tcflag_t=yes 15735else 15736 echo "$as_me: failed program was:" >&5 15737cat "conftest.$ac_ext" >&5 15738cf_cv_havetype_tcflag_t=no 15739fi 15740rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15741 15742fi 15743echo "$as_me:15743: result: $cf_cv_havetype_tcflag_t" >&5 15744echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6 15745test "$cf_cv_havetype_tcflag_t" = no && 15746cat >>confdefs.h <<\EOF 15747#define tcflag_t unsigned long 15748EOF 15749 15750echo "$as_me:15750: checking for termios type speed_t" >&5 15751echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6 15752if test "${cf_cv_havetype_speed_t+set}" = set; then 15753 echo $ECHO_N "(cached) $ECHO_C" >&6 15754else 15755 15756 cat >"conftest.$ac_ext" <<_ACEOF 15757#line 15757 "configure" 15758#include "confdefs.h" 15759#include <termios.h> 15760int 15761main (void) 15762{ 15763 15764 speed_t x = 0; (void)x 15765 ; 15766 return 0; 15767} 15768_ACEOF 15769rm -f "conftest.$ac_objext" 15770if { (eval echo "$as_me:15770: \"$ac_compile\"") >&5 15771 (eval $ac_compile) 2>&5 15772 ac_status=$? 15773 echo "$as_me:15773: \$? = $ac_status" >&5 15774 (exit "$ac_status"); } && 15775 { ac_try='test -s "conftest.$ac_objext"' 15776 { (eval echo "$as_me:15776: \"$ac_try\"") >&5 15777 (eval $ac_try) 2>&5 15778 ac_status=$? 15779 echo "$as_me:15779: \$? = $ac_status" >&5 15780 (exit "$ac_status"); }; }; then 15781 cf_cv_havetype_speed_t=yes 15782else 15783 echo "$as_me: failed program was:" >&5 15784cat "conftest.$ac_ext" >&5 15785cf_cv_havetype_speed_t=no 15786fi 15787rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15788 15789fi 15790echo "$as_me:15790: result: $cf_cv_havetype_speed_t" >&5 15791echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6 15792test "$cf_cv_havetype_speed_t" = no && 15793cat >>confdefs.h <<\EOF 15794#define speed_t unsigned short 15795EOF 15796 15797echo "$as_me:15797: checking for termios type cc_t" >&5 15798echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6 15799if test "${cf_cv_havetype_cc_t+set}" = set; then 15800 echo $ECHO_N "(cached) $ECHO_C" >&6 15801else 15802 15803 cat >"conftest.$ac_ext" <<_ACEOF 15804#line 15804 "configure" 15805#include "confdefs.h" 15806#include <termios.h> 15807int 15808main (void) 15809{ 15810 15811 cc_t x = 0; (void)x 15812 ; 15813 return 0; 15814} 15815_ACEOF 15816rm -f "conftest.$ac_objext" 15817if { (eval echo "$as_me:15817: \"$ac_compile\"") >&5 15818 (eval $ac_compile) 2>&5 15819 ac_status=$? 15820 echo "$as_me:15820: \$? = $ac_status" >&5 15821 (exit "$ac_status"); } && 15822 { ac_try='test -s "conftest.$ac_objext"' 15823 { (eval echo "$as_me:15823: \"$ac_try\"") >&5 15824 (eval $ac_try) 2>&5 15825 ac_status=$? 15826 echo "$as_me:15826: \$? = $ac_status" >&5 15827 (exit "$ac_status"); }; }; then 15828 cf_cv_havetype_cc_t=yes 15829else 15830 echo "$as_me: failed program was:" >&5 15831cat "conftest.$ac_ext" >&5 15832cf_cv_havetype_cc_t=no 15833fi 15834rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15835 15836fi 15837echo "$as_me:15837: result: $cf_cv_havetype_cc_t" >&5 15838echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6 15839test "$cf_cv_havetype_cc_t" = no && 15840cat >>confdefs.h <<\EOF 15841#define cc_t unsigned char 15842EOF 15843 15844# The Xcursor library is normally (weakly) linked via the X11 library rather 15845# than directly to applications. xterm can select a cursor theme; users can 15846# also use environment variables to select cursor size. We would only notice 15847# the library if there are development files for it. Provide a way to disable 15848# the feature if it is unwanted. 15849echo "$as_me:15849: checking if we expect to use the Xcursor library" >&5 15850echo $ECHO_N "checking if we expect to use the Xcursor library... $ECHO_C" >&6 15851 15852# Check whether --enable-xcursor or --disable-xcursor was given. 15853if test "${enable_xcursor+set}" = set; then 15854 enableval="$enable_xcursor" 15855 test "$enableval" != no && enableval=yes 15856 if test "$enableval" != "yes" ; then 15857 enable_xcursor=no 15858 else 15859 enable_xcursor=yes 15860 fi 15861else 15862 enableval=yes 15863 enable_xcursor=yes 15864 15865fi; 15866echo "$as_me:15866: result: $enable_xcursor" >&5 15867echo "${ECHO_T}$enable_xcursor" >&6 15868if test "$enable_xcursor" = yes; then 15869 15870cat >>confdefs.h <<\EOF 15871#define HAVE_LIB_XCURSOR 1 15872EOF 15873 15874fi 15875 15876LIBS="$LIBS $X_EXTRA_LIBS" 15877 15878for ac_header in \ 15879stropts.h \ 15880 15881do 15882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15883echo "$as_me:15883: checking for $ac_header" >&5 15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15885if eval "test \"\${$as_ac_Header+set}\" = set"; then 15886 echo $ECHO_N "(cached) $ECHO_C" >&6 15887else 15888 cat >"conftest.$ac_ext" <<_ACEOF 15889#line 15889 "configure" 15890#include "confdefs.h" 15891#include <$ac_header> 15892_ACEOF 15893if { (eval echo "$as_me:15893: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15894 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15895 ac_status=$? 15896 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15897 rm -f conftest.er1 15898 cat conftest.err >&5 15899 echo "$as_me:15899: \$? = $ac_status" >&5 15900 (exit "$ac_status"); } >/dev/null; then 15901 if test -s conftest.err; then 15902 ac_cpp_err=$ac_c_preproc_warn_flag 15903 else 15904 ac_cpp_err= 15905 fi 15906else 15907 ac_cpp_err=yes 15908fi 15909if test -z "$ac_cpp_err"; then 15910 eval "$as_ac_Header=yes" 15911else 15912 echo "$as_me: failed program was:" >&5 15913 cat "conftest.$ac_ext" >&5 15914 eval "$as_ac_Header=no" 15915fi 15916rm -f conftest.err "conftest.$ac_ext" 15917fi 15918echo "$as_me:15918: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15919echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 15920if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 15921 cat >>confdefs.h <<EOF 15922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15923EOF 15924 15925fi 15926done 15927 15928cf_func_grantpt="grantpt ptsname" 15929cf_prefer_openpt=no 15930case $host_os in 15931(darwin[0-9].*) 15932 ;; 15933(openbsd[0-9].*) 15934 # The POSIX entrypoints exist, but have never worked. 15935 ;; 15936(linux*) 15937 cf_func_grantpt="$cf_func_grantpt posix_openpt" 15938 cf_prefer_openpt=yes 15939 ;; 15940(*) 15941 cf_func_grantpt="$cf_func_grantpt posix_openpt" 15942 ;; 15943esac 15944 15945for ac_func in $cf_func_grantpt 15946do 15947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15948echo "$as_me:15948: checking for $ac_func" >&5 15949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15950if eval "test \"\${$as_ac_var+set}\" = set"; then 15951 echo $ECHO_N "(cached) $ECHO_C" >&6 15952else 15953 cat >"conftest.$ac_ext" <<_ACEOF 15954#line 15954 "configure" 15955#include "confdefs.h" 15956#define $ac_func autoconf_temporary 15957#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15958#undef $ac_func 15959 15960#ifdef __cplusplus 15961extern "C" 15962#endif 15963 15964/* We use char because int might match the return type of a gcc2 15965 builtin and then its argument prototype would still apply. */ 15966char $ac_func (void); 15967 15968int 15969main (void) 15970{ 15971 15972/* The GNU C library defines stubs for functions which it implements 15973 to always fail with ENOSYS. Some functions are actually named 15974 something starting with __ and the normal name is an alias. */ 15975#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15976#error found stub for $ac_func 15977#endif 15978 15979 return $ac_func (); 15980 ; 15981 return 0; 15982} 15983_ACEOF 15984rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15985if { (eval echo "$as_me:15985: \"$ac_link\"") >&5 15986 (eval $ac_link) 2>&5 15987 ac_status=$? 15988 echo "$as_me:15988: \$? = $ac_status" >&5 15989 (exit "$ac_status"); } && 15990 { ac_try='test -s "conftest$ac_exeext"' 15991 { (eval echo "$as_me:15991: \"$ac_try\"") >&5 15992 (eval $ac_try) 2>&5 15993 ac_status=$? 15994 echo "$as_me:15994: \$? = $ac_status" >&5 15995 (exit "$ac_status"); }; }; then 15996 eval "$as_ac_var=yes" 15997else 15998 echo "$as_me: failed program was:" >&5 15999cat "conftest.$ac_ext" >&5 16000eval "$as_ac_var=no" 16001fi 16002rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16003fi 16004echo "$as_me:16004: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16005echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16006if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16007 cat >>confdefs.h <<EOF 16008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16009EOF 16010 16011fi 16012done 16013 16014cf_grantpt_opts= 16015if test "x$ac_cv_func_grantpt" = "xyes" ; then 16016 echo "$as_me:16016: checking if grantpt really works" >&5 16017echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 16018 cat >"conftest.$ac_ext" <<_ACEOF 16019#line 16019 "configure" 16020#include "confdefs.h" 16021 16022#include <stdlib.h> 16023#include <stdio.h> 16024#include <termios.h> 16025#include <unistd.h> 16026#include <signal.h> 16027#include <fcntl.h> 16028#include <errno.h> 16029 16030#ifndef HAVE_POSIX_OPENPT 16031#undef posix_openpt 16032#define posix_openpt(mode) open("/dev/ptmx", mode) 16033#endif 16034 16035#ifdef HAVE_STROPTS_H 16036#include <stropts.h> 16037#endif 16038 16039static void failed(int code) 16040{ 16041 perror("conftest"); 16042 exit(code); 16043} 16044 16045static void my_timeout(int sig) 16046{ 16047 (void)sig; 16048 exit(99); 16049} 16050 16051int 16052main (void) 16053{ 16054 16055 int code = 0; 16056 int pty; 16057 int tty; 16058 char *slave; 16059 struct termios tio; 16060 16061 (void)tio; 16062 signal(SIGALRM, my_timeout); 16063 16064 if (alarm(2) == 9) 16065 failed(9); 16066 else if ((pty = posix_openpt(O_RDWR)) < 0) 16067 failed(1); 16068 else if (grantpt(pty) < 0) 16069 failed(2); 16070 else if (unlockpt(pty) < 0) 16071 failed(3); 16072 else if ((slave = ptsname(pty)) == 0) 16073 failed(4); 16074#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16075 else if (!isatty(pty)) 16076 failed(4); 16077#endif 16078#if CONFTEST >= 4 16079 else if (tcgetattr(pty, &tio) < 0) 16080 failed(20); 16081 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16082 failed(21); 16083#endif 16084 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16085 * Linux does treat it that way. 16086 */ 16087 else if ((tty = open(slave, O_RDWR)) < 0) 16088 failed(5); 16089#ifdef CONFTEST 16090#ifdef I_PUSH 16091#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16092 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16093 failed(10); 16094#endif 16095#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16096 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16097 failed(11); 16098#endif 16099#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16100 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16101 failed(12); 16102#endif 16103#endif /* I_PUSH */ 16104#if CONFTEST >= 5 16105 else if (tcgetattr(tty, &tio) < 0) 16106 failed(30); 16107 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16108 failed(31); 16109#endif 16110#endif /* CONFTEST */ 16111 (void) tty; 16112 ${cf_cv_main_return:-return}(code); 16113 16114 ; 16115 return 0; 16116} 16117_ACEOF 16118rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16119if { (eval echo "$as_me:16119: \"$ac_link\"") >&5 16120 (eval $ac_link) 2>&5 16121 ac_status=$? 16122 echo "$as_me:16122: \$? = $ac_status" >&5 16123 (exit "$ac_status"); } && 16124 { ac_try='test -s "conftest$ac_exeext"' 16125 { (eval echo "$as_me:16125: \"$ac_try\"") >&5 16126 (eval $ac_try) 2>&5 16127 ac_status=$? 16128 echo "$as_me:16128: \$? = $ac_status" >&5 16129 (exit "$ac_status"); }; }; then 16130 16131 if test "$cross_compiling" = yes; then 16132 ac_cv_func_grantpt=maybe 16133else 16134 cat >"conftest.$ac_ext" <<_ACEOF 16135#line 16135 "configure" 16136#include "confdefs.h" 16137 16138#include <stdlib.h> 16139#include <stdio.h> 16140#include <termios.h> 16141#include <unistd.h> 16142#include <signal.h> 16143#include <fcntl.h> 16144#include <errno.h> 16145 16146#ifndef HAVE_POSIX_OPENPT 16147#undef posix_openpt 16148#define posix_openpt(mode) open("/dev/ptmx", mode) 16149#endif 16150 16151#ifdef HAVE_STROPTS_H 16152#include <stropts.h> 16153#endif 16154 16155static void failed(int code) 16156{ 16157 perror("conftest"); 16158 exit(code); 16159} 16160 16161static void my_timeout(int sig) 16162{ 16163 (void)sig; 16164 exit(99); 16165} 16166 16167int main(void) 16168{ 16169 16170 int code = 0; 16171 int pty; 16172 int tty; 16173 char *slave; 16174 struct termios tio; 16175 16176 (void)tio; 16177 signal(SIGALRM, my_timeout); 16178 16179 if (alarm(2) == 9) 16180 failed(9); 16181 else if ((pty = posix_openpt(O_RDWR)) < 0) 16182 failed(1); 16183 else if (grantpt(pty) < 0) 16184 failed(2); 16185 else if (unlockpt(pty) < 0) 16186 failed(3); 16187 else if ((slave = ptsname(pty)) == 0) 16188 failed(4); 16189#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16190 else if (!isatty(pty)) 16191 failed(4); 16192#endif 16193#if CONFTEST >= 4 16194 else if (tcgetattr(pty, &tio) < 0) 16195 failed(20); 16196 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16197 failed(21); 16198#endif 16199 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16200 * Linux does treat it that way. 16201 */ 16202 else if ((tty = open(slave, O_RDWR)) < 0) 16203 failed(5); 16204#ifdef CONFTEST 16205#ifdef I_PUSH 16206#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16207 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16208 failed(10); 16209#endif 16210#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16211 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16212 failed(11); 16213#endif 16214#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16215 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16216 failed(12); 16217#endif 16218#endif /* I_PUSH */ 16219#if CONFTEST >= 5 16220 else if (tcgetattr(tty, &tio) < 0) 16221 failed(30); 16222 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16223 failed(31); 16224#endif 16225#endif /* CONFTEST */ 16226 (void) tty; 16227 ${cf_cv_main_return:-return}(code); 16228 16229} 16230 16231_ACEOF 16232rm -f "conftest$ac_exeext" 16233if { (eval echo "$as_me:16233: \"$ac_link\"") >&5 16234 (eval $ac_link) 2>&5 16235 ac_status=$? 16236 echo "$as_me:16236: \$? = $ac_status" >&5 16237 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16238 { (eval echo "$as_me:16238: \"$ac_try\"") >&5 16239 (eval $ac_try) 2>&5 16240 ac_status=$? 16241 echo "$as_me:16241: \$? = $ac_status" >&5 16242 (exit "$ac_status"); }; }; then 16243 : 16244else 16245 echo "$as_me: program exited with status $ac_status" >&5 16246echo "$as_me: failed program was:" >&5 16247cat "conftest.$ac_ext" >&5 16248ac_cv_func_grantpt=no 16249 16250fi 16251rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 16252fi 16253 16254else 16255 echo "$as_me: failed program was:" >&5 16256cat "conftest.$ac_ext" >&5 16257ac_cv_func_grantpt=no 16258fi 16259rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16260 echo "$as_me:16260: result: $ac_cv_func_grantpt" >&5 16261echo "${ECHO_T}$ac_cv_func_grantpt" >&6 16262 16263 if test "x$ac_cv_func_grantpt" != "xno" ; then 16264 16265 if test "x$ac_cv_func_grantpt" = "xyes" ; then 16266 echo "$as_me:16266: checking for pty features" >&5 16267echo $ECHO_N "checking for pty features... $ECHO_C" >&6 16268 if test "x$ac_cv_header_stropts_h" = xyes 16269 then 16270 cf_pty_this=0 16271 else 16272 cf_pty_this=3 16273 fi 16274 16275 cf_pty_defines= 16276 while test $cf_pty_this != 6 16277 do 16278 16279 cf_pty_feature= 16280 cf_pty_next="`expr $cf_pty_this + 1`" 16281 16282echo "${as_me:-configure}:16282: testing pty feature test $cf_pty_next:5 ..." 1>&5 16283 16284 if test "$cross_compiling" = yes; then 16285 { { echo "$as_me:16285: error: cannot run test program while cross compiling" >&5 16286echo "$as_me: error: cannot run test program while cross compiling" >&2;} 16287 { (exit 1); exit 1; }; } 16288else 16289 cat >"conftest.$ac_ext" <<_ACEOF 16290#line 16290 "configure" 16291#include "confdefs.h" 16292#define CONFTEST $cf_pty_this 16293$cf_pty_defines 16294 16295#include <stdlib.h> 16296#include <stdio.h> 16297#include <termios.h> 16298#include <unistd.h> 16299#include <signal.h> 16300#include <fcntl.h> 16301#include <errno.h> 16302 16303#ifndef HAVE_POSIX_OPENPT 16304#undef posix_openpt 16305#define posix_openpt(mode) open("/dev/ptmx", mode) 16306#endif 16307 16308#ifdef HAVE_STROPTS_H 16309#include <stropts.h> 16310#endif 16311 16312static void failed(int code) 16313{ 16314 perror("conftest"); 16315 exit(code); 16316} 16317 16318static void my_timeout(int sig) 16319{ 16320 (void)sig; 16321 exit(99); 16322} 16323 16324int main(void) 16325{ 16326 16327 int code = 0; 16328 int pty; 16329 int tty; 16330 char *slave; 16331 struct termios tio; 16332 16333 (void)tio; 16334 signal(SIGALRM, my_timeout); 16335 16336 if (alarm(2) == 9) 16337 failed(9); 16338 else if ((pty = posix_openpt(O_RDWR)) < 0) 16339 failed(1); 16340 else if (grantpt(pty) < 0) 16341 failed(2); 16342 else if (unlockpt(pty) < 0) 16343 failed(3); 16344 else if ((slave = ptsname(pty)) == 0) 16345 failed(4); 16346#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16347 else if (!isatty(pty)) 16348 failed(4); 16349#endif 16350#if CONFTEST >= 4 16351 else if (tcgetattr(pty, &tio) < 0) 16352 failed(20); 16353 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16354 failed(21); 16355#endif 16356 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16357 * Linux does treat it that way. 16358 */ 16359 else if ((tty = open(slave, O_RDWR)) < 0) 16360 failed(5); 16361#ifdef CONFTEST 16362#ifdef I_PUSH 16363#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16364 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16365 failed(10); 16366#endif 16367#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16368 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16369 failed(11); 16370#endif 16371#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16372 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16373 failed(12); 16374#endif 16375#endif /* I_PUSH */ 16376#if CONFTEST >= 5 16377 else if (tcgetattr(tty, &tio) < 0) 16378 failed(30); 16379 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16380 failed(31); 16381#endif 16382#endif /* CONFTEST */ 16383 (void) tty; 16384 ${cf_cv_main_return:-return}(code); 16385 16386} 16387 16388_ACEOF 16389rm -f "conftest$ac_exeext" 16390if { (eval echo "$as_me:16390: \"$ac_link\"") >&5 16391 (eval $ac_link) 2>&5 16392 ac_status=$? 16393 echo "$as_me:16393: \$? = $ac_status" >&5 16394 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16395 { (eval echo "$as_me:16395: \"$ac_try\"") >&5 16396 (eval $ac_try) 2>&5 16397 ac_status=$? 16398 echo "$as_me:16398: \$? = $ac_status" >&5 16399 (exit "$ac_status"); }; }; then 16400 16401 case $cf_pty_next in 16402 (1) # - streams 16403 cf_pty_feature=ptem 16404 ;; 16405 (2) # - streams 16406 cf_pty_feature=ldterm 16407 ;; 16408 (3) # - streams 16409 cf_pty_feature=ttcompat 16410 ;; 16411 (4) 16412 cf_pty_feature=pty_isatty 16413 ;; 16414 (5) 16415 cf_pty_feature=pty_tcsetattr 16416 ;; 16417 (6) 16418 cf_pty_feature=tty_tcsetattr 16419 ;; 16420 esac 16421 16422else 16423 echo "$as_me: program exited with status $ac_status" >&5 16424echo "$as_me: failed program was:" >&5 16425cat "conftest.$ac_ext" >&5 16426 16427 case $cf_pty_next in 16428 (1|2|3) 16429 16430echo "${as_me:-configure}:16430: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 16431 16432 cf_pty_next=3 16433 ;; 16434 esac 16435 16436fi 16437rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 16438fi 16439 if test -n "$cf_pty_feature" 16440 then 16441 cf_pty_defines="$cf_pty_defines 16442#define CONFTEST_$cf_pty_feature 1 16443" 16444 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 16445 fi 16446 16447 cf_pty_this=$cf_pty_next 16448 done 16449 echo "$as_me:16449: result: $cf_grantpt_opts" >&5 16450echo "${ECHO_T}$cf_grantpt_opts" >&6 16451 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 16452 fi 16453 fi 16454fi 16455 16456if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then 16457 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6 16458 16459echo "${as_me:-configure}:16459: testing prefer posix_openpt over openpty ..." 1>&5 16460 16461elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 16462 echo "$as_me:16462: checking for openpty in -lutil" >&5 16463echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 16464if test "${ac_cv_lib_util_openpty+set}" = set; then 16465 echo $ECHO_N "(cached) $ECHO_C" >&6 16466else 16467 ac_check_lib_save_LIBS=$LIBS 16468LIBS="-lutil $LIBS" 16469cat >"conftest.$ac_ext" <<_ACEOF 16470#line 16470 "configure" 16471#include "confdefs.h" 16472 16473/* Override any gcc2 internal prototype to avoid an error. */ 16474#ifdef __cplusplus 16475extern "C" 16476#endif 16477/* We use char because int might match the return type of a gcc2 16478 builtin and then its argument prototype would still apply. */ 16479char openpty (); 16480int 16481main (void) 16482{ 16483openpty (); 16484 ; 16485 return 0; 16486} 16487_ACEOF 16488rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16489if { (eval echo "$as_me:16489: \"$ac_link\"") >&5 16490 (eval $ac_link) 2>&5 16491 ac_status=$? 16492 echo "$as_me:16492: \$? = $ac_status" >&5 16493 (exit "$ac_status"); } && 16494 { ac_try='test -s "conftest$ac_exeext"' 16495 { (eval echo "$as_me:16495: \"$ac_try\"") >&5 16496 (eval $ac_try) 2>&5 16497 ac_status=$? 16498 echo "$as_me:16498: \$? = $ac_status" >&5 16499 (exit "$ac_status"); }; }; then 16500 ac_cv_lib_util_openpty=yes 16501else 16502 echo "$as_me: failed program was:" >&5 16503cat "conftest.$ac_ext" >&5 16504ac_cv_lib_util_openpty=no 16505fi 16506rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16507LIBS=$ac_check_lib_save_LIBS 16508fi 16509echo "$as_me:16509: result: $ac_cv_lib_util_openpty" >&5 16510echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 16511if test "$ac_cv_lib_util_openpty" = yes; then 16512 cf_have_openpty=yes 16513else 16514 cf_have_openpty=no 16515fi 16516 16517 if test "$cf_have_openpty" = yes ; then 16518 ac_cv_func_grantpt=no 16519 LIBS="-lutil $LIBS" 16520 16521cat >>confdefs.h <<\EOF 16522#define HAVE_OPENPTY 1 16523EOF 16524 16525for ac_header in \ 16526 util.h \ 16527 libutil.h \ 16528 pty.h \ 16529 16530do 16531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16532echo "$as_me:16532: checking for $ac_header" >&5 16533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16534if eval "test \"\${$as_ac_Header+set}\" = set"; then 16535 echo $ECHO_N "(cached) $ECHO_C" >&6 16536else 16537 cat >"conftest.$ac_ext" <<_ACEOF 16538#line 16538 "configure" 16539#include "confdefs.h" 16540#include <$ac_header> 16541_ACEOF 16542if { (eval echo "$as_me:16542: \"$ac_cpp "conftest.$ac_ext"\"") >&5 16543 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 16544 ac_status=$? 16545 $EGREP -v '^ *\+' conftest.er1 >conftest.err 16546 rm -f conftest.er1 16547 cat conftest.err >&5 16548 echo "$as_me:16548: \$? = $ac_status" >&5 16549 (exit "$ac_status"); } >/dev/null; then 16550 if test -s conftest.err; then 16551 ac_cpp_err=$ac_c_preproc_warn_flag 16552 else 16553 ac_cpp_err= 16554 fi 16555else 16556 ac_cpp_err=yes 16557fi 16558if test -z "$ac_cpp_err"; then 16559 eval "$as_ac_Header=yes" 16560else 16561 echo "$as_me: failed program was:" >&5 16562 cat "conftest.$ac_ext" >&5 16563 eval "$as_ac_Header=no" 16564fi 16565rm -f conftest.err "conftest.$ac_ext" 16566fi 16567echo "$as_me:16567: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 16568echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16569if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16570 cat >>confdefs.h <<EOF 16571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16572EOF 16573 16574fi 16575done 16576 16577 fi 16578fi 16579 16580if test "x$ac_cv_func_grantpt" != xno 16581then 16582 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 16583 16584echo "${as_me:-configure}:16584: testing will rely upon grantpt ..." 1>&5 16585 16586cat >>confdefs.h <<\EOF 16587#define HAVE_WORKING_GRANTPT 1 16588EOF 16589 16590 for cf_feature in $cf_grantpt_opts 16591 do 16592 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 16593 16594cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 16595 16596 cat >>confdefs.h <<EOF 16597#define HAVE_GRANTPT_$cf_FEATURE 1 16598EOF 16599 16600 done 16601elif test "x$cf_have_openpty" = xno 16602then 16603 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 16604 16605echo "${as_me:-configure}:16605: testing will rely upon BSD-pseudoterminals ..." 1>&5 16606 16607else 16608 test -n "$verbose" && echo " will rely upon openpty" 1>&6 16609 16610echo "${as_me:-configure}:16610: testing will rely upon openpty ..." 1>&5 16611 16612fi 16613 16614echo "$as_me:16614: checking if we can use XkbQueryExtension" >&5 16615echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 16616if test "${cf_cv_xkb_query_extension+set}" = set; then 16617 echo $ECHO_N "(cached) $ECHO_C" >&6 16618else 16619 16620cat >"conftest.$ac_ext" <<_ACEOF 16621#line 16621 "configure" 16622#include "confdefs.h" 16623 16624#include <X11/Xlib.h> 16625#include <X11/extensions/XKB.h> 16626#include <X11/XKBlib.h> 16627 16628int 16629main (void) 16630{ 16631 16632 int xkbmajor = XkbMajorVersion; 16633 int xkbminor = XkbMinorVersion; 16634 int xkbopcode, xkbevent, xkberror; 16635 16636 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 16637 && XkbQueryExtension((Display *)0, 16638 &xkbopcode, 16639 &xkbevent, 16640 &xkberror, 16641 &xkbmajor, 16642 &xkbminor)) 16643 return 0; 16644 16645 ; 16646 return 0; 16647} 16648_ACEOF 16649rm -f "conftest.$ac_objext" 16650if { (eval echo "$as_me:16650: \"$ac_compile\"") >&5 16651 (eval $ac_compile) 2>&5 16652 ac_status=$? 16653 echo "$as_me:16653: \$? = $ac_status" >&5 16654 (exit "$ac_status"); } && 16655 { ac_try='test -s "conftest.$ac_objext"' 16656 { (eval echo "$as_me:16656: \"$ac_try\"") >&5 16657 (eval $ac_try) 2>&5 16658 ac_status=$? 16659 echo "$as_me:16659: \$? = $ac_status" >&5 16660 (exit "$ac_status"); }; }; then 16661 16662cf_cv_xkb_query_extension=yes 16663 16664else 16665 echo "$as_me: failed program was:" >&5 16666cat "conftest.$ac_ext" >&5 16667 16668cf_cv_xkb_query_extension=no 16669 16670fi 16671rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16672 16673fi 16674echo "$as_me:16674: result: $cf_cv_xkb_query_extension" >&5 16675echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 16676 16677if test $cf_cv_xkb_query_extension = yes 16678then 16679 16680for ac_func in XkbQueryExtension 16681do 16682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16683echo "$as_me:16683: checking for $ac_func" >&5 16684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16685if eval "test \"\${$as_ac_var+set}\" = set"; then 16686 echo $ECHO_N "(cached) $ECHO_C" >&6 16687else 16688 cat >"conftest.$ac_ext" <<_ACEOF 16689#line 16689 "configure" 16690#include "confdefs.h" 16691#define $ac_func autoconf_temporary 16692#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16693#undef $ac_func 16694 16695#ifdef __cplusplus 16696extern "C" 16697#endif 16698 16699/* We use char because int might match the return type of a gcc2 16700 builtin and then its argument prototype would still apply. */ 16701char $ac_func (void); 16702 16703int 16704main (void) 16705{ 16706 16707/* The GNU C library defines stubs for functions which it implements 16708 to always fail with ENOSYS. Some functions are actually named 16709 something starting with __ and the normal name is an alias. */ 16710#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16711#error found stub for $ac_func 16712#endif 16713 16714 return $ac_func (); 16715 ; 16716 return 0; 16717} 16718_ACEOF 16719rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16720if { (eval echo "$as_me:16720: \"$ac_link\"") >&5 16721 (eval $ac_link) 2>&5 16722 ac_status=$? 16723 echo "$as_me:16723: \$? = $ac_status" >&5 16724 (exit "$ac_status"); } && 16725 { ac_try='test -s "conftest$ac_exeext"' 16726 { (eval echo "$as_me:16726: \"$ac_try\"") >&5 16727 (eval $ac_try) 2>&5 16728 ac_status=$? 16729 echo "$as_me:16729: \$? = $ac_status" >&5 16730 (exit "$ac_status"); }; }; then 16731 eval "$as_ac_var=yes" 16732else 16733 echo "$as_me: failed program was:" >&5 16734cat "conftest.$ac_ext" >&5 16735eval "$as_ac_var=no" 16736fi 16737rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16738fi 16739echo "$as_me:16739: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16740echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16741if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16742 cat >>confdefs.h <<EOF 16743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16744EOF 16745 16746fi 16747done 16748 16749fi 16750 16751echo "$as_me:16751: checking if we can use XkbKeycodeToKeysym" >&5 16752echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 16753if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 16754 echo $ECHO_N "(cached) $ECHO_C" >&6 16755else 16756 16757cat >"conftest.$ac_ext" <<_ACEOF 16758#line 16758 "configure" 16759#include "confdefs.h" 16760 16761#include <X11/Xlib.h> 16762#include <X11/XKBlib.h> 16763 16764int 16765main (void) 16766{ 16767 16768 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 16769 (void)keysym; 16770 16771 ; 16772 return 0; 16773} 16774_ACEOF 16775rm -f "conftest.$ac_objext" 16776if { (eval echo "$as_me:16776: \"$ac_compile\"") >&5 16777 (eval $ac_compile) 2>&5 16778 ac_status=$? 16779 echo "$as_me:16779: \$? = $ac_status" >&5 16780 (exit "$ac_status"); } && 16781 { ac_try='test -s "conftest.$ac_objext"' 16782 { (eval echo "$as_me:16782: \"$ac_try\"") >&5 16783 (eval $ac_try) 2>&5 16784 ac_status=$? 16785 echo "$as_me:16785: \$? = $ac_status" >&5 16786 (exit "$ac_status"); }; }; then 16787 16788cf_cv_xkb_keycode_to_keysym=yes 16789 16790else 16791 echo "$as_me: failed program was:" >&5 16792cat "conftest.$ac_ext" >&5 16793 16794cf_cv_xkb_keycode_to_keysym=no 16795 16796fi 16797rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16798 16799fi 16800echo "$as_me:16800: result: $cf_cv_xkb_keycode_to_keysym" >&5 16801echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 16802 16803if test $cf_cv_xkb_keycode_to_keysym = yes 16804then 16805 16806for ac_func in XkbKeycodeToKeysym 16807do 16808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16809echo "$as_me:16809: checking for $ac_func" >&5 16810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16811if eval "test \"\${$as_ac_var+set}\" = set"; then 16812 echo $ECHO_N "(cached) $ECHO_C" >&6 16813else 16814 cat >"conftest.$ac_ext" <<_ACEOF 16815#line 16815 "configure" 16816#include "confdefs.h" 16817#define $ac_func autoconf_temporary 16818#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16819#undef $ac_func 16820 16821#ifdef __cplusplus 16822extern "C" 16823#endif 16824 16825/* We use char because int might match the return type of a gcc2 16826 builtin and then its argument prototype would still apply. */ 16827char $ac_func (void); 16828 16829int 16830main (void) 16831{ 16832 16833/* The GNU C library defines stubs for functions which it implements 16834 to always fail with ENOSYS. Some functions are actually named 16835 something starting with __ and the normal name is an alias. */ 16836#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16837#error found stub for $ac_func 16838#endif 16839 16840 return $ac_func (); 16841 ; 16842 return 0; 16843} 16844_ACEOF 16845rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16846if { (eval echo "$as_me:16846: \"$ac_link\"") >&5 16847 (eval $ac_link) 2>&5 16848 ac_status=$? 16849 echo "$as_me:16849: \$? = $ac_status" >&5 16850 (exit "$ac_status"); } && 16851 { ac_try='test -s "conftest$ac_exeext"' 16852 { (eval echo "$as_me:16852: \"$ac_try\"") >&5 16853 (eval $ac_try) 2>&5 16854 ac_status=$? 16855 echo "$as_me:16855: \$? = $ac_status" >&5 16856 (exit "$ac_status"); }; }; then 16857 eval "$as_ac_var=yes" 16858else 16859 echo "$as_me: failed program was:" >&5 16860cat "conftest.$ac_ext" >&5 16861eval "$as_ac_var=no" 16862fi 16863rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16864fi 16865echo "$as_me:16865: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16866echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16867if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16868 cat >>confdefs.h <<EOF 16869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16870EOF 16871 16872fi 16873done 16874 16875fi 16876 16877cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS" 16878cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS" 16879cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS" 16880LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 16881for cf_X_CFLAGS in $X_CFLAGS 16882do 16883 case "x$cf_X_CFLAGS" in 16884 x-[IUD]*) 16885 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 16886 ;; 16887 *) 16888 CFLAGS="$CFLAGS $cf_X_CFLAGS" 16889 ;; 16890 esac 16891done 16892 16893echo "$as_me:16893: checking for XKB Bell extension" >&5 16894echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 16895if test "${cf_cv_xkb_bell_ext+set}" = set; then 16896 echo $ECHO_N "(cached) $ECHO_C" >&6 16897else 16898 16899cat >"conftest.$ac_ext" <<_ACEOF 16900#line 16900 "configure" 16901#include "confdefs.h" 16902 16903#include <X11/Intrinsic.h> 16904#include <X11/XKBlib.h> /* has the prototype */ 16905#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 16906 16907int 16908main (void) 16909{ 16910 16911 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 16912 Atom y = 0; 16913 (void)x; 16914 XkbBell((Display *)0, (Widget)0, 0, y); 16915 16916 ; 16917 return 0; 16918} 16919_ACEOF 16920rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16921if { (eval echo "$as_me:16921: \"$ac_link\"") >&5 16922 (eval $ac_link) 2>&5 16923 ac_status=$? 16924 echo "$as_me:16924: \$? = $ac_status" >&5 16925 (exit "$ac_status"); } && 16926 { ac_try='test -s "conftest$ac_exeext"' 16927 { (eval echo "$as_me:16927: \"$ac_try\"") >&5 16928 (eval $ac_try) 2>&5 16929 ac_status=$? 16930 echo "$as_me:16930: \$? = $ac_status" >&5 16931 (exit "$ac_status"); }; }; then 16932 cf_cv_xkb_bell_ext=yes 16933else 16934 echo "$as_me: failed program was:" >&5 16935cat "conftest.$ac_ext" >&5 16936cf_cv_xkb_bell_ext=no 16937fi 16938rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16939 16940fi 16941echo "$as_me:16941: result: $cf_cv_xkb_bell_ext" >&5 16942echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 16943test "$cf_cv_xkb_bell_ext" = yes && 16944cat >>confdefs.h <<\EOF 16945#define HAVE_XKB_BELL_EXT 1 16946EOF 16947 16948LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT" 16949CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT" 16950CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT" 16951 16952for ac_func in Xutf8LookupString 16953do 16954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16955echo "$as_me:16955: checking for $ac_func" >&5 16956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16957if eval "test \"\${$as_ac_var+set}\" = set"; then 16958 echo $ECHO_N "(cached) $ECHO_C" >&6 16959else 16960 cat >"conftest.$ac_ext" <<_ACEOF 16961#line 16961 "configure" 16962#include "confdefs.h" 16963#define $ac_func autoconf_temporary 16964#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16965#undef $ac_func 16966 16967#ifdef __cplusplus 16968extern "C" 16969#endif 16970 16971/* We use char because int might match the return type of a gcc2 16972 builtin and then its argument prototype would still apply. */ 16973char $ac_func (void); 16974 16975int 16976main (void) 16977{ 16978 16979/* The GNU C library defines stubs for functions which it implements 16980 to always fail with ENOSYS. Some functions are actually named 16981 something starting with __ and the normal name is an alias. */ 16982#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16983#error found stub for $ac_func 16984#endif 16985 16986 return $ac_func (); 16987 ; 16988 return 0; 16989} 16990_ACEOF 16991rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16992if { (eval echo "$as_me:16992: \"$ac_link\"") >&5 16993 (eval $ac_link) 2>&5 16994 ac_status=$? 16995 echo "$as_me:16995: \$? = $ac_status" >&5 16996 (exit "$ac_status"); } && 16997 { ac_try='test -s "conftest$ac_exeext"' 16998 { (eval echo "$as_me:16998: \"$ac_try\"") >&5 16999 (eval $ac_try) 2>&5 17000 ac_status=$? 17001 echo "$as_me:17001: \$? = $ac_status" >&5 17002 (exit "$ac_status"); }; }; then 17003 eval "$as_ac_var=yes" 17004else 17005 echo "$as_me: failed program was:" >&5 17006cat "conftest.$ac_ext" >&5 17007eval "$as_ac_var=no" 17008fi 17009rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17010fi 17011echo "$as_me:17011: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17012echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17013if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17014 cat >>confdefs.h <<EOF 17015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17016EOF 17017 17018else 17019 17020 EXTRAHDRS="$EXTRAHDRS xutf8.h" 17021 EXTRASRCS="$EXTRASRCS xutf8.c" 17022 EXTRAOBJS="$EXTRAOBJS xutf8.o" 17023 17024fi 17025done 17026 17027echo "$as_me:17027: checking if you want narrow prototypes for X libraries" >&5 17028echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 17029 17030case `$ac_config_guess` in 17031(*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) 17032 cf_default_narrowproto=yes 17033 ;; 17034(*) 17035 cf_default_narrowproto=no 17036 ;; 17037esac 17038 17039# Check whether --enable-narrowproto or --disable-narrowproto was given. 17040if test "${enable_narrowproto+set}" = set; then 17041 enableval="$enable_narrowproto" 17042 test "$enableval" != no && enableval=yes 17043 if test "$enableval" != "$cf_default_narrowproto" ; then 17044 enable_narrowproto=$enableval 17045 else 17046 enable_narrowproto=$cf_default_narrowproto 17047 fi 17048else 17049 enableval=$cf_default_narrowproto 17050 enable_narrowproto=$cf_default_narrowproto 17051 17052fi; 17053echo "$as_me:17053: result: $enable_narrowproto" >&5 17054echo "${ECHO_T}$enable_narrowproto" >&6 17055 17056echo "$as_me:17056: checking if we should use imake to help" >&5 17057echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 17058 17059# Check whether --enable-imake or --disable-imake was given. 17060if test "${enable_imake+set}" = set; then 17061 enableval="$enable_imake" 17062 test "$enableval" != no && enableval=yes 17063 if test "$enableval" != "yes" ; then 17064 enable_imake=no 17065 else 17066 enable_imake=yes 17067 fi 17068else 17069 enableval=yes 17070 enable_imake=yes 17071 17072fi; 17073echo "$as_me:17073: result: $enable_imake" >&5 17074echo "${ECHO_T}$enable_imake" >&6 17075 17076if test "$enable_imake" = yes ; then 17077 17078for ac_prog in xmkmf imake 17079do 17080 # Extract the first word of "$ac_prog", so it can be a program name with args. 17081set dummy $ac_prog; ac_word=$2 17082echo "$as_me:17082: checking for $ac_word" >&5 17083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17084if test "${ac_cv_path_IMAKE+set}" = set; then 17085 echo $ECHO_N "(cached) $ECHO_C" >&6 17086else 17087 case $IMAKE in 17088 [\\/]* | ?:[\\/]*) 17089 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 17090 ;; 17091 *) 17092 ac_save_IFS=$IFS; IFS=$ac_path_separator 17093ac_dummy="$PATH" 17094for ac_dir in $ac_dummy; do 17095 IFS=$ac_save_IFS 17096 test -z "$ac_dir" && ac_dir=. 17097 if $as_executable_p "$ac_dir/$ac_word"; then 17098 ac_cv_path_IMAKE="$ac_dir/$ac_word" 17099 echo "$as_me:17099: found $ac_dir/$ac_word" >&5 17100 break 17101fi 17102done 17103 17104 ;; 17105esac 17106fi 17107IMAKE=$ac_cv_path_IMAKE 17108 17109if test -n "$IMAKE"; then 17110 echo "$as_me:17110: result: $IMAKE" >&5 17111echo "${ECHO_T}$IMAKE" >&6 17112else 17113 echo "$as_me:17113: result: no" >&5 17114echo "${ECHO_T}no" >&6 17115fi 17116 17117 test -n "$IMAKE" && break 17118done 17119 17120if test -n "$IMAKE" ; then 17121 17122case $IMAKE in 17123(*/imake) 17124 cf_imake_opts="-DUseInstalled=YES" 17125 ;; 17126(*/util/xmkmf) 17127 # A single parameter tells xmkmf where the config-files are: 17128 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`" 17129 ;; 17130(*) 17131 cf_imake_opts= 17132 ;; 17133esac 17134 17135# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 17136# config directory. 17137if mkdir conftestdir; then 17138 CDPATH=; export CDPATH 17139 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile 17140 cd conftestdir 17141 17142 cat >fix_cflags.sed <<'CF_EOF' 17143s/\\//g 17144s/[ ][ ]*/ /g 17145s/"//g 17146:pack 17147s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 17148t pack 17149s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 17150s/^IMAKE[ ]/IMAKE_CFLAGS="/ 17151s/ / /g 17152s/$/"/ 17153CF_EOF 17154 17155 cat >fix_lflags.sed <<'CF_EOF' 17156s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 17157s/$/"/ 17158CF_EOF 17159 17160 echo >./Imakefile 17161 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile 17162 17163 cat >> ./Imakefile <<'CF_EOF' 17164findstddefs: 17165 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 17166 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 17167CF_EOF 17168 17169 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile) 17170 then 17171 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 17172 17173echo "${as_me:-configure}:17173: testing Using $IMAKE $cf_imake_opts ..." 1>&5 17174 17175 else 17176 # sometimes imake doesn't have the config path compiled in. Find it. 17177 cf_config= 17178 for cf_libpath in $X_LIBS $LIBS ; do 17179 case "$cf_libpath" in 17180 (-L*) 17181 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'` 17182 cf_libpath="$cf_libpath/X11/config" 17183 if test -d "$cf_libpath" ; then 17184 cf_config="$cf_libpath" 17185 break 17186 fi 17187 ;; 17188 esac 17189 done 17190 if test -z "$cf_config" ; then 17191 { echo "$as_me:17191: WARNING: Could not find imake config-directory" >&5 17192echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 17193 else 17194 cf_imake_opts="$cf_imake_opts -I$cf_config" 17195 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5) 17196 then 17197 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 17198 17199echo "${as_me:-configure}:17199: testing Using $IMAKE $cf_config ..." 1>&5 17200 17201 else 17202 { echo "$as_me:17202: WARNING: Cannot run $IMAKE" >&5 17203echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 17204 fi 17205 fi 17206 fi 17207 17208 # GNU make sometimes prints "make[1]: Entering...", which 17209 # would confuse us. 17210 eval "`make findstddefs 2>/dev/null | grep -v make`" 17211 17212 cd .. 17213 rm -rf conftestdir 17214 17215 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 17216 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 17217 # modified it to support site.cf, adding a kludge for the /usr/include 17218 # directory. Try to filter that out, otherwise gcc won't find its 17219 # headers. 17220 if test -n "$GCC" ; then 17221 if test -n "$IMAKE_CFLAGS" ; then 17222 cf_nostdinc="" 17223 cf_std_incl="" 17224 cf_cpp_opts="" 17225 for cf_opt in $IMAKE_CFLAGS 17226 do 17227 case "$cf_opt" in 17228 (-nostdinc) 17229 cf_nostdinc="$cf_opt" 17230 ;; 17231 (-I/usr/include) 17232 cf_std_incl="$cf_opt" 17233 ;; 17234 (*) 17235 cf_cpp_opts="$cf_cpp_opts $cf_opt" 17236 ;; 17237 esac 17238 done 17239 if test -z "$cf_nostdinc" ; then 17240 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 17241 elif test -z "$cf_std_incl" ; then 17242 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 17243 else 17244 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 17245 17246echo "${as_me:-configure}:17246: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 17247 17248 IMAKE_CFLAGS="$cf_cpp_opts" 17249 fi 17250 fi 17251 fi 17252fi 17253 17254# Some imake configurations define PROJECTROOT with an empty value. Remove 17255# the empty definition. 17256case $IMAKE_CFLAGS in 17257(*-DPROJECTROOT=/*) 17258 ;; 17259(*) 17260 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 17261 ;; 17262esac 17263 17264fi 17265 17266test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 17267 17268echo "${as_me:-configure}:17268: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 17269 17270test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 17271 17272echo "${as_me:-configure}:17272: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 17273 17274fi 17275 17276if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 17277 17278cf_fix_cppflags=no 17279cf_new_cflags= 17280cf_new_cppflags= 17281cf_new_extra_cppflags= 17282 17283for cf_add_cflags in $IMAKE_CFLAGS 17284do 17285case "$cf_fix_cppflags" in 17286(no) 17287 case "$cf_add_cflags" in 17288 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17289 case "$cf_add_cflags" in 17290 (-D*) 17291 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17292 17293 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17294 && test -z "${cf_tst_cflags}" \ 17295 && cf_fix_cppflags=yes 17296 17297 if test "$cf_fix_cppflags" = yes ; then 17298 17299 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17300 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17301 17302 continue 17303 elif test "${cf_tst_cflags}" = "\"'" ; then 17304 17305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17307 17308 continue 17309 fi 17310 ;; 17311 esac 17312 case "$CPPFLAGS" in 17313 (*$cf_add_cflags) 17314 ;; 17315 (*) 17316 case "$cf_add_cflags" in 17317 (-D*) 17318 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17319 17320CPPFLAGS=`echo "$CPPFLAGS" | \ 17321 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17322 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17323 17324 ;; 17325 esac 17326 17327 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17328 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17329 17330 ;; 17331 esac 17332 ;; 17333 (*) 17334 17335 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17336 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17337 17338 ;; 17339 esac 17340 ;; 17341(yes) 17342 17343 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17344 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17345 17346 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17347 17348 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17349 && test -z "${cf_tst_cflags}" \ 17350 && cf_fix_cppflags=no 17351 ;; 17352esac 17353done 17354 17355if test -n "$cf_new_cflags" ; then 17356 17357 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17358 CFLAGS="${CFLAGS}$cf_new_cflags" 17359 17360fi 17361 17362if test -n "$cf_new_cppflags" ; then 17363 17364 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17365 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17366 17367fi 17368 17369if test -n "$cf_new_extra_cppflags" ; then 17370 17371 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17372 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17373 17374fi 17375 17376else 17377 IMAKE_CFLAGS= 17378 IMAKE_LOADFLAGS= 17379 test -n "$verbose" && echo " make fallback definitions" 1>&6 17380 17381echo "${as_me:-configure}:17381: testing make fallback definitions ..." 1>&5 17382 17383 # We prefer config.guess' values when we can get them, to avoid 17384 # inconsistent results with uname (AIX for instance). However, 17385 # config.guess is not always consistent either. 17386 case $host_os in 17387 (*[0-9].[0-9]*) 17388 UNAME_RELEASE="$host_os" 17389 ;; 17390 (*) 17391 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 17392 ;; 17393 esac 17394 17395 case .$UNAME_RELEASE in 17396 (*[0-9].[0-9]*) 17397 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 17398 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 17399 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 17400 test -z "$OSMINORVERSION" && OSMINORVERSION=0 17401 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 17402 ;; 17403 esac 17404 17405 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 17406 # fallback/fragments for NeedPrototypes, etc. 17407 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 17408 17409 # If this is not set properly, Xaw's scrollbars will not work 17410 if test "$enable_narrowproto" = yes ; then 17411 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 17412 fi 17413 17414 # Other special definitions: 17415 case $host_os in 17416 (aix*) 17417 # imake on AIX 5.1 defines AIXV3. really. 17418 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 17419 ;; 17420 (irix[56].*) 17421 # these are needed to make SIGWINCH work in xterm 17422 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 17423 ;; 17424 esac 17425 17426 # "modern" systems install X applications in /usr/bin. Other systems may 17427 # use one of the X release-based directories. 17428 case "$CFLAGS $CPPFLAGS $IMAKE_CFLAGS" in 17429 (*-DPROJECTROOT*) 17430 ;; 17431 (*) 17432 for cf_dir in /usr/X11R7 /usr/X11R6 /usr/X11R5 17433 do 17434 if test -d "$cf_dir/bin" 17435 then 17436 IMAKE_CFLAGS="$IMAKE_CFLAGS -DPROJECTROOT=\\\"$cf_dir\\\"" 17437 break 17438 fi 17439 done 17440 ;; 17441 esac 17442 17443cf_fix_cppflags=no 17444cf_new_cflags= 17445cf_new_cppflags= 17446cf_new_extra_cppflags= 17447 17448for cf_add_cflags in $IMAKE_CFLAGS 17449do 17450case "$cf_fix_cppflags" in 17451(no) 17452 case "$cf_add_cflags" in 17453 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17454 case "$cf_add_cflags" in 17455 (-D*) 17456 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17457 17458 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17459 && test -z "${cf_tst_cflags}" \ 17460 && cf_fix_cppflags=yes 17461 17462 if test "$cf_fix_cppflags" = yes ; then 17463 17464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17466 17467 continue 17468 elif test "${cf_tst_cflags}" = "\"'" ; then 17469 17470 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17471 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17472 17473 continue 17474 fi 17475 ;; 17476 esac 17477 case "$CPPFLAGS" in 17478 (*$cf_add_cflags) 17479 ;; 17480 (*) 17481 case "$cf_add_cflags" in 17482 (-D*) 17483 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17484 17485CPPFLAGS=`echo "$CPPFLAGS" | \ 17486 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17487 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17488 17489 ;; 17490 esac 17491 17492 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17493 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17494 17495 ;; 17496 esac 17497 ;; 17498 (*) 17499 17500 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17501 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17502 17503 ;; 17504 esac 17505 ;; 17506(yes) 17507 17508 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17509 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17510 17511 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17512 17513 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17514 && test -z "${cf_tst_cflags}" \ 17515 && cf_fix_cppflags=no 17516 ;; 17517esac 17518done 17519 17520if test -n "$cf_new_cflags" ; then 17521 17522 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17523 CFLAGS="${CFLAGS}$cf_new_cflags" 17524 17525fi 17526 17527if test -n "$cf_new_cppflags" ; then 17528 17529 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17530 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17531 17532fi 17533 17534if test -n "$cf_new_extra_cppflags" ; then 17535 17536 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17537 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17538 17539fi 17540 17541fi 17542 17543# Extract the first word of "groff", so it can be a program name with args. 17544set dummy groff; ac_word=$2 17545echo "$as_me:17545: checking for $ac_word" >&5 17546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17547if test "${ac_cv_path_GROFF_PATH+set}" = set; then 17548 echo $ECHO_N "(cached) $ECHO_C" >&6 17549else 17550 case $GROFF_PATH in 17551 [\\/]* | ?:[\\/]*) 17552 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 17553 ;; 17554 *) 17555 ac_save_IFS=$IFS; IFS=$ac_path_separator 17556ac_dummy="$PATH" 17557for ac_dir in $ac_dummy; do 17558 IFS=$ac_save_IFS 17559 test -z "$ac_dir" && ac_dir=. 17560 if $as_executable_p "$ac_dir/$ac_word"; then 17561 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 17562 echo "$as_me:17562: found $ac_dir/$ac_word" >&5 17563 break 17564fi 17565done 17566 17567 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 17568 ;; 17569esac 17570fi 17571GROFF_PATH=$ac_cv_path_GROFF_PATH 17572 17573if test -n "$GROFF_PATH"; then 17574 echo "$as_me:17574: result: $GROFF_PATH" >&5 17575echo "${ECHO_T}$GROFF_PATH" >&6 17576else 17577 echo "$as_me:17577: result: no" >&5 17578echo "${ECHO_T}no" >&6 17579fi 17580 17581for ac_prog in nroff mandoc 17582do 17583 # Extract the first word of "$ac_prog", so it can be a program name with args. 17584set dummy $ac_prog; ac_word=$2 17585echo "$as_me:17585: checking for $ac_word" >&5 17586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17587if test "${ac_cv_path_NROFF_PATH+set}" = set; then 17588 echo $ECHO_N "(cached) $ECHO_C" >&6 17589else 17590 case $NROFF_PATH in 17591 [\\/]* | ?:[\\/]*) 17592 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 17593 ;; 17594 *) 17595 ac_save_IFS=$IFS; IFS=$ac_path_separator 17596ac_dummy="$PATH" 17597for ac_dir in $ac_dummy; do 17598 IFS=$ac_save_IFS 17599 test -z "$ac_dir" && ac_dir=. 17600 if $as_executable_p "$ac_dir/$ac_word"; then 17601 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 17602 echo "$as_me:17602: found $ac_dir/$ac_word" >&5 17603 break 17604fi 17605done 17606 17607 ;; 17608esac 17609fi 17610NROFF_PATH=$ac_cv_path_NROFF_PATH 17611 17612if test -n "$NROFF_PATH"; then 17613 echo "$as_me:17613: result: $NROFF_PATH" >&5 17614echo "${ECHO_T}$NROFF_PATH" >&6 17615else 17616 echo "$as_me:17616: result: no" >&5 17617echo "${ECHO_T}no" >&6 17618fi 17619 17620 test -n "$NROFF_PATH" && break 17621done 17622test -n "$NROFF_PATH" || NROFF_PATH="no" 17623 17624# Extract the first word of "tbl", so it can be a program name with args. 17625set dummy tbl; ac_word=$2 17626echo "$as_me:17626: checking for $ac_word" >&5 17627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17628if test "${ac_cv_path_TBL_PATH+set}" = set; then 17629 echo $ECHO_N "(cached) $ECHO_C" >&6 17630else 17631 case $TBL_PATH in 17632 [\\/]* | ?:[\\/]*) 17633 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 17634 ;; 17635 *) 17636 ac_save_IFS=$IFS; IFS=$ac_path_separator 17637ac_dummy="$PATH" 17638for ac_dir in $ac_dummy; do 17639 IFS=$ac_save_IFS 17640 test -z "$ac_dir" && ac_dir=. 17641 if $as_executable_p "$ac_dir/$ac_word"; then 17642 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 17643 echo "$as_me:17643: found $ac_dir/$ac_word" >&5 17644 break 17645fi 17646done 17647 17648 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 17649 ;; 17650esac 17651fi 17652TBL_PATH=$ac_cv_path_TBL_PATH 17653 17654if test -n "$TBL_PATH"; then 17655 echo "$as_me:17655: result: $TBL_PATH" >&5 17656echo "${ECHO_T}$TBL_PATH" >&6 17657else 17658 echo "$as_me:17658: result: no" >&5 17659echo "${ECHO_T}no" >&6 17660fi 17661 17662if test "x$GROFF_PATH" = xno 17663then 17664 NROFF_NOTE= 17665 GROFF_NOTE="#" 17666else 17667 NROFF_NOTE="#" 17668 GROFF_NOTE= 17669fi 17670 17671echo "$as_me:17671: checking for fgrep" >&5 17672echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 17673if test "${ac_cv_path_FGREP+set}" = set; then 17674 echo $ECHO_N "(cached) $ECHO_C" >&6 17675else 17676 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 17677 then ac_cv_path_FGREP="$GREP -F" 17678 else 17679 for ac_prog in gfgrep fgrep 17680do 17681 # Extract the first word of "$ac_prog", so it can be a program name with args. 17682set dummy $ac_prog; ac_word=$2 17683echo "$as_me:17683: checking for $ac_word" >&5 17684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17685if test "${ac_cv_path_FGREP+set}" = set; then 17686 echo $ECHO_N "(cached) $ECHO_C" >&6 17687else 17688 case $FGREP in 17689 [\\/]* | ?:[\\/]*) 17690 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 17691 ;; 17692 *) 17693 ac_save_IFS=$IFS; IFS=$ac_path_separator 17694ac_dummy="$PATH" 17695for ac_dir in $ac_dummy; do 17696 IFS=$ac_save_IFS 17697 test -z "$ac_dir" && ac_dir=. 17698 if $as_executable_p "$ac_dir/$ac_word"; then 17699 ac_cv_path_FGREP="$ac_dir/$ac_word" 17700 echo "$as_me:17700: found $ac_dir/$ac_word" >&5 17701 break 17702fi 17703done 17704 17705 ;; 17706esac 17707fi 17708FGREP=$ac_cv_path_FGREP 17709 17710if test -n "$FGREP"; then 17711 echo "$as_me:17711: result: $FGREP" >&5 17712echo "${ECHO_T}$FGREP" >&6 17713else 17714 echo "$as_me:17714: result: no" >&5 17715echo "${ECHO_T}no" >&6 17716fi 17717 17718 test -n "$FGREP" && break 17719done 17720test -n "$FGREP" || FGREP=": " 17721 17722 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:17722: error: cannot find workable fgrep" >&5 17723echo "$as_me: error: cannot find workable fgrep" >&2;} 17724 { (exit 1); exit 1; }; } 17725 fi 17726fi 17727echo "$as_me:17727: result: $ac_cv_path_FGREP" >&5 17728echo "${ECHO_T}$ac_cv_path_FGREP" >&6 17729 FGREP="$ac_cv_path_FGREP" 17730 17731case "x${with_man2html}" in 17732(xno) 17733 cf_man2html=no 17734 ;; 17735(x|xyes) 17736 # Extract the first word of "man2html", so it can be a program name with args. 17737set dummy man2html; ac_word=$2 17738echo "$as_me:17738: checking for $ac_word" >&5 17739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17740if test "${ac_cv_path_cf_man2html+set}" = set; then 17741 echo $ECHO_N "(cached) $ECHO_C" >&6 17742else 17743 case $cf_man2html in 17744 [\\/]* | ?:[\\/]*) 17745 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 17746 ;; 17747 *) 17748 ac_save_IFS=$IFS; IFS=$ac_path_separator 17749ac_dummy="$PATH" 17750for ac_dir in $ac_dummy; do 17751 IFS=$ac_save_IFS 17752 test -z "$ac_dir" && ac_dir=. 17753 if $as_executable_p "$ac_dir/$ac_word"; then 17754 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 17755 echo "$as_me:17755: found $ac_dir/$ac_word" >&5 17756 break 17757fi 17758done 17759 17760 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 17761 ;; 17762esac 17763fi 17764cf_man2html=$ac_cv_path_cf_man2html 17765 17766if test -n "$cf_man2html"; then 17767 echo "$as_me:17767: result: $cf_man2html" >&5 17768echo "${ECHO_T}$cf_man2html" >&6 17769else 17770 echo "$as_me:17770: result: no" >&5 17771echo "${ECHO_T}no" >&6 17772fi 17773 17774 case "x$cf_man2html" in 17775 (x/*) 17776 echo "$as_me:17776: checking for the modified Earl Hood script" >&5 17777echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 17778 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 17779 then 17780 cf_man2html_ok=yes 17781 else 17782 cf_man2html=no 17783 cf_man2html_ok=no 17784 fi 17785 echo "$as_me:17785: result: $cf_man2html_ok" >&5 17786echo "${ECHO_T}$cf_man2html_ok" >&6 17787 ;; 17788 (*) 17789 cf_man2html=no 17790 ;; 17791 esac 17792esac 17793 17794echo "$as_me:17794: checking for program to convert manpage to html" >&5 17795echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 17796 17797# Check whether --with-man2html or --without-man2html was given. 17798if test "${with_man2html+set}" = set; then 17799 withval="$with_man2html" 17800 cf_man2html=$withval 17801else 17802 cf_man2html=$cf_man2html 17803fi; 17804 17805cf_with_groff=no 17806 17807case $cf_man2html in 17808(yes) 17809 echo "$as_me:17809: result: man2html" >&5 17810echo "${ECHO_T}man2html" >&6 17811 # Extract the first word of "man2html", so it can be a program name with args. 17812set dummy man2html; ac_word=$2 17813echo "$as_me:17813: checking for $ac_word" >&5 17814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17815if test "${ac_cv_path_cf_man2html+set}" = set; then 17816 echo $ECHO_N "(cached) $ECHO_C" >&6 17817else 17818 case $cf_man2html in 17819 [\\/]* | ?:[\\/]*) 17820 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 17821 ;; 17822 *) 17823 ac_save_IFS=$IFS; IFS=$ac_path_separator 17824ac_dummy="$PATH" 17825for ac_dir in $ac_dummy; do 17826 IFS=$ac_save_IFS 17827 test -z "$ac_dir" && ac_dir=. 17828 if $as_executable_p "$ac_dir/$ac_word"; then 17829 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 17830 echo "$as_me:17830: found $ac_dir/$ac_word" >&5 17831 break 17832fi 17833done 17834 17835 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 17836 ;; 17837esac 17838fi 17839cf_man2html=$ac_cv_path_cf_man2html 17840 17841if test -n "$cf_man2html"; then 17842 echo "$as_me:17842: result: $cf_man2html" >&5 17843echo "${ECHO_T}$cf_man2html" >&6 17844else 17845 echo "$as_me:17845: result: no" >&5 17846echo "${ECHO_T}no" >&6 17847fi 17848 17849 ;; 17850(no|groff|*/groff*) 17851 cf_with_groff=yes 17852 cf_man2html=$GROFF_PATH 17853 echo "$as_me:17853: result: $cf_man2html" >&5 17854echo "${ECHO_T}$cf_man2html" >&6 17855 ;; 17856(*) 17857 echo "$as_me:17857: result: $cf_man2html" >&5 17858echo "${ECHO_T}$cf_man2html" >&6 17859 ;; 17860esac 17861 17862MAN2HTML_TEMP="man2html.tmp" 17863 cat >$MAN2HTML_TEMP <<CF_EOF 17864#!$SHELL 17865# Temporary script generated by CF_WITH_MAN2HTML 17866# Convert inputs to html, sending result to standard output. 17867# 17868# Parameters: 17869# \${1} = rootname of file to convert 17870# \${2} = suffix of file to convert, e.g., "1" 17871# \${3} = macros to use, e.g., "man" 17872# 17873ROOT=\$1 17874TYPE=\$2 17875MACS=\$3 17876 17877unset LANG 17878unset LC_ALL 17879unset LC_CTYPE 17880unset LANGUAGE 17881GROFF_NO_SGR=stupid 17882export GROFF_NO_SGR 17883 17884CF_EOF 17885 17886NROFF_OPTS= 17887if test "x$cf_with_groff" = xyes 17888then 17889 MAN2HTML_NOTE="$GROFF_NOTE" 17890 MAN2HTML_PATH="$GROFF_PATH" 17891 cat >>$MAN2HTML_TEMP <<CF_EOF 17892$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 17893CF_EOF 17894else 17895 # disable hyphenation if this is groff 17896 if test "x$GROFF_PATH" != xno 17897 then 17898 echo "$as_me:17898: checking if nroff is really groff" >&5 17899echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 17900 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" 17901 test -n "$cf_check_groff" && cf_check_groff=yes 17902 test -n "$cf_check_groff" || cf_check_groff=no 17903 echo "$as_me:17903: result: $cf_check_groff" >&5 17904echo "${ECHO_T}$cf_check_groff" >&6 17905 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" 17906 fi 17907 MAN2HTML_NOTE="" 17908 17909if test "x$prefix" != xNONE; then 17910 cf_path_syntax="$prefix" 17911else 17912 cf_path_syntax="$ac_default_prefix" 17913fi 17914 17915case ".$cf_man2html" in 17916(.\$\(*\)*|.\'*\'*) 17917 ;; 17918(..|./*|.\\*) 17919 ;; 17920(.[a-zA-Z]:[\\/]*) # OS/2 EMX 17921 ;; 17922(.\$\{*prefix\}*|.\$\{*dir\}*) 17923 eval cf_man2html="$cf_man2html" 17924 case ".$cf_man2html" in 17925 (.NONE/*) 17926 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 17927 ;; 17928 esac 17929 ;; 17930(.no|.NONE/*) 17931 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 17932 ;; 17933(*) 17934 { { echo "$as_me:17934: error: expected a pathname, not \"$cf_man2html\"" >&5 17935echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 17936 { (exit 1); exit 1; }; } 17937 ;; 17938esac 17939 17940 MAN2HTML_PATH="$cf_man2html" 17941 echo "$as_me:17941: checking for $cf_man2html top/bottom margins" >&5 17942echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 17943 17944 # for this example, expect 3 lines of content, the remainder is head/foot 17945 cat >conftest.in <<CF_EOF 17946.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 17947.SH SECTION 17948MARKER 17949CF_EOF 17950 17951 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 17952 17953 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 17954 cf_man2html_top=`expr "$cf_man2html_1st" - 2` 17955 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" 17956 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` 17957 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 17958 17959 echo "$as_me:17959: result: $cf_man2html_top_bot" >&5 17960echo "${ECHO_T}$cf_man2html_top_bot" >&6 17961 17962 echo "$as_me:17962: checking for pagesize to use" >&5 17963echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 17964 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 17965 do 17966 cat >>conftest.in <<CF_EOF 17967.nf 179680 179691 179702 179713 179724 179735 179746 179757 179768 179779 17978CF_EOF 17979 done 17980 17981 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 17982 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 17983 test -z "$cf_man2html_page" && cf_man2html_page=99999 17984 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 17985 17986 rm -rf conftest* 17987 echo "$as_me:17987: result: $cf_man2html_page" >&5 17988echo "${ECHO_T}$cf_man2html_page" >&6 17989 17990 cat >>$MAN2HTML_TEMP <<CF_EOF 17991: \${MAN2HTML_PATH=$MAN2HTML_PATH} 17992MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page" 17993case \${TYPE} in 17994(ms) 17995 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 17996 ;; 17997(*) 17998 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 17999 ;; 18000esac 18001CF_EOF 18002fi 18003 18004chmod 700 $MAN2HTML_TEMP 18005 18006# If we have already established that there is a full termcap implementation, 18007# suppress the definitions for terminfo that we make have imported from the 18008# imake-file. 18009if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 18010 case "$IMAKE_CFLAGS" in 18011 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 18012 18013 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 18014 18015echo "${as_me:-configure}:18015: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 18016 18017 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18018 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 18019 18020echo "${as_me:-configure}:18020: testing ...result $IMAKE_CFLAGS ..." 1>&5 18021 18022 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 18023 18024echo "${as_me:-configure}:18024: testing removing terminfo flags from CPPFLAGS ..." 1>&5 18025 18026 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18027 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 18028 18029echo "${as_me:-configure}:18029: testing ...result $CPPFLAGS ..." 1>&5 18030 18031 ;; 18032 esac 18033fi 18034 18035echo "$as_me:18035: checking for default terminal-id" >&5 18036echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 18037 18038# Check whether --with-terminal-id or --without-terminal-id was given. 18039if test "${with_terminal_id+set}" = set; then 18040 withval="$with_terminal_id" 18041 default_termid=$withval 18042else 18043 default_termid=vt420 18044fi; 18045echo "$as_me:18045: result: $default_termid" >&5 18046echo "${ECHO_T}$default_termid" >&6 18047case $default_termid in 18048(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 18049 ;; 18050esac 18051 18052cat >>confdefs.h <<EOF 18053#define DFT_DECID "$default_termid" 18054EOF 18055 18056echo "$as_me:18056: checking for default terminal-type" >&5 18057echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 18058 18059# Check whether --with-terminal-type or --without-terminal-type was given. 18060if test "${with_terminal_type+set}" = set; then 18061 withval="$with_terminal_type" 18062 default_TERM=$withval 18063else 18064 default_TERM=xterm 18065fi; 18066echo "$as_me:18066: result: $default_TERM" >&5 18067echo "${ECHO_T}$default_TERM" >&6 18068 18069cat >>confdefs.h <<EOF 18070#define DFT_TERMTYPE "$default_TERM" 18071EOF 18072 18073############################################################################### 18074echo "$as_me:18074: checking if backarrow-key should be BS" >&5 18075echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 18076 18077# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 18078if test "${enable_backarrow_key+set}" = set; then 18079 enableval="$enable_backarrow_key" 18080 test "$enableval" != no && enableval=yes 18081 if test "$enableval" != "yes" ; then 18082 backarrow_is_bs=$enableval 18083 else 18084 backarrow_is_bs=yes 18085 fi 18086else 18087 enableval=yes 18088 backarrow_is_bs=yes 18089 18090fi; 18091 18092echo "$as_me:18092: result: $backarrow_is_bs" >&5 18093echo "${ECHO_T}$backarrow_is_bs" >&6 18094case $backarrow_is_bs in 18095(yes) 18096 backarrow_is_bs=true 18097 ;; 18098(no) 18099 backarrow_is_bs=false 18100 ;; 18101esac 18102cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 18103 18104cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18105 18106cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 18107backarrow_is_bs=${cf_xbool1}${cf_xbool2} 18108 18109cat >>confdefs.h <<EOF 18110#define DEF_BACKARO_BS $backarrow_is_bs 18111EOF 18112 18113echo "$as_me:18113: checking if backarrow-key should be treated as erase" >&5 18114echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 18115 18116# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 18117if test "${enable_backarrow_is_erase+set}" = set; then 18118 enableval="$enable_backarrow_is_erase" 18119 test "$enableval" != yes && enableval=no 18120 if test "$enableval" != "no" ; then 18121 backarrow_is_erase=$enableval 18122 else 18123 backarrow_is_erase=no 18124 fi 18125else 18126 enableval=no 18127 backarrow_is_erase=no 18128 18129fi; 18130 18131echo "$as_me:18131: result: $backarrow_is_erase" >&5 18132echo "${ECHO_T}$backarrow_is_erase" >&6 18133case $backarrow_is_erase in 18134(yes) 18135 backarrow_is_erase=true 18136 ;; 18137(no) 18138 backarrow_is_erase=false 18139 ;; 18140esac 18141cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 18142 18143cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18144 18145cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 18146backarrow_is_erase=${cf_xbool1}${cf_xbool2} 18147 18148cat >>confdefs.h <<EOF 18149#define DEF_BACKARO_ERASE $backarrow_is_erase 18150EOF 18151 18152echo "$as_me:18152: checking for default backspace/DEL setting" >&5 18153echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 18154 18155# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 18156if test "${enable_delete_is_del+set}" = set; then 18157 enableval="$enable_delete_is_del" 18158 delete_is_del=$enableval 18159else 18160 delete_is_del=maybe 18161fi; 18162 18163echo "$as_me:18163: result: $delete_is_del" >&5 18164echo "${ECHO_T}$delete_is_del" >&6 18165case $delete_is_del in 18166(yes) 18167 delete_is_del=true 18168 ;; 18169(no) 18170 delete_is_del=false 18171 ;; 18172esac 18173cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 18174 18175cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18176 18177cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 18178delete_is_del=${cf_xbool1}${cf_xbool2} 18179 18180cat >>confdefs.h <<EOF 18181#define DEFDELETE_DEL $delete_is_del 18182EOF 18183 18184echo "$as_me:18184: checking for default pty initial erase setting" >&5 18185echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6 18186 18187# Check whether --enable-pty-erase or --disable-pty-erase was given. 18188if test "${enable_pty_erase+set}" = set; then 18189 enableval="$enable_pty_erase" 18190 initial_erase=$enableval 18191else 18192 initial_erase=False 18193fi; 18194 18195echo "$as_me:18195: result: $initial_erase" >&5 18196echo "${ECHO_T}$initial_erase" >&6 18197case $initial_erase in 18198(yes) 18199 initial_erase=true 18200 ;; 18201(no) 18202 initial_erase=false 18203 ;; 18204esac 18205cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'` 18206 18207cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18208 18209cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'` 18210initial_erase=${cf_xbool1}${cf_xbool2} 18211 18212cat >>confdefs.h <<EOF 18213#define DEF_INITIAL_ERASE $initial_erase 18214EOF 18215 18216echo "$as_me:18216: checking if alt should send ESC" >&5 18217echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 18218 18219# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 18220if test "${enable_alt_sends_esc+set}" = set; then 18221 enableval="$enable_alt_sends_esc" 18222 test "$enableval" != yes && enableval=no 18223 if test "$enableval" != "no" ; then 18224 alt_sends_esc=$enableval 18225 else 18226 alt_sends_esc=no 18227 fi 18228else 18229 enableval=no 18230 alt_sends_esc=no 18231 18232fi; 18233 18234echo "$as_me:18234: result: $alt_sends_esc" >&5 18235echo "${ECHO_T}$alt_sends_esc" >&6 18236case $alt_sends_esc in 18237(yes) 18238 alt_sends_esc=true 18239 ;; 18240(no) 18241 alt_sends_esc=false 18242 ;; 18243esac 18244cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18245 18246cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18247 18248cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 18249alt_sends_esc=${cf_xbool1}${cf_xbool2} 18250 18251cat >>confdefs.h <<EOF 18252#define DEF_ALT_SENDS_ESC $alt_sends_esc 18253EOF 18254 18255echo "$as_me:18255: checking if meta should send ESC" >&5 18256echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 18257 18258# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 18259if test "${enable_meta_sends_esc+set}" = set; then 18260 enableval="$enable_meta_sends_esc" 18261 test "$enableval" != yes && enableval=no 18262 if test "$enableval" != "no" ; then 18263 meta_sends_esc=$enableval 18264 else 18265 meta_sends_esc=no 18266 fi 18267else 18268 enableval=no 18269 meta_sends_esc=no 18270 18271fi; 18272 18273echo "$as_me:18273: result: $meta_sends_esc" >&5 18274echo "${ECHO_T}$meta_sends_esc" >&6 18275case $meta_sends_esc in 18276(yes) 18277 meta_sends_esc=true 18278 ;; 18279(no) 18280 meta_sends_esc=false 18281 ;; 18282esac 18283cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18284 18285cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18286 18287cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 18288meta_sends_esc=${cf_xbool1}${cf_xbool2} 18289 18290cat >>confdefs.h <<EOF 18291#define DEF_META_SENDS_ESC $meta_sends_esc 18292EOF 18293 18294############################################################################### 18295# Extract the first word of "tic", so it can be a program name with args. 18296set dummy tic; ac_word=$2 18297echo "$as_me:18297: checking for $ac_word" >&5 18298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18299if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 18300 echo $ECHO_N "(cached) $ECHO_C" >&6 18301else 18302 if test -n "$cf_tic_prog"; then 18303 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 18304else 18305 ac_save_IFS=$IFS; IFS=$ac_path_separator 18306ac_dummy="$PATH" 18307for ac_dir in $ac_dummy; do 18308 IFS=$ac_save_IFS 18309 test -z "$ac_dir" && ac_dir=. 18310 $as_executable_p "$ac_dir/$ac_word" || continue 18311ac_cv_prog_cf_tic_prog="yes" 18312echo "$as_me:18312: found $ac_dir/$ac_word" >&5 18313break 18314done 18315 18316 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 18317fi 18318fi 18319cf_tic_prog=$ac_cv_prog_cf_tic_prog 18320if test -n "$cf_tic_prog"; then 18321 echo "$as_me:18321: result: $cf_tic_prog" >&5 18322echo "${ECHO_T}$cf_tic_prog" >&6 18323else 18324 echo "$as_me:18324: result: no" >&5 18325echo "${ECHO_T}no" >&6 18326fi 18327 18328if test "$cf_tic_prog" = yes ; then 18329 if test -n "$TERMINFO" 18330 then 18331 case "$TERMINFO" in 18332 (/*) 18333 test -d "$TERMINFO" || unset TERMINFO 18334 ;; 18335 (*) 18336 unset TERMINFO 18337 ;; 18338 esac 18339 fi 18340 echo "$as_me:18340: checking for private terminfo-directory" >&5 18341echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 18342 18343# Check whether --with-own-terminfo or --without-own-terminfo was given. 18344if test "${with_own_terminfo+set}" = set; then 18345 withval="$with_own_terminfo" 18346 TERMINFO_DIR=$withval 18347else 18348 TERMINFO_DIR=${TERMINFO-none} 18349fi; 18350 echo "$as_me:18350: result: $TERMINFO_DIR" >&5 18351echo "${ECHO_T}$TERMINFO_DIR" >&6 18352 if test "$TERMINFO_DIR" = yes ; then 18353 { echo "$as_me:18353: WARNING: no value given" >&5 18354echo "$as_me: WARNING: no value given" >&2;} 18355 elif test "$TERMINFO_DIR" != none ; then 18356 if test -d "$TERMINFO_DIR" ; then 18357 18358cat >>confdefs.h <<EOF 18359#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 18360EOF 18361 18362 echo "$as_me:18362: checking if \$TERMINFO should also be set" >&5 18363echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6 18364 18365# Check whether --enable-env-terminfo or --disable-env-terminfo was given. 18366if test "${enable_env_terminfo+set}" = set; then 18367 enableval="$enable_env_terminfo" 18368 cf_env_terminfo=yes 18369else 18370 cf_env_terminfo=no 18371fi; 18372 echo "$as_me:18372: result: $cf_env_terminfo" >&5 18373echo "${ECHO_T}$cf_env_terminfo" >&6 18374 test $cf_env_terminfo = yes && 18375 18376cat >>confdefs.h <<\EOF 18377#define OWN_TERMINFO_ENV 1 18378EOF 18379 18380 else 18381 { echo "$as_me:18381: WARNING: not a directory" >&5 18382echo "$as_me: WARNING: not a directory" >&2;} 18383 fi 18384 elif test "$prefix" != NONE ; then 18385 TERMINFO_DIR='${prefix}/lib/terminfo' 18386 elif test -d /usr/lib/terminfo ; then 18387 TERMINFO_DIR=/usr/lib/terminfo 18388 else 18389 TERMINFO_DIR= 18390 fi 18391 SET_TERMINFO= 18392 if test -n "$TERMINFO_DIR" ; then 18393 TERMINFO_DIR='${DESTDIR}'$TERMINFO_DIR 18394 SET_TERMINFO='TERMINFO=${TERMINFO_DIR}' 18395 fi 18396 no_ticprog= 18397else 18398 no_ticprog="#" 18399 TERMINFO_DIR= 18400 SET_TERMINFO= 18401fi 18402 18403############################################################################### 18404 18405echo "$as_me:18405: checking if you want active-icons" >&5 18406echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 18407 18408# Check whether --enable-active-icon or --disable-active-icon was given. 18409if test "${enable_active_icon+set}" = set; then 18410 enableval="$enable_active_icon" 18411 test "$enableval" != no && enableval=yes 18412 if test "$enableval" != "yes" ; then 18413 enable_active_icon=no 18414 else 18415 enable_active_icon=yes 18416 fi 18417else 18418 enableval=yes 18419 enable_active_icon=yes 18420 18421fi; 18422echo "$as_me:18422: result: $enable_active_icon" >&5 18423echo "${ECHO_T}$enable_active_icon" >&6 18424if test "$enable_active_icon" = no ; then 18425 18426cat >>confdefs.h <<\EOF 18427#define NO_ACTIVE_ICON 1 18428EOF 18429 18430fi 18431 18432echo "$as_me:18432: checking if you want ANSI color" >&5 18433echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 18434 18435# Check whether --enable-ansi-color or --disable-ansi-color was given. 18436if test "${enable_ansi_color+set}" = set; then 18437 enableval="$enable_ansi_color" 18438 test "$enableval" != no && enableval=yes 18439 if test "$enableval" != "yes" ; then 18440 enable_ansi_color=no 18441 else 18442 enable_ansi_color=yes 18443 fi 18444else 18445 enableval=yes 18446 enable_ansi_color=yes 18447 18448fi; 18449echo "$as_me:18449: result: $enable_ansi_color" >&5 18450echo "${ECHO_T}$enable_ansi_color" >&6 18451test "$enable_ansi_color" = no && 18452cat >>confdefs.h <<\EOF 18453#define OPT_ISO_COLORS 0 18454EOF 18455 18456if test "$enable_ansi_color" = yes ; then 18457 18458 echo "$as_me:18458: checking if you want 16 colors like aixterm" >&5 18459echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 18460 18461# Check whether --enable-16-color or --disable-16-color was given. 18462if test "${enable_16_color+set}" = set; then 18463 enableval="$enable_16_color" 18464 test "$enableval" != no && enableval=yes 18465 if test "$enableval" != "yes" ; then 18466 enable_16_color=no 18467 else 18468 enable_16_color=yes 18469 fi 18470else 18471 enableval=yes 18472 enable_16_color=yes 18473 18474fi; 18475 echo "$as_me:18475: result: $enable_16_color" >&5 18476echo "${ECHO_T}$enable_16_color" >&6 18477 test "$enable_16_color" = no && 18478cat >>confdefs.h <<\EOF 18479#define OPT_AIX_COLORS 0 18480EOF 18481 18482 echo "$as_me:18482: checking if you want 256 colors" >&5 18483echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 18484 18485# Check whether --enable-256-color or --disable-256-color was given. 18486if test "${enable_256_color+set}" = set; then 18487 enableval="$enable_256_color" 18488 test "$enableval" != no && enableval=yes 18489 if test "$enableval" != "yes" ; then 18490 enable_256_color=no 18491 else 18492 enable_256_color=yes 18493 fi 18494else 18495 enableval=yes 18496 enable_256_color=yes 18497 18498fi; 18499 echo "$as_me:18499: result: $enable_256_color" >&5 18500echo "${ECHO_T}$enable_256_color" >&6 18501 18502 if test "$enable_256_color" = yes ; then 18503 18504 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 18505 EXTRAHDRS="$EXTRAHDRS 256colres.h" 18506 18507cat >>confdefs.h <<\EOF 18508#define OPT_256_COLORS 1 18509EOF 18510 18511 echo "$as_me:18511: checking if you want direct-color support" >&5 18512echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6 18513 18514# Check whether --enable-direct-color or --disable-direct-color was given. 18515if test "${enable_direct_color+set}" = set; then 18516 enableval="$enable_direct_color" 18517 test "$enableval" != no && enableval=yes 18518 if test "$enableval" != "yes" ; then 18519 enable_direct_color=no 18520 else 18521 enable_direct_color=yes 18522 fi 18523else 18524 enableval=yes 18525 enable_direct_color=yes 18526 18527fi; 18528 echo "$as_me:18528: result: $enable_direct_color" >&5 18529echo "${ECHO_T}$enable_direct_color" >&6 18530 if test "$enable_direct_color" = yes ; then 18531 18532cat >>confdefs.h <<\EOF 18533#define OPT_DIRECT_COLOR 1 18534EOF 18535 18536 fi 18537 18538 else 18539 18540 echo "$as_me:18540: checking if you want 88 colors" >&5 18541echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 18542 18543# Check whether --enable-88-color or --disable-88-color was given. 18544if test "${enable_88_color+set}" = set; then 18545 enableval="$enable_88_color" 18546 test "$enableval" != no && enableval=yes 18547 if test "$enableval" != "yes" ; then 18548 enable_88_color=no 18549 else 18550 enable_88_color=yes 18551 fi 18552else 18553 enableval=yes 18554 enable_88_color=yes 18555 18556fi; 18557 echo "$as_me:18557: result: $enable_88_color" >&5 18558echo "${ECHO_T}$enable_88_color" >&6 18559 if test "$enable_88_color" = yes ; then 18560 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 18561 EXTRAHDRS="$EXTRAHDRS 88colres.h" 18562 18563cat >>confdefs.h <<\EOF 18564#define OPT_88_COLORS 1 18565EOF 18566 18567 fi 18568 18569 fi 18570 18571fi 18572 18573echo "$as_me:18573: checking if you want blinking cursor" >&5 18574echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 18575 18576# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 18577if test "${enable_blink_cursor+set}" = set; then 18578 enableval="$enable_blink_cursor" 18579 test "$enableval" != no && enableval=yes 18580 if test "$enableval" != "yes" ; then 18581 enable_blink_curs=no 18582 else 18583 enable_blink_curs=yes 18584 fi 18585else 18586 enableval=yes 18587 enable_blink_curs=yes 18588 18589fi; 18590echo "$as_me:18590: result: $enable_blink_curs" >&5 18591echo "${ECHO_T}$enable_blink_curs" >&6 18592test "$enable_blink_curs" = no && 18593cat >>confdefs.h <<\EOF 18594#define OPT_BLINK_CURS 0 18595EOF 18596 18597echo "$as_me:18597: checking if you want to ignore Linux's broken palette-strings" >&5 18598echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 18599 18600case $host_os in 18601(linux*) 18602 assume_broken_osc=yes ;; 18603(*) 18604 assume_broken_osc=no ;; 18605esac 18606 18607# Check whether --enable-broken-osc or --disable-broken-osc was given. 18608if test "${enable_broken_osc+set}" = set; then 18609 enableval="$enable_broken_osc" 18610 test "$enableval" != no && enableval=yes 18611 if test "$enableval" != "$assume_broken_osc" ; then 18612 enable_broken_osc=$enableval 18613 else 18614 enable_broken_osc=$enableval 18615 fi 18616else 18617 enableval=$assume_broken_osc 18618 enable_broken_osc=$enableval 18619 18620fi; 18621echo "$as_me:18621: result: $enable_broken_osc" >&5 18622echo "${ECHO_T}$enable_broken_osc" >&6 18623if test "$enable_broken_osc" = yes ; then 18624 18625cat >>confdefs.h <<\EOF 18626#define OPT_BROKEN_OSC 1 18627EOF 18628 18629else 18630 18631cat >>confdefs.h <<\EOF 18632#define OPT_BROKEN_OSC 0 18633EOF 18634 18635fi 18636 18637echo "$as_me:18637: checking if you want to allow broken string-terminators" >&5 18638echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 18639 18640# Check whether --enable-broken-st or --disable-broken-st was given. 18641if test "${enable_broken_st+set}" = set; then 18642 enableval="$enable_broken_st" 18643 test "$enableval" != yes && enableval=no 18644 if test "$enableval" != "no" ; then 18645 enable_broken_st=no 18646 else 18647 enable_broken_st=yes 18648 fi 18649else 18650 enableval=no 18651 enable_broken_st=yes 18652 18653fi; 18654echo "$as_me:18654: result: $enable_broken_st" >&5 18655echo "${ECHO_T}$enable_broken_st" >&6 18656test "$enable_broken_st" = no && 18657cat >>confdefs.h <<\EOF 18658#define OPT_BROKEN_ST 0 18659EOF 18660 18661echo "$as_me:18661: checking if you want to compile-in icon data" >&5 18662echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6 18663 18664# Check whether --enable-builtin-xpms or --disable-builtin-xpms was given. 18665if test "${enable_builtin_xpms+set}" = set; then 18666 enableval="$enable_builtin_xpms" 18667 test "$enableval" != yes && enableval=no 18668 if test "$enableval" != "no" ; then 18669 enable_builtin_xpms=yes 18670 else 18671 enable_builtin_xpms=no 18672 fi 18673else 18674 enableval=no 18675 enable_builtin_xpms=no 18676 18677fi; 18678echo "$as_me:18678: result: $enable_builtin_xpms" >&5 18679echo "${ECHO_T}$enable_builtin_xpms" >&6 18680test "$enable_builtin_xpms" = yes && 18681cat >>confdefs.h <<\EOF 18682#define OPT_BUILTIN_XPMS 1 18683EOF 18684 18685echo "$as_me:18685: checking if you want printable 128-159" >&5 18686echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 18687 18688# Check whether --enable-c1-print or --disable-c1-print was given. 18689if test "${enable_c1_print+set}" = set; then 18690 enableval="$enable_c1_print" 18691 test "$enableval" != no && enableval=yes 18692 if test "$enableval" != "yes" ; then 18693 enable_c1_print=no 18694 else 18695 enable_c1_print=yes 18696 fi 18697else 18698 enableval=yes 18699 enable_c1_print=yes 18700 18701fi; 18702echo "$as_me:18702: result: $enable_c1_print" >&5 18703echo "${ECHO_T}$enable_c1_print" >&6 18704test "$enable_c1_print" = no && 18705cat >>confdefs.h <<\EOF 18706#define OPT_C1_PRINT 0 18707EOF 18708 18709if test "$enable_ansi_color" = yes ; then 18710 18711 echo "$as_me:18711: checking if you want bold colors mapped like IBM PC" >&5 18712echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 18713 18714# Check whether --enable-bold-color or --disable-bold-color was given. 18715if test "${enable_bold_color+set}" = set; then 18716 enableval="$enable_bold_color" 18717 test "$enableval" != no && enableval=yes 18718 if test "$enableval" != "yes" ; then 18719 enable_pc_color=no 18720 else 18721 enable_pc_color=yes 18722 fi 18723else 18724 enableval=yes 18725 enable_pc_color=yes 18726 18727fi; 18728 echo "$as_me:18728: result: $enable_pc_color" >&5 18729echo "${ECHO_T}$enable_pc_color" >&6 18730 test "$enable_pc_color" = no && 18731cat >>confdefs.h <<\EOF 18732#define OPT_PC_COLORS 0 18733EOF 18734 18735 echo "$as_me:18735: checking if you want separate color-classes" >&5 18736echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 18737 18738# Check whether --enable-color-class or --disable-color-class was given. 18739if test "${enable_color_class+set}" = set; then 18740 enableval="$enable_color_class" 18741 test "$enableval" != no && enableval=yes 18742 if test "$enableval" != "yes" ; then 18743 enable_color_class=no 18744 else 18745 enable_color_class=yes 18746 fi 18747else 18748 enableval=yes 18749 enable_color_class=yes 18750 18751fi; 18752 echo "$as_me:18752: result: $enable_color_class" >&5 18753echo "${ECHO_T}$enable_color_class" >&6 18754 test "$enable_color_class" = no && 18755cat >>confdefs.h <<\EOF 18756#define OPT_COLOR_CLASS 0 18757EOF 18758 18759 echo "$as_me:18759: checking if you want color-mode enabled by default" >&5 18760echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 18761 18762# Check whether --enable-color-mode or --disable-color-mode was given. 18763if test "${enable_color_mode+set}" = set; then 18764 enableval="$enable_color_mode" 18765 test "$enableval" != no && enableval=yes 18766 if test "$enableval" != "yes" ; then 18767 default_colormode=no 18768 else 18769 default_colormode=yes 18770 fi 18771else 18772 enableval=yes 18773 default_colormode=yes 18774 18775fi; 18776 echo "$as_me:18776: result: $default_colormode" >&5 18777echo "${ECHO_T}$default_colormode" >&6 18778 test "$default_colormode" = no && 18779cat >>confdefs.h <<\EOF 18780#define DFT_COLORMODE 0 18781EOF 18782 18783fi 18784 18785echo "$as_me:18785: checking if you want support for color highlighting" >&5 18786echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 18787 18788# Check whether --enable-highlighting or --disable-highlighting was given. 18789if test "${enable_highlighting+set}" = set; then 18790 enableval="$enable_highlighting" 18791 test "$enableval" != no && enableval=yes 18792 if test "$enableval" != "yes" ; then 18793 default_highlight=no 18794 else 18795 default_highlight=yes 18796 fi 18797else 18798 enableval=yes 18799 default_highlight=yes 18800 18801fi; 18802echo "$as_me:18802: result: $default_highlight" >&5 18803echo "${ECHO_T}$default_highlight" >&6 18804test "$default_highlight" = no && 18805cat >>confdefs.h <<\EOF 18806#define OPT_HIGHLIGHT_COLOR 0 18807EOF 18808 18809echo "$as_me:18809: checking if you want support for doublesize characters" >&5 18810echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 18811 18812# Check whether --enable-doublechars or --disable-doublechars was given. 18813if test "${enable_doublechars+set}" = set; then 18814 enableval="$enable_doublechars" 18815 test "$enableval" != no && enableval=yes 18816 if test "$enableval" != "yes" ; then 18817 enable_doublechars=no 18818 else 18819 enable_doublechars=yes 18820 fi 18821else 18822 enableval=yes 18823 enable_doublechars=yes 18824 18825fi; 18826echo "$as_me:18826: result: $enable_doublechars" >&5 18827echo "${ECHO_T}$enable_doublechars" >&6 18828test "$enable_doublechars" = no && 18829cat >>confdefs.h <<\EOF 18830#define OPT_DEC_CHRSET 0 18831EOF 18832 18833echo "$as_me:18833: checking if you want fallback-support for box characters" >&5 18834echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 18835 18836# Check whether --enable-boxchars or --disable-boxchars was given. 18837if test "${enable_boxchars+set}" = set; then 18838 enableval="$enable_boxchars" 18839 test "$enableval" != no && enableval=yes 18840 if test "$enableval" != "yes" ; then 18841 enable_boxchars=no 18842 else 18843 enable_boxchars=yes 18844 fi 18845else 18846 enableval=yes 18847 enable_boxchars=yes 18848 18849fi; 18850echo "$as_me:18850: result: $enable_boxchars" >&5 18851echo "${ECHO_T}$enable_boxchars" >&6 18852test "$enable_boxchars" = no && 18853cat >>confdefs.h <<\EOF 18854#define OPT_BOX_CHARS 0 18855EOF 18856 18857echo "$as_me:18857: checking if you want to allow spawning commands to process selections" >&5 18858echo $ECHO_N "checking if you want to allow spawning commands to process selections... $ECHO_C" >&6 18859 18860# Check whether --enable-exec-selection or --disable-exec-selection was given. 18861if test "${enable_exec_selection+set}" = set; then 18862 enableval="$enable_exec_selection" 18863 test "$enableval" != no && enableval=yes 18864 if test "$enableval" != "yes" ; then 18865 enable_exec_selection=no 18866 else 18867 enable_exec_selection=yes 18868 fi 18869else 18870 enableval=yes 18871 enable_exec_selection=yes 18872 18873fi; 18874echo "$as_me:18874: result: $enable_exec_selection" >&5 18875echo "${ECHO_T}$enable_exec_selection" >&6 18876if test "$enable_exec_selection" = no ; then 18877 18878cat >>confdefs.h <<\EOF 18879#define OPT_EXEC_SELECTION 0 18880EOF 18881 18882fi 18883 18884echo "$as_me:18884: checking if you want to allow spawning new xterms" >&5 18885echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 18886 18887# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 18888if test "${enable_exec_xterm+set}" = set; then 18889 enableval="$enable_exec_xterm" 18890 test "$enableval" != yes && enableval=no 18891 if test "$enableval" != "no" ; then 18892 enable_exec_xterm=yes 18893 else 18894 enable_exec_xterm=no 18895 fi 18896else 18897 enableval=no 18898 enable_exec_xterm=no 18899 18900fi; 18901echo "$as_me:18901: result: $enable_exec_xterm" >&5 18902echo "${ECHO_T}$enable_exec_xterm" >&6 18903if test "$enable_exec_xterm" = yes ; then 18904 18905echo "$as_me:18905: checking for proc tree with cwd-support" >&5 18906echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 18907if test "${cf_cv_procfs_cwd+set}" = set; then 18908 echo $ECHO_N "(cached) $ECHO_C" >&6 18909else 18910 18911cf_cv_procfs_cwd=no 18912for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 18913do 18914 if test -d "$cf_path" && \ 18915 test -d "$cf_path"/$$ && \ 18916 { test -d "$cf_path"/$$/cwd || \ 18917 test -L "$cf_path"/$$/cwd; }; then 18918 cf_cv_procfs_cwd="$cf_path" 18919 break 18920 fi 18921done 18922 18923fi 18924echo "$as_me:18924: result: $cf_cv_procfs_cwd" >&5 18925echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 18926 18927 if test "$cf_cv_procfs_cwd" = no ; then 18928 { echo "$as_me:18928: WARNING: no suitable proc filesystem found" >&5 18929echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 18930 else 18931 18932cat >>confdefs.h <<EOF 18933#define PROCFS_ROOT "$cf_cv_procfs_cwd" 18934EOF 18935 18936cat >>confdefs.h <<\EOF 18937#define OPT_EXEC_XTERM 1 18938EOF 18939 18940 fi 18941fi 18942 18943if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 18944 test -n "$verbose" && echo " found package Xext" 1>&6 18945 18946echo "${as_me:-configure}:18946: testing found package Xext ..." 1>&5 18947 18948 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 18949 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 18950 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 18951 18952echo "${as_me:-configure}:18952: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 18953 18954 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 18955 18956echo "${as_me:-configure}:18956: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 18957 18958cf_fix_cppflags=no 18959cf_new_cflags= 18960cf_new_cppflags= 18961cf_new_extra_cppflags= 18962 18963for cf_add_cflags in $cf_pkgconfig_incs 18964do 18965case "$cf_fix_cppflags" in 18966(no) 18967 case "$cf_add_cflags" in 18968 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18969 case "$cf_add_cflags" in 18970 (-D*) 18971 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18972 18973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18974 && test -z "${cf_tst_cflags}" \ 18975 && cf_fix_cppflags=yes 18976 18977 if test "$cf_fix_cppflags" = yes ; then 18978 18979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18981 18982 continue 18983 elif test "${cf_tst_cflags}" = "\"'" ; then 18984 18985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18987 18988 continue 18989 fi 18990 ;; 18991 esac 18992 case "$CPPFLAGS" in 18993 (*$cf_add_cflags) 18994 ;; 18995 (*) 18996 case "$cf_add_cflags" in 18997 (-D*) 18998 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18999 19000CPPFLAGS=`echo "$CPPFLAGS" | \ 19001 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19002 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19003 19004 ;; 19005 esac 19006 19007 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19008 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19009 19010 ;; 19011 esac 19012 ;; 19013 (*) 19014 19015 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19016 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19017 19018 ;; 19019 esac 19020 ;; 19021(yes) 19022 19023 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19024 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19025 19026 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19027 19028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19029 && test -z "${cf_tst_cflags}" \ 19030 && cf_fix_cppflags=no 19031 ;; 19032esac 19033done 19034 19035if test -n "$cf_new_cflags" ; then 19036 19037 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19038 CFLAGS="${CFLAGS}$cf_new_cflags" 19039 19040fi 19041 19042if test -n "$cf_new_cppflags" ; then 19043 19044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19045 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19046 19047fi 19048 19049if test -n "$cf_new_extra_cppflags" ; then 19050 19051 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19052 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19053 19054fi 19055 19056cf_add_libs="$LIBS" 19057# reverse order 19058cf_add_0lib= 19059for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19060# filter duplicates 19061for cf_add_1lib in $cf_add_0lib; do 19062 for cf_add_2lib in $cf_add_libs; do 19063 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19064 cf_add_1lib= 19065 break 19066 fi 19067 done 19068 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19069done 19070LIBS="$cf_add_libs" 19071 19072 : 19073else 19074 cf_pkgconfig_incs= 19075 cf_pkgconfig_libs= 19076 19077 echo "$as_me:19077: checking for XextCreateExtension in -lXext" >&5 19078echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 19079if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 19080 echo $ECHO_N "(cached) $ECHO_C" >&6 19081else 19082 ac_check_lib_save_LIBS=$LIBS 19083LIBS="-lXext $LIBS" 19084cat >"conftest.$ac_ext" <<_ACEOF 19085#line 19085 "configure" 19086#include "confdefs.h" 19087 19088/* Override any gcc2 internal prototype to avoid an error. */ 19089#ifdef __cplusplus 19090extern "C" 19091#endif 19092/* We use char because int might match the return type of a gcc2 19093 builtin and then its argument prototype would still apply. */ 19094char XextCreateExtension (); 19095int 19096main (void) 19097{ 19098XextCreateExtension (); 19099 ; 19100 return 0; 19101} 19102_ACEOF 19103rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19104if { (eval echo "$as_me:19104: \"$ac_link\"") >&5 19105 (eval $ac_link) 2>&5 19106 ac_status=$? 19107 echo "$as_me:19107: \$? = $ac_status" >&5 19108 (exit "$ac_status"); } && 19109 { ac_try='test -s "conftest$ac_exeext"' 19110 { (eval echo "$as_me:19110: \"$ac_try\"") >&5 19111 (eval $ac_try) 2>&5 19112 ac_status=$? 19113 echo "$as_me:19113: \$? = $ac_status" >&5 19114 (exit "$ac_status"); }; }; then 19115 ac_cv_lib_Xext_XextCreateExtension=yes 19116else 19117 echo "$as_me: failed program was:" >&5 19118cat "conftest.$ac_ext" >&5 19119ac_cv_lib_Xext_XextCreateExtension=no 19120fi 19121rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19122LIBS=$ac_check_lib_save_LIBS 19123fi 19124echo "$as_me:19124: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 19125echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 19126if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 19127 19128cf_add_libs="$LIBS" 19129# reverse order 19130cf_add_0lib= 19131for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19132# filter duplicates 19133for cf_add_1lib in $cf_add_0lib; do 19134 for cf_add_2lib in $cf_add_libs; do 19135 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19136 cf_add_1lib= 19137 break 19138 fi 19139 done 19140 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19141done 19142LIBS="$cf_add_libs" 19143 19144fi 19145 19146fi 19147 19148echo "$as_me:19148: checking for X11/extensions/Xdbe.h" >&5 19149echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6 19150if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then 19151 echo $ECHO_N "(cached) $ECHO_C" >&6 19152else 19153 cat >"conftest.$ac_ext" <<_ACEOF 19154#line 19154 "configure" 19155#include "confdefs.h" 19156#include <X11/extensions/Xdbe.h> 19157_ACEOF 19158if { (eval echo "$as_me:19158: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19159 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19160 ac_status=$? 19161 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19162 rm -f conftest.er1 19163 cat conftest.err >&5 19164 echo "$as_me:19164: \$? = $ac_status" >&5 19165 (exit "$ac_status"); } >/dev/null; then 19166 if test -s conftest.err; then 19167 ac_cpp_err=$ac_c_preproc_warn_flag 19168 else 19169 ac_cpp_err= 19170 fi 19171else 19172 ac_cpp_err=yes 19173fi 19174if test -z "$ac_cpp_err"; then 19175 ac_cv_header_X11_extensions_Xdbe_h=yes 19176else 19177 echo "$as_me: failed program was:" >&5 19178 cat "conftest.$ac_ext" >&5 19179 ac_cv_header_X11_extensions_Xdbe_h=no 19180fi 19181rm -f conftest.err "conftest.$ac_ext" 19182fi 19183echo "$as_me:19183: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5 19184echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6 19185if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then 19186 19187cat >>confdefs.h <<\EOF 19188#define HAVE_X11_EXTENSIONS_XDBE_H 1 19189EOF 19190 19191 echo "$as_me:19191: checking for XdbeSwapBuffers" >&5 19192echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6 19193if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then 19194 echo $ECHO_N "(cached) $ECHO_C" >&6 19195else 19196 cat >"conftest.$ac_ext" <<_ACEOF 19197#line 19197 "configure" 19198#include "confdefs.h" 19199#define XdbeSwapBuffers autoconf_temporary 19200#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19201#undef XdbeSwapBuffers 19202 19203#ifdef __cplusplus 19204extern "C" 19205#endif 19206 19207/* We use char because int might match the return type of a gcc2 19208 builtin and then its argument prototype would still apply. */ 19209char XdbeSwapBuffers (void); 19210 19211int 19212main (void) 19213{ 19214 19215/* The GNU C library defines stubs for functions which it implements 19216 to always fail with ENOSYS. Some functions are actually named 19217 something starting with __ and the normal name is an alias. */ 19218#if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers) 19219#error found stub for XdbeSwapBuffers 19220#endif 19221 19222 return XdbeSwapBuffers (); 19223 ; 19224 return 0; 19225} 19226_ACEOF 19227rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19228if { (eval echo "$as_me:19228: \"$ac_link\"") >&5 19229 (eval $ac_link) 2>&5 19230 ac_status=$? 19231 echo "$as_me:19231: \$? = $ac_status" >&5 19232 (exit "$ac_status"); } && 19233 { ac_try='test -s "conftest$ac_exeext"' 19234 { (eval echo "$as_me:19234: \"$ac_try\"") >&5 19235 (eval $ac_try) 2>&5 19236 ac_status=$? 19237 echo "$as_me:19237: \$? = $ac_status" >&5 19238 (exit "$ac_status"); }; }; then 19239 ac_cv_func_XdbeSwapBuffers=yes 19240else 19241 echo "$as_me: failed program was:" >&5 19242cat "conftest.$ac_ext" >&5 19243ac_cv_func_XdbeSwapBuffers=no 19244fi 19245rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19246fi 19247echo "$as_me:19247: result: $ac_cv_func_XdbeSwapBuffers" >&5 19248echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6 19249if test "$ac_cv_func_XdbeSwapBuffers" = yes; then 19250 19251cat >>confdefs.h <<\EOF 19252#define HAVE_XDBESWAPBUFFERS 1 19253EOF 19254 19255 cf_x_ext_double_buffer=yes 19256fi 19257 19258fi 19259 19260double_buffer=False 19261if test "$cf_x_ext_double_buffer" = yes ; then 19262 echo "$as_me:19262: checking if you want to enable double-buffering in default resources" >&5 19263echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6 19264 19265# Check whether --enable-double-buffer or --disable-double-buffer was given. 19266if test "${enable_double_buffer+set}" = set; then 19267 enableval="$enable_double_buffer" 19268 test "$enableval" != yes && enableval=no 19269 if test "$enableval" != "no" ; then 19270 enable_double_bfr=yes 19271 else 19272 enable_double_bfr=no 19273 fi 19274else 19275 enableval=no 19276 enable_double_bfr=no 19277 19278fi; 19279 echo "$as_me:19279: result: $enable_double_bfr" >&5 19280echo "${ECHO_T}$enable_double_bfr" >&6 19281 if test "$enable_double_bfr" = yes ; then 19282 19283cat >>confdefs.h <<\EOF 19284#define OPT_DOUBLE_BUFFER 1 19285EOF 19286 19287 double_buffer=True 19288 fi 19289fi 19290 19291echo "$as_me:19291: checking if you want to use FreeType library" >&5 19292echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 19293 19294# Check whether --enable-freetype or --disable-freetype was given. 19295if test "${enable_freetype+set}" = set; then 19296 enableval="$enable_freetype" 19297 test "$enableval" != no && enableval=yes 19298 if test "$enableval" != "yes" ; then 19299 enable_freetype=no 19300 else 19301 enable_freetype=yes 19302 fi 19303else 19304 enableval=yes 19305 enable_freetype=yes 19306 19307fi; 19308echo "$as_me:19308: result: $enable_freetype" >&5 19309echo "${ECHO_T}$enable_freetype" >&6 19310if test "$enable_freetype" = yes ; then 19311 19312cf_cv_x_freetype_incs=no 19313cf_cv_x_freetype_libs=no 19314cf_extra_freetype_libs= 19315FREETYPE_CONFIG=none 19316FREETYPE_PARAMS= 19317 19318echo "$as_me:19318: checking for FreeType configuration script" >&5 19319echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 19320 19321# Check whether --with-freetype-config or --without-freetype-config was given. 19322if test "${with_freetype_config+set}" = set; then 19323 withval="$with_freetype_config" 19324 cf_cv_x_freetype_cfgs="$withval" 19325else 19326 cf_cv_x_freetype_cfgs=auto 19327fi; 19328test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 19329test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 19330echo "$as_me:19330: result: $cf_cv_x_freetype_cfgs" >&5 19331echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 19332 19333case $cf_cv_x_freetype_cfgs in 19334(none) 19335 echo "$as_me:19335: checking if you specified -D/-I options for FreeType" >&5 19336echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 19337 19338# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 19339if test "${with_freetype_cflags+set}" = set; then 19340 withval="$with_freetype_cflags" 19341 cf_cv_x_freetype_incs="$with_freetype_cflags" 19342else 19343 cf_cv_x_freetype_incs=no 19344fi; 19345 echo "$as_me:19345: result: $cf_cv_x_freetype_incs" >&5 19346echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 19347 19348 echo "$as_me:19348: checking if you specified -L/-l options for FreeType" >&5 19349echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 19350 19351# Check whether --with-freetype-libs or --without-freetype-libs was given. 19352if test "${with_freetype_libs+set}" = set; then 19353 withval="$with_freetype_libs" 19354 cf_cv_x_freetype_libs="$with_freetype_libs" 19355else 19356 cf_cv_x_freetype_libs=no 19357fi; 19358 echo "$as_me:19358: result: $cf_cv_x_freetype_libs" >&5 19359echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 19360 ;; 19361(auto) 19362 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 19363 FREETYPE_CONFIG=$PKG_CONFIG 19364 FREETYPE_PARAMS=xft 19365 else 19366 # Extract the first word of "freetype-config", so it can be a program name with args. 19367set dummy freetype-config; ac_word=$2 19368echo "$as_me:19368: checking for $ac_word" >&5 19369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19370if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 19371 echo $ECHO_N "(cached) $ECHO_C" >&6 19372else 19373 case $FREETYPE_CONFIG in 19374 [\\/]* | ?:[\\/]*) 19375 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 19376 ;; 19377 *) 19378 ac_save_IFS=$IFS; IFS=$ac_path_separator 19379ac_dummy="$PATH" 19380for ac_dir in $ac_dummy; do 19381 IFS=$ac_save_IFS 19382 test -z "$ac_dir" && ac_dir=. 19383 if $as_executable_p "$ac_dir/$ac_word"; then 19384 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 19385 echo "$as_me:19385: found $ac_dir/$ac_word" >&5 19386 break 19387fi 19388done 19389 19390 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 19391 ;; 19392esac 19393fi 19394FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 19395 19396if test -n "$FREETYPE_CONFIG"; then 19397 echo "$as_me:19397: result: $FREETYPE_CONFIG" >&5 19398echo "${ECHO_T}$FREETYPE_CONFIG" >&6 19399else 19400 echo "$as_me:19400: result: no" >&5 19401echo "${ECHO_T}no" >&6 19402fi 19403 19404 if test "$FREETYPE_CONFIG" != none; then 19405 FREETYPE_CONFIG=$FREETYPE_CONFIG 19406 cf_extra_freetype_libs="-lXft" 19407 else 19408 # Extract the first word of "xft-config", so it can be a program name with args. 19409set dummy xft-config; ac_word=$2 19410echo "$as_me:19410: checking for $ac_word" >&5 19411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19412if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 19413 echo $ECHO_N "(cached) $ECHO_C" >&6 19414else 19415 case $FREETYPE_OLD_CONFIG in 19416 [\\/]* | ?:[\\/]*) 19417 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 19418 ;; 19419 *) 19420 ac_save_IFS=$IFS; IFS=$ac_path_separator 19421ac_dummy="$PATH" 19422for ac_dir in $ac_dummy; do 19423 IFS=$ac_save_IFS 19424 test -z "$ac_dir" && ac_dir=. 19425 if $as_executable_p "$ac_dir/$ac_word"; then 19426 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 19427 echo "$as_me:19427: found $ac_dir/$ac_word" >&5 19428 break 19429fi 19430done 19431 19432 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 19433 ;; 19434esac 19435fi 19436FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 19437 19438if test -n "$FREETYPE_OLD_CONFIG"; then 19439 echo "$as_me:19439: result: $FREETYPE_OLD_CONFIG" >&5 19440echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 19441else 19442 echo "$as_me:19442: result: no" >&5 19443echo "${ECHO_T}no" >&6 19444fi 19445 19446 if test "$FREETYPE_OLD_CONFIG" != none; then 19447 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 19448 fi 19449 fi 19450 fi 19451 ;; 19452(pkg*) 19453 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 19454 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 19455 FREETYPE_PARAMS=xft 19456 else 19457 { echo "$as_me:19457: WARNING: cannot find pkg-config for Xft" >&5 19458echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 19459 fi 19460 ;; 19461(*) 19462 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 19463set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 19464echo "$as_me:19464: checking for $ac_word" >&5 19465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19466if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 19467 echo $ECHO_N "(cached) $ECHO_C" >&6 19468else 19469 case $FREETYPE_XFT_CONFIG in 19470 [\\/]* | ?:[\\/]*) 19471 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 19472 ;; 19473 *) 19474 ac_save_IFS=$IFS; IFS=$ac_path_separator 19475ac_dummy="$PATH" 19476for ac_dir in $ac_dummy; do 19477 IFS=$ac_save_IFS 19478 test -z "$ac_dir" && ac_dir=. 19479 if $as_executable_p "$ac_dir/$ac_word"; then 19480 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 19481 echo "$as_me:19481: found $ac_dir/$ac_word" >&5 19482 break 19483fi 19484done 19485 19486 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 19487 ;; 19488esac 19489fi 19490FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 19491 19492if test -n "$FREETYPE_XFT_CONFIG"; then 19493 echo "$as_me:19493: result: $FREETYPE_XFT_CONFIG" >&5 19494echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 19495else 19496 echo "$as_me:19496: result: no" >&5 19497echo "${ECHO_T}no" >&6 19498fi 19499 19500 if test "$FREETYPE_XFT_CONFIG" != none; then 19501 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 19502 else 19503 { echo "$as_me:19503: WARNING: cannot find config script for Xft" >&5 19504echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 19505 fi 19506 ;; 19507esac 19508 19509if test "$FREETYPE_CONFIG" != none ; then 19510 echo "$as_me:19510: checking for FreeType config" >&5 19511echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 19512 echo "$as_me:19512: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 19513echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 19514 19515 if test "$cf_cv_x_freetype_incs" = no ; then 19516 echo "$as_me:19516: checking for $FREETYPE_CONFIG cflags" >&5 19517echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 19518 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 19519 echo "$as_me:19519: result: $cf_cv_x_freetype_incs" >&5 19520echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 19521 fi 19522 19523 if test "$cf_cv_x_freetype_libs" = no ; then 19524 echo "$as_me:19524: checking for $FREETYPE_CONFIG libs" >&5 19525echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 19526 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 19527 echo "$as_me:19527: result: $cf_cv_x_freetype_libs" >&5 19528echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 19529 fi 19530fi 19531 19532if test "$cf_cv_x_freetype_incs" = no ; then 19533 cf_cv_x_freetype_incs= 19534fi 19535 19536if test "$cf_cv_x_freetype_libs" = no ; then 19537 cf_cv_x_freetype_libs=-lXft 19538fi 19539 19540echo "$as_me:19540: checking if we can link with FreeType libraries" >&5 19541echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 19542 19543cf_save_LIBS="$LIBS" 19544cf_save_INCS="$CPPFLAGS" 19545 19546cf_add_libs="$LIBS" 19547# reverse order 19548cf_add_0lib= 19549for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19550# filter duplicates 19551for cf_add_1lib in $cf_add_0lib; do 19552 for cf_add_2lib in $cf_add_libs; do 19553 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19554 cf_add_1lib= 19555 break 19556 fi 19557 done 19558 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19559done 19560LIBS="$cf_add_libs" 19561 19562CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 19563 19564cat >"conftest.$ac_ext" <<_ACEOF 19565#line 19565 "configure" 19566#include "confdefs.h" 19567 19568#include <X11/Xlib.h> 19569#include <X11/extensions/Xrender.h> 19570#include <X11/Xft/Xft.h> 19571int 19572main (void) 19573{ 19574 19575 XftPattern *pat = XftNameParse ("name"); (void)pat 19576 ; 19577 return 0; 19578} 19579_ACEOF 19580rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19581if { (eval echo "$as_me:19581: \"$ac_link\"") >&5 19582 (eval $ac_link) 2>&5 19583 ac_status=$? 19584 echo "$as_me:19584: \$? = $ac_status" >&5 19585 (exit "$ac_status"); } && 19586 { ac_try='test -s "conftest$ac_exeext"' 19587 { (eval echo "$as_me:19587: \"$ac_try\"") >&5 19588 (eval $ac_try) 2>&5 19589 ac_status=$? 19590 echo "$as_me:19590: \$? = $ac_status" >&5 19591 (exit "$ac_status"); }; }; then 19592 cf_cv_found_freetype=yes 19593else 19594 echo "$as_me: failed program was:" >&5 19595cat "conftest.$ac_ext" >&5 19596cf_cv_found_freetype=no 19597fi 19598rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19599echo "$as_me:19599: result: $cf_cv_found_freetype" >&5 19600echo "${ECHO_T}$cf_cv_found_freetype" >&6 19601 19602LIBS="$cf_save_LIBS" 19603CPPFLAGS="$cf_save_INCS" 19604 19605if test "$cf_cv_found_freetype" = yes ; then 19606 19607cf_add_libs="$LIBS" 19608# reverse order 19609cf_add_0lib= 19610for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19611# filter duplicates 19612for cf_add_1lib in $cf_add_0lib; do 19613 for cf_add_2lib in $cf_add_libs; do 19614 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19615 cf_add_1lib= 19616 break 19617 fi 19618 done 19619 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19620done 19621LIBS="$cf_add_libs" 19622 19623cf_fix_cppflags=no 19624cf_new_cflags= 19625cf_new_cppflags= 19626cf_new_extra_cppflags= 19627 19628for cf_add_cflags in $cf_cv_x_freetype_incs 19629do 19630case "$cf_fix_cppflags" in 19631(no) 19632 case "$cf_add_cflags" in 19633 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19634 case "$cf_add_cflags" in 19635 (-D*) 19636 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19637 19638 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19639 && test -z "${cf_tst_cflags}" \ 19640 && cf_fix_cppflags=yes 19641 19642 if test "$cf_fix_cppflags" = yes ; then 19643 19644 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19645 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19646 19647 continue 19648 elif test "${cf_tst_cflags}" = "\"'" ; then 19649 19650 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19651 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19652 19653 continue 19654 fi 19655 ;; 19656 esac 19657 case "$CPPFLAGS" in 19658 (*$cf_add_cflags) 19659 ;; 19660 (*) 19661 case "$cf_add_cflags" in 19662 (-D*) 19663 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19664 19665CPPFLAGS=`echo "$CPPFLAGS" | \ 19666 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19667 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19668 19669 ;; 19670 esac 19671 19672 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19673 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19674 19675 ;; 19676 esac 19677 ;; 19678 (*) 19679 19680 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19681 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19682 19683 ;; 19684 esac 19685 ;; 19686(yes) 19687 19688 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19689 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19690 19691 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19692 19693 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19694 && test -z "${cf_tst_cflags}" \ 19695 && cf_fix_cppflags=no 19696 ;; 19697esac 19698done 19699 19700if test -n "$cf_new_cflags" ; then 19701 19702 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19703 CFLAGS="${CFLAGS}$cf_new_cflags" 19704 19705fi 19706 19707if test -n "$cf_new_cppflags" ; then 19708 19709 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19710 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19711 19712fi 19713 19714if test -n "$cf_new_extra_cppflags" ; then 19715 19716 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19717 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19718 19719fi 19720 19721cat >>confdefs.h <<\EOF 19722#define XRENDERFONT 1 19723EOF 19724 19725for ac_func in \ 19726 XftDrawCharSpec \ 19727 XftDrawSetClip \ 19728 XftDrawSetClipRectangles \ 19729 19730do 19731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19732echo "$as_me:19732: checking for $ac_func" >&5 19733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19734if eval "test \"\${$as_ac_var+set}\" = set"; then 19735 echo $ECHO_N "(cached) $ECHO_C" >&6 19736else 19737 cat >"conftest.$ac_ext" <<_ACEOF 19738#line 19738 "configure" 19739#include "confdefs.h" 19740#define $ac_func autoconf_temporary 19741#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19742#undef $ac_func 19743 19744#ifdef __cplusplus 19745extern "C" 19746#endif 19747 19748/* We use char because int might match the return type of a gcc2 19749 builtin and then its argument prototype would still apply. */ 19750char $ac_func (void); 19751 19752int 19753main (void) 19754{ 19755 19756/* The GNU C library defines stubs for functions which it implements 19757 to always fail with ENOSYS. Some functions are actually named 19758 something starting with __ and the normal name is an alias. */ 19759#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19760#error found stub for $ac_func 19761#endif 19762 19763 return $ac_func (); 19764 ; 19765 return 0; 19766} 19767_ACEOF 19768rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19769if { (eval echo "$as_me:19769: \"$ac_link\"") >&5 19770 (eval $ac_link) 2>&5 19771 ac_status=$? 19772 echo "$as_me:19772: \$? = $ac_status" >&5 19773 (exit "$ac_status"); } && 19774 { ac_try='test -s "conftest$ac_exeext"' 19775 { (eval echo "$as_me:19775: \"$ac_try\"") >&5 19776 (eval $ac_try) 2>&5 19777 ac_status=$? 19778 echo "$as_me:19778: \$? = $ac_status" >&5 19779 (exit "$ac_status"); }; }; then 19780 eval "$as_ac_var=yes" 19781else 19782 echo "$as_me: failed program was:" >&5 19783cat "conftest.$ac_ext" >&5 19784eval "$as_ac_var=no" 19785fi 19786rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19787fi 19788echo "$as_me:19788: result: `eval echo '${'"$as_ac_var"'}'`" >&5 19789echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 19790if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 19791 cat >>confdefs.h <<EOF 19792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19793EOF 19794 19795fi 19796done 19797 19798else 19799 { echo "$as_me:19799: WARNING: No libraries found for FreeType" >&5 19800echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 19801 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 19802fi 19803 19804# FIXME: revisit this if needed 19805 19806if test "$cf_cv_found_freetype" = yes ; then 19807echo "$as_me:19807: checking for usable Xft/fontconfig package" >&5 19808echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 19809if test "${cf_cv_xft_compat+set}" = set; then 19810 echo $ECHO_N "(cached) $ECHO_C" >&6 19811else 19812 19813cat >"conftest.$ac_ext" <<_ACEOF 19814#line 19814 "configure" 19815#include "confdefs.h" 19816 19817#include <X11/Xft/Xft.h> 19818 19819int 19820main (void) 19821{ 19822 19823 XftPattern *pat = 0; 19824 XftPatternBuild(pat, 19825 XFT_FAMILY, XftTypeString, "mono", 19826 (void *) 0); 19827 19828 ; 19829 return 0; 19830} 19831_ACEOF 19832rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19833if { (eval echo "$as_me:19833: \"$ac_link\"") >&5 19834 (eval $ac_link) 2>&5 19835 ac_status=$? 19836 echo "$as_me:19836: \$? = $ac_status" >&5 19837 (exit "$ac_status"); } && 19838 { ac_try='test -s "conftest$ac_exeext"' 19839 { (eval echo "$as_me:19839: \"$ac_try\"") >&5 19840 (eval $ac_try) 2>&5 19841 ac_status=$? 19842 echo "$as_me:19842: \$? = $ac_status" >&5 19843 (exit "$ac_status"); }; }; then 19844 cf_cv_xft_compat=yes 19845else 19846 echo "$as_me: failed program was:" >&5 19847cat "conftest.$ac_ext" >&5 19848cf_cv_xft_compat=no 19849fi 19850rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19851 19852fi 19853echo "$as_me:19853: result: $cf_cv_xft_compat" >&5 19854echo "${ECHO_T}$cf_cv_xft_compat" >&6 19855 19856if test "$cf_cv_xft_compat" = no 19857then 19858 # workaround for broken ".pc" files used for Xft. 19859 case "$cf_cv_x_freetype_libs" in 19860 (*-lfontconfig*) 19861 ;; 19862 (*) 19863 test -n "$verbose" && echo " work around broken package" 1>&6 19864 19865echo "${as_me:-configure}:19865: testing work around broken package ..." 1>&5 19866 19867 cf_save_fontconfig="$LIBS" 19868 19869if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then 19870 test -n "$verbose" && echo " found package fontconfig" 1>&6 19871 19872echo "${as_me:-configure}:19872: testing found package fontconfig ..." 1>&5 19873 19874 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`" 19875 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`" 19876 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 19877 19878echo "${as_me:-configure}:19878: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 19879 19880 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 19881 19882echo "${as_me:-configure}:19882: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 19883 19884cf_fix_cppflags=no 19885cf_new_cflags= 19886cf_new_cppflags= 19887cf_new_extra_cppflags= 19888 19889for cf_add_cflags in $cf_pkgconfig_incs 19890do 19891case "$cf_fix_cppflags" in 19892(no) 19893 case "$cf_add_cflags" in 19894 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19895 case "$cf_add_cflags" in 19896 (-D*) 19897 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19898 19899 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19900 && test -z "${cf_tst_cflags}" \ 19901 && cf_fix_cppflags=yes 19902 19903 if test "$cf_fix_cppflags" = yes ; then 19904 19905 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19906 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19907 19908 continue 19909 elif test "${cf_tst_cflags}" = "\"'" ; then 19910 19911 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19912 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19913 19914 continue 19915 fi 19916 ;; 19917 esac 19918 case "$CPPFLAGS" in 19919 (*$cf_add_cflags) 19920 ;; 19921 (*) 19922 case "$cf_add_cflags" in 19923 (-D*) 19924 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19925 19926CPPFLAGS=`echo "$CPPFLAGS" | \ 19927 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19928 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19929 19930 ;; 19931 esac 19932 19933 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19934 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19935 19936 ;; 19937 esac 19938 ;; 19939 (*) 19940 19941 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19942 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19943 19944 ;; 19945 esac 19946 ;; 19947(yes) 19948 19949 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19950 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19951 19952 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19953 19954 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19955 && test -z "${cf_tst_cflags}" \ 19956 && cf_fix_cppflags=no 19957 ;; 19958esac 19959done 19960 19961if test -n "$cf_new_cflags" ; then 19962 19963 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19964 CFLAGS="${CFLAGS}$cf_new_cflags" 19965 19966fi 19967 19968if test -n "$cf_new_cppflags" ; then 19969 19970 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19971 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19972 19973fi 19974 19975if test -n "$cf_new_extra_cppflags" ; then 19976 19977 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19978 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19979 19980fi 19981 19982cf_add_libs="$LIBS" 19983# reverse order 19984cf_add_0lib= 19985for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19986# filter duplicates 19987for cf_add_1lib in $cf_add_0lib; do 19988 for cf_add_2lib in $cf_add_libs; do 19989 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19990 cf_add_1lib= 19991 break 19992 fi 19993 done 19994 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19995done 19996LIBS="$cf_add_libs" 19997 19998cf_fix_cppflags=no 19999cf_new_cflags= 20000cf_new_cppflags= 20001cf_new_extra_cppflags= 20002 20003for cf_add_cflags in $cf_pkgconfig_incs 20004do 20005case "$cf_fix_cppflags" in 20006(no) 20007 case "$cf_add_cflags" in 20008 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20009 case "$cf_add_cflags" in 20010 (-D*) 20011 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20012 20013 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20014 && test -z "${cf_tst_cflags}" \ 20015 && cf_fix_cppflags=yes 20016 20017 if test "$cf_fix_cppflags" = yes ; then 20018 20019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20021 20022 continue 20023 elif test "${cf_tst_cflags}" = "\"'" ; then 20024 20025 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20026 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20027 20028 continue 20029 fi 20030 ;; 20031 esac 20032 case "$CPPFLAGS" in 20033 (*$cf_add_cflags) 20034 ;; 20035 (*) 20036 case "$cf_add_cflags" in 20037 (-D*) 20038 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20039 20040CPPFLAGS=`echo "$CPPFLAGS" | \ 20041 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20042 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20043 20044 ;; 20045 esac 20046 20047 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20048 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20049 20050 ;; 20051 esac 20052 ;; 20053 (*) 20054 20055 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20056 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20057 20058 ;; 20059 esac 20060 ;; 20061(yes) 20062 20063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20065 20066 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20067 20068 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20069 && test -z "${cf_tst_cflags}" \ 20070 && cf_fix_cppflags=no 20071 ;; 20072esac 20073done 20074 20075if test -n "$cf_new_cflags" ; then 20076 20077 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20078 CFLAGS="${CFLAGS}$cf_new_cflags" 20079 20080fi 20081 20082if test -n "$cf_new_cppflags" ; then 20083 20084 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20085 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20086 20087fi 20088 20089if test -n "$cf_new_extra_cppflags" ; then 20090 20091 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20092 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20093 20094fi 20095 20096 LIBS="$cf_save_fontconfig" 20097 20098test -n "$verbose" && echo " ...before $LIBS" 1>&6 20099 20100echo "${as_me:-configure}:20100: testing ...before $LIBS ..." 1>&5 20101 20102LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 20103test -n "$verbose" && echo " ...after $LIBS" 1>&6 20104 20105echo "${as_me:-configure}:20105: testing ...after $LIBS ..." 1>&5 20106 20107else 20108 cf_pkgconfig_incs= 20109 cf_pkgconfig_libs= 20110 20111test -n "$verbose" && echo " ...before $LIBS" 1>&6 20112 20113echo "${as_me:-configure}:20113: testing ...before $LIBS ..." 1>&5 20114 20115LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 20116test -n "$verbose" && echo " ...after $LIBS" 1>&6 20117 20118echo "${as_me:-configure}:20118: testing ...after $LIBS ..." 1>&5 20119 20120fi 20121 20122 ;; 20123 esac 20124fi 20125fi 20126 20127else 20128 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 20129fi 20130 20131echo "$as_me:20131: checking if you want support for HP-style function keys" >&5 20132echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 20133 20134# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 20135if test "${enable_hp_fkeys+set}" = set; then 20136 enableval="$enable_hp_fkeys" 20137 test "$enableval" != yes && enableval=no 20138 if test "$enableval" != "no" ; then 20139 enable_hp_fkeys=yes 20140 else 20141 enable_hp_fkeys=no 20142 fi 20143else 20144 enableval=no 20145 enable_hp_fkeys=no 20146 20147fi; 20148echo "$as_me:20148: result: $enable_hp_fkeys" >&5 20149echo "${ECHO_T}$enable_hp_fkeys" >&6 20150if test "$enable_hp_fkeys" = yes ; then 20151 20152cat >>confdefs.h <<\EOF 20153#define OPT_HP_FUNC_KEYS 1 20154EOF 20155 20156fi 20157 20158echo "$as_me:20158: checking if you want support for SCO-style function keys" >&5 20159echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 20160 20161# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 20162if test "${enable_sco_fkeys+set}" = set; then 20163 enableval="$enable_sco_fkeys" 20164 test "$enableval" != yes && enableval=no 20165 if test "$enableval" != "no" ; then 20166 enable_sco_fkeys=yes 20167 else 20168 enable_sco_fkeys=no 20169 fi 20170else 20171 enableval=no 20172 enable_sco_fkeys=no 20173 20174fi; 20175echo "$as_me:20175: result: $enable_sco_fkeys" >&5 20176echo "${ECHO_T}$enable_sco_fkeys" >&6 20177if test "$enable_sco_fkeys" = yes ; then 20178 20179cat >>confdefs.h <<\EOF 20180#define OPT_SCO_FUNC_KEYS 1 20181EOF 20182 20183fi 20184 20185echo "$as_me:20185: checking if you want support for Sun-style function keys" >&5 20186echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 20187 20188# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 20189if test "${enable_sun_fkeys+set}" = set; then 20190 enableval="$enable_sun_fkeys" 20191 test "$enableval" != no && enableval=yes 20192 if test "$enableval" != "yes" ; then 20193 enable_sun_fkeys=no 20194 else 20195 enable_sun_fkeys=yes 20196 fi 20197else 20198 enableval=yes 20199 enable_sun_fkeys=yes 20200 20201fi; 20202echo "$as_me:20202: result: $enable_sun_fkeys" >&5 20203echo "${ECHO_T}$enable_sun_fkeys" >&6 20204if test "$enable_sun_fkeys" = no ; then 20205 20206cat >>confdefs.h <<\EOF 20207#define OPT_SUN_FUNC_KEYS 0 20208EOF 20209 20210fi 20211 20212echo "$as_me:20212: checking if you want saved-lines stored as a FIFO" >&5 20213echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 20214 20215# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 20216if test "${enable_fifo_lines+set}" = set; then 20217 enableval="$enable_fifo_lines" 20218 test "$enableval" != no && enableval=yes 20219 if test "$enableval" != "yes" ; then 20220 enable_fifo_lines=no 20221 else 20222 enable_fifo_lines=yes 20223 fi 20224else 20225 enableval=yes 20226 enable_fifo_lines=yes 20227 20228fi; 20229echo "$as_me:20229: result: $enable_fifo_lines" >&5 20230echo "${ECHO_T}$enable_fifo_lines" >&6 20231if test "$enable_fifo_lines" != yes ; then 20232 { echo "$as_me:20232: WARNING: this option has been deprecated" >&5 20233echo "$as_me: WARNING: this option has been deprecated" >&2;} 20234fi 20235 20236echo "$as_me:20236: checking if you want support for internationalization" >&5 20237echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 20238 20239# Check whether --enable-i18n or --disable-i18n was given. 20240if test "${enable_i18n+set}" = set; then 20241 enableval="$enable_i18n" 20242 test "$enableval" != no && enableval=yes 20243 if test "$enableval" != "yes" ; then 20244 enable_i18n=no 20245 else 20246 enable_i18n=yes 20247 fi 20248else 20249 enableval=yes 20250 enable_i18n=yes 20251 20252fi; 20253echo "$as_me:20253: result: $enable_i18n" >&5 20254echo "${ECHO_T}$enable_i18n" >&6 20255if test "$enable_i18n" = no ; then 20256 20257cat >>confdefs.h <<\EOF 20258#define OPT_I18N_SUPPORT 0 20259EOF 20260 20261fi 20262 20263echo "$as_me:20263: checking if you want support for initial-erase setup" >&5 20264echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 20265 20266# Check whether --enable-initial-erase or --disable-initial-erase was given. 20267if test "${enable_initial_erase+set}" = set; then 20268 enableval="$enable_initial_erase" 20269 test "$enableval" != no && enableval=yes 20270 if test "$enableval" != "yes" ; then 20271 enable_ie=no 20272 else 20273 enable_ie=yes 20274 fi 20275else 20276 enableval=yes 20277 enable_ie=yes 20278 20279fi; 20280echo "$as_me:20280: result: $enable_ie" >&5 20281echo "${ECHO_T}$enable_ie" >&6 20282if test "$enable_ie" = no ; then 20283 20284cat >>confdefs.h <<\EOF 20285#define OPT_INITIAL_ERASE 0 20286EOF 20287 20288fi 20289 20290echo "$as_me:20290: checking if you want support for input-method" >&5 20291echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 20292 20293# Check whether --enable-input-method or --disable-input-method was given. 20294if test "${enable_input_method+set}" = set; then 20295 enableval="$enable_input_method" 20296 test "$enableval" != no && enableval=yes 20297 if test "$enableval" != "yes" ; then 20298 enable_ximp=no 20299 else 20300 enable_ximp=$enable_i18n 20301 fi 20302else 20303 enableval=yes 20304 enable_ximp=$enable_i18n 20305 20306fi; 20307echo "$as_me:20307: result: $enable_ximp" >&5 20308echo "${ECHO_T}$enable_ximp" >&6 20309 20310echo "$as_me:20310: checking if X libraries support input-method" >&5 20311echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 20312if test "${cf_cv_input_method+set}" = set; then 20313 echo $ECHO_N "(cached) $ECHO_C" >&6 20314else 20315 20316cat >"conftest.$ac_ext" <<_ACEOF 20317#line 20317 "configure" 20318#include "confdefs.h" 20319 20320#include <X11/IntrinsicP.h> 20321#include <X11/Xatom.h> 20322#include <X11/Xutil.h> 20323#include <X11/Xmu/Atoms.h> 20324#include <X11/Xmu/Converters.h> 20325#include <X11/Xaw/XawImP.h> 20326 20327int 20328main (void) 20329{ 20330 20331{ 20332 XIM xim; 20333 XIMStyles *xim_styles = 0; 20334 XIMStyle input_style; 20335 Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0); 20336 20337 XSetLocaleModifiers("@im=none"); 20338 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 20339 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 20340 XCloseIM(xim); 20341 input_style = (XIMPreeditNothing | XIMStatusNothing); 20342 (void)xim_styles; 20343 (void)input_style; 20344} 20345 20346 ; 20347 return 0; 20348} 20349_ACEOF 20350rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20351if { (eval echo "$as_me:20351: \"$ac_link\"") >&5 20352 (eval $ac_link) 2>&5 20353 ac_status=$? 20354 echo "$as_me:20354: \$? = $ac_status" >&5 20355 (exit "$ac_status"); } && 20356 { ac_try='test -s "conftest$ac_exeext"' 20357 { (eval echo "$as_me:20357: \"$ac_try\"") >&5 20358 (eval $ac_try) 2>&5 20359 ac_status=$? 20360 echo "$as_me:20360: \$? = $ac_status" >&5 20361 (exit "$ac_status"); }; }; then 20362 cf_cv_input_method=yes 20363else 20364 echo "$as_me: failed program was:" >&5 20365cat "conftest.$ac_ext" >&5 20366cf_cv_input_method=no 20367fi 20368rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20369fi 20370echo "$as_me:20370: result: $cf_cv_input_method" >&5 20371echo "${ECHO_T}$cf_cv_input_method" >&6 20372 20373test "$cf_cv_input_method" = no && enable_ximp=no 20374if test "$enable_ximp" != no ; then 20375 if test "$enable_i18n" = no ; then 20376 { echo "$as_me:20376: WARNING: input-methor relies upon internationalization" >&5 20377echo "$as_me: WARNING: input-methor relies upon internationalization" >&2;} 20378 enable_ximp=no 20379 fi 20380fi 20381if test "$enable_ximp" = no ; then 20382 20383cat >>confdefs.h <<\EOF 20384#define OPT_INPUT_METHOD 0 20385EOF 20386 20387fi 20388 20389echo "$as_me:20389: checking if you want support for load-vt-fonts" >&5 20390echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 20391 20392# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 20393if test "${enable_load_vt_fonts+set}" = set; then 20394 enableval="$enable_load_vt_fonts" 20395 test "$enableval" != yes && enableval=no 20396 if test "$enableval" != "no" ; then 20397 enable_load_vt_fonts=yes 20398 else 20399 enable_load_vt_fonts=no 20400 fi 20401else 20402 enableval=no 20403 enable_load_vt_fonts=no 20404 20405fi; 20406echo "$as_me:20406: result: $enable_load_vt_fonts" >&5 20407echo "${ECHO_T}$enable_load_vt_fonts" >&6 20408if test "$enable_load_vt_fonts" = yes ; then 20409 20410cat >>confdefs.h <<\EOF 20411#define OPT_LOAD_VTFONTS 1 20412EOF 20413 20414fi 20415 20416echo "$as_me:20416: checking if you want support for logging" >&5 20417echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 20418 20419# Check whether --enable-logging or --disable-logging was given. 20420if test "${enable_logging+set}" = set; then 20421 enableval="$enable_logging" 20422 test "$enableval" != yes && enableval=no 20423 if test "$enableval" != "no" ; then 20424 enable_logging=yes 20425 else 20426 enable_logging=no 20427 fi 20428else 20429 enableval=no 20430 enable_logging=no 20431 20432fi; 20433echo "$as_me:20433: result: $enable_logging" >&5 20434echo "${ECHO_T}$enable_logging" >&6 20435if test "$enable_logging" = yes ; then 20436 20437cat >>confdefs.h <<\EOF 20438#define ALLOWLOGGING 1 20439EOF 20440 20441 echo "$as_me:20441: checking if you want to allow logging via a pipe" >&5 20442echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 20443 20444# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 20445if test "${enable_logfile_exec+set}" = set; then 20446 enableval="$enable_logfile_exec" 20447 test "$enableval" != yes && enableval=no 20448 if test "$enableval" != "no" ; then 20449 enable_log_exec=yes 20450 else 20451 enable_log_exec=no 20452 fi 20453else 20454 enableval=no 20455 enable_log_exec=no 20456 20457fi; 20458 echo "$as_me:20458: result: $enable_log_exec" >&5 20459echo "${ECHO_T}$enable_log_exec" >&6 20460 if test "$enable_log_exec" = yes ; then 20461 20462cat >>confdefs.h <<\EOF 20463#define ALLOWLOGFILEEXEC 1 20464EOF 20465 20466 fi 20467fi 20468 20469echo "$as_me:20469: checking if you want support for iconify/maximize translations" >&5 20470echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 20471 20472# Check whether --enable-maximize or --disable-maximize was given. 20473if test "${enable_maximize+set}" = set; then 20474 enableval="$enable_maximize" 20475 test "$enableval" != no && enableval=yes 20476 if test "$enableval" != "yes" ; then 20477 enable_maximize=no 20478 else 20479 enable_maximize=yes 20480 fi 20481else 20482 enableval=yes 20483 enable_maximize=yes 20484 20485fi; 20486echo "$as_me:20486: result: $enable_maximize" >&5 20487echo "${ECHO_T}$enable_maximize" >&6 20488test "$enable_maximize" = no && 20489cat >>confdefs.h <<\EOF 20490#define OPT_MAXIMIZE 0 20491EOF 20492 20493echo "$as_me:20493: checking if you want NumLock to override keyboard tables" >&5 20494echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 20495 20496# Check whether --enable-num-lock or --disable-num-lock was given. 20497if test "${enable_num_lock+set}" = set; then 20498 enableval="$enable_num_lock" 20499 test "$enableval" != no && enableval=yes 20500 if test "$enableval" != "yes" ; then 20501 enable_numlock=no 20502 else 20503 enable_numlock=yes 20504 fi 20505else 20506 enableval=yes 20507 enable_numlock=yes 20508 20509fi; 20510echo "$as_me:20510: result: $enable_numlock" >&5 20511echo "${ECHO_T}$enable_numlock" >&6 20512test "$enable_numlock" = no && 20513cat >>confdefs.h <<\EOF 20514#define OPT_NUM_LOCK 0 20515EOF 20516 20517echo "$as_me:20517: checking if you want support for get/set of base64 selection data" >&5 20518echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 20519 20520# Check whether --enable-paste64 or --disable-paste64 was given. 20521if test "${enable_paste64+set}" = set; then 20522 enableval="$enable_paste64" 20523 test "$enableval" != no && enableval=yes 20524 if test "$enableval" != "yes" ; then 20525 enable_paste64=no 20526 else 20527 enable_paste64=yes 20528 fi 20529else 20530 enableval=yes 20531 enable_paste64=yes 20532 20533fi; 20534echo "$as_me:20534: result: $enable_paste64" >&5 20535echo "${ECHO_T}$enable_paste64" >&6 20536if test "$enable_paste64" = yes ; then 20537 20538cat >>confdefs.h <<\EOF 20539#define OPT_PASTE64 1 20540EOF 20541 20542else 20543 20544cat >>confdefs.h <<\EOF 20545#define OPT_PASTE64 0 20546EOF 20547 20548fi 20549 20550echo "$as_me:20550: checking if you want support for pty-handshaking" >&5 20551echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 20552 20553# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 20554if test "${enable_pty_handshake+set}" = set; then 20555 enableval="$enable_pty_handshake" 20556 test "$enableval" != no && enableval=yes 20557 if test "$enableval" != "yes" ; then 20558 enable_pty_handshake=no 20559 else 20560 enable_pty_handshake=yes 20561 fi 20562else 20563 enableval=yes 20564 enable_pty_handshake=yes 20565 20566fi; 20567echo "$as_me:20567: result: $enable_pty_handshake" >&5 20568echo "${ECHO_T}$enable_pty_handshake" >&6 20569if test "$enable_pty_handshake" = yes ; then 20570 20571cat >>confdefs.h <<\EOF 20572#define OPT_PTY_HANDSHAKE 1 20573EOF 20574 20575else 20576 20577cat >>confdefs.h <<\EOF 20578#define OPT_PTY_HANDSHAKE 0 20579EOF 20580 20581fi 20582 20583echo "$as_me:20583: checking if you want support for mouse in readline applications" >&5 20584echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 20585 20586# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 20587if test "${enable_readline_mouse+set}" = set; then 20588 enableval="$enable_readline_mouse" 20589 test "$enableval" != no && enableval=yes 20590 if test "$enableval" != "yes" ; then 20591 enable_readline_mouse=no 20592 else 20593 enable_readline_mouse=yes 20594 fi 20595else 20596 enableval=yes 20597 enable_readline_mouse=yes 20598 20599fi; 20600echo "$as_me:20600: result: $enable_readline_mouse" >&5 20601echo "${ECHO_T}$enable_readline_mouse" >&6 20602if test "$enable_readline_mouse" = yes ; then 20603 20604cat >>confdefs.h <<\EOF 20605#define OPT_READLINE 1 20606EOF 20607 20608fi 20609 20610echo "$as_me:20610: checking if you want support for regular-expression selections" >&5 20611echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 20612 20613# Check whether --enable-regex or --disable-regex was given. 20614if test "${enable_regex+set}" = set; then 20615 enableval="$enable_regex" 20616 test "$enableval" != no && enableval=yes 20617 if test "$enableval" != "yes" ; then 20618 enable_regex=no 20619 else 20620 enable_regex=yes 20621 fi 20622else 20623 enableval=yes 20624 enable_regex=yes 20625 20626fi; 20627echo "$as_me:20627: result: $enable_regex" >&5 20628echo "${ECHO_T}$enable_regex" >&6 20629if test "$enable_regex" = yes ; then 20630 20631echo "$as_me:20631: checking if you want to use PCRE2 for regular-expressions" >&5 20632echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 20633 20634# Check whether --with-pcre2 or --without-pcre2 was given. 20635if test "${with_pcre2+set}" = set; then 20636 withval="$with_pcre2" 20637 20638fi; 20639test -z "$with_pcre2" && with_pcre2=no 20640echo "$as_me:20640: result: $with_pcre2" >&5 20641echo "${ECHO_T}$with_pcre2" >&6 20642 20643if test "x$with_pcre2" != xno ; then 20644 cf_with_pcre2_ok=no 20645 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 20646 do 20647 20648if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 20649 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 20650 20651echo "${as_me:-configure}:20651: testing found package $cf_with_pcre2 ..." 1>&5 20652 20653 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 20654 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 20655 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 20656 20657echo "${as_me:-configure}:20657: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 20658 20659 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 20660 20661echo "${as_me:-configure}:20661: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 20662 20663cf_fix_cppflags=no 20664cf_new_cflags= 20665cf_new_cppflags= 20666cf_new_extra_cppflags= 20667 20668for cf_add_cflags in $cf_pkgconfig_incs 20669do 20670case "$cf_fix_cppflags" in 20671(no) 20672 case "$cf_add_cflags" in 20673 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20674 case "$cf_add_cflags" in 20675 (-D*) 20676 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20677 20678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20679 && test -z "${cf_tst_cflags}" \ 20680 && cf_fix_cppflags=yes 20681 20682 if test "$cf_fix_cppflags" = yes ; then 20683 20684 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20685 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20686 20687 continue 20688 elif test "${cf_tst_cflags}" = "\"'" ; then 20689 20690 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20691 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20692 20693 continue 20694 fi 20695 ;; 20696 esac 20697 case "$CPPFLAGS" in 20698 (*$cf_add_cflags) 20699 ;; 20700 (*) 20701 case "$cf_add_cflags" in 20702 (-D*) 20703 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20704 20705CPPFLAGS=`echo "$CPPFLAGS" | \ 20706 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20707 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20708 20709 ;; 20710 esac 20711 20712 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20713 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20714 20715 ;; 20716 esac 20717 ;; 20718 (*) 20719 20720 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20721 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20722 20723 ;; 20724 esac 20725 ;; 20726(yes) 20727 20728 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20729 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20730 20731 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20732 20733 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20734 && test -z "${cf_tst_cflags}" \ 20735 && cf_fix_cppflags=no 20736 ;; 20737esac 20738done 20739 20740if test -n "$cf_new_cflags" ; then 20741 20742 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20743 CFLAGS="${CFLAGS}$cf_new_cflags" 20744 20745fi 20746 20747if test -n "$cf_new_cppflags" ; then 20748 20749 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20750 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20751 20752fi 20753 20754if test -n "$cf_new_extra_cppflags" ; then 20755 20756 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20757 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20758 20759fi 20760 20761cf_add_libs="$LIBS" 20762# reverse order 20763cf_add_0lib= 20764for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20765# filter duplicates 20766for cf_add_1lib in $cf_add_0lib; do 20767 for cf_add_2lib in $cf_add_libs; do 20768 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20769 cf_add_1lib= 20770 break 20771 fi 20772 done 20773 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20774done 20775LIBS="$cf_add_libs" 20776 20777 cf_with_pcre2_ok=yes; break 20778else 20779 cf_pkgconfig_incs= 20780 cf_pkgconfig_libs= 20781 : 20782fi 20783 20784 done 20785 cf_with_pcre2_ok=yes || { { echo "$as_me:20785: error: Cannot find PCRE2 library" >&5 20786echo "$as_me: error: Cannot find PCRE2 library" >&2;} 20787 { (exit 1); exit 1; }; } 20788 20789cat >>confdefs.h <<\EOF 20790#define HAVE_LIB_PCRE2 1 20791EOF 20792 20793 # if pkgconfig gave no results, look for the libraries directly 20794 case "$LIBS" in 20795 (*pcre2-posix*|*pcreposix*) 20796 ;; 20797 (*) 20798 echo "$as_me:20798: checking for regcomp in -lpcre2-posix" >&5 20799echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 20800if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 20801 echo $ECHO_N "(cached) $ECHO_C" >&6 20802else 20803 ac_check_lib_save_LIBS=$LIBS 20804LIBS="-lpcre2-posix $LIBS" 20805cat >"conftest.$ac_ext" <<_ACEOF 20806#line 20806 "configure" 20807#include "confdefs.h" 20808 20809/* Override any gcc2 internal prototype to avoid an error. */ 20810#ifdef __cplusplus 20811extern "C" 20812#endif 20813/* We use char because int might match the return type of a gcc2 20814 builtin and then its argument prototype would still apply. */ 20815char regcomp (); 20816int 20817main (void) 20818{ 20819regcomp (); 20820 ; 20821 return 0; 20822} 20823_ACEOF 20824rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20825if { (eval echo "$as_me:20825: \"$ac_link\"") >&5 20826 (eval $ac_link) 2>&5 20827 ac_status=$? 20828 echo "$as_me:20828: \$? = $ac_status" >&5 20829 (exit "$ac_status"); } && 20830 { ac_try='test -s "conftest$ac_exeext"' 20831 { (eval echo "$as_me:20831: \"$ac_try\"") >&5 20832 (eval $ac_try) 2>&5 20833 ac_status=$? 20834 echo "$as_me:20834: \$? = $ac_status" >&5 20835 (exit "$ac_status"); }; }; then 20836 ac_cv_lib_pcre2_posix_regcomp=yes 20837else 20838 echo "$as_me: failed program was:" >&5 20839cat "conftest.$ac_ext" >&5 20840ac_cv_lib_pcre2_posix_regcomp=no 20841fi 20842rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20843LIBS=$ac_check_lib_save_LIBS 20844fi 20845echo "$as_me:20845: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 20846echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 20847if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 20848 20849cf_add_libs="$LIBS" 20850# reverse order 20851cf_add_0lib= 20852for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20853# filter duplicates 20854for cf_add_1lib in $cf_add_0lib; do 20855 for cf_add_2lib in $cf_add_libs; do 20856 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20857 cf_add_1lib= 20858 break 20859 fi 20860 done 20861 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20862done 20863LIBS="$cf_add_libs" 20864 20865else 20866 echo "$as_me:20866: checking for regcomp in -lpcreposix" >&5 20867echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 20868if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 20869 echo $ECHO_N "(cached) $ECHO_C" >&6 20870else 20871 ac_check_lib_save_LIBS=$LIBS 20872LIBS="-lpcreposix $LIBS" 20873cat >"conftest.$ac_ext" <<_ACEOF 20874#line 20874 "configure" 20875#include "confdefs.h" 20876 20877/* Override any gcc2 internal prototype to avoid an error. */ 20878#ifdef __cplusplus 20879extern "C" 20880#endif 20881/* We use char because int might match the return type of a gcc2 20882 builtin and then its argument prototype would still apply. */ 20883char regcomp (); 20884int 20885main (void) 20886{ 20887regcomp (); 20888 ; 20889 return 0; 20890} 20891_ACEOF 20892rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20893if { (eval echo "$as_me:20893: \"$ac_link\"") >&5 20894 (eval $ac_link) 2>&5 20895 ac_status=$? 20896 echo "$as_me:20896: \$? = $ac_status" >&5 20897 (exit "$ac_status"); } && 20898 { ac_try='test -s "conftest$ac_exeext"' 20899 { (eval echo "$as_me:20899: \"$ac_try\"") >&5 20900 (eval $ac_try) 2>&5 20901 ac_status=$? 20902 echo "$as_me:20902: \$? = $ac_status" >&5 20903 (exit "$ac_status"); }; }; then 20904 ac_cv_lib_pcreposix_regcomp=yes 20905else 20906 echo "$as_me: failed program was:" >&5 20907cat "conftest.$ac_ext" >&5 20908ac_cv_lib_pcreposix_regcomp=no 20909fi 20910rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20911LIBS=$ac_check_lib_save_LIBS 20912fi 20913echo "$as_me:20913: result: $ac_cv_lib_pcreposix_regcomp" >&5 20914echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 20915if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 20916 20917cf_add_libs="$LIBS" 20918# reverse order 20919cf_add_0lib= 20920for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20921# filter duplicates 20922for cf_add_1lib in $cf_add_0lib; do 20923 for cf_add_2lib in $cf_add_libs; do 20924 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20925 cf_add_1lib= 20926 break 20927 fi 20928 done 20929 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20930done 20931LIBS="$cf_add_libs" 20932 20933else 20934 { { echo "$as_me:20934: error: Cannot find PCRE2 POSIX library" >&5 20935echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 20936 { (exit 1); exit 1; }; } 20937fi 20938 20939fi 20940 20941 ;; 20942 esac 20943 20944 # either way, check for the library header files 20945 20946for ac_header in pcre2posix.h pcreposix.h 20947do 20948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20949echo "$as_me:20949: checking for $ac_header" >&5 20950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20951if eval "test \"\${$as_ac_Header+set}\" = set"; then 20952 echo $ECHO_N "(cached) $ECHO_C" >&6 20953else 20954 cat >"conftest.$ac_ext" <<_ACEOF 20955#line 20955 "configure" 20956#include "confdefs.h" 20957#include <$ac_header> 20958_ACEOF 20959if { (eval echo "$as_me:20959: \"$ac_cpp "conftest.$ac_ext"\"") >&5 20960 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 20961 ac_status=$? 20962 $EGREP -v '^ *\+' conftest.er1 >conftest.err 20963 rm -f conftest.er1 20964 cat conftest.err >&5 20965 echo "$as_me:20965: \$? = $ac_status" >&5 20966 (exit "$ac_status"); } >/dev/null; then 20967 if test -s conftest.err; then 20968 ac_cpp_err=$ac_c_preproc_warn_flag 20969 else 20970 ac_cpp_err= 20971 fi 20972else 20973 ac_cpp_err=yes 20974fi 20975if test -z "$ac_cpp_err"; then 20976 eval "$as_ac_Header=yes" 20977else 20978 echo "$as_me: failed program was:" >&5 20979 cat "conftest.$ac_ext" >&5 20980 eval "$as_ac_Header=no" 20981fi 20982rm -f conftest.err "conftest.$ac_ext" 20983fi 20984echo "$as_me:20984: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 20985echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 20986if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 20987 cat >>confdefs.h <<EOF 20988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20989EOF 20990 20991fi 20992done 20993 20994for ac_func in PCRE2regcomp 20995do 20996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20997echo "$as_me:20997: checking for $ac_func" >&5 20998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20999if eval "test \"\${$as_ac_var+set}\" = set"; then 21000 echo $ECHO_N "(cached) $ECHO_C" >&6 21001else 21002 cat >"conftest.$ac_ext" <<_ACEOF 21003#line 21003 "configure" 21004#include "confdefs.h" 21005#define $ac_func autoconf_temporary 21006#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21007#undef $ac_func 21008 21009#ifdef __cplusplus 21010extern "C" 21011#endif 21012 21013/* We use char because int might match the return type of a gcc2 21014 builtin and then its argument prototype would still apply. */ 21015char $ac_func (void); 21016 21017int 21018main (void) 21019{ 21020 21021/* The GNU C library defines stubs for functions which it implements 21022 to always fail with ENOSYS. Some functions are actually named 21023 something starting with __ and the normal name is an alias. */ 21024#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21025#error found stub for $ac_func 21026#endif 21027 21028 return $ac_func (); 21029 ; 21030 return 0; 21031} 21032_ACEOF 21033rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21034if { (eval echo "$as_me:21034: \"$ac_link\"") >&5 21035 (eval $ac_link) 2>&5 21036 ac_status=$? 21037 echo "$as_me:21037: \$? = $ac_status" >&5 21038 (exit "$ac_status"); } && 21039 { ac_try='test -s "conftest$ac_exeext"' 21040 { (eval echo "$as_me:21040: \"$ac_try\"") >&5 21041 (eval $ac_try) 2>&5 21042 ac_status=$? 21043 echo "$as_me:21043: \$? = $ac_status" >&5 21044 (exit "$ac_status"); }; }; then 21045 eval "$as_ac_var=yes" 21046else 21047 echo "$as_me: failed program was:" >&5 21048cat "conftest.$ac_ext" >&5 21049eval "$as_ac_var=no" 21050fi 21051rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21052fi 21053echo "$as_me:21053: result: `eval echo '${'"$as_ac_var"'}'`" >&5 21054echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 21055if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 21056 cat >>confdefs.h <<EOF 21057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21058EOF 21059 21060fi 21061done 21062 21063fi 21064 21065 if test "$with_pcre2" = no ; then 21066 21067echo "$as_me:21067: checking if you want to use PCRE for regular-expressions" >&5 21068echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 21069 21070# Check whether --with-pcre or --without-pcre was given. 21071if test "${with_pcre+set}" = set; then 21072 withval="$with_pcre" 21073 21074fi; 21075test -z "$with_pcre" && with_pcre=no 21076echo "$as_me:21076: result: $with_pcre" >&5 21077echo "${ECHO_T}$with_pcre" >&6 21078 21079if test "$with_pcre" != no ; then 21080 21081if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then 21082 test -n "$verbose" && echo " found package libpcre" 1>&6 21083 21084echo "${as_me:-configure}:21084: testing found package libpcre ..." 1>&5 21085 21086 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`" 21087 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`" 21088 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 21089 21090echo "${as_me:-configure}:21090: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 21091 21092 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 21093 21094echo "${as_me:-configure}:21094: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 21095 21096cf_fix_cppflags=no 21097cf_new_cflags= 21098cf_new_cppflags= 21099cf_new_extra_cppflags= 21100 21101for cf_add_cflags in $cf_pkgconfig_incs 21102do 21103case "$cf_fix_cppflags" in 21104(no) 21105 case "$cf_add_cflags" in 21106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 21107 case "$cf_add_cflags" in 21108 (-D*) 21109 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 21110 21111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21112 && test -z "${cf_tst_cflags}" \ 21113 && cf_fix_cppflags=yes 21114 21115 if test "$cf_fix_cppflags" = yes ; then 21116 21117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21119 21120 continue 21121 elif test "${cf_tst_cflags}" = "\"'" ; then 21122 21123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21125 21126 continue 21127 fi 21128 ;; 21129 esac 21130 case "$CPPFLAGS" in 21131 (*$cf_add_cflags) 21132 ;; 21133 (*) 21134 case "$cf_add_cflags" in 21135 (-D*) 21136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 21137 21138CPPFLAGS=`echo "$CPPFLAGS" | \ 21139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 21140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 21141 21142 ;; 21143 esac 21144 21145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 21146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 21147 21148 ;; 21149 esac 21150 ;; 21151 (*) 21152 21153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 21154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 21155 21156 ;; 21157 esac 21158 ;; 21159(yes) 21160 21161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21163 21164 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 21165 21166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21167 && test -z "${cf_tst_cflags}" \ 21168 && cf_fix_cppflags=no 21169 ;; 21170esac 21171done 21172 21173if test -n "$cf_new_cflags" ; then 21174 21175 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 21176 CFLAGS="${CFLAGS}$cf_new_cflags" 21177 21178fi 21179 21180if test -n "$cf_new_cppflags" ; then 21181 21182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 21183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 21184 21185fi 21186 21187if test -n "$cf_new_extra_cppflags" ; then 21188 21189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 21190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 21191 21192fi 21193 21194cf_add_libs="$LIBS" 21195# reverse order 21196cf_add_0lib= 21197for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21198# filter duplicates 21199for cf_add_1lib in $cf_add_0lib; do 21200 for cf_add_2lib in $cf_add_libs; do 21201 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21202 cf_add_1lib= 21203 break 21204 fi 21205 done 21206 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21207done 21208LIBS="$cf_add_libs" 21209 21210 : 21211else 21212 cf_pkgconfig_incs= 21213 cf_pkgconfig_libs= 21214 21215echo "$as_me:21215: checking for pcre_compile in -lpcre" >&5 21216echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 21217if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 21218 echo $ECHO_N "(cached) $ECHO_C" >&6 21219else 21220 ac_check_lib_save_LIBS=$LIBS 21221LIBS="-lpcre $LIBS" 21222cat >"conftest.$ac_ext" <<_ACEOF 21223#line 21223 "configure" 21224#include "confdefs.h" 21225 21226/* Override any gcc2 internal prototype to avoid an error. */ 21227#ifdef __cplusplus 21228extern "C" 21229#endif 21230/* We use char because int might match the return type of a gcc2 21231 builtin and then its argument prototype would still apply. */ 21232char pcre_compile (); 21233int 21234main (void) 21235{ 21236pcre_compile (); 21237 ; 21238 return 0; 21239} 21240_ACEOF 21241rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21242if { (eval echo "$as_me:21242: \"$ac_link\"") >&5 21243 (eval $ac_link) 2>&5 21244 ac_status=$? 21245 echo "$as_me:21245: \$? = $ac_status" >&5 21246 (exit "$ac_status"); } && 21247 { ac_try='test -s "conftest$ac_exeext"' 21248 { (eval echo "$as_me:21248: \"$ac_try\"") >&5 21249 (eval $ac_try) 2>&5 21250 ac_status=$? 21251 echo "$as_me:21251: \$? = $ac_status" >&5 21252 (exit "$ac_status"); }; }; then 21253 ac_cv_lib_pcre_pcre_compile=yes 21254else 21255 echo "$as_me: failed program was:" >&5 21256cat "conftest.$ac_ext" >&5 21257ac_cv_lib_pcre_pcre_compile=no 21258fi 21259rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21260LIBS=$ac_check_lib_save_LIBS 21261fi 21262echo "$as_me:21262: result: $ac_cv_lib_pcre_pcre_compile" >&5 21263echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 21264if test "$ac_cv_lib_pcre_pcre_compile" = yes; then 21265 cat >>confdefs.h <<EOF 21266#define HAVE_LIBPCRE 1 21267EOF 21268 21269 LIBS="-lpcre $LIBS" 21270 21271else 21272 { { echo "$as_me:21272: error: Cannot find PCRE library" >&5 21273echo "$as_me: error: Cannot find PCRE library" >&2;} 21274 { (exit 1); exit 1; }; } 21275fi 21276 21277fi 21278 21279cat >>confdefs.h <<\EOF 21280#define HAVE_LIB_PCRE 1 21281EOF 21282 21283 case $LIBS in 21284 (*pcreposix*) 21285 ;; 21286 (*) 21287 echo "$as_me:21287: checking for pcreposix_regcomp in -lpcreposix" >&5 21288echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 21289if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 21290 echo $ECHO_N "(cached) $ECHO_C" >&6 21291else 21292 ac_check_lib_save_LIBS=$LIBS 21293LIBS="-lpcreposix $LIBS" 21294cat >"conftest.$ac_ext" <<_ACEOF 21295#line 21295 "configure" 21296#include "confdefs.h" 21297 21298/* Override any gcc2 internal prototype to avoid an error. */ 21299#ifdef __cplusplus 21300extern "C" 21301#endif 21302/* We use char because int might match the return type of a gcc2 21303 builtin and then its argument prototype would still apply. */ 21304char pcreposix_regcomp (); 21305int 21306main (void) 21307{ 21308pcreposix_regcomp (); 21309 ; 21310 return 0; 21311} 21312_ACEOF 21313rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21314if { (eval echo "$as_me:21314: \"$ac_link\"") >&5 21315 (eval $ac_link) 2>&5 21316 ac_status=$? 21317 echo "$as_me:21317: \$? = $ac_status" >&5 21318 (exit "$ac_status"); } && 21319 { ac_try='test -s "conftest$ac_exeext"' 21320 { (eval echo "$as_me:21320: \"$ac_try\"") >&5 21321 (eval $ac_try) 2>&5 21322 ac_status=$? 21323 echo "$as_me:21323: \$? = $ac_status" >&5 21324 (exit "$ac_status"); }; }; then 21325 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 21326else 21327 echo "$as_me: failed program was:" >&5 21328cat "conftest.$ac_ext" >&5 21329ac_cv_lib_pcreposix_pcreposix_regcomp=no 21330fi 21331rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21332LIBS=$ac_check_lib_save_LIBS 21333fi 21334echo "$as_me:21334: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 21335echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 21336if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then 21337 21338cat >>confdefs.h <<\EOF 21339#define HAVE_PCREPOSIX_H 1 21340EOF 21341 21342cf_add_libs="$LIBS" 21343# reverse order 21344cf_add_0lib= 21345for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21346# filter duplicates 21347for cf_add_1lib in $cf_add_0lib; do 21348 for cf_add_2lib in $cf_add_libs; do 21349 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21350 cf_add_1lib= 21351 break 21352 fi 21353 done 21354 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21355done 21356LIBS="$cf_add_libs" 21357 21358else 21359 echo "$as_me:21359: checking for regcomp in -lpcreposix" >&5 21360echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 21361if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 21362 echo $ECHO_N "(cached) $ECHO_C" >&6 21363else 21364 ac_check_lib_save_LIBS=$LIBS 21365LIBS="-lpcreposix $LIBS" 21366cat >"conftest.$ac_ext" <<_ACEOF 21367#line 21367 "configure" 21368#include "confdefs.h" 21369 21370/* Override any gcc2 internal prototype to avoid an error. */ 21371#ifdef __cplusplus 21372extern "C" 21373#endif 21374/* We use char because int might match the return type of a gcc2 21375 builtin and then its argument prototype would still apply. */ 21376char regcomp (); 21377int 21378main (void) 21379{ 21380regcomp (); 21381 ; 21382 return 0; 21383} 21384_ACEOF 21385rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21386if { (eval echo "$as_me:21386: \"$ac_link\"") >&5 21387 (eval $ac_link) 2>&5 21388 ac_status=$? 21389 echo "$as_me:21389: \$? = $ac_status" >&5 21390 (exit "$ac_status"); } && 21391 { ac_try='test -s "conftest$ac_exeext"' 21392 { (eval echo "$as_me:21392: \"$ac_try\"") >&5 21393 (eval $ac_try) 2>&5 21394 ac_status=$? 21395 echo "$as_me:21395: \$? = $ac_status" >&5 21396 (exit "$ac_status"); }; }; then 21397 ac_cv_lib_pcreposix_regcomp=yes 21398else 21399 echo "$as_me: failed program was:" >&5 21400cat "conftest.$ac_ext" >&5 21401ac_cv_lib_pcreposix_regcomp=no 21402fi 21403rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21404LIBS=$ac_check_lib_save_LIBS 21405fi 21406echo "$as_me:21406: result: $ac_cv_lib_pcreposix_regcomp" >&5 21407echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 21408if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 21409 21410cat >>confdefs.h <<\EOF 21411#define HAVE_PCREPOSIX_H 1 21412EOF 21413 21414cf_add_libs="$LIBS" 21415# reverse order 21416cf_add_0lib= 21417for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21418# filter duplicates 21419for cf_add_1lib in $cf_add_0lib; do 21420 for cf_add_2lib in $cf_add_libs; do 21421 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21422 cf_add_1lib= 21423 break 21424 fi 21425 done 21426 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21427done 21428LIBS="$cf_add_libs" 21429 21430else 21431 { { echo "$as_me:21431: error: Cannot find PCRE POSIX library" >&5 21432echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 21433 { (exit 1); exit 1; }; } 21434fi 21435 21436fi 21437 21438 ;; 21439 esac 21440fi 21441 21442 if test "$with_pcre" = no ; then 21443 21444cf_regex_func=no 21445cf_regex_libs= 21446case "$host_os" in 21447(mingw*) 21448 # -lsystre -ltre -lintl -liconv 21449 echo "$as_me:21449: checking for regcomp in -lsystre" >&5 21450echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 21451if test "${ac_cv_lib_systre_regcomp+set}" = set; then 21452 echo $ECHO_N "(cached) $ECHO_C" >&6 21453else 21454 ac_check_lib_save_LIBS=$LIBS 21455LIBS="-lsystre $LIBS" 21456cat >"conftest.$ac_ext" <<_ACEOF 21457#line 21457 "configure" 21458#include "confdefs.h" 21459 21460/* Override any gcc2 internal prototype to avoid an error. */ 21461#ifdef __cplusplus 21462extern "C" 21463#endif 21464/* We use char because int might match the return type of a gcc2 21465 builtin and then its argument prototype would still apply. */ 21466char regcomp (); 21467int 21468main (void) 21469{ 21470regcomp (); 21471 ; 21472 return 0; 21473} 21474_ACEOF 21475rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21476if { (eval echo "$as_me:21476: \"$ac_link\"") >&5 21477 (eval $ac_link) 2>&5 21478 ac_status=$? 21479 echo "$as_me:21479: \$? = $ac_status" >&5 21480 (exit "$ac_status"); } && 21481 { ac_try='test -s "conftest$ac_exeext"' 21482 { (eval echo "$as_me:21482: \"$ac_try\"") >&5 21483 (eval $ac_try) 2>&5 21484 ac_status=$? 21485 echo "$as_me:21485: \$? = $ac_status" >&5 21486 (exit "$ac_status"); }; }; then 21487 ac_cv_lib_systre_regcomp=yes 21488else 21489 echo "$as_me: failed program was:" >&5 21490cat "conftest.$ac_ext" >&5 21491ac_cv_lib_systre_regcomp=no 21492fi 21493rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21494LIBS=$ac_check_lib_save_LIBS 21495fi 21496echo "$as_me:21496: result: $ac_cv_lib_systre_regcomp" >&5 21497echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 21498if test "$ac_cv_lib_systre_regcomp" = yes; then 21499 21500 echo "$as_me:21500: checking for libiconv_open in -liconv" >&5 21501echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 21502if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 21503 echo $ECHO_N "(cached) $ECHO_C" >&6 21504else 21505 ac_check_lib_save_LIBS=$LIBS 21506LIBS="-liconv $LIBS" 21507cat >"conftest.$ac_ext" <<_ACEOF 21508#line 21508 "configure" 21509#include "confdefs.h" 21510 21511/* Override any gcc2 internal prototype to avoid an error. */ 21512#ifdef __cplusplus 21513extern "C" 21514#endif 21515/* We use char because int might match the return type of a gcc2 21516 builtin and then its argument prototype would still apply. */ 21517char libiconv_open (); 21518int 21519main (void) 21520{ 21521libiconv_open (); 21522 ; 21523 return 0; 21524} 21525_ACEOF 21526rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21527if { (eval echo "$as_me:21527: \"$ac_link\"") >&5 21528 (eval $ac_link) 2>&5 21529 ac_status=$? 21530 echo "$as_me:21530: \$? = $ac_status" >&5 21531 (exit "$ac_status"); } && 21532 { ac_try='test -s "conftest$ac_exeext"' 21533 { (eval echo "$as_me:21533: \"$ac_try\"") >&5 21534 (eval $ac_try) 2>&5 21535 ac_status=$? 21536 echo "$as_me:21536: \$? = $ac_status" >&5 21537 (exit "$ac_status"); }; }; then 21538 ac_cv_lib_iconv_libiconv_open=yes 21539else 21540 echo "$as_me: failed program was:" >&5 21541cat "conftest.$ac_ext" >&5 21542ac_cv_lib_iconv_libiconv_open=no 21543fi 21544rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21545LIBS=$ac_check_lib_save_LIBS 21546fi 21547echo "$as_me:21547: result: $ac_cv_lib_iconv_libiconv_open" >&5 21548echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 21549if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 21550 21551cf_add_libs="$LIBS" 21552# reverse order 21553cf_add_0lib= 21554for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21555# filter duplicates 21556for cf_add_1lib in $cf_add_0lib; do 21557 for cf_add_2lib in $cf_add_libs; do 21558 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21559 cf_add_1lib= 21560 break 21561 fi 21562 done 21563 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21564done 21565LIBS="$cf_add_libs" 21566 21567fi 21568 21569 echo "$as_me:21569: checking for libintl_gettext in -lintl" >&5 21570echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 21571if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 21572 echo $ECHO_N "(cached) $ECHO_C" >&6 21573else 21574 ac_check_lib_save_LIBS=$LIBS 21575LIBS="-lintl $LIBS" 21576cat >"conftest.$ac_ext" <<_ACEOF 21577#line 21577 "configure" 21578#include "confdefs.h" 21579 21580/* Override any gcc2 internal prototype to avoid an error. */ 21581#ifdef __cplusplus 21582extern "C" 21583#endif 21584/* We use char because int might match the return type of a gcc2 21585 builtin and then its argument prototype would still apply. */ 21586char libintl_gettext (); 21587int 21588main (void) 21589{ 21590libintl_gettext (); 21591 ; 21592 return 0; 21593} 21594_ACEOF 21595rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21596if { (eval echo "$as_me:21596: \"$ac_link\"") >&5 21597 (eval $ac_link) 2>&5 21598 ac_status=$? 21599 echo "$as_me:21599: \$? = $ac_status" >&5 21600 (exit "$ac_status"); } && 21601 { ac_try='test -s "conftest$ac_exeext"' 21602 { (eval echo "$as_me:21602: \"$ac_try\"") >&5 21603 (eval $ac_try) 2>&5 21604 ac_status=$? 21605 echo "$as_me:21605: \$? = $ac_status" >&5 21606 (exit "$ac_status"); }; }; then 21607 ac_cv_lib_intl_libintl_gettext=yes 21608else 21609 echo "$as_me: failed program was:" >&5 21610cat "conftest.$ac_ext" >&5 21611ac_cv_lib_intl_libintl_gettext=no 21612fi 21613rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21614LIBS=$ac_check_lib_save_LIBS 21615fi 21616echo "$as_me:21616: result: $ac_cv_lib_intl_libintl_gettext" >&5 21617echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 21618if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 21619 21620cf_add_libs="$LIBS" 21621# reverse order 21622cf_add_0lib= 21623for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21624# filter duplicates 21625for cf_add_1lib in $cf_add_0lib; do 21626 for cf_add_2lib in $cf_add_libs; do 21627 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21628 cf_add_1lib= 21629 break 21630 fi 21631 done 21632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21633done 21634LIBS="$cf_add_libs" 21635 21636fi 21637 21638 echo "$as_me:21638: checking for tre_regcomp in -ltre" >&5 21639echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 21640if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 21641 echo $ECHO_N "(cached) $ECHO_C" >&6 21642else 21643 ac_check_lib_save_LIBS=$LIBS 21644LIBS="-ltre $LIBS" 21645cat >"conftest.$ac_ext" <<_ACEOF 21646#line 21646 "configure" 21647#include "confdefs.h" 21648 21649/* Override any gcc2 internal prototype to avoid an error. */ 21650#ifdef __cplusplus 21651extern "C" 21652#endif 21653/* We use char because int might match the return type of a gcc2 21654 builtin and then its argument prototype would still apply. */ 21655char tre_regcomp (); 21656int 21657main (void) 21658{ 21659tre_regcomp (); 21660 ; 21661 return 0; 21662} 21663_ACEOF 21664rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21665if { (eval echo "$as_me:21665: \"$ac_link\"") >&5 21666 (eval $ac_link) 2>&5 21667 ac_status=$? 21668 echo "$as_me:21668: \$? = $ac_status" >&5 21669 (exit "$ac_status"); } && 21670 { ac_try='test -s "conftest$ac_exeext"' 21671 { (eval echo "$as_me:21671: \"$ac_try\"") >&5 21672 (eval $ac_try) 2>&5 21673 ac_status=$? 21674 echo "$as_me:21674: \$? = $ac_status" >&5 21675 (exit "$ac_status"); }; }; then 21676 ac_cv_lib_tre_tre_regcomp=yes 21677else 21678 echo "$as_me: failed program was:" >&5 21679cat "conftest.$ac_ext" >&5 21680ac_cv_lib_tre_tre_regcomp=no 21681fi 21682rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21683LIBS=$ac_check_lib_save_LIBS 21684fi 21685echo "$as_me:21685: result: $ac_cv_lib_tre_tre_regcomp" >&5 21686echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 21687if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 21688 21689cf_add_libs="$LIBS" 21690# reverse order 21691cf_add_0lib= 21692for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21693# filter duplicates 21694for cf_add_1lib in $cf_add_0lib; do 21695 for cf_add_2lib in $cf_add_libs; do 21696 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21697 cf_add_1lib= 21698 break 21699 fi 21700 done 21701 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21702done 21703LIBS="$cf_add_libs" 21704 21705fi 21706 21707cf_add_libs="$LIBS" 21708# reverse order 21709cf_add_0lib= 21710for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21711# filter duplicates 21712for cf_add_1lib in $cf_add_0lib; do 21713 for cf_add_2lib in $cf_add_libs; do 21714 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21715 cf_add_1lib= 21716 break 21717 fi 21718 done 21719 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21720done 21721LIBS="$cf_add_libs" 21722 21723 cf_regex_func=regcomp 21724 21725else 21726 21727 echo "$as_me:21727: checking for regcomp in -lgnurx" >&5 21728echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 21729if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 21730 echo $ECHO_N "(cached) $ECHO_C" >&6 21731else 21732 ac_check_lib_save_LIBS=$LIBS 21733LIBS="-lgnurx $LIBS" 21734cat >"conftest.$ac_ext" <<_ACEOF 21735#line 21735 "configure" 21736#include "confdefs.h" 21737 21738/* Override any gcc2 internal prototype to avoid an error. */ 21739#ifdef __cplusplus 21740extern "C" 21741#endif 21742/* We use char because int might match the return type of a gcc2 21743 builtin and then its argument prototype would still apply. */ 21744char regcomp (); 21745int 21746main (void) 21747{ 21748regcomp (); 21749 ; 21750 return 0; 21751} 21752_ACEOF 21753rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21754if { (eval echo "$as_me:21754: \"$ac_link\"") >&5 21755 (eval $ac_link) 2>&5 21756 ac_status=$? 21757 echo "$as_me:21757: \$? = $ac_status" >&5 21758 (exit "$ac_status"); } && 21759 { ac_try='test -s "conftest$ac_exeext"' 21760 { (eval echo "$as_me:21760: \"$ac_try\"") >&5 21761 (eval $ac_try) 2>&5 21762 ac_status=$? 21763 echo "$as_me:21763: \$? = $ac_status" >&5 21764 (exit "$ac_status"); }; }; then 21765 ac_cv_lib_gnurx_regcomp=yes 21766else 21767 echo "$as_me: failed program was:" >&5 21768cat "conftest.$ac_ext" >&5 21769ac_cv_lib_gnurx_regcomp=no 21770fi 21771rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21772LIBS=$ac_check_lib_save_LIBS 21773fi 21774echo "$as_me:21774: result: $ac_cv_lib_gnurx_regcomp" >&5 21775echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 21776if test "$ac_cv_lib_gnurx_regcomp" = yes; then 21777 21778cf_add_libs="$LIBS" 21779# reverse order 21780cf_add_0lib= 21781for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21782# filter duplicates 21783for cf_add_1lib in $cf_add_0lib; do 21784 for cf_add_2lib in $cf_add_libs; do 21785 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21786 cf_add_1lib= 21787 break 21788 fi 21789 done 21790 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21791done 21792LIBS="$cf_add_libs" 21793 21794 cf_regex_func=regcomp 21795fi 21796 21797fi 21798 21799 ;; 21800(*) 21801 cf_regex_libs="regex re" 21802 echo "$as_me:21802: checking for regcomp" >&5 21803echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 21804if test "${ac_cv_func_regcomp+set}" = set; then 21805 echo $ECHO_N "(cached) $ECHO_C" >&6 21806else 21807 cat >"conftest.$ac_ext" <<_ACEOF 21808#line 21808 "configure" 21809#include "confdefs.h" 21810#define regcomp autoconf_temporary 21811#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21812#undef regcomp 21813 21814#ifdef __cplusplus 21815extern "C" 21816#endif 21817 21818/* We use char because int might match the return type of a gcc2 21819 builtin and then its argument prototype would still apply. */ 21820char regcomp (void); 21821 21822int 21823main (void) 21824{ 21825 21826/* The GNU C library defines stubs for functions which it implements 21827 to always fail with ENOSYS. Some functions are actually named 21828 something starting with __ and the normal name is an alias. */ 21829#if defined (__stub_regcomp) || defined (__stub___regcomp) 21830#error found stub for regcomp 21831#endif 21832 21833 return regcomp (); 21834 ; 21835 return 0; 21836} 21837_ACEOF 21838rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21839if { (eval echo "$as_me:21839: \"$ac_link\"") >&5 21840 (eval $ac_link) 2>&5 21841 ac_status=$? 21842 echo "$as_me:21842: \$? = $ac_status" >&5 21843 (exit "$ac_status"); } && 21844 { ac_try='test -s "conftest$ac_exeext"' 21845 { (eval echo "$as_me:21845: \"$ac_try\"") >&5 21846 (eval $ac_try) 2>&5 21847 ac_status=$? 21848 echo "$as_me:21848: \$? = $ac_status" >&5 21849 (exit "$ac_status"); }; }; then 21850 ac_cv_func_regcomp=yes 21851else 21852 echo "$as_me: failed program was:" >&5 21853cat "conftest.$ac_ext" >&5 21854ac_cv_func_regcomp=no 21855fi 21856rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21857fi 21858echo "$as_me:21858: result: $ac_cv_func_regcomp" >&5 21859echo "${ECHO_T}$ac_cv_func_regcomp" >&6 21860if test "$ac_cv_func_regcomp" = yes; then 21861 cf_regex_func=regcomp 21862else 21863 21864 for cf_regex_lib in $cf_regex_libs 21865 do 21866 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 21867echo "$as_me:21867: checking for regcomp in -l$cf_regex_lib" >&5 21868echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 21869if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21870 echo $ECHO_N "(cached) $ECHO_C" >&6 21871else 21872 ac_check_lib_save_LIBS=$LIBS 21873LIBS="-l$cf_regex_lib $LIBS" 21874cat >"conftest.$ac_ext" <<_ACEOF 21875#line 21875 "configure" 21876#include "confdefs.h" 21877 21878/* Override any gcc2 internal prototype to avoid an error. */ 21879#ifdef __cplusplus 21880extern "C" 21881#endif 21882/* We use char because int might match the return type of a gcc2 21883 builtin and then its argument prototype would still apply. */ 21884char regcomp (); 21885int 21886main (void) 21887{ 21888regcomp (); 21889 ; 21890 return 0; 21891} 21892_ACEOF 21893rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21894if { (eval echo "$as_me:21894: \"$ac_link\"") >&5 21895 (eval $ac_link) 2>&5 21896 ac_status=$? 21897 echo "$as_me:21897: \$? = $ac_status" >&5 21898 (exit "$ac_status"); } && 21899 { ac_try='test -s "conftest$ac_exeext"' 21900 { (eval echo "$as_me:21900: \"$ac_try\"") >&5 21901 (eval $ac_try) 2>&5 21902 ac_status=$? 21903 echo "$as_me:21903: \$? = $ac_status" >&5 21904 (exit "$ac_status"); }; }; then 21905 eval "$as_ac_Lib=yes" 21906else 21907 echo "$as_me: failed program was:" >&5 21908cat "conftest.$ac_ext" >&5 21909eval "$as_ac_Lib=no" 21910fi 21911rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21912LIBS=$ac_check_lib_save_LIBS 21913fi 21914echo "$as_me:21914: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 21915echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 21916if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 21917 21918cf_add_libs="$LIBS" 21919# reverse order 21920cf_add_0lib= 21921for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21922# filter duplicates 21923for cf_add_1lib in $cf_add_0lib; do 21924 for cf_add_2lib in $cf_add_libs; do 21925 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21926 cf_add_1lib= 21927 break 21928 fi 21929 done 21930 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21931done 21932LIBS="$cf_add_libs" 21933 21934 cf_regex_func=regcomp 21935 break 21936fi 21937 21938 done 21939 21940fi 21941 21942 ;; 21943esac 21944 21945if test "$cf_regex_func" = no ; then 21946 echo "$as_me:21946: checking for compile" >&5 21947echo $ECHO_N "checking for compile... $ECHO_C" >&6 21948if test "${ac_cv_func_compile+set}" = set; then 21949 echo $ECHO_N "(cached) $ECHO_C" >&6 21950else 21951 cat >"conftest.$ac_ext" <<_ACEOF 21952#line 21952 "configure" 21953#include "confdefs.h" 21954#define compile autoconf_temporary 21955#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21956#undef compile 21957 21958#ifdef __cplusplus 21959extern "C" 21960#endif 21961 21962/* We use char because int might match the return type of a gcc2 21963 builtin and then its argument prototype would still apply. */ 21964char compile (void); 21965 21966int 21967main (void) 21968{ 21969 21970/* The GNU C library defines stubs for functions which it implements 21971 to always fail with ENOSYS. Some functions are actually named 21972 something starting with __ and the normal name is an alias. */ 21973#if defined (__stub_compile) || defined (__stub___compile) 21974#error found stub for compile 21975#endif 21976 21977 return compile (); 21978 ; 21979 return 0; 21980} 21981_ACEOF 21982rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21983if { (eval echo "$as_me:21983: \"$ac_link\"") >&5 21984 (eval $ac_link) 2>&5 21985 ac_status=$? 21986 echo "$as_me:21986: \$? = $ac_status" >&5 21987 (exit "$ac_status"); } && 21988 { ac_try='test -s "conftest$ac_exeext"' 21989 { (eval echo "$as_me:21989: \"$ac_try\"") >&5 21990 (eval $ac_try) 2>&5 21991 ac_status=$? 21992 echo "$as_me:21992: \$? = $ac_status" >&5 21993 (exit "$ac_status"); }; }; then 21994 ac_cv_func_compile=yes 21995else 21996 echo "$as_me: failed program was:" >&5 21997cat "conftest.$ac_ext" >&5 21998ac_cv_func_compile=no 21999fi 22000rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22001fi 22002echo "$as_me:22002: result: $ac_cv_func_compile" >&5 22003echo "${ECHO_T}$ac_cv_func_compile" >&6 22004if test "$ac_cv_func_compile" = yes; then 22005 cf_regex_func=compile 22006else 22007 22008 echo "$as_me:22008: checking for compile in -lgen" >&5 22009echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 22010if test "${ac_cv_lib_gen_compile+set}" = set; then 22011 echo $ECHO_N "(cached) $ECHO_C" >&6 22012else 22013 ac_check_lib_save_LIBS=$LIBS 22014LIBS="-lgen $LIBS" 22015cat >"conftest.$ac_ext" <<_ACEOF 22016#line 22016 "configure" 22017#include "confdefs.h" 22018 22019/* Override any gcc2 internal prototype to avoid an error. */ 22020#ifdef __cplusplus 22021extern "C" 22022#endif 22023/* We use char because int might match the return type of a gcc2 22024 builtin and then its argument prototype would still apply. */ 22025char compile (); 22026int 22027main (void) 22028{ 22029compile (); 22030 ; 22031 return 0; 22032} 22033_ACEOF 22034rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22035if { (eval echo "$as_me:22035: \"$ac_link\"") >&5 22036 (eval $ac_link) 2>&5 22037 ac_status=$? 22038 echo "$as_me:22038: \$? = $ac_status" >&5 22039 (exit "$ac_status"); } && 22040 { ac_try='test -s "conftest$ac_exeext"' 22041 { (eval echo "$as_me:22041: \"$ac_try\"") >&5 22042 (eval $ac_try) 2>&5 22043 ac_status=$? 22044 echo "$as_me:22044: \$? = $ac_status" >&5 22045 (exit "$ac_status"); }; }; then 22046 ac_cv_lib_gen_compile=yes 22047else 22048 echo "$as_me: failed program was:" >&5 22049cat "conftest.$ac_ext" >&5 22050ac_cv_lib_gen_compile=no 22051fi 22052rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22053LIBS=$ac_check_lib_save_LIBS 22054fi 22055echo "$as_me:22055: result: $ac_cv_lib_gen_compile" >&5 22056echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 22057if test "$ac_cv_lib_gen_compile" = yes; then 22058 22059cf_add_libs="$LIBS" 22060# reverse order 22061cf_add_0lib= 22062for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22063# filter duplicates 22064for cf_add_1lib in $cf_add_0lib; do 22065 for cf_add_2lib in $cf_add_libs; do 22066 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22067 cf_add_1lib= 22068 break 22069 fi 22070 done 22071 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22072done 22073LIBS="$cf_add_libs" 22074 22075 cf_regex_func=compile 22076fi 22077 22078fi 22079 22080fi 22081 22082if test "$cf_regex_func" = no ; then 22083 { echo "$as_me:22083: WARNING: cannot find regular expression library" >&5 22084echo "$as_me: WARNING: cannot find regular expression library" >&2;} 22085fi 22086 22087echo "$as_me:22087: checking for regular-expression headers" >&5 22088echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 22089if test "${cf_cv_regex_hdrs+set}" = set; then 22090 echo $ECHO_N "(cached) $ECHO_C" >&6 22091else 22092 22093cf_cv_regex_hdrs=no 22094case "$cf_regex_func" in 22095(compile) 22096 for cf_regex_hdr in regexp.h regexpr.h 22097 do 22098 cat >"conftest.$ac_ext" <<_ACEOF 22099#line 22099 "configure" 22100#include "confdefs.h" 22101#include <$cf_regex_hdr> 22102int 22103main (void) 22104{ 22105 22106 char *p = compile("", "", "", 0); 22107 int x = step("", ""); 22108 (void)p; 22109 (void)x; 22110 22111 ; 22112 return 0; 22113} 22114_ACEOF 22115rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22116if { (eval echo "$as_me:22116: \"$ac_link\"") >&5 22117 (eval $ac_link) 2>&5 22118 ac_status=$? 22119 echo "$as_me:22119: \$? = $ac_status" >&5 22120 (exit "$ac_status"); } && 22121 { ac_try='test -s "conftest$ac_exeext"' 22122 { (eval echo "$as_me:22122: \"$ac_try\"") >&5 22123 (eval $ac_try) 2>&5 22124 ac_status=$? 22125 echo "$as_me:22125: \$? = $ac_status" >&5 22126 (exit "$ac_status"); }; }; then 22127 22128 cf_cv_regex_hdrs=$cf_regex_hdr 22129 break 22130 22131else 22132 echo "$as_me: failed program was:" >&5 22133cat "conftest.$ac_ext" >&5 22134fi 22135rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22136 done 22137 ;; 22138(*) 22139 for cf_regex_hdr in regex.h 22140 do 22141 cat >"conftest.$ac_ext" <<_ACEOF 22142#line 22142 "configure" 22143#include "confdefs.h" 22144#include <sys/types.h> 22145#include <$cf_regex_hdr> 22146int 22147main (void) 22148{ 22149 22150 regex_t *p = 0; 22151 int x = regcomp(p, "", 0); 22152 int y = regexec(p, "", 0, 0, 0); 22153 (void)x; 22154 (void)y; 22155 regfree(p); 22156 22157 ; 22158 return 0; 22159} 22160_ACEOF 22161rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22162if { (eval echo "$as_me:22162: \"$ac_link\"") >&5 22163 (eval $ac_link) 2>&5 22164 ac_status=$? 22165 echo "$as_me:22165: \$? = $ac_status" >&5 22166 (exit "$ac_status"); } && 22167 { ac_try='test -s "conftest$ac_exeext"' 22168 { (eval echo "$as_me:22168: \"$ac_try\"") >&5 22169 (eval $ac_try) 2>&5 22170 ac_status=$? 22171 echo "$as_me:22171: \$? = $ac_status" >&5 22172 (exit "$ac_status"); }; }; then 22173 22174 cf_cv_regex_hdrs=$cf_regex_hdr 22175 break 22176 22177else 22178 echo "$as_me: failed program was:" >&5 22179cat "conftest.$ac_ext" >&5 22180fi 22181rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22182 done 22183 ;; 22184esac 22185 22186fi 22187echo "$as_me:22187: result: $cf_cv_regex_hdrs" >&5 22188echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 22189 22190case "$cf_cv_regex_hdrs" in 22191 (no) { echo "$as_me:22191: WARNING: no regular expression header found" >&5 22192echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 22193 (regex.h) 22194cat >>confdefs.h <<\EOF 22195#define HAVE_REGEX_H_FUNCS 1 22196EOF 22197 ;; 22198 (regexp.h) 22199cat >>confdefs.h <<\EOF 22200#define HAVE_REGEXP_H_FUNCS 1 22201EOF 22202 ;; 22203 (regexpr.h) 22204cat >>confdefs.h <<\EOF 22205#define HAVE_REGEXPR_H_FUNCS 1 22206EOF 22207 ;; 22208esac 22209 22210 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 22211 { { echo "$as_me:22211: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5 22212echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;} 22213 { (exit 1); exit 1; }; } 22214 fi 22215 fi 22216 fi 22217 22218cat >>confdefs.h <<\EOF 22219#define OPT_SELECT_REGEX 1 22220EOF 22221 22222fi 22223 22224echo "$as_me:22224: checking if you want support for right-scrollbar" >&5 22225echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 22226 22227# Check whether --enable-rightbar or --disable-rightbar was given. 22228if test "${enable_rightbar+set}" = set; then 22229 enableval="$enable_rightbar" 22230 test "$enableval" != no && enableval=yes 22231 if test "$enableval" != "yes" ; then 22232 enable_rightbar=no 22233 else 22234 enable_rightbar=yes 22235 fi 22236else 22237 enableval=yes 22238 enable_rightbar=yes 22239 22240fi; 22241echo "$as_me:22241: result: $enable_rightbar" >&5 22242echo "${ECHO_T}$enable_rightbar" >&6 22243if test "$enable_rightbar" = yes ; then 22244 22245cat >>confdefs.h <<\EOF 22246#define SCROLLBAR_RIGHT 1 22247EOF 22248 22249fi 22250 22251echo "$as_me:22251: checking if you want check for redundant name-change" >&5 22252echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 22253 22254# Check whether --enable-samename or --disable-samename was given. 22255if test "${enable_samename+set}" = set; then 22256 enableval="$enable_samename" 22257 test "$enableval" != no && enableval=yes 22258 if test "$enableval" != "yes" ; then 22259 enable_samename=no 22260 else 22261 enable_samename=yes 22262 fi 22263else 22264 enableval=yes 22265 enable_samename=yes 22266 22267fi; 22268echo "$as_me:22268: result: $enable_samename" >&5 22269echo "${ECHO_T}$enable_samename" >&6 22270test "$enable_samename" = no && 22271cat >>confdefs.h <<\EOF 22272#define OPT_SAME_NAME 0 22273EOF 22274 22275echo "$as_me:22275: checking if you want support for selection-actions" >&5 22276echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 22277 22278# Check whether --enable-selection-ops or --disable-selection-ops was given. 22279if test "${enable_selection_ops+set}" = set; then 22280 enableval="$enable_selection_ops" 22281 test "$enableval" != no && enableval=yes 22282 if test "$enableval" != "yes" ; then 22283 enable_selection_ops=no 22284 else 22285 enable_selection_ops=yes 22286 fi 22287else 22288 enableval=yes 22289 enable_selection_ops=yes 22290 22291fi; 22292echo "$as_me:22292: result: $enable_selection_ops" >&5 22293echo "${ECHO_T}$enable_selection_ops" >&6 22294test "$enable_selection_ops" = no && 22295cat >>confdefs.h <<\EOF 22296#define OPT_SELECTION_OPS 0 22297EOF 22298 22299echo "$as_me:22299: checking if you want support for session management" >&5 22300echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 22301 22302# Check whether --enable-session-mgt or --disable-session-mgt was given. 22303if test "${enable_session_mgt+set}" = set; then 22304 enableval="$enable_session_mgt" 22305 test "$enableval" != no && enableval=yes 22306 if test "$enableval" != "yes" ; then 22307 enable_session_mgt=no 22308 else 22309 enable_session_mgt=yes 22310 fi 22311else 22312 enableval=yes 22313 enable_session_mgt=yes 22314 22315fi; 22316echo "$as_me:22316: result: $enable_session_mgt" >&5 22317echo "${ECHO_T}$enable_session_mgt" >&6 22318test "$enable_session_mgt" = no && 22319cat >>confdefs.h <<\EOF 22320#define OPT_SESSION_MGT 0 22321EOF 22322 22323echo "$as_me:22323: checking if you want support for status-line" >&5 22324echo $ECHO_N "checking if you want support for status-line... $ECHO_C" >&6 22325 22326# Check whether --enable-status-line or --disable-status-line was given. 22327if test "${enable_status_line+set}" = set; then 22328 enableval="$enable_status_line" 22329 test "$enableval" != yes && enableval=no 22330 if test "$enableval" != "no" ; then 22331 enable_status_line=yes 22332 else 22333 enable_status_line=no 22334 fi 22335else 22336 enableval=no 22337 enable_status_line=no 22338 22339fi; 22340echo "$as_me:22340: result: $enable_status_line" >&5 22341echo "${ECHO_T}$enable_status_line" >&6 22342test "$enable_status_line" = yes && 22343cat >>confdefs.h <<\EOF 22344#define OPT_STATUS_LINE 1 22345EOF 22346 22347echo "$as_me:22347: checking if you want to use termcap function-keys" >&5 22348echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 22349 22350# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 22351if test "${enable_tcap_fkeys+set}" = set; then 22352 enableval="$enable_tcap_fkeys" 22353 test "$enableval" != no && enableval=yes 22354 if test "$enableval" != "yes" ; then 22355 enable_tcap_fkeys=no 22356 else 22357 enable_tcap_fkeys=yes 22358 fi 22359else 22360 enableval=yes 22361 enable_tcap_fkeys=yes 22362 22363fi; 22364echo "$as_me:22364: result: $enable_tcap_fkeys" >&5 22365echo "${ECHO_T}$enable_tcap_fkeys" >&6 22366test "$enable_tcap_fkeys" = no && 22367cat >>confdefs.h <<\EOF 22368#define OPT_TCAP_FKEYS 0 22369EOF 22370 22371echo "$as_me:22371: checking if you want to use termcap-query/report" >&5 22372echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 22373 22374# Check whether --enable-tcap-query or --disable-tcap-query was given. 22375if test "${enable_tcap_query+set}" = set; then 22376 enableval="$enable_tcap_query" 22377 test "$enableval" != no && enableval=yes 22378 if test "$enableval" != "yes" ; then 22379 enable_tcap_query=no 22380 else 22381 enable_tcap_query=yes 22382 fi 22383else 22384 enableval=yes 22385 enable_tcap_query=yes 22386 22387fi; 22388echo "$as_me:22388: result: $enable_tcap_query" >&5 22389echo "${ECHO_T}$enable_tcap_query" >&6 22390test "$enable_tcap_query" = no && 22391cat >>confdefs.h <<\EOF 22392#define OPT_TCAP_QUERY 0 22393EOF 22394 22395echo "$as_me:22395: checking if you want support for tek4014" >&5 22396echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 22397 22398# Check whether --enable-tek4014 or --disable-tek4014 was given. 22399if test "${enable_tek4014+set}" = set; then 22400 enableval="$enable_tek4014" 22401 test "$enableval" != no && enableval=yes 22402 if test "$enableval" != "yes" ; then 22403 enable_tek4014=no 22404 else 22405 enable_tek4014=yes 22406 fi 22407else 22408 enableval=yes 22409 enable_tek4014=yes 22410 22411fi; 22412echo "$as_me:22412: result: $enable_tek4014" >&5 22413echo "${ECHO_T}$enable_tek4014" >&6 22414if test "$enable_tek4014" = no ; then 22415 22416cat >>confdefs.h <<\EOF 22417#define OPT_TEK4014 0 22418EOF 22419 22420else 22421 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 22422 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 22423 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 22424fi 22425 22426echo "$as_me:22426: checking if you want pulldown menus with a toolbar" >&5 22427echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 22428 22429# Check whether --enable-toolbar or --disable-toolbar was given. 22430if test "${enable_toolbar+set}" = set; then 22431 enableval="$enable_toolbar" 22432 test "$enableval" != yes && enableval=no 22433 if test "$enableval" != "no" ; then 22434 enable_toolbar=yes 22435 else 22436 enable_toolbar=no 22437 fi 22438else 22439 enableval=no 22440 enable_toolbar=no 22441 22442fi; 22443echo "$as_me:22443: result: $enable_toolbar" >&5 22444echo "${ECHO_T}$enable_toolbar" >&6 22445if test "$enable_toolbar" = yes ; then 22446 22447cat >>confdefs.h <<\EOF 22448#define OPT_TOOLBAR 1 22449EOF 22450 22451fi 22452 22453echo "$as_me:22453: checking if you want VT52 emulation" >&5 22454echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 22455 22456# Check whether --enable-vt52 or --disable-vt52 was given. 22457if test "${enable_vt52+set}" = set; then 22458 enableval="$enable_vt52" 22459 test "$enableval" != no && enableval=yes 22460 if test "$enableval" != "yes" ; then 22461 enable_vt52=no 22462 else 22463 enable_vt52=yes 22464 fi 22465else 22466 enableval=yes 22467 enable_vt52=yes 22468 22469fi; 22470echo "$as_me:22470: result: $enable_vt52" >&5 22471echo "${ECHO_T}$enable_vt52" >&6 22472test "$enable_vt52" = no && 22473cat >>confdefs.h <<\EOF 22474#define OPT_VT52_MODE 0 22475EOF 22476 22477echo "$as_me:22477: checking if you want wide-attribute support" >&5 22478echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 22479 22480# Check whether --enable-wide-attrs or --disable-wide-attrs was given. 22481if test "${enable_wide_attrs+set}" = set; then 22482 enableval="$enable_wide_attrs" 22483 test "$enableval" != no && enableval=yes 22484 if test "$enableval" != "yes" ; then 22485 enable_wattr=no 22486 else 22487 enable_wattr=yes 22488 fi 22489else 22490 enableval=yes 22491 enable_wattr=yes 22492 22493fi; 22494echo "$as_me:22494: result: $enable_wattr" >&5 22495echo "${ECHO_T}$enable_wattr" >&6 22496 22497if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 22498 { echo "$as_me:22498: WARNING: overriding wide-attributes to support direct color" >&5 22499echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;} 22500 enable_wattr=yes 22501fi 22502 22503echo "$as_me:22503: checking if you want wide-character support" >&5 22504echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 22505 22506# Check whether --enable-wide-chars or --disable-wide-chars was given. 22507if test "${enable_wide_chars+set}" = set; then 22508 enableval="$enable_wide_chars" 22509 test "$enableval" != no && enableval=yes 22510 if test "$enableval" != "yes" ; then 22511 enable_wchar=no 22512 else 22513 enable_wchar=yes 22514 fi 22515else 22516 enableval=yes 22517 enable_wchar=yes 22518 22519fi; 22520echo "$as_me:22520: result: $enable_wchar" >&5 22521echo "${ECHO_T}$enable_wchar" >&6 22522test "x$enable_wattr" = xno && 22523cat >>confdefs.h <<\EOF 22524#define OPT_WIDE_ATTRS 0 22525EOF 22526 22527echo "$as_me:22527: checking if you want only 16-bit character support" >&5 22528echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 22529 22530# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 22531if test "${enable_16bit_chars+set}" = set; then 22532 enableval="$enable_16bit_chars" 22533 test "$enableval" != yes && enableval=no 22534 if test "$enableval" != "no" ; then 22535 enable_16bit_chars=yes 22536 else 22537 enable_16bit_chars=no 22538 fi 22539else 22540 enableval=no 22541 enable_16bit_chars=no 22542 22543fi; 22544echo "$as_me:22544: result: $enable_16bit_chars" >&5 22545echo "${ECHO_T}$enable_16bit_chars" >&6 22546 22547if test "$enable_16bit_chars" = yes ; then 22548 22549cat >>confdefs.h <<\EOF 22550#define OPT_WIDER_ICHAR 0 22551EOF 22552 22553 enable_wchar=yes 22554fi 22555 22556if test "$enable_wchar" = yes ; then 22557 22558echo "$as_me:22558: checking if you want to use mini-luit/Latin9 built-in support" >&5 22559echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 22560 22561# Check whether --enable-mini-luit or --disable-mini-luit was given. 22562if test "${enable_mini_luit+set}" = set; then 22563 enableval="$enable_mini_luit" 22564 test "$enableval" != yes && enableval=no 22565 if test "$enableval" != "no" ; then 22566 enable_mini_luit=yes 22567 else 22568 enable_mini_luit=no 22569 fi 22570else 22571 enableval=no 22572 enable_mini_luit=no 22573 22574fi; 22575echo "$as_me:22575: result: $enable_mini_luit" >&5 22576echo "${ECHO_T}$enable_mini_luit" >&6 22577if test "$enable_mini_luit" = yes ; then 22578 22579cat >>confdefs.h <<\EOF 22580#define OPT_MINI_LUIT 1 22581EOF 22582 22583fi 22584 22585echo "$as_me:22585: checking if you want to use luit" >&5 22586echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 22587 22588# Check whether --enable-luit or --disable-luit was given. 22589if test "${enable_luit+set}" = set; then 22590 enableval="$enable_luit" 22591 test "$enableval" != no && enableval=yes 22592 if test "$enableval" != "yes" ; then 22593 enable_luit=no 22594 else 22595 enable_luit=yes 22596 fi 22597else 22598 enableval=yes 22599 enable_luit=yes 22600 22601fi; 22602echo "$as_me:22602: result: $enable_luit" >&5 22603echo "${ECHO_T}$enable_luit" >&6 22604if test "$enable_luit" = yes ; then 22605 22606cat >>confdefs.h <<\EOF 22607#define OPT_LUIT_PROG 1 22608EOF 22609 22610test -z "$LUIT" && LUIT="xterm-filter" 22611for ac_prog in $LUIT xterm-filter bluit luit 22612do 22613 # Extract the first word of "$ac_prog", so it can be a program name with args. 22614set dummy $ac_prog; ac_word=$2 22615echo "$as_me:22615: checking for $ac_word" >&5 22616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22617if test "${ac_cv_path_LUIT+set}" = set; then 22618 echo $ECHO_N "(cached) $ECHO_C" >&6 22619else 22620 case $LUIT in 22621 [\\/]* | ?:[\\/]*) 22622 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 22623 ;; 22624 *) 22625 ac_save_IFS=$IFS; IFS=$ac_path_separator 22626ac_dummy="$PATH" 22627for ac_dir in $ac_dummy; do 22628 IFS=$ac_save_IFS 22629 test -z "$ac_dir" && ac_dir=. 22630 if $as_executable_p "$ac_dir/$ac_word"; then 22631 ac_cv_path_LUIT="$ac_dir/$ac_word" 22632 echo "$as_me:22632: found $ac_dir/$ac_word" >&5 22633 break 22634fi 22635done 22636 22637 ;; 22638esac 22639fi 22640LUIT=$ac_cv_path_LUIT 22641 22642if test -n "$LUIT"; then 22643 echo "$as_me:22643: result: $LUIT" >&5 22644echo "${ECHO_T}$LUIT" >&6 22645else 22646 echo "$as_me:22646: result: no" >&5 22647echo "${ECHO_T}no" >&6 22648fi 22649 22650 test -n "$LUIT" && break 22651done 22652test -n "$LUIT" || LUIT="$LUIT" 22653 22654cf_path_prog="" 22655cf_path_args="" 22656IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 22657for cf_temp in $ac_cv_path_LUIT 22658do 22659 if test -z "$cf_path_prog" ; then 22660 if test "$with_full_paths" = yes ; then 22661 22662if test "x$prefix" != xNONE; then 22663 cf_path_syntax="$prefix" 22664else 22665 cf_path_syntax="$ac_default_prefix" 22666fi 22667 22668case ".$cf_temp" in 22669(.\$\(*\)*|.\'*\'*) 22670 ;; 22671(..|./*|.\\*) 22672 ;; 22673(.[a-zA-Z]:[\\/]*) # OS/2 EMX 22674 ;; 22675(.\$\{*prefix\}*|.\$\{*dir\}*) 22676 eval cf_temp="$cf_temp" 22677 case ".$cf_temp" in 22678 (.NONE/*) 22679 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 22680 ;; 22681 esac 22682 ;; 22683(.no|.NONE/*) 22684 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 22685 ;; 22686(*) 22687 break 22688 ;; 22689esac 22690 22691 cf_path_prog="$cf_temp" 22692 else 22693 cf_path_prog="`basename "$cf_temp"`" 22694 fi 22695 elif test -z "$cf_path_args" ; then 22696 cf_path_args="$cf_temp" 22697 else 22698 cf_path_args="$cf_path_args $cf_temp" 22699 fi 22700done 22701IFS="$cf_save_ifs" 22702 22703if test -n "$cf_path_prog" ; then 22704 22705echo "${as_me:-configure}:22705: testing defining path for ${cf_path_prog} ..." 1>&5 22706 22707cat >>confdefs.h <<EOF 22708#define LUIT_PATH "$cf_path_prog" 22709EOF 22710 22711 test -n "$cf_path_args" && 22712cat >>confdefs.h <<EOF 22713#define LUIT_ARGS "$cf_path_args" 22714EOF 22715 22716fi 22717 22718fi 22719 22720cat >>confdefs.h <<\EOF 22721#define OPT_WIDE_CHARS 1 22722EOF 22723 22724 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 22725 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 22726 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 22727fi 22728 22729echo "$as_me:22729: checking if you want dynamic-abbreviation support" >&5 22730echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 22731 22732# Check whether --enable-dabbrev or --disable-dabbrev was given. 22733if test "${enable_dabbrev+set}" = set; then 22734 enableval="$enable_dabbrev" 22735 test "$enableval" != yes && enableval=no 22736 if test "$enableval" != "no" ; then 22737 enable_dabbrev=yes 22738 else 22739 enable_dabbrev=no 22740 fi 22741else 22742 enableval=no 22743 enable_dabbrev=no 22744 22745fi; 22746echo "$as_me:22746: result: $enable_dabbrev" >&5 22747echo "${ECHO_T}$enable_dabbrev" >&6 22748if test "$enable_dabbrev" = yes ; then 22749 22750cat >>confdefs.h <<\EOF 22751#define OPT_DABBREV 1 22752EOF 22753 22754fi 22755 22756echo "$as_me:22756: checking if you want DECterm Locator support" >&5 22757echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 22758 22759# Check whether --enable-dec-locator or --disable-dec-locator was given. 22760if test "${enable_dec_locator+set}" = set; then 22761 enableval="$enable_dec_locator" 22762 test "$enableval" != yes && enableval=no 22763 if test "$enableval" != "no" ; then 22764 enable_dec_locator=yes 22765 else 22766 enable_dec_locator=no 22767 fi 22768else 22769 enableval=no 22770 enable_dec_locator=no 22771 22772fi; 22773echo "$as_me:22773: result: $enable_dec_locator" >&5 22774echo "${ECHO_T}$enable_dec_locator" >&6 22775if test "$enable_dec_locator" = yes ; then 22776 22777cat >>confdefs.h <<\EOF 22778#define OPT_DEC_LOCATOR 1 22779EOF 22780 22781fi 22782 22783echo "$as_me:22783: checking if you want XHTML and SVG screen dump support" >&5 22784echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6 22785 22786# Check whether --enable-screen-dumps or --disable-screen-dumps was given. 22787if test "${enable_screen_dumps+set}" = set; then 22788 enableval="$enable_screen_dumps" 22789 test "$enableval" != no && enableval=yes 22790 if test "$enableval" != "yes" ; then 22791 enable_screen_dumps=no 22792 else 22793 enable_screen_dumps=yes 22794 fi 22795else 22796 enableval=yes 22797 enable_screen_dumps=yes 22798 22799fi; 22800echo "$as_me:22800: result: $enable_screen_dumps" >&5 22801echo "${ECHO_T}$enable_screen_dumps" >&6 22802if test "$enable_screen_dumps" = yes ; then 22803 EXTRASRCS="$EXTRASRCS html.c svg.c" 22804 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 22805else 22806 22807cat >>confdefs.h <<\EOF 22808#define OPT_SCREEN_DUMPS 0 22809EOF 22810 22811fi 22812 22813echo "$as_me:22813: checking if you want ReGIS graphics support" >&5 22814echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 22815 22816# Check whether --enable-regis-graphics or --disable-regis-graphics was given. 22817if test "${enable_regis_graphics+set}" = set; then 22818 enableval="$enable_regis_graphics" 22819 test "$enableval" != yes && enableval=no 22820 if test "$enableval" != "no" ; then 22821 enable_regis_graphics=yes 22822 else 22823 enable_regis_graphics=no 22824 fi 22825else 22826 enableval=no 22827 enable_regis_graphics=no 22828 22829fi; 22830echo "$as_me:22830: result: $enable_regis_graphics" >&5 22831echo "${ECHO_T}$enable_regis_graphics" >&6 22832if test "$enable_regis_graphics" = yes ; then 22833 22834cat >>confdefs.h <<\EOF 22835#define OPT_REGIS_GRAPHICS 1 22836EOF 22837 22838 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 22839 EXTRASRCS="$EXTRASRCS graphics_regis.c" 22840 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 22841 22842echo "$as_me:22842: checking if -lm needed for math functions" >&5 22843echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 22844if test "${cf_cv_need_libm+set}" = set; then 22845 echo $ECHO_N "(cached) $ECHO_C" >&6 22846else 22847 22848 cat >"conftest.$ac_ext" <<_ACEOF 22849#line 22849 "configure" 22850#include "confdefs.h" 22851 22852 #include <stdio.h> 22853 #include <stdlib.h> 22854 #include <math.h> 22855 22856int 22857main (void) 22858{ 22859double x = rand(); printf("result = %g\\n", sin(x)) 22860 ; 22861 return 0; 22862} 22863_ACEOF 22864rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22865if { (eval echo "$as_me:22865: \"$ac_link\"") >&5 22866 (eval $ac_link) 2>&5 22867 ac_status=$? 22868 echo "$as_me:22868: \$? = $ac_status" >&5 22869 (exit "$ac_status"); } && 22870 { ac_try='test -s "conftest$ac_exeext"' 22871 { (eval echo "$as_me:22871: \"$ac_try\"") >&5 22872 (eval $ac_try) 2>&5 22873 ac_status=$? 22874 echo "$as_me:22874: \$? = $ac_status" >&5 22875 (exit "$ac_status"); }; }; then 22876 cf_cv_need_libm=no 22877else 22878 echo "$as_me: failed program was:" >&5 22879cat "conftest.$ac_ext" >&5 22880cf_cv_need_libm=yes 22881fi 22882rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22883fi 22884echo "$as_me:22884: result: $cf_cv_need_libm" >&5 22885echo "${ECHO_T}$cf_cv_need_libm" >&6 22886 22887if test "$cf_cv_need_libm" = yes 22888then 22889 22890 cf_save_LIBS="$LIBS" 22891 LIBS="$LIBS -lm" 22892 echo "$as_me:22892: checking if -lm is available for math functions" >&5 22893echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6 22894if test "${cf_cv_have_libm+set}" = set; then 22895 echo $ECHO_N "(cached) $ECHO_C" >&6 22896else 22897 22898 cat >"conftest.$ac_ext" <<_ACEOF 22899#line 22899 "configure" 22900#include "confdefs.h" 22901 22902 #include <stdio.h> 22903 #include <stdlib.h> 22904 #include <math.h> 22905 22906int 22907main (void) 22908{ 22909double x = rand(); printf("result = %g\\n", sin(x)) 22910 ; 22911 return 0; 22912} 22913_ACEOF 22914rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22915if { (eval echo "$as_me:22915: \"$ac_link\"") >&5 22916 (eval $ac_link) 2>&5 22917 ac_status=$? 22918 echo "$as_me:22918: \$? = $ac_status" >&5 22919 (exit "$ac_status"); } && 22920 { ac_try='test -s "conftest$ac_exeext"' 22921 { (eval echo "$as_me:22921: \"$ac_try\"") >&5 22922 (eval $ac_try) 2>&5 22923 ac_status=$? 22924 echo "$as_me:22924: \$? = $ac_status" >&5 22925 (exit "$ac_status"); }; }; then 22926 cf_cv_have_libm=yes 22927else 22928 echo "$as_me: failed program was:" >&5 22929cat "conftest.$ac_ext" >&5 22930cf_cv_have_libm=no 22931fi 22932rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22933fi 22934echo "$as_me:22934: result: $cf_cv_have_libm" >&5 22935echo "${ECHO_T}$cf_cv_have_libm" >&6 22936 LIBS="$cf_save_LIBS" 22937 22938 if test "$cf_cv_have_libm" = yes 22939 then 22940 22941cf_add_libs="$LIBS" 22942# reverse order 22943cf_add_0lib= 22944for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22945# filter duplicates 22946for cf_add_1lib in $cf_add_0lib; do 22947 for cf_add_2lib in $cf_add_libs; do 22948 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22949 cf_add_1lib= 22950 break 22951 fi 22952 done 22953 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22954done 22955LIBS="$cf_add_libs" 22956 22957 fi 22958else 22959 cf_cv_have_libm=yes 22960fi 22961 22962if test "$cf_cv_have_libm" = yes 22963then 22964 22965cat >>confdefs.h <<\EOF 22966#define HAVE_MATH_FUNCS 1 22967EOF 22968 22969fi 22970 22971fi 22972 22973echo "$as_me:22973: checking if you want sixel graphics support" >&5 22974echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 22975 22976# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 22977if test "${enable_sixel_graphics+set}" = set; then 22978 enableval="$enable_sixel_graphics" 22979 test "$enableval" != no && enableval=yes 22980 if test "$enableval" != "yes" ; then 22981 enable_sixel_graphics=no 22982 else 22983 enable_sixel_graphics=yes 22984 fi 22985else 22986 enableval=yes 22987 enable_sixel_graphics=yes 22988 22989fi; 22990echo "$as_me:22990: result: $enable_sixel_graphics" >&5 22991echo "${ECHO_T}$enable_sixel_graphics" >&6 22992if test "$enable_sixel_graphics" = yes ; then 22993 22994cat >>confdefs.h <<\EOF 22995#define OPT_SIXEL_GRAPHICS 1 22996EOF 22997 22998 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 22999 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 23000 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 23001fi 23002 23003if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 23004 23005cat >>confdefs.h <<\EOF 23006#define OPT_GRAPHICS 1 23007EOF 23008 23009 EXTRAHDRS="$EXTRAHDRS graphics.h" 23010 EXTRASRCS="$EXTRASRCS graphics.c" 23011 EXTRAOBJS="$EXTRAOBJS graphics.o" 23012fi 23013 23014echo "$as_me:23014: checking if you want sixel screen dump support" >&5 23015echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6 23016 23017# Check whether --enable-print-graphics or --disable-print-graphics was given. 23018if test "${enable_print_graphics+set}" = set; then 23019 enableval="$enable_print_graphics" 23020 test "$enableval" != no && enableval=yes 23021 if test "$enableval" != "yes" ; then 23022 enable_print_graphics=no 23023 else 23024 enable_print_graphics=$enable_regis_graphics 23025 fi 23026else 23027 enableval=yes 23028 enable_print_graphics=$enable_regis_graphics 23029 23030fi; 23031echo "$as_me:23031: result: $enable_print_graphics" >&5 23032echo "${ECHO_T}$enable_print_graphics" >&6 23033if test "$enable_print_graphics" = yes ; then 23034 23035cat >>confdefs.h <<\EOF 23036#define OPT_PRINT_GRAPHICS 1 23037EOF 23038 23039fi 23040 23041echo "$as_me:23041: checking if you want VT420 rectangle support" >&5 23042echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 23043 23044# Check whether --enable-rectangles or --disable-rectangles was given. 23045if test "${enable_rectangles+set}" = set; then 23046 enableval="$enable_rectangles" 23047 test "$enableval" != no && enableval=yes 23048 if test "$enableval" != "yes" ; then 23049 enable_rectangles=no 23050 else 23051 enable_rectangles=yes 23052 fi 23053else 23054 enableval=yes 23055 enable_rectangles=yes 23056 23057fi; 23058echo "$as_me:23058: result: $enable_rectangles" >&5 23059echo "${ECHO_T}$enable_rectangles" >&6 23060if test "$enable_rectangles" = no ; then 23061 23062cat >>confdefs.h <<\EOF 23063#define OPT_DEC_RECTOPS 0 23064EOF 23065 23066fi 23067 23068echo "$as_me:23068: checking if you want -ziconbeep option" >&5 23069echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 23070 23071# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 23072if test "${enable_ziconbeep+set}" = set; then 23073 enableval="$enable_ziconbeep" 23074 test "$enableval" != no && enableval=yes 23075 if test "$enableval" != "yes" ; then 23076 enable_ziconbeep=no 23077 else 23078 enable_ziconbeep=yes 23079 fi 23080else 23081 enableval=yes 23082 enable_ziconbeep=yes 23083 23084fi; 23085echo "$as_me:23085: result: $enable_ziconbeep" >&5 23086echo "${ECHO_T}$enable_ziconbeep" >&6 23087test "$enable_ziconbeep" = no && 23088cat >>confdefs.h <<\EOF 23089#define OPT_ZICONBEEP 0 23090EOF 23091 23092############################################################################### 23093 23094echo "$as_me:23094: checking if you want debugging traces" >&5 23095echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 23096 23097# Check whether --enable-trace or --disable-trace was given. 23098if test "${enable_trace+set}" = set; then 23099 enableval="$enable_trace" 23100 test "$enableval" != yes && enableval=no 23101 if test "$enableval" != "no" ; then 23102 enable_trace=yes 23103 else 23104 enable_trace=no 23105 fi 23106else 23107 enableval=no 23108 enable_trace=no 23109 23110fi; 23111echo "$as_me:23111: result: $enable_trace" >&5 23112echo "${ECHO_T}$enable_trace" >&6 23113if test "$enable_trace" = yes ; then 23114 23115cat >>confdefs.h <<\EOF 23116#define OPT_TRACE 1 23117EOF 23118 23119 EXTRASRCS="$EXTRASRCS trace.c" 23120 EXTRAOBJS="$EXTRAOBJS trace.o" 23121fi 23122 23123echo "$as_me:23123: checking if you want to use dmalloc for testing" >&5 23124echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 23125 23126# Check whether --with-dmalloc or --without-dmalloc was given. 23127if test "${with_dmalloc+set}" = set; then 23128 withval="$with_dmalloc" 23129 case "x$withval" in 23130 (x|xno) ;; 23131 (*) 23132 : "${with_cflags:=-g}" 23133 : "${enable_leaks:=no}" 23134 with_dmalloc=yes 23135 23136cat >>confdefs.h <<EOF 23137#define USE_DMALLOC 1 23138EOF 23139 23140 ;; 23141 esac 23142else 23143 with_dmalloc= 23144fi; 23145echo "$as_me:23145: result: ${with_dmalloc:-no}" >&5 23146echo "${ECHO_T}${with_dmalloc:-no}" >&6 23147 23148case ".$with_cflags" in 23149(.*-g*) 23150 case .$CFLAGS in 23151 (.*-g*) 23152 ;; 23153 (*) 23154 23155cf_fix_cppflags=no 23156cf_new_cflags= 23157cf_new_cppflags= 23158cf_new_extra_cppflags= 23159 23160for cf_add_cflags in -g 23161do 23162case "$cf_fix_cppflags" in 23163(no) 23164 case "$cf_add_cflags" in 23165 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23166 case "$cf_add_cflags" in 23167 (-D*) 23168 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23169 23170 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23171 && test -z "${cf_tst_cflags}" \ 23172 && cf_fix_cppflags=yes 23173 23174 if test "$cf_fix_cppflags" = yes ; then 23175 23176 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23177 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23178 23179 continue 23180 elif test "${cf_tst_cflags}" = "\"'" ; then 23181 23182 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23183 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23184 23185 continue 23186 fi 23187 ;; 23188 esac 23189 case "$CPPFLAGS" in 23190 (*$cf_add_cflags) 23191 ;; 23192 (*) 23193 case "$cf_add_cflags" in 23194 (-D*) 23195 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23196 23197CPPFLAGS=`echo "$CPPFLAGS" | \ 23198 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23199 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23200 23201 ;; 23202 esac 23203 23204 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23205 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23206 23207 ;; 23208 esac 23209 ;; 23210 (*) 23211 23212 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23213 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23214 23215 ;; 23216 esac 23217 ;; 23218(yes) 23219 23220 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23221 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23222 23223 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23224 23225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23226 && test -z "${cf_tst_cflags}" \ 23227 && cf_fix_cppflags=no 23228 ;; 23229esac 23230done 23231 23232if test -n "$cf_new_cflags" ; then 23233 23234 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23235 CFLAGS="${CFLAGS}$cf_new_cflags" 23236 23237fi 23238 23239if test -n "$cf_new_cppflags" ; then 23240 23241 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23242 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23243 23244fi 23245 23246if test -n "$cf_new_extra_cppflags" ; then 23247 23248 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23249 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23250 23251fi 23252 23253 ;; 23254 esac 23255 ;; 23256esac 23257 23258if test "$with_dmalloc" = yes ; then 23259 echo "$as_me:23259: checking for dmalloc.h" >&5 23260echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 23261if test "${ac_cv_header_dmalloc_h+set}" = set; then 23262 echo $ECHO_N "(cached) $ECHO_C" >&6 23263else 23264 cat >"conftest.$ac_ext" <<_ACEOF 23265#line 23265 "configure" 23266#include "confdefs.h" 23267#include <dmalloc.h> 23268_ACEOF 23269if { (eval echo "$as_me:23269: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23270 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23271 ac_status=$? 23272 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23273 rm -f conftest.er1 23274 cat conftest.err >&5 23275 echo "$as_me:23275: \$? = $ac_status" >&5 23276 (exit "$ac_status"); } >/dev/null; then 23277 if test -s conftest.err; then 23278 ac_cpp_err=$ac_c_preproc_warn_flag 23279 else 23280 ac_cpp_err= 23281 fi 23282else 23283 ac_cpp_err=yes 23284fi 23285if test -z "$ac_cpp_err"; then 23286 ac_cv_header_dmalloc_h=yes 23287else 23288 echo "$as_me: failed program was:" >&5 23289 cat "conftest.$ac_ext" >&5 23290 ac_cv_header_dmalloc_h=no 23291fi 23292rm -f conftest.err "conftest.$ac_ext" 23293fi 23294echo "$as_me:23294: result: $ac_cv_header_dmalloc_h" >&5 23295echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 23296if test "$ac_cv_header_dmalloc_h" = yes; then 23297 23298echo "$as_me:23298: checking for dmalloc_debug in -ldmalloc" >&5 23299echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 23300if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 23301 echo $ECHO_N "(cached) $ECHO_C" >&6 23302else 23303 ac_check_lib_save_LIBS=$LIBS 23304LIBS="-ldmalloc $LIBS" 23305cat >"conftest.$ac_ext" <<_ACEOF 23306#line 23306 "configure" 23307#include "confdefs.h" 23308 23309/* Override any gcc2 internal prototype to avoid an error. */ 23310#ifdef __cplusplus 23311extern "C" 23312#endif 23313/* We use char because int might match the return type of a gcc2 23314 builtin and then its argument prototype would still apply. */ 23315char dmalloc_debug (); 23316int 23317main (void) 23318{ 23319dmalloc_debug (); 23320 ; 23321 return 0; 23322} 23323_ACEOF 23324rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23325if { (eval echo "$as_me:23325: \"$ac_link\"") >&5 23326 (eval $ac_link) 2>&5 23327 ac_status=$? 23328 echo "$as_me:23328: \$? = $ac_status" >&5 23329 (exit "$ac_status"); } && 23330 { ac_try='test -s "conftest$ac_exeext"' 23331 { (eval echo "$as_me:23331: \"$ac_try\"") >&5 23332 (eval $ac_try) 2>&5 23333 ac_status=$? 23334 echo "$as_me:23334: \$? = $ac_status" >&5 23335 (exit "$ac_status"); }; }; then 23336 ac_cv_lib_dmalloc_dmalloc_debug=yes 23337else 23338 echo "$as_me: failed program was:" >&5 23339cat "conftest.$ac_ext" >&5 23340ac_cv_lib_dmalloc_dmalloc_debug=no 23341fi 23342rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23343LIBS=$ac_check_lib_save_LIBS 23344fi 23345echo "$as_me:23345: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 23346echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 23347if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 23348 cat >>confdefs.h <<EOF 23349#define HAVE_LIBDMALLOC 1 23350EOF 23351 23352 LIBS="-ldmalloc $LIBS" 23353 23354fi 23355 23356fi 23357 23358fi 23359 23360echo "$as_me:23360: checking if you want to use dbmalloc for testing" >&5 23361echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 23362 23363# Check whether --with-dbmalloc or --without-dbmalloc was given. 23364if test "${with_dbmalloc+set}" = set; then 23365 withval="$with_dbmalloc" 23366 case "x$withval" in 23367 (x|xno) ;; 23368 (*) 23369 : "${with_cflags:=-g}" 23370 : "${enable_leaks:=no}" 23371 with_dbmalloc=yes 23372 23373cat >>confdefs.h <<EOF 23374#define USE_DBMALLOC 1 23375EOF 23376 23377 ;; 23378 esac 23379else 23380 with_dbmalloc= 23381fi; 23382echo "$as_me:23382: result: ${with_dbmalloc:-no}" >&5 23383echo "${ECHO_T}${with_dbmalloc:-no}" >&6 23384 23385case ".$with_cflags" in 23386(.*-g*) 23387 case .$CFLAGS in 23388 (.*-g*) 23389 ;; 23390 (*) 23391 23392cf_fix_cppflags=no 23393cf_new_cflags= 23394cf_new_cppflags= 23395cf_new_extra_cppflags= 23396 23397for cf_add_cflags in -g 23398do 23399case "$cf_fix_cppflags" in 23400(no) 23401 case "$cf_add_cflags" in 23402 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23403 case "$cf_add_cflags" in 23404 (-D*) 23405 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23406 23407 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23408 && test -z "${cf_tst_cflags}" \ 23409 && cf_fix_cppflags=yes 23410 23411 if test "$cf_fix_cppflags" = yes ; then 23412 23413 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23414 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23415 23416 continue 23417 elif test "${cf_tst_cflags}" = "\"'" ; then 23418 23419 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23420 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23421 23422 continue 23423 fi 23424 ;; 23425 esac 23426 case "$CPPFLAGS" in 23427 (*$cf_add_cflags) 23428 ;; 23429 (*) 23430 case "$cf_add_cflags" in 23431 (-D*) 23432 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23433 23434CPPFLAGS=`echo "$CPPFLAGS" | \ 23435 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23436 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23437 23438 ;; 23439 esac 23440 23441 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23442 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23443 23444 ;; 23445 esac 23446 ;; 23447 (*) 23448 23449 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23450 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23451 23452 ;; 23453 esac 23454 ;; 23455(yes) 23456 23457 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23458 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23459 23460 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23461 23462 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23463 && test -z "${cf_tst_cflags}" \ 23464 && cf_fix_cppflags=no 23465 ;; 23466esac 23467done 23468 23469if test -n "$cf_new_cflags" ; then 23470 23471 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23472 CFLAGS="${CFLAGS}$cf_new_cflags" 23473 23474fi 23475 23476if test -n "$cf_new_cppflags" ; then 23477 23478 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23479 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23480 23481fi 23482 23483if test -n "$cf_new_extra_cppflags" ; then 23484 23485 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23486 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23487 23488fi 23489 23490 ;; 23491 esac 23492 ;; 23493esac 23494 23495if test "$with_dbmalloc" = yes ; then 23496 echo "$as_me:23496: checking for dbmalloc.h" >&5 23497echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 23498if test "${ac_cv_header_dbmalloc_h+set}" = set; then 23499 echo $ECHO_N "(cached) $ECHO_C" >&6 23500else 23501 cat >"conftest.$ac_ext" <<_ACEOF 23502#line 23502 "configure" 23503#include "confdefs.h" 23504#include <dbmalloc.h> 23505_ACEOF 23506if { (eval echo "$as_me:23506: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23507 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23508 ac_status=$? 23509 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23510 rm -f conftest.er1 23511 cat conftest.err >&5 23512 echo "$as_me:23512: \$? = $ac_status" >&5 23513 (exit "$ac_status"); } >/dev/null; then 23514 if test -s conftest.err; then 23515 ac_cpp_err=$ac_c_preproc_warn_flag 23516 else 23517 ac_cpp_err= 23518 fi 23519else 23520 ac_cpp_err=yes 23521fi 23522if test -z "$ac_cpp_err"; then 23523 ac_cv_header_dbmalloc_h=yes 23524else 23525 echo "$as_me: failed program was:" >&5 23526 cat "conftest.$ac_ext" >&5 23527 ac_cv_header_dbmalloc_h=no 23528fi 23529rm -f conftest.err "conftest.$ac_ext" 23530fi 23531echo "$as_me:23531: result: $ac_cv_header_dbmalloc_h" >&5 23532echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 23533if test "$ac_cv_header_dbmalloc_h" = yes; then 23534 23535echo "$as_me:23535: checking for debug_malloc in -ldbmalloc" >&5 23536echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 23537if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 23538 echo $ECHO_N "(cached) $ECHO_C" >&6 23539else 23540 ac_check_lib_save_LIBS=$LIBS 23541LIBS="-ldbmalloc $LIBS" 23542cat >"conftest.$ac_ext" <<_ACEOF 23543#line 23543 "configure" 23544#include "confdefs.h" 23545 23546/* Override any gcc2 internal prototype to avoid an error. */ 23547#ifdef __cplusplus 23548extern "C" 23549#endif 23550/* We use char because int might match the return type of a gcc2 23551 builtin and then its argument prototype would still apply. */ 23552char debug_malloc (); 23553int 23554main (void) 23555{ 23556debug_malloc (); 23557 ; 23558 return 0; 23559} 23560_ACEOF 23561rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23562if { (eval echo "$as_me:23562: \"$ac_link\"") >&5 23563 (eval $ac_link) 2>&5 23564 ac_status=$? 23565 echo "$as_me:23565: \$? = $ac_status" >&5 23566 (exit "$ac_status"); } && 23567 { ac_try='test -s "conftest$ac_exeext"' 23568 { (eval echo "$as_me:23568: \"$ac_try\"") >&5 23569 (eval $ac_try) 2>&5 23570 ac_status=$? 23571 echo "$as_me:23571: \$? = $ac_status" >&5 23572 (exit "$ac_status"); }; }; then 23573 ac_cv_lib_dbmalloc_debug_malloc=yes 23574else 23575 echo "$as_me: failed program was:" >&5 23576cat "conftest.$ac_ext" >&5 23577ac_cv_lib_dbmalloc_debug_malloc=no 23578fi 23579rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23580LIBS=$ac_check_lib_save_LIBS 23581fi 23582echo "$as_me:23582: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 23583echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 23584if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 23585 cat >>confdefs.h <<EOF 23586#define HAVE_LIBDBMALLOC 1 23587EOF 23588 23589 LIBS="-ldbmalloc $LIBS" 23590 23591fi 23592 23593fi 23594 23595fi 23596 23597echo "$as_me:23597: checking if you want to use valgrind for testing" >&5 23598echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 23599 23600# Check whether --with-valgrind or --without-valgrind was given. 23601if test "${with_valgrind+set}" = set; then 23602 withval="$with_valgrind" 23603 case "x$withval" in 23604 (x|xno) ;; 23605 (*) 23606 : "${with_cflags:=-g}" 23607 : "${enable_leaks:=no}" 23608 with_valgrind=yes 23609 23610cat >>confdefs.h <<EOF 23611#define USE_VALGRIND 1 23612EOF 23613 23614 ;; 23615 esac 23616else 23617 with_valgrind= 23618fi; 23619echo "$as_me:23619: result: ${with_valgrind:-no}" >&5 23620echo "${ECHO_T}${with_valgrind:-no}" >&6 23621 23622case ".$with_cflags" in 23623(.*-g*) 23624 case .$CFLAGS in 23625 (.*-g*) 23626 ;; 23627 (*) 23628 23629cf_fix_cppflags=no 23630cf_new_cflags= 23631cf_new_cppflags= 23632cf_new_extra_cppflags= 23633 23634for cf_add_cflags in -g 23635do 23636case "$cf_fix_cppflags" in 23637(no) 23638 case "$cf_add_cflags" in 23639 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23640 case "$cf_add_cflags" in 23641 (-D*) 23642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23643 23644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23645 && test -z "${cf_tst_cflags}" \ 23646 && cf_fix_cppflags=yes 23647 23648 if test "$cf_fix_cppflags" = yes ; then 23649 23650 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23651 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23652 23653 continue 23654 elif test "${cf_tst_cflags}" = "\"'" ; then 23655 23656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23658 23659 continue 23660 fi 23661 ;; 23662 esac 23663 case "$CPPFLAGS" in 23664 (*$cf_add_cflags) 23665 ;; 23666 (*) 23667 case "$cf_add_cflags" in 23668 (-D*) 23669 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23670 23671CPPFLAGS=`echo "$CPPFLAGS" | \ 23672 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23673 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23674 23675 ;; 23676 esac 23677 23678 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23679 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23680 23681 ;; 23682 esac 23683 ;; 23684 (*) 23685 23686 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23687 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23688 23689 ;; 23690 esac 23691 ;; 23692(yes) 23693 23694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23696 23697 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23698 23699 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23700 && test -z "${cf_tst_cflags}" \ 23701 && cf_fix_cppflags=no 23702 ;; 23703esac 23704done 23705 23706if test -n "$cf_new_cflags" ; then 23707 23708 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23709 CFLAGS="${CFLAGS}$cf_new_cflags" 23710 23711fi 23712 23713if test -n "$cf_new_cppflags" ; then 23714 23715 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23716 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23717 23718fi 23719 23720if test -n "$cf_new_extra_cppflags" ; then 23721 23722 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23723 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23724 23725fi 23726 23727 ;; 23728 esac 23729 ;; 23730esac 23731 23732echo "$as_me:23732: checking if you want to perform memory-leak testing" >&5 23733echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 23734 23735# Check whether --enable-leaks or --disable-leaks was given. 23736if test "${enable_leaks+set}" = set; then 23737 enableval="$enable_leaks" 23738 enable_leaks=$enableval 23739else 23740 enable_leaks=yes 23741fi; 23742if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 23743echo "$as_me:23743: result: $with_no_leaks" >&5 23744echo "${ECHO_T}$with_no_leaks" >&6 23745 23746if test "$enable_leaks" = no ; then 23747 23748cat >>confdefs.h <<\EOF 23749#define NO_LEAKS 1 23750EOF 23751 23752cat >>confdefs.h <<\EOF 23753#define YY_NO_LEAKS 1 23754EOF 23755 23756fi 23757 23758echo "$as_me:23758: checking if you want to see long compiling messages" >&5 23759echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 23760 23761# Check whether --enable-echo or --disable-echo was given. 23762if test "${enable_echo+set}" = set; then 23763 enableval="$enable_echo" 23764 test "$enableval" != no && enableval=yes 23765 if test "$enableval" != "yes" ; then 23766 23767 ECHO_LT='--silent' 23768 ECHO_LD='@echo linking $@;' 23769 RULE_CC='@echo compiling $<' 23770 SHOW_CC='@echo compiling $@' 23771 ECHO_CC='@' 23772 23773 else 23774 23775 ECHO_LT='' 23776 ECHO_LD='' 23777 RULE_CC='' 23778 SHOW_CC='' 23779 ECHO_CC='' 23780 23781 fi 23782else 23783 enableval=yes 23784 23785 ECHO_LT='' 23786 ECHO_LD='' 23787 RULE_CC='' 23788 SHOW_CC='' 23789 ECHO_CC='' 23790 23791fi; 23792echo "$as_me:23792: result: $enableval" >&5 23793echo "${ECHO_T}$enableval" >&6 23794 23795echo "$as_me:23795: checking if you want magic cookie emulation" >&5 23796echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 23797 23798# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 23799if test "${enable_xmc_glitch+set}" = set; then 23800 enableval="$enable_xmc_glitch" 23801 test "$enableval" != yes && enableval=no 23802 if test "$enableval" != "no" ; then 23803 enable_xmc=yes 23804 else 23805 enable_xmc=no 23806 fi 23807else 23808 enableval=no 23809 enable_xmc=no 23810 23811fi; 23812echo "$as_me:23812: result: $enable_xmc" >&5 23813echo "${ECHO_T}$enable_xmc" >&6 23814if test "$enable_xmc" = yes ; then 23815 23816cat >>confdefs.h <<\EOF 23817#define OPT_XMC_GLITCH 1 23818EOF 23819 23820 EXTRASRCS="$EXTRASRCS testxmc.c" 23821 EXTRAOBJS="$EXTRAOBJS testxmc.o" 23822fi 23823 23824for ac_func in tigetstr 23825do 23826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23827echo "$as_me:23827: checking for $ac_func" >&5 23828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23829if eval "test \"\${$as_ac_var+set}\" = set"; then 23830 echo $ECHO_N "(cached) $ECHO_C" >&6 23831else 23832 cat >"conftest.$ac_ext" <<_ACEOF 23833#line 23833 "configure" 23834#include "confdefs.h" 23835#define $ac_func autoconf_temporary 23836#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 23837#undef $ac_func 23838 23839#ifdef __cplusplus 23840extern "C" 23841#endif 23842 23843/* We use char because int might match the return type of a gcc2 23844 builtin and then its argument prototype would still apply. */ 23845char $ac_func (void); 23846 23847int 23848main (void) 23849{ 23850 23851/* The GNU C library defines stubs for functions which it implements 23852 to always fail with ENOSYS. Some functions are actually named 23853 something starting with __ and the normal name is an alias. */ 23854#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23855#error found stub for $ac_func 23856#endif 23857 23858 return $ac_func (); 23859 ; 23860 return 0; 23861} 23862_ACEOF 23863rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23864if { (eval echo "$as_me:23864: \"$ac_link\"") >&5 23865 (eval $ac_link) 2>&5 23866 ac_status=$? 23867 echo "$as_me:23867: \$? = $ac_status" >&5 23868 (exit "$ac_status"); } && 23869 { ac_try='test -s "conftest$ac_exeext"' 23870 { (eval echo "$as_me:23870: \"$ac_try\"") >&5 23871 (eval $ac_try) 2>&5 23872 ac_status=$? 23873 echo "$as_me:23873: \$? = $ac_status" >&5 23874 (exit "$ac_status"); }; }; then 23875 eval "$as_ac_var=yes" 23876else 23877 echo "$as_me: failed program was:" >&5 23878cat "conftest.$ac_ext" >&5 23879eval "$as_ac_var=no" 23880fi 23881rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23882fi 23883echo "$as_me:23883: result: `eval echo '${'"$as_ac_var"'}'`" >&5 23884echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 23885if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 23886 cat >>confdefs.h <<EOF 23887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23888EOF 23889 23890fi 23891done 23892 23893if test -n "$cf_cv_lib_part_tgetent"; then 23894 23895for ac_func in use_extended_names 23896do 23897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23898echo "$as_me:23898: checking for $ac_func" >&5 23899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23900if eval "test \"\${$as_ac_var+set}\" = set"; then 23901 echo $ECHO_N "(cached) $ECHO_C" >&6 23902else 23903 cat >"conftest.$ac_ext" <<_ACEOF 23904#line 23904 "configure" 23905#include "confdefs.h" 23906#define $ac_func autoconf_temporary 23907#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 23908#undef $ac_func 23909 23910#ifdef __cplusplus 23911extern "C" 23912#endif 23913 23914/* We use char because int might match the return type of a gcc2 23915 builtin and then its argument prototype would still apply. */ 23916char $ac_func (void); 23917 23918int 23919main (void) 23920{ 23921 23922/* The GNU C library defines stubs for functions which it implements 23923 to always fail with ENOSYS. Some functions are actually named 23924 something starting with __ and the normal name is an alias. */ 23925#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23926#error found stub for $ac_func 23927#endif 23928 23929 return $ac_func (); 23930 ; 23931 return 0; 23932} 23933_ACEOF 23934rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23935if { (eval echo "$as_me:23935: \"$ac_link\"") >&5 23936 (eval $ac_link) 2>&5 23937 ac_status=$? 23938 echo "$as_me:23938: \$? = $ac_status" >&5 23939 (exit "$ac_status"); } && 23940 { ac_try='test -s "conftest$ac_exeext"' 23941 { (eval echo "$as_me:23941: \"$ac_try\"") >&5 23942 (eval $ac_try) 2>&5 23943 ac_status=$? 23944 echo "$as_me:23944: \$? = $ac_status" >&5 23945 (exit "$ac_status"); }; }; then 23946 eval "$as_ac_var=yes" 23947else 23948 echo "$as_me: failed program was:" >&5 23949cat "conftest.$ac_ext" >&5 23950eval "$as_ac_var=no" 23951fi 23952rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23953fi 23954echo "$as_me:23954: result: `eval echo '${'"$as_ac_var"'}'`" >&5 23955echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 23956if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 23957 cat >>confdefs.h <<EOF 23958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23959EOF 23960 23961fi 23962done 23963 23964fi 23965 23966echo "$as_me:23966: checking if you want to use C11 _Noreturn feature" >&5 23967echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 23968 23969# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. 23970if test "${enable_stdnoreturn+set}" = set; then 23971 enableval="$enable_stdnoreturn" 23972 test "$enableval" != yes && enableval=no 23973 if test "$enableval" != "no" ; then 23974 enable_stdnoreturn=yes 23975 else 23976 enable_stdnoreturn=no 23977 fi 23978else 23979 enableval=no 23980 enable_stdnoreturn=no 23981 23982fi; 23983echo "$as_me:23983: result: $enable_stdnoreturn" >&5 23984echo "${ECHO_T}$enable_stdnoreturn" >&6 23985 23986if test $enable_stdnoreturn = yes; then 23987echo "$as_me:23987: checking for C11 _Noreturn feature" >&5 23988echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 23989if test "${cf_cv_c11_noreturn+set}" = set; then 23990 echo $ECHO_N "(cached) $ECHO_C" >&6 23991else 23992 cat >"conftest.$ac_ext" <<_ACEOF 23993#line 23993 "configure" 23994#include "confdefs.h" 23995 23996$ac_includes_default 23997#include <stdnoreturn.h> 23998static _Noreturn void giveup(void) { exit(0); } 23999 24000int 24001main (void) 24002{ 24003if (feof(stdin)) giveup() 24004 ; 24005 return 0; 24006} 24007_ACEOF 24008rm -f "conftest.$ac_objext" 24009if { (eval echo "$as_me:24009: \"$ac_compile\"") >&5 24010 (eval $ac_compile) 2>&5 24011 ac_status=$? 24012 echo "$as_me:24012: \$? = $ac_status" >&5 24013 (exit "$ac_status"); } && 24014 { ac_try='test -s "conftest.$ac_objext"' 24015 { (eval echo "$as_me:24015: \"$ac_try\"") >&5 24016 (eval $ac_try) 2>&5 24017 ac_status=$? 24018 echo "$as_me:24018: \$? = $ac_status" >&5 24019 (exit "$ac_status"); }; }; then 24020 cf_cv_c11_noreturn=yes 24021else 24022 echo "$as_me: failed program was:" >&5 24023cat "conftest.$ac_ext" >&5 24024cf_cv_c11_noreturn=no 24025fi 24026rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24027 24028fi 24029echo "$as_me:24029: result: $cf_cv_c11_noreturn" >&5 24030echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 24031else 24032 cf_cv_c11_noreturn=no, 24033fi 24034 24035if test "$cf_cv_c11_noreturn" = yes; then 24036 24037cat >>confdefs.h <<\EOF 24038#define HAVE_STDNORETURN_H 1 24039EOF 24040 24041cat >>confdefs.h <<EOF 24042#define STDC_NORETURN _Noreturn 24043EOF 24044 24045 HAVE_STDNORETURN_H=1 24046else 24047 HAVE_STDNORETURN_H=0 24048fi 24049 24050if test "$GCC" = yes || test "$GXX" = yes 24051then 24052 24053if test "$GCC" = yes || test "$GXX" = yes 24054then 24055 case $CFLAGS in 24056 (*-Werror=*) 24057 cf_temp_flags= 24058 for cf_temp_scan in $CFLAGS 24059 do 24060 case "x$cf_temp_scan" in 24061 (x-Werror=format*) 24062 24063 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24064 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24065 24066 ;; 24067 (x-Werror=*) 24068 24069 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24070 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24071 24072 ;; 24073 (*) 24074 24075 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24076 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24077 24078 ;; 24079 esac 24080 done 24081 if test "x$CFLAGS" != "x$cf_temp_flags" 24082 then 24083 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 24084 24085echo "${as_me:-configure}:24085: testing repairing CFLAGS: $CFLAGS ..." 1>&5 24086 24087 CFLAGS="$cf_temp_flags" 24088 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 24089 24090echo "${as_me:-configure}:24090: testing ... fixed $CFLAGS ..." 1>&5 24091 24092 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24093 24094echo "${as_me:-configure}:24094: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24095 24096 fi 24097 ;; 24098 esac 24099fi 24100 24101if test "$GCC" = yes || test "$GXX" = yes 24102then 24103 case $CPPFLAGS in 24104 (*-Werror=*) 24105 cf_temp_flags= 24106 for cf_temp_scan in $CPPFLAGS 24107 do 24108 case "x$cf_temp_scan" in 24109 (x-Werror=format*) 24110 24111 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24112 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24113 24114 ;; 24115 (x-Werror=*) 24116 24117 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24118 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24119 24120 ;; 24121 (*) 24122 24123 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24124 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24125 24126 ;; 24127 esac 24128 done 24129 if test "x$CPPFLAGS" != "x$cf_temp_flags" 24130 then 24131 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 24132 24133echo "${as_me:-configure}:24133: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 24134 24135 CPPFLAGS="$cf_temp_flags" 24136 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 24137 24138echo "${as_me:-configure}:24138: testing ... fixed $CPPFLAGS ..." 1>&5 24139 24140 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24141 24142echo "${as_me:-configure}:24142: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24143 24144 fi 24145 ;; 24146 esac 24147fi 24148 24149if test "$GCC" = yes || test "$GXX" = yes 24150then 24151 case $LDFLAGS in 24152 (*-Werror=*) 24153 cf_temp_flags= 24154 for cf_temp_scan in $LDFLAGS 24155 do 24156 case "x$cf_temp_scan" in 24157 (x-Werror=format*) 24158 24159 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24160 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24161 24162 ;; 24163 (x-Werror=*) 24164 24165 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24166 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24167 24168 ;; 24169 (*) 24170 24171 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24172 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24173 24174 ;; 24175 esac 24176 done 24177 if test "x$LDFLAGS" != "x$cf_temp_flags" 24178 then 24179 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 24180 24181echo "${as_me:-configure}:24181: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 24182 24183 LDFLAGS="$cf_temp_flags" 24184 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 24185 24186echo "${as_me:-configure}:24186: testing ... fixed $LDFLAGS ..." 1>&5 24187 24188 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24189 24190echo "${as_me:-configure}:24190: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24191 24192 fi 24193 ;; 24194 esac 24195fi 24196 24197echo "$as_me:24197: checking if you want to turn on gcc warnings" >&5 24198echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 24199 24200# Check whether --enable-warnings or --disable-warnings was given. 24201if test "${enable_warnings+set}" = set; then 24202 enableval="$enable_warnings" 24203 test "$enableval" != yes && enableval=no 24204 if test "$enableval" != "no" ; then 24205 enable_warnings=yes 24206 else 24207 enable_warnings=no 24208 fi 24209else 24210 enableval=no 24211 enable_warnings=no 24212 24213fi; 24214echo "$as_me:24214: result: $enable_warnings" >&5 24215echo "${ECHO_T}$enable_warnings" >&6 24216if test "$enable_warnings" = "yes" 24217then 24218 24219if test "x$have_x" = xyes; then 24220 24221cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 24222cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 24223cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 24224LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 24225for cf_X_CFLAGS in $X_CFLAGS 24226do 24227 case "x$cf_X_CFLAGS" in 24228 x-[IUD]*) 24229 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 24230 ;; 24231 *) 24232 CFLAGS="$CFLAGS $cf_X_CFLAGS" 24233 ;; 24234 esac 24235done 24236 24237cat >"conftest.$ac_ext" <<_ACEOF 24238#line 24238 "configure" 24239#include "confdefs.h" 24240 24241#include <stdlib.h> 24242#include <X11/Intrinsic.h> 24243 24244int 24245main (void) 24246{ 24247String foo = malloc(1); free((void*)foo) 24248 ; 24249 return 0; 24250} 24251_ACEOF 24252rm -f "conftest.$ac_objext" 24253if { (eval echo "$as_me:24253: \"$ac_compile\"") >&5 24254 (eval $ac_compile) 2>&5 24255 ac_status=$? 24256 echo "$as_me:24256: \$? = $ac_status" >&5 24257 (exit "$ac_status"); } && 24258 { ac_try='test -s "conftest.$ac_objext"' 24259 { (eval echo "$as_me:24259: \"$ac_try\"") >&5 24260 (eval $ac_try) 2>&5 24261 ac_status=$? 24262 echo "$as_me:24262: \$? = $ac_status" >&5 24263 (exit "$ac_status"); }; }; then 24264 24265echo "$as_me:24265: checking for X11/Xt const-feature" >&5 24266echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 24267if test "${cf_cv_const_x_string+set}" = set; then 24268 echo $ECHO_N "(cached) $ECHO_C" >&6 24269else 24270 24271 cat >"conftest.$ac_ext" <<_ACEOF 24272#line 24272 "configure" 24273#include "confdefs.h" 24274 24275#define _CONST_X_STRING /* X11R7.8 (perhaps) */ 24276#undef XTSTRINGDEFINES /* X11R5 and later */ 24277#include <stdlib.h> 24278#include <X11/Intrinsic.h> 24279 24280int 24281main (void) 24282{ 24283String foo = malloc(1); *foo = 0 24284 ; 24285 return 0; 24286} 24287_ACEOF 24288rm -f "conftest.$ac_objext" 24289if { (eval echo "$as_me:24289: \"$ac_compile\"") >&5 24290 (eval $ac_compile) 2>&5 24291 ac_status=$? 24292 echo "$as_me:24292: \$? = $ac_status" >&5 24293 (exit "$ac_status"); } && 24294 { ac_try='test -s "conftest.$ac_objext"' 24295 { (eval echo "$as_me:24295: \"$ac_try\"") >&5 24296 (eval $ac_try) 2>&5 24297 ac_status=$? 24298 echo "$as_me:24298: \$? = $ac_status" >&5 24299 (exit "$ac_status"); }; }; then 24300 24301 cf_cv_const_x_string=no 24302 24303else 24304 echo "$as_me: failed program was:" >&5 24305cat "conftest.$ac_ext" >&5 24306 24307 cf_cv_const_x_string=yes 24308 24309fi 24310rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24311 24312fi 24313echo "$as_me:24313: result: $cf_cv_const_x_string" >&5 24314echo "${ECHO_T}$cf_cv_const_x_string" >&6 24315 24316LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 24317CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 24318CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 24319 24320case "$cf_cv_const_x_string" in 24321(no) 24322 24323 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24324 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 24325 24326 ;; 24327(*) 24328 24329 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24330 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 24331 24332 ;; 24333esac 24334 24335else 24336 echo "$as_me: failed program was:" >&5 24337cat "conftest.$ac_ext" >&5 24338fi 24339rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24340 fi 24341cat > "conftest.$ac_ext" <<EOF 24342#line 24342 "${as_me:-configure}" 24343int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 24344EOF 24345if test "$INTEL_COMPILER" = yes 24346then 24347# The "-wdXXX" options suppress warnings: 24348# remark #1419: external declaration in primary source file 24349# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 24350# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 24351# remark #193: zero used for undefined preprocessing identifier 24352# remark #593: variable "curs_sb_left_arrow" was set but never used 24353# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 24354# remark #869: parameter "tw" was never referenced 24355# remark #981: operands are evaluated in unspecified order 24356# warning #279: controlling expression is constant 24357 24358 { echo "$as_me:24358: checking for $CC warning options..." >&5 24359echo "$as_me: checking for $CC warning options..." >&6;} 24360 cf_save_CFLAGS="$CFLAGS" 24361 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 24362 for cf_opt in \ 24363 wd1419 \ 24364 wd1683 \ 24365 wd1684 \ 24366 wd193 \ 24367 wd593 \ 24368 wd279 \ 24369 wd810 \ 24370 wd869 \ 24371 wd981 24372 do 24373 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 24374 if { (eval echo "$as_me:24374: \"$ac_compile\"") >&5 24375 (eval $ac_compile) 2>&5 24376 ac_status=$? 24377 echo "$as_me:24377: \$? = $ac_status" >&5 24378 (exit "$ac_status"); }; then 24379 test -n "$verbose" && echo "$as_me:24379: result: ... -$cf_opt" >&5 24380echo "${ECHO_T}... -$cf_opt" >&6 24381 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 24382 fi 24383 done 24384 CFLAGS="$cf_save_CFLAGS" 24385elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 24386then 24387 { echo "$as_me:24387: checking for $CC warning options..." >&5 24388echo "$as_me: checking for $CC warning options..." >&6;} 24389 cf_save_CFLAGS="$CFLAGS" 24390 cf_warn_CONST="" 24391 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 24392 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 24393 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 24394 for cf_opt in W Wall \ 24395 Wbad-function-cast \ 24396 Wcast-align \ 24397 Wcast-qual \ 24398 Wdeclaration-after-statement \ 24399 Wextra \ 24400 Winline \ 24401 Wmissing-declarations \ 24402 Wmissing-prototypes \ 24403 Wnested-externs \ 24404 Wpointer-arith \ 24405 Wshadow \ 24406 Wstrict-prototypes \ 24407 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual 24408 do 24409 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 24410 if { (eval echo "$as_me:24410: \"$ac_compile\"") >&5 24411 (eval $ac_compile) 2>&5 24412 ac_status=$? 24413 echo "$as_me:24413: \$? = $ac_status" >&5 24414 (exit "$ac_status"); }; then 24415 test -n "$verbose" && echo "$as_me:24415: result: ... -$cf_opt" >&5 24416echo "${ECHO_T}... -$cf_opt" >&6 24417 case "$cf_opt" in 24418 (Winline) 24419 case "$GCC_VERSION" in 24420 ([34].*) 24421 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 24422 24423echo "${as_me:-configure}:24423: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 24424 24425 continue;; 24426 esac 24427 ;; 24428 (Wpointer-arith) 24429 case "$GCC_VERSION" in 24430 ([12].*) 24431 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 24432 24433echo "${as_me:-configure}:24433: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 24434 24435 continue;; 24436 esac 24437 ;; 24438 esac 24439 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 24440 fi 24441 done 24442 CFLAGS="$cf_save_CFLAGS" 24443fi 24444rm -rf ./conftest* 24445 24446fi 24447 24448if test "$GCC" = yes || test "$GXX" = yes 24449then 24450cat > conftest.i <<EOF 24451#ifndef GCC_PRINTF 24452#define GCC_PRINTF 0 24453#endif 24454#ifndef GCC_SCANF 24455#define GCC_SCANF 0 24456#endif 24457#ifndef GCC_NORETURN 24458#define GCC_NORETURN /* nothing */ 24459#endif 24460#ifndef GCC_UNUSED 24461#define GCC_UNUSED /* nothing */ 24462#endif 24463EOF 24464if test "$GCC" = yes 24465then 24466 { echo "$as_me:24466: checking for $CC __attribute__ directives..." >&5 24467echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 24468cat > "conftest.$ac_ext" <<EOF 24469#line 24469 "${as_me:-configure}" 24470#include <stdio.h> 24471#include "confdefs.h" 24472#include "conftest.h" 24473#include "conftest.i" 24474#if GCC_PRINTF 24475#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 24476#else 24477#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 24478#endif 24479#if GCC_SCANF 24480#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 24481#else 24482#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 24483#endif 24484extern void wow(char *,...) GCC_SCANFLIKE(1,2); 24485extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); 24486extern GCC_NORETURN void foo(void); 24487int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 24488EOF 24489 cf_printf_attribute=no 24490 cf_scanf_attribute=no 24491 for cf_attribute in scanf printf unused noreturn 24492 do 24493 24494cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 24495 24496 cf_directive="__attribute__(($cf_attribute))" 24497 echo "checking for $CC $cf_directive" 1>&5 24498 24499 case "$cf_attribute" in 24500 (printf) 24501 cf_printf_attribute=yes 24502 cat >conftest.h <<EOF 24503#define GCC_$cf_ATTRIBUTE 1 24504EOF 24505 ;; 24506 (scanf) 24507 cf_scanf_attribute=yes 24508 cat >conftest.h <<EOF 24509#define GCC_$cf_ATTRIBUTE 1 24510EOF 24511 ;; 24512 (*) 24513 cat >conftest.h <<EOF 24514#define GCC_$cf_ATTRIBUTE $cf_directive 24515EOF 24516 ;; 24517 esac 24518 24519 if { (eval echo "$as_me:24519: \"$ac_compile\"") >&5 24520 (eval $ac_compile) 2>&5 24521 ac_status=$? 24522 echo "$as_me:24522: \$? = $ac_status" >&5 24523 (exit "$ac_status"); }; then 24524 test -n "$verbose" && echo "$as_me:24524: result: ... $cf_attribute" >&5 24525echo "${ECHO_T}... $cf_attribute" >&6 24526 cat conftest.h >>confdefs.h 24527 case "$cf_attribute" in 24528 (noreturn) 24529 24530cat >>confdefs.h <<EOF 24531#define GCC_NORETURN $cf_directive 24532EOF 24533 24534 ;; 24535 (printf) 24536 cf_value='/* nothing */' 24537 if test "$cf_printf_attribute" != no ; then 24538 cf_value='__attribute__((format(printf,fmt,var)))' 24539 24540cat >>confdefs.h <<\EOF 24541#define GCC_PRINTF 1 24542EOF 24543 24544 fi 24545 24546cat >>confdefs.h <<EOF 24547#define GCC_PRINTFLIKE(fmt,var) $cf_value 24548EOF 24549 24550 ;; 24551 (scanf) 24552 cf_value='/* nothing */' 24553 if test "$cf_scanf_attribute" != no ; then 24554 cf_value='__attribute__((format(scanf,fmt,var)))' 24555 24556cat >>confdefs.h <<\EOF 24557#define GCC_SCANF 1 24558EOF 24559 24560 fi 24561 24562cat >>confdefs.h <<EOF 24563#define GCC_SCANFLIKE(fmt,var) $cf_value 24564EOF 24565 24566 ;; 24567 (unused) 24568 24569cat >>confdefs.h <<EOF 24570#define GCC_UNUSED $cf_directive 24571EOF 24572 24573 ;; 24574 esac 24575 fi 24576 done 24577else 24578 ${FGREP-fgrep} define conftest.i >>confdefs.h 24579fi 24580rm -rf ./conftest* 24581fi 24582 24583fi 24584 24585test "$disable_setuid" = yes && 24586cat >>confdefs.h <<\EOF 24587#define DISABLE_SETUID 1 24588EOF 24589 24590test "$disable_setgid" = yes && 24591cat >>confdefs.h <<\EOF 24592#define DISABLE_SETGID 1 24593EOF 24594 24595if test $disable_setuid = yes ; then 24596 MAY_SETUID="#" 24597 NOT_SETUID= 24598elif test $disable_setgid = yes ; then 24599 MAY_SETUID="#" 24600 NOT_SETUID= 24601else 24602 MAY_SETUID= 24603 NOT_SETUID="#" 24604fi 24605 24606### remove from CPPFLAGS the optional features we define in xtermcfg.h 24607### or other conflicting symbols that may be defined via imake: 24608for cf_def in \ 24609 __STDC__ \ 24610 ALLOWLOGGING \ 24611 ALLOWLOGFILEEXEC \ 24612 OPT_LUIT_PROG \ 24613 OPT_WIDE_CHARS \ 24614 SCROLLBAR_RIGHT \ 24615 USE_TTY_GROUP \ 24616 USE_UTEMPTER \ 24617 XRENDERFONT 24618do 24619 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 24620done 24621 24622echo "$as_me:24622: checking if filesystem supports mixed-case filenames" >&5 24623echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 24624if test "${cf_cv_mixedcase+set}" = set; then 24625 echo $ECHO_N "(cached) $ECHO_C" >&6 24626else 24627 24628if test "$cross_compiling" = yes ; then 24629 case "$target_alias" in 24630 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 24631 cf_cv_mixedcase=no 24632 ;; 24633 (*) 24634 cf_cv_mixedcase=yes 24635 ;; 24636 esac 24637else 24638 rm -f conftest CONFTEST 24639 echo test >conftest 24640 if test -f CONFTEST ; then 24641 cf_cv_mixedcase=no 24642 else 24643 cf_cv_mixedcase=yes 24644 fi 24645 rm -f conftest CONFTEST 24646fi 24647 24648fi 24649echo "$as_me:24649: result: $cf_cv_mixedcase" >&5 24650echo "${ECHO_T}$cf_cv_mixedcase" >&6 24651test "$cf_cv_mixedcase" = yes && 24652cat >>confdefs.h <<\EOF 24653#define MIXEDCASE_FILENAMES 1 24654EOF 24655 24656for ac_prog in exctags ctags 24657do 24658 # Extract the first word of "$ac_prog", so it can be a program name with args. 24659set dummy $ac_prog; ac_word=$2 24660echo "$as_me:24660: checking for $ac_word" >&5 24661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24662if test "${ac_cv_prog_CTAGS+set}" = set; then 24663 echo $ECHO_N "(cached) $ECHO_C" >&6 24664else 24665 if test -n "$CTAGS"; then 24666 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 24667else 24668 ac_save_IFS=$IFS; IFS=$ac_path_separator 24669ac_dummy="$PATH" 24670for ac_dir in $ac_dummy; do 24671 IFS=$ac_save_IFS 24672 test -z "$ac_dir" && ac_dir=. 24673 $as_executable_p "$ac_dir/$ac_word" || continue 24674ac_cv_prog_CTAGS="$ac_prog" 24675echo "$as_me:24675: found $ac_dir/$ac_word" >&5 24676break 24677done 24678 24679fi 24680fi 24681CTAGS=$ac_cv_prog_CTAGS 24682if test -n "$CTAGS"; then 24683 echo "$as_me:24683: result: $CTAGS" >&5 24684echo "${ECHO_T}$CTAGS" >&6 24685else 24686 echo "$as_me:24686: result: no" >&5 24687echo "${ECHO_T}no" >&6 24688fi 24689 24690 test -n "$CTAGS" && break 24691done 24692 24693for ac_prog in exetags etags 24694do 24695 # Extract the first word of "$ac_prog", so it can be a program name with args. 24696set dummy $ac_prog; ac_word=$2 24697echo "$as_me:24697: checking for $ac_word" >&5 24698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24699if test "${ac_cv_prog_ETAGS+set}" = set; then 24700 echo $ECHO_N "(cached) $ECHO_C" >&6 24701else 24702 if test -n "$ETAGS"; then 24703 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 24704else 24705 ac_save_IFS=$IFS; IFS=$ac_path_separator 24706ac_dummy="$PATH" 24707for ac_dir in $ac_dummy; do 24708 IFS=$ac_save_IFS 24709 test -z "$ac_dir" && ac_dir=. 24710 $as_executable_p "$ac_dir/$ac_word" || continue 24711ac_cv_prog_ETAGS="$ac_prog" 24712echo "$as_me:24712: found $ac_dir/$ac_word" >&5 24713break 24714done 24715 24716fi 24717fi 24718ETAGS=$ac_cv_prog_ETAGS 24719if test -n "$ETAGS"; then 24720 echo "$as_me:24720: result: $ETAGS" >&5 24721echo "${ECHO_T}$ETAGS" >&6 24722else 24723 echo "$as_me:24723: result: no" >&5 24724echo "${ECHO_T}no" >&6 24725fi 24726 24727 test -n "$ETAGS" && break 24728done 24729 24730# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 24731set dummy ${CTAGS:-ctags}; ac_word=$2 24732echo "$as_me:24732: checking for $ac_word" >&5 24733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24734if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 24735 echo $ECHO_N "(cached) $ECHO_C" >&6 24736else 24737 if test -n "$MAKE_LOWER_TAGS"; then 24738 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 24739else 24740 ac_save_IFS=$IFS; IFS=$ac_path_separator 24741ac_dummy="$PATH" 24742for ac_dir in $ac_dummy; do 24743 IFS=$ac_save_IFS 24744 test -z "$ac_dir" && ac_dir=. 24745 $as_executable_p "$ac_dir/$ac_word" || continue 24746ac_cv_prog_MAKE_LOWER_TAGS="yes" 24747echo "$as_me:24747: found $ac_dir/$ac_word" >&5 24748break 24749done 24750 24751 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 24752fi 24753fi 24754MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 24755if test -n "$MAKE_LOWER_TAGS"; then 24756 echo "$as_me:24756: result: $MAKE_LOWER_TAGS" >&5 24757echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 24758else 24759 echo "$as_me:24759: result: no" >&5 24760echo "${ECHO_T}no" >&6 24761fi 24762 24763if test "$cf_cv_mixedcase" = yes ; then 24764 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 24765set dummy ${ETAGS:-etags}; ac_word=$2 24766echo "$as_me:24766: checking for $ac_word" >&5 24767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24768if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 24769 echo $ECHO_N "(cached) $ECHO_C" >&6 24770else 24771 if test -n "$MAKE_UPPER_TAGS"; then 24772 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 24773else 24774 ac_save_IFS=$IFS; IFS=$ac_path_separator 24775ac_dummy="$PATH" 24776for ac_dir in $ac_dummy; do 24777 IFS=$ac_save_IFS 24778 test -z "$ac_dir" && ac_dir=. 24779 $as_executable_p "$ac_dir/$ac_word" || continue 24780ac_cv_prog_MAKE_UPPER_TAGS="yes" 24781echo "$as_me:24781: found $ac_dir/$ac_word" >&5 24782break 24783done 24784 24785 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 24786fi 24787fi 24788MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 24789if test -n "$MAKE_UPPER_TAGS"; then 24790 echo "$as_me:24790: result: $MAKE_UPPER_TAGS" >&5 24791echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 24792else 24793 echo "$as_me:24793: result: no" >&5 24794echo "${ECHO_T}no" >&6 24795fi 24796 24797else 24798 MAKE_UPPER_TAGS=no 24799fi 24800 24801if test "$MAKE_UPPER_TAGS" = yes ; then 24802 MAKE_UPPER_TAGS= 24803else 24804 MAKE_UPPER_TAGS="#" 24805fi 24806 24807if test "$MAKE_LOWER_TAGS" = yes ; then 24808 MAKE_LOWER_TAGS= 24809else 24810 MAKE_LOWER_TAGS="#" 24811fi 24812 24813LD_RPATH_OPT= 24814if test "x$cf_cv_enable_rpath" != xno 24815then 24816 echo "$as_me:24816: checking for an rpath option" >&5 24817echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 24818 case "$cf_cv_system_name" in 24819 (irix*) 24820 if test "$GCC" = yes; then 24821 LD_RPATH_OPT="-Wl,-rpath," 24822 else 24823 LD_RPATH_OPT="-rpath " 24824 fi 24825 ;; 24826 (linux*|gnu*|k*bsd*-gnu|freebsd*) 24827 LD_RPATH_OPT="-Wl,-rpath," 24828 ;; 24829 (openbsd[2-9].*|mirbsd*) 24830 LD_RPATH_OPT="-Wl,-rpath," 24831 ;; 24832 (dragonfly*) 24833 LD_RPATH_OPT="-rpath " 24834 ;; 24835 (netbsd*) 24836 LD_RPATH_OPT="-Wl,-rpath," 24837 ;; 24838 (osf*|mls+*) 24839 LD_RPATH_OPT="-rpath " 24840 ;; 24841 (solaris2*) 24842 LD_RPATH_OPT="-R" 24843 ;; 24844 (*) 24845 ;; 24846 esac 24847 echo "$as_me:24847: result: $LD_RPATH_OPT" >&5 24848echo "${ECHO_T}$LD_RPATH_OPT" >&6 24849 24850 case "x$LD_RPATH_OPT" in 24851 (x-R*) 24852 echo "$as_me:24852: checking if we need a space after rpath option" >&5 24853echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 24854 cf_save_LIBS="$LIBS" 24855 24856cf_add_libs="$LIBS" 24857# reverse order 24858cf_add_0lib= 24859for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24860# filter duplicates 24861for cf_add_1lib in $cf_add_0lib; do 24862 for cf_add_2lib in $cf_add_libs; do 24863 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24864 cf_add_1lib= 24865 break 24866 fi 24867 done 24868 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24869done 24870LIBS="$cf_add_libs" 24871 24872 cat >"conftest.$ac_ext" <<_ACEOF 24873#line 24873 "configure" 24874#include "confdefs.h" 24875 24876int 24877main (void) 24878{ 24879 24880 ; 24881 return 0; 24882} 24883_ACEOF 24884rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24885if { (eval echo "$as_me:24885: \"$ac_link\"") >&5 24886 (eval $ac_link) 2>&5 24887 ac_status=$? 24888 echo "$as_me:24888: \$? = $ac_status" >&5 24889 (exit "$ac_status"); } && 24890 { ac_try='test -s "conftest$ac_exeext"' 24891 { (eval echo "$as_me:24891: \"$ac_try\"") >&5 24892 (eval $ac_try) 2>&5 24893 ac_status=$? 24894 echo "$as_me:24894: \$? = $ac_status" >&5 24895 (exit "$ac_status"); }; }; then 24896 cf_rpath_space=no 24897else 24898 echo "$as_me: failed program was:" >&5 24899cat "conftest.$ac_ext" >&5 24900cf_rpath_space=yes 24901fi 24902rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24903 LIBS="$cf_save_LIBS" 24904 echo "$as_me:24904: result: $cf_rpath_space" >&5 24905echo "${ECHO_T}$cf_rpath_space" >&6 24906 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 24907 ;; 24908 esac 24909fi 24910 24911echo "$as_me:24911: checking if rpath-hack should be disabled" >&5 24912echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 24913 24914# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 24915if test "${enable_rpath_hack+set}" = set; then 24916 enableval="$enable_rpath_hack" 24917 test "$enableval" != no && enableval=yes 24918 if test "$enableval" != "yes" ; then 24919 enable_rpath_hack=no 24920 else 24921 enable_rpath_hack=yes 24922 fi 24923else 24924 enableval=yes 24925 enable_rpath_hack=yes 24926 24927fi; 24928if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 24929echo "$as_me:24929: result: $cf_disable_rpath_hack" >&5 24930echo "${ECHO_T}$cf_disable_rpath_hack" >&6 24931 24932if test "$enable_rpath_hack" = yes ; then 24933 24934echo "$as_me:24934: checking for updated LDFLAGS" >&5 24935echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 24936if test -n "$LD_RPATH_OPT" ; then 24937 echo "$as_me:24937: result: maybe" >&5 24938echo "${ECHO_T}maybe" >&6 24939 24940 for ac_prog in ldd 24941do 24942 # Extract the first word of "$ac_prog", so it can be a program name with args. 24943set dummy $ac_prog; ac_word=$2 24944echo "$as_me:24944: checking for $ac_word" >&5 24945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24946if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 24947 echo $ECHO_N "(cached) $ECHO_C" >&6 24948else 24949 if test -n "$cf_ldd_prog"; then 24950 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 24951else 24952 ac_save_IFS=$IFS; IFS=$ac_path_separator 24953ac_dummy="$PATH" 24954for ac_dir in $ac_dummy; do 24955 IFS=$ac_save_IFS 24956 test -z "$ac_dir" && ac_dir=. 24957 $as_executable_p "$ac_dir/$ac_word" || continue 24958ac_cv_prog_cf_ldd_prog="$ac_prog" 24959echo "$as_me:24959: found $ac_dir/$ac_word" >&5 24960break 24961done 24962 24963fi 24964fi 24965cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 24966if test -n "$cf_ldd_prog"; then 24967 echo "$as_me:24967: result: $cf_ldd_prog" >&5 24968echo "${ECHO_T}$cf_ldd_prog" >&6 24969else 24970 echo "$as_me:24970: result: no" >&5 24971echo "${ECHO_T}no" >&6 24972fi 24973 24974 test -n "$cf_ldd_prog" && break 24975done 24976test -n "$cf_ldd_prog" || cf_ldd_prog="no" 24977 24978 cf_rpath_list="/usr/lib /lib" 24979 if test "$cf_ldd_prog" != no 24980 then 24981 cf_rpath_oops= 24982 24983cat >"conftest.$ac_ext" <<_ACEOF 24984#line 24984 "configure" 24985#include "confdefs.h" 24986#include <stdio.h> 24987int 24988main (void) 24989{ 24990printf("Hello"); 24991 ; 24992 return 0; 24993} 24994_ACEOF 24995rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24996if { (eval echo "$as_me:24996: \"$ac_link\"") >&5 24997 (eval $ac_link) 2>&5 24998 ac_status=$? 24999 echo "$as_me:24999: \$? = $ac_status" >&5 25000 (exit "$ac_status"); } && 25001 { ac_try='test -s "conftest$ac_exeext"' 25002 { (eval echo "$as_me:25002: \"$ac_try\"") >&5 25003 (eval $ac_try) 2>&5 25004 ac_status=$? 25005 echo "$as_me:25005: \$? = $ac_status" >&5 25006 (exit "$ac_status"); }; }; then 25007 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 25008 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 25009else 25010 echo "$as_me: failed program was:" >&5 25011cat "conftest.$ac_ext" >&5 25012fi 25013rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 25014 25015 # If we passed the link-test, but get a "not found" on a given library, 25016 # this could be due to inept reconfiguration of gcc to make it only 25017 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 25018 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 25019 # /usr/local libraries. 25020 if test -n "$cf_rpath_oops" 25021 then 25022 for cf_rpath_src in $cf_rpath_oops 25023 do 25024 for cf_rpath_dir in \ 25025 /usr/local \ 25026 /usr/pkg \ 25027 /opt/sfw 25028 do 25029 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 25030 then 25031 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 25032 25033echo "${as_me:-configure}:25033: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 25034 25035 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 25036 break 25037 fi 25038 done 25039 done 25040 fi 25041 fi 25042 25043 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25044 25045echo "${as_me:-configure}:25045: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25046 25047test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 25048 25049echo "${as_me:-configure}:25049: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 25050 25051cf_rpath_dst= 25052for cf_rpath_src in $LDFLAGS 25053do 25054 case "$cf_rpath_src" in 25055 (-L*) 25056 25057 # check if this refers to a directory which we will ignore 25058 cf_rpath_skip=no 25059 if test -n "$cf_rpath_list" 25060 then 25061 for cf_rpath_item in $cf_rpath_list 25062 do 25063 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25064 then 25065 cf_rpath_skip=yes 25066 break 25067 fi 25068 done 25069 fi 25070 25071 if test "$cf_rpath_skip" = no 25072 then 25073 # transform the option 25074 if test "$LD_RPATH_OPT" = "-R " ; then 25075 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25076 else 25077 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25078 fi 25079 25080 # if we have not already added this, add it now 25081 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25082 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25083 then 25084 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25085 25086echo "${as_me:-configure}:25086: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25087 25088 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25089 fi 25090 fi 25091 ;; 25092 esac 25093 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25094done 25095LDFLAGS=$cf_rpath_dst 25096 25097test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 25098 25099echo "${as_me:-configure}:25099: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 25100 25101test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 25102 25103echo "${as_me:-configure}:25103: testing ...checking LIBS $LIBS ..." 1>&5 25104 25105cf_rpath_dst= 25106for cf_rpath_src in $LIBS 25107do 25108 case "$cf_rpath_src" in 25109 (-L*) 25110 25111 # check if this refers to a directory which we will ignore 25112 cf_rpath_skip=no 25113 if test -n "$cf_rpath_list" 25114 then 25115 for cf_rpath_item in $cf_rpath_list 25116 do 25117 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25118 then 25119 cf_rpath_skip=yes 25120 break 25121 fi 25122 done 25123 fi 25124 25125 if test "$cf_rpath_skip" = no 25126 then 25127 # transform the option 25128 if test "$LD_RPATH_OPT" = "-R " ; then 25129 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25130 else 25131 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25132 fi 25133 25134 # if we have not already added this, add it now 25135 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25136 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25137 then 25138 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25139 25140echo "${as_me:-configure}:25140: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25141 25142 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25143 fi 25144 fi 25145 ;; 25146 esac 25147 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25148done 25149LIBS=$cf_rpath_dst 25150 25151test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 25152 25153echo "${as_me:-configure}:25153: testing ...checked LIBS $LIBS ..." 1>&5 25154 25155 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25156 25157echo "${as_me:-configure}:25157: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25158 25159else 25160 echo "$as_me:25160: result: no" >&5 25161echo "${ECHO_T}no" >&6 25162fi 25163 25164fi 25165 25166# Force plink.sh to not trim pcre's libraries, which have the same symbol 25167# names as the system regexp. 25168if test "$with_pcre" != no 25169then 25170 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 25171fi 25172 25173### output xtermcfg.h, etc 25174ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in run-tic.sh:run-tic.in" 25175 25176cat >confcache <<\_ACEOF 25177# This file is a shell script that caches the results of configure 25178# tests run on this system so they can be shared between configure 25179# scripts and configure runs, see configure's option --config-cache. 25180# It is not useful on other systems. If it contains results you don't 25181# want to keep, you may remove or edit it. 25182# 25183# config.status only pays attention to the cache file if you give it 25184# the --recheck option to rerun configure. 25185# 25186# `ac_cv_env_foo' variables (set or unset) will be overriden when 25187# loading this file, other *unset* `ac_cv_foo' will be assigned the 25188# following values. 25189 25190_ACEOF 25191 25192# The following way of writing the cache mishandles newlines in values, 25193# but we know of no workaround that is simple, portable, and efficient. 25194# So, don't put newlines in cache variables' values. 25195# Ultrix sh set writes to stderr and can't be redirected directly, 25196# and sets the high bit in the cache file unless we assign to the vars. 25197{ 25198 (set) 2>&1 | 25199 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25200 *ac_space=\ *) 25201 # `set' does not quote correctly, so add quotes (double-quote 25202 # substitution turns \\\\ into \\, and sed turns \\ into \). 25203 sed -n \ 25204 "s/'/'\\\\''/g; 25205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25206 ;; 25207 *) 25208 # `set' quotes correctly as required by POSIX, so do not add quotes. 25209 sed -n \ 25210 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 25211 ;; 25212 esac; 25213} | 25214 sed ' 25215 t clear 25216 : clear 25217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25218 t end 25219 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25220 : end' >>confcache 25221if cmp -s $cache_file confcache; then :; else 25222 if test -w $cache_file; then 25223 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 25224 cat confcache >$cache_file 25225 else 25226 echo "not updating unwritable cache $cache_file" 25227 fi 25228fi 25229rm -f confcache 25230 25231test "x$prefix" = xNONE && prefix=$ac_default_prefix 25232# Let make expand exec_prefix. 25233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25234 25235# VPATH may cause trouble with some makes, so we remove $(srcdir), 25236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25237# trailing colons and then remove the whole line if VPATH becomes empty 25238# (actually we leave an empty line to preserve line numbers). 25239if test "x$srcdir" = x.; then 25240 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25241s/:*\$(srcdir):*/:/; 25242s/:*\${srcdir}:*/:/; 25243s/:*@srcdir@:*/:/; 25244s/^\([^=]*=[ ]*\):*/\1/; 25245s/:*$//; 25246s/^[^=]*=[ ]*$//; 25247}' 25248fi 25249 25250DEFS=-DHAVE_CONFIG_H 25251 25252: "${CONFIG_STATUS=./config.status}" 25253ac_clean_files_save=$ac_clean_files 25254ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25255{ echo "$as_me:25255: creating $CONFIG_STATUS" >&5 25256echo "$as_me: creating $CONFIG_STATUS" >&6;} 25257cat >"$CONFIG_STATUS" <<_ACEOF 25258#! $SHELL 25259# Generated automatically by configure. 25260# Run this file to recreate the current configuration. 25261# Compiler output produced by configure, useful for debugging 25262# configure, is in config.log if it exists. 25263 25264me=\`echo "\$0" | sed -e 's,.*\\/,,'\` 25265 25266debug=false 25267SHELL=\${CONFIG_SHELL-$SHELL} 25268ac_cs_invocation="\$0 \$@" 25269 25270CLICOLOR_FORCE= GREP_OPTIONS= 25271unset CLICOLOR_FORCE GREP_OPTIONS 25272_ACEOF 25273 25274cat >>"$CONFIG_STATUS" <<\_ACEOF 25275# Be Bourne compatible 25276if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25277 emulate sh 25278 NULLCMD=: 25279elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 25280 set -o posix 25281fi 25282 25283# Name of the executable. 25284as_me=`echo "$0" |sed 's,.*[\\/],,'` 25285 25286if expr a : '\(a\)' >/dev/null 2>&1; then 25287 as_expr="expr" 25288else 25289 as_expr="false" 25290fi 25291 25292rm -f conf$$ conf$$.exe conf$$.file 25293echo >conf$$.file 25294if ln -s conf$$.file conf$$ 2>/dev/null; then 25295 # We could just check for DJGPP; but this test a) works b) is more generic 25296 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 25297 if test -f conf$$.exe; then 25298 # Don't use ln at all; we don't have any links 25299 as_ln_s='cp -p' 25300 else 25301 as_ln_s='ln -s' 25302 fi 25303elif ln conf$$.file conf$$ 2>/dev/null; then 25304 as_ln_s='ln' 25305else 25306 as_ln_s='cp -p' 25307fi 25308rm -f conf$$ conf$$.exe conf$$.file 25309 25310as_executable_p="test -f" 25311 25312# Support unset when possible. 25313if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 25314 as_unset="unset" 25315else 25316 as_unset="false" 25317fi 25318 25319# NLS nuisances. 25320$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 25321$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 25322$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 25323$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 25324$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 25325$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 25326$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 25327$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 25328 25329# IFS 25330# We need space, tab and new line, in precisely that order. 25331as_nl=' 25332' 25333IFS=" $as_nl" 25334 25335# CDPATH. 25336$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 25337 25338exec 6>&1 25339 25340_ACEOF 25341 25342# Files that config.status was made for. 25343if test -n "$ac_config_files"; then 25344 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 25345fi 25346 25347if test -n "$ac_config_headers"; then 25348 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 25349fi 25350 25351if test -n "$ac_config_links"; then 25352 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 25353fi 25354 25355if test -n "$ac_config_commands"; then 25356 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 25357fi 25358 25359cat >>"$CONFIG_STATUS" <<\EOF 25360 25361ac_cs_usage="\ 25362\`$as_me' instantiates files from templates according to the 25363current configuration. 25364 25365Usage: $0 [OPTIONS] [FILE]... 25366 25367 -h, --help print this help, then exit 25368 -V, --version print version number, then exit 25369 -d, --debug don't remove temporary files 25370 --recheck update $as_me by reconfiguring in the same conditions 25371 --file=FILE[:TEMPLATE] 25372 instantiate the configuration file FILE 25373 --header=FILE[:TEMPLATE] 25374 instantiate the configuration header FILE 25375 25376Configuration files: 25377$config_files 25378 25379Configuration headers: 25380$config_headers 25381 25382Report bugs to <dickey@invisible-island.net>." 25383EOF 25384 25385cat >>"$CONFIG_STATUS" <<EOF 25386ac_cs_version="\\ 25387config.status 25388configured by $0, generated by GNU Autoconf 2.52.20230114, 25389 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 25390 25391Copyright 2003-2022,2023 Thomas E. Dickey 25392Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 25393Free Software Foundation, Inc. 25394This config.status script is free software; the Free Software Foundation 25395gives unlimited permission to copy, distribute and modify it." 25396srcdir="$srcdir" 25397INSTALL="$INSTALL" 25398EOF 25399 25400cat >>"$CONFIG_STATUS" <<\EOF 25401# If no file are specified by the user, then we need to provide default 25402# value. By we need to know if files were specified by the user. 25403ac_need_defaults=: 25404while test $# != 0 25405do 25406 case $1 in 25407 --*=*) 25408 ac_option=`expr "x$1" : 'x\([^=]*\)='` 25409 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 25410 shift 25411 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 25412 shift 25413 ;; 25414 -*);; 25415 *) # This is not an option, so the user has probably given explicit 25416 # arguments. 25417 ac_need_defaults=false;; 25418 esac 25419 25420 case $1 in 25421 # Handling of the options. 25422EOF 25423cat >>"$CONFIG_STATUS" <<EOF 25424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25425 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 25426 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 25427EOF 25428cat >>"$CONFIG_STATUS" <<\EOF 25429 --version | --vers* | -V ) 25430 echo "$ac_cs_version"; exit 0 ;; 25431 --he | --h) 25432 # Conflict between --help and --header 25433 { { echo "$as_me:25433: error: ambiguous option: $1 25434Try \`$0 --help' for more information." >&5 25435echo "$as_me: error: ambiguous option: $1 25436Try \`$0 --help' for more information." >&2;} 25437 { (exit 1); exit 1; }; };; 25438 --help | --hel | -h ) 25439 echo "$ac_cs_usage"; exit 0 ;; 25440 --debug | --d* | -d ) 25441 debug=: ;; 25442 --file | --fil | --fi | --f ) 25443 shift 25444 CONFIG_FILES="$CONFIG_FILES $1" 25445 ac_need_defaults=false;; 25446 --header | --heade | --head | --hea ) 25447 shift 25448 CONFIG_HEADERS="$CONFIG_HEADERS $1" 25449 ac_need_defaults=false;; 25450 25451 # This is an error. 25452 -*) { { echo "$as_me:25452: error: unrecognized option: $1 25453Try \`$0 --help' for more information." >&5 25454echo "$as_me: error: unrecognized option: $1 25455Try \`$0 --help' for more information." >&2;} 25456 { (exit 1); exit 1; }; } ;; 25457 25458 *) ac_config_targets="$ac_config_targets $1" ;; 25459 25460 esac 25461 shift 25462done 25463 25464exec 5>>config.log 25465cat >&5 << _ACEOF 25466 25467## ----------------------- ## 25468## Running config.status. ## 25469## ----------------------- ## 25470 25471This file was extended by $as_me 2.52.20230114, executed with 25472 CONFIG_FILES = $CONFIG_FILES 25473 CONFIG_HEADERS = $CONFIG_HEADERS 25474 CONFIG_LINKS = $CONFIG_LINKS 25475 CONFIG_COMMANDS = $CONFIG_COMMANDS 25476 > "$ac_cs_invocation" 25477on `(hostname || uname -n) 2>/dev/null | sed 1q` 25478 25479_ACEOF 25480EOF 25481 25482cat >>"$CONFIG_STATUS" <<\EOF 25483for ac_config_target in $ac_config_targets 25484do 25485 case "$ac_config_target" in 25486 # Handling of arguments. 25487 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25488 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 25489 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 25490 "run-tic.sh" ) CONFIG_FILES="$CONFIG_FILES run-tic.sh:run-tic.in" ;; 25491 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 25492 *) { { echo "$as_me:25492: error: invalid argument: $ac_config_target" >&5 25493echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 25494 { (exit 1); exit 1; }; };; 25495 esac 25496done 25497 25498# If the user did not use the arguments to specify the items to instantiate, 25499# then the envvar interface is used. Set only those that are not. 25500# We use the long form for the default assignment because of an extremely 25501# bizarre bug on SunOS 4.1.3. 25502if "$ac_need_defaults"; then 25503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25505fi 25506 25507# Create a temporary directory, and hook for its removal unless debugging. 25508$debug || 25509{ 25510 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 25511 trap '{ (exit 1); exit 1; }' 1 2 13 15 25512} 25513 25514# Create a (secure) tmp directory for tmp files. 25515: "${TMPDIR=/tmp}" 25516{ 25517 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 25518 test -n "$tmp" && test -d "$tmp" 25519} || 25520{ 25521 tmp=$TMPDIR/cs$$-$RANDOM 25522 (umask 077 && mkdir "$tmp") 25523} || 25524{ 25525 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 25526 { (exit 1); exit 1; } 25527} 25528 25529EOF 25530 25531cat >>"$CONFIG_STATUS" <<EOF 25532 25533# 25534# CONFIG_FILES section. 25535# 25536 25537# No need to generate the scripts if there are no CONFIG_FILES. 25538# This happens for instance when ./config.status config.h 25539if test -n "\$CONFIG_FILES"; then 25540 # Protect against being on the right side of a sed subst in config.status. 25541 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 25542 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF 25543s,@SHELL@,$SHELL,;t t 25544s,@exec_prefix@,$exec_prefix,;t t 25545s,@prefix@,$prefix,;t t 25546s,@program_transform_name@,$program_transform_name,;t t 25547s,@bindir@,$bindir,;t t 25548s,@sbindir@,$sbindir,;t t 25549s,@libexecdir@,$libexecdir,;t t 25550s,@datarootdir@,$datarootdir,;t t 25551s,@datadir@,$datadir,;t t 25552s,@sysconfdir@,$sysconfdir,;t t 25553s,@sharedstatedir@,$sharedstatedir,;t t 25554s,@localstatedir@,$localstatedir,;t t 25555s,@runstatedir@,$runstatedir,;t t 25556s,@libdir@,$libdir,;t t 25557s,@includedir@,$includedir,;t t 25558s,@oldincludedir@,$oldincludedir,;t t 25559s,@infodir@,$infodir,;t t 25560s,@mandir@,$mandir,;t t 25561s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 25562s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 25563s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 25564s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 25565s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 25566s,@build_alias@,$build_alias,;t t 25567s,@host_alias@,$host_alias,;t t 25568s,@target_alias@,$target_alias,;t t 25569s,@ECHO_C@,$ECHO_C,;t t 25570s,@ECHO_N@,$ECHO_N,;t t 25571s,@ECHO_T@,$ECHO_T,;t t 25572s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 25573s,@DEFS@,$DEFS,;t t 25574s,@LIBS@,$LIBS,;t t 25575s,@build@,$build,;t t 25576s,@build_cpu@,$build_cpu,;t t 25577s,@build_vendor@,$build_vendor,;t t 25578s,@build_os@,$build_os,;t t 25579s,@host@,$host,;t t 25580s,@host_cpu@,$host_cpu,;t t 25581s,@host_vendor@,$host_vendor,;t t 25582s,@host_os@,$host_os,;t t 25583s,@CC@,$CC,;t t 25584s,@CFLAGS@,$CFLAGS,;t t 25585s,@LDFLAGS@,$LDFLAGS,;t t 25586s,@CPPFLAGS@,$CPPFLAGS,;t t 25587s,@ac_ct_CC@,$ac_ct_CC,;t t 25588s,@EXEEXT@,$EXEEXT,;t t 25589s,@OBJEXT@,$OBJEXT,;t t 25590s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 25591s,@CPP@,$CPP,;t t 25592s,@GREP@,$GREP,;t t 25593s,@EGREP@,$EGREP,;t t 25594s,@AWK@,$AWK,;t t 25595s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 25596s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 25597s,@INSTALL_DATA@,$INSTALL_DATA,;t t 25598s,@LN_S@,$LN_S,;t t 25599s,@LINT@,$LINT,;t t 25600s,@LINT_OPTS@,$LINT_OPTS,;t t 25601s,@LINT_LIBS@,$LINT_LIBS,;t t 25602s,@APP_CLASS@,$APP_CLASS,;t t 25603s,@APPSDIR@,$APPSDIR,;t t 25604s,@no_appsdir@,$no_appsdir,;t t 25605s,@ICON_NAME@,$ICON_NAME,;t t 25606s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 25607s,@PIXMAPDIR@,$PIXMAPDIR,;t t 25608s,@no_pixmapdir@,$no_pixmapdir,;t t 25609s,@ICONDIR@,$ICONDIR,;t t 25610s,@no_icondir@,$no_icondir,;t t 25611s,@ICON_FORMAT@,$ICON_FORMAT,;t t 25612s,@ICON_THEME@,$ICON_THEME,;t t 25613s,@ICON_LIST@,$ICON_LIST,;t t 25614s,@desktop_utils@,$desktop_utils,;t t 25615s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 25616s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 25617s,@XTERM_PATH@,$XTERM_PATH,;t t 25618s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 25619s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 25620s,@X_CFLAGS@,$X_CFLAGS,;t t 25621s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 25622s,@X_LIBS@,$X_LIBS,;t t 25623s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 25624s,@PKG_CONFIG@,$PKG_CONFIG,;t t 25625s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 25626s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 25627s,@IMAKE@,$IMAKE,;t t 25628s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 25629s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 25630s,@GROFF_PATH@,$GROFF_PATH,;t t 25631s,@NROFF_PATH@,$NROFF_PATH,;t t 25632s,@TBL_PATH@,$TBL_PATH,;t t 25633s,@GROFF_NOTE@,$GROFF_NOTE,;t t 25634s,@NROFF_NOTE@,$NROFF_NOTE,;t t 25635s,@FGREP@,$FGREP,;t t 25636s,@cf_man2html@,$cf_man2html,;t t 25637s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 25638s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 25639s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 25640s,@default_termid@,$default_termid,;t t 25641s,@default_TERM@,$default_TERM,;t t 25642s,@backarrow_is_bs@,$backarrow_is_bs,;t t 25643s,@backarrow_is_erase@,$backarrow_is_erase,;t t 25644s,@delete_is_del@,$delete_is_del,;t t 25645s,@initial_erase@,$initial_erase,;t t 25646s,@alt_sends_esc@,$alt_sends_esc,;t t 25647s,@meta_sends_esc@,$meta_sends_esc,;t t 25648s,@cf_tic_prog@,$cf_tic_prog,;t t 25649s,@no_ticprog@,$no_ticprog,;t t 25650s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 25651s,@SET_TERMINFO@,$SET_TERMINFO,;t t 25652s,@double_buffer@,$double_buffer,;t t 25653s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 25654s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 25655s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 25656s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 25657s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 25658s,@LUIT@,$LUIT,;t t 25659s,@ECHO_LT@,$ECHO_LT,;t t 25660s,@ECHO_LD@,$ECHO_LD,;t t 25661s,@RULE_CC@,$RULE_CC,;t t 25662s,@SHOW_CC@,$SHOW_CC,;t t 25663s,@ECHO_CC@,$ECHO_CC,;t t 25664s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 25665s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t 25666s,@STDC_NORETURN@,$STDC_NORETURN,;t t 25667s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 25668s,@EXTRAHDRS@,$EXTRAHDRS,;t t 25669s,@EXTRASRCS@,$EXTRASRCS,;t t 25670s,@EXTRAOBJS@,$EXTRAOBJS,;t t 25671s,@MAY_SETUID@,$MAY_SETUID,;t t 25672s,@NOT_SETUID@,$NOT_SETUID,;t t 25673s,@CTAGS@,$CTAGS,;t t 25674s,@ETAGS@,$ETAGS,;t t 25675s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 25676s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 25677s,@cf_ldd_prog@,$cf_ldd_prog,;t t 25678s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 25679CEOF 25680 25681EOF 25682 25683 cat >>"$CONFIG_STATUS" <<\EOF 25684 # Split the substitutions into bite-sized pieces for seds with 25685 # small command number limits, like on Digital OSF/1 and HP-UX. 25686 ac_max_sed_lines=48 25687 ac_sed_frag=1 # Number of current file. 25688 ac_beg=1 # First line for current file. 25689 ac_end=$ac_max_sed_lines # Line after last line for current file. 25690 ac_more_lines=: 25691 ac_sed_cmds= 25692 while "$ac_more_lines"; do 25693 if test "$ac_beg" -gt 1; then 25694 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 25695 else 25696 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 25697 fi 25698 if test ! -s "$tmp"/subs.frag; then 25699 ac_more_lines=false 25700 else 25701 # The purpose of the label and of the branching condition is to 25702 # speed up the sed processing (if there are no `@' at all, there 25703 # is no need to browse any of the substitutions). 25704 # These are the two extra sed commands mentioned above. 25705 (echo ':t 25706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed 25707 # It is possible to make a multiline substitution using escaped newlines. 25708 # Ensure that we do not split the substitution between script fragments. 25709 ac_BEG=$ac_end 25710 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 25711 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next 25712 if test -s "$tmp"/subs.next; then 25713 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit 25714 if test ! -s "$tmp"/subs.edit; then 25715 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit 25716 if test ! -s "$tmp"/subs.edit; then 25717 if test "$ac_beg" -gt 1; then 25718 ac_end=`expr "$ac_end" - 1` 25719 continue 25720 fi 25721 fi 25722 fi 25723 fi 25724 25725 if test -z "$ac_sed_cmds"; then 25726 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 25727 else 25728 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 25729 fi 25730 ac_sed_frag=`expr "$ac_sed_frag" + 1` 25731 ac_beg=$ac_end 25732 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 25733 fi 25734 done 25735 if test -z "$ac_sed_cmds"; then 25736 ac_sed_cmds="cat" 25737 fi 25738fi # test -n "$CONFIG_FILES" 25739 25740EOF 25741cat >>"$CONFIG_STATUS" <<\EOF 25742for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 25743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25744 case "$ac_file" in 25745 - | *:- | *:-:* ) # input from stdin 25746 cat >"$tmp"/stdin 25747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25751 * ) ac_file_in=$ac_file.in ;; 25752 esac 25753 25754 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 25755 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25756 X"$ac_file" : 'X\(//\)[^/]' \| \ 25757 X"$ac_file" : 'X\(//\)$' \| \ 25758 X"$ac_file" : 'X\(/\)' \| \ 25759 . : '\(.\)' 2>/dev/null || 25760echo X"$ac_file" | 25761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25762 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25763 /^X\(\/\/\)$/{ s//\1/; q; } 25764 /^X\(\/\).*/{ s//\1/; q; } 25765 s/.*/./; q'` 25766 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25767 { case "$ac_dir" in 25768 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 25769 *) as_incr_dir=.;; 25770esac 25771as_dummy="$ac_dir" 25772for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 25773 case $as_mkdir_dir in 25774 # Skip DOS drivespec 25775 ?:) as_incr_dir=$as_mkdir_dir ;; 25776 *) 25777 as_incr_dir=$as_incr_dir/$as_mkdir_dir 25778 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 25779 ;; 25780 esac 25781done; } 25782 25783 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`" 25784 # A "../" for each directory in $ac_dir_suffix. 25785 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 25786 else 25787 ac_dir_suffix= ac_dots= 25788 fi 25789 25790 case "$srcdir" in 25791 .) ac_srcdir=. 25792 if test -z "$ac_dots"; then 25793 ac_top_srcdir=. 25794 else 25795 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 25796 fi ;; 25797 [\\/]* | ?:[\\/]* ) 25798 ac_srcdir="$srcdir$ac_dir_suffix"; 25799 ac_top_srcdir="$srcdir" ;; 25800 *) # Relative path. 25801 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 25802 ac_top_srcdir="$ac_dots$srcdir" ;; 25803 esac 25804 25805 case $INSTALL in 25806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25807 *) ac_INSTALL=$ac_dots$INSTALL ;; 25808 esac 25809 25810 if test x"$ac_file" != x-; then 25811 { echo "$as_me:25811: creating $ac_file" >&5 25812echo "$as_me: creating $ac_file" >&6;} 25813 rm -f "$ac_file" 25814 fi 25815 # Let's still pretend it is `configure' which instantiates (i.e., don't 25816 # use $as_me), people would be surprised to read: 25817 # /* config.h. Generated automatically by config.status. */ 25818 configure_input="Generated automatically from `echo $ac_file_in | 25819 sed 's,.*/,,'` by configure." 25820 25821 # First look for the input files in the build tree, otherwise in the 25822 # src tree. 25823 ac_file_inputs=`IFS=: 25824 for f in $ac_file_in; do 25825 case $f in 25826 -) echo "$tmp"/stdin ;; 25827 [\\/$]*) 25828 # Absolute (can't be DOS-style, as IFS=:) 25829 test -f "$f" || { { echo "$as_me:25829: error: cannot find input file: $f" >&5 25830echo "$as_me: error: cannot find input file: $f" >&2;} 25831 { (exit 1); exit 1; }; } 25832 echo "$f";; 25833 *) # Relative 25834 if test -f "$f"; then 25835 # Build tree 25836 echo "$f" 25837 elif test -f "$srcdir/$f"; then 25838 # Source tree 25839 echo "$srcdir/$f" 25840 else 25841 # /dev/null tree 25842 { { echo "$as_me:25842: error: cannot find input file: $f" >&5 25843echo "$as_me: error: cannot find input file: $f" >&2;} 25844 { (exit 1); exit 1; }; } 25845 fi;; 25846 esac 25847 done` || { (exit 1); exit 1; } 25848EOF 25849cat >>"$CONFIG_STATUS" <<\EOF 25850 ac_warn_datarootdir=no 25851 if test x"$ac_file" != x-; then 25852 for ac_item in $ac_file_inputs 25853 do 25854 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 25855 if test -n "$ac_seen"; then 25856 ac_used=`grep '@datarootdir@' "$ac_item"` 25857 if test -z "$ac_used"; then 25858 { echo "$as_me:25858: WARNING: datarootdir was used implicitly but not set: 25859$ac_seen" >&5 25860echo "$as_me: WARNING: datarootdir was used implicitly but not set: 25861$ac_seen" >&2;} 25862 ac_warn_datarootdir=yes 25863 fi 25864 fi 25865 ac_seen=`grep '${datarootdir}' "$ac_item"` 25866 if test -n "$ac_seen"; then 25867 { echo "$as_me:25867: WARNING: datarootdir was used explicitly but not set: 25868$ac_seen" >&5 25869echo "$as_me: WARNING: datarootdir was used explicitly but not set: 25870$ac_seen" >&2;} 25871 ac_warn_datarootdir=yes 25872 fi 25873 done 25874 fi 25875 25876if test "x$ac_warn_datarootdir" = xyes; then 25877 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 25878fi 25879 25880EOF 25881cat >>"$CONFIG_STATUS" <<EOF 25882 sed "$ac_vpsub 25883$extrasub 25884EOF 25885cat >>"$CONFIG_STATUS" <<\EOF 25886:t 25887/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25888s,@configure_input@,$configure_input,;t t 25889s,@srcdir@,$ac_srcdir,;t t 25890s,@top_srcdir@,$ac_top_srcdir,;t t 25891s,@INSTALL@,$ac_INSTALL,;t t 25892" $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out 25893 rm -f "$tmp"/stdin 25894EOF 25895: "${FGREP:=grep -F}" 25896: "${EGREP:=grep -E}" 25897cat >>"$CONFIG_STATUS" <<EOF 25898 : "\${FGREP:=$FGREP}" 25899 : "\${EGREP:=$EGREP}" 25900EOF 25901cat >>"$CONFIG_STATUS" <<\EOF 25902 if test x"$ac_file" != x-; then 25903 cp "$tmp/out" "$ac_file" 25904 25905 for ac_name in prefix exec_prefix datarootdir 25906 do 25907 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"` 25908 if test -n "$ac_seen"; then 25909 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"` 25910 if test -z "$ac_init"; then 25911 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'` 25912 { echo "$as_me:25912: WARNING: Variable $ac_name is used but was not set: 25913$ac_seen" >&5 25914echo "$as_me: WARNING: Variable $ac_name is used but was not set: 25915$ac_seen" >&2;} 25916 fi 25917 fi 25918 done 25919 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out 25920 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out 25921 if test -s "$tmp"/out; then 25922 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out` 25923 { echo "$as_me:25923: WARNING: Some variables may not be substituted: 25924$ac_seen" >&5 25925echo "$as_me: WARNING: Some variables may not be substituted: 25926$ac_seen" >&2;} 25927 fi 25928 else 25929 cat "$tmp"/out 25930 fi 25931 rm -f "$tmp"/out 25932 25933done 25934EOF 25935cat >>"$CONFIG_STATUS" <<\EOF 25936 25937# 25938# CONFIG_HEADER section. 25939# 25940 25941# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 25942# NAME is the cpp macro being defined and VALUE is the value it is being given. 25943# 25944# ac_d sets the value in "#define NAME VALUE" lines. 25945ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 25946ac_dB='[ ].*$,\1#\2' 25947ac_dC=' ' 25948ac_dD=',;t' 25949# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 25950ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25951ac_iB='\([ ]\),\1#\2define\3' 25952ac_iC=' ' 25953ac_iD='\4,;t' 25954# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 25955ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25956ac_uB='$,\1#\2define\3' 25957ac_uC=' ' 25958ac_uD=',;t' 25959 25960for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 25961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25962 case "$ac_file" in 25963 - | *:- | *:-:* ) # input from stdin 25964 cat >"$tmp"/stdin 25965 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25966 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25967 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25969 * ) ac_file_in=$ac_file.in ;; 25970 esac 25971 25972 test x"$ac_file" != x- && { echo "$as_me:25972: creating $ac_file" >&5 25973echo "$as_me: creating $ac_file" >&6;} 25974 25975 # First look for the input files in the build tree, otherwise in the 25976 # src tree. 25977 ac_file_inputs=`IFS=: 25978 for f in $ac_file_in; do 25979 case $f in 25980 -) echo "$tmp"/stdin ;; 25981 [\\/$]*) 25982 # Absolute (can't be DOS-style, as IFS=:) 25983 test -f "$f" || { { echo "$as_me:25983: error: cannot find input file: $f" >&5 25984echo "$as_me: error: cannot find input file: $f" >&2;} 25985 { (exit 1); exit 1; }; } 25986 echo $f;; 25987 *) # Relative 25988 if test -f "$f"; then 25989 # Build tree 25990 echo $f 25991 elif test -f "$srcdir/$f"; then 25992 # Source tree 25993 echo "$srcdir/$f" 25994 else 25995 # /dev/null tree 25996 { { echo "$as_me:25996: error: cannot find input file: $f" >&5 25997echo "$as_me: error: cannot find input file: $f" >&2;} 25998 { (exit 1); exit 1; }; } 25999 fi;; 26000 esac 26001 done` || { (exit 1); exit 1; } 26002 # Remove the trailing spaces. 26003 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in 26004 26005EOF 26006 26007# Transform confdefs.h into two sed scripts, `conftest.defines' and 26008# `conftest.undefs', that substitutes the proper values into 26009# config.h.in to produce config.h. The first handles `#define' 26010# templates, and the second `#undef' templates. 26011# And first: Protect against being on the right side of a sed subst in 26012# config.status. Protect against being in an unquoted here document 26013# in config.status. 26014rm -f conftest.defines conftest.undefs 26015# Using a here document instead of a string reduces the quoting nightmare. 26016# Putting comments in sed scripts is not portable. 26017# 26018# `end' is used to avoid that the second main sed command (meant for 26019# 0-ary CPP macros) applies to n-ary macro definitions. 26020# See the Autoconf documentation for `clear'. 26021cat >confdef2sed.sed <<\EOF 26022s/[\\&,]/\\&/g 26023s,[\\$`],\\&,g 26024t clear 26025: clear 26026s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 26027t end 26028s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 26029: end 26030EOF 26031# If some macros were called several times there might be several times 26032# the same #defines, which is useless. Nevertheless, we may not want to 26033# sort them, since we want the *last* AC-DEFINE to be honored. 26034uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 26035sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 26036sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 26037rm -f confdef2sed.sed 26038 26039# This sed command replaces #undef with comments. This is necessary, for 26040# example, in the case of _POSIX_SOURCE, which is predefined and required 26041# on some systems where configure will not decide to define it. 26042cat >>conftest.undefs <<\EOF 26043s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 26044EOF 26045 26046# Break up conftest.defines because some shells have a limit on the size 26047# of here documents, and old seds have small limits too (100 cmds). 26048echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS" 26049echo ' if ${EGREP-grep -E} "^[ ]*#[ ]*define" "$tmp"/in >/dev/null; then' >>"$CONFIG_STATUS" 26050echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS" 26051echo ' :' >>"$CONFIG_STATUS" 26052rm -f conftest.tail 26053while grep . conftest.defines >/dev/null 26054do 26055 # Write a limited-size here document to "$tmp"/defines.sed. 26056 echo ' cat >"$tmp"/defines.sed <<CEOF' >>"$CONFIG_STATUS" 26057 # Speed up: don't consider the non `#define' lines. 26058 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS" 26059 # Work around the forget-to-reset-the-flag bug. 26060 echo 't clr' >>"$CONFIG_STATUS" 26061 echo ': clr' >>"$CONFIG_STATUS" 26062 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS" 26063 echo 'CEOF 26064 sed -f "$tmp"/defines.sed "$tmp"/in >"$tmp"/out 26065 rm -f "$tmp"/in 26066 mv "$tmp"/out "$tmp"/in 26067' >>"$CONFIG_STATUS" 26068 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail 26069 rm -f conftest.defines 26070 mv conftest.tail conftest.defines 26071done 26072rm -f conftest.defines 26073echo ' fi # grep' >>"$CONFIG_STATUS" 26074echo >>"$CONFIG_STATUS" 26075 26076# Break up conftest.undefs because some shells have a limit on the size 26077# of here documents, and old seds have small limits too (100 cmds). 26078echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS" 26079rm -f conftest.tail 26080while grep . conftest.undefs >/dev/null 26081do 26082 # Write a limited-size here document to "$tmp"/undefs.sed. 26083 echo ' cat >"$tmp"/undefs.sed <<CEOF' >>"$CONFIG_STATUS" 26084 # Speed up: don't consider the non `#undef' 26085 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS" 26086 # Work around the forget-to-reset-the-flag bug. 26087 echo 't clr' >>"$CONFIG_STATUS" 26088 echo ': clr' >>"$CONFIG_STATUS" 26089 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS" 26090 echo 'CEOF 26091 sed -f "$tmp"/undefs.sed "$tmp"/in >"$tmp"/out 26092 rm -f "$tmp"/in 26093 mv "$tmp"/out "$tmp"/in 26094' >>"$CONFIG_STATUS" 26095 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail 26096 rm -f conftest.undefs 26097 mv conftest.tail conftest.undefs 26098done 26099rm -f conftest.undefs 26100 26101cat >>"$CONFIG_STATUS" <<\EOF 26102 # Let's still pretend it is `configure' which instantiates (i.e., don't 26103 # use $as_me), people would be surprised to read: 26104 # /* config.h. Generated automatically by config.status. */ 26105 if test x"$ac_file" = x-; then 26106 echo "/* Generated automatically by configure. */" >"$tmp"/config.h 26107 else 26108 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h 26109 fi 26110 cat "$tmp"/in >>"$tmp"/config.h 26111 rm -f "$tmp"/in 26112 if test x"$ac_file" != x-; then 26113 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 26114 { echo "$as_me:26114: $ac_file is unchanged" >&5 26115echo "$as_me: $ac_file is unchanged" >&6;} 26116 else 26117 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26118 X"$ac_file" : 'X\(//\)[^/]' \| \ 26119 X"$ac_file" : 'X\(//\)$' \| \ 26120 X"$ac_file" : 'X\(/\)' \| \ 26121 . : '\(.\)' 2>/dev/null || 26122echo X"$ac_file" | 26123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26124 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26125 /^X\(\/\/\)$/{ s//\1/; q; } 26126 /^X\(\/\).*/{ s//\1/; q; } 26127 s/.*/./; q'` 26128 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 26129 { case "$ac_dir" in 26130 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 26131 *) as_incr_dir=.;; 26132esac 26133as_dummy="$ac_dir" 26134for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 26135 case $as_mkdir_dir in 26136 # Skip DOS drivespec 26137 ?:) as_incr_dir=$as_mkdir_dir ;; 26138 *) 26139 as_incr_dir=$as_incr_dir/$as_mkdir_dir 26140 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 26141 ;; 26142 esac 26143done; } 26144 26145 fi 26146 rm -f "$ac_file" 26147 mv "$tmp/config.h" "$ac_file" 26148 fi 26149 else 26150 cat "$tmp"/config.h 26151 rm -f "$tmp"/config.h 26152 fi 26153done 26154EOF 26155 26156cat >>"$CONFIG_STATUS" <<\EOF 26157 26158{ (exit 0); exit 0; } 26159EOF 26160chmod +x "$CONFIG_STATUS" 26161ac_clean_files=$ac_clean_files_save 26162 26163# configure is writing to config.log, and then calls config.status. 26164# config.status does its own redirection, appending to config.log. 26165# Unfortunately, on DOS this fails, as config.log is still kept open 26166# by configure, so config.status won't be able to write to it; its 26167# output is simply discarded. So we exec the FD to /dev/null, 26168# effectively closing config.log, so it can be properly (re)opened and 26169# appended to by config.status. When coming back to configure, we 26170# need to make the FD available again. 26171if test "$no_create" != yes; then 26172 ac_cs_success=: 26173 exec 5>/dev/null 26174 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 26175 exec 5>>config.log 26176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26177 # would make configure fail if this is the last instruction. 26178 "$ac_cs_success" || { (exit 1); exit 1; } 26179fi 26180 26181