1#! /bin/sh 2# From configure.in Revision: 1.23 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20170501. 5# 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= MAKEFLAGS= 101SHELL=${CONFIG_SHELL-/bin/sh} 102 103# Maximum number of lines to put in a shell here document. 104# This variable seems obsolete. It should probably be removed, and 105# only ac_max_sed_lines should be used. 106: ${ac_max_here_lines=38} 107 108ac_unique_file="add.c" 109 110# Initialize some variables set by options. 111ac_init_help= 112ac_init_version=false 113# The variables have the same names as the options, with 114# dashes changed to underlines. 115cache_file=/dev/null 116exec_prefix=NONE 117no_create= 118no_recursion= 119prefix=NONE 120program_prefix=NONE 121program_suffix=NONE 122program_transform_name=s,x,x, 123silent= 124site= 125srcdir= 126verbose= 127x_includes=NONE 128x_libraries=NONE 129 130# Installation directory options. 131# These are left unexpanded so users can "make install exec_prefix=/foo" 132# and all the variables that are supposed to be based on exec_prefix 133# by default will actually change. 134# Use braces instead of parens because sh, perl, etc. also accept them. 135bindir='${exec_prefix}/bin' 136sbindir='${exec_prefix}/sbin' 137libexecdir='${exec_prefix}/libexec' 138datarootdir='${prefix}/share' 139datadir='${datarootdir}' 140sysconfdir='${prefix}/etc' 141sharedstatedir='${prefix}/com' 142localstatedir='${prefix}/var' 143libdir='${exec_prefix}/lib' 144includedir='${prefix}/include' 145oldincludedir='/usr/include' 146infodir='${datarootdir}/info' 147mandir='${datarootdir}/man' 148 149# Identity of this package. 150PACKAGE_NAME= 151PACKAGE_TARNAME= 152PACKAGE_VERSION= 153PACKAGE_STRING= 154PACKAGE_BUGREPORT= 155 156ac_prev= 157for ac_option 158do 159 # If the previous option needs an argument, assign it. 160 if test -n "$ac_prev"; then 161 eval "$ac_prev=\$ac_option" 162 ac_prev= 163 continue 164 fi 165 166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 167 168 # Accept the important Cygnus configure options, so we can diagnose typos. 169 170 case $ac_option in 171 172 -bindir | --bindir | --bindi | --bind | --bin | --bi) 173 ac_prev=bindir ;; 174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 175 bindir=$ac_optarg ;; 176 177 -build | --build | --buil | --bui | --bu) 178 ac_prev=build_alias ;; 179 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 180 build_alias=$ac_optarg ;; 181 182 -cache-file | --cache-file | --cache-fil | --cache-fi \ 183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 184 ac_prev=cache_file ;; 185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 187 cache_file=$ac_optarg ;; 188 189 --config-cache | -C) 190 cache_file=config.cache ;; 191 192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 193 ac_prev=datadir ;; 194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 195 | --da=*) 196 datadir=$ac_optarg ;; 197 198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 199 | --dataroo | --dataro | --datar) 200 ac_prev=datarootdir ;; 201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 203 datarootdir=$ac_optarg ;; 204 205 -disable-* | --disable-*) 206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 207 # Reject names that are not valid shell variable names. 208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 210 { (exit 1); exit 1; }; } 211 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 212 eval "enable_$ac_feature=no" ;; 213 214 -enable-* | --enable-*) 215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 216 # Reject names that are not valid shell variable names. 217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 219 { (exit 1); exit 1; }; } 220 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 221 case $ac_option in 222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 223 *) ac_optarg=yes ;; 224 esac 225 eval "enable_$ac_feature='$ac_optarg'" ;; 226 227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 229 | --exec | --exe | --ex) 230 ac_prev=exec_prefix ;; 231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 233 | --exec=* | --exe=* | --ex=*) 234 exec_prefix=$ac_optarg ;; 235 236 -gas | --gas | --ga | --g) 237 # Obsolete; use --with-gas. 238 with_gas=yes ;; 239 240 -help | --help | --hel | --he | -h) 241 ac_init_help=long ;; 242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 243 ac_init_help=recursive ;; 244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 245 ac_init_help=short ;; 246 247 -host | --host | --hos | --ho) 248 ac_prev=host_alias ;; 249 -host=* | --host=* | --hos=* | --ho=*) 250 host_alias=$ac_optarg ;; 251 252 -includedir | --includedir | --includedi | --included | --include \ 253 | --includ | --inclu | --incl | --inc) 254 ac_prev=includedir ;; 255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 256 | --includ=* | --inclu=* | --incl=* | --inc=*) 257 includedir=$ac_optarg ;; 258 259 -infodir | --infodir | --infodi | --infod | --info | --inf) 260 ac_prev=infodir ;; 261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 262 infodir=$ac_optarg ;; 263 264 -libdir | --libdir | --libdi | --libd) 265 ac_prev=libdir ;; 266 -libdir=* | --libdir=* | --libdi=* | --libd=*) 267 libdir=$ac_optarg ;; 268 269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 270 | --libexe | --libex | --libe) 271 ac_prev=libexecdir ;; 272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 273 | --libexe=* | --libex=* | --libe=*) 274 libexecdir=$ac_optarg ;; 275 276 -localstatedir | --localstatedir | --localstatedi | --localstated \ 277 | --localstate | --localstat | --localsta | --localst \ 278 | --locals | --local | --loca | --loc | --lo) 279 ac_prev=localstatedir ;; 280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 283 localstatedir=$ac_optarg ;; 284 285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 286 ac_prev=mandir ;; 287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 288 mandir=$ac_optarg ;; 289 290 -nfp | --nfp | --nf) 291 # Obsolete; use --without-fp. 292 with_fp=no ;; 293 294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 295 | --no-cr | --no-c) 296 no_create=yes ;; 297 298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 300 no_recursion=yes ;; 301 302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 304 | --oldin | --oldi | --old | --ol | --o) 305 ac_prev=oldincludedir ;; 306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 309 oldincludedir=$ac_optarg ;; 310 311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 312 ac_prev=prefix ;; 313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 314 prefix=$ac_optarg ;; 315 316 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 317 | --program-pre | --program-pr | --program-p) 318 ac_prev=program_prefix ;; 319 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 321 program_prefix=$ac_optarg ;; 322 323 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 324 | --program-suf | --program-su | --program-s) 325 ac_prev=program_suffix ;; 326 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 328 program_suffix=$ac_optarg ;; 329 330 -program-transform-name | --program-transform-name \ 331 | --program-transform-nam | --program-transform-na \ 332 | --program-transform-n | --program-transform- \ 333 | --program-transform | --program-transfor \ 334 | --program-transfo | --program-transf \ 335 | --program-trans | --program-tran \ 336 | --progr-tra | --program-tr | --program-t) 337 ac_prev=program_transform_name ;; 338 -program-transform-name=* | --program-transform-name=* \ 339 | --program-transform-nam=* | --program-transform-na=* \ 340 | --program-transform-n=* | --program-transform-=* \ 341 | --program-transform=* | --program-transfor=* \ 342 | --program-transfo=* | --program-transf=* \ 343 | --program-trans=* | --program-tran=* \ 344 | --progr-tra=* | --program-tr=* | --program-t=*) 345 program_transform_name=$ac_optarg ;; 346 347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 348 | -silent | --silent | --silen | --sile | --sil) 349 silent=yes ;; 350 351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 352 ac_prev=sbindir ;; 353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 354 | --sbi=* | --sb=*) 355 sbindir=$ac_optarg ;; 356 357 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 359 | --sharedst | --shareds | --shared | --share | --shar \ 360 | --sha | --sh) 361 ac_prev=sharedstatedir ;; 362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 365 | --sha=* | --sh=*) 366 sharedstatedir=$ac_optarg ;; 367 368 -site | --site | --sit) 369 ac_prev=site ;; 370 -site=* | --site=* | --sit=*) 371 site=$ac_optarg ;; 372 373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 374 ac_prev=srcdir ;; 375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 376 srcdir=$ac_optarg ;; 377 378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 379 | --syscon | --sysco | --sysc | --sys | --sy) 380 ac_prev=sysconfdir ;; 381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 383 sysconfdir=$ac_optarg ;; 384 385 -target | --target | --targe | --targ | --tar | --ta | --t) 386 ac_prev=target_alias ;; 387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 388 target_alias=$ac_optarg ;; 389 390 -v | -verbose | --verbose | --verbos | --verbo | --verb) 391 verbose=yes ;; 392 393 -version | --version | --versio | --versi | --vers | -V) 394 ac_init_version=: ;; 395 396 -with-* | --with-*) 397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid package name: $ac_package" >&2 401 { (exit 1); exit 1; }; } 402 ac_package=`echo $ac_package| sed 's/-/_/g'` 403 case $ac_option in 404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 405 *) ac_optarg=yes ;; 406 esac 407 eval "with_$ac_package='$ac_optarg'" ;; 408 409 -without-* | --without-*) 410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 411 # Reject names that are not valid shell variable names. 412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 413 { echo "$as_me: error: invalid package name: $ac_package" >&2 414 { (exit 1); exit 1; }; } 415 ac_package=`echo $ac_package | sed 's/-/_/g'` 416 eval "with_$ac_package=no" ;; 417 418 --x) 419 # Obsolete; use --with-x. 420 with_x=yes ;; 421 422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 423 | --x-incl | --x-inc | --x-in | --x-i) 424 ac_prev=x_includes ;; 425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 427 x_includes=$ac_optarg ;; 428 429 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 431 ac_prev=x_libraries ;; 432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 434 x_libraries=$ac_optarg ;; 435 436 -*) { echo "$as_me: error: unrecognized option: $ac_option 437Try \`$0 --help' for more information." >&2 438 { (exit 1); exit 1; }; } 439 ;; 440 441 *=*) 442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 443 # Reject names that are not valid shell variable names. 444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 446 { (exit 1); exit 1; }; } 447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 448 eval "$ac_envvar='$ac_optarg'" 449 export $ac_envvar ;; 450 451 *) 452 # FIXME: should be removed in autoconf 3.0. 453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 457 ;; 458 459 esac 460done 461 462if test -n "$ac_prev"; then 463 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 464 { echo "$as_me: error: missing argument to $ac_option" >&2 465 { (exit 1); exit 1; }; } 466fi 467 468# Be sure to have absolute paths. 469for ac_var in exec_prefix prefix 470do 471 eval ac_val=$`echo $ac_var` 472 case $ac_val in 473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 475 { (exit 1); exit 1; }; };; 476 esac 477done 478 479# Be sure to have absolute paths. 480for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 481 localstatedir libdir includedir oldincludedir infodir mandir 482do 483 eval ac_val=$`echo $ac_var` 484 case $ac_val in 485 [\\/$]* | ?:[\\/]* ) ;; 486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 487 { (exit 1); exit 1; }; };; 488 esac 489done 490 491# There might be people who depend on the old broken behavior: `$host' 492# used to hold the argument of --host etc. 493build=$build_alias 494host=$host_alias 495target=$target_alias 496 497# FIXME: should be removed in autoconf 3.0. 498if test "x$host_alias" != x; then 499 if test "x$build_alias" = x; then 500 cross_compiling=maybe 501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 502 If a cross compiler is detected then cross compile mode will be used." >&2 503 elif test "x$build_alias" != "x$host_alias"; then 504 cross_compiling=yes 505 fi 506fi 507 508ac_tool_prefix= 509test -n "$host_alias" && ac_tool_prefix=$host_alias- 510 511test "$silent" = yes && exec 6>/dev/null 512 513# Find the source files, if location was not specified. 514if test -z "$srcdir"; then 515 ac_srcdir_defaulted=yes 516 # Try the directory containing this script, then its parent. 517 ac_prog=$0 518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 520 srcdir=$ac_confdir 521 if test ! -r $srcdir/$ac_unique_file; then 522 srcdir=.. 523 fi 524else 525 ac_srcdir_defaulted=no 526fi 527if test ! -r $srcdir/$ac_unique_file; then 528 if test "$ac_srcdir_defaulted" = yes; then 529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 530 { (exit 1); exit 1; }; } 531 else 532 { echo "$as_me: error: cannot find sources in $srcdir" >&2 533 { (exit 1); exit 1; }; } 534 fi 535fi 536srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 537ac_env_build_alias_set=${build_alias+set} 538ac_env_build_alias_value=$build_alias 539ac_cv_env_build_alias_set=${build_alias+set} 540ac_cv_env_build_alias_value=$build_alias 541ac_env_host_alias_set=${host_alias+set} 542ac_env_host_alias_value=$host_alias 543ac_cv_env_host_alias_set=${host_alias+set} 544ac_cv_env_host_alias_value=$host_alias 545ac_env_target_alias_set=${target_alias+set} 546ac_env_target_alias_value=$target_alias 547ac_cv_env_target_alias_set=${target_alias+set} 548ac_cv_env_target_alias_value=$target_alias 549ac_env_CC_set=${CC+set} 550ac_env_CC_value=$CC 551ac_cv_env_CC_set=${CC+set} 552ac_cv_env_CC_value=$CC 553ac_env_CFLAGS_set=${CFLAGS+set} 554ac_env_CFLAGS_value=$CFLAGS 555ac_cv_env_CFLAGS_set=${CFLAGS+set} 556ac_cv_env_CFLAGS_value=$CFLAGS 557ac_env_LDFLAGS_set=${LDFLAGS+set} 558ac_env_LDFLAGS_value=$LDFLAGS 559ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 560ac_cv_env_LDFLAGS_value=$LDFLAGS 561ac_env_CPPFLAGS_set=${CPPFLAGS+set} 562ac_env_CPPFLAGS_value=$CPPFLAGS 563ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 564ac_cv_env_CPPFLAGS_value=$CPPFLAGS 565ac_env_CPP_set=${CPP+set} 566ac_env_CPP_value=$CPP 567ac_cv_env_CPP_set=${CPP+set} 568ac_cv_env_CPP_value=$CPP 569 570# 571# Report the --help message. 572# 573if test "$ac_init_help" = "long"; then 574 # Omit some internal or obsolete options to make the list less imposing. 575 # This message is too long to be a string in the A/UX 3.1 sh. 576 cat <<EOF 577\`configure' configures this package to adapt to many kinds of systems. 578 579Usage: $0 [OPTION]... [VAR=VALUE]... 580 581To assign environment variables (e.g., CC, CFLAGS...), specify them as 582VAR=VALUE. See below for descriptions of some of the useful variables. 583 584Defaults for the options are specified in brackets. 585 586Configuration: 587 -h, --help display this help and exit 588 --help=short display options specific to this package 589 --help=recursive display the short help of all the included packages 590 -V, --version display version information and exit 591 -q, --quiet, --silent do not print \`checking...' messages 592 --cache-file=FILE cache test results in FILE [disabled] 593 -C, --config-cache alias for \`--cache-file=config.cache' 594 -n, --no-create do not create output files 595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 596 597EOF 598 599 cat <<EOF 600Installation directories: 601 --prefix=PREFIX install architecture-independent files in PREFIX 602 [$ac_default_prefix] 603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 604 [PREFIX] 605 606By default, \`make install' will install all the files in 607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 608an installation prefix other than \`$ac_default_prefix' using \`--prefix', 609for instance \`--prefix=\$HOME'. 610 611For better control, use the options below. 612 613Fine tuning of the installation directories: 614 --bindir=DIR user executables [EPREFIX/bin] 615 --sbindir=DIR system admin executables [EPREFIX/sbin] 616 --libexecdir=DIR program executables [EPREFIX/libexec] 617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 621 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 622 --libdir=DIR object code libraries [EPREFIX/lib] 623 --includedir=DIR C header files [PREFIX/include] 624 --oldincludedir=DIR C header files for non-gcc [/usr/include] 625 --infodir=DIR info documentation [DATAROOTDIR/info] 626 --mandir=DIR man documentation [DATAROOTDIR/man] 627EOF 628 629 cat <<\EOF 630 631Program names: 632 --program-prefix=PREFIX prepend PREFIX to installed program names 633 --program-suffix=SUFFIX append SUFFIX to installed program names 634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 635 636X features: 637 --x-includes=DIR X include files are in DIR 638 --x-libraries=DIR X library files are in DIR 639 640System types: 641 --build=BUILD configure for building on BUILD [guessed] 642 --host=HOST build programs to run on HOST [BUILD] 643EOF 644fi 645 646if test -n "$ac_init_help"; then 647 648 cat <<\EOF 649 650Optional Features: 651 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 652 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 653 654Optional Packages: 655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 657 658 --disable-echo do not display "compiling" commands 659 --enable-warnings test: turn on gcc compiler warnings 660 --with-curses-dir=DIR directory in which (n)curses is installed 661 --with-screen=XXX use specified curses-libraries 662 --with-ncursesw use wide ncurses-libraries 663 --with-ncurses use ncurses-libraries 664 --with-pdcurses compile/link with pdcurses X11 library 665 --with-curses-colr compile/link with HPUX 10.x color-curses 666 --with-curses-5lib compile/link with SunOS 5lib curses 667 --with-pkg-config{=path} enable/disable use of pkg-config 668 --with-Xaw3d link with Xaw 3d library 669 --with-Xaw3dxft link with Xaw 3d xft library 670 --with-neXtaw link with neXT Athena library 671 --with-XawPlus link with Athena-Plus library 672 --with-x use the X Window System 673 --with-man2html=XXX use XXX rather than groff 674 --with-dmalloc test: use Gray Watson's dmalloc library 675 --with-dbmalloc test: use Conor Cahill's dbmalloc library 676 --with-valgrind test: use valgrind 677 --disable-leaks test: free permanent memory, analyze leaks 678 679Some influential environment variables: 680 CC C compiler command 681 CFLAGS C compiler flags 682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 683 nonstandard directory <lib dir> 684 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 685 headers in a nonstandard directory <include dir> 686 CPP C preprocessor 687 688Use these variables to override the choices made by `configure' or to help 689it to find libraries and programs with nonstandard names/locations. 690 691EOF 692fi 693 694if test "$ac_init_help" = "recursive"; then 695 # If there are subdirs, report their specific --help. 696 ac_popdir=`pwd` 697 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 698 cd $ac_subdir 699 # A "../" for each directory in /$ac_subdir. 700 ac_dots=`echo $ac_subdir | 701 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 702 703 case $srcdir in 704 .) # No --srcdir option. We are building in place. 705 ac_sub_srcdir=$srcdir ;; 706 [\\/]* | ?:[\\/]* ) # Absolute path. 707 ac_sub_srcdir=$srcdir/$ac_subdir ;; 708 *) # Relative path. 709 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 710 esac 711 712 # Check for guested configure; otherwise get Cygnus style configure. 713 if test -f $ac_sub_srcdir/configure.gnu; then 714 echo 715 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 716 elif test -f $ac_sub_srcdir/configure; then 717 echo 718 $SHELL $ac_sub_srcdir/configure --help=recursive 719 elif test -f $ac_sub_srcdir/configure.ac || 720 test -f $ac_sub_srcdir/configure.in; then 721 echo 722 $ac_configure --help 723 else 724 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 725 fi 726 cd $ac_popdir 727 done 728fi 729 730test -n "$ac_init_help" && exit 0 731if $ac_init_version; then 732 cat <<\EOF 733 734Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 735Free Software Foundation, Inc. 736This configure script is free software; the Free Software Foundation 737gives unlimited permission to copy, distribute and modify it. 738EOF 739 exit 0 740fi 741exec 5>config.log 742cat >&5 <<EOF 743This file contains any messages produced by compilers while 744running configure, to aid debugging if configure makes a mistake. 745 746It was created by $as_me, which was 747generated by GNU Autoconf 2.52.20170501. Invocation command line was 748 749 $ $0 $@ 750 751EOF 752{ 753cat <<_ASUNAME 754## ---------- ## 755## Platform. ## 756## ---------- ## 757 758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 759uname -m = `(uname -m) 2>/dev/null || echo unknown` 760uname -r = `(uname -r) 2>/dev/null || echo unknown` 761uname -s = `(uname -s) 2>/dev/null || echo unknown` 762uname -v = `(uname -v) 2>/dev/null || echo unknown` 763 764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 765/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 766 767/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 768/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 770hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 771/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 772/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 773/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 774 775PATH = $PATH 776 777_ASUNAME 778} >&5 779 780cat >&5 <<EOF 781## ------------ ## 782## Core tests. ## 783## ------------ ## 784 785EOF 786 787# Keep a trace of the command line. 788# Strip out --no-create and --no-recursion so they do not pile up. 789# Also quote any args containing shell meta-characters. 790ac_configure_args= 791ac_sep= 792for ac_arg 793do 794 case $ac_arg in 795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 796 | --no-cr | --no-c) ;; 797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 801 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 802 ac_sep=" " ;; 803 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 804 ac_sep=" " ;; 805 esac 806 # Get rid of the leading space. 807done 808 809# When interrupted or exit'd, cleanup temporary files, and complete 810# config.log. We remove comments because anyway the quotes in there 811# would cause problems or look ugly. 812trap 'exit_status=$? 813 # Save into config.log some information that might help in debugging. 814 echo >&5 815 echo "## ----------------- ##" >&5 816 echo "## Cache variables. ##" >&5 817 echo "## ----------------- ##" >&5 818 echo >&5 819 # The following way of writing the cache mishandles newlines in values, 820{ 821 (set) 2>&1 | 822 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 823 *ac_space=\ *) 824 sed -n \ 825 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 827 ;; 828 *) 829 sed -n \ 830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 831 ;; 832 esac; 833} >&5 834 sed "/^$/d" confdefs.h >conftest.log 835 if test -s conftest.log; then 836 echo >&5 837 echo "## ------------ ##" >&5 838 echo "## confdefs.h. ##" >&5 839 echo "## ------------ ##" >&5 840 echo >&5 841 cat conftest.log >&5 842 fi 843 (echo; echo) >&5 844 test "$ac_signal" != 0 && 845 echo "$as_me: caught signal $ac_signal" >&5 846 echo "$as_me: exit $exit_status" >&5 847 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 848 exit $exit_status 849 ' 0 850for ac_signal in 1 2 13 15; do 851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 852done 853ac_signal=0 854 855# confdefs.h avoids OS command line length limits that DEFS can exceed. 856rm -rf conftest* confdefs.h 857# AIX cpp loses on an empty file, so make sure it contains at least a newline. 858echo >confdefs.h 859 860# Let the site file select an alternate cache file if it wants to. 861# Prefer explicitly selected file to automatically selected ones. 862if test -z "$CONFIG_SITE"; then 863 if test "x$prefix" != xNONE; then 864 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 865 else 866 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 867 fi 868fi 869for ac_site_file in $CONFIG_SITE; do 870 if test -r "$ac_site_file"; then 871 { echo "$as_me:871: loading site script $ac_site_file" >&5 872echo "$as_me: loading site script $ac_site_file" >&6;} 873 cat "$ac_site_file" >&5 874 . "$ac_site_file" 875 fi 876done 877 878if test -r "$cache_file"; then 879 # Some versions of bash will fail to source /dev/null (special 880 # files actually), so we avoid doing that. 881 if test -f "$cache_file"; then 882 { echo "$as_me:882: loading cache $cache_file" >&5 883echo "$as_me: loading cache $cache_file" >&6;} 884 case $cache_file in 885 [\\/]* | ?:[\\/]* ) . $cache_file;; 886 *) . ./$cache_file;; 887 esac 888 fi 889else 890 { echo "$as_me:890: creating cache $cache_file" >&5 891echo "$as_me: creating cache $cache_file" >&6;} 892 >$cache_file 893fi 894 895# Check that the precious variables saved in the cache have kept the same 896# value. 897ac_cache_corrupted=false 898for ac_var in `(set) 2>&1 | 899 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 900 eval ac_old_set=\$ac_cv_env_${ac_var}_set 901 eval ac_new_set=\$ac_env_${ac_var}_set 902 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 903 eval ac_new_val="\$ac_env_${ac_var}_value" 904 case $ac_old_set,$ac_new_set in 905 set,) 906 { echo "$as_me:906: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 907echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 908 ac_cache_corrupted=: ;; 909 ,set) 910 { echo "$as_me:910: error: \`$ac_var' was not set in the previous run" >&5 911echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 912 ac_cache_corrupted=: ;; 913 ,);; 914 *) 915 if test "x$ac_old_val" != "x$ac_new_val"; then 916 { echo "$as_me:916: error: \`$ac_var' has changed since the previous run:" >&5 917echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 918 { echo "$as_me:918: former value: $ac_old_val" >&5 919echo "$as_me: former value: $ac_old_val" >&2;} 920 { echo "$as_me:920: current value: $ac_new_val" >&5 921echo "$as_me: current value: $ac_new_val" >&2;} 922 ac_cache_corrupted=: 923 fi;; 924 esac 925 # Pass precious variables to config.status. It doesn't matter if 926 # we pass some twice (in addition to the command line arguments). 927 if test "$ac_new_set" = set; then 928 case $ac_new_val in 929 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 930 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 931 ac_configure_args="$ac_configure_args '$ac_arg'" 932 ;; 933 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 934 ;; 935 esac 936 fi 937done 938if $ac_cache_corrupted; then 939 { echo "$as_me:939: error: changes in the environment can compromise the build" >&5 940echo "$as_me: error: changes in the environment can compromise the build" >&2;} 941 { { echo "$as_me:941: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 942echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 943 { (exit 1); exit 1; }; } 944fi 945 946ac_ext=c 947ac_cpp='$CPP $CPPFLAGS' 948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 950ac_compiler_gnu=$ac_cv_c_compiler_gnu 951ac_main_return=return 952 953case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 954 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 955 ECHO_T=' ' ;; 956 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 957 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 958esac 959echo "#! $SHELL" >conftest.sh 960echo "exit 0" >>conftest.sh 961chmod +x conftest.sh 962if { (echo "$as_me:962: PATH=\".;.\"; conftest.sh") >&5 963 (PATH=".;."; conftest.sh) 2>&5 964 ac_status=$? 965 echo "$as_me:965: \$? = $ac_status" >&5 966 (exit $ac_status); }; then 967 ac_path_separator=';' 968else 969 ac_path_separator=: 970fi 971PATH_SEPARATOR="$ac_path_separator" 972rm -f conftest.sh 973 974ac_config_headers="$ac_config_headers config.h:config_h.in" 975 976ac_aux_dir= 977for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 978 if test -f $ac_dir/install-sh; then 979 ac_aux_dir=$ac_dir 980 ac_install_sh="$ac_aux_dir/install-sh -c" 981 break 982 elif test -f $ac_dir/install.sh; then 983 ac_aux_dir=$ac_dir 984 ac_install_sh="$ac_aux_dir/install.sh -c" 985 break 986 elif test -f $ac_dir/shtool; then 987 ac_aux_dir=$ac_dir 988 ac_install_sh="$ac_aux_dir/shtool install -c" 989 break 990 fi 991done 992if test -z "$ac_aux_dir"; then 993 { { echo "$as_me:993: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 994echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 995 { (exit 1); exit 1; }; } 996fi 997ac_config_guess="$SHELL $ac_aux_dir/config.guess" 998ac_config_sub="$SHELL $ac_aux_dir/config.sub" 999ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1000 1001# Make sure we can run config.sub. 1002$ac_config_sub sun4 >/dev/null 2>&1 || 1003 { { echo "$as_me:1003: error: cannot run $ac_config_sub" >&5 1004echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1005 { (exit 1); exit 1; }; } 1006 1007echo "$as_me:1007: checking build system type" >&5 1008echo $ECHO_N "checking build system type... $ECHO_C" >&6 1009if test "${ac_cv_build+set}" = set; then 1010 echo $ECHO_N "(cached) $ECHO_C" >&6 1011else 1012 ac_cv_build_alias=$build_alias 1013test -z "$ac_cv_build_alias" && 1014 ac_cv_build_alias=`$ac_config_guess` 1015test -z "$ac_cv_build_alias" && 1016 { { echo "$as_me:1016: error: cannot guess build type; you must specify one" >&5 1017echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1018 { (exit 1); exit 1; }; } 1019ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1020 { { echo "$as_me:1020: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1021echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1022 { (exit 1); exit 1; }; } 1023 1024fi 1025echo "$as_me:1025: result: $ac_cv_build" >&5 1026echo "${ECHO_T}$ac_cv_build" >&6 1027build=$ac_cv_build 1028build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1029build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1030build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1031 1032if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1033 echo "$as_me:1033: checking host system type" >&5 1034echo $ECHO_N "checking host system type... $ECHO_C" >&6 1035if test "${ac_cv_host+set}" = set; then 1036 echo $ECHO_N "(cached) $ECHO_C" >&6 1037else 1038 ac_cv_host_alias=$host_alias 1039test -z "$ac_cv_host_alias" && 1040 ac_cv_host_alias=$ac_cv_build_alias 1041ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1042 { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1043echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1044 { (exit 1); exit 1; }; } 1045 1046fi 1047echo "$as_me:1047: result: $ac_cv_host" >&5 1048echo "${ECHO_T}$ac_cv_host" >&6 1049host=$ac_cv_host 1050host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1051host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1052host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1053 1054 system_name="$host_os" 1055else 1056 system_name="`(uname -s -r) 2>/dev/null`" 1057 if test -z "$system_name" ; then 1058 system_name="`(hostname) 2>/dev/null`" 1059 fi 1060fi 1061test -n "$system_name" && 1062cat >>confdefs.h <<EOF 1063#define SYSTEM_NAME "$system_name" 1064EOF 1065 1066if test "${cf_cv_system_name+set}" = set; then 1067 echo $ECHO_N "(cached) $ECHO_C" >&6 1068else 1069 cf_cv_system_name="$system_name" 1070fi 1071 1072test -z "$system_name" && system_name="$cf_cv_system_name" 1073test -n "$cf_cv_system_name" && echo "$as_me:1073: result: Configuring for $cf_cv_system_name" >&5 1074echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1075 1076if test ".$system_name" != ".$cf_cv_system_name" ; then 1077 echo "$as_me:1077: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1078echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1079 { { echo "$as_me:1079: error: \"Please remove config.cache and try again.\"" >&5 1080echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1081 { (exit 1); exit 1; }; } 1082fi 1083 1084test "$program_prefix" != NONE && 1085 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1086# Use a double $ so make ignores it. 1087test "$program_suffix" != NONE && 1088 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1089# Double any \ or $. echo might interpret backslashes. 1090# By default was `s,x,x', remove it if useless. 1091cat <<\_ACEOF >conftest.sed 1092s/[\\$]/&&/g;s/;s,x,x,$// 1093_ACEOF 1094program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1095rm conftest.sed 1096 1097ac_ext=c 1098ac_cpp='$CPP $CPPFLAGS' 1099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1101ac_compiler_gnu=$ac_cv_c_compiler_gnu 1102ac_main_return=return 1103if test -n "$ac_tool_prefix"; then 1104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1105set dummy ${ac_tool_prefix}gcc; ac_word=$2 1106echo "$as_me:1106: checking for $ac_word" >&5 1107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1108if test "${ac_cv_prog_CC+set}" = set; then 1109 echo $ECHO_N "(cached) $ECHO_C" >&6 1110else 1111 if test -n "$CC"; then 1112 ac_cv_prog_CC="$CC" # Let the user override the test. 1113else 1114 ac_save_IFS=$IFS; IFS=$ac_path_separator 1115ac_dummy="$PATH" 1116for ac_dir in $ac_dummy; do 1117 IFS=$ac_save_IFS 1118 test -z "$ac_dir" && ac_dir=. 1119 $as_executable_p "$ac_dir/$ac_word" || continue 1120ac_cv_prog_CC="${ac_tool_prefix}gcc" 1121echo "$as_me:1121: found $ac_dir/$ac_word" >&5 1122break 1123done 1124 1125fi 1126fi 1127CC=$ac_cv_prog_CC 1128if test -n "$CC"; then 1129 echo "$as_me:1129: result: $CC" >&5 1130echo "${ECHO_T}$CC" >&6 1131else 1132 echo "$as_me:1132: result: no" >&5 1133echo "${ECHO_T}no" >&6 1134fi 1135 1136fi 1137if test -z "$ac_cv_prog_CC"; then 1138 ac_ct_CC=$CC 1139 # Extract the first word of "gcc", so it can be a program name with args. 1140set dummy gcc; ac_word=$2 1141echo "$as_me:1141: checking for $ac_word" >&5 1142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1144 echo $ECHO_N "(cached) $ECHO_C" >&6 1145else 1146 if test -n "$ac_ct_CC"; then 1147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1148else 1149 ac_save_IFS=$IFS; IFS=$ac_path_separator 1150ac_dummy="$PATH" 1151for ac_dir in $ac_dummy; do 1152 IFS=$ac_save_IFS 1153 test -z "$ac_dir" && ac_dir=. 1154 $as_executable_p "$ac_dir/$ac_word" || continue 1155ac_cv_prog_ac_ct_CC="gcc" 1156echo "$as_me:1156: found $ac_dir/$ac_word" >&5 1157break 1158done 1159 1160fi 1161fi 1162ac_ct_CC=$ac_cv_prog_ac_ct_CC 1163if test -n "$ac_ct_CC"; then 1164 echo "$as_me:1164: result: $ac_ct_CC" >&5 1165echo "${ECHO_T}$ac_ct_CC" >&6 1166else 1167 echo "$as_me:1167: result: no" >&5 1168echo "${ECHO_T}no" >&6 1169fi 1170 1171 CC=$ac_ct_CC 1172else 1173 CC="$ac_cv_prog_CC" 1174fi 1175 1176if test -z "$CC"; then 1177 if test -n "$ac_tool_prefix"; then 1178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1179set dummy ${ac_tool_prefix}cc; ac_word=$2 1180echo "$as_me:1180: checking for $ac_word" >&5 1181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1182if test "${ac_cv_prog_CC+set}" = set; then 1183 echo $ECHO_N "(cached) $ECHO_C" >&6 1184else 1185 if test -n "$CC"; then 1186 ac_cv_prog_CC="$CC" # Let the user override the test. 1187else 1188 ac_save_IFS=$IFS; IFS=$ac_path_separator 1189ac_dummy="$PATH" 1190for ac_dir in $ac_dummy; do 1191 IFS=$ac_save_IFS 1192 test -z "$ac_dir" && ac_dir=. 1193 $as_executable_p "$ac_dir/$ac_word" || continue 1194ac_cv_prog_CC="${ac_tool_prefix}cc" 1195echo "$as_me:1195: found $ac_dir/$ac_word" >&5 1196break 1197done 1198 1199fi 1200fi 1201CC=$ac_cv_prog_CC 1202if test -n "$CC"; then 1203 echo "$as_me:1203: result: $CC" >&5 1204echo "${ECHO_T}$CC" >&6 1205else 1206 echo "$as_me:1206: result: no" >&5 1207echo "${ECHO_T}no" >&6 1208fi 1209 1210fi 1211if test -z "$ac_cv_prog_CC"; then 1212 ac_ct_CC=$CC 1213 # Extract the first word of "cc", so it can be a program name with args. 1214set dummy cc; ac_word=$2 1215echo "$as_me:1215: checking for $ac_word" >&5 1216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1218 echo $ECHO_N "(cached) $ECHO_C" >&6 1219else 1220 if test -n "$ac_ct_CC"; then 1221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1222else 1223 ac_save_IFS=$IFS; IFS=$ac_path_separator 1224ac_dummy="$PATH" 1225for ac_dir in $ac_dummy; do 1226 IFS=$ac_save_IFS 1227 test -z "$ac_dir" && ac_dir=. 1228 $as_executable_p "$ac_dir/$ac_word" || continue 1229ac_cv_prog_ac_ct_CC="cc" 1230echo "$as_me:1230: found $ac_dir/$ac_word" >&5 1231break 1232done 1233 1234fi 1235fi 1236ac_ct_CC=$ac_cv_prog_ac_ct_CC 1237if test -n "$ac_ct_CC"; then 1238 echo "$as_me:1238: result: $ac_ct_CC" >&5 1239echo "${ECHO_T}$ac_ct_CC" >&6 1240else 1241 echo "$as_me:1241: result: no" >&5 1242echo "${ECHO_T}no" >&6 1243fi 1244 1245 CC=$ac_ct_CC 1246else 1247 CC="$ac_cv_prog_CC" 1248fi 1249 1250fi 1251if test -z "$CC"; then 1252 # Extract the first word of "cc", so it can be a program name with args. 1253set dummy cc; ac_word=$2 1254echo "$as_me:1254: checking for $ac_word" >&5 1255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1256if test "${ac_cv_prog_CC+set}" = set; then 1257 echo $ECHO_N "(cached) $ECHO_C" >&6 1258else 1259 if test -n "$CC"; then 1260 ac_cv_prog_CC="$CC" # Let the user override the test. 1261else 1262 ac_prog_rejected=no 1263 ac_save_IFS=$IFS; IFS=$ac_path_separator 1264ac_dummy="$PATH" 1265for ac_dir in $ac_dummy; do 1266 IFS=$ac_save_IFS 1267 test -z "$ac_dir" && ac_dir=. 1268 $as_executable_p "$ac_dir/$ac_word" || continue 1269if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1270 ac_prog_rejected=yes 1271 continue 1272fi 1273ac_cv_prog_CC="cc" 1274echo "$as_me:1274: found $ac_dir/$ac_word" >&5 1275break 1276done 1277 1278if test $ac_prog_rejected = yes; then 1279 # We found a bogon in the path, so make sure we never use it. 1280 set dummy $ac_cv_prog_CC 1281 shift 1282 if test $# != 0; then 1283 # We chose a different compiler from the bogus one. 1284 # However, it has the same basename, so the bogon will be chosen 1285 # first if we set CC to just the basename; use the full file name. 1286 shift 1287 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1288 shift 1289 ac_cv_prog_CC="$@" 1290 fi 1291fi 1292fi 1293fi 1294CC=$ac_cv_prog_CC 1295if test -n "$CC"; then 1296 echo "$as_me:1296: result: $CC" >&5 1297echo "${ECHO_T}$CC" >&6 1298else 1299 echo "$as_me:1299: result: no" >&5 1300echo "${ECHO_T}no" >&6 1301fi 1302 1303fi 1304if test -z "$CC"; then 1305 if test -n "$ac_tool_prefix"; then 1306 for ac_prog in cl 1307 do 1308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1310echo "$as_me:1310: checking for $ac_word" >&5 1311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1312if test "${ac_cv_prog_CC+set}" = set; then 1313 echo $ECHO_N "(cached) $ECHO_C" >&6 1314else 1315 if test -n "$CC"; then 1316 ac_cv_prog_CC="$CC" # Let the user override the test. 1317else 1318 ac_save_IFS=$IFS; IFS=$ac_path_separator 1319ac_dummy="$PATH" 1320for ac_dir in $ac_dummy; do 1321 IFS=$ac_save_IFS 1322 test -z "$ac_dir" && ac_dir=. 1323 $as_executable_p "$ac_dir/$ac_word" || continue 1324ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1325echo "$as_me:1325: found $ac_dir/$ac_word" >&5 1326break 1327done 1328 1329fi 1330fi 1331CC=$ac_cv_prog_CC 1332if test -n "$CC"; then 1333 echo "$as_me:1333: result: $CC" >&5 1334echo "${ECHO_T}$CC" >&6 1335else 1336 echo "$as_me:1336: result: no" >&5 1337echo "${ECHO_T}no" >&6 1338fi 1339 1340 test -n "$CC" && break 1341 done 1342fi 1343if test -z "$CC"; then 1344 ac_ct_CC=$CC 1345 for ac_prog in cl 1346do 1347 # Extract the first word of "$ac_prog", so it can be a program name with args. 1348set dummy $ac_prog; ac_word=$2 1349echo "$as_me:1349: checking for $ac_word" >&5 1350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1352 echo $ECHO_N "(cached) $ECHO_C" >&6 1353else 1354 if test -n "$ac_ct_CC"; then 1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1356else 1357 ac_save_IFS=$IFS; IFS=$ac_path_separator 1358ac_dummy="$PATH" 1359for ac_dir in $ac_dummy; do 1360 IFS=$ac_save_IFS 1361 test -z "$ac_dir" && ac_dir=. 1362 $as_executable_p "$ac_dir/$ac_word" || continue 1363ac_cv_prog_ac_ct_CC="$ac_prog" 1364echo "$as_me:1364: found $ac_dir/$ac_word" >&5 1365break 1366done 1367 1368fi 1369fi 1370ac_ct_CC=$ac_cv_prog_ac_ct_CC 1371if test -n "$ac_ct_CC"; then 1372 echo "$as_me:1372: result: $ac_ct_CC" >&5 1373echo "${ECHO_T}$ac_ct_CC" >&6 1374else 1375 echo "$as_me:1375: result: no" >&5 1376echo "${ECHO_T}no" >&6 1377fi 1378 1379 test -n "$ac_ct_CC" && break 1380done 1381 1382 CC=$ac_ct_CC 1383fi 1384 1385fi 1386 1387test -z "$CC" && { { echo "$as_me:1387: error: no acceptable cc found in \$PATH" >&5 1388echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1389 { (exit 1); exit 1; }; } 1390 1391# Provide some information about the compiler. 1392echo "$as_me:1392:" \ 1393 "checking for C compiler version" >&5 1394ac_compiler=`set X $ac_compile; echo $2` 1395{ (eval echo "$as_me:1395: \"$ac_compiler --version </dev/null >&5\"") >&5 1396 (eval $ac_compiler --version </dev/null >&5) 2>&5 1397 ac_status=$? 1398 echo "$as_me:1398: \$? = $ac_status" >&5 1399 (exit $ac_status); } 1400{ (eval echo "$as_me:1400: \"$ac_compiler -v </dev/null >&5\"") >&5 1401 (eval $ac_compiler -v </dev/null >&5) 2>&5 1402 ac_status=$? 1403 echo "$as_me:1403: \$? = $ac_status" >&5 1404 (exit $ac_status); } 1405{ (eval echo "$as_me:1405: \"$ac_compiler -V </dev/null >&5\"") >&5 1406 (eval $ac_compiler -V </dev/null >&5) 2>&5 1407 ac_status=$? 1408 echo "$as_me:1408: \$? = $ac_status" >&5 1409 (exit $ac_status); } 1410 1411cat >conftest.$ac_ext <<_ACEOF 1412#line 1412 "configure" 1413#include "confdefs.h" 1414 1415int 1416main (void) 1417{ 1418 1419 ; 1420 return 0; 1421} 1422_ACEOF 1423ac_clean_files_save=$ac_clean_files 1424ac_clean_files="$ac_clean_files a.out a.exe" 1425# Try to create an executable without -o first, disregard a.out. 1426# It will help us diagnose broken compilers, and finding out an intuition 1427# of exeext. 1428echo "$as_me:1428: checking for C compiler default output" >&5 1429echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1430ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1431if { (eval echo "$as_me:1431: \"$ac_link_default\"") >&5 1432 (eval $ac_link_default) 2>&5 1433 ac_status=$? 1434 echo "$as_me:1434: \$? = $ac_status" >&5 1435 (exit $ac_status); }; then 1436 # Find the output, starting from the most likely. This scheme is 1437# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1438# resort. 1439for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1440 ls a.out conftest 2>/dev/null; 1441 ls a.* conftest.* 2>/dev/null`; do 1442 case $ac_file in 1443 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1444 a.out ) # We found the default executable, but exeext='' is most 1445 # certainly right. 1446 break;; 1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1448 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1449 export ac_cv_exeext 1450 break;; 1451 * ) break;; 1452 esac 1453done 1454else 1455 echo "$as_me: failed program was:" >&5 1456cat conftest.$ac_ext >&5 1457{ { echo "$as_me:1457: error: C compiler cannot create executables" >&5 1458echo "$as_me: error: C compiler cannot create executables" >&2;} 1459 { (exit 77); exit 77; }; } 1460fi 1461 1462ac_exeext=$ac_cv_exeext 1463echo "$as_me:1463: result: $ac_file" >&5 1464echo "${ECHO_T}$ac_file" >&6 1465 1466# Check the compiler produces executables we can run. If not, either 1467# the compiler is broken, or we cross compile. 1468echo "$as_me:1468: checking whether the C compiler works" >&5 1469echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1470# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1471# If not cross compiling, check that we can run a simple program. 1472if test "$cross_compiling" != yes; then 1473 if { ac_try='./$ac_file' 1474 { (eval echo "$as_me:1474: \"$ac_try\"") >&5 1475 (eval $ac_try) 2>&5 1476 ac_status=$? 1477 echo "$as_me:1477: \$? = $ac_status" >&5 1478 (exit $ac_status); }; }; then 1479 cross_compiling=no 1480 else 1481 if test "$cross_compiling" = maybe; then 1482 cross_compiling=yes 1483 else 1484 { { echo "$as_me:1484: error: cannot run C compiled programs. 1485If you meant to cross compile, use \`--host'." >&5 1486echo "$as_me: error: cannot run C compiled programs. 1487If you meant to cross compile, use \`--host'." >&2;} 1488 { (exit 1); exit 1; }; } 1489 fi 1490 fi 1491fi 1492echo "$as_me:1492: result: yes" >&5 1493echo "${ECHO_T}yes" >&6 1494 1495rm -f a.out a.exe conftest$ac_cv_exeext 1496ac_clean_files=$ac_clean_files_save 1497# Check the compiler produces executables we can run. If not, either 1498# the compiler is broken, or we cross compile. 1499echo "$as_me:1499: checking whether we are cross compiling" >&5 1500echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1501echo "$as_me:1501: result: $cross_compiling" >&5 1502echo "${ECHO_T}$cross_compiling" >&6 1503 1504echo "$as_me:1504: checking for executable suffix" >&5 1505echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1506if { (eval echo "$as_me:1506: \"$ac_link\"") >&5 1507 (eval $ac_link) 2>&5 1508 ac_status=$? 1509 echo "$as_me:1509: \$? = $ac_status" >&5 1510 (exit $ac_status); }; then 1511 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1512# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1513# work properly (i.e., refer to `conftest.exe'), while it won't with 1514# `rm'. 1515for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1516 case $ac_file in 1517 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1519 export ac_cv_exeext 1520 break;; 1521 * ) break;; 1522 esac 1523done 1524else 1525 { { echo "$as_me:1525: error: cannot compute EXEEXT: cannot compile and link" >&5 1526echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1527 { (exit 1); exit 1; }; } 1528fi 1529 1530rm -f conftest$ac_cv_exeext 1531echo "$as_me:1531: result: $ac_cv_exeext" >&5 1532echo "${ECHO_T}$ac_cv_exeext" >&6 1533 1534rm -f conftest.$ac_ext 1535EXEEXT=$ac_cv_exeext 1536ac_exeext=$EXEEXT 1537echo "$as_me:1537: checking for object suffix" >&5 1538echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1539if test "${ac_cv_objext+set}" = set; then 1540 echo $ECHO_N "(cached) $ECHO_C" >&6 1541else 1542 cat >conftest.$ac_ext <<_ACEOF 1543#line 1543 "configure" 1544#include "confdefs.h" 1545 1546int 1547main (void) 1548{ 1549 1550 ; 1551 return 0; 1552} 1553_ACEOF 1554rm -f conftest.o conftest.obj 1555if { (eval echo "$as_me:1555: \"$ac_compile\"") >&5 1556 (eval $ac_compile) 2>&5 1557 ac_status=$? 1558 echo "$as_me:1558: \$? = $ac_status" >&5 1559 (exit $ac_status); }; then 1560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1561 case $ac_file in 1562 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1564 break;; 1565 esac 1566done 1567else 1568 echo "$as_me: failed program was:" >&5 1569cat conftest.$ac_ext >&5 1570{ { echo "$as_me:1570: error: cannot compute OBJEXT: cannot compile" >&5 1571echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1572 { (exit 1); exit 1; }; } 1573fi 1574 1575rm -f conftest.$ac_cv_objext conftest.$ac_ext 1576fi 1577echo "$as_me:1577: result: $ac_cv_objext" >&5 1578echo "${ECHO_T}$ac_cv_objext" >&6 1579OBJEXT=$ac_cv_objext 1580ac_objext=$OBJEXT 1581echo "$as_me:1581: checking whether we are using the GNU C compiler" >&5 1582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1583if test "${ac_cv_c_compiler_gnu+set}" = set; then 1584 echo $ECHO_N "(cached) $ECHO_C" >&6 1585else 1586 cat >conftest.$ac_ext <<_ACEOF 1587#line 1587 "configure" 1588#include "confdefs.h" 1589 1590int 1591main (void) 1592{ 1593#ifndef __GNUC__ 1594 choke me 1595#endif 1596 1597 ; 1598 return 0; 1599} 1600_ACEOF 1601rm -f conftest.$ac_objext 1602if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5 1603 (eval $ac_compile) 2>&5 1604 ac_status=$? 1605 echo "$as_me:1605: \$? = $ac_status" >&5 1606 (exit $ac_status); } && 1607 { ac_try='test -s conftest.$ac_objext' 1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5 1609 (eval $ac_try) 2>&5 1610 ac_status=$? 1611 echo "$as_me:1611: \$? = $ac_status" >&5 1612 (exit $ac_status); }; }; then 1613 ac_compiler_gnu=yes 1614else 1615 echo "$as_me: failed program was:" >&5 1616cat conftest.$ac_ext >&5 1617ac_compiler_gnu=no 1618fi 1619rm -f conftest.$ac_objext conftest.$ac_ext 1620ac_cv_c_compiler_gnu=$ac_compiler_gnu 1621 1622fi 1623echo "$as_me:1623: result: $ac_cv_c_compiler_gnu" >&5 1624echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1625GCC=`test $ac_compiler_gnu = yes && echo yes` 1626ac_test_CFLAGS=${CFLAGS+set} 1627ac_save_CFLAGS=$CFLAGS 1628CFLAGS="-g" 1629echo "$as_me:1629: checking whether $CC accepts -g" >&5 1630echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1631if test "${ac_cv_prog_cc_g+set}" = set; then 1632 echo $ECHO_N "(cached) $ECHO_C" >&6 1633else 1634 cat >conftest.$ac_ext <<_ACEOF 1635#line 1635 "configure" 1636#include "confdefs.h" 1637 1638int 1639main (void) 1640{ 1641 1642 ; 1643 return 0; 1644} 1645_ACEOF 1646rm -f conftest.$ac_objext 1647if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5 1648 (eval $ac_compile) 2>&5 1649 ac_status=$? 1650 echo "$as_me:1650: \$? = $ac_status" >&5 1651 (exit $ac_status); } && 1652 { ac_try='test -s conftest.$ac_objext' 1653 { (eval echo "$as_me:1653: \"$ac_try\"") >&5 1654 (eval $ac_try) 2>&5 1655 ac_status=$? 1656 echo "$as_me:1656: \$? = $ac_status" >&5 1657 (exit $ac_status); }; }; then 1658 ac_cv_prog_cc_g=yes 1659else 1660 echo "$as_me: failed program was:" >&5 1661cat conftest.$ac_ext >&5 1662ac_cv_prog_cc_g=no 1663fi 1664rm -f conftest.$ac_objext conftest.$ac_ext 1665fi 1666echo "$as_me:1666: result: $ac_cv_prog_cc_g" >&5 1667echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1668if test "$ac_test_CFLAGS" = set; then 1669 CFLAGS=$ac_save_CFLAGS 1670elif test $ac_cv_prog_cc_g = yes; then 1671 if test "$GCC" = yes; then 1672 CFLAGS="-g -O2" 1673 else 1674 CFLAGS="-g" 1675 fi 1676else 1677 if test "$GCC" = yes; then 1678 CFLAGS="-O2" 1679 else 1680 CFLAGS= 1681 fi 1682fi 1683# Some people use a C++ compiler to compile C. Since we use `exit', 1684# in C++ we need to declare it. In case someone uses the same compiler 1685# for both compiling C and C++ we need to have the C++ compiler decide 1686# the declaration of exit, since it's the most demanding environment. 1687cat >conftest.$ac_ext <<_ACEOF 1688#ifndef __cplusplus 1689 choke me 1690#endif 1691_ACEOF 1692rm -f conftest.$ac_objext 1693if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5 1694 (eval $ac_compile) 2>&5 1695 ac_status=$? 1696 echo "$as_me:1696: \$? = $ac_status" >&5 1697 (exit $ac_status); } && 1698 { ac_try='test -s conftest.$ac_objext' 1699 { (eval echo "$as_me:1699: \"$ac_try\"") >&5 1700 (eval $ac_try) 2>&5 1701 ac_status=$? 1702 echo "$as_me:1702: \$? = $ac_status" >&5 1703 (exit $ac_status); }; }; then 1704 for ac_declaration in \ 1705 ''\ 1706 '#include <stdlib.h>' \ 1707 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1708 'extern "C" void std::exit (int); using std::exit;' \ 1709 'extern "C" void exit (int) throw ();' \ 1710 'extern "C" void exit (int);' \ 1711 'void exit (int);' 1712do 1713 cat >conftest.$ac_ext <<_ACEOF 1714#line 1714 "configure" 1715#include "confdefs.h" 1716#include <stdlib.h> 1717$ac_declaration 1718int 1719main (void) 1720{ 1721exit (42); 1722 ; 1723 return 0; 1724} 1725_ACEOF 1726rm -f conftest.$ac_objext 1727if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5 1728 (eval $ac_compile) 2>&5 1729 ac_status=$? 1730 echo "$as_me:1730: \$? = $ac_status" >&5 1731 (exit $ac_status); } && 1732 { ac_try='test -s conftest.$ac_objext' 1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5 1734 (eval $ac_try) 2>&5 1735 ac_status=$? 1736 echo "$as_me:1736: \$? = $ac_status" >&5 1737 (exit $ac_status); }; }; then 1738 : 1739else 1740 echo "$as_me: failed program was:" >&5 1741cat conftest.$ac_ext >&5 1742continue 1743fi 1744rm -f conftest.$ac_objext conftest.$ac_ext 1745 cat >conftest.$ac_ext <<_ACEOF 1746#line 1746 "configure" 1747#include "confdefs.h" 1748$ac_declaration 1749int 1750main (void) 1751{ 1752exit (42); 1753 ; 1754 return 0; 1755} 1756_ACEOF 1757rm -f conftest.$ac_objext 1758if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5 1759 (eval $ac_compile) 2>&5 1760 ac_status=$? 1761 echo "$as_me:1761: \$? = $ac_status" >&5 1762 (exit $ac_status); } && 1763 { ac_try='test -s conftest.$ac_objext' 1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5 1765 (eval $ac_try) 2>&5 1766 ac_status=$? 1767 echo "$as_me:1767: \$? = $ac_status" >&5 1768 (exit $ac_status); }; }; then 1769 break 1770else 1771 echo "$as_me: failed program was:" >&5 1772cat conftest.$ac_ext >&5 1773fi 1774rm -f conftest.$ac_objext conftest.$ac_ext 1775done 1776rm -rf conftest* 1777if test -n "$ac_declaration"; then 1778 echo '#ifdef __cplusplus' >>confdefs.h 1779 echo $ac_declaration >>confdefs.h 1780 echo '#endif' >>confdefs.h 1781fi 1782 1783else 1784 echo "$as_me: failed program was:" >&5 1785cat conftest.$ac_ext >&5 1786fi 1787rm -f conftest.$ac_objext conftest.$ac_ext 1788ac_ext=c 1789ac_cpp='$CPP $CPPFLAGS' 1790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1792ac_compiler_gnu=$ac_cv_c_compiler_gnu 1793ac_main_return=return 1794 1795GCC_VERSION=none 1796if test "$GCC" = yes ; then 1797 echo "$as_me:1797: checking version of $CC" >&5 1798echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1799 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.].*//'`" 1800 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1801 echo "$as_me:1801: result: $GCC_VERSION" >&5 1802echo "${ECHO_T}$GCC_VERSION" >&6 1803fi 1804 1805echo "$as_me:1805: checking for $CC option to accept ANSI C" >&5 1806echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1807if test "${ac_cv_prog_cc_stdc+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809else 1810 ac_cv_prog_cc_stdc=no 1811ac_save_CC=$CC 1812cat >conftest.$ac_ext <<_ACEOF 1813#line 1813 "configure" 1814#include "confdefs.h" 1815#include <stdarg.h> 1816#include <stdio.h> 1817#include <sys/types.h> 1818#include <sys/stat.h> 1819/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1820struct buf { int x; }; 1821FILE * (*rcsopen) (struct buf *, struct stat *, int); 1822static char *e (p, i) 1823 char **p; 1824 int i; 1825{ 1826 return p[i]; 1827} 1828static char *f (char * (*g) (char **, int), char **p, ...) 1829{ 1830 char *s; 1831 va_list v; 1832 va_start (v,p); 1833 s = g (p, va_arg (v,int)); 1834 va_end (v); 1835 return s; 1836} 1837int test (int i, double x); 1838struct s1 {int (*f) (int a);}; 1839struct s2 {int (*f) (double a);}; 1840int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1841int argc; 1842char **argv; 1843int 1844main (void) 1845{ 1846return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851# Don't try gcc -ansi; that turns off useful extensions and 1852# breaks some systems' header files. 1853# AIX -qlanglvl=ansi 1854# Ultrix and OSF/1 -std1 1855# HP-UX 10.20 and later -Ae 1856# HP-UX older versions -Aa -D_HPUX_SOURCE 1857# SVR4 -Xc -D__EXTENSIONS__ 1858for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1859do 1860 CC="$ac_save_CC $ac_arg" 1861 rm -f conftest.$ac_objext 1862if { (eval echo "$as_me:1862: \"$ac_compile\"") >&5 1863 (eval $ac_compile) 2>&5 1864 ac_status=$? 1865 echo "$as_me:1865: \$? = $ac_status" >&5 1866 (exit $ac_status); } && 1867 { ac_try='test -s conftest.$ac_objext' 1868 { (eval echo "$as_me:1868: \"$ac_try\"") >&5 1869 (eval $ac_try) 2>&5 1870 ac_status=$? 1871 echo "$as_me:1871: \$? = $ac_status" >&5 1872 (exit $ac_status); }; }; then 1873 ac_cv_prog_cc_stdc=$ac_arg 1874break 1875else 1876 echo "$as_me: failed program was:" >&5 1877cat conftest.$ac_ext >&5 1878fi 1879rm -f conftest.$ac_objext 1880done 1881rm -f conftest.$ac_ext conftest.$ac_objext 1882CC=$ac_save_CC 1883 1884fi 1885 1886case "x$ac_cv_prog_cc_stdc" in 1887 x|xno) 1888 echo "$as_me:1888: result: none needed" >&5 1889echo "${ECHO_T}none needed" >&6 ;; 1890 *) 1891 echo "$as_me:1891: result: $ac_cv_prog_cc_stdc" >&5 1892echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1893 CC="$CC $ac_cv_prog_cc_stdc" ;; 1894esac 1895 1896# This should have been defined by AC_PROG_CC 1897: ${CC:=cc} 1898 1899echo "$as_me:1899: checking \$CC variable" >&5 1900echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 1901case "$CC" in 1902(*[\ \ ]-*) 1903 echo "$as_me:1903: result: broken" >&5 1904echo "${ECHO_T}broken" >&6 1905 { echo "$as_me:1905: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 1906echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 1907 # humor him... 1908 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 1909 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 1910 CC="$cf_prog" 1911 for cf_arg in $cf_flags 1912 do 1913 case "x$cf_arg" in 1914 (x-[IUDfgOW]*) 1915 1916cf_fix_cppflags=no 1917cf_new_cflags= 1918cf_new_cppflags= 1919cf_new_extra_cppflags= 1920 1921for cf_add_cflags in $cf_arg 1922do 1923case $cf_fix_cppflags in 1924(no) 1925 case $cf_add_cflags in 1926 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 1927 case $cf_add_cflags in 1928 (-D*) 1929 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1930 1931 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1932 && test -z "${cf_tst_cflags}" \ 1933 && cf_fix_cppflags=yes 1934 1935 if test $cf_fix_cppflags = yes ; then 1936 1937 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1938 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1939 1940 continue 1941 elif test "${cf_tst_cflags}" = "\"'" ; then 1942 1943 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1944 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1945 1946 continue 1947 fi 1948 ;; 1949 esac 1950 case "$CPPFLAGS" in 1951 (*$cf_add_cflags) 1952 ;; 1953 (*) 1954 case $cf_add_cflags in 1955 (-D*) 1956 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 1957 1958CPPFLAGS=`echo "$CPPFLAGS" | \ 1959 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 1960 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 1961 1962 ;; 1963 esac 1964 1965 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 1966 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 1967 1968 ;; 1969 esac 1970 ;; 1971 (*) 1972 1973 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 1974 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 1975 1976 ;; 1977 esac 1978 ;; 1979(yes) 1980 1981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1983 1984 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 1985 1986 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1987 && test -z "${cf_tst_cflags}" \ 1988 && cf_fix_cppflags=no 1989 ;; 1990esac 1991done 1992 1993if test -n "$cf_new_cflags" ; then 1994 1995 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 1996 CFLAGS="${CFLAGS}$cf_new_cflags" 1997 1998fi 1999 2000if test -n "$cf_new_cppflags" ; then 2001 2002 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2003 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2004 2005fi 2006 2007if test -n "$cf_new_extra_cppflags" ; then 2008 2009 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2010 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2011 2012fi 2013 2014 ;; 2015 (*) 2016 CC="$CC $cf_arg" 2017 ;; 2018 esac 2019 done 2020 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2021 2022echo "${as_me:-configure}:2022: testing resulting CC: '$CC' ..." 1>&5 2023 2024 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2025 2026echo "${as_me:-configure}:2026: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2027 2028 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2029 2030echo "${as_me:-configure}:2030: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2031 2032 ;; 2033(*) 2034 echo "$as_me:2034: result: ok" >&5 2035echo "${ECHO_T}ok" >&6 2036 ;; 2037esac 2038 2039# Find a good install program. We prefer a C program (faster), 2040# so one script is as good as another. But avoid the broken or 2041# incompatible versions: 2042# SysV /etc/install, /usr/sbin/install 2043# SunOS /usr/etc/install 2044# IRIX /sbin/install 2045# AIX /bin/install 2046# AmigaOS /C/install, which installs bootblocks on floppy discs 2047# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2048# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2049# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2050# ./install, which can be erroneously created by make from ./install.sh. 2051echo "$as_me:2051: checking for a BSD compatible install" >&5 2052echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2053if test -z "$INSTALL"; then 2054if test "${ac_cv_path_install+set}" = set; then 2055 echo $ECHO_N "(cached) $ECHO_C" >&6 2056else 2057 ac_save_IFS=$IFS; IFS=$ac_path_separator 2058 for ac_dir in $PATH; do 2059 IFS=$ac_save_IFS 2060 # Account for people who put trailing slashes in PATH elements. 2061 case $ac_dir/ in 2062 / | ./ | .// | /cC/* \ 2063 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2064 | /usr/ucb/* ) ;; 2065 *) 2066 # OSF1 and SCO ODT 3.0 have their own names for install. 2067 # Don't use installbsd from OSF since it installs stuff as root 2068 # by default. 2069 for ac_prog in ginstall scoinst install; do 2070 if $as_executable_p "$ac_dir/$ac_prog"; then 2071 if test $ac_prog = install && 2072 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2073 # AIX install. It has an incompatible calling convention. 2074 : 2075 elif test $ac_prog = install && 2076 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2077 # program-specific install script used by HP pwplus--don't use. 2078 : 2079 else 2080 ac_cv_path_install="$ac_dir/$ac_prog -c" 2081 break 2 2082 fi 2083 fi 2084 done 2085 ;; 2086 esac 2087 done 2088 2089fi 2090 if test "${ac_cv_path_install+set}" = set; then 2091 INSTALL=$ac_cv_path_install 2092 else 2093 # As a last resort, use the slow shell script. We don't cache a 2094 # path for INSTALL within a source directory, because that will 2095 # break other packages using the cache if that directory is 2096 # removed, or if the path is relative. 2097 INSTALL=$ac_install_sh 2098 fi 2099fi 2100echo "$as_me:2100: result: $INSTALL" >&5 2101echo "${ECHO_T}$INSTALL" >&6 2102 2103# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2104# It thinks the first close brace ends the variable substitution. 2105test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2106 2107test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2108 2109test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2110 2111echo "$as_me:2111: checking if filesystem supports mixed-case filenames" >&5 2112echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2113if test "${cf_cv_mixedcase+set}" = set; then 2114 echo $ECHO_N "(cached) $ECHO_C" >&6 2115else 2116 2117if test "$cross_compiling" = yes ; then 2118 case $target_alias in 2119 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) 2120 cf_cv_mixedcase=no 2121 ;; 2122 (*) 2123 cf_cv_mixedcase=yes 2124 ;; 2125 esac 2126else 2127 rm -f conftest CONFTEST 2128 echo test >conftest 2129 if test -f CONFTEST ; then 2130 cf_cv_mixedcase=no 2131 else 2132 cf_cv_mixedcase=yes 2133 fi 2134 rm -f conftest CONFTEST 2135fi 2136 2137fi 2138echo "$as_me:2138: result: $cf_cv_mixedcase" >&5 2139echo "${ECHO_T}$cf_cv_mixedcase" >&6 2140test "$cf_cv_mixedcase" = yes && 2141cat >>confdefs.h <<\EOF 2142#define MIXEDCASE_FILENAMES 1 2143EOF 2144 2145for ac_prog in exctags ctags 2146do 2147 # Extract the first word of "$ac_prog", so it can be a program name with args. 2148set dummy $ac_prog; ac_word=$2 2149echo "$as_me:2149: checking for $ac_word" >&5 2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2151if test "${ac_cv_prog_CTAGS+set}" = set; then 2152 echo $ECHO_N "(cached) $ECHO_C" >&6 2153else 2154 if test -n "$CTAGS"; then 2155 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2156else 2157 ac_save_IFS=$IFS; IFS=$ac_path_separator 2158ac_dummy="$PATH" 2159for ac_dir in $ac_dummy; do 2160 IFS=$ac_save_IFS 2161 test -z "$ac_dir" && ac_dir=. 2162 $as_executable_p "$ac_dir/$ac_word" || continue 2163ac_cv_prog_CTAGS="$ac_prog" 2164echo "$as_me:2164: found $ac_dir/$ac_word" >&5 2165break 2166done 2167 2168fi 2169fi 2170CTAGS=$ac_cv_prog_CTAGS 2171if test -n "$CTAGS"; then 2172 echo "$as_me:2172: result: $CTAGS" >&5 2173echo "${ECHO_T}$CTAGS" >&6 2174else 2175 echo "$as_me:2175: result: no" >&5 2176echo "${ECHO_T}no" >&6 2177fi 2178 2179 test -n "$CTAGS" && break 2180done 2181 2182for ac_prog in exetags etags 2183do 2184 # Extract the first word of "$ac_prog", so it can be a program name with args. 2185set dummy $ac_prog; ac_word=$2 2186echo "$as_me:2186: checking for $ac_word" >&5 2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2188if test "${ac_cv_prog_ETAGS+set}" = set; then 2189 echo $ECHO_N "(cached) $ECHO_C" >&6 2190else 2191 if test -n "$ETAGS"; then 2192 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2193else 2194 ac_save_IFS=$IFS; IFS=$ac_path_separator 2195ac_dummy="$PATH" 2196for ac_dir in $ac_dummy; do 2197 IFS=$ac_save_IFS 2198 test -z "$ac_dir" && ac_dir=. 2199 $as_executable_p "$ac_dir/$ac_word" || continue 2200ac_cv_prog_ETAGS="$ac_prog" 2201echo "$as_me:2201: found $ac_dir/$ac_word" >&5 2202break 2203done 2204 2205fi 2206fi 2207ETAGS=$ac_cv_prog_ETAGS 2208if test -n "$ETAGS"; then 2209 echo "$as_me:2209: result: $ETAGS" >&5 2210echo "${ECHO_T}$ETAGS" >&6 2211else 2212 echo "$as_me:2212: result: no" >&5 2213echo "${ECHO_T}no" >&6 2214fi 2215 2216 test -n "$ETAGS" && break 2217done 2218 2219# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2220set dummy ${CTAGS:-ctags}; ac_word=$2 2221echo "$as_me:2221: checking for $ac_word" >&5 2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2223if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2224 echo $ECHO_N "(cached) $ECHO_C" >&6 2225else 2226 if test -n "$MAKE_LOWER_TAGS"; then 2227 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2228else 2229 ac_save_IFS=$IFS; IFS=$ac_path_separator 2230ac_dummy="$PATH" 2231for ac_dir in $ac_dummy; do 2232 IFS=$ac_save_IFS 2233 test -z "$ac_dir" && ac_dir=. 2234 $as_executable_p "$ac_dir/$ac_word" || continue 2235ac_cv_prog_MAKE_LOWER_TAGS="yes" 2236echo "$as_me:2236: found $ac_dir/$ac_word" >&5 2237break 2238done 2239 2240 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2241fi 2242fi 2243MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2244if test -n "$MAKE_LOWER_TAGS"; then 2245 echo "$as_me:2245: result: $MAKE_LOWER_TAGS" >&5 2246echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2247else 2248 echo "$as_me:2248: result: no" >&5 2249echo "${ECHO_T}no" >&6 2250fi 2251 2252if test "$cf_cv_mixedcase" = yes ; then 2253 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2254set dummy ${ETAGS:-etags}; ac_word=$2 2255echo "$as_me:2255: checking for $ac_word" >&5 2256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2257if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2258 echo $ECHO_N "(cached) $ECHO_C" >&6 2259else 2260 if test -n "$MAKE_UPPER_TAGS"; then 2261 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2262else 2263 ac_save_IFS=$IFS; IFS=$ac_path_separator 2264ac_dummy="$PATH" 2265for ac_dir in $ac_dummy; do 2266 IFS=$ac_save_IFS 2267 test -z "$ac_dir" && ac_dir=. 2268 $as_executable_p "$ac_dir/$ac_word" || continue 2269ac_cv_prog_MAKE_UPPER_TAGS="yes" 2270echo "$as_me:2270: found $ac_dir/$ac_word" >&5 2271break 2272done 2273 2274 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2275fi 2276fi 2277MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2278if test -n "$MAKE_UPPER_TAGS"; then 2279 echo "$as_me:2279: result: $MAKE_UPPER_TAGS" >&5 2280echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2281else 2282 echo "$as_me:2282: result: no" >&5 2283echo "${ECHO_T}no" >&6 2284fi 2285 2286else 2287 MAKE_UPPER_TAGS=no 2288fi 2289 2290if test "$MAKE_UPPER_TAGS" = yes ; then 2291 MAKE_UPPER_TAGS= 2292else 2293 MAKE_UPPER_TAGS="#" 2294fi 2295 2296if test "$MAKE_LOWER_TAGS" = yes ; then 2297 MAKE_LOWER_TAGS= 2298else 2299 MAKE_LOWER_TAGS="#" 2300fi 2301 2302for ac_prog in lint cppcheck splint 2303do 2304 # Extract the first word of "$ac_prog", so it can be a program name with args. 2305set dummy $ac_prog; ac_word=$2 2306echo "$as_me:2306: checking for $ac_word" >&5 2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2308if test "${ac_cv_prog_LINT+set}" = set; then 2309 echo $ECHO_N "(cached) $ECHO_C" >&6 2310else 2311 if test -n "$LINT"; then 2312 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2313else 2314 ac_save_IFS=$IFS; IFS=$ac_path_separator 2315ac_dummy="$PATH" 2316for ac_dir in $ac_dummy; do 2317 IFS=$ac_save_IFS 2318 test -z "$ac_dir" && ac_dir=. 2319 $as_executable_p "$ac_dir/$ac_word" || continue 2320ac_cv_prog_LINT="$ac_prog" 2321echo "$as_me:2321: found $ac_dir/$ac_word" >&5 2322break 2323done 2324 2325fi 2326fi 2327LINT=$ac_cv_prog_LINT 2328if test -n "$LINT"; then 2329 echo "$as_me:2329: result: $LINT" >&5 2330echo "${ECHO_T}$LINT" >&6 2331else 2332 echo "$as_me:2332: result: no" >&5 2333echo "${ECHO_T}no" >&6 2334fi 2335 2336 test -n "$LINT" && break 2337done 2338 2339ac_ext=c 2340ac_cpp='$CPP $CPPFLAGS' 2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343ac_compiler_gnu=$ac_cv_c_compiler_gnu 2344ac_main_return=return 2345echo "$as_me:2345: checking how to run the C preprocessor" >&5 2346echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2347# On Suns, sometimes $CPP names a directory. 2348if test -n "$CPP" && test -d "$CPP"; then 2349 CPP= 2350fi 2351if test -z "$CPP"; then 2352 if test "${ac_cv_prog_CPP+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354else 2355 # Double quotes because CPP needs to be expanded 2356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2357 do 2358 ac_preproc_ok=false 2359for ac_c_preproc_warn_flag in '' yes 2360do 2361 # Use a header file that comes with gcc, so configuring glibc 2362 # with a fresh cross-compiler works. 2363 # On the NeXT, cc -E runs the code through the compiler's parser, 2364 # not just through cpp. "Syntax error" is here to catch this case. 2365 cat >conftest.$ac_ext <<_ACEOF 2366#line 2366 "configure" 2367#include "confdefs.h" 2368#include <assert.h> 2369 Syntax error 2370_ACEOF 2371if { (eval echo "$as_me:2371: \"$ac_cpp conftest.$ac_ext\"") >&5 2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2373 ac_status=$? 2374 egrep -v '^ *\+' conftest.er1 >conftest.err 2375 rm -f conftest.er1 2376 cat conftest.err >&5 2377 echo "$as_me:2377: \$? = $ac_status" >&5 2378 (exit $ac_status); } >/dev/null; then 2379 if test -s conftest.err; then 2380 ac_cpp_err=$ac_c_preproc_warn_flag 2381 else 2382 ac_cpp_err= 2383 fi 2384else 2385 ac_cpp_err=yes 2386fi 2387if test -z "$ac_cpp_err"; then 2388 : 2389else 2390 echo "$as_me: failed program was:" >&5 2391 cat conftest.$ac_ext >&5 2392 # Broken: fails on valid input. 2393continue 2394fi 2395rm -f conftest.err conftest.$ac_ext 2396 2397 # OK, works on sane cases. Now check whether non-existent headers 2398 # can be detected and how. 2399 cat >conftest.$ac_ext <<_ACEOF 2400#line 2400 "configure" 2401#include "confdefs.h" 2402#include <ac_nonexistent.h> 2403_ACEOF 2404if { (eval echo "$as_me:2404: \"$ac_cpp conftest.$ac_ext\"") >&5 2405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2406 ac_status=$? 2407 egrep -v '^ *\+' conftest.er1 >conftest.err 2408 rm -f conftest.er1 2409 cat conftest.err >&5 2410 echo "$as_me:2410: \$? = $ac_status" >&5 2411 (exit $ac_status); } >/dev/null; then 2412 if test -s conftest.err; then 2413 ac_cpp_err=$ac_c_preproc_warn_flag 2414 else 2415 ac_cpp_err= 2416 fi 2417else 2418 ac_cpp_err=yes 2419fi 2420if test -z "$ac_cpp_err"; then 2421 # Broken: success on invalid input. 2422continue 2423else 2424 echo "$as_me: failed program was:" >&5 2425 cat conftest.$ac_ext >&5 2426 # Passes both tests. 2427ac_preproc_ok=: 2428break 2429fi 2430rm -f conftest.err conftest.$ac_ext 2431 2432done 2433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2434rm -f conftest.err conftest.$ac_ext 2435if $ac_preproc_ok; then 2436 break 2437fi 2438 2439 done 2440 ac_cv_prog_CPP=$CPP 2441 2442fi 2443 CPP=$ac_cv_prog_CPP 2444else 2445 ac_cv_prog_CPP=$CPP 2446fi 2447echo "$as_me:2447: result: $CPP" >&5 2448echo "${ECHO_T}$CPP" >&6 2449ac_preproc_ok=false 2450for ac_c_preproc_warn_flag in '' yes 2451do 2452 # Use a header file that comes with gcc, so configuring glibc 2453 # with a fresh cross-compiler works. 2454 # On the NeXT, cc -E runs the code through the compiler's parser, 2455 # not just through cpp. "Syntax error" is here to catch this case. 2456 cat >conftest.$ac_ext <<_ACEOF 2457#line 2457 "configure" 2458#include "confdefs.h" 2459#include <assert.h> 2460 Syntax error 2461_ACEOF 2462if { (eval echo "$as_me:2462: \"$ac_cpp conftest.$ac_ext\"") >&5 2463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2464 ac_status=$? 2465 egrep -v '^ *\+' conftest.er1 >conftest.err 2466 rm -f conftest.er1 2467 cat conftest.err >&5 2468 echo "$as_me:2468: \$? = $ac_status" >&5 2469 (exit $ac_status); } >/dev/null; then 2470 if test -s conftest.err; then 2471 ac_cpp_err=$ac_c_preproc_warn_flag 2472 else 2473 ac_cpp_err= 2474 fi 2475else 2476 ac_cpp_err=yes 2477fi 2478if test -z "$ac_cpp_err"; then 2479 : 2480else 2481 echo "$as_me: failed program was:" >&5 2482 cat conftest.$ac_ext >&5 2483 # Broken: fails on valid input. 2484continue 2485fi 2486rm -f conftest.err conftest.$ac_ext 2487 2488 # OK, works on sane cases. Now check whether non-existent headers 2489 # can be detected and how. 2490 cat >conftest.$ac_ext <<_ACEOF 2491#line 2491 "configure" 2492#include "confdefs.h" 2493#include <ac_nonexistent.h> 2494_ACEOF 2495if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5 2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2497 ac_status=$? 2498 egrep -v '^ *\+' conftest.er1 >conftest.err 2499 rm -f conftest.er1 2500 cat conftest.err >&5 2501 echo "$as_me:2501: \$? = $ac_status" >&5 2502 (exit $ac_status); } >/dev/null; then 2503 if test -s conftest.err; then 2504 ac_cpp_err=$ac_c_preproc_warn_flag 2505 else 2506 ac_cpp_err= 2507 fi 2508else 2509 ac_cpp_err=yes 2510fi 2511if test -z "$ac_cpp_err"; then 2512 # Broken: success on invalid input. 2513continue 2514else 2515 echo "$as_me: failed program was:" >&5 2516 cat conftest.$ac_ext >&5 2517 # Passes both tests. 2518ac_preproc_ok=: 2519break 2520fi 2521rm -f conftest.err conftest.$ac_ext 2522 2523done 2524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2525rm -f conftest.err conftest.$ac_ext 2526if $ac_preproc_ok; then 2527 : 2528else 2529 { { echo "$as_me:2529: error: C preprocessor \"$CPP\" fails sanity check" >&5 2530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2531 { (exit 1); exit 1; }; } 2532fi 2533 2534ac_ext=c 2535ac_cpp='$CPP $CPPFLAGS' 2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2538ac_compiler_gnu=$ac_cv_c_compiler_gnu 2539ac_main_return=return 2540 2541echo "$as_me:2541: checking for ANSI C header files" >&5 2542echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2543if test "${ac_cv_header_stdc+set}" = set; then 2544 echo $ECHO_N "(cached) $ECHO_C" >&6 2545else 2546 cat >conftest.$ac_ext <<_ACEOF 2547#line 2547 "configure" 2548#include "confdefs.h" 2549#include <stdlib.h> 2550#include <stdarg.h> 2551#include <string.h> 2552#include <float.h> 2553 2554_ACEOF 2555if { (eval echo "$as_me:2555: \"$ac_cpp conftest.$ac_ext\"") >&5 2556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2557 ac_status=$? 2558 egrep -v '^ *\+' conftest.er1 >conftest.err 2559 rm -f conftest.er1 2560 cat conftest.err >&5 2561 echo "$as_me:2561: \$? = $ac_status" >&5 2562 (exit $ac_status); } >/dev/null; then 2563 if test -s conftest.err; then 2564 ac_cpp_err=$ac_c_preproc_warn_flag 2565 else 2566 ac_cpp_err= 2567 fi 2568else 2569 ac_cpp_err=yes 2570fi 2571if test -z "$ac_cpp_err"; then 2572 ac_cv_header_stdc=yes 2573else 2574 echo "$as_me: failed program was:" >&5 2575 cat conftest.$ac_ext >&5 2576 ac_cv_header_stdc=no 2577fi 2578rm -f conftest.err conftest.$ac_ext 2579 2580if test $ac_cv_header_stdc = yes; then 2581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2582 cat >conftest.$ac_ext <<_ACEOF 2583#line 2583 "configure" 2584#include "confdefs.h" 2585#include <string.h> 2586 2587_ACEOF 2588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2589 egrep "memchr" >/dev/null 2>&1; then 2590 : 2591else 2592 ac_cv_header_stdc=no 2593fi 2594rm -rf conftest* 2595 2596fi 2597 2598if test $ac_cv_header_stdc = yes; then 2599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2600 cat >conftest.$ac_ext <<_ACEOF 2601#line 2601 "configure" 2602#include "confdefs.h" 2603#include <stdlib.h> 2604 2605_ACEOF 2606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2607 egrep "free" >/dev/null 2>&1; then 2608 : 2609else 2610 ac_cv_header_stdc=no 2611fi 2612rm -rf conftest* 2613 2614fi 2615 2616if test $ac_cv_header_stdc = yes; then 2617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2618 if test "$cross_compiling" = yes; then 2619 : 2620else 2621 cat >conftest.$ac_ext <<_ACEOF 2622#line 2622 "configure" 2623#include "confdefs.h" 2624#include <ctype.h> 2625#if ((' ' & 0x0FF) == 0x020) 2626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2628#else 2629# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2630 || ('j' <= (c) && (c) <= 'r') \ 2631 || ('s' <= (c) && (c) <= 'z')) 2632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2633#endif 2634 2635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2636int 2637main (void) 2638{ 2639 int i; 2640 for (i = 0; i < 256; i++) 2641 if (XOR (islower (i), ISLOWER (i)) 2642 || toupper (i) != TOUPPER (i)) 2643 $ac_main_return(2); 2644 $ac_main_return (0); 2645} 2646_ACEOF 2647rm -f conftest$ac_exeext 2648if { (eval echo "$as_me:2648: \"$ac_link\"") >&5 2649 (eval $ac_link) 2>&5 2650 ac_status=$? 2651 echo "$as_me:2651: \$? = $ac_status" >&5 2652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2653 { (eval echo "$as_me:2653: \"$ac_try\"") >&5 2654 (eval $ac_try) 2>&5 2655 ac_status=$? 2656 echo "$as_me:2656: \$? = $ac_status" >&5 2657 (exit $ac_status); }; }; then 2658 : 2659else 2660 echo "$as_me: program exited with status $ac_status" >&5 2661echo "$as_me: failed program was:" >&5 2662cat conftest.$ac_ext >&5 2663ac_cv_header_stdc=no 2664fi 2665rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2666fi 2667fi 2668fi 2669echo "$as_me:2669: result: $ac_cv_header_stdc" >&5 2670echo "${ECHO_T}$ac_cv_header_stdc" >&6 2671if test $ac_cv_header_stdc = yes; then 2672 2673cat >>confdefs.h <<\EOF 2674#define STDC_HEADERS 1 2675EOF 2676 2677fi 2678 2679for ac_header in \ 2680getopt.h \ 2681stdlib.h \ 2682string.h \ 2683unistd.h \ 2684 2685do 2686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2687echo "$as_me:2687: checking for $ac_header" >&5 2688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2689if eval "test \"\${$as_ac_Header+set}\" = set"; then 2690 echo $ECHO_N "(cached) $ECHO_C" >&6 2691else 2692 cat >conftest.$ac_ext <<_ACEOF 2693#line 2693 "configure" 2694#include "confdefs.h" 2695#include <$ac_header> 2696_ACEOF 2697if { (eval echo "$as_me:2697: \"$ac_cpp conftest.$ac_ext\"") >&5 2698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2699 ac_status=$? 2700 egrep -v '^ *\+' conftest.er1 >conftest.err 2701 rm -f conftest.er1 2702 cat conftest.err >&5 2703 echo "$as_me:2703: \$? = $ac_status" >&5 2704 (exit $ac_status); } >/dev/null; then 2705 if test -s conftest.err; then 2706 ac_cpp_err=$ac_c_preproc_warn_flag 2707 else 2708 ac_cpp_err= 2709 fi 2710else 2711 ac_cpp_err=yes 2712fi 2713if test -z "$ac_cpp_err"; then 2714 eval "$as_ac_Header=yes" 2715else 2716 echo "$as_me: failed program was:" >&5 2717 cat conftest.$ac_ext >&5 2718 eval "$as_ac_Header=no" 2719fi 2720rm -f conftest.err conftest.$ac_ext 2721fi 2722echo "$as_me:2722: result: `eval echo '${'$as_ac_Header'}'`" >&5 2723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2724if test `eval echo '${'$as_ac_Header'}'` = yes; then 2725 cat >>confdefs.h <<EOF 2726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2727EOF 2728 2729fi 2730done 2731 2732for ac_header in unistd.h getopt.h 2733do 2734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2735echo "$as_me:2735: checking for $ac_header" >&5 2736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2737if eval "test \"\${$as_ac_Header+set}\" = set"; then 2738 echo $ECHO_N "(cached) $ECHO_C" >&6 2739else 2740 cat >conftest.$ac_ext <<_ACEOF 2741#line 2741 "configure" 2742#include "confdefs.h" 2743#include <$ac_header> 2744_ACEOF 2745if { (eval echo "$as_me:2745: \"$ac_cpp conftest.$ac_ext\"") >&5 2746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2747 ac_status=$? 2748 egrep -v '^ *\+' conftest.er1 >conftest.err 2749 rm -f conftest.er1 2750 cat conftest.err >&5 2751 echo "$as_me:2751: \$? = $ac_status" >&5 2752 (exit $ac_status); } >/dev/null; then 2753 if test -s conftest.err; then 2754 ac_cpp_err=$ac_c_preproc_warn_flag 2755 else 2756 ac_cpp_err= 2757 fi 2758else 2759 ac_cpp_err=yes 2760fi 2761if test -z "$ac_cpp_err"; then 2762 eval "$as_ac_Header=yes" 2763else 2764 echo "$as_me: failed program was:" >&5 2765 cat conftest.$ac_ext >&5 2766 eval "$as_ac_Header=no" 2767fi 2768rm -f conftest.err conftest.$ac_ext 2769fi 2770echo "$as_me:2770: result: `eval echo '${'$as_ac_Header'}'`" >&5 2771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2772if test `eval echo '${'$as_ac_Header'}'` = yes; then 2773 cat >>confdefs.h <<EOF 2774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2775EOF 2776 2777fi 2778done 2779 2780echo "$as_me:2780: checking for header declaring getopt variables" >&5 2781echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6 2782if test "${cf_cv_getopt_header+set}" = set; then 2783 echo $ECHO_N "(cached) $ECHO_C" >&6 2784else 2785 2786cf_cv_getopt_header=none 2787for cf_header in stdio.h stdlib.h unistd.h getopt.h 2788do 2789cat >conftest.$ac_ext <<_ACEOF 2790#line 2790 "configure" 2791#include "confdefs.h" 2792 2793#include <$cf_header> 2794int 2795main (void) 2796{ 2797int x = optind; char *y = optarg 2798 ; 2799 return 0; 2800} 2801_ACEOF 2802rm -f conftest.$ac_objext 2803if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5 2804 (eval $ac_compile) 2>&5 2805 ac_status=$? 2806 echo "$as_me:2806: \$? = $ac_status" >&5 2807 (exit $ac_status); } && 2808 { ac_try='test -s conftest.$ac_objext' 2809 { (eval echo "$as_me:2809: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:2812: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 2814 cf_cv_getopt_header=$cf_header 2815 break 2816else 2817 echo "$as_me: failed program was:" >&5 2818cat conftest.$ac_ext >&5 2819fi 2820rm -f conftest.$ac_objext conftest.$ac_ext 2821done 2822 2823fi 2824echo "$as_me:2824: result: $cf_cv_getopt_header" >&5 2825echo "${ECHO_T}$cf_cv_getopt_header" >&6 2826if test $cf_cv_getopt_header != none ; then 2827 2828cat >>confdefs.h <<\EOF 2829#define HAVE_GETOPT_HEADER 1 2830EOF 2831 2832fi 2833if test $cf_cv_getopt_header = getopt.h ; then 2834 2835cat >>confdefs.h <<\EOF 2836#define NEED_GETOPT_H 1 2837EOF 2838 2839fi 2840 2841echo "$as_me:2841: checking if you want to see long compiling messages" >&5 2842echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 2843 2844# Check whether --enable-echo or --disable-echo was given. 2845if test "${enable_echo+set}" = set; then 2846 enableval="$enable_echo" 2847 test "$enableval" != no && enableval=yes 2848 if test "$enableval" != "yes" ; then 2849 2850 ECHO_LT='--silent' 2851 ECHO_LD='@echo linking $@;' 2852 RULE_CC='@echo compiling $<' 2853 SHOW_CC='@echo compiling $@' 2854 ECHO_CC='@' 2855 2856 else 2857 2858 ECHO_LT='' 2859 ECHO_LD='' 2860 RULE_CC='' 2861 SHOW_CC='' 2862 ECHO_CC='' 2863 2864 fi 2865else 2866 enableval=yes 2867 2868 ECHO_LT='' 2869 ECHO_LD='' 2870 RULE_CC='' 2871 SHOW_CC='' 2872 ECHO_CC='' 2873 2874fi; 2875echo "$as_me:2875: result: $enableval" >&5 2876echo "${ECHO_T}$enableval" >&6 2877 2878if ( test "$GCC" = yes || test "$GXX" = yes ) 2879then 2880echo "$as_me:2880: checking if you want to turn on gcc warnings" >&5 2881echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 2882 2883# Check whether --enable-warnings or --disable-warnings was given. 2884if test "${enable_warnings+set}" = set; then 2885 enableval="$enable_warnings" 2886 test "$enableval" != yes && enableval=no 2887 if test "$enableval" != "no" ; then 2888 with_warnings=yes 2889 else 2890 with_warnings=no 2891 fi 2892else 2893 enableval=no 2894 with_warnings=no 2895 2896fi; 2897echo "$as_me:2897: result: $with_warnings" >&5 2898echo "${ECHO_T}$with_warnings" >&6 2899if test "$with_warnings" = "yes" 2900then 2901 2902if test "$GCC" = yes 2903then 2904cat > conftest.i <<EOF 2905#ifndef GCC_PRINTF 2906#define GCC_PRINTF 0 2907#endif 2908#ifndef GCC_SCANF 2909#define GCC_SCANF 0 2910#endif 2911#ifndef GCC_NORETURN 2912#define GCC_NORETURN /* nothing */ 2913#endif 2914#ifndef GCC_UNUSED 2915#define GCC_UNUSED /* nothing */ 2916#endif 2917EOF 2918if test "$GCC" = yes 2919then 2920 { echo "$as_me:2920: checking for $CC __attribute__ directives..." >&5 2921echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 2922cat > conftest.$ac_ext <<EOF 2923#line 2923 "${as_me:-configure}" 2924#include "confdefs.h" 2925#include "conftest.h" 2926#include "conftest.i" 2927#if GCC_PRINTF 2928#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 2929#else 2930#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 2931#endif 2932#if GCC_SCANF 2933#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 2934#else 2935#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 2936#endif 2937extern void wow(char *,...) GCC_SCANFLIKE(1,2); 2938extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 2939extern void foo(void) GCC_NORETURN; 2940int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 2941EOF 2942 cf_printf_attribute=no 2943 cf_scanf_attribute=no 2944 for cf_attribute in scanf printf unused noreturn 2945 do 2946 2947cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 2948 2949 cf_directive="__attribute__(($cf_attribute))" 2950 echo "checking for $CC $cf_directive" 1>&5 2951 2952 case $cf_attribute in 2953 (printf) 2954 cf_printf_attribute=yes 2955 cat >conftest.h <<EOF 2956#define GCC_$cf_ATTRIBUTE 1 2957EOF 2958 ;; 2959 (scanf) 2960 cf_scanf_attribute=yes 2961 cat >conftest.h <<EOF 2962#define GCC_$cf_ATTRIBUTE 1 2963EOF 2964 ;; 2965 (*) 2966 cat >conftest.h <<EOF 2967#define GCC_$cf_ATTRIBUTE $cf_directive 2968EOF 2969 ;; 2970 esac 2971 2972 if { (eval echo "$as_me:2972: \"$ac_compile\"") >&5 2973 (eval $ac_compile) 2>&5 2974 ac_status=$? 2975 echo "$as_me:2975: \$? = $ac_status" >&5 2976 (exit $ac_status); }; then 2977 test -n "$verbose" && echo "$as_me:2977: result: ... $cf_attribute" >&5 2978echo "${ECHO_T}... $cf_attribute" >&6 2979 cat conftest.h >>confdefs.h 2980 case $cf_attribute in 2981 (noreturn) 2982 2983cat >>confdefs.h <<EOF 2984#define GCC_NORETURN $cf_directive 2985EOF 2986 2987 ;; 2988 (printf) 2989 cf_value='/* nothing */' 2990 if test "$cf_printf_attribute" != no ; then 2991 cf_value='__attribute__((format(printf,fmt,var)))' 2992 2993cat >>confdefs.h <<\EOF 2994#define GCC_PRINTF 1 2995EOF 2996 2997 fi 2998 2999cat >>confdefs.h <<EOF 3000#define GCC_PRINTFLIKE(fmt,var) $cf_value 3001EOF 3002 3003 ;; 3004 (scanf) 3005 cf_value='/* nothing */' 3006 if test "$cf_scanf_attribute" != no ; then 3007 cf_value='__attribute__((format(scanf,fmt,var)))' 3008 3009cat >>confdefs.h <<\EOF 3010#define GCC_SCANF 1 3011EOF 3012 3013 fi 3014 3015cat >>confdefs.h <<EOF 3016#define GCC_SCANFLIKE(fmt,var) $cf_value 3017EOF 3018 3019 ;; 3020 (unused) 3021 3022cat >>confdefs.h <<EOF 3023#define GCC_UNUSED $cf_directive 3024EOF 3025 3026 ;; 3027 esac 3028 fi 3029 done 3030else 3031 fgrep define conftest.i >>confdefs.h 3032fi 3033rm -rf conftest* 3034fi 3035 3036INTEL_COMPILER=no 3037 3038if test "$GCC" = yes ; then 3039 case $host_os in 3040 (linux*|gnu*) 3041 echo "$as_me:3041: checking if this is really Intel C compiler" >&5 3042echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 3043 cf_save_CFLAGS="$CFLAGS" 3044 CFLAGS="$CFLAGS -no-gcc" 3045 cat >conftest.$ac_ext <<_ACEOF 3046#line 3046 "configure" 3047#include "confdefs.h" 3048 3049int 3050main (void) 3051{ 3052 3053#ifdef __INTEL_COMPILER 3054#else 3055make an error 3056#endif 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062rm -f conftest.$ac_objext 3063if { (eval echo "$as_me:3063: \"$ac_compile\"") >&5 3064 (eval $ac_compile) 2>&5 3065 ac_status=$? 3066 echo "$as_me:3066: \$? = $ac_status" >&5 3067 (exit $ac_status); } && 3068 { ac_try='test -s conftest.$ac_objext' 3069 { (eval echo "$as_me:3069: \"$ac_try\"") >&5 3070 (eval $ac_try) 2>&5 3071 ac_status=$? 3072 echo "$as_me:3072: \$? = $ac_status" >&5 3073 (exit $ac_status); }; }; then 3074 INTEL_COMPILER=yes 3075cf_save_CFLAGS="$cf_save_CFLAGS -we147" 3076 3077else 3078 echo "$as_me: failed program was:" >&5 3079cat conftest.$ac_ext >&5 3080fi 3081rm -f conftest.$ac_objext conftest.$ac_ext 3082 CFLAGS="$cf_save_CFLAGS" 3083 echo "$as_me:3083: result: $INTEL_COMPILER" >&5 3084echo "${ECHO_T}$INTEL_COMPILER" >&6 3085 ;; 3086 esac 3087fi 3088 3089CLANG_COMPILER=no 3090 3091if test "$GCC" = yes ; then 3092 echo "$as_me:3092: checking if this is really Clang C compiler" >&5 3093echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 3094 cf_save_CFLAGS="$CFLAGS" 3095 CFLAGS="$CFLAGS -Qunused-arguments" 3096 cat >conftest.$ac_ext <<_ACEOF 3097#line 3097 "configure" 3098#include "confdefs.h" 3099 3100int 3101main (void) 3102{ 3103 3104#ifdef __clang__ 3105#else 3106make an error 3107#endif 3108 3109 ; 3110 return 0; 3111} 3112_ACEOF 3113rm -f conftest.$ac_objext 3114if { (eval echo "$as_me:3114: \"$ac_compile\"") >&5 3115 (eval $ac_compile) 2>&5 3116 ac_status=$? 3117 echo "$as_me:3117: \$? = $ac_status" >&5 3118 (exit $ac_status); } && 3119 { ac_try='test -s conftest.$ac_objext' 3120 { (eval echo "$as_me:3120: \"$ac_try\"") >&5 3121 (eval $ac_try) 2>&5 3122 ac_status=$? 3123 echo "$as_me:3123: \$? = $ac_status" >&5 3124 (exit $ac_status); }; }; then 3125 CLANG_COMPILER=yes 3126cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 3127 3128else 3129 echo "$as_me: failed program was:" >&5 3130cat conftest.$ac_ext >&5 3131fi 3132rm -f conftest.$ac_objext conftest.$ac_ext 3133 CFLAGS="$cf_save_CFLAGS" 3134 echo "$as_me:3134: result: $CLANG_COMPILER" >&5 3135echo "${ECHO_T}$CLANG_COMPILER" >&6 3136fi 3137 3138cat > conftest.$ac_ext <<EOF 3139#line 3139 "${as_me:-configure}" 3140int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 3141EOF 3142 3143if test "$INTEL_COMPILER" = yes 3144then 3145# The "-wdXXX" options suppress warnings: 3146# remark #1419: external declaration in primary source file 3147# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 3148# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 3149# remark #193: zero used for undefined preprocessing identifier 3150# remark #593: variable "curs_sb_left_arrow" was set but never used 3151# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 3152# remark #869: parameter "tw" was never referenced 3153# remark #981: operands are evaluated in unspecified order 3154# warning #279: controlling expression is constant 3155 3156 { echo "$as_me:3156: checking for $CC warning options..." >&5 3157echo "$as_me: checking for $CC warning options..." >&6;} 3158 cf_save_CFLAGS="$CFLAGS" 3159 EXTRA_CFLAGS="-Wall" 3160 for cf_opt in \ 3161 wd1419 \ 3162 wd1683 \ 3163 wd1684 \ 3164 wd193 \ 3165 wd593 \ 3166 wd279 \ 3167 wd810 \ 3168 wd869 \ 3169 wd981 3170 do 3171 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 3172 if { (eval echo "$as_me:3172: \"$ac_compile\"") >&5 3173 (eval $ac_compile) 2>&5 3174 ac_status=$? 3175 echo "$as_me:3175: \$? = $ac_status" >&5 3176 (exit $ac_status); }; then 3177 test -n "$verbose" && echo "$as_me:3177: result: ... -$cf_opt" >&5 3178echo "${ECHO_T}... -$cf_opt" >&6 3179 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 3180 fi 3181 done 3182 CFLAGS="$cf_save_CFLAGS" 3183 3184elif test "$GCC" = yes 3185then 3186 { echo "$as_me:3186: checking for $CC warning options..." >&5 3187echo "$as_me: checking for $CC warning options..." >&6;} 3188 cf_save_CFLAGS="$CFLAGS" 3189 EXTRA_CFLAGS= 3190 cf_warn_CONST="" 3191 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 3192 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 3193 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 3194 for cf_opt in W Wall \ 3195 Wbad-function-cast \ 3196 Wcast-align \ 3197 Wcast-qual \ 3198 Wdeclaration-after-statement \ 3199 Wextra \ 3200 Winline \ 3201 Wmissing-declarations \ 3202 Wmissing-prototypes \ 3203 Wnested-externs \ 3204 Wpointer-arith \ 3205 Wshadow \ 3206 Wstrict-prototypes \ 3207 Wundef $cf_gcc_warnings $cf_warn_CONST 3208 do 3209 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 3210 if { (eval echo "$as_me:3210: \"$ac_compile\"") >&5 3211 (eval $ac_compile) 2>&5 3212 ac_status=$? 3213 echo "$as_me:3213: \$? = $ac_status" >&5 3214 (exit $ac_status); }; then 3215 test -n "$verbose" && echo "$as_me:3215: result: ... -$cf_opt" >&5 3216echo "${ECHO_T}... -$cf_opt" >&6 3217 case $cf_opt in 3218 (Wcast-qual) 3219 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 3220 ;; 3221 (Winline) 3222 case $GCC_VERSION in 3223 ([34].*) 3224 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 3225 3226echo "${as_me:-configure}:3226: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 3227 3228 continue;; 3229 esac 3230 ;; 3231 (Wpointer-arith) 3232 case $GCC_VERSION in 3233 ([12].*) 3234 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 3235 3236echo "${as_me:-configure}:3236: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 3237 3238 continue;; 3239 esac 3240 ;; 3241 esac 3242 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 3243 fi 3244 done 3245 CFLAGS="$cf_save_CFLAGS" 3246fi 3247rm -rf conftest* 3248 3249fi 3250fi 3251 3252cf_XOPEN_SOURCE=500 3253cf_POSIX_C_SOURCE=199506L 3254cf_xopen_source= 3255 3256case $host_os in 3257(aix[4-7]*) 3258 cf_xopen_source="-D_ALL_SOURCE" 3259 ;; 3260(msys) 3261 cf_XOPEN_SOURCE=600 3262 ;; 3263(darwin[0-8].*) 3264 cf_xopen_source="-D_APPLE_C_SOURCE" 3265 ;; 3266(darwin*) 3267 cf_xopen_source="-D_DARWIN_C_SOURCE" 3268 cf_XOPEN_SOURCE= 3269 ;; 3270(freebsd*|dragonfly*) 3271 # 5.x headers associate 3272 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3273 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3274 cf_POSIX_C_SOURCE=200112L 3275 cf_XOPEN_SOURCE=600 3276 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3277 ;; 3278(hpux11*) 3279 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3280 ;; 3281(hpux*) 3282 cf_xopen_source="-D_HPUX_SOURCE" 3283 ;; 3284(irix[56].*) 3285 cf_xopen_source="-D_SGI_SOURCE" 3286 cf_XOPEN_SOURCE= 3287 ;; 3288(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 3289 3290echo "$as_me:3290: checking if we must define _GNU_SOURCE" >&5 3291echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 3292if test "${cf_cv_gnu_source+set}" = set; then 3293 echo $ECHO_N "(cached) $ECHO_C" >&6 3294else 3295 3296cat >conftest.$ac_ext <<_ACEOF 3297#line 3297 "configure" 3298#include "confdefs.h" 3299#include <sys/types.h> 3300int 3301main (void) 3302{ 3303 3304#ifndef _XOPEN_SOURCE 3305make an error 3306#endif 3307 ; 3308 return 0; 3309} 3310_ACEOF 3311rm -f conftest.$ac_objext 3312if { (eval echo "$as_me:3312: \"$ac_compile\"") >&5 3313 (eval $ac_compile) 2>&5 3314 ac_status=$? 3315 echo "$as_me:3315: \$? = $ac_status" >&5 3316 (exit $ac_status); } && 3317 { ac_try='test -s conftest.$ac_objext' 3318 { (eval echo "$as_me:3318: \"$ac_try\"") >&5 3319 (eval $ac_try) 2>&5 3320 ac_status=$? 3321 echo "$as_me:3321: \$? = $ac_status" >&5 3322 (exit $ac_status); }; }; then 3323 cf_cv_gnu_source=no 3324else 3325 echo "$as_me: failed program was:" >&5 3326cat conftest.$ac_ext >&5 3327cf_save="$CPPFLAGS" 3328 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 3329 cat >conftest.$ac_ext <<_ACEOF 3330#line 3330 "configure" 3331#include "confdefs.h" 3332#include <sys/types.h> 3333int 3334main (void) 3335{ 3336 3337#ifdef _XOPEN_SOURCE 3338make an error 3339#endif 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.$ac_objext 3345if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5 3346 (eval $ac_compile) 2>&5 3347 ac_status=$? 3348 echo "$as_me:3348: \$? = $ac_status" >&5 3349 (exit $ac_status); } && 3350 { ac_try='test -s conftest.$ac_objext' 3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5 3352 (eval $ac_try) 2>&5 3353 ac_status=$? 3354 echo "$as_me:3354: \$? = $ac_status" >&5 3355 (exit $ac_status); }; }; then 3356 cf_cv_gnu_source=no 3357else 3358 echo "$as_me: failed program was:" >&5 3359cat conftest.$ac_ext >&5 3360cf_cv_gnu_source=yes 3361fi 3362rm -f conftest.$ac_objext conftest.$ac_ext 3363 CPPFLAGS="$cf_save" 3364 3365fi 3366rm -f conftest.$ac_objext conftest.$ac_ext 3367 3368fi 3369echo "$as_me:3369: result: $cf_cv_gnu_source" >&5 3370echo "${ECHO_T}$cf_cv_gnu_source" >&6 3371 3372if test "$cf_cv_gnu_source" = yes 3373then 3374echo "$as_me:3374: checking if we should also define _DEFAULT_SOURCE" >&5 3375echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 3376if test "${cf_cv_default_source+set}" = set; then 3377 echo $ECHO_N "(cached) $ECHO_C" >&6 3378else 3379 3380CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 3381 cat >conftest.$ac_ext <<_ACEOF 3382#line 3382 "configure" 3383#include "confdefs.h" 3384#include <sys/types.h> 3385int 3386main (void) 3387{ 3388 3389#ifdef _DEFAULT_SOURCE 3390make an error 3391#endif 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396rm -f conftest.$ac_objext 3397if { (eval echo "$as_me:3397: \"$ac_compile\"") >&5 3398 (eval $ac_compile) 2>&5 3399 ac_status=$? 3400 echo "$as_me:3400: \$? = $ac_status" >&5 3401 (exit $ac_status); } && 3402 { ac_try='test -s conftest.$ac_objext' 3403 { (eval echo "$as_me:3403: \"$ac_try\"") >&5 3404 (eval $ac_try) 2>&5 3405 ac_status=$? 3406 echo "$as_me:3406: \$? = $ac_status" >&5 3407 (exit $ac_status); }; }; then 3408 cf_cv_default_source=no 3409else 3410 echo "$as_me: failed program was:" >&5 3411cat conftest.$ac_ext >&5 3412cf_cv_default_source=yes 3413fi 3414rm -f conftest.$ac_objext conftest.$ac_ext 3415 3416fi 3417echo "$as_me:3417: result: $cf_cv_default_source" >&5 3418echo "${ECHO_T}$cf_cv_default_source" >&6 3419test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE" 3420fi 3421 3422 ;; 3423(minix*) 3424 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 3425 ;; 3426(mirbsd*) 3427 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 3428 cf_XOPEN_SOURCE= 3429 3430cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3431 3432cf_save_CFLAGS="$CFLAGS" 3433cf_save_CPPFLAGS="$CPPFLAGS" 3434 3435cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3436 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3437 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3438 3439cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3440 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3441 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3442 3443echo "$as_me:3443: checking if we should define _POSIX_C_SOURCE" >&5 3444echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3445if test "${cf_cv_posix_c_source+set}" = set; then 3446 echo $ECHO_N "(cached) $ECHO_C" >&6 3447else 3448 3449echo "${as_me:-configure}:3449: testing if the symbol is already defined go no further ..." 1>&5 3450 3451 cat >conftest.$ac_ext <<_ACEOF 3452#line 3452 "configure" 3453#include "confdefs.h" 3454#include <sys/types.h> 3455int 3456main (void) 3457{ 3458 3459#ifndef _POSIX_C_SOURCE 3460make an error 3461#endif 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466rm -f conftest.$ac_objext 3467if { (eval echo "$as_me:3467: \"$ac_compile\"") >&5 3468 (eval $ac_compile) 2>&5 3469 ac_status=$? 3470 echo "$as_me:3470: \$? = $ac_status" >&5 3471 (exit $ac_status); } && 3472 { ac_try='test -s conftest.$ac_objext' 3473 { (eval echo "$as_me:3473: \"$ac_try\"") >&5 3474 (eval $ac_try) 2>&5 3475 ac_status=$? 3476 echo "$as_me:3476: \$? = $ac_status" >&5 3477 (exit $ac_status); }; }; then 3478 cf_cv_posix_c_source=no 3479else 3480 echo "$as_me: failed program was:" >&5 3481cat conftest.$ac_ext >&5 3482cf_want_posix_source=no 3483 case .$cf_POSIX_C_SOURCE in 3484 (.[12]??*) 3485 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3486 ;; 3487 (.2) 3488 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3489 cf_want_posix_source=yes 3490 ;; 3491 (.*) 3492 cf_want_posix_source=yes 3493 ;; 3494 esac 3495 if test "$cf_want_posix_source" = yes ; then 3496 cat >conftest.$ac_ext <<_ACEOF 3497#line 3497 "configure" 3498#include "confdefs.h" 3499#include <sys/types.h> 3500int 3501main (void) 3502{ 3503 3504#ifdef _POSIX_SOURCE 3505make an error 3506#endif 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511rm -f conftest.$ac_objext 3512if { (eval echo "$as_me:3512: \"$ac_compile\"") >&5 3513 (eval $ac_compile) 2>&5 3514 ac_status=$? 3515 echo "$as_me:3515: \$? = $ac_status" >&5 3516 (exit $ac_status); } && 3517 { ac_try='test -s conftest.$ac_objext' 3518 { (eval echo "$as_me:3518: \"$ac_try\"") >&5 3519 (eval $ac_try) 2>&5 3520 ac_status=$? 3521 echo "$as_me:3521: \$? = $ac_status" >&5 3522 (exit $ac_status); }; }; then 3523 : 3524else 3525 echo "$as_me: failed program was:" >&5 3526cat conftest.$ac_ext >&5 3527cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3528fi 3529rm -f conftest.$ac_objext conftest.$ac_ext 3530 fi 3531 3532echo "${as_me:-configure}:3532: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3533 3534 CFLAGS="$cf_trim_CFLAGS" 3535 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3536 3537echo "${as_me:-configure}:3537: testing if the second compile does not leave our definition intact error ..." 1>&5 3538 3539 cat >conftest.$ac_ext <<_ACEOF 3540#line 3540 "configure" 3541#include "confdefs.h" 3542#include <sys/types.h> 3543int 3544main (void) 3545{ 3546 3547#ifndef _POSIX_C_SOURCE 3548make an error 3549#endif 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554rm -f conftest.$ac_objext 3555if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5 3556 (eval $ac_compile) 2>&5 3557 ac_status=$? 3558 echo "$as_me:3558: \$? = $ac_status" >&5 3559 (exit $ac_status); } && 3560 { ac_try='test -s conftest.$ac_objext' 3561 { (eval echo "$as_me:3561: \"$ac_try\"") >&5 3562 (eval $ac_try) 2>&5 3563 ac_status=$? 3564 echo "$as_me:3564: \$? = $ac_status" >&5 3565 (exit $ac_status); }; }; then 3566 : 3567else 3568 echo "$as_me: failed program was:" >&5 3569cat conftest.$ac_ext >&5 3570cf_cv_posix_c_source=no 3571fi 3572rm -f conftest.$ac_objext conftest.$ac_ext 3573 CFLAGS="$cf_save_CFLAGS" 3574 CPPFLAGS="$cf_save_CPPFLAGS" 3575 3576fi 3577rm -f conftest.$ac_objext conftest.$ac_ext 3578 3579fi 3580echo "$as_me:3580: result: $cf_cv_posix_c_source" >&5 3581echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3582 3583if test "$cf_cv_posix_c_source" != no ; then 3584 CFLAGS="$cf_trim_CFLAGS" 3585 CPPFLAGS="$cf_trim_CPPFLAGS" 3586 3587cf_fix_cppflags=no 3588cf_new_cflags= 3589cf_new_cppflags= 3590cf_new_extra_cppflags= 3591 3592for cf_add_cflags in $cf_cv_posix_c_source 3593do 3594case $cf_fix_cppflags in 3595(no) 3596 case $cf_add_cflags in 3597 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3598 case $cf_add_cflags in 3599 (-D*) 3600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3601 3602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3603 && test -z "${cf_tst_cflags}" \ 3604 && cf_fix_cppflags=yes 3605 3606 if test $cf_fix_cppflags = yes ; then 3607 3608 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3609 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3610 3611 continue 3612 elif test "${cf_tst_cflags}" = "\"'" ; then 3613 3614 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3615 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3616 3617 continue 3618 fi 3619 ;; 3620 esac 3621 case "$CPPFLAGS" in 3622 (*$cf_add_cflags) 3623 ;; 3624 (*) 3625 case $cf_add_cflags in 3626 (-D*) 3627 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3628 3629CPPFLAGS=`echo "$CPPFLAGS" | \ 3630 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3631 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3632 3633 ;; 3634 esac 3635 3636 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3637 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3638 3639 ;; 3640 esac 3641 ;; 3642 (*) 3643 3644 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3645 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3646 3647 ;; 3648 esac 3649 ;; 3650(yes) 3651 3652 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3653 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3654 3655 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3656 3657 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3658 && test -z "${cf_tst_cflags}" \ 3659 && cf_fix_cppflags=no 3660 ;; 3661esac 3662done 3663 3664if test -n "$cf_new_cflags" ; then 3665 3666 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3667 CFLAGS="${CFLAGS}$cf_new_cflags" 3668 3669fi 3670 3671if test -n "$cf_new_cppflags" ; then 3672 3673 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3674 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3675 3676fi 3677 3678if test -n "$cf_new_extra_cppflags" ; then 3679 3680 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3681 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3682 3683fi 3684 3685fi 3686 3687 ;; 3688(netbsd*) 3689 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3690 ;; 3691(openbsd[4-9]*) 3692 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3693 cf_xopen_source="-D_BSD_SOURCE" 3694 cf_XOPEN_SOURCE=600 3695 ;; 3696(openbsd*) 3697 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3698 ;; 3699(osf[45]*) 3700 cf_xopen_source="-D_OSF_SOURCE" 3701 ;; 3702(nto-qnx*) 3703 cf_xopen_source="-D_QNX_SOURCE" 3704 ;; 3705(sco*) 3706 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3707 ;; 3708(solaris2.*) 3709 cf_xopen_source="-D__EXTENSIONS__" 3710 cf_cv_xopen_source=broken 3711 ;; 3712(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 3713 cf_XOPEN_SOURCE= 3714 cf_POSIX_C_SOURCE= 3715 ;; 3716(*) 3717 3718echo "$as_me:3718: checking if we should define _XOPEN_SOURCE" >&5 3719echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3720if test "${cf_cv_xopen_source+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722else 3723 3724 cat >conftest.$ac_ext <<_ACEOF 3725#line 3725 "configure" 3726#include "confdefs.h" 3727 3728#include <stdlib.h> 3729#include <string.h> 3730#include <sys/types.h> 3731 3732int 3733main (void) 3734{ 3735 3736#ifndef _XOPEN_SOURCE 3737make an error 3738#endif 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743rm -f conftest.$ac_objext 3744if { (eval echo "$as_me:3744: \"$ac_compile\"") >&5 3745 (eval $ac_compile) 2>&5 3746 ac_status=$? 3747 echo "$as_me:3747: \$? = $ac_status" >&5 3748 (exit $ac_status); } && 3749 { ac_try='test -s conftest.$ac_objext' 3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:3753: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 cf_cv_xopen_source=no 3756else 3757 echo "$as_me: failed program was:" >&5 3758cat conftest.$ac_ext >&5 3759cf_save="$CPPFLAGS" 3760 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3761 cat >conftest.$ac_ext <<_ACEOF 3762#line 3762 "configure" 3763#include "confdefs.h" 3764 3765#include <stdlib.h> 3766#include <string.h> 3767#include <sys/types.h> 3768 3769int 3770main (void) 3771{ 3772 3773#ifdef _XOPEN_SOURCE 3774make an error 3775#endif 3776 ; 3777 return 0; 3778} 3779_ACEOF 3780rm -f conftest.$ac_objext 3781if { (eval echo "$as_me:3781: \"$ac_compile\"") >&5 3782 (eval $ac_compile) 2>&5 3783 ac_status=$? 3784 echo "$as_me:3784: \$? = $ac_status" >&5 3785 (exit $ac_status); } && 3786 { ac_try='test -s conftest.$ac_objext' 3787 { (eval echo "$as_me:3787: \"$ac_try\"") >&5 3788 (eval $ac_try) 2>&5 3789 ac_status=$? 3790 echo "$as_me:3790: \$? = $ac_status" >&5 3791 (exit $ac_status); }; }; then 3792 cf_cv_xopen_source=no 3793else 3794 echo "$as_me: failed program was:" >&5 3795cat conftest.$ac_ext >&5 3796cf_cv_xopen_source=$cf_XOPEN_SOURCE 3797fi 3798rm -f conftest.$ac_objext conftest.$ac_ext 3799 CPPFLAGS="$cf_save" 3800 3801fi 3802rm -f conftest.$ac_objext conftest.$ac_ext 3803 3804fi 3805echo "$as_me:3805: result: $cf_cv_xopen_source" >&5 3806echo "${ECHO_T}$cf_cv_xopen_source" >&6 3807 3808if test "$cf_cv_xopen_source" != no ; then 3809 3810CFLAGS=`echo "$CFLAGS" | \ 3811 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3812 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3813 3814CPPFLAGS=`echo "$CPPFLAGS" | \ 3815 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3816 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3817 3818 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3819 3820cf_fix_cppflags=no 3821cf_new_cflags= 3822cf_new_cppflags= 3823cf_new_extra_cppflags= 3824 3825for cf_add_cflags in $cf_temp_xopen_source 3826do 3827case $cf_fix_cppflags in 3828(no) 3829 case $cf_add_cflags in 3830 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3831 case $cf_add_cflags in 3832 (-D*) 3833 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3834 3835 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3836 && test -z "${cf_tst_cflags}" \ 3837 && cf_fix_cppflags=yes 3838 3839 if test $cf_fix_cppflags = yes ; then 3840 3841 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3842 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3843 3844 continue 3845 elif test "${cf_tst_cflags}" = "\"'" ; then 3846 3847 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3848 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3849 3850 continue 3851 fi 3852 ;; 3853 esac 3854 case "$CPPFLAGS" in 3855 (*$cf_add_cflags) 3856 ;; 3857 (*) 3858 case $cf_add_cflags in 3859 (-D*) 3860 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3861 3862CPPFLAGS=`echo "$CPPFLAGS" | \ 3863 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3864 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3865 3866 ;; 3867 esac 3868 3869 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3870 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3871 3872 ;; 3873 esac 3874 ;; 3875 (*) 3876 3877 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3878 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3879 3880 ;; 3881 esac 3882 ;; 3883(yes) 3884 3885 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3886 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3887 3888 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3889 3890 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3891 && test -z "${cf_tst_cflags}" \ 3892 && cf_fix_cppflags=no 3893 ;; 3894esac 3895done 3896 3897if test -n "$cf_new_cflags" ; then 3898 3899 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3900 CFLAGS="${CFLAGS}$cf_new_cflags" 3901 3902fi 3903 3904if test -n "$cf_new_cppflags" ; then 3905 3906 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3907 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3908 3909fi 3910 3911if test -n "$cf_new_extra_cppflags" ; then 3912 3913 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3914 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3915 3916fi 3917 3918fi 3919 3920cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3921 3922cf_save_CFLAGS="$CFLAGS" 3923cf_save_CPPFLAGS="$CPPFLAGS" 3924 3925cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3926 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3927 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3928 3929cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3930 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3931 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3932 3933echo "$as_me:3933: checking if we should define _POSIX_C_SOURCE" >&5 3934echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3935if test "${cf_cv_posix_c_source+set}" = set; then 3936 echo $ECHO_N "(cached) $ECHO_C" >&6 3937else 3938 3939echo "${as_me:-configure}:3939: testing if the symbol is already defined go no further ..." 1>&5 3940 3941 cat >conftest.$ac_ext <<_ACEOF 3942#line 3942 "configure" 3943#include "confdefs.h" 3944#include <sys/types.h> 3945int 3946main (void) 3947{ 3948 3949#ifndef _POSIX_C_SOURCE 3950make an error 3951#endif 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956rm -f conftest.$ac_objext 3957if { (eval echo "$as_me:3957: \"$ac_compile\"") >&5 3958 (eval $ac_compile) 2>&5 3959 ac_status=$? 3960 echo "$as_me:3960: \$? = $ac_status" >&5 3961 (exit $ac_status); } && 3962 { ac_try='test -s conftest.$ac_objext' 3963 { (eval echo "$as_me:3963: \"$ac_try\"") >&5 3964 (eval $ac_try) 2>&5 3965 ac_status=$? 3966 echo "$as_me:3966: \$? = $ac_status" >&5 3967 (exit $ac_status); }; }; then 3968 cf_cv_posix_c_source=no 3969else 3970 echo "$as_me: failed program was:" >&5 3971cat conftest.$ac_ext >&5 3972cf_want_posix_source=no 3973 case .$cf_POSIX_C_SOURCE in 3974 (.[12]??*) 3975 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3976 ;; 3977 (.2) 3978 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3979 cf_want_posix_source=yes 3980 ;; 3981 (.*) 3982 cf_want_posix_source=yes 3983 ;; 3984 esac 3985 if test "$cf_want_posix_source" = yes ; then 3986 cat >conftest.$ac_ext <<_ACEOF 3987#line 3987 "configure" 3988#include "confdefs.h" 3989#include <sys/types.h> 3990int 3991main (void) 3992{ 3993 3994#ifdef _POSIX_SOURCE 3995make an error 3996#endif 3997 ; 3998 return 0; 3999} 4000_ACEOF 4001rm -f conftest.$ac_objext 4002if { (eval echo "$as_me:4002: \"$ac_compile\"") >&5 4003 (eval $ac_compile) 2>&5 4004 ac_status=$? 4005 echo "$as_me:4005: \$? = $ac_status" >&5 4006 (exit $ac_status); } && 4007 { ac_try='test -s conftest.$ac_objext' 4008 { (eval echo "$as_me:4008: \"$ac_try\"") >&5 4009 (eval $ac_try) 2>&5 4010 ac_status=$? 4011 echo "$as_me:4011: \$? = $ac_status" >&5 4012 (exit $ac_status); }; }; then 4013 : 4014else 4015 echo "$as_me: failed program was:" >&5 4016cat conftest.$ac_ext >&5 4017cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4018fi 4019rm -f conftest.$ac_objext conftest.$ac_ext 4020 fi 4021 4022echo "${as_me:-configure}:4022: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4023 4024 CFLAGS="$cf_trim_CFLAGS" 4025 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 4026 4027echo "${as_me:-configure}:4027: testing if the second compile does not leave our definition intact error ..." 1>&5 4028 4029 cat >conftest.$ac_ext <<_ACEOF 4030#line 4030 "configure" 4031#include "confdefs.h" 4032#include <sys/types.h> 4033int 4034main (void) 4035{ 4036 4037#ifndef _POSIX_C_SOURCE 4038make an error 4039#endif 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044rm -f conftest.$ac_objext 4045if { (eval echo "$as_me:4045: \"$ac_compile\"") >&5 4046 (eval $ac_compile) 2>&5 4047 ac_status=$? 4048 echo "$as_me:4048: \$? = $ac_status" >&5 4049 (exit $ac_status); } && 4050 { ac_try='test -s conftest.$ac_objext' 4051 { (eval echo "$as_me:4051: \"$ac_try\"") >&5 4052 (eval $ac_try) 2>&5 4053 ac_status=$? 4054 echo "$as_me:4054: \$? = $ac_status" >&5 4055 (exit $ac_status); }; }; then 4056 : 4057else 4058 echo "$as_me: failed program was:" >&5 4059cat conftest.$ac_ext >&5 4060cf_cv_posix_c_source=no 4061fi 4062rm -f conftest.$ac_objext conftest.$ac_ext 4063 CFLAGS="$cf_save_CFLAGS" 4064 CPPFLAGS="$cf_save_CPPFLAGS" 4065 4066fi 4067rm -f conftest.$ac_objext conftest.$ac_ext 4068 4069fi 4070echo "$as_me:4070: result: $cf_cv_posix_c_source" >&5 4071echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4072 4073if test "$cf_cv_posix_c_source" != no ; then 4074 CFLAGS="$cf_trim_CFLAGS" 4075 CPPFLAGS="$cf_trim_CPPFLAGS" 4076 4077cf_fix_cppflags=no 4078cf_new_cflags= 4079cf_new_cppflags= 4080cf_new_extra_cppflags= 4081 4082for cf_add_cflags in $cf_cv_posix_c_source 4083do 4084case $cf_fix_cppflags in 4085(no) 4086 case $cf_add_cflags in 4087 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4088 case $cf_add_cflags in 4089 (-D*) 4090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4091 4092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4093 && test -z "${cf_tst_cflags}" \ 4094 && cf_fix_cppflags=yes 4095 4096 if test $cf_fix_cppflags = yes ; then 4097 4098 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4099 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4100 4101 continue 4102 elif test "${cf_tst_cflags}" = "\"'" ; then 4103 4104 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4105 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4106 4107 continue 4108 fi 4109 ;; 4110 esac 4111 case "$CPPFLAGS" in 4112 (*$cf_add_cflags) 4113 ;; 4114 (*) 4115 case $cf_add_cflags in 4116 (-D*) 4117 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4118 4119CPPFLAGS=`echo "$CPPFLAGS" | \ 4120 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4121 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4122 4123 ;; 4124 esac 4125 4126 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4127 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4128 4129 ;; 4130 esac 4131 ;; 4132 (*) 4133 4134 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4135 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4136 4137 ;; 4138 esac 4139 ;; 4140(yes) 4141 4142 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4143 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4144 4145 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4146 4147 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4148 && test -z "${cf_tst_cflags}" \ 4149 && cf_fix_cppflags=no 4150 ;; 4151esac 4152done 4153 4154if test -n "$cf_new_cflags" ; then 4155 4156 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4157 CFLAGS="${CFLAGS}$cf_new_cflags" 4158 4159fi 4160 4161if test -n "$cf_new_cppflags" ; then 4162 4163 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4164 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4165 4166fi 4167 4168if test -n "$cf_new_extra_cppflags" ; then 4169 4170 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4171 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4172 4173fi 4174 4175fi 4176 4177 ;; 4178esac 4179 4180if test -n "$cf_xopen_source" ; then 4181 4182cf_fix_cppflags=no 4183cf_new_cflags= 4184cf_new_cppflags= 4185cf_new_extra_cppflags= 4186 4187for cf_add_cflags in $cf_xopen_source 4188do 4189case $cf_fix_cppflags in 4190(no) 4191 case $cf_add_cflags in 4192 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4193 case $cf_add_cflags in 4194 (-D*) 4195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4196 4197 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4198 && test -z "${cf_tst_cflags}" \ 4199 && cf_fix_cppflags=yes 4200 4201 if test $cf_fix_cppflags = yes ; then 4202 4203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4205 4206 continue 4207 elif test "${cf_tst_cflags}" = "\"'" ; then 4208 4209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4211 4212 continue 4213 fi 4214 ;; 4215 esac 4216 case "$CPPFLAGS" in 4217 (*$cf_add_cflags) 4218 ;; 4219 (*) 4220 case $cf_add_cflags in 4221 (-D*) 4222 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4223 4224CPPFLAGS=`echo "$CPPFLAGS" | \ 4225 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4226 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4227 4228 ;; 4229 esac 4230 4231 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4232 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4233 4234 ;; 4235 esac 4236 ;; 4237 (*) 4238 4239 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4240 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4241 4242 ;; 4243 esac 4244 ;; 4245(yes) 4246 4247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4249 4250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4251 4252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4253 && test -z "${cf_tst_cflags}" \ 4254 && cf_fix_cppflags=no 4255 ;; 4256esac 4257done 4258 4259if test -n "$cf_new_cflags" ; then 4260 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 4261 4262echo "${as_me:-configure}:4262: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 4263 4264 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4265 CFLAGS="${CFLAGS}$cf_new_cflags" 4266 4267fi 4268 4269if test -n "$cf_new_cppflags" ; then 4270 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 4271 4272echo "${as_me:-configure}:4272: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 4273 4274 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4275 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4276 4277fi 4278 4279if test -n "$cf_new_extra_cppflags" ; then 4280 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 4281 4282echo "${as_me:-configure}:4282: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 4283 4284 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4285 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4286 4287fi 4288 4289fi 4290 4291if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 4292 echo "$as_me:4292: checking if _XOPEN_SOURCE really is set" >&5 4293echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 4294 cat >conftest.$ac_ext <<_ACEOF 4295#line 4295 "configure" 4296#include "confdefs.h" 4297#include <stdlib.h> 4298int 4299main (void) 4300{ 4301 4302#ifndef _XOPEN_SOURCE 4303make an error 4304#endif 4305 ; 4306 return 0; 4307} 4308_ACEOF 4309rm -f conftest.$ac_objext 4310if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5 4311 (eval $ac_compile) 2>&5 4312 ac_status=$? 4313 echo "$as_me:4313: \$? = $ac_status" >&5 4314 (exit $ac_status); } && 4315 { ac_try='test -s conftest.$ac_objext' 4316 { (eval echo "$as_me:4316: \"$ac_try\"") >&5 4317 (eval $ac_try) 2>&5 4318 ac_status=$? 4319 echo "$as_me:4319: \$? = $ac_status" >&5 4320 (exit $ac_status); }; }; then 4321 cf_XOPEN_SOURCE_set=yes 4322else 4323 echo "$as_me: failed program was:" >&5 4324cat conftest.$ac_ext >&5 4325cf_XOPEN_SOURCE_set=no 4326fi 4327rm -f conftest.$ac_objext conftest.$ac_ext 4328 echo "$as_me:4328: result: $cf_XOPEN_SOURCE_set" >&5 4329echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 4330 if test $cf_XOPEN_SOURCE_set = yes 4331 then 4332 cat >conftest.$ac_ext <<_ACEOF 4333#line 4333 "configure" 4334#include "confdefs.h" 4335#include <stdlib.h> 4336int 4337main (void) 4338{ 4339 4340#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4341make an error 4342#endif 4343 ; 4344 return 0; 4345} 4346_ACEOF 4347rm -f conftest.$ac_objext 4348if { (eval echo "$as_me:4348: \"$ac_compile\"") >&5 4349 (eval $ac_compile) 2>&5 4350 ac_status=$? 4351 echo "$as_me:4351: \$? = $ac_status" >&5 4352 (exit $ac_status); } && 4353 { ac_try='test -s conftest.$ac_objext' 4354 { (eval echo "$as_me:4354: \"$ac_try\"") >&5 4355 (eval $ac_try) 2>&5 4356 ac_status=$? 4357 echo "$as_me:4357: \$? = $ac_status" >&5 4358 (exit $ac_status); }; }; then 4359 cf_XOPEN_SOURCE_set_ok=yes 4360else 4361 echo "$as_me: failed program was:" >&5 4362cat conftest.$ac_ext >&5 4363cf_XOPEN_SOURCE_set_ok=no 4364fi 4365rm -f conftest.$ac_objext conftest.$ac_ext 4366 if test $cf_XOPEN_SOURCE_set_ok = no 4367 then 4368 { echo "$as_me:4368: WARNING: _XOPEN_SOURCE is lower than requested" >&5 4369echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 4370 fi 4371 else 4372 4373echo "$as_me:4373: checking if we should define _XOPEN_SOURCE" >&5 4374echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4375if test "${cf_cv_xopen_source+set}" = set; then 4376 echo $ECHO_N "(cached) $ECHO_C" >&6 4377else 4378 4379 cat >conftest.$ac_ext <<_ACEOF 4380#line 4380 "configure" 4381#include "confdefs.h" 4382 4383#include <stdlib.h> 4384#include <string.h> 4385#include <sys/types.h> 4386 4387int 4388main (void) 4389{ 4390 4391#ifndef _XOPEN_SOURCE 4392make an error 4393#endif 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398rm -f conftest.$ac_objext 4399if { (eval echo "$as_me:4399: \"$ac_compile\"") >&5 4400 (eval $ac_compile) 2>&5 4401 ac_status=$? 4402 echo "$as_me:4402: \$? = $ac_status" >&5 4403 (exit $ac_status); } && 4404 { ac_try='test -s conftest.$ac_objext' 4405 { (eval echo "$as_me:4405: \"$ac_try\"") >&5 4406 (eval $ac_try) 2>&5 4407 ac_status=$? 4408 echo "$as_me:4408: \$? = $ac_status" >&5 4409 (exit $ac_status); }; }; then 4410 cf_cv_xopen_source=no 4411else 4412 echo "$as_me: failed program was:" >&5 4413cat conftest.$ac_ext >&5 4414cf_save="$CPPFLAGS" 4415 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4416 cat >conftest.$ac_ext <<_ACEOF 4417#line 4417 "configure" 4418#include "confdefs.h" 4419 4420#include <stdlib.h> 4421#include <string.h> 4422#include <sys/types.h> 4423 4424int 4425main (void) 4426{ 4427 4428#ifdef _XOPEN_SOURCE 4429make an error 4430#endif 4431 ; 4432 return 0; 4433} 4434_ACEOF 4435rm -f conftest.$ac_objext 4436if { (eval echo "$as_me:4436: \"$ac_compile\"") >&5 4437 (eval $ac_compile) 2>&5 4438 ac_status=$? 4439 echo "$as_me:4439: \$? = $ac_status" >&5 4440 (exit $ac_status); } && 4441 { ac_try='test -s conftest.$ac_objext' 4442 { (eval echo "$as_me:4442: \"$ac_try\"") >&5 4443 (eval $ac_try) 2>&5 4444 ac_status=$? 4445 echo "$as_me:4445: \$? = $ac_status" >&5 4446 (exit $ac_status); }; }; then 4447 cf_cv_xopen_source=no 4448else 4449 echo "$as_me: failed program was:" >&5 4450cat conftest.$ac_ext >&5 4451cf_cv_xopen_source=$cf_XOPEN_SOURCE 4452fi 4453rm -f conftest.$ac_objext conftest.$ac_ext 4454 CPPFLAGS="$cf_save" 4455 4456fi 4457rm -f conftest.$ac_objext conftest.$ac_ext 4458 4459fi 4460echo "$as_me:4460: result: $cf_cv_xopen_source" >&5 4461echo "${ECHO_T}$cf_cv_xopen_source" >&6 4462 4463if test "$cf_cv_xopen_source" != no ; then 4464 4465CFLAGS=`echo "$CFLAGS" | \ 4466 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4467 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4468 4469CPPFLAGS=`echo "$CPPFLAGS" | \ 4470 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4471 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4472 4473 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4474 4475cf_fix_cppflags=no 4476cf_new_cflags= 4477cf_new_cppflags= 4478cf_new_extra_cppflags= 4479 4480for cf_add_cflags in $cf_temp_xopen_source 4481do 4482case $cf_fix_cppflags in 4483(no) 4484 case $cf_add_cflags in 4485 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4486 case $cf_add_cflags in 4487 (-D*) 4488 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4489 4490 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4491 && test -z "${cf_tst_cflags}" \ 4492 && cf_fix_cppflags=yes 4493 4494 if test $cf_fix_cppflags = yes ; then 4495 4496 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4497 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4498 4499 continue 4500 elif test "${cf_tst_cflags}" = "\"'" ; then 4501 4502 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4503 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4504 4505 continue 4506 fi 4507 ;; 4508 esac 4509 case "$CPPFLAGS" in 4510 (*$cf_add_cflags) 4511 ;; 4512 (*) 4513 case $cf_add_cflags in 4514 (-D*) 4515 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4516 4517CPPFLAGS=`echo "$CPPFLAGS" | \ 4518 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4519 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4520 4521 ;; 4522 esac 4523 4524 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4525 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4526 4527 ;; 4528 esac 4529 ;; 4530 (*) 4531 4532 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4533 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4534 4535 ;; 4536 esac 4537 ;; 4538(yes) 4539 4540 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4541 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4542 4543 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4544 4545 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4546 && test -z "${cf_tst_cflags}" \ 4547 && cf_fix_cppflags=no 4548 ;; 4549esac 4550done 4551 4552if test -n "$cf_new_cflags" ; then 4553 4554 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4555 CFLAGS="${CFLAGS}$cf_new_cflags" 4556 4557fi 4558 4559if test -n "$cf_new_cppflags" ; then 4560 4561 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4562 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4563 4564fi 4565 4566if test -n "$cf_new_extra_cppflags" ; then 4567 4568 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4569 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4570 4571fi 4572 4573fi 4574 4575 fi 4576fi 4577 4578echo "$as_me:4578: checking for specific curses-directory" >&5 4579echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6 4580 4581# Check whether --with-curses-dir or --without-curses-dir was given. 4582if test "${with_curses_dir+set}" = set; then 4583 withval="$with_curses_dir" 4584 cf_cv_curses_dir=$withval 4585else 4586 cf_cv_curses_dir=no 4587fi; 4588echo "$as_me:4588: result: $cf_cv_curses_dir" >&5 4589echo "${ECHO_T}$cf_cv_curses_dir" >&6 4590 4591if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 4592then 4593 4594if test "x$prefix" != xNONE; then 4595 cf_path_syntax="$prefix" 4596else 4597 cf_path_syntax="$ac_default_prefix" 4598fi 4599 4600case ".$withval" in 4601(.\$\(*\)*|.\'*\'*) 4602 ;; 4603(..|./*|.\\*) 4604 ;; 4605(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4606 ;; 4607(.\${*prefix}*|.\${*dir}*) 4608 eval withval="$withval" 4609 case ".$withval" in 4610 (.NONE/*) 4611 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 4612 ;; 4613 esac 4614 ;; 4615(.no|.NONE/*) 4616 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 4617 ;; 4618(*) 4619 { { echo "$as_me:4619: error: expected a pathname, not \"$withval\"" >&5 4620echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 4621 { (exit 1); exit 1; }; } 4622 ;; 4623esac 4624 4625 if test -d "$cf_cv_curses_dir" 4626 then 4627 4628if test -n "$cf_cv_curses_dir/include" ; then 4629 for cf_add_incdir in $cf_cv_curses_dir/include 4630 do 4631 while test $cf_add_incdir != /usr/include 4632 do 4633 if test -d $cf_add_incdir 4634 then 4635 cf_have_incdir=no 4636 if test -n "$CFLAGS$CPPFLAGS" ; then 4637 # a loop is needed to ensure we can add subdirs of existing dirs 4638 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 4639 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 4640 cf_have_incdir=yes; break 4641 fi 4642 done 4643 fi 4644 4645 if test "$cf_have_incdir" = no ; then 4646 if test "$cf_add_incdir" = /usr/local/include ; then 4647 if test "$GCC" = yes 4648 then 4649 cf_save_CPPFLAGS=$CPPFLAGS 4650 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 4651 cat >conftest.$ac_ext <<_ACEOF 4652#line 4652 "configure" 4653#include "confdefs.h" 4654#include <stdio.h> 4655int 4656main (void) 4657{ 4658printf("Hello") 4659 ; 4660 return 0; 4661} 4662_ACEOF 4663rm -f conftest.$ac_objext 4664if { (eval echo "$as_me:4664: \"$ac_compile\"") >&5 4665 (eval $ac_compile) 2>&5 4666 ac_status=$? 4667 echo "$as_me:4667: \$? = $ac_status" >&5 4668 (exit $ac_status); } && 4669 { ac_try='test -s conftest.$ac_objext' 4670 { (eval echo "$as_me:4670: \"$ac_try\"") >&5 4671 (eval $ac_try) 2>&5 4672 ac_status=$? 4673 echo "$as_me:4673: \$? = $ac_status" >&5 4674 (exit $ac_status); }; }; then 4675 : 4676else 4677 echo "$as_me: failed program was:" >&5 4678cat conftest.$ac_ext >&5 4679cf_have_incdir=yes 4680fi 4681rm -f conftest.$ac_objext conftest.$ac_ext 4682 CPPFLAGS=$cf_save_CPPFLAGS 4683 fi 4684 fi 4685 fi 4686 4687 if test "$cf_have_incdir" = no ; then 4688 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 4689 4690echo "${as_me:-configure}:4690: testing adding $cf_add_incdir to include-path ..." 1>&5 4691 4692 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 4693 4694 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 4695 test "$cf_top_incdir" = "$cf_add_incdir" && break 4696 cf_add_incdir="$cf_top_incdir" 4697 else 4698 break 4699 fi 4700 else 4701 break 4702 fi 4703 done 4704 done 4705fi 4706 4707if test -n "$cf_cv_curses_dir/lib" ; then 4708 for cf_add_libdir in $cf_cv_curses_dir/lib 4709 do 4710 if test $cf_add_libdir = /usr/lib ; then 4711 : 4712 elif test -d $cf_add_libdir 4713 then 4714 cf_have_libdir=no 4715 if test -n "$LDFLAGS$LIBS" ; then 4716 # a loop is needed to ensure we can add subdirs of existing dirs 4717 for cf_test_libdir in $LDFLAGS $LIBS ; do 4718 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 4719 cf_have_libdir=yes; break 4720 fi 4721 done 4722 fi 4723 if test "$cf_have_libdir" = no ; then 4724 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 4725 4726echo "${as_me:-configure}:4726: testing adding $cf_add_libdir to library-path ..." 1>&5 4727 4728 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 4729 fi 4730 fi 4731 done 4732fi 4733 4734 fi 4735fi 4736 4737echo "$as_me:4737: checking for specific curses-directory" >&5 4738echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6 4739 4740# Check whether --with-curses-dir or --without-curses-dir was given. 4741if test "${with_curses_dir+set}" = set; then 4742 withval="$with_curses_dir" 4743 cf_cv_curses_dir=$withval 4744else 4745 cf_cv_curses_dir=no 4746fi; 4747echo "$as_me:4747: result: $cf_cv_curses_dir" >&5 4748echo "${ECHO_T}$cf_cv_curses_dir" >&6 4749 4750if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 4751then 4752 4753if test "x$prefix" != xNONE; then 4754 cf_path_syntax="$prefix" 4755else 4756 cf_path_syntax="$ac_default_prefix" 4757fi 4758 4759case ".$withval" in 4760(.\$\(*\)*|.\'*\'*) 4761 ;; 4762(..|./*|.\\*) 4763 ;; 4764(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4765 ;; 4766(.\${*prefix}*|.\${*dir}*) 4767 eval withval="$withval" 4768 case ".$withval" in 4769 (.NONE/*) 4770 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 4771 ;; 4772 esac 4773 ;; 4774(.no|.NONE/*) 4775 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 4776 ;; 4777(*) 4778 { { echo "$as_me:4778: error: expected a pathname, not \"$withval\"" >&5 4779echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 4780 { (exit 1); exit 1; }; } 4781 ;; 4782esac 4783 4784 if test -d "$cf_cv_curses_dir" 4785 then 4786 4787if test -n "$cf_cv_curses_dir/include" ; then 4788 for cf_add_incdir in $cf_cv_curses_dir/include 4789 do 4790 while test $cf_add_incdir != /usr/include 4791 do 4792 if test -d $cf_add_incdir 4793 then 4794 cf_have_incdir=no 4795 if test -n "$CFLAGS$CPPFLAGS" ; then 4796 # a loop is needed to ensure we can add subdirs of existing dirs 4797 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 4798 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 4799 cf_have_incdir=yes; break 4800 fi 4801 done 4802 fi 4803 4804 if test "$cf_have_incdir" = no ; then 4805 if test "$cf_add_incdir" = /usr/local/include ; then 4806 if test "$GCC" = yes 4807 then 4808 cf_save_CPPFLAGS=$CPPFLAGS 4809 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 4810 cat >conftest.$ac_ext <<_ACEOF 4811#line 4811 "configure" 4812#include "confdefs.h" 4813#include <stdio.h> 4814int 4815main (void) 4816{ 4817printf("Hello") 4818 ; 4819 return 0; 4820} 4821_ACEOF 4822rm -f conftest.$ac_objext 4823if { (eval echo "$as_me:4823: \"$ac_compile\"") >&5 4824 (eval $ac_compile) 2>&5 4825 ac_status=$? 4826 echo "$as_me:4826: \$? = $ac_status" >&5 4827 (exit $ac_status); } && 4828 { ac_try='test -s conftest.$ac_objext' 4829 { (eval echo "$as_me:4829: \"$ac_try\"") >&5 4830 (eval $ac_try) 2>&5 4831 ac_status=$? 4832 echo "$as_me:4832: \$? = $ac_status" >&5 4833 (exit $ac_status); }; }; then 4834 : 4835else 4836 echo "$as_me: failed program was:" >&5 4837cat conftest.$ac_ext >&5 4838cf_have_incdir=yes 4839fi 4840rm -f conftest.$ac_objext conftest.$ac_ext 4841 CPPFLAGS=$cf_save_CPPFLAGS 4842 fi 4843 fi 4844 fi 4845 4846 if test "$cf_have_incdir" = no ; then 4847 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 4848 4849echo "${as_me:-configure}:4849: testing adding $cf_add_incdir to include-path ..." 1>&5 4850 4851 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 4852 4853 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 4854 test "$cf_top_incdir" = "$cf_add_incdir" && break 4855 cf_add_incdir="$cf_top_incdir" 4856 else 4857 break 4858 fi 4859 else 4860 break 4861 fi 4862 done 4863 done 4864fi 4865 4866if test -n "$cf_cv_curses_dir/lib" ; then 4867 for cf_add_libdir in $cf_cv_curses_dir/lib 4868 do 4869 if test $cf_add_libdir = /usr/lib ; then 4870 : 4871 elif test -d $cf_add_libdir 4872 then 4873 cf_have_libdir=no 4874 if test -n "$LDFLAGS$LIBS" ; then 4875 # a loop is needed to ensure we can add subdirs of existing dirs 4876 for cf_test_libdir in $LDFLAGS $LIBS ; do 4877 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 4878 cf_have_libdir=yes; break 4879 fi 4880 done 4881 fi 4882 if test "$cf_have_libdir" = no ; then 4883 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 4884 4885echo "${as_me:-configure}:4885: testing adding $cf_add_libdir to library-path ..." 1>&5 4886 4887 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 4888 fi 4889 fi 4890 done 4891fi 4892 4893 fi 4894fi 4895 4896cf_cv_screen=curses 4897 4898echo "$as_me:4898: checking for specified curses library type" >&5 4899echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6 4900 4901# Check whether --with-screen or --without-screen was given. 4902if test "${with_screen+set}" = set; then 4903 withval="$with_screen" 4904 cf_cv_screen=$withval 4905else 4906 4907# Check whether --with-ncursesw or --without-ncursesw was given. 4908if test "${with_ncursesw+set}" = set; then 4909 withval="$with_ncursesw" 4910 cf_cv_screen=ncursesw 4911else 4912 4913# Check whether --with-ncurses or --without-ncurses was given. 4914if test "${with_ncurses+set}" = set; then 4915 withval="$with_ncurses" 4916 cf_cv_screen=ncurses 4917else 4918 4919# Check whether --with-pdcurses or --without-pdcurses was given. 4920if test "${with_pdcurses+set}" = set; then 4921 withval="$with_pdcurses" 4922 cf_cv_screen=pdcurses 4923else 4924 4925# Check whether --with-curses-colr or --without-curses-colr was given. 4926if test "${with_curses_colr+set}" = set; then 4927 withval="$with_curses_colr" 4928 cf_cv_screen=curses_colr 4929else 4930 4931# Check whether --with-curses-5lib or --without-curses-5lib was given. 4932if test "${with_curses_5lib+set}" = set; then 4933 withval="$with_curses_5lib" 4934 cf_cv_screen=curses_5lib 4935fi; 4936fi; 4937fi; 4938fi; 4939fi; 4940fi; 4941 4942echo "$as_me:4942: result: $cf_cv_screen" >&5 4943echo "${ECHO_T}$cf_cv_screen" >&6 4944 4945case $cf_cv_screen in 4946(curses|curses_*) 4947 4948echo "$as_me:4948: checking for extra include directories" >&5 4949echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6 4950if test "${cf_cv_curses_incdir+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 4954cf_cv_curses_incdir=no 4955case $host_os in 4956(hpux10.*) 4957 if test "x$cf_cv_screen" = "xcurses_colr" 4958 then 4959 test -d /usr/include/curses_colr && \ 4960 cf_cv_curses_incdir="-I/usr/include/curses_colr" 4961 fi 4962 ;; 4963(sunos3*|sunos4*) 4964 if test "x$cf_cv_screen" = "xcurses_5lib" 4965 then 4966 test -d /usr/5lib && \ 4967 test -d /usr/5include && \ 4968 cf_cv_curses_incdir="-I/usr/5include" 4969 fi 4970 ;; 4971esac 4972 4973fi 4974echo "$as_me:4974: result: $cf_cv_curses_incdir" >&5 4975echo "${ECHO_T}$cf_cv_curses_incdir" >&6 4976test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir" 4977 4978echo "$as_me:4978: checking if we have identified curses headers" >&5 4979echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 4980if test "${cf_cv_ncurses_header+set}" = set; then 4981 echo $ECHO_N "(cached) $ECHO_C" >&6 4982else 4983 4984cf_cv_ncurses_header=none 4985for cf_header in \ 4986 ncurses.h \ 4987 curses.h ncurses/ncurses.h ncurses/curses.h 4988do 4989cat >conftest.$ac_ext <<_ACEOF 4990#line 4990 "configure" 4991#include "confdefs.h" 4992#include <${cf_header}> 4993int 4994main (void) 4995{ 4996initscr(); tgoto("?", 0,0) 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001rm -f conftest.$ac_objext 5002if { (eval echo "$as_me:5002: \"$ac_compile\"") >&5 5003 (eval $ac_compile) 2>&5 5004 ac_status=$? 5005 echo "$as_me:5005: \$? = $ac_status" >&5 5006 (exit $ac_status); } && 5007 { ac_try='test -s conftest.$ac_objext' 5008 { (eval echo "$as_me:5008: \"$ac_try\"") >&5 5009 (eval $ac_try) 2>&5 5010 ac_status=$? 5011 echo "$as_me:5011: \$? = $ac_status" >&5 5012 (exit $ac_status); }; }; then 5013 cf_cv_ncurses_header=$cf_header; break 5014else 5015 echo "$as_me: failed program was:" >&5 5016cat conftest.$ac_ext >&5 5017fi 5018rm -f conftest.$ac_objext conftest.$ac_ext 5019done 5020 5021fi 5022echo "$as_me:5022: result: $cf_cv_ncurses_header" >&5 5023echo "${ECHO_T}$cf_cv_ncurses_header" >&6 5024 5025if test "$cf_cv_ncurses_header" = none ; then 5026 { { echo "$as_me:5026: error: No curses header-files found" >&5 5027echo "$as_me: error: No curses header-files found" >&2;} 5028 { (exit 1); exit 1; }; } 5029fi 5030 5031# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 5032 5033for ac_header in $cf_cv_ncurses_header 5034do 5035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5036echo "$as_me:5036: checking for $ac_header" >&5 5037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5038if eval "test \"\${$as_ac_Header+set}\" = set"; then 5039 echo $ECHO_N "(cached) $ECHO_C" >&6 5040else 5041 cat >conftest.$ac_ext <<_ACEOF 5042#line 5042 "configure" 5043#include "confdefs.h" 5044#include <$ac_header> 5045_ACEOF 5046if { (eval echo "$as_me:5046: \"$ac_cpp conftest.$ac_ext\"") >&5 5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5048 ac_status=$? 5049 egrep -v '^ *\+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:5052: \$? = $ac_status" >&5 5053 (exit $ac_status); } >/dev/null; then 5054 if test -s conftest.err; then 5055 ac_cpp_err=$ac_c_preproc_warn_flag 5056 else 5057 ac_cpp_err= 5058 fi 5059else 5060 ac_cpp_err=yes 5061fi 5062if test -z "$ac_cpp_err"; then 5063 eval "$as_ac_Header=yes" 5064else 5065 echo "$as_me: failed program was:" >&5 5066 cat conftest.$ac_ext >&5 5067 eval "$as_ac_Header=no" 5068fi 5069rm -f conftest.err conftest.$ac_ext 5070fi 5071echo "$as_me:5071: result: `eval echo '${'$as_ac_Header'}'`" >&5 5072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5073if test `eval echo '${'$as_ac_Header'}'` = yes; then 5074 cat >>confdefs.h <<EOF 5075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5076EOF 5077 5078fi 5079done 5080 5081echo "$as_me:5081: checking for terminfo header" >&5 5082echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 5083if test "${cf_cv_term_header+set}" = set; then 5084 echo $ECHO_N "(cached) $ECHO_C" >&6 5085else 5086 5087case ${cf_cv_ncurses_header} in 5088(*/ncurses.h|*/ncursesw.h) 5089 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 5090 ;; 5091(*) 5092 cf_term_header=term.h 5093 ;; 5094esac 5095 5096for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 5097do 5098cat >conftest.$ac_ext <<_ACEOF 5099#line 5099 "configure" 5100#include "confdefs.h" 5101#include <stdio.h> 5102#include <${cf_cv_ncurses_header:-curses.h}> 5103#include <$cf_test> 5104 5105int 5106main (void) 5107{ 5108int x = auto_left_margin 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113rm -f conftest.$ac_objext 5114if { (eval echo "$as_me:5114: \"$ac_compile\"") >&5 5115 (eval $ac_compile) 2>&5 5116 ac_status=$? 5117 echo "$as_me:5117: \$? = $ac_status" >&5 5118 (exit $ac_status); } && 5119 { ac_try='test -s conftest.$ac_objext' 5120 { (eval echo "$as_me:5120: \"$ac_try\"") >&5 5121 (eval $ac_try) 2>&5 5122 ac_status=$? 5123 echo "$as_me:5123: \$? = $ac_status" >&5 5124 (exit $ac_status); }; }; then 5125 5126 cf_cv_term_header="$cf_test" 5127else 5128 echo "$as_me: failed program was:" >&5 5129cat conftest.$ac_ext >&5 5130 5131 cf_cv_term_header=unknown 5132 5133fi 5134rm -f conftest.$ac_objext conftest.$ac_ext 5135 test "$cf_cv_term_header" != unknown && break 5136done 5137 5138fi 5139echo "$as_me:5139: result: $cf_cv_term_header" >&5 5140echo "${ECHO_T}$cf_cv_term_header" >&6 5141 5142# Set definitions to allow ifdef'ing to accommodate subdirectories 5143 5144case $cf_cv_term_header in 5145(*term.h) 5146 5147cat >>confdefs.h <<\EOF 5148#define HAVE_TERM_H 1 5149EOF 5150 5151 ;; 5152esac 5153 5154case $cf_cv_term_header in 5155(ncurses/term.h) 5156 5157cat >>confdefs.h <<\EOF 5158#define HAVE_NCURSES_TERM_H 1 5159EOF 5160 5161 ;; 5162(ncursesw/term.h) 5163 5164cat >>confdefs.h <<\EOF 5165#define HAVE_NCURSESW_TERM_H 1 5166EOF 5167 5168 ;; 5169esac 5170 5171echo "$as_me:5171: checking for ncurses version" >&5 5172echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 5173if test "${cf_cv_ncurses_version+set}" = set; then 5174 echo $ECHO_N "(cached) $ECHO_C" >&6 5175else 5176 5177 cf_cv_ncurses_version=no 5178 cf_tempfile=out$$ 5179 rm -f $cf_tempfile 5180 if test "$cross_compiling" = yes; then 5181 5182 # This will not work if the preprocessor splits the line after the 5183 # Autoconf token. The 'unproto' program does that. 5184 cat > conftest.$ac_ext <<EOF 5185#include <${cf_cv_ncurses_header:-curses.h}> 5186#undef Autoconf 5187#ifdef NCURSES_VERSION 5188Autoconf NCURSES_VERSION 5189#else 5190#ifdef __NCURSES_H 5191Autoconf "old" 5192#endif 5193; 5194#endif 5195EOF 5196 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 5197 { (eval echo "$as_me:5197: \"$cf_try\"") >&5 5198 (eval $cf_try) 2>&5 5199 ac_status=$? 5200 echo "$as_me:5200: \$? = $ac_status" >&5 5201 (exit $ac_status); } 5202 if test -f conftest.out ; then 5203 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 5204 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 5205 rm -f conftest.out 5206 fi 5207 5208else 5209 cat >conftest.$ac_ext <<_ACEOF 5210#line 5210 "configure" 5211#include "confdefs.h" 5212 5213#include <${cf_cv_ncurses_header:-curses.h}> 5214#include <stdio.h> 5215int main(void) 5216{ 5217 FILE *fp = fopen("$cf_tempfile", "w"); 5218#ifdef NCURSES_VERSION 5219# ifdef NCURSES_VERSION_PATCH 5220 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 5221# else 5222 fprintf(fp, "%s\n", NCURSES_VERSION); 5223# endif 5224#else 5225# ifdef __NCURSES_H 5226 fprintf(fp, "old\n"); 5227# else 5228 make an error 5229# endif 5230#endif 5231 ${cf_cv_main_return:-return}(0); 5232} 5233_ACEOF 5234rm -f conftest$ac_exeext 5235if { (eval echo "$as_me:5235: \"$ac_link\"") >&5 5236 (eval $ac_link) 2>&5 5237 ac_status=$? 5238 echo "$as_me:5238: \$? = $ac_status" >&5 5239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5240 { (eval echo "$as_me:5240: \"$ac_try\"") >&5 5241 (eval $ac_try) 2>&5 5242 ac_status=$? 5243 echo "$as_me:5243: \$? = $ac_status" >&5 5244 (exit $ac_status); }; }; then 5245 5246 cf_cv_ncurses_version=`cat $cf_tempfile` 5247else 5248 echo "$as_me: program exited with status $ac_status" >&5 5249echo "$as_me: failed program was:" >&5 5250cat conftest.$ac_ext >&5 5251fi 5252rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5253fi 5254 rm -f $cf_tempfile 5255 5256fi 5257echo "$as_me:5257: result: $cf_cv_ncurses_version" >&5 5258echo "${ECHO_T}$cf_cv_ncurses_version" >&6 5259test "$cf_cv_ncurses_version" = no || 5260cat >>confdefs.h <<\EOF 5261#define NCURSES 1 5262EOF 5263 5264echo "$as_me:5264: checking if we have identified curses libraries" >&5 5265echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6 5266cat >conftest.$ac_ext <<_ACEOF 5267#line 5267 "configure" 5268#include "confdefs.h" 5269#include <${cf_cv_ncurses_header:-curses.h}> 5270int 5271main (void) 5272{ 5273initscr(); tgoto("?", 0,0) 5274 ; 5275 return 0; 5276} 5277_ACEOF 5278rm -f conftest.$ac_objext conftest$ac_exeext 5279if { (eval echo "$as_me:5279: \"$ac_link\"") >&5 5280 (eval $ac_link) 2>&5 5281 ac_status=$? 5282 echo "$as_me:5282: \$? = $ac_status" >&5 5283 (exit $ac_status); } && 5284 { ac_try='test -s conftest$ac_exeext' 5285 { (eval echo "$as_me:5285: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:5288: \$? = $ac_status" >&5 5289 (exit $ac_status); }; }; then 5290 cf_result=yes 5291else 5292 echo "$as_me: failed program was:" >&5 5293cat conftest.$ac_ext >&5 5294cf_result=no 5295fi 5296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5297echo "$as_me:5297: result: $cf_result" >&5 5298echo "${ECHO_T}$cf_result" >&6 5299 5300if test "$cf_result" = no ; then 5301case $host_os in 5302(freebsd*) 5303 echo "$as_me:5303: checking for tgoto in -lmytinfo" >&5 5304echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 5305if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 5306 echo $ECHO_N "(cached) $ECHO_C" >&6 5307else 5308 ac_check_lib_save_LIBS=$LIBS 5309LIBS="-lmytinfo $LIBS" 5310cat >conftest.$ac_ext <<_ACEOF 5311#line 5311 "configure" 5312#include "confdefs.h" 5313 5314/* Override any gcc2 internal prototype to avoid an error. */ 5315#ifdef __cplusplus 5316extern "C" 5317#endif 5318/* We use char because int might match the return type of a gcc2 5319 builtin and then its argument prototype would still apply. */ 5320char tgoto (); 5321int 5322main (void) 5323{ 5324tgoto (); 5325 ; 5326 return 0; 5327} 5328_ACEOF 5329rm -f conftest.$ac_objext conftest$ac_exeext 5330if { (eval echo "$as_me:5330: \"$ac_link\"") >&5 5331 (eval $ac_link) 2>&5 5332 ac_status=$? 5333 echo "$as_me:5333: \$? = $ac_status" >&5 5334 (exit $ac_status); } && 5335 { ac_try='test -s conftest$ac_exeext' 5336 { (eval echo "$as_me:5336: \"$ac_try\"") >&5 5337 (eval $ac_try) 2>&5 5338 ac_status=$? 5339 echo "$as_me:5339: \$? = $ac_status" >&5 5340 (exit $ac_status); }; }; then 5341 ac_cv_lib_mytinfo_tgoto=yes 5342else 5343 echo "$as_me: failed program was:" >&5 5344cat conftest.$ac_ext >&5 5345ac_cv_lib_mytinfo_tgoto=no 5346fi 5347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5348LIBS=$ac_check_lib_save_LIBS 5349fi 5350echo "$as_me:5350: result: $ac_cv_lib_mytinfo_tgoto" >&5 5351echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 5352if test $ac_cv_lib_mytinfo_tgoto = yes; then 5353 5354cf_add_libs="-lmytinfo" 5355# Filter out duplicates - this happens with badly-designed ".pc" files... 5356for cf_add_1lib in $LIBS 5357do 5358 for cf_add_2lib in $cf_add_libs 5359 do 5360 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5361 then 5362 cf_add_1lib= 5363 break 5364 fi 5365 done 5366 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5367done 5368LIBS="$cf_add_libs" 5369 5370fi 5371 5372 ;; 5373(hpux10.*) 5374 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr 5375 # next (1998), and xcurses "newer" (2000). There is no header file for 5376 # Hcurses; the subdirectory curses_colr has the headers (curses.h and 5377 # term.h) for cur_colr 5378 if test "x$cf_cv_screen" = "xcurses_colr" 5379 then 5380 echo "$as_me:5380: checking for initscr in -lcur_colr" >&5 5381echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6 5382if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384else 5385 ac_check_lib_save_LIBS=$LIBS 5386LIBS="-lcur_colr $LIBS" 5387cat >conftest.$ac_ext <<_ACEOF 5388#line 5388 "configure" 5389#include "confdefs.h" 5390 5391/* Override any gcc2 internal prototype to avoid an error. */ 5392#ifdef __cplusplus 5393extern "C" 5394#endif 5395/* We use char because int might match the return type of a gcc2 5396 builtin and then its argument prototype would still apply. */ 5397char initscr (); 5398int 5399main (void) 5400{ 5401initscr (); 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406rm -f conftest.$ac_objext conftest$ac_exeext 5407if { (eval echo "$as_me:5407: \"$ac_link\"") >&5 5408 (eval $ac_link) 2>&5 5409 ac_status=$? 5410 echo "$as_me:5410: \$? = $ac_status" >&5 5411 (exit $ac_status); } && 5412 { ac_try='test -s conftest$ac_exeext' 5413 { (eval echo "$as_me:5413: \"$ac_try\"") >&5 5414 (eval $ac_try) 2>&5 5415 ac_status=$? 5416 echo "$as_me:5416: \$? = $ac_status" >&5 5417 (exit $ac_status); }; }; then 5418 ac_cv_lib_cur_colr_initscr=yes 5419else 5420 echo "$as_me: failed program was:" >&5 5421cat conftest.$ac_ext >&5 5422ac_cv_lib_cur_colr_initscr=no 5423fi 5424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5425LIBS=$ac_check_lib_save_LIBS 5426fi 5427echo "$as_me:5427: result: $ac_cv_lib_cur_colr_initscr" >&5 5428echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6 5429if test $ac_cv_lib_cur_colr_initscr = yes; then 5430 5431cf_add_libs="-lcur_colr" 5432# Filter out duplicates - this happens with badly-designed ".pc" files... 5433for cf_add_1lib in $LIBS 5434do 5435 for cf_add_2lib in $cf_add_libs 5436 do 5437 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5438 then 5439 cf_add_1lib= 5440 break 5441 fi 5442 done 5443 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5444done 5445LIBS="$cf_add_libs" 5446 5447 ac_cv_func_initscr=yes 5448 5449else 5450 5451 echo "$as_me:5451: checking for initscr in -lHcurses" >&5 5452echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6 5453if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then 5454 echo $ECHO_N "(cached) $ECHO_C" >&6 5455else 5456 ac_check_lib_save_LIBS=$LIBS 5457LIBS="-lHcurses $LIBS" 5458cat >conftest.$ac_ext <<_ACEOF 5459#line 5459 "configure" 5460#include "confdefs.h" 5461 5462/* Override any gcc2 internal prototype to avoid an error. */ 5463#ifdef __cplusplus 5464extern "C" 5465#endif 5466/* We use char because int might match the return type of a gcc2 5467 builtin and then its argument prototype would still apply. */ 5468char initscr (); 5469int 5470main (void) 5471{ 5472initscr (); 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477rm -f conftest.$ac_objext conftest$ac_exeext 5478if { (eval echo "$as_me:5478: \"$ac_link\"") >&5 5479 (eval $ac_link) 2>&5 5480 ac_status=$? 5481 echo "$as_me:5481: \$? = $ac_status" >&5 5482 (exit $ac_status); } && 5483 { ac_try='test -s conftest$ac_exeext' 5484 { (eval echo "$as_me:5484: \"$ac_try\"") >&5 5485 (eval $ac_try) 2>&5 5486 ac_status=$? 5487 echo "$as_me:5487: \$? = $ac_status" >&5 5488 (exit $ac_status); }; }; then 5489 ac_cv_lib_Hcurses_initscr=yes 5490else 5491 echo "$as_me: failed program was:" >&5 5492cat conftest.$ac_ext >&5 5493ac_cv_lib_Hcurses_initscr=no 5494fi 5495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5496LIBS=$ac_check_lib_save_LIBS 5497fi 5498echo "$as_me:5498: result: $ac_cv_lib_Hcurses_initscr" >&5 5499echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6 5500if test $ac_cv_lib_Hcurses_initscr = yes; then 5501 5502 # HP's header uses __HP_CURSES, but user claims _HP_CURSES. 5503 5504cf_add_libs="-lHcurses" 5505# Filter out duplicates - this happens with badly-designed ".pc" files... 5506for cf_add_1lib in $LIBS 5507do 5508 for cf_add_2lib in $cf_add_libs 5509 do 5510 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5511 then 5512 cf_add_1lib= 5513 break 5514 fi 5515 done 5516 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5517done 5518LIBS="$cf_add_libs" 5519 5520 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES" 5521 ac_cv_func_initscr=yes 5522 5523fi 5524 5525fi 5526 5527 fi 5528 ;; 5529(linux*) 5530 case `arch 2>/dev/null` in 5531 (x86_64) 5532 if test -d /lib64 5533 then 5534 5535if test -n "/lib64" ; then 5536 for cf_add_libdir in /lib64 5537 do 5538 if test $cf_add_libdir = /usr/lib ; then 5539 : 5540 elif test -d $cf_add_libdir 5541 then 5542 cf_have_libdir=no 5543 if test -n "$LDFLAGS$LIBS" ; then 5544 # a loop is needed to ensure we can add subdirs of existing dirs 5545 for cf_test_libdir in $LDFLAGS $LIBS ; do 5546 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5547 cf_have_libdir=yes; break 5548 fi 5549 done 5550 fi 5551 if test "$cf_have_libdir" = no ; then 5552 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5553 5554echo "${as_me:-configure}:5554: testing adding $cf_add_libdir to library-path ..." 1>&5 5555 5556 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5557 fi 5558 fi 5559 done 5560fi 5561 5562 else 5563 5564if test -n "/lib" ; then 5565 for cf_add_libdir in /lib 5566 do 5567 if test $cf_add_libdir = /usr/lib ; then 5568 : 5569 elif test -d $cf_add_libdir 5570 then 5571 cf_have_libdir=no 5572 if test -n "$LDFLAGS$LIBS" ; then 5573 # a loop is needed to ensure we can add subdirs of existing dirs 5574 for cf_test_libdir in $LDFLAGS $LIBS ; do 5575 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5576 cf_have_libdir=yes; break 5577 fi 5578 done 5579 fi 5580 if test "$cf_have_libdir" = no ; then 5581 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5582 5583echo "${as_me:-configure}:5583: testing adding $cf_add_libdir to library-path ..." 1>&5 5584 5585 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5586 fi 5587 fi 5588 done 5589fi 5590 5591 fi 5592 ;; 5593 (*) 5594 5595if test -n "/lib" ; then 5596 for cf_add_libdir in /lib 5597 do 5598 if test $cf_add_libdir = /usr/lib ; then 5599 : 5600 elif test -d $cf_add_libdir 5601 then 5602 cf_have_libdir=no 5603 if test -n "$LDFLAGS$LIBS" ; then 5604 # a loop is needed to ensure we can add subdirs of existing dirs 5605 for cf_test_libdir in $LDFLAGS $LIBS ; do 5606 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5607 cf_have_libdir=yes; break 5608 fi 5609 done 5610 fi 5611 if test "$cf_have_libdir" = no ; then 5612 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5613 5614echo "${as_me:-configure}:5614: testing adding $cf_add_libdir to library-path ..." 1>&5 5615 5616 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5617 fi 5618 fi 5619 done 5620fi 5621 5622 ;; 5623 esac 5624 ;; 5625(sunos3*|sunos4*) 5626 if test "x$cf_cv_screen" = "xcurses_5lib" 5627 then 5628 if test -d /usr/5lib ; then 5629 5630if test -n "/usr/5lib" ; then 5631 for cf_add_libdir in /usr/5lib 5632 do 5633 if test $cf_add_libdir = /usr/lib ; then 5634 : 5635 elif test -d $cf_add_libdir 5636 then 5637 cf_have_libdir=no 5638 if test -n "$LDFLAGS$LIBS" ; then 5639 # a loop is needed to ensure we can add subdirs of existing dirs 5640 for cf_test_libdir in $LDFLAGS $LIBS ; do 5641 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5642 cf_have_libdir=yes; break 5643 fi 5644 done 5645 fi 5646 if test "$cf_have_libdir" = no ; then 5647 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5648 5649echo "${as_me:-configure}:5649: testing adding $cf_add_libdir to library-path ..." 1>&5 5650 5651 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5652 fi 5653 fi 5654 done 5655fi 5656 5657cf_add_libs="-lcurses -ltermcap" 5658# Filter out duplicates - this happens with badly-designed ".pc" files... 5659for cf_add_1lib in $LIBS 5660do 5661 for cf_add_2lib in $cf_add_libs 5662 do 5663 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5664 then 5665 cf_add_1lib= 5666 break 5667 fi 5668 done 5669 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5670done 5671LIBS="$cf_add_libs" 5672 5673 fi 5674 fi 5675 ac_cv_func_initscr=yes 5676 ;; 5677esac 5678 5679if test ".$ac_cv_func_initscr" != .yes ; then 5680 cf_save_LIBS="$LIBS" 5681 5682 if test ".${cf_cv_ncurses_version:-no}" != .no 5683 then 5684 cf_check_list="ncurses curses cursesX" 5685 else 5686 cf_check_list="cursesX curses ncurses" 5687 fi 5688 5689 # Check for library containing tgoto. Do this before curses library 5690 # because it may be needed to link the test-case for initscr. 5691 if test "x$cf_term_lib" = x 5692 then 5693 echo "$as_me:5693: checking for tgoto" >&5 5694echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 5695if test "${ac_cv_func_tgoto+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 cat >conftest.$ac_ext <<_ACEOF 5699#line 5699 "configure" 5700#include "confdefs.h" 5701/* System header to define __stub macros and hopefully few prototypes, 5702 which can conflict with char tgoto (); below. */ 5703#include <assert.h> 5704/* Override any gcc2 internal prototype to avoid an error. */ 5705#ifdef __cplusplus 5706extern "C" 5707#endif 5708/* We use char because int might match the return type of a gcc2 5709 builtin and then its argument prototype would still apply. */ 5710char tgoto (); 5711char (*f) (); 5712 5713int 5714main (void) 5715{ 5716/* The GNU C library defines this for functions which it implements 5717 to always fail with ENOSYS. Some functions are actually named 5718 something starting with __ and the normal name is an alias. */ 5719#if defined (__stub_tgoto) || defined (__stub___tgoto) 5720choke me 5721#else 5722f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 5723#endif 5724 5725 ; 5726 return 0; 5727} 5728_ACEOF 5729rm -f conftest.$ac_objext conftest$ac_exeext 5730if { (eval echo "$as_me:5730: \"$ac_link\"") >&5 5731 (eval $ac_link) 2>&5 5732 ac_status=$? 5733 echo "$as_me:5733: \$? = $ac_status" >&5 5734 (exit $ac_status); } && 5735 { ac_try='test -s conftest$ac_exeext' 5736 { (eval echo "$as_me:5736: \"$ac_try\"") >&5 5737 (eval $ac_try) 2>&5 5738 ac_status=$? 5739 echo "$as_me:5739: \$? = $ac_status" >&5 5740 (exit $ac_status); }; }; then 5741 ac_cv_func_tgoto=yes 5742else 5743 echo "$as_me: failed program was:" >&5 5744cat conftest.$ac_ext >&5 5745ac_cv_func_tgoto=no 5746fi 5747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5748fi 5749echo "$as_me:5749: result: $ac_cv_func_tgoto" >&5 5750echo "${ECHO_T}$ac_cv_func_tgoto" >&6 5751if test $ac_cv_func_tgoto = yes; then 5752 cf_term_lib=predefined 5753else 5754 5755 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown 5756 do 5757 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` 5758echo "$as_me:5758: checking for tgoto in -l$cf_term_lib" >&5 5759echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6 5760if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5761 echo $ECHO_N "(cached) $ECHO_C" >&6 5762else 5763 ac_check_lib_save_LIBS=$LIBS 5764LIBS="-l$cf_term_lib $LIBS" 5765cat >conftest.$ac_ext <<_ACEOF 5766#line 5766 "configure" 5767#include "confdefs.h" 5768 5769/* Override any gcc2 internal prototype to avoid an error. */ 5770#ifdef __cplusplus 5771extern "C" 5772#endif 5773/* We use char because int might match the return type of a gcc2 5774 builtin and then its argument prototype would still apply. */ 5775char tgoto (); 5776int 5777main (void) 5778{ 5779tgoto (); 5780 ; 5781 return 0; 5782} 5783_ACEOF 5784rm -f conftest.$ac_objext conftest$ac_exeext 5785if { (eval echo "$as_me:5785: \"$ac_link\"") >&5 5786 (eval $ac_link) 2>&5 5787 ac_status=$? 5788 echo "$as_me:5788: \$? = $ac_status" >&5 5789 (exit $ac_status); } && 5790 { ac_try='test -s conftest$ac_exeext' 5791 { (eval echo "$as_me:5791: \"$ac_try\"") >&5 5792 (eval $ac_try) 2>&5 5793 ac_status=$? 5794 echo "$as_me:5794: \$? = $ac_status" >&5 5795 (exit $ac_status); }; }; then 5796 eval "$as_ac_Lib=yes" 5797else 5798 echo "$as_me: failed program was:" >&5 5799cat conftest.$ac_ext >&5 5800eval "$as_ac_Lib=no" 5801fi 5802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5803LIBS=$ac_check_lib_save_LIBS 5804fi 5805echo "$as_me:5805: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5806echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5807if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5808 5809 : ${cf_nculib_root:=$cf_term_lib} 5810 break 5811 5812fi 5813 5814 done 5815 5816fi 5817 5818 fi 5819 5820 # Check for library containing initscr 5821 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" 5822 if test "x$cf_curs_lib" = x 5823 then 5824 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown 5825 do 5826 LIBS="-l$cf_curs_lib $cf_save_LIBS" 5827 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then 5828 echo "$as_me:5828: checking if we can link with $cf_curs_lib library" >&5 5829echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6 5830 cat >conftest.$ac_ext <<_ACEOF 5831#line 5831 "configure" 5832#include "confdefs.h" 5833#include <${cf_cv_ncurses_header:-curses.h}> 5834int 5835main (void) 5836{ 5837initscr() 5838 ; 5839 return 0; 5840} 5841_ACEOF 5842rm -f conftest.$ac_objext conftest$ac_exeext 5843if { (eval echo "$as_me:5843: \"$ac_link\"") >&5 5844 (eval $ac_link) 2>&5 5845 ac_status=$? 5846 echo "$as_me:5846: \$? = $ac_status" >&5 5847 (exit $ac_status); } && 5848 { ac_try='test -s conftest$ac_exeext' 5849 { (eval echo "$as_me:5849: \"$ac_try\"") >&5 5850 (eval $ac_try) 2>&5 5851 ac_status=$? 5852 echo "$as_me:5852: \$? = $ac_status" >&5 5853 (exit $ac_status); }; }; then 5854 cf_result=yes 5855else 5856 echo "$as_me: failed program was:" >&5 5857cat conftest.$ac_ext >&5 5858cf_result=no 5859fi 5860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5861 echo "$as_me:5861: result: $cf_result" >&5 5862echo "${ECHO_T}$cf_result" >&6 5863 test $cf_result = yes && break 5864 elif test "$cf_curs_lib" = "$cf_term_lib" ; then 5865 cf_result=no 5866 elif test "$cf_term_lib" != predefined ; then 5867 echo "$as_me:5867: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 5868echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6 5869 cat >conftest.$ac_ext <<_ACEOF 5870#line 5870 "configure" 5871#include "confdefs.h" 5872#include <${cf_cv_ncurses_header:-curses.h}> 5873int 5874main (void) 5875{ 5876initscr(); tgoto((char *)0, 0, 0); 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881rm -f conftest.$ac_objext conftest$ac_exeext 5882if { (eval echo "$as_me:5882: \"$ac_link\"") >&5 5883 (eval $ac_link) 2>&5 5884 ac_status=$? 5885 echo "$as_me:5885: \$? = $ac_status" >&5 5886 (exit $ac_status); } && 5887 { ac_try='test -s conftest$ac_exeext' 5888 { (eval echo "$as_me:5888: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:5891: \$? = $ac_status" >&5 5892 (exit $ac_status); }; }; then 5893 cf_result=no 5894else 5895 echo "$as_me: failed program was:" >&5 5896cat conftest.$ac_ext >&5 5897 5898 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" 5899 cat >conftest.$ac_ext <<_ACEOF 5900#line 5900 "configure" 5901#include "confdefs.h" 5902#include <${cf_cv_ncurses_header:-curses.h}> 5903int 5904main (void) 5905{ 5906initscr() 5907 ; 5908 return 0; 5909} 5910_ACEOF 5911rm -f conftest.$ac_objext conftest$ac_exeext 5912if { (eval echo "$as_me:5912: \"$ac_link\"") >&5 5913 (eval $ac_link) 2>&5 5914 ac_status=$? 5915 echo "$as_me:5915: \$? = $ac_status" >&5 5916 (exit $ac_status); } && 5917 { ac_try='test -s conftest$ac_exeext' 5918 { (eval echo "$as_me:5918: \"$ac_try\"") >&5 5919 (eval $ac_try) 2>&5 5920 ac_status=$? 5921 echo "$as_me:5921: \$? = $ac_status" >&5 5922 (exit $ac_status); }; }; then 5923 cf_result=yes 5924else 5925 echo "$as_me: failed program was:" >&5 5926cat conftest.$ac_ext >&5 5927cf_result=error 5928fi 5929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5930 5931fi 5932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5933 echo "$as_me:5933: result: $cf_result" >&5 5934echo "${ECHO_T}$cf_result" >&6 5935 test $cf_result != error && break 5936 fi 5937 done 5938 fi 5939 test $cf_curs_lib = unknown && { { echo "$as_me:5939: error: no curses library found" >&5 5940echo "$as_me: error: no curses library found" >&2;} 5941 { (exit 1); exit 1; }; } 5942fi 5943fi 5944 5945 ;; 5946(ncursesw*) 5947 5948echo "$as_me:5948: checking for multibyte character support" >&5 5949echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 5950if test "${cf_cv_utf8_lib+set}" = set; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 5954 cf_save_LIBS="$LIBS" 5955 cat >conftest.$ac_ext <<_ACEOF 5956#line 5956 "configure" 5957#include "confdefs.h" 5958 5959#include <stdlib.h> 5960int 5961main (void) 5962{ 5963putwc(0,0); 5964 ; 5965 return 0; 5966} 5967_ACEOF 5968rm -f conftest.$ac_objext conftest$ac_exeext 5969if { (eval echo "$as_me:5969: \"$ac_link\"") >&5 5970 (eval $ac_link) 2>&5 5971 ac_status=$? 5972 echo "$as_me:5972: \$? = $ac_status" >&5 5973 (exit $ac_status); } && 5974 { ac_try='test -s conftest$ac_exeext' 5975 { (eval echo "$as_me:5975: \"$ac_try\"") >&5 5976 (eval $ac_try) 2>&5 5977 ac_status=$? 5978 echo "$as_me:5978: \$? = $ac_status" >&5 5979 (exit $ac_status); }; }; then 5980 cf_cv_utf8_lib=yes 5981else 5982 echo "$as_me: failed program was:" >&5 5983cat conftest.$ac_ext >&5 5984 5985# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 5986# will be set on completion of the AC_TRY_LINK below. 5987cf_cv_header_path_utf8= 5988cf_cv_library_path_utf8= 5989 5990echo "${as_me:-configure}:5990: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 5991 5992cf_save_LIBS="$LIBS" 5993 5994cat >conftest.$ac_ext <<_ACEOF 5995#line 5995 "configure" 5996#include "confdefs.h" 5997 5998#include <libutf8.h> 5999int 6000main (void) 6001{ 6002putwc(0,0); 6003 ; 6004 return 0; 6005} 6006_ACEOF 6007rm -f conftest.$ac_objext conftest$ac_exeext 6008if { (eval echo "$as_me:6008: \"$ac_link\"") >&5 6009 (eval $ac_link) 2>&5 6010 ac_status=$? 6011 echo "$as_me:6011: \$? = $ac_status" >&5 6012 (exit $ac_status); } && 6013 { ac_try='test -s conftest$ac_exeext' 6014 { (eval echo "$as_me:6014: \"$ac_try\"") >&5 6015 (eval $ac_try) 2>&5 6016 ac_status=$? 6017 echo "$as_me:6017: \$? = $ac_status" >&5 6018 (exit $ac_status); }; }; then 6019 6020 cf_cv_find_linkage_utf8=yes 6021 cf_cv_header_path_utf8=/usr/include 6022 cf_cv_library_path_utf8=/usr/lib 6023 6024else 6025 echo "$as_me: failed program was:" >&5 6026cat conftest.$ac_ext >&5 6027 6028LIBS="-lutf8 $cf_save_LIBS" 6029 6030cat >conftest.$ac_ext <<_ACEOF 6031#line 6031 "configure" 6032#include "confdefs.h" 6033 6034#include <libutf8.h> 6035int 6036main (void) 6037{ 6038putwc(0,0); 6039 ; 6040 return 0; 6041} 6042_ACEOF 6043rm -f conftest.$ac_objext conftest$ac_exeext 6044if { (eval echo "$as_me:6044: \"$ac_link\"") >&5 6045 (eval $ac_link) 2>&5 6046 ac_status=$? 6047 echo "$as_me:6047: \$? = $ac_status" >&5 6048 (exit $ac_status); } && 6049 { ac_try='test -s conftest$ac_exeext' 6050 { (eval echo "$as_me:6050: \"$ac_try\"") >&5 6051 (eval $ac_try) 2>&5 6052 ac_status=$? 6053 echo "$as_me:6053: \$? = $ac_status" >&5 6054 (exit $ac_status); }; }; then 6055 6056 cf_cv_find_linkage_utf8=yes 6057 cf_cv_header_path_utf8=/usr/include 6058 cf_cv_library_path_utf8=/usr/lib 6059 cf_cv_library_file_utf8="-lutf8" 6060 6061else 6062 echo "$as_me: failed program was:" >&5 6063cat conftest.$ac_ext >&5 6064 6065 cf_cv_find_linkage_utf8=no 6066 LIBS="$cf_save_LIBS" 6067 6068 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 6069 6070echo "${as_me:-configure}:6070: testing find linkage for utf8 library ..." 1>&5 6071 6072echo "${as_me:-configure}:6072: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 6073 6074 cf_save_CPPFLAGS="$CPPFLAGS" 6075 cf_test_CPPFLAGS="$CPPFLAGS" 6076 6077cf_search= 6078 6079# collect the current set of include-directories from compiler flags 6080cf_header_path_list="" 6081if test -n "${CFLAGS}${CPPFLAGS}" ; then 6082 for cf_header_path in $CPPFLAGS $CFLAGS 6083 do 6084 case $cf_header_path in 6085 (-I*) 6086 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 6087 6088test "x$cf_header_path" != "xNONE" && \ 6089test -d "$cf_header_path" && \ 6090 { 6091 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 6092 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 6093 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8" 6094 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include" 6095 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include" 6096 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 6097} 6098 6099 cf_header_path_list="$cf_header_path_list $cf_search" 6100 ;; 6101 esac 6102 done 6103fi 6104 6105# add the variations for the package we are looking for 6106 6107cf_search= 6108 6109test "x$prefix" != "xNONE" && \ 6110test -d "$prefix" && \ 6111 { 6112 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 6113 test -d $prefix/include && cf_search="$cf_search $prefix/include" 6114 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8" 6115 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include" 6116 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include" 6117 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8" 6118} 6119 6120for cf_subdir_prefix in \ 6121 /usr \ 6122 /usr/local \ 6123 /usr/pkg \ 6124 /opt \ 6125 /opt/local \ 6126 $HOME 6127do 6128 6129test "x$cf_subdir_prefix" != "x$prefix" && \ 6130test -d "$cf_subdir_prefix" && \ 6131(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 6132 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 6133 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include" 6134 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8" 6135 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include" 6136 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include" 6137 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8" 6138} 6139 6140done 6141 6142test "$includedir" != NONE && \ 6143test "$includedir" != "/usr/include" && \ 6144test -d "$includedir" && { 6145 test -d $includedir && cf_search="$cf_search $includedir" 6146 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8" 6147} 6148 6149test "$oldincludedir" != NONE && \ 6150test "$oldincludedir" != "/usr/include" && \ 6151test -d "$oldincludedir" && { 6152 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 6153 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8" 6154} 6155 6156cf_search="$cf_search $cf_header_path_list" 6157 6158 for cf_cv_header_path_utf8 in $cf_search 6159 do 6160 if test -d $cf_cv_header_path_utf8 ; then 6161 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 6162 6163echo "${as_me:-configure}:6163: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 6164 6165 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8" 6166 cat >conftest.$ac_ext <<_ACEOF 6167#line 6167 "configure" 6168#include "confdefs.h" 6169 6170#include <libutf8.h> 6171int 6172main (void) 6173{ 6174putwc(0,0); 6175 ; 6176 return 0; 6177} 6178_ACEOF 6179rm -f conftest.$ac_objext 6180if { (eval echo "$as_me:6180: \"$ac_compile\"") >&5 6181 (eval $ac_compile) 2>&5 6182 ac_status=$? 6183 echo "$as_me:6183: \$? = $ac_status" >&5 6184 (exit $ac_status); } && 6185 { ac_try='test -s conftest.$ac_objext' 6186 { (eval echo "$as_me:6186: \"$ac_try\"") >&5 6187 (eval $ac_try) 2>&5 6188 ac_status=$? 6189 echo "$as_me:6189: \$? = $ac_status" >&5 6190 (exit $ac_status); }; }; then 6191 6192 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 6193 6194echo "${as_me:-configure}:6194: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 6195 6196 cf_cv_find_linkage_utf8=maybe 6197 cf_test_CPPFLAGS="$CPPFLAGS" 6198 break 6199else 6200 echo "$as_me: failed program was:" >&5 6201cat conftest.$ac_ext >&5 6202 6203 CPPFLAGS="$cf_save_CPPFLAGS" 6204 6205fi 6206rm -f conftest.$ac_objext conftest.$ac_ext 6207 fi 6208 done 6209 6210 if test "$cf_cv_find_linkage_utf8" = maybe ; then 6211 6212echo "${as_me:-configure}:6212: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 6213 6214 cf_save_LIBS="$LIBS" 6215 cf_save_LDFLAGS="$LDFLAGS" 6216 6217 if test "$cf_cv_find_linkage_utf8" != yes ; then 6218 6219cf_search= 6220cf_library_path_list="" 6221if test -n "${LDFLAGS}${LIBS}" ; then 6222 for cf_library_path in $LDFLAGS $LIBS 6223 do 6224 case $cf_library_path in 6225 (-L*) 6226 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 6227 6228test "x$cf_library_path" != "xNONE" && \ 6229test -d "$cf_library_path" && \ 6230 { 6231 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 6232 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 6233 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8" 6234 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 6235 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib" 6236 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 6237} 6238 6239 cf_library_path_list="$cf_library_path_list $cf_search" 6240 ;; 6241 esac 6242 done 6243fi 6244 6245cf_search= 6246 6247test "x$prefix" != "xNONE" && \ 6248test -d "$prefix" && \ 6249 { 6250 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 6251 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 6252 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8" 6253 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib" 6254 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib" 6255 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8" 6256} 6257 6258for cf_subdir_prefix in \ 6259 /usr \ 6260 /usr/local \ 6261 /usr/pkg \ 6262 /opt \ 6263 /opt/local \ 6264 $HOME 6265do 6266 6267test "x$cf_subdir_prefix" != "x$prefix" && \ 6268test -d "$cf_subdir_prefix" && \ 6269(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 6270 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 6271 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib" 6272 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8" 6273 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib" 6274 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib" 6275 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8" 6276} 6277 6278done 6279 6280cf_search="$cf_library_path_list $cf_search" 6281 6282 for cf_cv_library_path_utf8 in $cf_search 6283 do 6284 if test -d $cf_cv_library_path_utf8 ; then 6285 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 6286 6287echo "${as_me:-configure}:6287: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 6288 6289 CPPFLAGS="$cf_test_CPPFLAGS" 6290 LIBS="-lutf8 $cf_save_LIBS" 6291 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 6292 cat >conftest.$ac_ext <<_ACEOF 6293#line 6293 "configure" 6294#include "confdefs.h" 6295 6296#include <libutf8.h> 6297int 6298main (void) 6299{ 6300putwc(0,0); 6301 ; 6302 return 0; 6303} 6304_ACEOF 6305rm -f conftest.$ac_objext conftest$ac_exeext 6306if { (eval echo "$as_me:6306: \"$ac_link\"") >&5 6307 (eval $ac_link) 2>&5 6308 ac_status=$? 6309 echo "$as_me:6309: \$? = $ac_status" >&5 6310 (exit $ac_status); } && 6311 { ac_try='test -s conftest$ac_exeext' 6312 { (eval echo "$as_me:6312: \"$ac_try\"") >&5 6313 (eval $ac_try) 2>&5 6314 ac_status=$? 6315 echo "$as_me:6315: \$? = $ac_status" >&5 6316 (exit $ac_status); }; }; then 6317 6318 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 6319 6320echo "${as_me:-configure}:6320: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 6321 6322 cf_cv_find_linkage_utf8=yes 6323 cf_cv_library_file_utf8="-lutf8" 6324 break 6325else 6326 echo "$as_me: failed program was:" >&5 6327cat conftest.$ac_ext >&5 6328 6329 CPPFLAGS="$cf_save_CPPFLAGS" 6330 LIBS="$cf_save_LIBS" 6331 LDFLAGS="$cf_save_LDFLAGS" 6332 6333fi 6334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6335 fi 6336 done 6337 CPPFLAGS="$cf_save_CPPFLAGS" 6338 LDFLAGS="$cf_save_LDFLAGS" 6339 fi 6340 6341 else 6342 cf_cv_find_linkage_utf8=no 6343 fi 6344 6345fi 6346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6347 6348fi 6349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6350 6351LIBS="$cf_save_LIBS" 6352 6353if test "$cf_cv_find_linkage_utf8" = yes ; then 6354cf_cv_utf8_lib=add-on 6355else 6356cf_cv_utf8_lib=no 6357fi 6358 6359fi 6360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6361fi 6362echo "$as_me:6362: result: $cf_cv_utf8_lib" >&5 6363echo "${ECHO_T}$cf_cv_utf8_lib" >&6 6364 6365# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 6366# ncurses/ncursesw: 6367if test "$cf_cv_utf8_lib" = "add-on" ; then 6368 6369cat >>confdefs.h <<\EOF 6370#define HAVE_LIBUTF8_H 1 6371EOF 6372 6373if test -n "$cf_cv_header_path_utf8" ; then 6374 for cf_add_incdir in $cf_cv_header_path_utf8 6375 do 6376 while test $cf_add_incdir != /usr/include 6377 do 6378 if test -d $cf_add_incdir 6379 then 6380 cf_have_incdir=no 6381 if test -n "$CFLAGS$CPPFLAGS" ; then 6382 # a loop is needed to ensure we can add subdirs of existing dirs 6383 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6384 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6385 cf_have_incdir=yes; break 6386 fi 6387 done 6388 fi 6389 6390 if test "$cf_have_incdir" = no ; then 6391 if test "$cf_add_incdir" = /usr/local/include ; then 6392 if test "$GCC" = yes 6393 then 6394 cf_save_CPPFLAGS=$CPPFLAGS 6395 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6396 cat >conftest.$ac_ext <<_ACEOF 6397#line 6397 "configure" 6398#include "confdefs.h" 6399#include <stdio.h> 6400int 6401main (void) 6402{ 6403printf("Hello") 6404 ; 6405 return 0; 6406} 6407_ACEOF 6408rm -f conftest.$ac_objext 6409if { (eval echo "$as_me:6409: \"$ac_compile\"") >&5 6410 (eval $ac_compile) 2>&5 6411 ac_status=$? 6412 echo "$as_me:6412: \$? = $ac_status" >&5 6413 (exit $ac_status); } && 6414 { ac_try='test -s conftest.$ac_objext' 6415 { (eval echo "$as_me:6415: \"$ac_try\"") >&5 6416 (eval $ac_try) 2>&5 6417 ac_status=$? 6418 echo "$as_me:6418: \$? = $ac_status" >&5 6419 (exit $ac_status); }; }; then 6420 : 6421else 6422 echo "$as_me: failed program was:" >&5 6423cat conftest.$ac_ext >&5 6424cf_have_incdir=yes 6425fi 6426rm -f conftest.$ac_objext conftest.$ac_ext 6427 CPPFLAGS=$cf_save_CPPFLAGS 6428 fi 6429 fi 6430 fi 6431 6432 if test "$cf_have_incdir" = no ; then 6433 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6434 6435echo "${as_me:-configure}:6435: testing adding $cf_add_incdir to include-path ..." 1>&5 6436 6437 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6438 6439 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6440 test "$cf_top_incdir" = "$cf_add_incdir" && break 6441 cf_add_incdir="$cf_top_incdir" 6442 else 6443 break 6444 fi 6445 else 6446 break 6447 fi 6448 done 6449 done 6450fi 6451 6452if test -n "$cf_cv_library_path_utf8" ; then 6453 for cf_add_libdir in $cf_cv_library_path_utf8 6454 do 6455 if test $cf_add_libdir = /usr/lib ; then 6456 : 6457 elif test -d $cf_add_libdir 6458 then 6459 cf_have_libdir=no 6460 if test -n "$LDFLAGS$LIBS" ; then 6461 # a loop is needed to ensure we can add subdirs of existing dirs 6462 for cf_test_libdir in $LDFLAGS $LIBS ; do 6463 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6464 cf_have_libdir=yes; break 6465 fi 6466 done 6467 fi 6468 if test "$cf_have_libdir" = no ; then 6469 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6470 6471echo "${as_me:-configure}:6471: testing adding $cf_add_libdir to library-path ..." 1>&5 6472 6473 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6474 fi 6475 fi 6476 done 6477fi 6478 6479cf_add_libs="$cf_cv_library_file_utf8" 6480# Filter out duplicates - this happens with badly-designed ".pc" files... 6481for cf_add_1lib in $LIBS 6482do 6483 for cf_add_2lib in $cf_add_libs 6484 do 6485 if test "x$cf_add_1lib" = "x$cf_add_2lib" 6486 then 6487 cf_add_1lib= 6488 break 6489 fi 6490 done 6491 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 6492done 6493LIBS="$cf_add_libs" 6494 6495fi 6496 6497echo "$as_me:6497: checking if you want to use pkg-config" >&5 6498echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 6499 6500# Check whether --with-pkg-config or --without-pkg-config was given. 6501if test "${with_pkg_config+set}" = set; then 6502 withval="$with_pkg_config" 6503 cf_pkg_config=$withval 6504else 6505 cf_pkg_config=yes 6506fi; 6507echo "$as_me:6507: result: $cf_pkg_config" >&5 6508echo "${ECHO_T}$cf_pkg_config" >&6 6509 6510case $cf_pkg_config in 6511(no) 6512 PKG_CONFIG=none 6513 ;; 6514(yes) 6515 6516if test -n "$ac_tool_prefix"; then 6517 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6518set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6519echo "$as_me:6519: checking for $ac_word" >&5 6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6521if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 6522 echo $ECHO_N "(cached) $ECHO_C" >&6 6523else 6524 case $PKG_CONFIG in 6525 [\\/]* | ?:[\\/]*) 6526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6527 ;; 6528 *) 6529 ac_save_IFS=$IFS; IFS=$ac_path_separator 6530ac_dummy="$PATH" 6531for ac_dir in $ac_dummy; do 6532 IFS=$ac_save_IFS 6533 test -z "$ac_dir" && ac_dir=. 6534 if $as_executable_p "$ac_dir/$ac_word"; then 6535 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 6536 echo "$as_me:6536: found $ac_dir/$ac_word" >&5 6537 break 6538fi 6539done 6540 6541 ;; 6542esac 6543fi 6544PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6545 6546if test -n "$PKG_CONFIG"; then 6547 echo "$as_me:6547: result: $PKG_CONFIG" >&5 6548echo "${ECHO_T}$PKG_CONFIG" >&6 6549else 6550 echo "$as_me:6550: result: no" >&5 6551echo "${ECHO_T}no" >&6 6552fi 6553 6554fi 6555if test -z "$ac_cv_path_PKG_CONFIG"; then 6556 ac_pt_PKG_CONFIG=$PKG_CONFIG 6557 # Extract the first word of "pkg-config", so it can be a program name with args. 6558set dummy pkg-config; ac_word=$2 6559echo "$as_me:6559: checking for $ac_word" >&5 6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6561if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 6562 echo $ECHO_N "(cached) $ECHO_C" >&6 6563else 6564 case $ac_pt_PKG_CONFIG in 6565 [\\/]* | ?:[\\/]*) 6566 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6567 ;; 6568 *) 6569 ac_save_IFS=$IFS; IFS=$ac_path_separator 6570ac_dummy="$PATH" 6571for ac_dir in $ac_dummy; do 6572 IFS=$ac_save_IFS 6573 test -z "$ac_dir" && ac_dir=. 6574 if $as_executable_p "$ac_dir/$ac_word"; then 6575 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 6576 echo "$as_me:6576: found $ac_dir/$ac_word" >&5 6577 break 6578fi 6579done 6580 6581 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 6582 ;; 6583esac 6584fi 6585ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6586 6587if test -n "$ac_pt_PKG_CONFIG"; then 6588 echo "$as_me:6588: result: $ac_pt_PKG_CONFIG" >&5 6589echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 6590else 6591 echo "$as_me:6591: result: no" >&5 6592echo "${ECHO_T}no" >&6 6593fi 6594 6595 PKG_CONFIG=$ac_pt_PKG_CONFIG 6596else 6597 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6598fi 6599 6600 ;; 6601(*) 6602 PKG_CONFIG=$withval 6603 ;; 6604esac 6605 6606test -z "$PKG_CONFIG" && PKG_CONFIG=none 6607if test "$PKG_CONFIG" != none ; then 6608 6609if test "x$prefix" != xNONE; then 6610 cf_path_syntax="$prefix" 6611else 6612 cf_path_syntax="$ac_default_prefix" 6613fi 6614 6615case ".$PKG_CONFIG" in 6616(.\$\(*\)*|.\'*\'*) 6617 ;; 6618(..|./*|.\\*) 6619 ;; 6620(.[a-zA-Z]:[\\/]*) # OS/2 EMX 6621 ;; 6622(.\${*prefix}*|.\${*dir}*) 6623 eval PKG_CONFIG="$PKG_CONFIG" 6624 case ".$PKG_CONFIG" in 6625 (.NONE/*) 6626 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 6627 ;; 6628 esac 6629 ;; 6630(.no|.NONE/*) 6631 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 6632 ;; 6633(*) 6634 { { echo "$as_me:6634: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 6635echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 6636 { (exit 1); exit 1; }; } 6637 ;; 6638esac 6639 6640elif test "x$cf_pkg_config" != xno ; then 6641 { echo "$as_me:6641: WARNING: pkg-config is not installed" >&5 6642echo "$as_me: WARNING: pkg-config is not installed" >&2;} 6643fi 6644 6645cf_ncuconfig_root=$cf_cv_screen 6646cf_have_ncuconfig=no 6647 6648if test "x${PKG_CONFIG:=none}" != xnone; then 6649 echo "$as_me:6649: checking pkg-config for $cf_ncuconfig_root" >&5 6650echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6 6651 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then 6652 echo "$as_me:6652: result: yes" >&5 6653echo "${ECHO_T}yes" >&6 6654 6655 echo "$as_me:6655: checking if the $cf_ncuconfig_root package files work" >&5 6656echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6 6657 cf_have_ncuconfig=unknown 6658 6659 cf_save_CPPFLAGS="$CPPFLAGS" 6660 cf_save_LIBS="$LIBS" 6661 6662 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`" 6663 6664cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`" 6665# Filter out duplicates - this happens with badly-designed ".pc" files... 6666for cf_add_1lib in $LIBS 6667do 6668 for cf_add_2lib in $cf_add_libs 6669 do 6670 if test "x$cf_add_1lib" = "x$cf_add_2lib" 6671 then 6672 cf_add_1lib= 6673 break 6674 fi 6675 done 6676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 6677done 6678LIBS="$cf_add_libs" 6679 6680 cat >conftest.$ac_ext <<_ACEOF 6681#line 6681 "configure" 6682#include "confdefs.h" 6683#include <${cf_cv_ncurses_header:-curses.h}> 6684int 6685main (void) 6686{ 6687initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692rm -f conftest.$ac_objext conftest$ac_exeext 6693if { (eval echo "$as_me:6693: \"$ac_link\"") >&5 6694 (eval $ac_link) 2>&5 6695 ac_status=$? 6696 echo "$as_me:6696: \$? = $ac_status" >&5 6697 (exit $ac_status); } && 6698 { ac_try='test -s conftest$ac_exeext' 6699 { (eval echo "$as_me:6699: \"$ac_try\"") >&5 6700 (eval $ac_try) 2>&5 6701 ac_status=$? 6702 echo "$as_me:6702: \$? = $ac_status" >&5 6703 (exit $ac_status); }; }; then 6704 if test "$cross_compiling" = yes; then 6705 cf_have_ncuconfig=maybe 6706else 6707 cat >conftest.$ac_ext <<_ACEOF 6708#line 6708 "configure" 6709#include "confdefs.h" 6710#include <${cf_cv_ncurses_header:-curses.h}> 6711 int main(void) 6712 { char *xx = curses_version(); return (xx == 0); } 6713_ACEOF 6714rm -f conftest$ac_exeext 6715if { (eval echo "$as_me:6715: \"$ac_link\"") >&5 6716 (eval $ac_link) 2>&5 6717 ac_status=$? 6718 echo "$as_me:6718: \$? = $ac_status" >&5 6719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6720 { (eval echo "$as_me:6720: \"$ac_try\"") >&5 6721 (eval $ac_try) 2>&5 6722 ac_status=$? 6723 echo "$as_me:6723: \$? = $ac_status" >&5 6724 (exit $ac_status); }; }; then 6725 cf_have_ncuconfig=yes 6726else 6727 echo "$as_me: program exited with status $ac_status" >&5 6728echo "$as_me: failed program was:" >&5 6729cat conftest.$ac_ext >&5 6730cf_have_ncuconfig=no 6731fi 6732rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6733fi 6734else 6735 echo "$as_me: failed program was:" >&5 6736cat conftest.$ac_ext >&5 6737cf_have_ncuconfig=no 6738fi 6739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6740 echo "$as_me:6740: result: $cf_have_ncuconfig" >&5 6741echo "${ECHO_T}$cf_have_ncuconfig" >&6 6742 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes 6743 if test "$cf_have_ncuconfig" != "yes" 6744 then 6745 CPPFLAGS="$cf_save_CPPFLAGS" 6746 LIBS="$cf_save_LIBS" 6747 NCURSES_CONFIG_PKG=none 6748 else 6749 6750cat >>confdefs.h <<\EOF 6751#define NCURSES 1 6752EOF 6753 6754 NCURSES_CONFIG_PKG=$cf_ncuconfig_root 6755 6756echo "$as_me:6756: checking for terminfo header" >&5 6757echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 6758if test "${cf_cv_term_header+set}" = set; then 6759 echo $ECHO_N "(cached) $ECHO_C" >&6 6760else 6761 6762case ${cf_cv_ncurses_header} in 6763(*/ncurses.h|*/ncursesw.h) 6764 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 6765 ;; 6766(*) 6767 cf_term_header=term.h 6768 ;; 6769esac 6770 6771for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 6772do 6773cat >conftest.$ac_ext <<_ACEOF 6774#line 6774 "configure" 6775#include "confdefs.h" 6776#include <stdio.h> 6777#include <${cf_cv_ncurses_header:-curses.h}> 6778#include <$cf_test> 6779 6780int 6781main (void) 6782{ 6783int x = auto_left_margin 6784 ; 6785 return 0; 6786} 6787_ACEOF 6788rm -f conftest.$ac_objext 6789if { (eval echo "$as_me:6789: \"$ac_compile\"") >&5 6790 (eval $ac_compile) 2>&5 6791 ac_status=$? 6792 echo "$as_me:6792: \$? = $ac_status" >&5 6793 (exit $ac_status); } && 6794 { ac_try='test -s conftest.$ac_objext' 6795 { (eval echo "$as_me:6795: \"$ac_try\"") >&5 6796 (eval $ac_try) 2>&5 6797 ac_status=$? 6798 echo "$as_me:6798: \$? = $ac_status" >&5 6799 (exit $ac_status); }; }; then 6800 6801 cf_cv_term_header="$cf_test" 6802else 6803 echo "$as_me: failed program was:" >&5 6804cat conftest.$ac_ext >&5 6805 6806 cf_cv_term_header=unknown 6807 6808fi 6809rm -f conftest.$ac_objext conftest.$ac_ext 6810 test "$cf_cv_term_header" != unknown && break 6811done 6812 6813fi 6814echo "$as_me:6814: result: $cf_cv_term_header" >&5 6815echo "${ECHO_T}$cf_cv_term_header" >&6 6816 6817# Set definitions to allow ifdef'ing to accommodate subdirectories 6818 6819case $cf_cv_term_header in 6820(*term.h) 6821 6822cat >>confdefs.h <<\EOF 6823#define HAVE_TERM_H 1 6824EOF 6825 6826 ;; 6827esac 6828 6829case $cf_cv_term_header in 6830(ncurses/term.h) 6831 6832cat >>confdefs.h <<\EOF 6833#define HAVE_NCURSES_TERM_H 1 6834EOF 6835 6836 ;; 6837(ncursesw/term.h) 6838 6839cat >>confdefs.h <<\EOF 6840#define HAVE_NCURSESW_TERM_H 1 6841EOF 6842 6843 ;; 6844esac 6845 6846 fi 6847 6848 else 6849 echo "$as_me:6849: result: no" >&5 6850echo "${ECHO_T}no" >&6 6851 NCURSES_CONFIG_PKG=none 6852 fi 6853else 6854 NCURSES_CONFIG_PKG=none 6855fi 6856 6857if test "x$cf_have_ncuconfig" = "xno"; then 6858 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}" 6859 6860if test -n "$ac_tool_prefix"; then 6861 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 6862 do 6863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6864set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6865echo "$as_me:6865: checking for $ac_word" >&5 6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6867if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869else 6870 if test -n "$NCURSES_CONFIG"; then 6871 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test. 6872else 6873 ac_save_IFS=$IFS; IFS=$ac_path_separator 6874ac_dummy="$PATH" 6875for ac_dir in $ac_dummy; do 6876 IFS=$ac_save_IFS 6877 test -z "$ac_dir" && ac_dir=. 6878 $as_executable_p "$ac_dir/$ac_word" || continue 6879ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog" 6880echo "$as_me:6880: found $ac_dir/$ac_word" >&5 6881break 6882done 6883 6884fi 6885fi 6886NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG 6887if test -n "$NCURSES_CONFIG"; then 6888 echo "$as_me:6888: result: $NCURSES_CONFIG" >&5 6889echo "${ECHO_T}$NCURSES_CONFIG" >&6 6890else 6891 echo "$as_me:6891: result: no" >&5 6892echo "${ECHO_T}no" >&6 6893fi 6894 6895 test -n "$NCURSES_CONFIG" && break 6896 done 6897fi 6898if test -z "$NCURSES_CONFIG"; then 6899 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG 6900 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 6901do 6902 # Extract the first word of "$ac_prog", so it can be a program name with args. 6903set dummy $ac_prog; ac_word=$2 6904echo "$as_me:6904: checking for $ac_word" >&5 6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6906if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then 6907 echo $ECHO_N "(cached) $ECHO_C" >&6 6908else 6909 if test -n "$ac_ct_NCURSES_CONFIG"; then 6910 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test. 6911else 6912 ac_save_IFS=$IFS; IFS=$ac_path_separator 6913ac_dummy="$PATH" 6914for ac_dir in $ac_dummy; do 6915 IFS=$ac_save_IFS 6916 test -z "$ac_dir" && ac_dir=. 6917 $as_executable_p "$ac_dir/$ac_word" || continue 6918ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog" 6919echo "$as_me:6919: found $ac_dir/$ac_word" >&5 6920break 6921done 6922 6923fi 6924fi 6925ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG 6926if test -n "$ac_ct_NCURSES_CONFIG"; then 6927 echo "$as_me:6927: result: $ac_ct_NCURSES_CONFIG" >&5 6928echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6 6929else 6930 echo "$as_me:6930: result: no" >&5 6931echo "${ECHO_T}no" >&6 6932fi 6933 6934 test -n "$ac_ct_NCURSES_CONFIG" && break 6935done 6936test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none" 6937 6938 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG 6939fi 6940 6941 if test "$NCURSES_CONFIG" != none ; then 6942 6943 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`" 6944 6945cf_add_libs="`$NCURSES_CONFIG --libs`" 6946# Filter out duplicates - this happens with badly-designed ".pc" files... 6947for cf_add_1lib in $LIBS 6948do 6949 for cf_add_2lib in $cf_add_libs 6950 do 6951 if test "x$cf_add_1lib" = "x$cf_add_2lib" 6952 then 6953 cf_add_1lib= 6954 break 6955 fi 6956 done 6957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 6958done 6959LIBS="$cf_add_libs" 6960 6961 # even with config script, some packages use no-override for curses.h 6962 6963echo "$as_me:6963: checking if we have identified curses headers" >&5 6964echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 6965if test "${cf_cv_ncurses_header+set}" = set; then 6966 echo $ECHO_N "(cached) $ECHO_C" >&6 6967else 6968 6969cf_cv_ncurses_header=none 6970for cf_header in \ 6971 ncurses.h $cf_cv_screen/ncurses.h \ 6972 curses.h $cf_cv_screen/curses.h 6973do 6974cat >conftest.$ac_ext <<_ACEOF 6975#line 6975 "configure" 6976#include "confdefs.h" 6977#include <${cf_header}> 6978int 6979main (void) 6980{ 6981initscr(); tgoto("?", 0,0) 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986rm -f conftest.$ac_objext 6987if { (eval echo "$as_me:6987: \"$ac_compile\"") >&5 6988 (eval $ac_compile) 2>&5 6989 ac_status=$? 6990 echo "$as_me:6990: \$? = $ac_status" >&5 6991 (exit $ac_status); } && 6992 { ac_try='test -s conftest.$ac_objext' 6993 { (eval echo "$as_me:6993: \"$ac_try\"") >&5 6994 (eval $ac_try) 2>&5 6995 ac_status=$? 6996 echo "$as_me:6996: \$? = $ac_status" >&5 6997 (exit $ac_status); }; }; then 6998 cf_cv_ncurses_header=$cf_header; break 6999else 7000 echo "$as_me: failed program was:" >&5 7001cat conftest.$ac_ext >&5 7002fi 7003rm -f conftest.$ac_objext conftest.$ac_ext 7004done 7005 7006fi 7007echo "$as_me:7007: result: $cf_cv_ncurses_header" >&5 7008echo "${ECHO_T}$cf_cv_ncurses_header" >&6 7009 7010if test "$cf_cv_ncurses_header" = none ; then 7011 { { echo "$as_me:7011: error: No curses header-files found" >&5 7012echo "$as_me: error: No curses header-files found" >&2;} 7013 { (exit 1); exit 1; }; } 7014fi 7015 7016# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 7017 7018for ac_header in $cf_cv_ncurses_header 7019do 7020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7021echo "$as_me:7021: checking for $ac_header" >&5 7022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7023if eval "test \"\${$as_ac_Header+set}\" = set"; then 7024 echo $ECHO_N "(cached) $ECHO_C" >&6 7025else 7026 cat >conftest.$ac_ext <<_ACEOF 7027#line 7027 "configure" 7028#include "confdefs.h" 7029#include <$ac_header> 7030_ACEOF 7031if { (eval echo "$as_me:7031: \"$ac_cpp conftest.$ac_ext\"") >&5 7032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7033 ac_status=$? 7034 egrep -v '^ *\+' conftest.er1 >conftest.err 7035 rm -f conftest.er1 7036 cat conftest.err >&5 7037 echo "$as_me:7037: \$? = $ac_status" >&5 7038 (exit $ac_status); } >/dev/null; then 7039 if test -s conftest.err; then 7040 ac_cpp_err=$ac_c_preproc_warn_flag 7041 else 7042 ac_cpp_err= 7043 fi 7044else 7045 ac_cpp_err=yes 7046fi 7047if test -z "$ac_cpp_err"; then 7048 eval "$as_ac_Header=yes" 7049else 7050 echo "$as_me: failed program was:" >&5 7051 cat conftest.$ac_ext >&5 7052 eval "$as_ac_Header=no" 7053fi 7054rm -f conftest.err conftest.$ac_ext 7055fi 7056echo "$as_me:7056: result: `eval echo '${'$as_ac_Header'}'`" >&5 7057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7058if test `eval echo '${'$as_ac_Header'}'` = yes; then 7059 cat >>confdefs.h <<EOF 7060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7061EOF 7062 7063fi 7064done 7065 7066cat >>confdefs.h <<\EOF 7067#define NCURSES 1 7068EOF 7069 7070cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7071 7072 cat >>confdefs.h <<EOF 7073#define $cf_nculib_ROOT 1 7074EOF 7075 7076 cf_cv_ncurses_version=`$NCURSES_CONFIG --version` 7077 7078 else 7079 7080cf_ncuhdr_root=$cf_cv_screen 7081 7082test -n "$cf_cv_curses_dir" && \ 7083test "$cf_cv_curses_dir" != "no" && { \ 7084 7085if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then 7086 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root 7087 do 7088 while test $cf_add_incdir != /usr/include 7089 do 7090 if test -d $cf_add_incdir 7091 then 7092 cf_have_incdir=no 7093 if test -n "$CFLAGS$CPPFLAGS" ; then 7094 # a loop is needed to ensure we can add subdirs of existing dirs 7095 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 7096 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 7097 cf_have_incdir=yes; break 7098 fi 7099 done 7100 fi 7101 7102 if test "$cf_have_incdir" = no ; then 7103 if test "$cf_add_incdir" = /usr/local/include ; then 7104 if test "$GCC" = yes 7105 then 7106 cf_save_CPPFLAGS=$CPPFLAGS 7107 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7108 cat >conftest.$ac_ext <<_ACEOF 7109#line 7109 "configure" 7110#include "confdefs.h" 7111#include <stdio.h> 7112int 7113main (void) 7114{ 7115printf("Hello") 7116 ; 7117 return 0; 7118} 7119_ACEOF 7120rm -f conftest.$ac_objext 7121if { (eval echo "$as_me:7121: \"$ac_compile\"") >&5 7122 (eval $ac_compile) 2>&5 7123 ac_status=$? 7124 echo "$as_me:7124: \$? = $ac_status" >&5 7125 (exit $ac_status); } && 7126 { ac_try='test -s conftest.$ac_objext' 7127 { (eval echo "$as_me:7127: \"$ac_try\"") >&5 7128 (eval $ac_try) 2>&5 7129 ac_status=$? 7130 echo "$as_me:7130: \$? = $ac_status" >&5 7131 (exit $ac_status); }; }; then 7132 : 7133else 7134 echo "$as_me: failed program was:" >&5 7135cat conftest.$ac_ext >&5 7136cf_have_incdir=yes 7137fi 7138rm -f conftest.$ac_objext conftest.$ac_ext 7139 CPPFLAGS=$cf_save_CPPFLAGS 7140 fi 7141 fi 7142 fi 7143 7144 if test "$cf_have_incdir" = no ; then 7145 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 7146 7147echo "${as_me:-configure}:7147: testing adding $cf_add_incdir to include-path ..." 1>&5 7148 7149 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7150 7151 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 7152 test "$cf_top_incdir" = "$cf_add_incdir" && break 7153 cf_add_incdir="$cf_top_incdir" 7154 else 7155 break 7156 fi 7157 else 7158 break 7159 fi 7160 done 7161 done 7162fi 7163 7164} 7165 7166echo "$as_me:7166: checking for $cf_ncuhdr_root header in include-path" >&5 7167echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6 7168if test "${cf_cv_ncurses_h+set}" = set; then 7169 echo $ECHO_N "(cached) $ECHO_C" >&6 7170else 7171 7172 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" 7173 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" 7174 for cf_header in $cf_header_list 7175 do 7176 7177 cat >conftest.$ac_ext <<_ACEOF 7178#line 7178 "configure" 7179#include "confdefs.h" 7180 7181#include <$cf_header> 7182int 7183main (void) 7184{ 7185 7186#ifdef NCURSES_VERSION 7187 7188printf("%s\n", NCURSES_VERSION); 7189#else 7190#ifdef __NCURSES_H 7191printf("old\n"); 7192#else 7193 make an error 7194#endif 7195#endif 7196 7197 ; 7198 return 0; 7199} 7200_ACEOF 7201rm -f conftest.$ac_objext 7202if { (eval echo "$as_me:7202: \"$ac_compile\"") >&5 7203 (eval $ac_compile) 2>&5 7204 ac_status=$? 7205 echo "$as_me:7205: \$? = $ac_status" >&5 7206 (exit $ac_status); } && 7207 { ac_try='test -s conftest.$ac_objext' 7208 { (eval echo "$as_me:7208: \"$ac_try\"") >&5 7209 (eval $ac_try) 2>&5 7210 ac_status=$? 7211 echo "$as_me:7211: \$? = $ac_status" >&5 7212 (exit $ac_status); }; }; then 7213 cf_cv_ncurses_h=$cf_header 7214 7215else 7216 echo "$as_me: failed program was:" >&5 7217cat conftest.$ac_ext >&5 7218cf_cv_ncurses_h=no 7219fi 7220rm -f conftest.$ac_objext conftest.$ac_ext 7221 7222 test "$cf_cv_ncurses_h" != no && break 7223 done 7224 7225fi 7226echo "$as_me:7226: result: $cf_cv_ncurses_h" >&5 7227echo "${ECHO_T}$cf_cv_ncurses_h" >&6 7228 7229if test "$cf_cv_ncurses_h" != no ; then 7230 cf_cv_ncurses_header=$cf_cv_ncurses_h 7231else 7232 7233echo "$as_me:7233: checking for $cf_ncuhdr_root include-path" >&5 7234echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6 7235if test "${cf_cv_ncurses_h2+set}" = set; then 7236 echo $ECHO_N "(cached) $ECHO_C" >&6 7237else 7238 7239 test -n "$verbose" && echo 7240 7241cf_search= 7242 7243# collect the current set of include-directories from compiler flags 7244cf_header_path_list="" 7245if test -n "${CFLAGS}${CPPFLAGS}" ; then 7246 for cf_header_path in $CPPFLAGS $CFLAGS 7247 do 7248 case $cf_header_path in 7249 (-I*) 7250 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 7251 7252test "x$cf_header_path" != "xNONE" && \ 7253test -d "$cf_header_path" && \ 7254 { 7255 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 7256 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 7257 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root" 7258 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include" 7259 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include" 7260 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 7261} 7262 7263 cf_header_path_list="$cf_header_path_list $cf_search" 7264 ;; 7265 esac 7266 done 7267fi 7268 7269# add the variations for the package we are looking for 7270 7271cf_search= 7272 7273test "x$prefix" != "xNONE" && \ 7274test -d "$prefix" && \ 7275 { 7276 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 7277 test -d $prefix/include && cf_search="$cf_search $prefix/include" 7278 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" 7279 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" 7280 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" 7281 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 7282} 7283 7284for cf_subdir_prefix in \ 7285 /usr \ 7286 /usr/local \ 7287 /usr/pkg \ 7288 /opt \ 7289 /opt/local \ 7290 $HOME 7291do 7292 7293test "x$cf_subdir_prefix" != "x$prefix" && \ 7294test -d "$cf_subdir_prefix" && \ 7295(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 7296 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 7297 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include" 7298 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root" 7299 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include" 7300 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include" 7301 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 7302} 7303 7304done 7305 7306test "$includedir" != NONE && \ 7307test "$includedir" != "/usr/include" && \ 7308test -d "$includedir" && { 7309 test -d $includedir && cf_search="$cf_search $includedir" 7310 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root" 7311} 7312 7313test "$oldincludedir" != NONE && \ 7314test "$oldincludedir" != "/usr/include" && \ 7315test -d "$oldincludedir" && { 7316 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 7317 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root" 7318} 7319 7320cf_search="$cf_search $cf_header_path_list" 7321 7322 test -n "$verbose" && echo search path $cf_search 7323 cf_save2_CPPFLAGS="$CPPFLAGS" 7324 for cf_incdir in $cf_search 7325 do 7326 7327if test -n "$cf_incdir" ; then 7328 for cf_add_incdir in $cf_incdir 7329 do 7330 while test $cf_add_incdir != /usr/include 7331 do 7332 if test -d $cf_add_incdir 7333 then 7334 cf_have_incdir=no 7335 if test -n "$CFLAGS$CPPFLAGS" ; then 7336 # a loop is needed to ensure we can add subdirs of existing dirs 7337 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 7338 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 7339 cf_have_incdir=yes; break 7340 fi 7341 done 7342 fi 7343 7344 if test "$cf_have_incdir" = no ; then 7345 if test "$cf_add_incdir" = /usr/local/include ; then 7346 if test "$GCC" = yes 7347 then 7348 cf_save_CPPFLAGS=$CPPFLAGS 7349 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7350 cat >conftest.$ac_ext <<_ACEOF 7351#line 7351 "configure" 7352#include "confdefs.h" 7353#include <stdio.h> 7354int 7355main (void) 7356{ 7357printf("Hello") 7358 ; 7359 return 0; 7360} 7361_ACEOF 7362rm -f conftest.$ac_objext 7363if { (eval echo "$as_me:7363: \"$ac_compile\"") >&5 7364 (eval $ac_compile) 2>&5 7365 ac_status=$? 7366 echo "$as_me:7366: \$? = $ac_status" >&5 7367 (exit $ac_status); } && 7368 { ac_try='test -s conftest.$ac_objext' 7369 { (eval echo "$as_me:7369: \"$ac_try\"") >&5 7370 (eval $ac_try) 2>&5 7371 ac_status=$? 7372 echo "$as_me:7372: \$? = $ac_status" >&5 7373 (exit $ac_status); }; }; then 7374 : 7375else 7376 echo "$as_me: failed program was:" >&5 7377cat conftest.$ac_ext >&5 7378cf_have_incdir=yes 7379fi 7380rm -f conftest.$ac_objext conftest.$ac_ext 7381 CPPFLAGS=$cf_save_CPPFLAGS 7382 fi 7383 fi 7384 fi 7385 7386 if test "$cf_have_incdir" = no ; then 7387 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 7388 7389echo "${as_me:-configure}:7389: testing adding $cf_add_incdir to include-path ..." 1>&5 7390 7391 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7392 7393 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 7394 test "$cf_top_incdir" = "$cf_add_incdir" && break 7395 cf_add_incdir="$cf_top_incdir" 7396 else 7397 break 7398 fi 7399 else 7400 break 7401 fi 7402 done 7403 done 7404fi 7405 7406 for cf_header in \ 7407 ncurses.h \ 7408 curses.h 7409 do 7410 7411 cat >conftest.$ac_ext <<_ACEOF 7412#line 7412 "configure" 7413#include "confdefs.h" 7414 7415#include <$cf_header> 7416int 7417main (void) 7418{ 7419 7420#ifdef NCURSES_VERSION 7421 7422printf("%s\n", NCURSES_VERSION); 7423#else 7424#ifdef __NCURSES_H 7425printf("old\n"); 7426#else 7427 make an error 7428#endif 7429#endif 7430 7431 ; 7432 return 0; 7433} 7434_ACEOF 7435rm -f conftest.$ac_objext 7436if { (eval echo "$as_me:7436: \"$ac_compile\"") >&5 7437 (eval $ac_compile) 2>&5 7438 ac_status=$? 7439 echo "$as_me:7439: \$? = $ac_status" >&5 7440 (exit $ac_status); } && 7441 { ac_try='test -s conftest.$ac_objext' 7442 { (eval echo "$as_me:7442: \"$ac_try\"") >&5 7443 (eval $ac_try) 2>&5 7444 ac_status=$? 7445 echo "$as_me:7445: \$? = $ac_status" >&5 7446 (exit $ac_status); }; }; then 7447 cf_cv_ncurses_h2=$cf_header 7448 7449else 7450 echo "$as_me: failed program was:" >&5 7451cat conftest.$ac_ext >&5 7452cf_cv_ncurses_h2=no 7453fi 7454rm -f conftest.$ac_objext conftest.$ac_ext 7455 7456 if test "$cf_cv_ncurses_h2" != no ; then 7457 cf_cv_ncurses_h2=$cf_incdir/$cf_header 7458 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 7459 break 7460 fi 7461 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 7462 done 7463 CPPFLAGS="$cf_save2_CPPFLAGS" 7464 test "$cf_cv_ncurses_h2" != no && break 7465 done 7466 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7466: error: not found" >&5 7467echo "$as_me: error: not found" >&2;} 7468 { (exit 1); exit 1; }; } 7469 7470fi 7471echo "$as_me:7471: result: $cf_cv_ncurses_h2" >&5 7472echo "${ECHO_T}$cf_cv_ncurses_h2" >&6 7473 7474 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` 7475 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` 7476 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then 7477 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header 7478 fi 7479 7480if test -n "$cf_1st_incdir" ; then 7481 for cf_add_incdir in $cf_1st_incdir 7482 do 7483 while test $cf_add_incdir != /usr/include 7484 do 7485 if test -d $cf_add_incdir 7486 then 7487 cf_have_incdir=no 7488 if test -n "$CFLAGS$CPPFLAGS" ; then 7489 # a loop is needed to ensure we can add subdirs of existing dirs 7490 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 7491 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 7492 cf_have_incdir=yes; break 7493 fi 7494 done 7495 fi 7496 7497 if test "$cf_have_incdir" = no ; then 7498 if test "$cf_add_incdir" = /usr/local/include ; then 7499 if test "$GCC" = yes 7500 then 7501 cf_save_CPPFLAGS=$CPPFLAGS 7502 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7503 cat >conftest.$ac_ext <<_ACEOF 7504#line 7504 "configure" 7505#include "confdefs.h" 7506#include <stdio.h> 7507int 7508main (void) 7509{ 7510printf("Hello") 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515rm -f conftest.$ac_objext 7516if { (eval echo "$as_me:7516: \"$ac_compile\"") >&5 7517 (eval $ac_compile) 2>&5 7518 ac_status=$? 7519 echo "$as_me:7519: \$? = $ac_status" >&5 7520 (exit $ac_status); } && 7521 { ac_try='test -s conftest.$ac_objext' 7522 { (eval echo "$as_me:7522: \"$ac_try\"") >&5 7523 (eval $ac_try) 2>&5 7524 ac_status=$? 7525 echo "$as_me:7525: \$? = $ac_status" >&5 7526 (exit $ac_status); }; }; then 7527 : 7528else 7529 echo "$as_me: failed program was:" >&5 7530cat conftest.$ac_ext >&5 7531cf_have_incdir=yes 7532fi 7533rm -f conftest.$ac_objext conftest.$ac_ext 7534 CPPFLAGS=$cf_save_CPPFLAGS 7535 fi 7536 fi 7537 fi 7538 7539 if test "$cf_have_incdir" = no ; then 7540 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 7541 7542echo "${as_me:-configure}:7542: testing adding $cf_add_incdir to include-path ..." 1>&5 7543 7544 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7545 7546 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 7547 test "$cf_top_incdir" = "$cf_add_incdir" && break 7548 cf_add_incdir="$cf_top_incdir" 7549 else 7550 break 7551 fi 7552 else 7553 break 7554 fi 7555 done 7556 done 7557fi 7558 7559fi 7560 7561# Set definitions to allow ifdef'ing for ncurses.h 7562 7563case $cf_cv_ncurses_header in 7564(*ncurses.h) 7565 7566cat >>confdefs.h <<\EOF 7567#define HAVE_NCURSES_H 1 7568EOF 7569 7570 ;; 7571esac 7572 7573case $cf_cv_ncurses_header in 7574(ncurses/curses.h|ncurses/ncurses.h) 7575 7576cat >>confdefs.h <<\EOF 7577#define HAVE_NCURSES_NCURSES_H 1 7578EOF 7579 7580 ;; 7581(ncursesw/curses.h|ncursesw/ncurses.h) 7582 7583cat >>confdefs.h <<\EOF 7584#define HAVE_NCURSESW_NCURSES_H 1 7585EOF 7586 7587 ;; 7588esac 7589 7590echo "$as_me:7590: checking for terminfo header" >&5 7591echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 7592if test "${cf_cv_term_header+set}" = set; then 7593 echo $ECHO_N "(cached) $ECHO_C" >&6 7594else 7595 7596case ${cf_cv_ncurses_header} in 7597(*/ncurses.h|*/ncursesw.h) 7598 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 7599 ;; 7600(*) 7601 cf_term_header=term.h 7602 ;; 7603esac 7604 7605for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 7606do 7607cat >conftest.$ac_ext <<_ACEOF 7608#line 7608 "configure" 7609#include "confdefs.h" 7610#include <stdio.h> 7611#include <${cf_cv_ncurses_header:-curses.h}> 7612#include <$cf_test> 7613 7614int 7615main (void) 7616{ 7617int x = auto_left_margin 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622rm -f conftest.$ac_objext 7623if { (eval echo "$as_me:7623: \"$ac_compile\"") >&5 7624 (eval $ac_compile) 2>&5 7625 ac_status=$? 7626 echo "$as_me:7626: \$? = $ac_status" >&5 7627 (exit $ac_status); } && 7628 { ac_try='test -s conftest.$ac_objext' 7629 { (eval echo "$as_me:7629: \"$ac_try\"") >&5 7630 (eval $ac_try) 2>&5 7631 ac_status=$? 7632 echo "$as_me:7632: \$? = $ac_status" >&5 7633 (exit $ac_status); }; }; then 7634 7635 cf_cv_term_header="$cf_test" 7636else 7637 echo "$as_me: failed program was:" >&5 7638cat conftest.$ac_ext >&5 7639 7640 cf_cv_term_header=unknown 7641 7642fi 7643rm -f conftest.$ac_objext conftest.$ac_ext 7644 test "$cf_cv_term_header" != unknown && break 7645done 7646 7647fi 7648echo "$as_me:7648: result: $cf_cv_term_header" >&5 7649echo "${ECHO_T}$cf_cv_term_header" >&6 7650 7651# Set definitions to allow ifdef'ing to accommodate subdirectories 7652 7653case $cf_cv_term_header in 7654(*term.h) 7655 7656cat >>confdefs.h <<\EOF 7657#define HAVE_TERM_H 1 7658EOF 7659 7660 ;; 7661esac 7662 7663case $cf_cv_term_header in 7664(ncurses/term.h) 7665 7666cat >>confdefs.h <<\EOF 7667#define HAVE_NCURSES_TERM_H 1 7668EOF 7669 7670 ;; 7671(ncursesw/term.h) 7672 7673cat >>confdefs.h <<\EOF 7674#define HAVE_NCURSESW_TERM_H 1 7675EOF 7676 7677 ;; 7678esac 7679 7680# some applications need this, but should check for NCURSES_VERSION 7681 7682cat >>confdefs.h <<\EOF 7683#define NCURSES 1 7684EOF 7685 7686echo "$as_me:7686: checking for ncurses version" >&5 7687echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 7688if test "${cf_cv_ncurses_version+set}" = set; then 7689 echo $ECHO_N "(cached) $ECHO_C" >&6 7690else 7691 7692 cf_cv_ncurses_version=no 7693 cf_tempfile=out$$ 7694 rm -f $cf_tempfile 7695 if test "$cross_compiling" = yes; then 7696 7697 # This will not work if the preprocessor splits the line after the 7698 # Autoconf token. The 'unproto' program does that. 7699 cat > conftest.$ac_ext <<EOF 7700#include <${cf_cv_ncurses_header:-curses.h}> 7701#undef Autoconf 7702#ifdef NCURSES_VERSION 7703Autoconf NCURSES_VERSION 7704#else 7705#ifdef __NCURSES_H 7706Autoconf "old" 7707#endif 7708; 7709#endif 7710EOF 7711 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 7712 { (eval echo "$as_me:7712: \"$cf_try\"") >&5 7713 (eval $cf_try) 2>&5 7714 ac_status=$? 7715 echo "$as_me:7715: \$? = $ac_status" >&5 7716 (exit $ac_status); } 7717 if test -f conftest.out ; then 7718 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 7719 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 7720 rm -f conftest.out 7721 fi 7722 7723else 7724 cat >conftest.$ac_ext <<_ACEOF 7725#line 7725 "configure" 7726#include "confdefs.h" 7727 7728#include <${cf_cv_ncurses_header:-curses.h}> 7729#include <stdio.h> 7730int main(void) 7731{ 7732 FILE *fp = fopen("$cf_tempfile", "w"); 7733#ifdef NCURSES_VERSION 7734# ifdef NCURSES_VERSION_PATCH 7735 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 7736# else 7737 fprintf(fp, "%s\n", NCURSES_VERSION); 7738# endif 7739#else 7740# ifdef __NCURSES_H 7741 fprintf(fp, "old\n"); 7742# else 7743 make an error 7744# endif 7745#endif 7746 ${cf_cv_main_return:-return}(0); 7747} 7748_ACEOF 7749rm -f conftest$ac_exeext 7750if { (eval echo "$as_me:7750: \"$ac_link\"") >&5 7751 (eval $ac_link) 2>&5 7752 ac_status=$? 7753 echo "$as_me:7753: \$? = $ac_status" >&5 7754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7755 { (eval echo "$as_me:7755: \"$ac_try\"") >&5 7756 (eval $ac_try) 2>&5 7757 ac_status=$? 7758 echo "$as_me:7758: \$? = $ac_status" >&5 7759 (exit $ac_status); }; }; then 7760 7761 cf_cv_ncurses_version=`cat $cf_tempfile` 7762else 7763 echo "$as_me: program exited with status $ac_status" >&5 7764echo "$as_me: failed program was:" >&5 7765cat conftest.$ac_ext >&5 7766fi 7767rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7768fi 7769 rm -f $cf_tempfile 7770 7771fi 7772echo "$as_me:7772: result: $cf_cv_ncurses_version" >&5 7773echo "${ECHO_T}$cf_cv_ncurses_version" >&6 7774test "$cf_cv_ncurses_version" = no || 7775cat >>confdefs.h <<\EOF 7776#define NCURSES 1 7777EOF 7778 7779cf_nculib_root=$cf_cv_screen 7780 # This works, except for the special case where we find gpm, but 7781 # ncurses is in a nonstandard location via $LIBS, and we really want 7782 # to link gpm. 7783cf_ncurses_LIBS="" 7784cf_ncurses_SAVE="$LIBS" 7785echo "$as_me:7785: checking for Gpm_Open in -lgpm" >&5 7786echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 7787if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 7788 echo $ECHO_N "(cached) $ECHO_C" >&6 7789else 7790 ac_check_lib_save_LIBS=$LIBS 7791LIBS="-lgpm $LIBS" 7792cat >conftest.$ac_ext <<_ACEOF 7793#line 7793 "configure" 7794#include "confdefs.h" 7795 7796/* Override any gcc2 internal prototype to avoid an error. */ 7797#ifdef __cplusplus 7798extern "C" 7799#endif 7800/* We use char because int might match the return type of a gcc2 7801 builtin and then its argument prototype would still apply. */ 7802char Gpm_Open (); 7803int 7804main (void) 7805{ 7806Gpm_Open (); 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811rm -f conftest.$ac_objext conftest$ac_exeext 7812if { (eval echo "$as_me:7812: \"$ac_link\"") >&5 7813 (eval $ac_link) 2>&5 7814 ac_status=$? 7815 echo "$as_me:7815: \$? = $ac_status" >&5 7816 (exit $ac_status); } && 7817 { ac_try='test -s conftest$ac_exeext' 7818 { (eval echo "$as_me:7818: \"$ac_try\"") >&5 7819 (eval $ac_try) 2>&5 7820 ac_status=$? 7821 echo "$as_me:7821: \$? = $ac_status" >&5 7822 (exit $ac_status); }; }; then 7823 ac_cv_lib_gpm_Gpm_Open=yes 7824else 7825 echo "$as_me: failed program was:" >&5 7826cat conftest.$ac_ext >&5 7827ac_cv_lib_gpm_Gpm_Open=no 7828fi 7829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7830LIBS=$ac_check_lib_save_LIBS 7831fi 7832echo "$as_me:7832: result: $ac_cv_lib_gpm_Gpm_Open" >&5 7833echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 7834if test $ac_cv_lib_gpm_Gpm_Open = yes; then 7835 echo "$as_me:7835: checking for initscr in -lgpm" >&5 7836echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6 7837if test "${ac_cv_lib_gpm_initscr+set}" = set; then 7838 echo $ECHO_N "(cached) $ECHO_C" >&6 7839else 7840 ac_check_lib_save_LIBS=$LIBS 7841LIBS="-lgpm $LIBS" 7842cat >conftest.$ac_ext <<_ACEOF 7843#line 7843 "configure" 7844#include "confdefs.h" 7845 7846/* Override any gcc2 internal prototype to avoid an error. */ 7847#ifdef __cplusplus 7848extern "C" 7849#endif 7850/* We use char because int might match the return type of a gcc2 7851 builtin and then its argument prototype would still apply. */ 7852char initscr (); 7853int 7854main (void) 7855{ 7856initscr (); 7857 ; 7858 return 0; 7859} 7860_ACEOF 7861rm -f conftest.$ac_objext conftest$ac_exeext 7862if { (eval echo "$as_me:7862: \"$ac_link\"") >&5 7863 (eval $ac_link) 2>&5 7864 ac_status=$? 7865 echo "$as_me:7865: \$? = $ac_status" >&5 7866 (exit $ac_status); } && 7867 { ac_try='test -s conftest$ac_exeext' 7868 { (eval echo "$as_me:7868: \"$ac_try\"") >&5 7869 (eval $ac_try) 2>&5 7870 ac_status=$? 7871 echo "$as_me:7871: \$? = $ac_status" >&5 7872 (exit $ac_status); }; }; then 7873 ac_cv_lib_gpm_initscr=yes 7874else 7875 echo "$as_me: failed program was:" >&5 7876cat conftest.$ac_ext >&5 7877ac_cv_lib_gpm_initscr=no 7878fi 7879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7880LIBS=$ac_check_lib_save_LIBS 7881fi 7882echo "$as_me:7882: result: $ac_cv_lib_gpm_initscr" >&5 7883echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6 7884if test $ac_cv_lib_gpm_initscr = yes; then 7885 LIBS="$cf_ncurses_SAVE" 7886else 7887 cf_ncurses_LIBS="-lgpm" 7888fi 7889 7890fi 7891 7892case $host_os in 7893(freebsd*) 7894 # This is only necessary if you are linking against an obsolete 7895 # version of ncurses (but it should do no harm, since it's static). 7896 if test "$cf_nculib_root" = ncurses ; then 7897 echo "$as_me:7897: checking for tgoto in -lmytinfo" >&5 7898echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 7899if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 7900 echo $ECHO_N "(cached) $ECHO_C" >&6 7901else 7902 ac_check_lib_save_LIBS=$LIBS 7903LIBS="-lmytinfo $LIBS" 7904cat >conftest.$ac_ext <<_ACEOF 7905#line 7905 "configure" 7906#include "confdefs.h" 7907 7908/* Override any gcc2 internal prototype to avoid an error. */ 7909#ifdef __cplusplus 7910extern "C" 7911#endif 7912/* We use char because int might match the return type of a gcc2 7913 builtin and then its argument prototype would still apply. */ 7914char tgoto (); 7915int 7916main (void) 7917{ 7918tgoto (); 7919 ; 7920 return 0; 7921} 7922_ACEOF 7923rm -f conftest.$ac_objext conftest$ac_exeext 7924if { (eval echo "$as_me:7924: \"$ac_link\"") >&5 7925 (eval $ac_link) 2>&5 7926 ac_status=$? 7927 echo "$as_me:7927: \$? = $ac_status" >&5 7928 (exit $ac_status); } && 7929 { ac_try='test -s conftest$ac_exeext' 7930 { (eval echo "$as_me:7930: \"$ac_try\"") >&5 7931 (eval $ac_try) 2>&5 7932 ac_status=$? 7933 echo "$as_me:7933: \$? = $ac_status" >&5 7934 (exit $ac_status); }; }; then 7935 ac_cv_lib_mytinfo_tgoto=yes 7936else 7937 echo "$as_me: failed program was:" >&5 7938cat conftest.$ac_ext >&5 7939ac_cv_lib_mytinfo_tgoto=no 7940fi 7941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7942LIBS=$ac_check_lib_save_LIBS 7943fi 7944echo "$as_me:7944: result: $ac_cv_lib_mytinfo_tgoto" >&5 7945echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 7946if test $ac_cv_lib_mytinfo_tgoto = yes; then 7947 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS" 7948fi 7949 7950 fi 7951 ;; 7952esac 7953 7954cf_add_libs="$cf_ncurses_LIBS" 7955# Filter out duplicates - this happens with badly-designed ".pc" files... 7956for cf_add_1lib in $LIBS 7957do 7958 for cf_add_2lib in $cf_add_libs 7959 do 7960 if test "x$cf_add_1lib" = "x$cf_add_2lib" 7961 then 7962 cf_add_1lib= 7963 break 7964 fi 7965 done 7966 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 7967done 7968LIBS="$cf_add_libs" 7969 7970if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 7971then 7972 7973cf_add_libs="-l$cf_nculib_root" 7974# Filter out duplicates - this happens with badly-designed ".pc" files... 7975for cf_add_1lib in $LIBS 7976do 7977 for cf_add_2lib in $cf_add_libs 7978 do 7979 if test "x$cf_add_1lib" = "x$cf_add_2lib" 7980 then 7981 cf_add_1lib= 7982 break 7983 fi 7984 done 7985 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 7986done 7987LIBS="$cf_add_libs" 7988 7989else 7990 7991 eval 'cf_cv_have_lib_'$cf_nculib_root'=no' 7992 cf_libdir="" 7993 echo "$as_me:7993: checking for initscr" >&5 7994echo $ECHO_N "checking for initscr... $ECHO_C" >&6 7995if test "${ac_cv_func_initscr+set}" = set; then 7996 echo $ECHO_N "(cached) $ECHO_C" >&6 7997else 7998 cat >conftest.$ac_ext <<_ACEOF 7999#line 7999 "configure" 8000#include "confdefs.h" 8001/* System header to define __stub macros and hopefully few prototypes, 8002 which can conflict with char initscr (); below. */ 8003#include <assert.h> 8004/* Override any gcc2 internal prototype to avoid an error. */ 8005#ifdef __cplusplus 8006extern "C" 8007#endif 8008/* We use char because int might match the return type of a gcc2 8009 builtin and then its argument prototype would still apply. */ 8010char initscr (); 8011char (*f) (); 8012 8013int 8014main (void) 8015{ 8016/* The GNU C library defines this for functions which it implements 8017 to always fail with ENOSYS. Some functions are actually named 8018 something starting with __ and the normal name is an alias. */ 8019#if defined (__stub_initscr) || defined (__stub___initscr) 8020choke me 8021#else 8022f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8023#endif 8024 8025 ; 8026 return 0; 8027} 8028_ACEOF 8029rm -f conftest.$ac_objext conftest$ac_exeext 8030if { (eval echo "$as_me:8030: \"$ac_link\"") >&5 8031 (eval $ac_link) 2>&5 8032 ac_status=$? 8033 echo "$as_me:8033: \$? = $ac_status" >&5 8034 (exit $ac_status); } && 8035 { ac_try='test -s conftest$ac_exeext' 8036 { (eval echo "$as_me:8036: \"$ac_try\"") >&5 8037 (eval $ac_try) 2>&5 8038 ac_status=$? 8039 echo "$as_me:8039: \$? = $ac_status" >&5 8040 (exit $ac_status); }; }; then 8041 ac_cv_func_initscr=yes 8042else 8043 echo "$as_me: failed program was:" >&5 8044cat conftest.$ac_ext >&5 8045ac_cv_func_initscr=no 8046fi 8047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8048fi 8049echo "$as_me:8049: result: $ac_cv_func_initscr" >&5 8050echo "${ECHO_T}$ac_cv_func_initscr" >&6 8051if test $ac_cv_func_initscr = yes; then 8052 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 8053else 8054 8055 cf_save_LIBS="$LIBS" 8056 echo "$as_me:8056: checking for initscr in -l$cf_nculib_root" >&5 8057echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6 8058 LIBS="-l$cf_nculib_root $LIBS" 8059 cat >conftest.$ac_ext <<_ACEOF 8060#line 8060 "configure" 8061#include "confdefs.h" 8062#include <${cf_cv_ncurses_header:-curses.h}> 8063int 8064main (void) 8065{ 8066initscr() 8067 ; 8068 return 0; 8069} 8070_ACEOF 8071rm -f conftest.$ac_objext conftest$ac_exeext 8072if { (eval echo "$as_me:8072: \"$ac_link\"") >&5 8073 (eval $ac_link) 2>&5 8074 ac_status=$? 8075 echo "$as_me:8075: \$? = $ac_status" >&5 8076 (exit $ac_status); } && 8077 { ac_try='test -s conftest$ac_exeext' 8078 { (eval echo "$as_me:8078: \"$ac_try\"") >&5 8079 (eval $ac_try) 2>&5 8080 ac_status=$? 8081 echo "$as_me:8081: \$? = $ac_status" >&5 8082 (exit $ac_status); }; }; then 8083 echo "$as_me:8083: result: yes" >&5 8084echo "${ECHO_T}yes" >&6 8085 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 8086 8087else 8088 echo "$as_me: failed program was:" >&5 8089cat conftest.$ac_ext >&5 8090echo "$as_me:8090: result: no" >&5 8091echo "${ECHO_T}no" >&6 8092 8093cf_search= 8094cf_library_path_list="" 8095if test -n "${LDFLAGS}${LIBS}" ; then 8096 for cf_library_path in $LDFLAGS $LIBS 8097 do 8098 case $cf_library_path in 8099 (-L*) 8100 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 8101 8102test "x$cf_library_path" != "xNONE" && \ 8103test -d "$cf_library_path" && \ 8104 { 8105 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 8106 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 8107 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root" 8108 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib" 8109 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib" 8110 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" 8111} 8112 8113 cf_library_path_list="$cf_library_path_list $cf_search" 8114 ;; 8115 esac 8116 done 8117fi 8118 8119cf_search= 8120 8121test "x$prefix" != "xNONE" && \ 8122test -d "$prefix" && \ 8123 { 8124 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 8125 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 8126 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root" 8127 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib" 8128 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib" 8129 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root" 8130} 8131 8132for cf_subdir_prefix in \ 8133 /usr \ 8134 /usr/local \ 8135 /usr/pkg \ 8136 /opt \ 8137 /opt/local \ 8138 $HOME 8139do 8140 8141test "x$cf_subdir_prefix" != "x$prefix" && \ 8142test -d "$cf_subdir_prefix" && \ 8143(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 8144 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 8145 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib" 8146 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root" 8147 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib" 8148 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib" 8149 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" 8150} 8151 8152done 8153 8154cf_search="$cf_library_path_list $cf_search" 8155 8156 for cf_libdir in $cf_search 8157 do 8158 echo "$as_me:8158: checking for -l$cf_nculib_root in $cf_libdir" >&5 8159echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6 8160 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS" 8161 cat >conftest.$ac_ext <<_ACEOF 8162#line 8162 "configure" 8163#include "confdefs.h" 8164#include <${cf_cv_ncurses_header:-curses.h}> 8165int 8166main (void) 8167{ 8168initscr() 8169 ; 8170 return 0; 8171} 8172_ACEOF 8173rm -f conftest.$ac_objext conftest$ac_exeext 8174if { (eval echo "$as_me:8174: \"$ac_link\"") >&5 8175 (eval $ac_link) 2>&5 8176 ac_status=$? 8177 echo "$as_me:8177: \$? = $ac_status" >&5 8178 (exit $ac_status); } && 8179 { ac_try='test -s conftest$ac_exeext' 8180 { (eval echo "$as_me:8180: \"$ac_try\"") >&5 8181 (eval $ac_try) 2>&5 8182 ac_status=$? 8183 echo "$as_me:8183: \$? = $ac_status" >&5 8184 (exit $ac_status); }; }; then 8185 echo "$as_me:8185: result: yes" >&5 8186echo "${ECHO_T}yes" >&6 8187 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 8188 break 8189else 8190 echo "$as_me: failed program was:" >&5 8191cat conftest.$ac_ext >&5 8192echo "$as_me:8192: result: no" >&5 8193echo "${ECHO_T}no" >&6 8194 LIBS="$cf_save_LIBS" 8195fi 8196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8197 done 8198 8199fi 8200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8201 8202fi 8203 8204eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root 8205 8206if test $cf_found_library = no ; then 8207 { { echo "$as_me:8207: error: Cannot link $cf_nculib_root library" >&5 8208echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;} 8209 { (exit 1); exit 1; }; } 8210fi 8211 8212fi 8213 8214if test -n "$cf_ncurses_LIBS" ; then 8215 echo "$as_me:8215: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5 8216echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6 8217 cf_ncurses_SAVE="$LIBS" 8218 for p in $cf_ncurses_LIBS ; do 8219 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"` 8220 if test "$q" != "$LIBS" ; then 8221 LIBS="$q" 8222 fi 8223 done 8224 cat >conftest.$ac_ext <<_ACEOF 8225#line 8225 "configure" 8226#include "confdefs.h" 8227#include <${cf_cv_ncurses_header:-curses.h}> 8228int 8229main (void) 8230{ 8231initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 8232 ; 8233 return 0; 8234} 8235_ACEOF 8236rm -f conftest.$ac_objext conftest$ac_exeext 8237if { (eval echo "$as_me:8237: \"$ac_link\"") >&5 8238 (eval $ac_link) 2>&5 8239 ac_status=$? 8240 echo "$as_me:8240: \$? = $ac_status" >&5 8241 (exit $ac_status); } && 8242 { ac_try='test -s conftest$ac_exeext' 8243 { (eval echo "$as_me:8243: \"$ac_try\"") >&5 8244 (eval $ac_try) 2>&5 8245 ac_status=$? 8246 echo "$as_me:8246: \$? = $ac_status" >&5 8247 (exit $ac_status); }; }; then 8248 echo "$as_me:8248: result: yes" >&5 8249echo "${ECHO_T}yes" >&6 8250else 8251 echo "$as_me: failed program was:" >&5 8252cat conftest.$ac_ext >&5 8253echo "$as_me:8253: result: no" >&5 8254echo "${ECHO_T}no" >&6 8255 LIBS="$cf_ncurses_SAVE" 8256fi 8257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8258fi 8259 8260cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8261 8262cat >>confdefs.h <<EOF 8263#define $cf_nculib_ROOT 1 8264EOF 8265 8266 fi 8267else 8268 NCURSES_CONFIG=none 8269fi 8270 8271 ;; 8272(ncurses*) 8273 8274cf_ncuconfig_root=$cf_cv_screen 8275cf_have_ncuconfig=no 8276 8277if test "x${PKG_CONFIG:=none}" != xnone; then 8278 echo "$as_me:8278: checking pkg-config for $cf_ncuconfig_root" >&5 8279echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6 8280 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then 8281 echo "$as_me:8281: result: yes" >&5 8282echo "${ECHO_T}yes" >&6 8283 8284 echo "$as_me:8284: checking if the $cf_ncuconfig_root package files work" >&5 8285echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6 8286 cf_have_ncuconfig=unknown 8287 8288 cf_save_CPPFLAGS="$CPPFLAGS" 8289 cf_save_LIBS="$LIBS" 8290 8291 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`" 8292 8293cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`" 8294# Filter out duplicates - this happens with badly-designed ".pc" files... 8295for cf_add_1lib in $LIBS 8296do 8297 for cf_add_2lib in $cf_add_libs 8298 do 8299 if test "x$cf_add_1lib" = "x$cf_add_2lib" 8300 then 8301 cf_add_1lib= 8302 break 8303 fi 8304 done 8305 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 8306done 8307LIBS="$cf_add_libs" 8308 8309 cat >conftest.$ac_ext <<_ACEOF 8310#line 8310 "configure" 8311#include "confdefs.h" 8312#include <${cf_cv_ncurses_header:-curses.h}> 8313int 8314main (void) 8315{ 8316initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321rm -f conftest.$ac_objext conftest$ac_exeext 8322if { (eval echo "$as_me:8322: \"$ac_link\"") >&5 8323 (eval $ac_link) 2>&5 8324 ac_status=$? 8325 echo "$as_me:8325: \$? = $ac_status" >&5 8326 (exit $ac_status); } && 8327 { ac_try='test -s conftest$ac_exeext' 8328 { (eval echo "$as_me:8328: \"$ac_try\"") >&5 8329 (eval $ac_try) 2>&5 8330 ac_status=$? 8331 echo "$as_me:8331: \$? = $ac_status" >&5 8332 (exit $ac_status); }; }; then 8333 if test "$cross_compiling" = yes; then 8334 cf_have_ncuconfig=maybe 8335else 8336 cat >conftest.$ac_ext <<_ACEOF 8337#line 8337 "configure" 8338#include "confdefs.h" 8339#include <${cf_cv_ncurses_header:-curses.h}> 8340 int main(void) 8341 { char *xx = curses_version(); return (xx == 0); } 8342_ACEOF 8343rm -f conftest$ac_exeext 8344if { (eval echo "$as_me:8344: \"$ac_link\"") >&5 8345 (eval $ac_link) 2>&5 8346 ac_status=$? 8347 echo "$as_me:8347: \$? = $ac_status" >&5 8348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8349 { (eval echo "$as_me:8349: \"$ac_try\"") >&5 8350 (eval $ac_try) 2>&5 8351 ac_status=$? 8352 echo "$as_me:8352: \$? = $ac_status" >&5 8353 (exit $ac_status); }; }; then 8354 cf_have_ncuconfig=yes 8355else 8356 echo "$as_me: program exited with status $ac_status" >&5 8357echo "$as_me: failed program was:" >&5 8358cat conftest.$ac_ext >&5 8359cf_have_ncuconfig=no 8360fi 8361rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8362fi 8363else 8364 echo "$as_me: failed program was:" >&5 8365cat conftest.$ac_ext >&5 8366cf_have_ncuconfig=no 8367fi 8368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8369 echo "$as_me:8369: result: $cf_have_ncuconfig" >&5 8370echo "${ECHO_T}$cf_have_ncuconfig" >&6 8371 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes 8372 if test "$cf_have_ncuconfig" != "yes" 8373 then 8374 CPPFLAGS="$cf_save_CPPFLAGS" 8375 LIBS="$cf_save_LIBS" 8376 NCURSES_CONFIG_PKG=none 8377 else 8378 8379cat >>confdefs.h <<\EOF 8380#define NCURSES 1 8381EOF 8382 8383 NCURSES_CONFIG_PKG=$cf_ncuconfig_root 8384 8385echo "$as_me:8385: checking for terminfo header" >&5 8386echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 8387if test "${cf_cv_term_header+set}" = set; then 8388 echo $ECHO_N "(cached) $ECHO_C" >&6 8389else 8390 8391case ${cf_cv_ncurses_header} in 8392(*/ncurses.h|*/ncursesw.h) 8393 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 8394 ;; 8395(*) 8396 cf_term_header=term.h 8397 ;; 8398esac 8399 8400for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 8401do 8402cat >conftest.$ac_ext <<_ACEOF 8403#line 8403 "configure" 8404#include "confdefs.h" 8405#include <stdio.h> 8406#include <${cf_cv_ncurses_header:-curses.h}> 8407#include <$cf_test> 8408 8409int 8410main (void) 8411{ 8412int x = auto_left_margin 8413 ; 8414 return 0; 8415} 8416_ACEOF 8417rm -f conftest.$ac_objext 8418if { (eval echo "$as_me:8418: \"$ac_compile\"") >&5 8419 (eval $ac_compile) 2>&5 8420 ac_status=$? 8421 echo "$as_me:8421: \$? = $ac_status" >&5 8422 (exit $ac_status); } && 8423 { ac_try='test -s conftest.$ac_objext' 8424 { (eval echo "$as_me:8424: \"$ac_try\"") >&5 8425 (eval $ac_try) 2>&5 8426 ac_status=$? 8427 echo "$as_me:8427: \$? = $ac_status" >&5 8428 (exit $ac_status); }; }; then 8429 8430 cf_cv_term_header="$cf_test" 8431else 8432 echo "$as_me: failed program was:" >&5 8433cat conftest.$ac_ext >&5 8434 8435 cf_cv_term_header=unknown 8436 8437fi 8438rm -f conftest.$ac_objext conftest.$ac_ext 8439 test "$cf_cv_term_header" != unknown && break 8440done 8441 8442fi 8443echo "$as_me:8443: result: $cf_cv_term_header" >&5 8444echo "${ECHO_T}$cf_cv_term_header" >&6 8445 8446# Set definitions to allow ifdef'ing to accommodate subdirectories 8447 8448case $cf_cv_term_header in 8449(*term.h) 8450 8451cat >>confdefs.h <<\EOF 8452#define HAVE_TERM_H 1 8453EOF 8454 8455 ;; 8456esac 8457 8458case $cf_cv_term_header in 8459(ncurses/term.h) 8460 8461cat >>confdefs.h <<\EOF 8462#define HAVE_NCURSES_TERM_H 1 8463EOF 8464 8465 ;; 8466(ncursesw/term.h) 8467 8468cat >>confdefs.h <<\EOF 8469#define HAVE_NCURSESW_TERM_H 1 8470EOF 8471 8472 ;; 8473esac 8474 8475 fi 8476 8477 else 8478 echo "$as_me:8478: result: no" >&5 8479echo "${ECHO_T}no" >&6 8480 NCURSES_CONFIG_PKG=none 8481 fi 8482else 8483 NCURSES_CONFIG_PKG=none 8484fi 8485 8486if test "x$cf_have_ncuconfig" = "xno"; then 8487 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}" 8488 8489if test -n "$ac_tool_prefix"; then 8490 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 8491 do 8492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8493set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8494echo "$as_me:8494: checking for $ac_word" >&5 8495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8496if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then 8497 echo $ECHO_N "(cached) $ECHO_C" >&6 8498else 8499 if test -n "$NCURSES_CONFIG"; then 8500 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test. 8501else 8502 ac_save_IFS=$IFS; IFS=$ac_path_separator 8503ac_dummy="$PATH" 8504for ac_dir in $ac_dummy; do 8505 IFS=$ac_save_IFS 8506 test -z "$ac_dir" && ac_dir=. 8507 $as_executable_p "$ac_dir/$ac_word" || continue 8508ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog" 8509echo "$as_me:8509: found $ac_dir/$ac_word" >&5 8510break 8511done 8512 8513fi 8514fi 8515NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG 8516if test -n "$NCURSES_CONFIG"; then 8517 echo "$as_me:8517: result: $NCURSES_CONFIG" >&5 8518echo "${ECHO_T}$NCURSES_CONFIG" >&6 8519else 8520 echo "$as_me:8520: result: no" >&5 8521echo "${ECHO_T}no" >&6 8522fi 8523 8524 test -n "$NCURSES_CONFIG" && break 8525 done 8526fi 8527if test -z "$NCURSES_CONFIG"; then 8528 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG 8529 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 8530do 8531 # Extract the first word of "$ac_prog", so it can be a program name with args. 8532set dummy $ac_prog; ac_word=$2 8533echo "$as_me:8533: checking for $ac_word" >&5 8534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8535if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then 8536 echo $ECHO_N "(cached) $ECHO_C" >&6 8537else 8538 if test -n "$ac_ct_NCURSES_CONFIG"; then 8539 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test. 8540else 8541 ac_save_IFS=$IFS; IFS=$ac_path_separator 8542ac_dummy="$PATH" 8543for ac_dir in $ac_dummy; do 8544 IFS=$ac_save_IFS 8545 test -z "$ac_dir" && ac_dir=. 8546 $as_executable_p "$ac_dir/$ac_word" || continue 8547ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog" 8548echo "$as_me:8548: found $ac_dir/$ac_word" >&5 8549break 8550done 8551 8552fi 8553fi 8554ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG 8555if test -n "$ac_ct_NCURSES_CONFIG"; then 8556 echo "$as_me:8556: result: $ac_ct_NCURSES_CONFIG" >&5 8557echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6 8558else 8559 echo "$as_me:8559: result: no" >&5 8560echo "${ECHO_T}no" >&6 8561fi 8562 8563 test -n "$ac_ct_NCURSES_CONFIG" && break 8564done 8565test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none" 8566 8567 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG 8568fi 8569 8570 if test "$NCURSES_CONFIG" != none ; then 8571 8572 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`" 8573 8574cf_add_libs="`$NCURSES_CONFIG --libs`" 8575# Filter out duplicates - this happens with badly-designed ".pc" files... 8576for cf_add_1lib in $LIBS 8577do 8578 for cf_add_2lib in $cf_add_libs 8579 do 8580 if test "x$cf_add_1lib" = "x$cf_add_2lib" 8581 then 8582 cf_add_1lib= 8583 break 8584 fi 8585 done 8586 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 8587done 8588LIBS="$cf_add_libs" 8589 8590 # even with config script, some packages use no-override for curses.h 8591 8592echo "$as_me:8592: checking if we have identified curses headers" >&5 8593echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 8594if test "${cf_cv_ncurses_header+set}" = set; then 8595 echo $ECHO_N "(cached) $ECHO_C" >&6 8596else 8597 8598cf_cv_ncurses_header=none 8599for cf_header in \ 8600 ncurses.h $cf_cv_screen/ncurses.h \ 8601 curses.h $cf_cv_screen/curses.h 8602do 8603cat >conftest.$ac_ext <<_ACEOF 8604#line 8604 "configure" 8605#include "confdefs.h" 8606#include <${cf_header}> 8607int 8608main (void) 8609{ 8610initscr(); tgoto("?", 0,0) 8611 ; 8612 return 0; 8613} 8614_ACEOF 8615rm -f conftest.$ac_objext 8616if { (eval echo "$as_me:8616: \"$ac_compile\"") >&5 8617 (eval $ac_compile) 2>&5 8618 ac_status=$? 8619 echo "$as_me:8619: \$? = $ac_status" >&5 8620 (exit $ac_status); } && 8621 { ac_try='test -s conftest.$ac_objext' 8622 { (eval echo "$as_me:8622: \"$ac_try\"") >&5 8623 (eval $ac_try) 2>&5 8624 ac_status=$? 8625 echo "$as_me:8625: \$? = $ac_status" >&5 8626 (exit $ac_status); }; }; then 8627 cf_cv_ncurses_header=$cf_header; break 8628else 8629 echo "$as_me: failed program was:" >&5 8630cat conftest.$ac_ext >&5 8631fi 8632rm -f conftest.$ac_objext conftest.$ac_ext 8633done 8634 8635fi 8636echo "$as_me:8636: result: $cf_cv_ncurses_header" >&5 8637echo "${ECHO_T}$cf_cv_ncurses_header" >&6 8638 8639if test "$cf_cv_ncurses_header" = none ; then 8640 { { echo "$as_me:8640: error: No curses header-files found" >&5 8641echo "$as_me: error: No curses header-files found" >&2;} 8642 { (exit 1); exit 1; }; } 8643fi 8644 8645# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 8646 8647for ac_header in $cf_cv_ncurses_header 8648do 8649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8650echo "$as_me:8650: checking for $ac_header" >&5 8651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8652if eval "test \"\${$as_ac_Header+set}\" = set"; then 8653 echo $ECHO_N "(cached) $ECHO_C" >&6 8654else 8655 cat >conftest.$ac_ext <<_ACEOF 8656#line 8656 "configure" 8657#include "confdefs.h" 8658#include <$ac_header> 8659_ACEOF 8660if { (eval echo "$as_me:8660: \"$ac_cpp conftest.$ac_ext\"") >&5 8661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8662 ac_status=$? 8663 egrep -v '^ *\+' conftest.er1 >conftest.err 8664 rm -f conftest.er1 8665 cat conftest.err >&5 8666 echo "$as_me:8666: \$? = $ac_status" >&5 8667 (exit $ac_status); } >/dev/null; then 8668 if test -s conftest.err; then 8669 ac_cpp_err=$ac_c_preproc_warn_flag 8670 else 8671 ac_cpp_err= 8672 fi 8673else 8674 ac_cpp_err=yes 8675fi 8676if test -z "$ac_cpp_err"; then 8677 eval "$as_ac_Header=yes" 8678else 8679 echo "$as_me: failed program was:" >&5 8680 cat conftest.$ac_ext >&5 8681 eval "$as_ac_Header=no" 8682fi 8683rm -f conftest.err conftest.$ac_ext 8684fi 8685echo "$as_me:8685: result: `eval echo '${'$as_ac_Header'}'`" >&5 8686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8687if test `eval echo '${'$as_ac_Header'}'` = yes; then 8688 cat >>confdefs.h <<EOF 8689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8690EOF 8691 8692fi 8693done 8694 8695cat >>confdefs.h <<\EOF 8696#define NCURSES 1 8697EOF 8698 8699cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8700 8701 cat >>confdefs.h <<EOF 8702#define $cf_nculib_ROOT 1 8703EOF 8704 8705 cf_cv_ncurses_version=`$NCURSES_CONFIG --version` 8706 8707 else 8708 8709cf_ncuhdr_root=$cf_cv_screen 8710 8711test -n "$cf_cv_curses_dir" && \ 8712test "$cf_cv_curses_dir" != "no" && { \ 8713 8714if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then 8715 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root 8716 do 8717 while test $cf_add_incdir != /usr/include 8718 do 8719 if test -d $cf_add_incdir 8720 then 8721 cf_have_incdir=no 8722 if test -n "$CFLAGS$CPPFLAGS" ; then 8723 # a loop is needed to ensure we can add subdirs of existing dirs 8724 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 8725 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 8726 cf_have_incdir=yes; break 8727 fi 8728 done 8729 fi 8730 8731 if test "$cf_have_incdir" = no ; then 8732 if test "$cf_add_incdir" = /usr/local/include ; then 8733 if test "$GCC" = yes 8734 then 8735 cf_save_CPPFLAGS=$CPPFLAGS 8736 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8737 cat >conftest.$ac_ext <<_ACEOF 8738#line 8738 "configure" 8739#include "confdefs.h" 8740#include <stdio.h> 8741int 8742main (void) 8743{ 8744printf("Hello") 8745 ; 8746 return 0; 8747} 8748_ACEOF 8749rm -f conftest.$ac_objext 8750if { (eval echo "$as_me:8750: \"$ac_compile\"") >&5 8751 (eval $ac_compile) 2>&5 8752 ac_status=$? 8753 echo "$as_me:8753: \$? = $ac_status" >&5 8754 (exit $ac_status); } && 8755 { ac_try='test -s conftest.$ac_objext' 8756 { (eval echo "$as_me:8756: \"$ac_try\"") >&5 8757 (eval $ac_try) 2>&5 8758 ac_status=$? 8759 echo "$as_me:8759: \$? = $ac_status" >&5 8760 (exit $ac_status); }; }; then 8761 : 8762else 8763 echo "$as_me: failed program was:" >&5 8764cat conftest.$ac_ext >&5 8765cf_have_incdir=yes 8766fi 8767rm -f conftest.$ac_objext conftest.$ac_ext 8768 CPPFLAGS=$cf_save_CPPFLAGS 8769 fi 8770 fi 8771 fi 8772 8773 if test "$cf_have_incdir" = no ; then 8774 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 8775 8776echo "${as_me:-configure}:8776: testing adding $cf_add_incdir to include-path ..." 1>&5 8777 8778 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8779 8780 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 8781 test "$cf_top_incdir" = "$cf_add_incdir" && break 8782 cf_add_incdir="$cf_top_incdir" 8783 else 8784 break 8785 fi 8786 else 8787 break 8788 fi 8789 done 8790 done 8791fi 8792 8793} 8794 8795echo "$as_me:8795: checking for $cf_ncuhdr_root header in include-path" >&5 8796echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6 8797if test "${cf_cv_ncurses_h+set}" = set; then 8798 echo $ECHO_N "(cached) $ECHO_C" >&6 8799else 8800 8801 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" 8802 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" 8803 for cf_header in $cf_header_list 8804 do 8805 8806 cat >conftest.$ac_ext <<_ACEOF 8807#line 8807 "configure" 8808#include "confdefs.h" 8809 8810#include <$cf_header> 8811int 8812main (void) 8813{ 8814 8815#ifdef NCURSES_VERSION 8816 8817printf("%s\n", NCURSES_VERSION); 8818#else 8819#ifdef __NCURSES_H 8820printf("old\n"); 8821#else 8822 make an error 8823#endif 8824#endif 8825 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830rm -f conftest.$ac_objext 8831if { (eval echo "$as_me:8831: \"$ac_compile\"") >&5 8832 (eval $ac_compile) 2>&5 8833 ac_status=$? 8834 echo "$as_me:8834: \$? = $ac_status" >&5 8835 (exit $ac_status); } && 8836 { ac_try='test -s conftest.$ac_objext' 8837 { (eval echo "$as_me:8837: \"$ac_try\"") >&5 8838 (eval $ac_try) 2>&5 8839 ac_status=$? 8840 echo "$as_me:8840: \$? = $ac_status" >&5 8841 (exit $ac_status); }; }; then 8842 cf_cv_ncurses_h=$cf_header 8843 8844else 8845 echo "$as_me: failed program was:" >&5 8846cat conftest.$ac_ext >&5 8847cf_cv_ncurses_h=no 8848fi 8849rm -f conftest.$ac_objext conftest.$ac_ext 8850 8851 test "$cf_cv_ncurses_h" != no && break 8852 done 8853 8854fi 8855echo "$as_me:8855: result: $cf_cv_ncurses_h" >&5 8856echo "${ECHO_T}$cf_cv_ncurses_h" >&6 8857 8858if test "$cf_cv_ncurses_h" != no ; then 8859 cf_cv_ncurses_header=$cf_cv_ncurses_h 8860else 8861 8862echo "$as_me:8862: checking for $cf_ncuhdr_root include-path" >&5 8863echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6 8864if test "${cf_cv_ncurses_h2+set}" = set; then 8865 echo $ECHO_N "(cached) $ECHO_C" >&6 8866else 8867 8868 test -n "$verbose" && echo 8869 8870cf_search= 8871 8872# collect the current set of include-directories from compiler flags 8873cf_header_path_list="" 8874if test -n "${CFLAGS}${CPPFLAGS}" ; then 8875 for cf_header_path in $CPPFLAGS $CFLAGS 8876 do 8877 case $cf_header_path in 8878 (-I*) 8879 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 8880 8881test "x$cf_header_path" != "xNONE" && \ 8882test -d "$cf_header_path" && \ 8883 { 8884 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 8885 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 8886 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root" 8887 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include" 8888 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include" 8889 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 8890} 8891 8892 cf_header_path_list="$cf_header_path_list $cf_search" 8893 ;; 8894 esac 8895 done 8896fi 8897 8898# add the variations for the package we are looking for 8899 8900cf_search= 8901 8902test "x$prefix" != "xNONE" && \ 8903test -d "$prefix" && \ 8904 { 8905 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 8906 test -d $prefix/include && cf_search="$cf_search $prefix/include" 8907 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" 8908 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" 8909 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" 8910 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 8911} 8912 8913for cf_subdir_prefix in \ 8914 /usr \ 8915 /usr/local \ 8916 /usr/pkg \ 8917 /opt \ 8918 /opt/local \ 8919 $HOME 8920do 8921 8922test "x$cf_subdir_prefix" != "x$prefix" && \ 8923test -d "$cf_subdir_prefix" && \ 8924(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 8925 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 8926 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include" 8927 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root" 8928 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include" 8929 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include" 8930 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 8931} 8932 8933done 8934 8935test "$includedir" != NONE && \ 8936test "$includedir" != "/usr/include" && \ 8937test -d "$includedir" && { 8938 test -d $includedir && cf_search="$cf_search $includedir" 8939 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root" 8940} 8941 8942test "$oldincludedir" != NONE && \ 8943test "$oldincludedir" != "/usr/include" && \ 8944test -d "$oldincludedir" && { 8945 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 8946 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root" 8947} 8948 8949cf_search="$cf_search $cf_header_path_list" 8950 8951 test -n "$verbose" && echo search path $cf_search 8952 cf_save2_CPPFLAGS="$CPPFLAGS" 8953 for cf_incdir in $cf_search 8954 do 8955 8956if test -n "$cf_incdir" ; then 8957 for cf_add_incdir in $cf_incdir 8958 do 8959 while test $cf_add_incdir != /usr/include 8960 do 8961 if test -d $cf_add_incdir 8962 then 8963 cf_have_incdir=no 8964 if test -n "$CFLAGS$CPPFLAGS" ; then 8965 # a loop is needed to ensure we can add subdirs of existing dirs 8966 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 8967 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 8968 cf_have_incdir=yes; break 8969 fi 8970 done 8971 fi 8972 8973 if test "$cf_have_incdir" = no ; then 8974 if test "$cf_add_incdir" = /usr/local/include ; then 8975 if test "$GCC" = yes 8976 then 8977 cf_save_CPPFLAGS=$CPPFLAGS 8978 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8979 cat >conftest.$ac_ext <<_ACEOF 8980#line 8980 "configure" 8981#include "confdefs.h" 8982#include <stdio.h> 8983int 8984main (void) 8985{ 8986printf("Hello") 8987 ; 8988 return 0; 8989} 8990_ACEOF 8991rm -f conftest.$ac_objext 8992if { (eval echo "$as_me:8992: \"$ac_compile\"") >&5 8993 (eval $ac_compile) 2>&5 8994 ac_status=$? 8995 echo "$as_me:8995: \$? = $ac_status" >&5 8996 (exit $ac_status); } && 8997 { ac_try='test -s conftest.$ac_objext' 8998 { (eval echo "$as_me:8998: \"$ac_try\"") >&5 8999 (eval $ac_try) 2>&5 9000 ac_status=$? 9001 echo "$as_me:9001: \$? = $ac_status" >&5 9002 (exit $ac_status); }; }; then 9003 : 9004else 9005 echo "$as_me: failed program was:" >&5 9006cat conftest.$ac_ext >&5 9007cf_have_incdir=yes 9008fi 9009rm -f conftest.$ac_objext conftest.$ac_ext 9010 CPPFLAGS=$cf_save_CPPFLAGS 9011 fi 9012 fi 9013 fi 9014 9015 if test "$cf_have_incdir" = no ; then 9016 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9017 9018echo "${as_me:-configure}:9018: testing adding $cf_add_incdir to include-path ..." 1>&5 9019 9020 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9021 9022 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9023 test "$cf_top_incdir" = "$cf_add_incdir" && break 9024 cf_add_incdir="$cf_top_incdir" 9025 else 9026 break 9027 fi 9028 else 9029 break 9030 fi 9031 done 9032 done 9033fi 9034 9035 for cf_header in \ 9036 ncurses.h \ 9037 curses.h 9038 do 9039 9040 cat >conftest.$ac_ext <<_ACEOF 9041#line 9041 "configure" 9042#include "confdefs.h" 9043 9044#include <$cf_header> 9045int 9046main (void) 9047{ 9048 9049#ifdef NCURSES_VERSION 9050 9051printf("%s\n", NCURSES_VERSION); 9052#else 9053#ifdef __NCURSES_H 9054printf("old\n"); 9055#else 9056 make an error 9057#endif 9058#endif 9059 9060 ; 9061 return 0; 9062} 9063_ACEOF 9064rm -f conftest.$ac_objext 9065if { (eval echo "$as_me:9065: \"$ac_compile\"") >&5 9066 (eval $ac_compile) 2>&5 9067 ac_status=$? 9068 echo "$as_me:9068: \$? = $ac_status" >&5 9069 (exit $ac_status); } && 9070 { ac_try='test -s conftest.$ac_objext' 9071 { (eval echo "$as_me:9071: \"$ac_try\"") >&5 9072 (eval $ac_try) 2>&5 9073 ac_status=$? 9074 echo "$as_me:9074: \$? = $ac_status" >&5 9075 (exit $ac_status); }; }; then 9076 cf_cv_ncurses_h2=$cf_header 9077 9078else 9079 echo "$as_me: failed program was:" >&5 9080cat conftest.$ac_ext >&5 9081cf_cv_ncurses_h2=no 9082fi 9083rm -f conftest.$ac_objext conftest.$ac_ext 9084 9085 if test "$cf_cv_ncurses_h2" != no ; then 9086 cf_cv_ncurses_h2=$cf_incdir/$cf_header 9087 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 9088 break 9089 fi 9090 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 9091 done 9092 CPPFLAGS="$cf_save2_CPPFLAGS" 9093 test "$cf_cv_ncurses_h2" != no && break 9094 done 9095 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9095: error: not found" >&5 9096echo "$as_me: error: not found" >&2;} 9097 { (exit 1); exit 1; }; } 9098 9099fi 9100echo "$as_me:9100: result: $cf_cv_ncurses_h2" >&5 9101echo "${ECHO_T}$cf_cv_ncurses_h2" >&6 9102 9103 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` 9104 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` 9105 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then 9106 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header 9107 fi 9108 9109if test -n "$cf_1st_incdir" ; then 9110 for cf_add_incdir in $cf_1st_incdir 9111 do 9112 while test $cf_add_incdir != /usr/include 9113 do 9114 if test -d $cf_add_incdir 9115 then 9116 cf_have_incdir=no 9117 if test -n "$CFLAGS$CPPFLAGS" ; then 9118 # a loop is needed to ensure we can add subdirs of existing dirs 9119 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9120 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9121 cf_have_incdir=yes; break 9122 fi 9123 done 9124 fi 9125 9126 if test "$cf_have_incdir" = no ; then 9127 if test "$cf_add_incdir" = /usr/local/include ; then 9128 if test "$GCC" = yes 9129 then 9130 cf_save_CPPFLAGS=$CPPFLAGS 9131 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9132 cat >conftest.$ac_ext <<_ACEOF 9133#line 9133 "configure" 9134#include "confdefs.h" 9135#include <stdio.h> 9136int 9137main (void) 9138{ 9139printf("Hello") 9140 ; 9141 return 0; 9142} 9143_ACEOF 9144rm -f conftest.$ac_objext 9145if { (eval echo "$as_me:9145: \"$ac_compile\"") >&5 9146 (eval $ac_compile) 2>&5 9147 ac_status=$? 9148 echo "$as_me:9148: \$? = $ac_status" >&5 9149 (exit $ac_status); } && 9150 { ac_try='test -s conftest.$ac_objext' 9151 { (eval echo "$as_me:9151: \"$ac_try\"") >&5 9152 (eval $ac_try) 2>&5 9153 ac_status=$? 9154 echo "$as_me:9154: \$? = $ac_status" >&5 9155 (exit $ac_status); }; }; then 9156 : 9157else 9158 echo "$as_me: failed program was:" >&5 9159cat conftest.$ac_ext >&5 9160cf_have_incdir=yes 9161fi 9162rm -f conftest.$ac_objext conftest.$ac_ext 9163 CPPFLAGS=$cf_save_CPPFLAGS 9164 fi 9165 fi 9166 fi 9167 9168 if test "$cf_have_incdir" = no ; then 9169 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9170 9171echo "${as_me:-configure}:9171: testing adding $cf_add_incdir to include-path ..." 1>&5 9172 9173 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9174 9175 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9176 test "$cf_top_incdir" = "$cf_add_incdir" && break 9177 cf_add_incdir="$cf_top_incdir" 9178 else 9179 break 9180 fi 9181 else 9182 break 9183 fi 9184 done 9185 done 9186fi 9187 9188fi 9189 9190# Set definitions to allow ifdef'ing for ncurses.h 9191 9192case $cf_cv_ncurses_header in 9193(*ncurses.h) 9194 9195cat >>confdefs.h <<\EOF 9196#define HAVE_NCURSES_H 1 9197EOF 9198 9199 ;; 9200esac 9201 9202case $cf_cv_ncurses_header in 9203(ncurses/curses.h|ncurses/ncurses.h) 9204 9205cat >>confdefs.h <<\EOF 9206#define HAVE_NCURSES_NCURSES_H 1 9207EOF 9208 9209 ;; 9210(ncursesw/curses.h|ncursesw/ncurses.h) 9211 9212cat >>confdefs.h <<\EOF 9213#define HAVE_NCURSESW_NCURSES_H 1 9214EOF 9215 9216 ;; 9217esac 9218 9219echo "$as_me:9219: checking for terminfo header" >&5 9220echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 9221if test "${cf_cv_term_header+set}" = set; then 9222 echo $ECHO_N "(cached) $ECHO_C" >&6 9223else 9224 9225case ${cf_cv_ncurses_header} in 9226(*/ncurses.h|*/ncursesw.h) 9227 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 9228 ;; 9229(*) 9230 cf_term_header=term.h 9231 ;; 9232esac 9233 9234for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 9235do 9236cat >conftest.$ac_ext <<_ACEOF 9237#line 9237 "configure" 9238#include "confdefs.h" 9239#include <stdio.h> 9240#include <${cf_cv_ncurses_header:-curses.h}> 9241#include <$cf_test> 9242 9243int 9244main (void) 9245{ 9246int x = auto_left_margin 9247 ; 9248 return 0; 9249} 9250_ACEOF 9251rm -f conftest.$ac_objext 9252if { (eval echo "$as_me:9252: \"$ac_compile\"") >&5 9253 (eval $ac_compile) 2>&5 9254 ac_status=$? 9255 echo "$as_me:9255: \$? = $ac_status" >&5 9256 (exit $ac_status); } && 9257 { ac_try='test -s conftest.$ac_objext' 9258 { (eval echo "$as_me:9258: \"$ac_try\"") >&5 9259 (eval $ac_try) 2>&5 9260 ac_status=$? 9261 echo "$as_me:9261: \$? = $ac_status" >&5 9262 (exit $ac_status); }; }; then 9263 9264 cf_cv_term_header="$cf_test" 9265else 9266 echo "$as_me: failed program was:" >&5 9267cat conftest.$ac_ext >&5 9268 9269 cf_cv_term_header=unknown 9270 9271fi 9272rm -f conftest.$ac_objext conftest.$ac_ext 9273 test "$cf_cv_term_header" != unknown && break 9274done 9275 9276fi 9277echo "$as_me:9277: result: $cf_cv_term_header" >&5 9278echo "${ECHO_T}$cf_cv_term_header" >&6 9279 9280# Set definitions to allow ifdef'ing to accommodate subdirectories 9281 9282case $cf_cv_term_header in 9283(*term.h) 9284 9285cat >>confdefs.h <<\EOF 9286#define HAVE_TERM_H 1 9287EOF 9288 9289 ;; 9290esac 9291 9292case $cf_cv_term_header in 9293(ncurses/term.h) 9294 9295cat >>confdefs.h <<\EOF 9296#define HAVE_NCURSES_TERM_H 1 9297EOF 9298 9299 ;; 9300(ncursesw/term.h) 9301 9302cat >>confdefs.h <<\EOF 9303#define HAVE_NCURSESW_TERM_H 1 9304EOF 9305 9306 ;; 9307esac 9308 9309# some applications need this, but should check for NCURSES_VERSION 9310 9311cat >>confdefs.h <<\EOF 9312#define NCURSES 1 9313EOF 9314 9315echo "$as_me:9315: checking for ncurses version" >&5 9316echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 9317if test "${cf_cv_ncurses_version+set}" = set; then 9318 echo $ECHO_N "(cached) $ECHO_C" >&6 9319else 9320 9321 cf_cv_ncurses_version=no 9322 cf_tempfile=out$$ 9323 rm -f $cf_tempfile 9324 if test "$cross_compiling" = yes; then 9325 9326 # This will not work if the preprocessor splits the line after the 9327 # Autoconf token. The 'unproto' program does that. 9328 cat > conftest.$ac_ext <<EOF 9329#include <${cf_cv_ncurses_header:-curses.h}> 9330#undef Autoconf 9331#ifdef NCURSES_VERSION 9332Autoconf NCURSES_VERSION 9333#else 9334#ifdef __NCURSES_H 9335Autoconf "old" 9336#endif 9337; 9338#endif 9339EOF 9340 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 9341 { (eval echo "$as_me:9341: \"$cf_try\"") >&5 9342 (eval $cf_try) 2>&5 9343 ac_status=$? 9344 echo "$as_me:9344: \$? = $ac_status" >&5 9345 (exit $ac_status); } 9346 if test -f conftest.out ; then 9347 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 9348 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 9349 rm -f conftest.out 9350 fi 9351 9352else 9353 cat >conftest.$ac_ext <<_ACEOF 9354#line 9354 "configure" 9355#include "confdefs.h" 9356 9357#include <${cf_cv_ncurses_header:-curses.h}> 9358#include <stdio.h> 9359int main(void) 9360{ 9361 FILE *fp = fopen("$cf_tempfile", "w"); 9362#ifdef NCURSES_VERSION 9363# ifdef NCURSES_VERSION_PATCH 9364 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 9365# else 9366 fprintf(fp, "%s\n", NCURSES_VERSION); 9367# endif 9368#else 9369# ifdef __NCURSES_H 9370 fprintf(fp, "old\n"); 9371# else 9372 make an error 9373# endif 9374#endif 9375 ${cf_cv_main_return:-return}(0); 9376} 9377_ACEOF 9378rm -f conftest$ac_exeext 9379if { (eval echo "$as_me:9379: \"$ac_link\"") >&5 9380 (eval $ac_link) 2>&5 9381 ac_status=$? 9382 echo "$as_me:9382: \$? = $ac_status" >&5 9383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9384 { (eval echo "$as_me:9384: \"$ac_try\"") >&5 9385 (eval $ac_try) 2>&5 9386 ac_status=$? 9387 echo "$as_me:9387: \$? = $ac_status" >&5 9388 (exit $ac_status); }; }; then 9389 9390 cf_cv_ncurses_version=`cat $cf_tempfile` 9391else 9392 echo "$as_me: program exited with status $ac_status" >&5 9393echo "$as_me: failed program was:" >&5 9394cat conftest.$ac_ext >&5 9395fi 9396rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9397fi 9398 rm -f $cf_tempfile 9399 9400fi 9401echo "$as_me:9401: result: $cf_cv_ncurses_version" >&5 9402echo "${ECHO_T}$cf_cv_ncurses_version" >&6 9403test "$cf_cv_ncurses_version" = no || 9404cat >>confdefs.h <<\EOF 9405#define NCURSES 1 9406EOF 9407 9408cf_nculib_root=$cf_cv_screen 9409 # This works, except for the special case where we find gpm, but 9410 # ncurses is in a nonstandard location via $LIBS, and we really want 9411 # to link gpm. 9412cf_ncurses_LIBS="" 9413cf_ncurses_SAVE="$LIBS" 9414echo "$as_me:9414: checking for Gpm_Open in -lgpm" >&5 9415echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 9416if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 9417 echo $ECHO_N "(cached) $ECHO_C" >&6 9418else 9419 ac_check_lib_save_LIBS=$LIBS 9420LIBS="-lgpm $LIBS" 9421cat >conftest.$ac_ext <<_ACEOF 9422#line 9422 "configure" 9423#include "confdefs.h" 9424 9425/* Override any gcc2 internal prototype to avoid an error. */ 9426#ifdef __cplusplus 9427extern "C" 9428#endif 9429/* We use char because int might match the return type of a gcc2 9430 builtin and then its argument prototype would still apply. */ 9431char Gpm_Open (); 9432int 9433main (void) 9434{ 9435Gpm_Open (); 9436 ; 9437 return 0; 9438} 9439_ACEOF 9440rm -f conftest.$ac_objext conftest$ac_exeext 9441if { (eval echo "$as_me:9441: \"$ac_link\"") >&5 9442 (eval $ac_link) 2>&5 9443 ac_status=$? 9444 echo "$as_me:9444: \$? = $ac_status" >&5 9445 (exit $ac_status); } && 9446 { ac_try='test -s conftest$ac_exeext' 9447 { (eval echo "$as_me:9447: \"$ac_try\"") >&5 9448 (eval $ac_try) 2>&5 9449 ac_status=$? 9450 echo "$as_me:9450: \$? = $ac_status" >&5 9451 (exit $ac_status); }; }; then 9452 ac_cv_lib_gpm_Gpm_Open=yes 9453else 9454 echo "$as_me: failed program was:" >&5 9455cat conftest.$ac_ext >&5 9456ac_cv_lib_gpm_Gpm_Open=no 9457fi 9458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9459LIBS=$ac_check_lib_save_LIBS 9460fi 9461echo "$as_me:9461: result: $ac_cv_lib_gpm_Gpm_Open" >&5 9462echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 9463if test $ac_cv_lib_gpm_Gpm_Open = yes; then 9464 echo "$as_me:9464: checking for initscr in -lgpm" >&5 9465echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6 9466if test "${ac_cv_lib_gpm_initscr+set}" = set; then 9467 echo $ECHO_N "(cached) $ECHO_C" >&6 9468else 9469 ac_check_lib_save_LIBS=$LIBS 9470LIBS="-lgpm $LIBS" 9471cat >conftest.$ac_ext <<_ACEOF 9472#line 9472 "configure" 9473#include "confdefs.h" 9474 9475/* Override any gcc2 internal prototype to avoid an error. */ 9476#ifdef __cplusplus 9477extern "C" 9478#endif 9479/* We use char because int might match the return type of a gcc2 9480 builtin and then its argument prototype would still apply. */ 9481char initscr (); 9482int 9483main (void) 9484{ 9485initscr (); 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490rm -f conftest.$ac_objext conftest$ac_exeext 9491if { (eval echo "$as_me:9491: \"$ac_link\"") >&5 9492 (eval $ac_link) 2>&5 9493 ac_status=$? 9494 echo "$as_me:9494: \$? = $ac_status" >&5 9495 (exit $ac_status); } && 9496 { ac_try='test -s conftest$ac_exeext' 9497 { (eval echo "$as_me:9497: \"$ac_try\"") >&5 9498 (eval $ac_try) 2>&5 9499 ac_status=$? 9500 echo "$as_me:9500: \$? = $ac_status" >&5 9501 (exit $ac_status); }; }; then 9502 ac_cv_lib_gpm_initscr=yes 9503else 9504 echo "$as_me: failed program was:" >&5 9505cat conftest.$ac_ext >&5 9506ac_cv_lib_gpm_initscr=no 9507fi 9508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9509LIBS=$ac_check_lib_save_LIBS 9510fi 9511echo "$as_me:9511: result: $ac_cv_lib_gpm_initscr" >&5 9512echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6 9513if test $ac_cv_lib_gpm_initscr = yes; then 9514 LIBS="$cf_ncurses_SAVE" 9515else 9516 cf_ncurses_LIBS="-lgpm" 9517fi 9518 9519fi 9520 9521case $host_os in 9522(freebsd*) 9523 # This is only necessary if you are linking against an obsolete 9524 # version of ncurses (but it should do no harm, since it's static). 9525 if test "$cf_nculib_root" = ncurses ; then 9526 echo "$as_me:9526: checking for tgoto in -lmytinfo" >&5 9527echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 9528if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 9529 echo $ECHO_N "(cached) $ECHO_C" >&6 9530else 9531 ac_check_lib_save_LIBS=$LIBS 9532LIBS="-lmytinfo $LIBS" 9533cat >conftest.$ac_ext <<_ACEOF 9534#line 9534 "configure" 9535#include "confdefs.h" 9536 9537/* Override any gcc2 internal prototype to avoid an error. */ 9538#ifdef __cplusplus 9539extern "C" 9540#endif 9541/* We use char because int might match the return type of a gcc2 9542 builtin and then its argument prototype would still apply. */ 9543char tgoto (); 9544int 9545main (void) 9546{ 9547tgoto (); 9548 ; 9549 return 0; 9550} 9551_ACEOF 9552rm -f conftest.$ac_objext conftest$ac_exeext 9553if { (eval echo "$as_me:9553: \"$ac_link\"") >&5 9554 (eval $ac_link) 2>&5 9555 ac_status=$? 9556 echo "$as_me:9556: \$? = $ac_status" >&5 9557 (exit $ac_status); } && 9558 { ac_try='test -s conftest$ac_exeext' 9559 { (eval echo "$as_me:9559: \"$ac_try\"") >&5 9560 (eval $ac_try) 2>&5 9561 ac_status=$? 9562 echo "$as_me:9562: \$? = $ac_status" >&5 9563 (exit $ac_status); }; }; then 9564 ac_cv_lib_mytinfo_tgoto=yes 9565else 9566 echo "$as_me: failed program was:" >&5 9567cat conftest.$ac_ext >&5 9568ac_cv_lib_mytinfo_tgoto=no 9569fi 9570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9571LIBS=$ac_check_lib_save_LIBS 9572fi 9573echo "$as_me:9573: result: $ac_cv_lib_mytinfo_tgoto" >&5 9574echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 9575if test $ac_cv_lib_mytinfo_tgoto = yes; then 9576 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS" 9577fi 9578 9579 fi 9580 ;; 9581esac 9582 9583cf_add_libs="$cf_ncurses_LIBS" 9584# Filter out duplicates - this happens with badly-designed ".pc" files... 9585for cf_add_1lib in $LIBS 9586do 9587 for cf_add_2lib in $cf_add_libs 9588 do 9589 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9590 then 9591 cf_add_1lib= 9592 break 9593 fi 9594 done 9595 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9596done 9597LIBS="$cf_add_libs" 9598 9599if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 9600then 9601 9602cf_add_libs="-l$cf_nculib_root" 9603# Filter out duplicates - this happens with badly-designed ".pc" files... 9604for cf_add_1lib in $LIBS 9605do 9606 for cf_add_2lib in $cf_add_libs 9607 do 9608 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9609 then 9610 cf_add_1lib= 9611 break 9612 fi 9613 done 9614 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9615done 9616LIBS="$cf_add_libs" 9617 9618else 9619 9620 eval 'cf_cv_have_lib_'$cf_nculib_root'=no' 9621 cf_libdir="" 9622 echo "$as_me:9622: checking for initscr" >&5 9623echo $ECHO_N "checking for initscr... $ECHO_C" >&6 9624if test "${ac_cv_func_initscr+set}" = set; then 9625 echo $ECHO_N "(cached) $ECHO_C" >&6 9626else 9627 cat >conftest.$ac_ext <<_ACEOF 9628#line 9628 "configure" 9629#include "confdefs.h" 9630/* System header to define __stub macros and hopefully few prototypes, 9631 which can conflict with char initscr (); below. */ 9632#include <assert.h> 9633/* Override any gcc2 internal prototype to avoid an error. */ 9634#ifdef __cplusplus 9635extern "C" 9636#endif 9637/* We use char because int might match the return type of a gcc2 9638 builtin and then its argument prototype would still apply. */ 9639char initscr (); 9640char (*f) (); 9641 9642int 9643main (void) 9644{ 9645/* The GNU C library defines this for functions which it implements 9646 to always fail with ENOSYS. Some functions are actually named 9647 something starting with __ and the normal name is an alias. */ 9648#if defined (__stub_initscr) || defined (__stub___initscr) 9649choke me 9650#else 9651f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 9652#endif 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658rm -f conftest.$ac_objext conftest$ac_exeext 9659if { (eval echo "$as_me:9659: \"$ac_link\"") >&5 9660 (eval $ac_link) 2>&5 9661 ac_status=$? 9662 echo "$as_me:9662: \$? = $ac_status" >&5 9663 (exit $ac_status); } && 9664 { ac_try='test -s conftest$ac_exeext' 9665 { (eval echo "$as_me:9665: \"$ac_try\"") >&5 9666 (eval $ac_try) 2>&5 9667 ac_status=$? 9668 echo "$as_me:9668: \$? = $ac_status" >&5 9669 (exit $ac_status); }; }; then 9670 ac_cv_func_initscr=yes 9671else 9672 echo "$as_me: failed program was:" >&5 9673cat conftest.$ac_ext >&5 9674ac_cv_func_initscr=no 9675fi 9676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9677fi 9678echo "$as_me:9678: result: $ac_cv_func_initscr" >&5 9679echo "${ECHO_T}$ac_cv_func_initscr" >&6 9680if test $ac_cv_func_initscr = yes; then 9681 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 9682else 9683 9684 cf_save_LIBS="$LIBS" 9685 echo "$as_me:9685: checking for initscr in -l$cf_nculib_root" >&5 9686echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6 9687 LIBS="-l$cf_nculib_root $LIBS" 9688 cat >conftest.$ac_ext <<_ACEOF 9689#line 9689 "configure" 9690#include "confdefs.h" 9691#include <${cf_cv_ncurses_header:-curses.h}> 9692int 9693main (void) 9694{ 9695initscr() 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700rm -f conftest.$ac_objext conftest$ac_exeext 9701if { (eval echo "$as_me:9701: \"$ac_link\"") >&5 9702 (eval $ac_link) 2>&5 9703 ac_status=$? 9704 echo "$as_me:9704: \$? = $ac_status" >&5 9705 (exit $ac_status); } && 9706 { ac_try='test -s conftest$ac_exeext' 9707 { (eval echo "$as_me:9707: \"$ac_try\"") >&5 9708 (eval $ac_try) 2>&5 9709 ac_status=$? 9710 echo "$as_me:9710: \$? = $ac_status" >&5 9711 (exit $ac_status); }; }; then 9712 echo "$as_me:9712: result: yes" >&5 9713echo "${ECHO_T}yes" >&6 9714 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 9715 9716else 9717 echo "$as_me: failed program was:" >&5 9718cat conftest.$ac_ext >&5 9719echo "$as_me:9719: result: no" >&5 9720echo "${ECHO_T}no" >&6 9721 9722cf_search= 9723cf_library_path_list="" 9724if test -n "${LDFLAGS}${LIBS}" ; then 9725 for cf_library_path in $LDFLAGS $LIBS 9726 do 9727 case $cf_library_path in 9728 (-L*) 9729 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 9730 9731test "x$cf_library_path" != "xNONE" && \ 9732test -d "$cf_library_path" && \ 9733 { 9734 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 9735 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 9736 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root" 9737 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib" 9738 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib" 9739 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" 9740} 9741 9742 cf_library_path_list="$cf_library_path_list $cf_search" 9743 ;; 9744 esac 9745 done 9746fi 9747 9748cf_search= 9749 9750test "x$prefix" != "xNONE" && \ 9751test -d "$prefix" && \ 9752 { 9753 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 9754 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 9755 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root" 9756 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib" 9757 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib" 9758 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root" 9759} 9760 9761for cf_subdir_prefix in \ 9762 /usr \ 9763 /usr/local \ 9764 /usr/pkg \ 9765 /opt \ 9766 /opt/local \ 9767 $HOME 9768do 9769 9770test "x$cf_subdir_prefix" != "x$prefix" && \ 9771test -d "$cf_subdir_prefix" && \ 9772(test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && { 9773 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 9774 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib" 9775 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root" 9776 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib" 9777 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib" 9778 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" 9779} 9780 9781done 9782 9783cf_search="$cf_library_path_list $cf_search" 9784 9785 for cf_libdir in $cf_search 9786 do 9787 echo "$as_me:9787: checking for -l$cf_nculib_root in $cf_libdir" >&5 9788echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6 9789 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS" 9790 cat >conftest.$ac_ext <<_ACEOF 9791#line 9791 "configure" 9792#include "confdefs.h" 9793#include <${cf_cv_ncurses_header:-curses.h}> 9794int 9795main (void) 9796{ 9797initscr() 9798 ; 9799 return 0; 9800} 9801_ACEOF 9802rm -f conftest.$ac_objext conftest$ac_exeext 9803if { (eval echo "$as_me:9803: \"$ac_link\"") >&5 9804 (eval $ac_link) 2>&5 9805 ac_status=$? 9806 echo "$as_me:9806: \$? = $ac_status" >&5 9807 (exit $ac_status); } && 9808 { ac_try='test -s conftest$ac_exeext' 9809 { (eval echo "$as_me:9809: \"$ac_try\"") >&5 9810 (eval $ac_try) 2>&5 9811 ac_status=$? 9812 echo "$as_me:9812: \$? = $ac_status" >&5 9813 (exit $ac_status); }; }; then 9814 echo "$as_me:9814: result: yes" >&5 9815echo "${ECHO_T}yes" >&6 9816 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 9817 break 9818else 9819 echo "$as_me: failed program was:" >&5 9820cat conftest.$ac_ext >&5 9821echo "$as_me:9821: result: no" >&5 9822echo "${ECHO_T}no" >&6 9823 LIBS="$cf_save_LIBS" 9824fi 9825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9826 done 9827 9828fi 9829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9830 9831fi 9832 9833eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root 9834 9835if test $cf_found_library = no ; then 9836 { { echo "$as_me:9836: error: Cannot link $cf_nculib_root library" >&5 9837echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;} 9838 { (exit 1); exit 1; }; } 9839fi 9840 9841fi 9842 9843if test -n "$cf_ncurses_LIBS" ; then 9844 echo "$as_me:9844: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5 9845echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6 9846 cf_ncurses_SAVE="$LIBS" 9847 for p in $cf_ncurses_LIBS ; do 9848 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"` 9849 if test "$q" != "$LIBS" ; then 9850 LIBS="$q" 9851 fi 9852 done 9853 cat >conftest.$ac_ext <<_ACEOF 9854#line 9854 "configure" 9855#include "confdefs.h" 9856#include <${cf_cv_ncurses_header:-curses.h}> 9857int 9858main (void) 9859{ 9860initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 9861 ; 9862 return 0; 9863} 9864_ACEOF 9865rm -f conftest.$ac_objext conftest$ac_exeext 9866if { (eval echo "$as_me:9866: \"$ac_link\"") >&5 9867 (eval $ac_link) 2>&5 9868 ac_status=$? 9869 echo "$as_me:9869: \$? = $ac_status" >&5 9870 (exit $ac_status); } && 9871 { ac_try='test -s conftest$ac_exeext' 9872 { (eval echo "$as_me:9872: \"$ac_try\"") >&5 9873 (eval $ac_try) 2>&5 9874 ac_status=$? 9875 echo "$as_me:9875: \$? = $ac_status" >&5 9876 (exit $ac_status); }; }; then 9877 echo "$as_me:9877: result: yes" >&5 9878echo "${ECHO_T}yes" >&6 9879else 9880 echo "$as_me: failed program was:" >&5 9881cat conftest.$ac_ext >&5 9882echo "$as_me:9882: result: no" >&5 9883echo "${ECHO_T}no" >&6 9884 LIBS="$cf_ncurses_SAVE" 9885fi 9886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9887fi 9888 9889cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9890 9891cat >>confdefs.h <<EOF 9892#define $cf_nculib_ROOT 1 9893EOF 9894 9895 fi 9896else 9897 NCURSES_CONFIG=none 9898fi 9899 9900 ;; 9901(pdcurses) 9902 echo "$as_me:9902: checking for X" >&5 9903echo $ECHO_N "checking for X... $ECHO_C" >&6 9904 9905# Check whether --with-x or --without-x was given. 9906if test "${with_x+set}" = set; then 9907 withval="$with_x" 9908 9909fi; 9910# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9911if test "x$with_x" = xno; then 9912 # The user explicitly disabled X. 9913 have_x=disabled 9914else 9915 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9916 # Both variables are already set. 9917 have_x=yes 9918 else 9919 if test "${ac_cv_have_x+set}" = set; then 9920 echo $ECHO_N "(cached) $ECHO_C" >&6 9921else 9922 # One or both of the vars are not set, and there is no cached value. 9923ac_x_includes=no ac_x_libraries=no 9924rm -fr conftest.dir 9925if mkdir conftest.dir; then 9926 cd conftest.dir 9927 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9928 cat >Imakefile <<'EOF' 9929acfindx: 9930 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9931EOF 9932 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9934 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9935 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9936 for ac_extension in a so sl dylib dll; do 9937 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9938 test -f $ac_im_libdir/libX11.$ac_extension; then 9939 ac_im_usrlibdir=$ac_im_libdir; break 9940 fi 9941 done 9942 # Screen out bogus values from the imake configuration. They are 9943 # bogus both because they are the default anyway, and because 9944 # using them would break gcc on systems where it needs fixed includes. 9945 case $ac_im_incroot in 9946 /usr/include) ;; 9947 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9948 esac 9949 case $ac_im_usrlibdir in 9950 /usr/lib | /lib) ;; 9951 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9952 esac 9953 fi 9954 cd .. 9955 rm -fr conftest.dir 9956fi 9957 9958# Standard set of common directories for X headers. 9959# Check X11 before X11Rn because it is often a symlink to the current release. 9960ac_x_header_dirs=' 9961/usr/X11/include 9962/usr/X11R6/include 9963/usr/X11R5/include 9964/usr/X11R4/include 9965 9966/usr/include/X11 9967/usr/include/X11R6 9968/usr/include/X11R5 9969/usr/include/X11R4 9970 9971/usr/local/X11/include 9972/usr/local/X11R6/include 9973/usr/local/X11R5/include 9974/usr/local/X11R4/include 9975 9976/usr/local/include/X11 9977/usr/local/include/X11R6 9978/usr/local/include/X11R5 9979/usr/local/include/X11R4 9980 9981/usr/X386/include 9982/usr/x386/include 9983/usr/XFree86/include/X11 9984 9985/usr/include 9986/usr/local/include 9987/usr/unsupported/include 9988/usr/athena/include 9989/usr/local/x11r5/include 9990/usr/lpp/Xamples/include 9991 9992/usr/openwin/include 9993/usr/openwin/share/include' 9994 9995if test "$ac_x_includes" = no; then 9996 # Guess where to find include files, by looking for Intrinsic.h. 9997 # First, try using that file with no special directory specified. 9998 cat >conftest.$ac_ext <<_ACEOF 9999#line 9999 "configure" 10000#include "confdefs.h" 10001#include <X11/Intrinsic.h> 10002_ACEOF 10003if { (eval echo "$as_me:10003: \"$ac_cpp conftest.$ac_ext\"") >&5 10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10005 ac_status=$? 10006 egrep -v '^ *\+' conftest.er1 >conftest.err 10007 rm -f conftest.er1 10008 cat conftest.err >&5 10009 echo "$as_me:10009: \$? = $ac_status" >&5 10010 (exit $ac_status); } >/dev/null; then 10011 if test -s conftest.err; then 10012 ac_cpp_err=$ac_c_preproc_warn_flag 10013 else 10014 ac_cpp_err= 10015 fi 10016else 10017 ac_cpp_err=yes 10018fi 10019if test -z "$ac_cpp_err"; then 10020 # We can compile using X headers with no special include directory. 10021ac_x_includes= 10022else 10023 echo "$as_me: failed program was:" >&5 10024 cat conftest.$ac_ext >&5 10025 for ac_dir in $ac_x_header_dirs; do 10026 if test -r "$ac_dir/X11/Intrinsic.h"; then 10027 ac_x_includes=$ac_dir 10028 break 10029 fi 10030done 10031fi 10032rm -f conftest.err conftest.$ac_ext 10033fi # $ac_x_includes = no 10034 10035if test "$ac_x_libraries" = no; then 10036 # Check for the libraries. 10037 # See if we find them without any special options. 10038 # Don't add to $LIBS permanently. 10039 ac_save_LIBS=$LIBS 10040 LIBS="-lXt $LIBS" 10041 cat >conftest.$ac_ext <<_ACEOF 10042#line 10042 "configure" 10043#include "confdefs.h" 10044#include <X11/Intrinsic.h> 10045int 10046main (void) 10047{ 10048XtMalloc (0) 10049 ; 10050 return 0; 10051} 10052_ACEOF 10053rm -f conftest.$ac_objext conftest$ac_exeext 10054if { (eval echo "$as_me:10054: \"$ac_link\"") >&5 10055 (eval $ac_link) 2>&5 10056 ac_status=$? 10057 echo "$as_me:10057: \$? = $ac_status" >&5 10058 (exit $ac_status); } && 10059 { ac_try='test -s conftest$ac_exeext' 10060 { (eval echo "$as_me:10060: \"$ac_try\"") >&5 10061 (eval $ac_try) 2>&5 10062 ac_status=$? 10063 echo "$as_me:10063: \$? = $ac_status" >&5 10064 (exit $ac_status); }; }; then 10065 LIBS=$ac_save_LIBS 10066# We can link X programs with no special library path. 10067ac_x_libraries= 10068else 10069 echo "$as_me: failed program was:" >&5 10070cat conftest.$ac_ext >&5 10071LIBS=$ac_save_LIBS 10072for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10073do 10074 # Don't even attempt the hair of trying to link an X program! 10075 for ac_extension in a so sl dylib dll; do 10076 if test -r $ac_dir/libXt.$ac_extension; then 10077 ac_x_libraries=$ac_dir 10078 break 2 10079 fi 10080 done 10081done 10082fi 10083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10084fi # $ac_x_libraries = no 10085 10086if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 10087 # Didn't find X anywhere. Cache the known absence of X. 10088 ac_cv_have_x="have_x=no" 10089else 10090 # Record where we found X for the cache. 10091 ac_cv_have_x="have_x=yes \ 10092 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 10093fi 10094fi 10095 10096 fi 10097 eval "$ac_cv_have_x" 10098fi # $with_x != no 10099 10100if test "$have_x" != yes; then 10101 echo "$as_me:10101: result: $have_x" >&5 10102echo "${ECHO_T}$have_x" >&6 10103 no_x=yes 10104else 10105 # If each of the values was on the command line, it overrides each guess. 10106 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10107 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10108 # Update the cache value to reflect the command line values. 10109 ac_cv_have_x="have_x=yes \ 10110 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10111 echo "$as_me:10111: result: libraries $x_libraries, headers $x_includes" >&5 10112echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10113fi 10114 10115if test "$no_x" = yes; then 10116 # Not all programs may use this symbol, but it does not hurt to define it. 10117 10118cat >>confdefs.h <<\EOF 10119#define X_DISPLAY_MISSING 1 10120EOF 10121 10122 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 10123else 10124 if test -n "$x_includes"; then 10125 X_CFLAGS="$X_CFLAGS -I$x_includes" 10126 fi 10127 10128 # It would also be nice to do this for all -L options, not just this one. 10129 if test -n "$x_libraries"; then 10130 X_LIBS="$X_LIBS -L$x_libraries" 10131 # For Solaris; some versions of Sun CC require a space after -R and 10132 # others require no space. Words are not sufficient . . . . 10133 case `(uname -sr) 2>/dev/null` in 10134 "SunOS 5"*) 10135 echo "$as_me:10135: checking whether -R must be followed by a space" >&5 10136echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 10137 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 10138 cat >conftest.$ac_ext <<_ACEOF 10139#line 10139 "configure" 10140#include "confdefs.h" 10141 10142int 10143main (void) 10144{ 10145 10146 ; 10147 return 0; 10148} 10149_ACEOF 10150rm -f conftest.$ac_objext conftest$ac_exeext 10151if { (eval echo "$as_me:10151: \"$ac_link\"") >&5 10152 (eval $ac_link) 2>&5 10153 ac_status=$? 10154 echo "$as_me:10154: \$? = $ac_status" >&5 10155 (exit $ac_status); } && 10156 { ac_try='test -s conftest$ac_exeext' 10157 { (eval echo "$as_me:10157: \"$ac_try\"") >&5 10158 (eval $ac_try) 2>&5 10159 ac_status=$? 10160 echo "$as_me:10160: \$? = $ac_status" >&5 10161 (exit $ac_status); }; }; then 10162 ac_R_nospace=yes 10163else 10164 echo "$as_me: failed program was:" >&5 10165cat conftest.$ac_ext >&5 10166ac_R_nospace=no 10167fi 10168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10169 if test $ac_R_nospace = yes; then 10170 echo "$as_me:10170: result: no" >&5 10171echo "${ECHO_T}no" >&6 10172 X_LIBS="$X_LIBS -R$x_libraries" 10173 else 10174 LIBS="$ac_xsave_LIBS -R $x_libraries" 10175 cat >conftest.$ac_ext <<_ACEOF 10176#line 10176 "configure" 10177#include "confdefs.h" 10178 10179int 10180main (void) 10181{ 10182 10183 ; 10184 return 0; 10185} 10186_ACEOF 10187rm -f conftest.$ac_objext conftest$ac_exeext 10188if { (eval echo "$as_me:10188: \"$ac_link\"") >&5 10189 (eval $ac_link) 2>&5 10190 ac_status=$? 10191 echo "$as_me:10191: \$? = $ac_status" >&5 10192 (exit $ac_status); } && 10193 { ac_try='test -s conftest$ac_exeext' 10194 { (eval echo "$as_me:10194: \"$ac_try\"") >&5 10195 (eval $ac_try) 2>&5 10196 ac_status=$? 10197 echo "$as_me:10197: \$? = $ac_status" >&5 10198 (exit $ac_status); }; }; then 10199 ac_R_space=yes 10200else 10201 echo "$as_me: failed program was:" >&5 10202cat conftest.$ac_ext >&5 10203ac_R_space=no 10204fi 10205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10206 if test $ac_R_space = yes; then 10207 echo "$as_me:10207: result: yes" >&5 10208echo "${ECHO_T}yes" >&6 10209 X_LIBS="$X_LIBS -R $x_libraries" 10210 else 10211 echo "$as_me:10211: result: neither works" >&5 10212echo "${ECHO_T}neither works" >&6 10213 fi 10214 fi 10215 LIBS=$ac_xsave_LIBS 10216 esac 10217 fi 10218 10219 # Check for system-dependent libraries X programs must link with. 10220 # Do this before checking for the system-independent R6 libraries 10221 # (-lICE), since we may need -lsocket or whatever for X linking. 10222 10223 if test "$ISC" = yes; then 10224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 10225 else 10226 # Martyn Johnson says this is needed for Ultrix, if the X 10227 # libraries were built with DECnet support. And Karl Berry says 10228 # the Alpha needs dnet_stub (dnet does not exist). 10229 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 10230 cat >conftest.$ac_ext <<_ACEOF 10231#line 10231 "configure" 10232#include "confdefs.h" 10233 10234/* Override any gcc2 internal prototype to avoid an error. */ 10235#ifdef __cplusplus 10236extern "C" 10237#endif 10238/* We use char because int might match the return type of a gcc2 10239 builtin and then its argument prototype would still apply. */ 10240char XOpenDisplay (); 10241int 10242main (void) 10243{ 10244XOpenDisplay (); 10245 ; 10246 return 0; 10247} 10248_ACEOF 10249rm -f conftest.$ac_objext conftest$ac_exeext 10250if { (eval echo "$as_me:10250: \"$ac_link\"") >&5 10251 (eval $ac_link) 2>&5 10252 ac_status=$? 10253 echo "$as_me:10253: \$? = $ac_status" >&5 10254 (exit $ac_status); } && 10255 { ac_try='test -s conftest$ac_exeext' 10256 { (eval echo "$as_me:10256: \"$ac_try\"") >&5 10257 (eval $ac_try) 2>&5 10258 ac_status=$? 10259 echo "$as_me:10259: \$? = $ac_status" >&5 10260 (exit $ac_status); }; }; then 10261 : 10262else 10263 echo "$as_me: failed program was:" >&5 10264cat conftest.$ac_ext >&5 10265echo "$as_me:10265: checking for dnet_ntoa in -ldnet" >&5 10266echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 10267if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 10268 echo $ECHO_N "(cached) $ECHO_C" >&6 10269else 10270 ac_check_lib_save_LIBS=$LIBS 10271LIBS="-ldnet $LIBS" 10272cat >conftest.$ac_ext <<_ACEOF 10273#line 10273 "configure" 10274#include "confdefs.h" 10275 10276/* Override any gcc2 internal prototype to avoid an error. */ 10277#ifdef __cplusplus 10278extern "C" 10279#endif 10280/* We use char because int might match the return type of a gcc2 10281 builtin and then its argument prototype would still apply. */ 10282char dnet_ntoa (); 10283int 10284main (void) 10285{ 10286dnet_ntoa (); 10287 ; 10288 return 0; 10289} 10290_ACEOF 10291rm -f conftest.$ac_objext conftest$ac_exeext 10292if { (eval echo "$as_me:10292: \"$ac_link\"") >&5 10293 (eval $ac_link) 2>&5 10294 ac_status=$? 10295 echo "$as_me:10295: \$? = $ac_status" >&5 10296 (exit $ac_status); } && 10297 { ac_try='test -s conftest$ac_exeext' 10298 { (eval echo "$as_me:10298: \"$ac_try\"") >&5 10299 (eval $ac_try) 2>&5 10300 ac_status=$? 10301 echo "$as_me:10301: \$? = $ac_status" >&5 10302 (exit $ac_status); }; }; then 10303 ac_cv_lib_dnet_dnet_ntoa=yes 10304else 10305 echo "$as_me: failed program was:" >&5 10306cat conftest.$ac_ext >&5 10307ac_cv_lib_dnet_dnet_ntoa=no 10308fi 10309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10310LIBS=$ac_check_lib_save_LIBS 10311fi 10312echo "$as_me:10312: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10313echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 10314if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 10315 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 10316fi 10317 10318 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 10319 echo "$as_me:10319: checking for dnet_ntoa in -ldnet_stub" >&5 10320echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 10321if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 10322 echo $ECHO_N "(cached) $ECHO_C" >&6 10323else 10324 ac_check_lib_save_LIBS=$LIBS 10325LIBS="-ldnet_stub $LIBS" 10326cat >conftest.$ac_ext <<_ACEOF 10327#line 10327 "configure" 10328#include "confdefs.h" 10329 10330/* Override any gcc2 internal prototype to avoid an error. */ 10331#ifdef __cplusplus 10332extern "C" 10333#endif 10334/* We use char because int might match the return type of a gcc2 10335 builtin and then its argument prototype would still apply. */ 10336char dnet_ntoa (); 10337int 10338main (void) 10339{ 10340dnet_ntoa (); 10341 ; 10342 return 0; 10343} 10344_ACEOF 10345rm -f conftest.$ac_objext conftest$ac_exeext 10346if { (eval echo "$as_me:10346: \"$ac_link\"") >&5 10347 (eval $ac_link) 2>&5 10348 ac_status=$? 10349 echo "$as_me:10349: \$? = $ac_status" >&5 10350 (exit $ac_status); } && 10351 { ac_try='test -s conftest$ac_exeext' 10352 { (eval echo "$as_me:10352: \"$ac_try\"") >&5 10353 (eval $ac_try) 2>&5 10354 ac_status=$? 10355 echo "$as_me:10355: \$? = $ac_status" >&5 10356 (exit $ac_status); }; }; then 10357 ac_cv_lib_dnet_stub_dnet_ntoa=yes 10358else 10359 echo "$as_me: failed program was:" >&5 10360cat conftest.$ac_ext >&5 10361ac_cv_lib_dnet_stub_dnet_ntoa=no 10362fi 10363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10364LIBS=$ac_check_lib_save_LIBS 10365fi 10366echo "$as_me:10366: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 10367echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 10368if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 10369 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 10370fi 10371 10372 fi 10373fi 10374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10375 LIBS="$ac_xsave_LIBS" 10376 10377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 10378 # to get the SysV transport functions. 10379 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 10380 # needs -lnsl. 10381 # The nsl library prevents programs from opening the X display 10382 # on Irix 5.2, according to T.E. Dickey. 10383 # The functions gethostbyname, getservbyname, and inet_addr are 10384 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 10385 echo "$as_me:10385: checking for gethostbyname" >&5 10386echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 10387if test "${ac_cv_func_gethostbyname+set}" = set; then 10388 echo $ECHO_N "(cached) $ECHO_C" >&6 10389else 10390 cat >conftest.$ac_ext <<_ACEOF 10391#line 10391 "configure" 10392#include "confdefs.h" 10393/* System header to define __stub macros and hopefully few prototypes, 10394 which can conflict with char gethostbyname (); below. */ 10395#include <assert.h> 10396/* Override any gcc2 internal prototype to avoid an error. */ 10397#ifdef __cplusplus 10398extern "C" 10399#endif 10400/* We use char because int might match the return type of a gcc2 10401 builtin and then its argument prototype would still apply. */ 10402char gethostbyname (); 10403char (*f) (); 10404 10405int 10406main (void) 10407{ 10408/* The GNU C library defines this for functions which it implements 10409 to always fail with ENOSYS. Some functions are actually named 10410 something starting with __ and the normal name is an alias. */ 10411#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 10412choke me 10413#else 10414f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10415#endif 10416 10417 ; 10418 return 0; 10419} 10420_ACEOF 10421rm -f conftest.$ac_objext conftest$ac_exeext 10422if { (eval echo "$as_me:10422: \"$ac_link\"") >&5 10423 (eval $ac_link) 2>&5 10424 ac_status=$? 10425 echo "$as_me:10425: \$? = $ac_status" >&5 10426 (exit $ac_status); } && 10427 { ac_try='test -s conftest$ac_exeext' 10428 { (eval echo "$as_me:10428: \"$ac_try\"") >&5 10429 (eval $ac_try) 2>&5 10430 ac_status=$? 10431 echo "$as_me:10431: \$? = $ac_status" >&5 10432 (exit $ac_status); }; }; then 10433 ac_cv_func_gethostbyname=yes 10434else 10435 echo "$as_me: failed program was:" >&5 10436cat conftest.$ac_ext >&5 10437ac_cv_func_gethostbyname=no 10438fi 10439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10440fi 10441echo "$as_me:10441: result: $ac_cv_func_gethostbyname" >&5 10442echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 10443 10444 if test $ac_cv_func_gethostbyname = no; then 10445 echo "$as_me:10445: checking for gethostbyname in -lnsl" >&5 10446echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 10447if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 10448 echo $ECHO_N "(cached) $ECHO_C" >&6 10449else 10450 ac_check_lib_save_LIBS=$LIBS 10451LIBS="-lnsl $LIBS" 10452cat >conftest.$ac_ext <<_ACEOF 10453#line 10453 "configure" 10454#include "confdefs.h" 10455 10456/* Override any gcc2 internal prototype to avoid an error. */ 10457#ifdef __cplusplus 10458extern "C" 10459#endif 10460/* We use char because int might match the return type of a gcc2 10461 builtin and then its argument prototype would still apply. */ 10462char gethostbyname (); 10463int 10464main (void) 10465{ 10466gethostbyname (); 10467 ; 10468 return 0; 10469} 10470_ACEOF 10471rm -f conftest.$ac_objext conftest$ac_exeext 10472if { (eval echo "$as_me:10472: \"$ac_link\"") >&5 10473 (eval $ac_link) 2>&5 10474 ac_status=$? 10475 echo "$as_me:10475: \$? = $ac_status" >&5 10476 (exit $ac_status); } && 10477 { ac_try='test -s conftest$ac_exeext' 10478 { (eval echo "$as_me:10478: \"$ac_try\"") >&5 10479 (eval $ac_try) 2>&5 10480 ac_status=$? 10481 echo "$as_me:10481: \$? = $ac_status" >&5 10482 (exit $ac_status); }; }; then 10483 ac_cv_lib_nsl_gethostbyname=yes 10484else 10485 echo "$as_me: failed program was:" >&5 10486cat conftest.$ac_ext >&5 10487ac_cv_lib_nsl_gethostbyname=no 10488fi 10489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10490LIBS=$ac_check_lib_save_LIBS 10491fi 10492echo "$as_me:10492: result: $ac_cv_lib_nsl_gethostbyname" >&5 10493echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 10494if test $ac_cv_lib_nsl_gethostbyname = yes; then 10495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 10496fi 10497 10498 if test $ac_cv_lib_nsl_gethostbyname = no; then 10499 echo "$as_me:10499: checking for gethostbyname in -lbsd" >&5 10500echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 10501if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 10502 echo $ECHO_N "(cached) $ECHO_C" >&6 10503else 10504 ac_check_lib_save_LIBS=$LIBS 10505LIBS="-lbsd $LIBS" 10506cat >conftest.$ac_ext <<_ACEOF 10507#line 10507 "configure" 10508#include "confdefs.h" 10509 10510/* Override any gcc2 internal prototype to avoid an error. */ 10511#ifdef __cplusplus 10512extern "C" 10513#endif 10514/* We use char because int might match the return type of a gcc2 10515 builtin and then its argument prototype would still apply. */ 10516char gethostbyname (); 10517int 10518main (void) 10519{ 10520gethostbyname (); 10521 ; 10522 return 0; 10523} 10524_ACEOF 10525rm -f conftest.$ac_objext conftest$ac_exeext 10526if { (eval echo "$as_me:10526: \"$ac_link\"") >&5 10527 (eval $ac_link) 2>&5 10528 ac_status=$? 10529 echo "$as_me:10529: \$? = $ac_status" >&5 10530 (exit $ac_status); } && 10531 { ac_try='test -s conftest$ac_exeext' 10532 { (eval echo "$as_me:10532: \"$ac_try\"") >&5 10533 (eval $ac_try) 2>&5 10534 ac_status=$? 10535 echo "$as_me:10535: \$? = $ac_status" >&5 10536 (exit $ac_status); }; }; then 10537 ac_cv_lib_bsd_gethostbyname=yes 10538else 10539 echo "$as_me: failed program was:" >&5 10540cat conftest.$ac_ext >&5 10541ac_cv_lib_bsd_gethostbyname=no 10542fi 10543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10544LIBS=$ac_check_lib_save_LIBS 10545fi 10546echo "$as_me:10546: result: $ac_cv_lib_bsd_gethostbyname" >&5 10547echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 10548if test $ac_cv_lib_bsd_gethostbyname = yes; then 10549 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 10550fi 10551 10552 fi 10553 fi 10554 10555 # lieder@skyler.mavd.honeywell.com says without -lsocket, 10556 # socket/setsockopt and other routines are undefined under SCO ODT 10557 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 10558 # on later versions), says Simon Leinen: it contains gethostby* 10559 # variants that don't use the nameserver (or something). -lsocket 10560 # must be given before -lnsl if both are needed. We assume that 10561 # if connect needs -lnsl, so does gethostbyname. 10562 echo "$as_me:10562: checking for connect" >&5 10563echo $ECHO_N "checking for connect... $ECHO_C" >&6 10564if test "${ac_cv_func_connect+set}" = set; then 10565 echo $ECHO_N "(cached) $ECHO_C" >&6 10566else 10567 cat >conftest.$ac_ext <<_ACEOF 10568#line 10568 "configure" 10569#include "confdefs.h" 10570/* System header to define __stub macros and hopefully few prototypes, 10571 which can conflict with char connect (); below. */ 10572#include <assert.h> 10573/* Override any gcc2 internal prototype to avoid an error. */ 10574#ifdef __cplusplus 10575extern "C" 10576#endif 10577/* We use char because int might match the return type of a gcc2 10578 builtin and then its argument prototype would still apply. */ 10579char connect (); 10580char (*f) (); 10581 10582int 10583main (void) 10584{ 10585/* The GNU C library defines this for functions which it implements 10586 to always fail with ENOSYS. Some functions are actually named 10587 something starting with __ and the normal name is an alias. */ 10588#if defined (__stub_connect) || defined (__stub___connect) 10589choke me 10590#else 10591f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10592#endif 10593 10594 ; 10595 return 0; 10596} 10597_ACEOF 10598rm -f conftest.$ac_objext conftest$ac_exeext 10599if { (eval echo "$as_me:10599: \"$ac_link\"") >&5 10600 (eval $ac_link) 2>&5 10601 ac_status=$? 10602 echo "$as_me:10602: \$? = $ac_status" >&5 10603 (exit $ac_status); } && 10604 { ac_try='test -s conftest$ac_exeext' 10605 { (eval echo "$as_me:10605: \"$ac_try\"") >&5 10606 (eval $ac_try) 2>&5 10607 ac_status=$? 10608 echo "$as_me:10608: \$? = $ac_status" >&5 10609 (exit $ac_status); }; }; then 10610 ac_cv_func_connect=yes 10611else 10612 echo "$as_me: failed program was:" >&5 10613cat conftest.$ac_ext >&5 10614ac_cv_func_connect=no 10615fi 10616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10617fi 10618echo "$as_me:10618: result: $ac_cv_func_connect" >&5 10619echo "${ECHO_T}$ac_cv_func_connect" >&6 10620 10621 if test $ac_cv_func_connect = no; then 10622 echo "$as_me:10622: checking for connect in -lsocket" >&5 10623echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 10624if test "${ac_cv_lib_socket_connect+set}" = set; then 10625 echo $ECHO_N "(cached) $ECHO_C" >&6 10626else 10627 ac_check_lib_save_LIBS=$LIBS 10628LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 10629cat >conftest.$ac_ext <<_ACEOF 10630#line 10630 "configure" 10631#include "confdefs.h" 10632 10633/* Override any gcc2 internal prototype to avoid an error. */ 10634#ifdef __cplusplus 10635extern "C" 10636#endif 10637/* We use char because int might match the return type of a gcc2 10638 builtin and then its argument prototype would still apply. */ 10639char connect (); 10640int 10641main (void) 10642{ 10643connect (); 10644 ; 10645 return 0; 10646} 10647_ACEOF 10648rm -f conftest.$ac_objext conftest$ac_exeext 10649if { (eval echo "$as_me:10649: \"$ac_link\"") >&5 10650 (eval $ac_link) 2>&5 10651 ac_status=$? 10652 echo "$as_me:10652: \$? = $ac_status" >&5 10653 (exit $ac_status); } && 10654 { ac_try='test -s conftest$ac_exeext' 10655 { (eval echo "$as_me:10655: \"$ac_try\"") >&5 10656 (eval $ac_try) 2>&5 10657 ac_status=$? 10658 echo "$as_me:10658: \$? = $ac_status" >&5 10659 (exit $ac_status); }; }; then 10660 ac_cv_lib_socket_connect=yes 10661else 10662 echo "$as_me: failed program was:" >&5 10663cat conftest.$ac_ext >&5 10664ac_cv_lib_socket_connect=no 10665fi 10666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10667LIBS=$ac_check_lib_save_LIBS 10668fi 10669echo "$as_me:10669: result: $ac_cv_lib_socket_connect" >&5 10670echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 10671if test $ac_cv_lib_socket_connect = yes; then 10672 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 10673fi 10674 10675 fi 10676 10677 # Guillermo Gomez says -lposix is necessary on A/UX. 10678 echo "$as_me:10678: checking for remove" >&5 10679echo $ECHO_N "checking for remove... $ECHO_C" >&6 10680if test "${ac_cv_func_remove+set}" = set; then 10681 echo $ECHO_N "(cached) $ECHO_C" >&6 10682else 10683 cat >conftest.$ac_ext <<_ACEOF 10684#line 10684 "configure" 10685#include "confdefs.h" 10686/* System header to define __stub macros and hopefully few prototypes, 10687 which can conflict with char remove (); below. */ 10688#include <assert.h> 10689/* Override any gcc2 internal prototype to avoid an error. */ 10690#ifdef __cplusplus 10691extern "C" 10692#endif 10693/* We use char because int might match the return type of a gcc2 10694 builtin and then its argument prototype would still apply. */ 10695char remove (); 10696char (*f) (); 10697 10698int 10699main (void) 10700{ 10701/* The GNU C library defines this for functions which it implements 10702 to always fail with ENOSYS. Some functions are actually named 10703 something starting with __ and the normal name is an alias. */ 10704#if defined (__stub_remove) || defined (__stub___remove) 10705choke me 10706#else 10707f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10708#endif 10709 10710 ; 10711 return 0; 10712} 10713_ACEOF 10714rm -f conftest.$ac_objext conftest$ac_exeext 10715if { (eval echo "$as_me:10715: \"$ac_link\"") >&5 10716 (eval $ac_link) 2>&5 10717 ac_status=$? 10718 echo "$as_me:10718: \$? = $ac_status" >&5 10719 (exit $ac_status); } && 10720 { ac_try='test -s conftest$ac_exeext' 10721 { (eval echo "$as_me:10721: \"$ac_try\"") >&5 10722 (eval $ac_try) 2>&5 10723 ac_status=$? 10724 echo "$as_me:10724: \$? = $ac_status" >&5 10725 (exit $ac_status); }; }; then 10726 ac_cv_func_remove=yes 10727else 10728 echo "$as_me: failed program was:" >&5 10729cat conftest.$ac_ext >&5 10730ac_cv_func_remove=no 10731fi 10732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10733fi 10734echo "$as_me:10734: result: $ac_cv_func_remove" >&5 10735echo "${ECHO_T}$ac_cv_func_remove" >&6 10736 10737 if test $ac_cv_func_remove = no; then 10738 echo "$as_me:10738: checking for remove in -lposix" >&5 10739echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 10740if test "${ac_cv_lib_posix_remove+set}" = set; then 10741 echo $ECHO_N "(cached) $ECHO_C" >&6 10742else 10743 ac_check_lib_save_LIBS=$LIBS 10744LIBS="-lposix $LIBS" 10745cat >conftest.$ac_ext <<_ACEOF 10746#line 10746 "configure" 10747#include "confdefs.h" 10748 10749/* Override any gcc2 internal prototype to avoid an error. */ 10750#ifdef __cplusplus 10751extern "C" 10752#endif 10753/* We use char because int might match the return type of a gcc2 10754 builtin and then its argument prototype would still apply. */ 10755char remove (); 10756int 10757main (void) 10758{ 10759remove (); 10760 ; 10761 return 0; 10762} 10763_ACEOF 10764rm -f conftest.$ac_objext conftest$ac_exeext 10765if { (eval echo "$as_me:10765: \"$ac_link\"") >&5 10766 (eval $ac_link) 2>&5 10767 ac_status=$? 10768 echo "$as_me:10768: \$? = $ac_status" >&5 10769 (exit $ac_status); } && 10770 { ac_try='test -s conftest$ac_exeext' 10771 { (eval echo "$as_me:10771: \"$ac_try\"") >&5 10772 (eval $ac_try) 2>&5 10773 ac_status=$? 10774 echo "$as_me:10774: \$? = $ac_status" >&5 10775 (exit $ac_status); }; }; then 10776 ac_cv_lib_posix_remove=yes 10777else 10778 echo "$as_me: failed program was:" >&5 10779cat conftest.$ac_ext >&5 10780ac_cv_lib_posix_remove=no 10781fi 10782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10783LIBS=$ac_check_lib_save_LIBS 10784fi 10785echo "$as_me:10785: result: $ac_cv_lib_posix_remove" >&5 10786echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 10787if test $ac_cv_lib_posix_remove = yes; then 10788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 10789fi 10790 10791 fi 10792 10793 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10794 echo "$as_me:10794: checking for shmat" >&5 10795echo $ECHO_N "checking for shmat... $ECHO_C" >&6 10796if test "${ac_cv_func_shmat+set}" = set; then 10797 echo $ECHO_N "(cached) $ECHO_C" >&6 10798else 10799 cat >conftest.$ac_ext <<_ACEOF 10800#line 10800 "configure" 10801#include "confdefs.h" 10802/* System header to define __stub macros and hopefully few prototypes, 10803 which can conflict with char shmat (); below. */ 10804#include <assert.h> 10805/* Override any gcc2 internal prototype to avoid an error. */ 10806#ifdef __cplusplus 10807extern "C" 10808#endif 10809/* We use char because int might match the return type of a gcc2 10810 builtin and then its argument prototype would still apply. */ 10811char shmat (); 10812char (*f) (); 10813 10814int 10815main (void) 10816{ 10817/* The GNU C library defines this for functions which it implements 10818 to always fail with ENOSYS. Some functions are actually named 10819 something starting with __ and the normal name is an alias. */ 10820#if defined (__stub_shmat) || defined (__stub___shmat) 10821choke me 10822#else 10823f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10824#endif 10825 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830rm -f conftest.$ac_objext conftest$ac_exeext 10831if { (eval echo "$as_me:10831: \"$ac_link\"") >&5 10832 (eval $ac_link) 2>&5 10833 ac_status=$? 10834 echo "$as_me:10834: \$? = $ac_status" >&5 10835 (exit $ac_status); } && 10836 { ac_try='test -s conftest$ac_exeext' 10837 { (eval echo "$as_me:10837: \"$ac_try\"") >&5 10838 (eval $ac_try) 2>&5 10839 ac_status=$? 10840 echo "$as_me:10840: \$? = $ac_status" >&5 10841 (exit $ac_status); }; }; then 10842 ac_cv_func_shmat=yes 10843else 10844 echo "$as_me: failed program was:" >&5 10845cat conftest.$ac_ext >&5 10846ac_cv_func_shmat=no 10847fi 10848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10849fi 10850echo "$as_me:10850: result: $ac_cv_func_shmat" >&5 10851echo "${ECHO_T}$ac_cv_func_shmat" >&6 10852 10853 if test $ac_cv_func_shmat = no; then 10854 echo "$as_me:10854: checking for shmat in -lipc" >&5 10855echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 10856if test "${ac_cv_lib_ipc_shmat+set}" = set; then 10857 echo $ECHO_N "(cached) $ECHO_C" >&6 10858else 10859 ac_check_lib_save_LIBS=$LIBS 10860LIBS="-lipc $LIBS" 10861cat >conftest.$ac_ext <<_ACEOF 10862#line 10862 "configure" 10863#include "confdefs.h" 10864 10865/* Override any gcc2 internal prototype to avoid an error. */ 10866#ifdef __cplusplus 10867extern "C" 10868#endif 10869/* We use char because int might match the return type of a gcc2 10870 builtin and then its argument prototype would still apply. */ 10871char shmat (); 10872int 10873main (void) 10874{ 10875shmat (); 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880rm -f conftest.$ac_objext conftest$ac_exeext 10881if { (eval echo "$as_me:10881: \"$ac_link\"") >&5 10882 (eval $ac_link) 2>&5 10883 ac_status=$? 10884 echo "$as_me:10884: \$? = $ac_status" >&5 10885 (exit $ac_status); } && 10886 { ac_try='test -s conftest$ac_exeext' 10887 { (eval echo "$as_me:10887: \"$ac_try\"") >&5 10888 (eval $ac_try) 2>&5 10889 ac_status=$? 10890 echo "$as_me:10890: \$? = $ac_status" >&5 10891 (exit $ac_status); }; }; then 10892 ac_cv_lib_ipc_shmat=yes 10893else 10894 echo "$as_me: failed program was:" >&5 10895cat conftest.$ac_ext >&5 10896ac_cv_lib_ipc_shmat=no 10897fi 10898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10899LIBS=$ac_check_lib_save_LIBS 10900fi 10901echo "$as_me:10901: result: $ac_cv_lib_ipc_shmat" >&5 10902echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 10903if test $ac_cv_lib_ipc_shmat = yes; then 10904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10905fi 10906 10907 fi 10908 fi 10909 10910 # Check for libraries that X11R6 Xt/Xaw programs need. 10911 ac_save_LDFLAGS=$LDFLAGS 10912 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10913 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10914 # check for ICE first), but we must link in the order -lSM -lICE or 10915 # we get undefined symbols. So assume we have SM if we have ICE. 10916 # These have to be linked with before -lX11, unlike the other 10917 # libraries we check for below, so use a different variable. 10918 # John Interrante, Karl Berry 10919 echo "$as_me:10919: checking for IceConnectionNumber in -lICE" >&5 10920echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 10921if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 10922 echo $ECHO_N "(cached) $ECHO_C" >&6 10923else 10924 ac_check_lib_save_LIBS=$LIBS 10925LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10926cat >conftest.$ac_ext <<_ACEOF 10927#line 10927 "configure" 10928#include "confdefs.h" 10929 10930/* Override any gcc2 internal prototype to avoid an error. */ 10931#ifdef __cplusplus 10932extern "C" 10933#endif 10934/* We use char because int might match the return type of a gcc2 10935 builtin and then its argument prototype would still apply. */ 10936char IceConnectionNumber (); 10937int 10938main (void) 10939{ 10940IceConnectionNumber (); 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945rm -f conftest.$ac_objext conftest$ac_exeext 10946if { (eval echo "$as_me:10946: \"$ac_link\"") >&5 10947 (eval $ac_link) 2>&5 10948 ac_status=$? 10949 echo "$as_me:10949: \$? = $ac_status" >&5 10950 (exit $ac_status); } && 10951 { ac_try='test -s conftest$ac_exeext' 10952 { (eval echo "$as_me:10952: \"$ac_try\"") >&5 10953 (eval $ac_try) 2>&5 10954 ac_status=$? 10955 echo "$as_me:10955: \$? = $ac_status" >&5 10956 (exit $ac_status); }; }; then 10957 ac_cv_lib_ICE_IceConnectionNumber=yes 10958else 10959 echo "$as_me: failed program was:" >&5 10960cat conftest.$ac_ext >&5 10961ac_cv_lib_ICE_IceConnectionNumber=no 10962fi 10963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10964LIBS=$ac_check_lib_save_LIBS 10965fi 10966echo "$as_me:10966: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 10967echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 10968if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 10969 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10970fi 10971 10972 LDFLAGS=$ac_save_LDFLAGS 10973 10974fi 10975 10976cf_x_athena=${cf_x_athena:-Xaw} 10977 10978echo "$as_me:10978: checking if you want to link with Xaw 3d library" >&5 10979echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 10980withval= 10981 10982# Check whether --with-Xaw3d or --without-Xaw3d was given. 10983if test "${with_Xaw3d+set}" = set; then 10984 withval="$with_Xaw3d" 10985 10986fi; 10987if test "$withval" = yes ; then 10988 cf_x_athena=Xaw3d 10989 echo "$as_me:10989: result: yes" >&5 10990echo "${ECHO_T}yes" >&6 10991else 10992 echo "$as_me:10992: result: no" >&5 10993echo "${ECHO_T}no" >&6 10994fi 10995 10996echo "$as_me:10996: checking if you want to link with Xaw 3d xft library" >&5 10997echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 10998withval= 10999 11000# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 11001if test "${with_Xaw3dxft+set}" = set; then 11002 withval="$with_Xaw3dxft" 11003 11004fi; 11005if test "$withval" = yes ; then 11006 cf_x_athena=Xaw3dxft 11007 echo "$as_me:11007: result: yes" >&5 11008echo "${ECHO_T}yes" >&6 11009else 11010 echo "$as_me:11010: result: no" >&5 11011echo "${ECHO_T}no" >&6 11012fi 11013 11014echo "$as_me:11014: checking if you want to link with neXT Athena library" >&5 11015echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 11016withval= 11017 11018# Check whether --with-neXtaw or --without-neXtaw was given. 11019if test "${with_neXtaw+set}" = set; then 11020 withval="$with_neXtaw" 11021 11022fi; 11023if test "$withval" = yes ; then 11024 cf_x_athena=neXtaw 11025 echo "$as_me:11025: result: yes" >&5 11026echo "${ECHO_T}yes" >&6 11027else 11028 echo "$as_me:11028: result: no" >&5 11029echo "${ECHO_T}no" >&6 11030fi 11031 11032echo "$as_me:11032: checking if you want to link with Athena-Plus library" >&5 11033echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 11034withval= 11035 11036# Check whether --with-XawPlus or --without-XawPlus was given. 11037if test "${with_XawPlus+set}" = set; then 11038 withval="$with_XawPlus" 11039 11040fi; 11041if test "$withval" = yes ; then 11042 cf_x_athena=XawPlus 11043 echo "$as_me:11043: result: yes" >&5 11044echo "${ECHO_T}yes" >&6 11045else 11046 echo "$as_me:11046: result: no" >&5 11047echo "${ECHO_T}no" >&6 11048fi 11049 11050cf_x_athena_lib="" 11051 11052if test "$PKG_CONFIG" != none ; then 11053 cf_athena_list= 11054 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 11055 for cf_athena_pkg in \ 11056 $cf_athena_list \ 11057 ${cf_x_athena} \ 11058 ${cf_x_athena}-devel \ 11059 lib${cf_x_athena} \ 11060 lib${cf_x_athena}-devel 11061 do 11062 11063if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then 11064 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 11065 11066echo "${as_me:-configure}:11066: testing found package $cf_athena_pkg ..." 1>&5 11067 11068 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`" 11069 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`" 11070 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 11071 11072echo "${as_me:-configure}:11072: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11073 11074 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 11075 11076echo "${as_me:-configure}:11076: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 11077 11078cf_fix_cppflags=no 11079cf_new_cflags= 11080cf_new_cppflags= 11081cf_new_extra_cppflags= 11082 11083for cf_add_cflags in $cf_pkgconfig_incs 11084do 11085case $cf_fix_cppflags in 11086(no) 11087 case $cf_add_cflags in 11088 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11089 case $cf_add_cflags in 11090 (-D*) 11091 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11092 11093 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11094 && test -z "${cf_tst_cflags}" \ 11095 && cf_fix_cppflags=yes 11096 11097 if test $cf_fix_cppflags = yes ; then 11098 11099 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11100 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11101 11102 continue 11103 elif test "${cf_tst_cflags}" = "\"'" ; 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 fi 11110 ;; 11111 esac 11112 case "$CPPFLAGS" in 11113 (*$cf_add_cflags) 11114 ;; 11115 (*) 11116 case $cf_add_cflags in 11117 (-D*) 11118 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11119 11120CPPFLAGS=`echo "$CPPFLAGS" | \ 11121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11123 11124 ;; 11125 esac 11126 11127 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11128 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11129 11130 ;; 11131 esac 11132 ;; 11133 (*) 11134 11135 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11136 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11137 11138 ;; 11139 esac 11140 ;; 11141(yes) 11142 11143 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11144 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11145 11146 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11147 11148 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11149 && test -z "${cf_tst_cflags}" \ 11150 && cf_fix_cppflags=no 11151 ;; 11152esac 11153done 11154 11155if test -n "$cf_new_cflags" ; then 11156 11157 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11158 CFLAGS="${CFLAGS}$cf_new_cflags" 11159 11160fi 11161 11162if test -n "$cf_new_cppflags" ; then 11163 11164 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11165 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11166 11167fi 11168 11169if test -n "$cf_new_extra_cppflags" ; then 11170 11171 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11172 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11173 11174fi 11175 11176cf_add_libs="$cf_pkgconfig_libs" 11177# Filter out duplicates - this happens with badly-designed ".pc" files... 11178for cf_add_1lib in $LIBS 11179do 11180 for cf_add_2lib in $cf_add_libs 11181 do 11182 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11183 then 11184 cf_add_1lib= 11185 break 11186 fi 11187 done 11188 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11189done 11190LIBS="$cf_add_libs" 11191 11192 cf_x_athena_lib="$cf_pkgconfig_libs" 11193 11194cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11195 11196 cat >>confdefs.h <<EOF 11197#define $cf_x_athena_LIBS 1 11198EOF 11199 11200 for cf_trim_lib in Xmu Xt X11 11201 do 11202 case "$LIBS" in 11203 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 11204 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 11205 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 11206 11207echo "${as_me:-configure}:11207: testing ..trimmed $LIBS ..." 1>&5 11208 11209 ;; 11210 esac 11211 done 11212 11213echo "$as_me:11213: checking for usable $cf_x_athena/Xmu package" >&5 11214echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 11215if test "${cf_cv_xaw_compat+set}" = set; then 11216 echo $ECHO_N "(cached) $ECHO_C" >&6 11217else 11218 11219cat >conftest.$ac_ext <<_ACEOF 11220#line 11220 "configure" 11221#include "confdefs.h" 11222 11223#include <X11/Xmu/CharSet.h> 11224 11225int 11226main (void) 11227{ 11228 11229int check = XmuCompareISOLatin1("big", "small") 11230 11231 ; 11232 return 0; 11233} 11234_ACEOF 11235rm -f conftest.$ac_objext conftest$ac_exeext 11236if { (eval echo "$as_me:11236: \"$ac_link\"") >&5 11237 (eval $ac_link) 2>&5 11238 ac_status=$? 11239 echo "$as_me:11239: \$? = $ac_status" >&5 11240 (exit $ac_status); } && 11241 { ac_try='test -s conftest$ac_exeext' 11242 { (eval echo "$as_me:11242: \"$ac_try\"") >&5 11243 (eval $ac_try) 2>&5 11244 ac_status=$? 11245 echo "$as_me:11245: \$? = $ac_status" >&5 11246 (exit $ac_status); }; }; then 11247 cf_cv_xaw_compat=yes 11248else 11249 echo "$as_me: failed program was:" >&5 11250cat conftest.$ac_ext >&5 11251cf_cv_xaw_compat=no 11252fi 11253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11254fi 11255echo "$as_me:11255: result: $cf_cv_xaw_compat" >&5 11256echo "${ECHO_T}$cf_cv_xaw_compat" >&6 11257 11258 if test "$cf_cv_xaw_compat" = no 11259 then 11260 # workaround for broken ".pc" files... 11261 case "$cf_x_athena_lib" in 11262 (*-lXmu*) 11263 ;; 11264 (*) 11265 test -n "$verbose" && echo " work around broken package" 1>&6 11266 11267echo "${as_me:-configure}:11267: testing work around broken package ..." 1>&5 11268 11269 cf_save_xmu="$LIBS" 11270 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 11271 11272if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then 11273 test -n "$verbose" && echo " found package xmu" 1>&6 11274 11275echo "${as_me:-configure}:11275: testing found package xmu ..." 1>&5 11276 11277 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`" 11278 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`" 11279 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 11280 11281echo "${as_me:-configure}:11281: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11282 11283 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 11284 11285echo "${as_me:-configure}:11285: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 11286 11287cf_fix_cppflags=no 11288cf_new_cflags= 11289cf_new_cppflags= 11290cf_new_extra_cppflags= 11291 11292for cf_add_cflags in $cf_pkgconfig_incs 11293do 11294case $cf_fix_cppflags in 11295(no) 11296 case $cf_add_cflags in 11297 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11298 case $cf_add_cflags in 11299 (-D*) 11300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11301 11302 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11303 && test -z "${cf_tst_cflags}" \ 11304 && cf_fix_cppflags=yes 11305 11306 if test $cf_fix_cppflags = yes ; then 11307 11308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11310 11311 continue 11312 elif test "${cf_tst_cflags}" = "\"'" ; then 11313 11314 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11315 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11316 11317 continue 11318 fi 11319 ;; 11320 esac 11321 case "$CPPFLAGS" in 11322 (*$cf_add_cflags) 11323 ;; 11324 (*) 11325 case $cf_add_cflags in 11326 (-D*) 11327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11328 11329CPPFLAGS=`echo "$CPPFLAGS" | \ 11330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11332 11333 ;; 11334 esac 11335 11336 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11337 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11338 11339 ;; 11340 esac 11341 ;; 11342 (*) 11343 11344 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11345 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11346 11347 ;; 11348 esac 11349 ;; 11350(yes) 11351 11352 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11353 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11354 11355 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11356 11357 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11358 && test -z "${cf_tst_cflags}" \ 11359 && cf_fix_cppflags=no 11360 ;; 11361esac 11362done 11363 11364if test -n "$cf_new_cflags" ; then 11365 11366 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11367 CFLAGS="${CFLAGS}$cf_new_cflags" 11368 11369fi 11370 11371if test -n "$cf_new_cppflags" ; then 11372 11373 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11374 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11375 11376fi 11377 11378if test -n "$cf_new_extra_cppflags" ; then 11379 11380 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11381 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11382 11383fi 11384 11385cf_add_libs="$cf_pkgconfig_libs" 11386# Filter out duplicates - this happens with badly-designed ".pc" files... 11387for cf_add_1lib in $LIBS 11388do 11389 for cf_add_2lib in $cf_add_libs 11390 do 11391 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11392 then 11393 cf_add_1lib= 11394 break 11395 fi 11396 done 11397 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11398done 11399LIBS="$cf_add_libs" 11400 11401 LIBS="$cf_save_xmu" 11402 11403test -n "$verbose" && echo " ...before $LIBS" 1>&6 11404 11405echo "${as_me:-configure}:11405: testing ...before $LIBS ..." 1>&5 11406 11407LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 11408test -n "$verbose" && echo " ...after $LIBS" 1>&6 11409 11410echo "${as_me:-configure}:11410: testing ...after $LIBS ..." 1>&5 11411 11412else 11413 cf_pkgconfig_incs= 11414 cf_pkgconfig_libs= 11415 11416test -n "$verbose" && echo " ...before $LIBS" 1>&6 11417 11418echo "${as_me:-configure}:11418: testing ...before $LIBS ..." 1>&5 11419 11420LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 11421test -n "$verbose" && echo " ...after $LIBS" 1>&6 11422 11423echo "${as_me:-configure}:11423: testing ...after $LIBS ..." 1>&5 11424 11425fi 11426 11427 for cf_trim_lib in Xmu Xt X11 11428 do 11429 case "$LIBS" in 11430 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 11431 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 11432 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 11433 11434echo "${as_me:-configure}:11434: testing ..trimmed $LIBS ..." 1>&5 11435 11436 ;; 11437 esac 11438 done 11439 11440 ;; 11441 esac 11442 fi 11443 11444 break 11445else 11446 cf_pkgconfig_incs= 11447 cf_pkgconfig_libs= 11448 : 11449fi 11450 11451 done 11452fi 11453 11454if test -z "$cf_x_athena_lib" ; then 11455 11456if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 11457 test -n "$verbose" && echo " found package Xext" 1>&6 11458 11459echo "${as_me:-configure}:11459: testing found package Xext ..." 1>&5 11460 11461 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 11462 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 11463 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 11464 11465echo "${as_me:-configure}:11465: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11466 11467 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 11468 11469echo "${as_me:-configure}:11469: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 11470 11471cf_fix_cppflags=no 11472cf_new_cflags= 11473cf_new_cppflags= 11474cf_new_extra_cppflags= 11475 11476for cf_add_cflags in $cf_pkgconfig_incs 11477do 11478case $cf_fix_cppflags in 11479(no) 11480 case $cf_add_cflags in 11481 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11482 case $cf_add_cflags in 11483 (-D*) 11484 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11485 11486 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11487 && test -z "${cf_tst_cflags}" \ 11488 && cf_fix_cppflags=yes 11489 11490 if test $cf_fix_cppflags = yes ; then 11491 11492 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11493 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11494 11495 continue 11496 elif test "${cf_tst_cflags}" = "\"'" ; then 11497 11498 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11499 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11500 11501 continue 11502 fi 11503 ;; 11504 esac 11505 case "$CPPFLAGS" in 11506 (*$cf_add_cflags) 11507 ;; 11508 (*) 11509 case $cf_add_cflags in 11510 (-D*) 11511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11512 11513CPPFLAGS=`echo "$CPPFLAGS" | \ 11514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11516 11517 ;; 11518 esac 11519 11520 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11521 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11522 11523 ;; 11524 esac 11525 ;; 11526 (*) 11527 11528 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11529 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11530 11531 ;; 11532 esac 11533 ;; 11534(yes) 11535 11536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11538 11539 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11540 11541 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11542 && test -z "${cf_tst_cflags}" \ 11543 && cf_fix_cppflags=no 11544 ;; 11545esac 11546done 11547 11548if test -n "$cf_new_cflags" ; then 11549 11550 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11551 CFLAGS="${CFLAGS}$cf_new_cflags" 11552 11553fi 11554 11555if test -n "$cf_new_cppflags" ; then 11556 11557 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11558 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11559 11560fi 11561 11562if test -n "$cf_new_extra_cppflags" ; then 11563 11564 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11565 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11566 11567fi 11568 11569cf_add_libs="$cf_pkgconfig_libs" 11570# Filter out duplicates - this happens with badly-designed ".pc" files... 11571for cf_add_1lib in $LIBS 11572do 11573 for cf_add_2lib in $cf_add_libs 11574 do 11575 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11576 then 11577 cf_add_1lib= 11578 break 11579 fi 11580 done 11581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11582done 11583LIBS="$cf_add_libs" 11584 11585 : 11586else 11587 cf_pkgconfig_incs= 11588 cf_pkgconfig_libs= 11589 11590 echo "$as_me:11590: checking for XextCreateExtension in -lXext" >&5 11591echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 11592if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 11593 echo $ECHO_N "(cached) $ECHO_C" >&6 11594else 11595 ac_check_lib_save_LIBS=$LIBS 11596LIBS="-lXext $LIBS" 11597cat >conftest.$ac_ext <<_ACEOF 11598#line 11598 "configure" 11599#include "confdefs.h" 11600 11601/* Override any gcc2 internal prototype to avoid an error. */ 11602#ifdef __cplusplus 11603extern "C" 11604#endif 11605/* We use char because int might match the return type of a gcc2 11606 builtin and then its argument prototype would still apply. */ 11607char XextCreateExtension (); 11608int 11609main (void) 11610{ 11611XextCreateExtension (); 11612 ; 11613 return 0; 11614} 11615_ACEOF 11616rm -f conftest.$ac_objext conftest$ac_exeext 11617if { (eval echo "$as_me:11617: \"$ac_link\"") >&5 11618 (eval $ac_link) 2>&5 11619 ac_status=$? 11620 echo "$as_me:11620: \$? = $ac_status" >&5 11621 (exit $ac_status); } && 11622 { ac_try='test -s conftest$ac_exeext' 11623 { (eval echo "$as_me:11623: \"$ac_try\"") >&5 11624 (eval $ac_try) 2>&5 11625 ac_status=$? 11626 echo "$as_me:11626: \$? = $ac_status" >&5 11627 (exit $ac_status); }; }; then 11628 ac_cv_lib_Xext_XextCreateExtension=yes 11629else 11630 echo "$as_me: failed program was:" >&5 11631cat conftest.$ac_ext >&5 11632ac_cv_lib_Xext_XextCreateExtension=no 11633fi 11634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11635LIBS=$ac_check_lib_save_LIBS 11636fi 11637echo "$as_me:11637: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 11638echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 11639if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 11640 11641cf_add_libs="-lXext" 11642# Filter out duplicates - this happens with badly-designed ".pc" files... 11643for cf_add_1lib in $LIBS 11644do 11645 for cf_add_2lib in $cf_add_libs 11646 do 11647 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11648 then 11649 cf_add_1lib= 11650 break 11651 fi 11652 done 11653 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11654done 11655LIBS="$cf_add_libs" 11656 11657fi 11658 11659fi 11660 11661# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and 11662# in some cases has installed dummy files in the former, other cases replaced 11663# it with a link to the new location). This complicates the configure script. 11664# Check for that pitfall, and recover using pkg-config 11665# 11666# If none of these are set, the configuration is almost certainly broken. 11667if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 11668then 11669 11670if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 11671 test -n "$verbose" && echo " found package x11" 1>&6 11672 11673echo "${as_me:-configure}:11673: testing found package x11 ..." 1>&5 11674 11675 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 11676 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 11677 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11678 11679echo "${as_me:-configure}:11679: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11680 11681 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11682 11683echo "${as_me:-configure}:11683: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11684 11685cf_fix_cppflags=no 11686cf_new_cflags= 11687cf_new_cppflags= 11688cf_new_extra_cppflags= 11689 11690for cf_add_cflags in $cf_pkgconfig_incs 11691do 11692case $cf_fix_cppflags in 11693(no) 11694 case $cf_add_cflags in 11695 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11696 case $cf_add_cflags in 11697 (-D*) 11698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11699 11700 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11701 && test -z "${cf_tst_cflags}" \ 11702 && cf_fix_cppflags=yes 11703 11704 if test $cf_fix_cppflags = yes ; then 11705 11706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11708 11709 continue 11710 elif test "${cf_tst_cflags}" = "\"'" ; then 11711 11712 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11713 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11714 11715 continue 11716 fi 11717 ;; 11718 esac 11719 case "$CPPFLAGS" in 11720 (*$cf_add_cflags) 11721 ;; 11722 (*) 11723 case $cf_add_cflags in 11724 (-D*) 11725 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11726 11727CPPFLAGS=`echo "$CPPFLAGS" | \ 11728 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11729 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11730 11731 ;; 11732 esac 11733 11734 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11735 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11736 11737 ;; 11738 esac 11739 ;; 11740 (*) 11741 11742 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11743 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11744 11745 ;; 11746 esac 11747 ;; 11748(yes) 11749 11750 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11751 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11752 11753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11754 11755 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11756 && test -z "${cf_tst_cflags}" \ 11757 && cf_fix_cppflags=no 11758 ;; 11759esac 11760done 11761 11762if test -n "$cf_new_cflags" ; then 11763 11764 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11765 CFLAGS="${CFLAGS}$cf_new_cflags" 11766 11767fi 11768 11769if test -n "$cf_new_cppflags" ; then 11770 11771 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11772 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11773 11774fi 11775 11776if test -n "$cf_new_extra_cppflags" ; then 11777 11778 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11779 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11780 11781fi 11782 11783cf_add_libs="$cf_pkgconfig_libs" 11784# Filter out duplicates - this happens with badly-designed ".pc" files... 11785for cf_add_1lib in $LIBS 11786do 11787 for cf_add_2lib in $cf_add_libs 11788 do 11789 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11790 then 11791 cf_add_1lib= 11792 break 11793 fi 11794 done 11795 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11796done 11797LIBS="$cf_add_libs" 11798 11799 : 11800else 11801 cf_pkgconfig_incs= 11802 cf_pkgconfig_libs= 11803 { echo "$as_me:11803: WARNING: unable to find X11 library" >&5 11804echo "$as_me: WARNING: unable to find X11 library" >&2;} 11805fi 11806 11807if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 11808 test -n "$verbose" && echo " found package ice" 1>&6 11809 11810echo "${as_me:-configure}:11810: testing found package ice ..." 1>&5 11811 11812 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 11813 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 11814 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11815 11816echo "${as_me:-configure}:11816: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11817 11818 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11819 11820echo "${as_me:-configure}:11820: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11821 11822cf_fix_cppflags=no 11823cf_new_cflags= 11824cf_new_cppflags= 11825cf_new_extra_cppflags= 11826 11827for cf_add_cflags in $cf_pkgconfig_incs 11828do 11829case $cf_fix_cppflags in 11830(no) 11831 case $cf_add_cflags in 11832 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11833 case $cf_add_cflags in 11834 (-D*) 11835 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11836 11837 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11838 && test -z "${cf_tst_cflags}" \ 11839 && cf_fix_cppflags=yes 11840 11841 if test $cf_fix_cppflags = yes ; then 11842 11843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11845 11846 continue 11847 elif test "${cf_tst_cflags}" = "\"'" ; then 11848 11849 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11850 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11851 11852 continue 11853 fi 11854 ;; 11855 esac 11856 case "$CPPFLAGS" in 11857 (*$cf_add_cflags) 11858 ;; 11859 (*) 11860 case $cf_add_cflags in 11861 (-D*) 11862 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11863 11864CPPFLAGS=`echo "$CPPFLAGS" | \ 11865 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11866 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11867 11868 ;; 11869 esac 11870 11871 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11872 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11873 11874 ;; 11875 esac 11876 ;; 11877 (*) 11878 11879 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11880 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11881 11882 ;; 11883 esac 11884 ;; 11885(yes) 11886 11887 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11888 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11889 11890 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11891 11892 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11893 && test -z "${cf_tst_cflags}" \ 11894 && cf_fix_cppflags=no 11895 ;; 11896esac 11897done 11898 11899if test -n "$cf_new_cflags" ; then 11900 11901 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11902 CFLAGS="${CFLAGS}$cf_new_cflags" 11903 11904fi 11905 11906if test -n "$cf_new_cppflags" ; then 11907 11908 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11909 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11910 11911fi 11912 11913if test -n "$cf_new_extra_cppflags" ; then 11914 11915 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11916 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11917 11918fi 11919 11920cf_add_libs="$cf_pkgconfig_libs" 11921# Filter out duplicates - this happens with badly-designed ".pc" files... 11922for cf_add_1lib in $LIBS 11923do 11924 for cf_add_2lib in $cf_add_libs 11925 do 11926 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11927 then 11928 cf_add_1lib= 11929 break 11930 fi 11931 done 11932 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11933done 11934LIBS="$cf_add_libs" 11935 11936 : 11937else 11938 cf_pkgconfig_incs= 11939 cf_pkgconfig_libs= 11940 { echo "$as_me:11940: WARNING: unable to find ICE library" >&5 11941echo "$as_me: WARNING: unable to find ICE library" >&2;} 11942fi 11943 11944if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 11945 test -n "$verbose" && echo " found package sm" 1>&6 11946 11947echo "${as_me:-configure}:11947: testing found package sm ..." 1>&5 11948 11949 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 11950 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 11951 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11952 11953echo "${as_me:-configure}:11953: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11954 11955 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11956 11957echo "${as_me:-configure}:11957: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11958 11959cf_fix_cppflags=no 11960cf_new_cflags= 11961cf_new_cppflags= 11962cf_new_extra_cppflags= 11963 11964for cf_add_cflags in $cf_pkgconfig_incs 11965do 11966case $cf_fix_cppflags in 11967(no) 11968 case $cf_add_cflags in 11969 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11970 case $cf_add_cflags in 11971 (-D*) 11972 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11973 11974 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11975 && test -z "${cf_tst_cflags}" \ 11976 && cf_fix_cppflags=yes 11977 11978 if test $cf_fix_cppflags = yes ; then 11979 11980 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11981 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11982 11983 continue 11984 elif test "${cf_tst_cflags}" = "\"'" ; then 11985 11986 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11987 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11988 11989 continue 11990 fi 11991 ;; 11992 esac 11993 case "$CPPFLAGS" in 11994 (*$cf_add_cflags) 11995 ;; 11996 (*) 11997 case $cf_add_cflags in 11998 (-D*) 11999 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12000 12001CPPFLAGS=`echo "$CPPFLAGS" | \ 12002 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12003 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12004 12005 ;; 12006 esac 12007 12008 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12009 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12010 12011 ;; 12012 esac 12013 ;; 12014 (*) 12015 12016 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12017 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12018 12019 ;; 12020 esac 12021 ;; 12022(yes) 12023 12024 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12025 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12026 12027 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12028 12029 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12030 && test -z "${cf_tst_cflags}" \ 12031 && cf_fix_cppflags=no 12032 ;; 12033esac 12034done 12035 12036if test -n "$cf_new_cflags" ; then 12037 12038 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12039 CFLAGS="${CFLAGS}$cf_new_cflags" 12040 12041fi 12042 12043if test -n "$cf_new_cppflags" ; then 12044 12045 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12046 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12047 12048fi 12049 12050if test -n "$cf_new_extra_cppflags" ; then 12051 12052 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12053 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12054 12055fi 12056 12057cf_add_libs="$cf_pkgconfig_libs" 12058# Filter out duplicates - this happens with badly-designed ".pc" files... 12059for cf_add_1lib in $LIBS 12060do 12061 for cf_add_2lib in $cf_add_libs 12062 do 12063 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12064 then 12065 cf_add_1lib= 12066 break 12067 fi 12068 done 12069 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12070done 12071LIBS="$cf_add_libs" 12072 12073 : 12074else 12075 cf_pkgconfig_incs= 12076 cf_pkgconfig_libs= 12077 { echo "$as_me:12077: WARNING: unable to find SM library" >&5 12078echo "$as_me: WARNING: unable to find SM library" >&2;} 12079fi 12080 12081if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 12082 test -n "$verbose" && echo " found package xt" 1>&6 12083 12084echo "${as_me:-configure}:12084: testing found package xt ..." 1>&5 12085 12086 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 12087 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 12088 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 12089 12090echo "${as_me:-configure}:12090: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12091 12092 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 12093 12094echo "${as_me:-configure}:12094: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 12095 12096cf_fix_cppflags=no 12097cf_new_cflags= 12098cf_new_cppflags= 12099cf_new_extra_cppflags= 12100 12101for cf_add_cflags in $cf_pkgconfig_incs 12102do 12103case $cf_fix_cppflags in 12104(no) 12105 case $cf_add_cflags in 12106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12107 case $cf_add_cflags in 12108 (-D*) 12109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12110 12111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12112 && test -z "${cf_tst_cflags}" \ 12113 && cf_fix_cppflags=yes 12114 12115 if test $cf_fix_cppflags = yes ; then 12116 12117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12119 12120 continue 12121 elif test "${cf_tst_cflags}" = "\"'" ; then 12122 12123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12125 12126 continue 12127 fi 12128 ;; 12129 esac 12130 case "$CPPFLAGS" in 12131 (*$cf_add_cflags) 12132 ;; 12133 (*) 12134 case $cf_add_cflags in 12135 (-D*) 12136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12137 12138CPPFLAGS=`echo "$CPPFLAGS" | \ 12139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12141 12142 ;; 12143 esac 12144 12145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12147 12148 ;; 12149 esac 12150 ;; 12151 (*) 12152 12153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12155 12156 ;; 12157 esac 12158 ;; 12159(yes) 12160 12161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12163 12164 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12165 12166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12167 && test -z "${cf_tst_cflags}" \ 12168 && cf_fix_cppflags=no 12169 ;; 12170esac 12171done 12172 12173if test -n "$cf_new_cflags" ; then 12174 12175 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12176 CFLAGS="${CFLAGS}$cf_new_cflags" 12177 12178fi 12179 12180if test -n "$cf_new_cppflags" ; then 12181 12182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12184 12185fi 12186 12187if test -n "$cf_new_extra_cppflags" ; then 12188 12189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12191 12192fi 12193 12194cf_add_libs="$cf_pkgconfig_libs" 12195# Filter out duplicates - this happens with badly-designed ".pc" files... 12196for cf_add_1lib in $LIBS 12197do 12198 for cf_add_2lib in $cf_add_libs 12199 do 12200 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12201 then 12202 cf_add_1lib= 12203 break 12204 fi 12205 done 12206 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12207done 12208LIBS="$cf_add_libs" 12209 12210 : 12211else 12212 cf_pkgconfig_incs= 12213 cf_pkgconfig_libs= 12214 { echo "$as_me:12214: WARNING: unable to find Xt library" >&5 12215echo "$as_me: WARNING: unable to find Xt library" >&2;} 12216fi 12217 12218fi 12219 12220cf_have_X_LIBS=no 12221 12222if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 12223 test -n "$verbose" && echo " found package xt" 1>&6 12224 12225echo "${as_me:-configure}:12225: testing found package xt ..." 1>&5 12226 12227 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 12228 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 12229 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 12230 12231echo "${as_me:-configure}:12231: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12232 12233 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 12234 12235echo "${as_me:-configure}:12235: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 12236 12237cf_fix_cppflags=no 12238cf_new_cflags= 12239cf_new_cppflags= 12240cf_new_extra_cppflags= 12241 12242for cf_add_cflags in $cf_pkgconfig_incs 12243do 12244case $cf_fix_cppflags in 12245(no) 12246 case $cf_add_cflags in 12247 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12248 case $cf_add_cflags in 12249 (-D*) 12250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12251 12252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12253 && test -z "${cf_tst_cflags}" \ 12254 && cf_fix_cppflags=yes 12255 12256 if test $cf_fix_cppflags = yes ; then 12257 12258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12260 12261 continue 12262 elif test "${cf_tst_cflags}" = "\"'" ; then 12263 12264 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12265 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12266 12267 continue 12268 fi 12269 ;; 12270 esac 12271 case "$CPPFLAGS" in 12272 (*$cf_add_cflags) 12273 ;; 12274 (*) 12275 case $cf_add_cflags in 12276 (-D*) 12277 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12278 12279CPPFLAGS=`echo "$CPPFLAGS" | \ 12280 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12281 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12282 12283 ;; 12284 esac 12285 12286 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12287 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12288 12289 ;; 12290 esac 12291 ;; 12292 (*) 12293 12294 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12295 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12296 12297 ;; 12298 esac 12299 ;; 12300(yes) 12301 12302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12303 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12304 12305 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12306 12307 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12308 && test -z "${cf_tst_cflags}" \ 12309 && cf_fix_cppflags=no 12310 ;; 12311esac 12312done 12313 12314if test -n "$cf_new_cflags" ; then 12315 12316 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12317 CFLAGS="${CFLAGS}$cf_new_cflags" 12318 12319fi 12320 12321if test -n "$cf_new_cppflags" ; then 12322 12323 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12324 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12325 12326fi 12327 12328if test -n "$cf_new_extra_cppflags" ; then 12329 12330 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12331 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12332 12333fi 12334 12335cf_add_libs="$cf_pkgconfig_libs" 12336# Filter out duplicates - this happens with badly-designed ".pc" files... 12337for cf_add_1lib in $LIBS 12338do 12339 for cf_add_2lib in $cf_add_libs 12340 do 12341 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12342 then 12343 cf_add_1lib= 12344 break 12345 fi 12346 done 12347 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12348done 12349LIBS="$cf_add_libs" 12350 12351 case "x$LIBS" in 12352 (*-lX11*) 12353 ;; 12354 (*) 12355# we have an "xt" package, but it may omit Xt's dependency on X11 12356echo "$as_me:12356: checking for usable X dependency" >&5 12357echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 12358if test "${cf_cv_xt_x11_compat+set}" = set; then 12359 echo $ECHO_N "(cached) $ECHO_C" >&6 12360else 12361 12362cat >conftest.$ac_ext <<_ACEOF 12363#line 12363 "configure" 12364#include "confdefs.h" 12365 12366#include <X11/Xlib.h> 12367 12368int 12369main (void) 12370{ 12371 12372 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 12373 int rc2 = XClearWindow((Display*) 0, (Window) 0); 12374 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 12375 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 12376 12377 ; 12378 return 0; 12379} 12380_ACEOF 12381rm -f conftest.$ac_objext conftest$ac_exeext 12382if { (eval echo "$as_me:12382: \"$ac_link\"") >&5 12383 (eval $ac_link) 2>&5 12384 ac_status=$? 12385 echo "$as_me:12385: \$? = $ac_status" >&5 12386 (exit $ac_status); } && 12387 { ac_try='test -s conftest$ac_exeext' 12388 { (eval echo "$as_me:12388: \"$ac_try\"") >&5 12389 (eval $ac_try) 2>&5 12390 ac_status=$? 12391 echo "$as_me:12391: \$? = $ac_status" >&5 12392 (exit $ac_status); }; }; then 12393 cf_cv_xt_x11_compat=yes 12394else 12395 echo "$as_me: failed program was:" >&5 12396cat conftest.$ac_ext >&5 12397cf_cv_xt_x11_compat=no 12398fi 12399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12400fi 12401echo "$as_me:12401: result: $cf_cv_xt_x11_compat" >&5 12402echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 12403 if test "$cf_cv_xt_x11_compat" = no 12404 then 12405 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 12406 12407echo "${as_me:-configure}:12407: testing work around broken X11 dependency ..." 1>&5 12408 12409 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 12410 12411if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 12412 test -n "$verbose" && echo " found package x11" 1>&6 12413 12414echo "${as_me:-configure}:12414: testing found package x11 ..." 1>&5 12415 12416 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 12417 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 12418 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 12419 12420echo "${as_me:-configure}:12420: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12421 12422 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 12423 12424echo "${as_me:-configure}:12424: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 12425 12426cf_fix_cppflags=no 12427cf_new_cflags= 12428cf_new_cppflags= 12429cf_new_extra_cppflags= 12430 12431for cf_add_cflags in $cf_pkgconfig_incs 12432do 12433case $cf_fix_cppflags in 12434(no) 12435 case $cf_add_cflags in 12436 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12437 case $cf_add_cflags in 12438 (-D*) 12439 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12440 12441 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12442 && test -z "${cf_tst_cflags}" \ 12443 && cf_fix_cppflags=yes 12444 12445 if test $cf_fix_cppflags = yes ; then 12446 12447 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12448 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12449 12450 continue 12451 elif test "${cf_tst_cflags}" = "\"'" ; then 12452 12453 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12454 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12455 12456 continue 12457 fi 12458 ;; 12459 esac 12460 case "$CPPFLAGS" in 12461 (*$cf_add_cflags) 12462 ;; 12463 (*) 12464 case $cf_add_cflags in 12465 (-D*) 12466 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12467 12468CPPFLAGS=`echo "$CPPFLAGS" | \ 12469 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12470 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12471 12472 ;; 12473 esac 12474 12475 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12476 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12477 12478 ;; 12479 esac 12480 ;; 12481 (*) 12482 12483 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12484 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12485 12486 ;; 12487 esac 12488 ;; 12489(yes) 12490 12491 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12492 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12493 12494 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12495 12496 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12497 && test -z "${cf_tst_cflags}" \ 12498 && cf_fix_cppflags=no 12499 ;; 12500esac 12501done 12502 12503if test -n "$cf_new_cflags" ; then 12504 12505 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12506 CFLAGS="${CFLAGS}$cf_new_cflags" 12507 12508fi 12509 12510if test -n "$cf_new_cppflags" ; then 12511 12512 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12513 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12514 12515fi 12516 12517if test -n "$cf_new_extra_cppflags" ; then 12518 12519 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12520 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12521 12522fi 12523 12524cf_add_libs="$cf_pkgconfig_libs" 12525# Filter out duplicates - this happens with badly-designed ".pc" files... 12526for cf_add_1lib in $LIBS 12527do 12528 for cf_add_2lib in $cf_add_libs 12529 do 12530 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12531 then 12532 cf_add_1lib= 12533 break 12534 fi 12535 done 12536 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12537done 12538LIBS="$cf_add_libs" 12539 12540 : 12541else 12542 cf_pkgconfig_incs= 12543 cf_pkgconfig_libs= 12544 12545test -n "$verbose" && echo " ...before $LIBS" 1>&6 12546 12547echo "${as_me:-configure}:12547: testing ...before $LIBS ..." 1>&5 12548 12549LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 12550test -n "$verbose" && echo " ...after $LIBS" 1>&6 12551 12552echo "${as_me:-configure}:12552: testing ...after $LIBS ..." 1>&5 12553 12554fi 12555 12556 fi 12557 ;; 12558 esac 12559 12560echo "$as_me:12560: checking for usable X Toolkit package" >&5 12561echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 12562if test "${cf_cv_xt_ice_compat+set}" = set; then 12563 echo $ECHO_N "(cached) $ECHO_C" >&6 12564else 12565 12566cat >conftest.$ac_ext <<_ACEOF 12567#line 12567 "configure" 12568#include "confdefs.h" 12569 12570#include <X11/Shell.h> 12571 12572int 12573main (void) 12574{ 12575int num = IceConnectionNumber(0) 12576 12577 ; 12578 return 0; 12579} 12580_ACEOF 12581rm -f conftest.$ac_objext conftest$ac_exeext 12582if { (eval echo "$as_me:12582: \"$ac_link\"") >&5 12583 (eval $ac_link) 2>&5 12584 ac_status=$? 12585 echo "$as_me:12585: \$? = $ac_status" >&5 12586 (exit $ac_status); } && 12587 { ac_try='test -s conftest$ac_exeext' 12588 { (eval echo "$as_me:12588: \"$ac_try\"") >&5 12589 (eval $ac_try) 2>&5 12590 ac_status=$? 12591 echo "$as_me:12591: \$? = $ac_status" >&5 12592 (exit $ac_status); }; }; then 12593 cf_cv_xt_ice_compat=yes 12594else 12595 echo "$as_me: failed program was:" >&5 12596cat conftest.$ac_ext >&5 12597cf_cv_xt_ice_compat=no 12598fi 12599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12600fi 12601echo "$as_me:12601: result: $cf_cv_xt_ice_compat" >&5 12602echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 12603 12604 if test "$cf_cv_xt_ice_compat" = no 12605 then 12606 # workaround for broken ".pc" files used for X Toolkit. 12607 case "x$X_PRE_LIBS" in 12608 (*-lICE*) 12609 case "x$LIBS" in 12610 (*-lICE*) 12611 ;; 12612 (*) 12613 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 12614 12615echo "${as_me:-configure}:12615: testing work around broken ICE dependency ..." 1>&5 12616 12617if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 12618 test -n "$verbose" && echo " found package ice" 1>&6 12619 12620echo "${as_me:-configure}:12620: testing found package ice ..." 1>&5 12621 12622 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 12623 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 12624 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 12625 12626echo "${as_me:-configure}:12626: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12627 12628 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 12629 12630echo "${as_me:-configure}:12630: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 12631 12632cf_fix_cppflags=no 12633cf_new_cflags= 12634cf_new_cppflags= 12635cf_new_extra_cppflags= 12636 12637for cf_add_cflags in $cf_pkgconfig_incs 12638do 12639case $cf_fix_cppflags in 12640(no) 12641 case $cf_add_cflags in 12642 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12643 case $cf_add_cflags in 12644 (-D*) 12645 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12646 12647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12648 && test -z "${cf_tst_cflags}" \ 12649 && cf_fix_cppflags=yes 12650 12651 if test $cf_fix_cppflags = yes ; then 12652 12653 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12654 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12655 12656 continue 12657 elif test "${cf_tst_cflags}" = "\"'" ; then 12658 12659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12661 12662 continue 12663 fi 12664 ;; 12665 esac 12666 case "$CPPFLAGS" in 12667 (*$cf_add_cflags) 12668 ;; 12669 (*) 12670 case $cf_add_cflags in 12671 (-D*) 12672 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12673 12674CPPFLAGS=`echo "$CPPFLAGS" | \ 12675 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12676 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12677 12678 ;; 12679 esac 12680 12681 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12682 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12683 12684 ;; 12685 esac 12686 ;; 12687 (*) 12688 12689 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12690 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12691 12692 ;; 12693 esac 12694 ;; 12695(yes) 12696 12697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12699 12700 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12701 12702 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12703 && test -z "${cf_tst_cflags}" \ 12704 && cf_fix_cppflags=no 12705 ;; 12706esac 12707done 12708 12709if test -n "$cf_new_cflags" ; then 12710 12711 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12712 CFLAGS="${CFLAGS}$cf_new_cflags" 12713 12714fi 12715 12716if test -n "$cf_new_cppflags" ; then 12717 12718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12719 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12720 12721fi 12722 12723if test -n "$cf_new_extra_cppflags" ; then 12724 12725 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12726 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12727 12728fi 12729 12730cf_add_libs="$cf_pkgconfig_libs" 12731# Filter out duplicates - this happens with badly-designed ".pc" files... 12732for cf_add_1lib in $LIBS 12733do 12734 for cf_add_2lib in $cf_add_libs 12735 do 12736 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12737 then 12738 cf_add_1lib= 12739 break 12740 fi 12741 done 12742 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12743done 12744LIBS="$cf_add_libs" 12745 12746if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 12747 test -n "$verbose" && echo " found package sm" 1>&6 12748 12749echo "${as_me:-configure}:12749: testing found package sm ..." 1>&5 12750 12751 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 12752 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 12753 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 12754 12755echo "${as_me:-configure}:12755: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12756 12757 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 12758 12759echo "${as_me:-configure}:12759: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 12760 12761cf_fix_cppflags=no 12762cf_new_cflags= 12763cf_new_cppflags= 12764cf_new_extra_cppflags= 12765 12766for cf_add_cflags in $cf_pkgconfig_incs 12767do 12768case $cf_fix_cppflags in 12769(no) 12770 case $cf_add_cflags in 12771 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12772 case $cf_add_cflags in 12773 (-D*) 12774 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12775 12776 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12777 && test -z "${cf_tst_cflags}" \ 12778 && cf_fix_cppflags=yes 12779 12780 if test $cf_fix_cppflags = yes ; then 12781 12782 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12783 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12784 12785 continue 12786 elif test "${cf_tst_cflags}" = "\"'" ; then 12787 12788 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12789 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12790 12791 continue 12792 fi 12793 ;; 12794 esac 12795 case "$CPPFLAGS" in 12796 (*$cf_add_cflags) 12797 ;; 12798 (*) 12799 case $cf_add_cflags in 12800 (-D*) 12801 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12802 12803CPPFLAGS=`echo "$CPPFLAGS" | \ 12804 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12805 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12806 12807 ;; 12808 esac 12809 12810 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12811 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12812 12813 ;; 12814 esac 12815 ;; 12816 (*) 12817 12818 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12819 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12820 12821 ;; 12822 esac 12823 ;; 12824(yes) 12825 12826 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12827 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12828 12829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12830 12831 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12832 && test -z "${cf_tst_cflags}" \ 12833 && cf_fix_cppflags=no 12834 ;; 12835esac 12836done 12837 12838if test -n "$cf_new_cflags" ; then 12839 12840 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12841 CFLAGS="${CFLAGS}$cf_new_cflags" 12842 12843fi 12844 12845if test -n "$cf_new_cppflags" ; then 12846 12847 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12848 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12849 12850fi 12851 12852if test -n "$cf_new_extra_cppflags" ; then 12853 12854 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12855 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12856 12857fi 12858 12859cf_add_libs="$cf_pkgconfig_libs" 12860# Filter out duplicates - this happens with badly-designed ".pc" files... 12861for cf_add_1lib in $LIBS 12862do 12863 for cf_add_2lib in $cf_add_libs 12864 do 12865 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12866 then 12867 cf_add_1lib= 12868 break 12869 fi 12870 done 12871 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12872done 12873LIBS="$cf_add_libs" 12874 12875 : 12876else 12877 cf_pkgconfig_incs= 12878 cf_pkgconfig_libs= 12879 : 12880fi 12881 12882else 12883 cf_pkgconfig_incs= 12884 cf_pkgconfig_libs= 12885 12886test -n "$verbose" && echo " ...before $LIBS" 1>&6 12887 12888echo "${as_me:-configure}:12888: testing ...before $LIBS ..." 1>&5 12889 12890LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 12891test -n "$verbose" && echo " ...after $LIBS" 1>&6 12892 12893echo "${as_me:-configure}:12893: testing ...after $LIBS ..." 1>&5 12894 12895fi 12896 12897 ;; 12898 esac 12899 ;; 12900 esac 12901 fi 12902 12903 cf_have_X_LIBS=yes 12904 12905else 12906 cf_pkgconfig_incs= 12907 cf_pkgconfig_libs= 12908 12909 LDFLAGS="$X_LIBS $LDFLAGS" 12910 12911test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 12912 12913echo "${as_me:-configure}:12913: testing checking additions to CFLAGS ..." 1>&5 12914 12915cf_check_cflags="$CFLAGS" 12916cf_check_cppflags="$CPPFLAGS" 12917 12918cf_fix_cppflags=no 12919cf_new_cflags= 12920cf_new_cppflags= 12921cf_new_extra_cppflags= 12922 12923for cf_add_cflags in $X_CFLAGS 12924do 12925case $cf_fix_cppflags in 12926(no) 12927 case $cf_add_cflags in 12928 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12929 case $cf_add_cflags in 12930 (-D*) 12931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12932 12933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12934 && test -z "${cf_tst_cflags}" \ 12935 && cf_fix_cppflags=yes 12936 12937 if test $cf_fix_cppflags = yes ; then 12938 12939 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12940 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12941 12942 continue 12943 elif test "${cf_tst_cflags}" = "\"'" ; then 12944 12945 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12946 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12947 12948 continue 12949 fi 12950 ;; 12951 esac 12952 case "$CPPFLAGS" in 12953 (*$cf_add_cflags) 12954 ;; 12955 (*) 12956 case $cf_add_cflags in 12957 (-D*) 12958 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12959 12960CPPFLAGS=`echo "$CPPFLAGS" | \ 12961 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12962 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12963 12964 ;; 12965 esac 12966 12967 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12968 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12969 12970 ;; 12971 esac 12972 ;; 12973 (*) 12974 12975 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12976 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12977 12978 ;; 12979 esac 12980 ;; 12981(yes) 12982 12983 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12984 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12985 12986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12987 12988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12989 && test -z "${cf_tst_cflags}" \ 12990 && cf_fix_cppflags=no 12991 ;; 12992esac 12993done 12994 12995if test -n "$cf_new_cflags" ; then 12996 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 12997 12998echo "${as_me:-configure}:12998: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 12999 13000 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13001 CFLAGS="${CFLAGS}$cf_new_cflags" 13002 13003fi 13004 13005if test -n "$cf_new_cppflags" ; then 13006 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 13007 13008echo "${as_me:-configure}:13008: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 13009 13010 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13011 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13012 13013fi 13014 13015if test -n "$cf_new_extra_cppflags" ; then 13016 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 13017 13018echo "${as_me:-configure}:13018: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 13019 13020 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13021 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13022 13023fi 13024 13025if test "x$cf_check_cflags" != "x$CFLAGS" ; then 13026cat >conftest.$ac_ext <<_ACEOF 13027#line 13027 "configure" 13028#include "confdefs.h" 13029#include <stdio.h> 13030int 13031main (void) 13032{ 13033printf("Hello world"); 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038rm -f conftest.$ac_objext conftest$ac_exeext 13039if { (eval echo "$as_me:13039: \"$ac_link\"") >&5 13040 (eval $ac_link) 2>&5 13041 ac_status=$? 13042 echo "$as_me:13042: \$? = $ac_status" >&5 13043 (exit $ac_status); } && 13044 { ac_try='test -s conftest$ac_exeext' 13045 { (eval echo "$as_me:13045: \"$ac_try\"") >&5 13046 (eval $ac_try) 2>&5 13047 ac_status=$? 13048 echo "$as_me:13048: \$? = $ac_status" >&5 13049 (exit $ac_status); }; }; then 13050 : 13051else 13052 echo "$as_me: failed program was:" >&5 13053cat conftest.$ac_ext >&5 13054test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 13055 13056echo "${as_me:-configure}:13056: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 13057 13058 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 13059 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 13060 13061echo "${as_me:-configure}:13061: testing but keeping change to \$CPPFLAGS ..." 1>&5 13062 13063 fi 13064 CFLAGS="$cf_check_flags" 13065fi 13066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13067fi 13068 13069 echo "$as_me:13069: checking for XOpenDisplay" >&5 13070echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 13071if test "${ac_cv_func_XOpenDisplay+set}" = set; then 13072 echo $ECHO_N "(cached) $ECHO_C" >&6 13073else 13074 cat >conftest.$ac_ext <<_ACEOF 13075#line 13075 "configure" 13076#include "confdefs.h" 13077/* System header to define __stub macros and hopefully few prototypes, 13078 which can conflict with char XOpenDisplay (); below. */ 13079#include <assert.h> 13080/* Override any gcc2 internal prototype to avoid an error. */ 13081#ifdef __cplusplus 13082extern "C" 13083#endif 13084/* We use char because int might match the return type of a gcc2 13085 builtin and then its argument prototype would still apply. */ 13086char XOpenDisplay (); 13087char (*f) (); 13088 13089int 13090main (void) 13091{ 13092/* The GNU C library defines this for functions which it implements 13093 to always fail with ENOSYS. Some functions are actually named 13094 something starting with __ and the normal name is an alias. */ 13095#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 13096choke me 13097#else 13098f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13099#endif 13100 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105rm -f conftest.$ac_objext conftest$ac_exeext 13106if { (eval echo "$as_me:13106: \"$ac_link\"") >&5 13107 (eval $ac_link) 2>&5 13108 ac_status=$? 13109 echo "$as_me:13109: \$? = $ac_status" >&5 13110 (exit $ac_status); } && 13111 { ac_try='test -s conftest$ac_exeext' 13112 { (eval echo "$as_me:13112: \"$ac_try\"") >&5 13113 (eval $ac_try) 2>&5 13114 ac_status=$? 13115 echo "$as_me:13115: \$? = $ac_status" >&5 13116 (exit $ac_status); }; }; then 13117 ac_cv_func_XOpenDisplay=yes 13118else 13119 echo "$as_me: failed program was:" >&5 13120cat conftest.$ac_ext >&5 13121ac_cv_func_XOpenDisplay=no 13122fi 13123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13124fi 13125echo "$as_me:13125: result: $ac_cv_func_XOpenDisplay" >&5 13126echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 13127if test $ac_cv_func_XOpenDisplay = yes; then 13128 : 13129else 13130 13131 echo "$as_me:13131: checking for XOpenDisplay in -lX11" >&5 13132echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 13133if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 13134 echo $ECHO_N "(cached) $ECHO_C" >&6 13135else 13136 ac_check_lib_save_LIBS=$LIBS 13137LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 13138cat >conftest.$ac_ext <<_ACEOF 13139#line 13139 "configure" 13140#include "confdefs.h" 13141 13142/* Override any gcc2 internal prototype to avoid an error. */ 13143#ifdef __cplusplus 13144extern "C" 13145#endif 13146/* We use char because int might match the return type of a gcc2 13147 builtin and then its argument prototype would still apply. */ 13148char XOpenDisplay (); 13149int 13150main (void) 13151{ 13152XOpenDisplay (); 13153 ; 13154 return 0; 13155} 13156_ACEOF 13157rm -f conftest.$ac_objext conftest$ac_exeext 13158if { (eval echo "$as_me:13158: \"$ac_link\"") >&5 13159 (eval $ac_link) 2>&5 13160 ac_status=$? 13161 echo "$as_me:13161: \$? = $ac_status" >&5 13162 (exit $ac_status); } && 13163 { ac_try='test -s conftest$ac_exeext' 13164 { (eval echo "$as_me:13164: \"$ac_try\"") >&5 13165 (eval $ac_try) 2>&5 13166 ac_status=$? 13167 echo "$as_me:13167: \$? = $ac_status" >&5 13168 (exit $ac_status); }; }; then 13169 ac_cv_lib_X11_XOpenDisplay=yes 13170else 13171 echo "$as_me: failed program was:" >&5 13172cat conftest.$ac_ext >&5 13173ac_cv_lib_X11_XOpenDisplay=no 13174fi 13175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13176LIBS=$ac_check_lib_save_LIBS 13177fi 13178echo "$as_me:13178: result: $ac_cv_lib_X11_XOpenDisplay" >&5 13179echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 13180if test $ac_cv_lib_X11_XOpenDisplay = yes; then 13181 13182cf_add_libs="-lX11" 13183# Filter out duplicates - this happens with badly-designed ".pc" files... 13184for cf_add_1lib in $LIBS 13185do 13186 for cf_add_2lib in $cf_add_libs 13187 do 13188 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13189 then 13190 cf_add_1lib= 13191 break 13192 fi 13193 done 13194 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13195done 13196LIBS="$cf_add_libs" 13197 13198fi 13199 13200fi 13201 13202 echo "$as_me:13202: checking for XtAppInitialize" >&5 13203echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 13204if test "${ac_cv_func_XtAppInitialize+set}" = set; then 13205 echo $ECHO_N "(cached) $ECHO_C" >&6 13206else 13207 cat >conftest.$ac_ext <<_ACEOF 13208#line 13208 "configure" 13209#include "confdefs.h" 13210/* System header to define __stub macros and hopefully few prototypes, 13211 which can conflict with char XtAppInitialize (); below. */ 13212#include <assert.h> 13213/* Override any gcc2 internal prototype to avoid an error. */ 13214#ifdef __cplusplus 13215extern "C" 13216#endif 13217/* We use char because int might match the return type of a gcc2 13218 builtin and then its argument prototype would still apply. */ 13219char XtAppInitialize (); 13220char (*f) (); 13221 13222int 13223main (void) 13224{ 13225/* The GNU C library defines this for functions which it implements 13226 to always fail with ENOSYS. Some functions are actually named 13227 something starting with __ and the normal name is an alias. */ 13228#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 13229choke me 13230#else 13231f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13232#endif 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238rm -f conftest.$ac_objext conftest$ac_exeext 13239if { (eval echo "$as_me:13239: \"$ac_link\"") >&5 13240 (eval $ac_link) 2>&5 13241 ac_status=$? 13242 echo "$as_me:13242: \$? = $ac_status" >&5 13243 (exit $ac_status); } && 13244 { ac_try='test -s conftest$ac_exeext' 13245 { (eval echo "$as_me:13245: \"$ac_try\"") >&5 13246 (eval $ac_try) 2>&5 13247 ac_status=$? 13248 echo "$as_me:13248: \$? = $ac_status" >&5 13249 (exit $ac_status); }; }; then 13250 ac_cv_func_XtAppInitialize=yes 13251else 13252 echo "$as_me: failed program was:" >&5 13253cat conftest.$ac_ext >&5 13254ac_cv_func_XtAppInitialize=no 13255fi 13256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13257fi 13258echo "$as_me:13258: result: $ac_cv_func_XtAppInitialize" >&5 13259echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 13260if test $ac_cv_func_XtAppInitialize = yes; then 13261 : 13262else 13263 13264 echo "$as_me:13264: checking for XtAppInitialize in -lXt" >&5 13265echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 13266if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 13267 echo $ECHO_N "(cached) $ECHO_C" >&6 13268else 13269 ac_check_lib_save_LIBS=$LIBS 13270LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 13271cat >conftest.$ac_ext <<_ACEOF 13272#line 13272 "configure" 13273#include "confdefs.h" 13274 13275/* Override any gcc2 internal prototype to avoid an error. */ 13276#ifdef __cplusplus 13277extern "C" 13278#endif 13279/* We use char because int might match the return type of a gcc2 13280 builtin and then its argument prototype would still apply. */ 13281char XtAppInitialize (); 13282int 13283main (void) 13284{ 13285XtAppInitialize (); 13286 ; 13287 return 0; 13288} 13289_ACEOF 13290rm -f conftest.$ac_objext conftest$ac_exeext 13291if { (eval echo "$as_me:13291: \"$ac_link\"") >&5 13292 (eval $ac_link) 2>&5 13293 ac_status=$? 13294 echo "$as_me:13294: \$? = $ac_status" >&5 13295 (exit $ac_status); } && 13296 { ac_try='test -s conftest$ac_exeext' 13297 { (eval echo "$as_me:13297: \"$ac_try\"") >&5 13298 (eval $ac_try) 2>&5 13299 ac_status=$? 13300 echo "$as_me:13300: \$? = $ac_status" >&5 13301 (exit $ac_status); }; }; then 13302 ac_cv_lib_Xt_XtAppInitialize=yes 13303else 13304 echo "$as_me: failed program was:" >&5 13305cat conftest.$ac_ext >&5 13306ac_cv_lib_Xt_XtAppInitialize=no 13307fi 13308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13309LIBS=$ac_check_lib_save_LIBS 13310fi 13311echo "$as_me:13311: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 13312echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 13313if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 13314 13315cat >>confdefs.h <<\EOF 13316#define HAVE_LIBXT 1 13317EOF 13318 13319 cf_have_X_LIBS=Xt 13320 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 13321fi 13322 13323fi 13324 13325fi 13326 13327if test $cf_have_X_LIBS = no ; then 13328 { echo "$as_me:13328: WARNING: Unable to successfully link X Toolkit library (-lXt) with 13329test program. You will have to check and add the proper libraries by hand 13330to makefile." >&5 13331echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 13332test program. You will have to check and add the proper libraries by hand 13333to makefile." >&2;} 13334fi 13335 13336cf_x_athena_root=$cf_x_athena 13337cf_x_athena_inc="" 13338 13339for cf_path in default \ 13340 /usr/contrib/X11R6 \ 13341 /usr/contrib/X11R5 \ 13342 /usr/lib/X11R5 \ 13343 /usr/local 13344do 13345 if test -z "$cf_x_athena_inc" ; then 13346 cf_save="$CPPFLAGS" 13347 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 13348 if test $cf_path != default ; then 13349 CPPFLAGS="$cf_save -I$cf_path/include" 13350 echo "$as_me:13350: checking for $cf_test in $cf_path" >&5 13351echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 13352 else 13353 echo "$as_me:13353: checking for $cf_test" >&5 13354echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 13355 fi 13356 cat >conftest.$ac_ext <<_ACEOF 13357#line 13357 "configure" 13358#include "confdefs.h" 13359 13360#include <X11/Intrinsic.h> 13361#include <$cf_test> 13362int 13363main (void) 13364{ 13365 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370rm -f conftest.$ac_objext 13371if { (eval echo "$as_me:13371: \"$ac_compile\"") >&5 13372 (eval $ac_compile) 2>&5 13373 ac_status=$? 13374 echo "$as_me:13374: \$? = $ac_status" >&5 13375 (exit $ac_status); } && 13376 { ac_try='test -s conftest.$ac_objext' 13377 { (eval echo "$as_me:13377: \"$ac_try\"") >&5 13378 (eval $ac_try) 2>&5 13379 ac_status=$? 13380 echo "$as_me:13380: \$? = $ac_status" >&5 13381 (exit $ac_status); }; }; then 13382 cf_result=yes 13383else 13384 echo "$as_me: failed program was:" >&5 13385cat conftest.$ac_ext >&5 13386cf_result=no 13387fi 13388rm -f conftest.$ac_objext conftest.$ac_ext 13389 echo "$as_me:13389: result: $cf_result" >&5 13390echo "${ECHO_T}$cf_result" >&6 13391 if test "$cf_result" = yes ; then 13392 cf_x_athena_inc=$cf_path 13393 break 13394 else 13395 CPPFLAGS="$cf_save" 13396 fi 13397 fi 13398done 13399 13400if test -z "$cf_x_athena_inc" ; then 13401 { echo "$as_me:13401: WARNING: Unable to successfully find Athena header files with test program" >&5 13402echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;} 13403elif test "$cf_x_athena_inc" != default ; then 13404 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc" 13405fi 13406 13407cf_x_athena_root=$cf_x_athena 13408cf_x_athena_lib="" 13409 13410for cf_path in default \ 13411 /usr/contrib/X11R6 \ 13412 /usr/contrib/X11R5 \ 13413 /usr/lib/X11R5 \ 13414 /usr/local 13415do 13416 for cf_lib in \ 13417 ${cf_x_athena_root} \ 13418 ${cf_x_athena_root}7 \ 13419 ${cf_x_athena_root}6 13420 do 13421 for cf_libs in \ 13422 "-l$cf_lib -lXmu" \ 13423 "-l$cf_lib -lXpm -lXmu" \ 13424 "-l${cf_lib}_s -lXmu_s" 13425 do 13426 if test -z "$cf_x_athena_lib" ; then 13427 cf_save="$LIBS" 13428 cf_test=XawSimpleMenuAddGlobalActions 13429 if test $cf_path != default ; then 13430 13431cf_add_libs="-L$cf_path/lib $cf_libs" 13432# Filter out duplicates - this happens with badly-designed ".pc" files... 13433for cf_add_1lib in $LIBS 13434do 13435 for cf_add_2lib in $cf_add_libs 13436 do 13437 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13438 then 13439 cf_add_1lib= 13440 break 13441 fi 13442 done 13443 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13444done 13445LIBS="$cf_add_libs" 13446 13447 echo "$as_me:13447: checking for $cf_libs in $cf_path" >&5 13448echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6 13449 else 13450 13451cf_add_libs="$cf_libs" 13452# Filter out duplicates - this happens with badly-designed ".pc" files... 13453for cf_add_1lib in $LIBS 13454do 13455 for cf_add_2lib in $cf_add_libs 13456 do 13457 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13458 then 13459 cf_add_1lib= 13460 break 13461 fi 13462 done 13463 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13464done 13465LIBS="$cf_add_libs" 13466 13467 echo "$as_me:13467: checking for $cf_test in $cf_libs" >&5 13468echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 13469 fi 13470 cat >conftest.$ac_ext <<_ACEOF 13471#line 13471 "configure" 13472#include "confdefs.h" 13473 13474#include <X11/Intrinsic.h> 13475#include <X11/$cf_x_athena_root/SimpleMenu.h> 13476 13477int 13478main (void) 13479{ 13480 13481$cf_test((XtAppContext) 0) 13482 ; 13483 return 0; 13484} 13485_ACEOF 13486rm -f conftest.$ac_objext conftest$ac_exeext 13487if { (eval echo "$as_me:13487: \"$ac_link\"") >&5 13488 (eval $ac_link) 2>&5 13489 ac_status=$? 13490 echo "$as_me:13490: \$? = $ac_status" >&5 13491 (exit $ac_status); } && 13492 { ac_try='test -s conftest$ac_exeext' 13493 { (eval echo "$as_me:13493: \"$ac_try\"") >&5 13494 (eval $ac_try) 2>&5 13495 ac_status=$? 13496 echo "$as_me:13496: \$? = $ac_status" >&5 13497 (exit $ac_status); }; }; then 13498 cf_result=yes 13499else 13500 echo "$as_me: failed program was:" >&5 13501cat conftest.$ac_ext >&5 13502cf_result=no 13503fi 13504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13505 echo "$as_me:13505: result: $cf_result" >&5 13506echo "${ECHO_T}$cf_result" >&6 13507 if test "$cf_result" = yes ; then 13508 cf_x_athena_lib="$cf_libs" 13509 break 13510 fi 13511 LIBS="$cf_save" 13512 fi 13513 done # cf_libs 13514 test -n "$cf_x_athena_lib" && break 13515 done # cf_lib 13516done 13517 13518if test -z "$cf_x_athena_lib" ; then 13519 { { echo "$as_me:13519: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 13520echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 13521 { (exit 1); exit 1; }; } 13522fi 13523 13524cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13525 13526cat >>confdefs.h <<EOF 13527#define $cf_x_athena_LIBS 1 13528EOF 13529 13530fi 13531 13532if test -n "$ac_tool_prefix"; then 13533 for ac_prog in xcurses-config 13534 do 13535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13536set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13537echo "$as_me:13537: checking for $ac_word" >&5 13538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13539if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then 13540 echo $ECHO_N "(cached) $ECHO_C" >&6 13541else 13542 if test -n "$XCURSES_CONFIG"; then 13543 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test. 13544else 13545 ac_save_IFS=$IFS; IFS=$ac_path_separator 13546ac_dummy="$PATH" 13547for ac_dir in $ac_dummy; do 13548 IFS=$ac_save_IFS 13549 test -z "$ac_dir" && ac_dir=. 13550 $as_executable_p "$ac_dir/$ac_word" || continue 13551ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog" 13552echo "$as_me:13552: found $ac_dir/$ac_word" >&5 13553break 13554done 13555 13556fi 13557fi 13558XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG 13559if test -n "$XCURSES_CONFIG"; then 13560 echo "$as_me:13560: result: $XCURSES_CONFIG" >&5 13561echo "${ECHO_T}$XCURSES_CONFIG" >&6 13562else 13563 echo "$as_me:13563: result: no" >&5 13564echo "${ECHO_T}no" >&6 13565fi 13566 13567 test -n "$XCURSES_CONFIG" && break 13568 done 13569fi 13570if test -z "$XCURSES_CONFIG"; then 13571 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG 13572 for ac_prog in xcurses-config 13573do 13574 # Extract the first word of "$ac_prog", so it can be a program name with args. 13575set dummy $ac_prog; ac_word=$2 13576echo "$as_me:13576: checking for $ac_word" >&5 13577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13578if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then 13579 echo $ECHO_N "(cached) $ECHO_C" >&6 13580else 13581 if test -n "$ac_ct_XCURSES_CONFIG"; then 13582 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test. 13583else 13584 ac_save_IFS=$IFS; IFS=$ac_path_separator 13585ac_dummy="$PATH" 13586for ac_dir in $ac_dummy; do 13587 IFS=$ac_save_IFS 13588 test -z "$ac_dir" && ac_dir=. 13589 $as_executable_p "$ac_dir/$ac_word" || continue 13590ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog" 13591echo "$as_me:13591: found $ac_dir/$ac_word" >&5 13592break 13593done 13594 13595fi 13596fi 13597ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG 13598if test -n "$ac_ct_XCURSES_CONFIG"; then 13599 echo "$as_me:13599: result: $ac_ct_XCURSES_CONFIG" >&5 13600echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6 13601else 13602 echo "$as_me:13602: result: no" >&5 13603echo "${ECHO_T}no" >&6 13604fi 13605 13606 test -n "$ac_ct_XCURSES_CONFIG" && break 13607done 13608test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none" 13609 13610 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG 13611fi 13612 13613if test "$XCURSES_CONFIG" != none ; then 13614 13615CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`" 13616 13617cf_add_libs="`$XCURSES_CONFIG --libs`" 13618# Filter out duplicates - this happens with badly-designed ".pc" files... 13619for cf_add_1lib in $LIBS 13620do 13621 for cf_add_2lib in $cf_add_libs 13622 do 13623 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13624 then 13625 cf_add_1lib= 13626 break 13627 fi 13628 done 13629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13630done 13631LIBS="$cf_add_libs" 13632 13633cf_cv_lib_XCurses=yes 13634 13635else 13636 13637LDFLAGS="$LDFLAGS $X_LIBS" 13638 13639test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 13640 13641echo "${as_me:-configure}:13641: testing checking additions to CFLAGS ..." 1>&5 13642 13643cf_check_cflags="$CFLAGS" 13644cf_check_cppflags="$CPPFLAGS" 13645 13646cf_fix_cppflags=no 13647cf_new_cflags= 13648cf_new_cppflags= 13649cf_new_extra_cppflags= 13650 13651for cf_add_cflags in $X_CFLAGS 13652do 13653case $cf_fix_cppflags in 13654(no) 13655 case $cf_add_cflags in 13656 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13657 case $cf_add_cflags in 13658 (-D*) 13659 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13660 13661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13662 && test -z "${cf_tst_cflags}" \ 13663 && cf_fix_cppflags=yes 13664 13665 if test $cf_fix_cppflags = yes ; then 13666 13667 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13668 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13669 13670 continue 13671 elif test "${cf_tst_cflags}" = "\"'" ; then 13672 13673 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13674 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13675 13676 continue 13677 fi 13678 ;; 13679 esac 13680 case "$CPPFLAGS" in 13681 (*$cf_add_cflags) 13682 ;; 13683 (*) 13684 case $cf_add_cflags in 13685 (-D*) 13686 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13687 13688CPPFLAGS=`echo "$CPPFLAGS" | \ 13689 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13690 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13691 13692 ;; 13693 esac 13694 13695 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13696 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13697 13698 ;; 13699 esac 13700 ;; 13701 (*) 13702 13703 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13704 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13705 13706 ;; 13707 esac 13708 ;; 13709(yes) 13710 13711 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13712 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13713 13714 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13715 13716 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13717 && test -z "${cf_tst_cflags}" \ 13718 && cf_fix_cppflags=no 13719 ;; 13720esac 13721done 13722 13723if test -n "$cf_new_cflags" ; then 13724 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 13725 13726echo "${as_me:-configure}:13726: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 13727 13728 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13729 CFLAGS="${CFLAGS}$cf_new_cflags" 13730 13731fi 13732 13733if test -n "$cf_new_cppflags" ; then 13734 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 13735 13736echo "${as_me:-configure}:13736: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 13737 13738 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13739 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13740 13741fi 13742 13743if test -n "$cf_new_extra_cppflags" ; then 13744 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 13745 13746echo "${as_me:-configure}:13746: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 13747 13748 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13749 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13750 13751fi 13752 13753if test "x$cf_check_cflags" != "x$CFLAGS" ; then 13754cat >conftest.$ac_ext <<_ACEOF 13755#line 13755 "configure" 13756#include "confdefs.h" 13757#include <stdio.h> 13758int 13759main (void) 13760{ 13761printf("Hello world"); 13762 ; 13763 return 0; 13764} 13765_ACEOF 13766rm -f conftest.$ac_objext conftest$ac_exeext 13767if { (eval echo "$as_me:13767: \"$ac_link\"") >&5 13768 (eval $ac_link) 2>&5 13769 ac_status=$? 13770 echo "$as_me:13770: \$? = $ac_status" >&5 13771 (exit $ac_status); } && 13772 { ac_try='test -s conftest$ac_exeext' 13773 { (eval echo "$as_me:13773: \"$ac_try\"") >&5 13774 (eval $ac_try) 2>&5 13775 ac_status=$? 13776 echo "$as_me:13776: \$? = $ac_status" >&5 13777 (exit $ac_status); }; }; then 13778 : 13779else 13780 echo "$as_me: failed program was:" >&5 13781cat conftest.$ac_ext >&5 13782test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 13783 13784echo "${as_me:-configure}:13784: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 13785 13786 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 13787 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 13788 13789echo "${as_me:-configure}:13789: testing but keeping change to \$CPPFLAGS ..." 1>&5 13790 13791 fi 13792 CFLAGS="$cf_check_flags" 13793fi 13794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13795fi 13796 13797echo "$as_me:13797: checking for XOpenDisplay in -lX11" >&5 13798echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 13799if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 13800 echo $ECHO_N "(cached) $ECHO_C" >&6 13801else 13802 ac_check_lib_save_LIBS=$LIBS 13803LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 13804cat >conftest.$ac_ext <<_ACEOF 13805#line 13805 "configure" 13806#include "confdefs.h" 13807 13808/* Override any gcc2 internal prototype to avoid an error. */ 13809#ifdef __cplusplus 13810extern "C" 13811#endif 13812/* We use char because int might match the return type of a gcc2 13813 builtin and then its argument prototype would still apply. */ 13814char XOpenDisplay (); 13815int 13816main (void) 13817{ 13818XOpenDisplay (); 13819 ; 13820 return 0; 13821} 13822_ACEOF 13823rm -f conftest.$ac_objext conftest$ac_exeext 13824if { (eval echo "$as_me:13824: \"$ac_link\"") >&5 13825 (eval $ac_link) 2>&5 13826 ac_status=$? 13827 echo "$as_me:13827: \$? = $ac_status" >&5 13828 (exit $ac_status); } && 13829 { ac_try='test -s conftest$ac_exeext' 13830 { (eval echo "$as_me:13830: \"$ac_try\"") >&5 13831 (eval $ac_try) 2>&5 13832 ac_status=$? 13833 echo "$as_me:13833: \$? = $ac_status" >&5 13834 (exit $ac_status); }; }; then 13835 ac_cv_lib_X11_XOpenDisplay=yes 13836else 13837 echo "$as_me: failed program was:" >&5 13838cat conftest.$ac_ext >&5 13839ac_cv_lib_X11_XOpenDisplay=no 13840fi 13841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13842LIBS=$ac_check_lib_save_LIBS 13843fi 13844echo "$as_me:13844: result: $ac_cv_lib_X11_XOpenDisplay" >&5 13845echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 13846if test $ac_cv_lib_X11_XOpenDisplay = yes; then 13847 13848cf_add_libs="-lX11" 13849# Filter out duplicates - this happens with badly-designed ".pc" files... 13850for cf_add_1lib in $LIBS 13851do 13852 for cf_add_2lib in $cf_add_libs 13853 do 13854 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13855 then 13856 cf_add_1lib= 13857 break 13858 fi 13859 done 13860 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13861done 13862LIBS="$cf_add_libs" 13863 13864fi 13865 13866echo "$as_me:13866: checking for XCurses library" >&5 13867echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6 13868if test "${cf_cv_lib_XCurses+set}" = set; then 13869 echo $ECHO_N "(cached) $ECHO_C" >&6 13870else 13871 13872cf_add_libs="-lXCurses" 13873# Filter out duplicates - this happens with badly-designed ".pc" files... 13874for cf_add_1lib in $LIBS 13875do 13876 for cf_add_2lib in $cf_add_libs 13877 do 13878 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13879 then 13880 cf_add_1lib= 13881 break 13882 fi 13883 done 13884 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13885done 13886LIBS="$cf_add_libs" 13887 13888cat >conftest.$ac_ext <<_ACEOF 13889#line 13889 "configure" 13890#include "confdefs.h" 13891 13892#include <xcurses.h> 13893char *XCursesProgramName = "test"; 13894 13895int 13896main (void) 13897{ 13898XCursesExit(); 13899 ; 13900 return 0; 13901} 13902_ACEOF 13903rm -f conftest.$ac_objext conftest$ac_exeext 13904if { (eval echo "$as_me:13904: \"$ac_link\"") >&5 13905 (eval $ac_link) 2>&5 13906 ac_status=$? 13907 echo "$as_me:13907: \$? = $ac_status" >&5 13908 (exit $ac_status); } && 13909 { ac_try='test -s conftest$ac_exeext' 13910 { (eval echo "$as_me:13910: \"$ac_try\"") >&5 13911 (eval $ac_try) 2>&5 13912 ac_status=$? 13913 echo "$as_me:13913: \$? = $ac_status" >&5 13914 (exit $ac_status); }; }; then 13915 cf_cv_lib_XCurses=yes 13916else 13917 echo "$as_me: failed program was:" >&5 13918cat conftest.$ac_ext >&5 13919cf_cv_lib_XCurses=no 13920fi 13921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13922 13923fi 13924echo "$as_me:13924: result: $cf_cv_lib_XCurses" >&5 13925echo "${ECHO_T}$cf_cv_lib_XCurses" >&6 13926 13927fi 13928 13929if test $cf_cv_lib_XCurses = yes ; then 13930 13931cat >>confdefs.h <<\EOF 13932#define UNIX 1 13933EOF 13934 13935cat >>confdefs.h <<\EOF 13936#define XCURSES 1 13937EOF 13938 13939 echo "$as_me:13939: checking for xcurses.h" >&5 13940echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6 13941if test "${ac_cv_header_xcurses_h+set}" = set; then 13942 echo $ECHO_N "(cached) $ECHO_C" >&6 13943else 13944 cat >conftest.$ac_ext <<_ACEOF 13945#line 13945 "configure" 13946#include "confdefs.h" 13947#include <xcurses.h> 13948_ACEOF 13949if { (eval echo "$as_me:13949: \"$ac_cpp conftest.$ac_ext\"") >&5 13950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13951 ac_status=$? 13952 egrep -v '^ *\+' conftest.er1 >conftest.err 13953 rm -f conftest.er1 13954 cat conftest.err >&5 13955 echo "$as_me:13955: \$? = $ac_status" >&5 13956 (exit $ac_status); } >/dev/null; then 13957 if test -s conftest.err; then 13958 ac_cpp_err=$ac_c_preproc_warn_flag 13959 else 13960 ac_cpp_err= 13961 fi 13962else 13963 ac_cpp_err=yes 13964fi 13965if test -z "$ac_cpp_err"; then 13966 ac_cv_header_xcurses_h=yes 13967else 13968 echo "$as_me: failed program was:" >&5 13969 cat conftest.$ac_ext >&5 13970 ac_cv_header_xcurses_h=no 13971fi 13972rm -f conftest.err conftest.$ac_ext 13973fi 13974echo "$as_me:13974: result: $ac_cv_header_xcurses_h" >&5 13975echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6 13976if test $ac_cv_header_xcurses_h = yes; then 13977 13978cat >>confdefs.h <<\EOF 13979#define HAVE_XCURSES 1 13980EOF 13981 13982fi 13983 13984else 13985 { { echo "$as_me:13985: error: Cannot link with XCurses" >&5 13986echo "$as_me: error: Cannot link with XCurses" >&2;} 13987 { (exit 1); exit 1; }; } 13988fi 13989 13990 ;; 13991(*) 13992 { { echo "$as_me:13992: error: unexpected screen-value: $cf_cv_screen" >&5 13993echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;} 13994 { (exit 1); exit 1; }; } 13995 ;; 13996esac 13997 13998: ${cf_nculib_root:=$cf_cv_screen} 13999as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh` 14000echo "$as_me:14000: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5 14001echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6 14002if eval "test \"\${$as_ac_Lib+set}\" = set"; then 14003 echo $ECHO_N "(cached) $ECHO_C" >&6 14004else 14005 ac_check_lib_save_LIBS=$LIBS 14006LIBS="-l$cf_nculib_root $LIBS" 14007cat >conftest.$ac_ext <<_ACEOF 14008#line 14008 "configure" 14009#include "confdefs.h" 14010 14011/* Override any gcc2 internal prototype to avoid an error. */ 14012#ifdef __cplusplus 14013extern "C" 14014#endif 14015/* We use char because int might match the return type of a gcc2 14016 builtin and then its argument prototype would still apply. */ 14017char _nc_init_pthreads (); 14018int 14019main (void) 14020{ 14021_nc_init_pthreads (); 14022 ; 14023 return 0; 14024} 14025_ACEOF 14026rm -f conftest.$ac_objext conftest$ac_exeext 14027if { (eval echo "$as_me:14027: \"$ac_link\"") >&5 14028 (eval $ac_link) 2>&5 14029 ac_status=$? 14030 echo "$as_me:14030: \$? = $ac_status" >&5 14031 (exit $ac_status); } && 14032 { ac_try='test -s conftest$ac_exeext' 14033 { (eval echo "$as_me:14033: \"$ac_try\"") >&5 14034 (eval $ac_try) 2>&5 14035 ac_status=$? 14036 echo "$as_me:14036: \$? = $ac_status" >&5 14037 (exit $ac_status); }; }; then 14038 eval "$as_ac_Lib=yes" 14039else 14040 echo "$as_me: failed program was:" >&5 14041cat conftest.$ac_ext >&5 14042eval "$as_ac_Lib=no" 14043fi 14044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14045LIBS=$ac_check_lib_save_LIBS 14046fi 14047echo "$as_me:14047: result: `eval echo '${'$as_ac_Lib'}'`" >&5 14048echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 14049if test `eval echo '${'$as_ac_Lib'}'` = yes; then 14050 cf_cv_ncurses_pthreads=yes 14051else 14052 cf_cv_ncurses_pthreads=no 14053fi 14054 14055if test "$cf_cv_ncurses_pthreads" = yes 14056then 14057 14058cf_add_libs="-lpthread" 14059# Filter out duplicates - this happens with badly-designed ".pc" files... 14060for cf_add_1lib in $LIBS 14061do 14062 for cf_add_2lib in $cf_add_libs 14063 do 14064 if test "x$cf_add_1lib" = "x$cf_add_2lib" 14065 then 14066 cf_add_1lib= 14067 break 14068 fi 14069 done 14070 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 14071done 14072LIBS="$cf_add_libs" 14073 14074fi 14075 14076# Extract the first word of "groff", so it can be a program name with args. 14077set dummy groff; ac_word=$2 14078echo "$as_me:14078: checking for $ac_word" >&5 14079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14080if test "${ac_cv_path_GROFF_PATH+set}" = set; then 14081 echo $ECHO_N "(cached) $ECHO_C" >&6 14082else 14083 case $GROFF_PATH in 14084 [\\/]* | ?:[\\/]*) 14085 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 14086 ;; 14087 *) 14088 ac_save_IFS=$IFS; IFS=$ac_path_separator 14089ac_dummy="$PATH" 14090for ac_dir in $ac_dummy; do 14091 IFS=$ac_save_IFS 14092 test -z "$ac_dir" && ac_dir=. 14093 if $as_executable_p "$ac_dir/$ac_word"; then 14094 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 14095 echo "$as_me:14095: found $ac_dir/$ac_word" >&5 14096 break 14097fi 14098done 14099 14100 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 14101 ;; 14102esac 14103fi 14104GROFF_PATH=$ac_cv_path_GROFF_PATH 14105 14106if test -n "$GROFF_PATH"; then 14107 echo "$as_me:14107: result: $GROFF_PATH" >&5 14108echo "${ECHO_T}$GROFF_PATH" >&6 14109else 14110 echo "$as_me:14110: result: no" >&5 14111echo "${ECHO_T}no" >&6 14112fi 14113 14114for ac_prog in nroff mandoc 14115do 14116 # Extract the first word of "$ac_prog", so it can be a program name with args. 14117set dummy $ac_prog; ac_word=$2 14118echo "$as_me:14118: checking for $ac_word" >&5 14119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14120if test "${ac_cv_path_NROFF_PATH+set}" = set; then 14121 echo $ECHO_N "(cached) $ECHO_C" >&6 14122else 14123 case $NROFF_PATH in 14124 [\\/]* | ?:[\\/]*) 14125 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 14126 ;; 14127 *) 14128 ac_save_IFS=$IFS; IFS=$ac_path_separator 14129ac_dummy="$PATH" 14130for ac_dir in $ac_dummy; do 14131 IFS=$ac_save_IFS 14132 test -z "$ac_dir" && ac_dir=. 14133 if $as_executable_p "$ac_dir/$ac_word"; then 14134 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 14135 echo "$as_me:14135: found $ac_dir/$ac_word" >&5 14136 break 14137fi 14138done 14139 14140 ;; 14141esac 14142fi 14143NROFF_PATH=$ac_cv_path_NROFF_PATH 14144 14145if test -n "$NROFF_PATH"; then 14146 echo "$as_me:14146: result: $NROFF_PATH" >&5 14147echo "${ECHO_T}$NROFF_PATH" >&6 14148else 14149 echo "$as_me:14149: result: no" >&5 14150echo "${ECHO_T}no" >&6 14151fi 14152 14153 test -n "$NROFF_PATH" && break 14154done 14155test -n "$NROFF_PATH" || NROFF_PATH="no" 14156 14157# Extract the first word of "tbl", so it can be a program name with args. 14158set dummy tbl; ac_word=$2 14159echo "$as_me:14159: checking for $ac_word" >&5 14160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14161if test "${ac_cv_path_TBL_PATH+set}" = set; then 14162 echo $ECHO_N "(cached) $ECHO_C" >&6 14163else 14164 case $TBL_PATH in 14165 [\\/]* | ?:[\\/]*) 14166 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 14167 ;; 14168 *) 14169 ac_save_IFS=$IFS; IFS=$ac_path_separator 14170ac_dummy="$PATH" 14171for ac_dir in $ac_dummy; do 14172 IFS=$ac_save_IFS 14173 test -z "$ac_dir" && ac_dir=. 14174 if $as_executable_p "$ac_dir/$ac_word"; then 14175 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 14176 echo "$as_me:14176: found $ac_dir/$ac_word" >&5 14177 break 14178fi 14179done 14180 14181 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 14182 ;; 14183esac 14184fi 14185TBL_PATH=$ac_cv_path_TBL_PATH 14186 14187if test -n "$TBL_PATH"; then 14188 echo "$as_me:14188: result: $TBL_PATH" >&5 14189echo "${ECHO_T}$TBL_PATH" >&6 14190else 14191 echo "$as_me:14191: result: no" >&5 14192echo "${ECHO_T}no" >&6 14193fi 14194 14195if test "x$GROFF_PATH" = xno 14196then 14197 NROFF_NOTE= 14198 GROFF_NOTE="#" 14199else 14200 NROFF_NOTE="#" 14201 GROFF_NOTE= 14202fi 14203 14204case "x${with_man2html}" in 14205(xno) 14206 cf_man2html=no 14207 ;; 14208(x|xyes) 14209 # Extract the first word of "man2html", so it can be a program name with args. 14210set dummy man2html; ac_word=$2 14211echo "$as_me:14211: checking for $ac_word" >&5 14212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14213if test "${ac_cv_path_cf_man2html+set}" = set; then 14214 echo $ECHO_N "(cached) $ECHO_C" >&6 14215else 14216 case $cf_man2html in 14217 [\\/]* | ?:[\\/]*) 14218 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 14219 ;; 14220 *) 14221 ac_save_IFS=$IFS; IFS=$ac_path_separator 14222ac_dummy="$PATH" 14223for ac_dir in $ac_dummy; do 14224 IFS=$ac_save_IFS 14225 test -z "$ac_dir" && ac_dir=. 14226 if $as_executable_p "$ac_dir/$ac_word"; then 14227 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 14228 echo "$as_me:14228: found $ac_dir/$ac_word" >&5 14229 break 14230fi 14231done 14232 14233 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 14234 ;; 14235esac 14236fi 14237cf_man2html=$ac_cv_path_cf_man2html 14238 14239if test -n "$cf_man2html"; then 14240 echo "$as_me:14240: result: $cf_man2html" >&5 14241echo "${ECHO_T}$cf_man2html" >&6 14242else 14243 echo "$as_me:14243: result: no" >&5 14244echo "${ECHO_T}no" >&6 14245fi 14246 14247 case "x$cf_man2html" in 14248 (x/*) 14249 echo "$as_me:14249: checking for the modified Earl Hood script" >&5 14250echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 14251 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 14252 then 14253 cf_man2html_ok=yes 14254 else 14255 cf_man2html=no 14256 cf_man2html_ok=no 14257 fi 14258 echo "$as_me:14258: result: $cf_man2html_ok" >&5 14259echo "${ECHO_T}$cf_man2html_ok" >&6 14260 ;; 14261 (*) 14262 cf_man2html=no 14263 ;; 14264 esac 14265esac 14266 14267echo "$as_me:14267: checking for program to convert manpage to html" >&5 14268echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 14269 14270# Check whether --with-man2html or --without-man2html was given. 14271if test "${with_man2html+set}" = set; then 14272 withval="$with_man2html" 14273 cf_man2html=$withval 14274else 14275 cf_man2html=$cf_man2html 14276fi; 14277 14278cf_with_groff=no 14279 14280case $cf_man2html in 14281(yes) 14282 echo "$as_me:14282: result: man2html" >&5 14283echo "${ECHO_T}man2html" >&6 14284 # Extract the first word of "man2html", so it can be a program name with args. 14285set dummy man2html; ac_word=$2 14286echo "$as_me:14286: checking for $ac_word" >&5 14287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14288if test "${ac_cv_path_cf_man2html+set}" = set; then 14289 echo $ECHO_N "(cached) $ECHO_C" >&6 14290else 14291 case $cf_man2html in 14292 [\\/]* | ?:[\\/]*) 14293 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 14294 ;; 14295 *) 14296 ac_save_IFS=$IFS; IFS=$ac_path_separator 14297ac_dummy="$PATH" 14298for ac_dir in $ac_dummy; do 14299 IFS=$ac_save_IFS 14300 test -z "$ac_dir" && ac_dir=. 14301 if $as_executable_p "$ac_dir/$ac_word"; then 14302 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 14303 echo "$as_me:14303: found $ac_dir/$ac_word" >&5 14304 break 14305fi 14306done 14307 14308 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 14309 ;; 14310esac 14311fi 14312cf_man2html=$ac_cv_path_cf_man2html 14313 14314if test -n "$cf_man2html"; then 14315 echo "$as_me:14315: result: $cf_man2html" >&5 14316echo "${ECHO_T}$cf_man2html" >&6 14317else 14318 echo "$as_me:14318: result: no" >&5 14319echo "${ECHO_T}no" >&6 14320fi 14321 14322 ;; 14323(no|groff|*/groff*) 14324 cf_with_groff=yes 14325 cf_man2html=$GROFF_PATH 14326 echo "$as_me:14326: result: $cf_man2html" >&5 14327echo "${ECHO_T}$cf_man2html" >&6 14328 ;; 14329(*) 14330 echo "$as_me:14330: result: $cf_man2html" >&5 14331echo "${ECHO_T}$cf_man2html" >&6 14332 ;; 14333esac 14334 14335MAN2HTML_TEMP="man2html.tmp" 14336 cat >$MAN2HTML_TEMP <<CF_EOF 14337#!$SHELL 14338# Temporary script generated by CF_WITH_MAN2HTML 14339# Convert inputs to html, sending result to standard output. 14340# 14341# Parameters: 14342# \${1} = rootname of file to convert 14343# \${2} = suffix of file to convert, e.g., "1" 14344# \${3} = macros to use, e.g., "man" 14345# 14346ROOT=\$1 14347TYPE=\$2 14348MACS=\$3 14349 14350unset LANG 14351unset LC_ALL 14352unset LC_CTYPE 14353unset LANGUAGE 14354GROFF_NO_SGR=stupid 14355export GROFF_NO_SGR 14356 14357CF_EOF 14358 14359if test "x$cf_with_groff" = xyes 14360then 14361 MAN2HTML_NOTE="$GROFF_NOTE" 14362 MAN2HTML_PATH="$GROFF_PATH" 14363 cat >>$MAN2HTML_TEMP <<CF_EOF 14364$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 14365CF_EOF 14366else 14367 MAN2HTML_NOTE="" 14368 14369if test "x$prefix" != xNONE; then 14370 cf_path_syntax="$prefix" 14371else 14372 cf_path_syntax="$ac_default_prefix" 14373fi 14374 14375case ".$cf_man2html" in 14376(.\$\(*\)*|.\'*\'*) 14377 ;; 14378(..|./*|.\\*) 14379 ;; 14380(.[a-zA-Z]:[\\/]*) # OS/2 EMX 14381 ;; 14382(.\${*prefix}*|.\${*dir}*) 14383 eval cf_man2html="$cf_man2html" 14384 case ".$cf_man2html" in 14385 (.NONE/*) 14386 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 14387 ;; 14388 esac 14389 ;; 14390(.no|.NONE/*) 14391 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 14392 ;; 14393(*) 14394 { { echo "$as_me:14394: error: expected a pathname, not \"$cf_man2html\"" >&5 14395echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 14396 { (exit 1); exit 1; }; } 14397 ;; 14398esac 14399 14400 MAN2HTML_PATH="$cf_man2html" 14401 echo "$as_me:14401: checking for $cf_man2html top/bottom margins" >&5 14402echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 14403 14404 # for this example, expect 3 lines of content, the remainder is head/foot 14405 cat >conftest.in <<CF_EOF 14406.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 14407.SH SECTION 14408MARKER 14409CF_EOF 14410 14411 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 14412 14413 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 14414 cf_man2html_top=`expr $cf_man2html_1st - 2` 14415 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'` 14416 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top` 14417 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 14418 14419 echo "$as_me:14419: result: $cf_man2html_top_bot" >&5 14420echo "${ECHO_T}$cf_man2html_top_bot" >&6 14421 14422 echo "$as_me:14422: checking for pagesize to use" >&5 14423echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 14424 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 14425 do 14426 cat >>conftest.in <<CF_EOF 14427.nf 144280 144291 144302 144313 144324 144335 144346 144357 144368 144379 14438CF_EOF 14439 done 14440 14441 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 14442 cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 14443 test -z "$cf_man2html_page" && cf_man2html_page=99999 14444 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 14445 14446 rm -rf conftest* 14447 echo "$as_me:14447: result: $cf_man2html_page" >&5 14448echo "${ECHO_T}$cf_man2html_page" >&6 14449 14450 cat >>$MAN2HTML_TEMP <<CF_EOF 14451: \${MAN2HTML_PATH=$MAN2HTML_PATH} 14452MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page" 14453case \${TYPE} in 14454(ms) 14455 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 14456 ;; 14457(*) 14458 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 14459 ;; 14460esac 14461CF_EOF 14462fi 14463 14464chmod 700 $MAN2HTML_TEMP 14465 14466echo "$as_me:14466: checking if you want to use dmalloc for testing" >&5 14467echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 14468 14469# Check whether --with-dmalloc or --without-dmalloc was given. 14470if test "${with_dmalloc+set}" = set; then 14471 withval="$with_dmalloc" 14472 14473cat >>confdefs.h <<EOF 14474#define USE_DMALLOC 1 14475EOF 14476 14477 : ${with_cflags:=-g} 14478 : ${with_no_leaks:=yes} 14479 with_dmalloc=yes 14480else 14481 with_dmalloc= 14482fi; 14483echo "$as_me:14483: result: ${with_dmalloc:-no}" >&5 14484echo "${ECHO_T}${with_dmalloc:-no}" >&6 14485 14486case .$with_cflags in 14487(.*-g*) 14488 case .$CFLAGS in 14489 (.*-g*) 14490 ;; 14491 (*) 14492 14493cf_fix_cppflags=no 14494cf_new_cflags= 14495cf_new_cppflags= 14496cf_new_extra_cppflags= 14497 14498for cf_add_cflags in -g 14499do 14500case $cf_fix_cppflags in 14501(no) 14502 case $cf_add_cflags in 14503 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14504 case $cf_add_cflags in 14505 (-D*) 14506 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14507 14508 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14509 && test -z "${cf_tst_cflags}" \ 14510 && cf_fix_cppflags=yes 14511 14512 if test $cf_fix_cppflags = yes ; then 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 continue 14518 elif test "${cf_tst_cflags}" = "\"'" ; then 14519 14520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14522 14523 continue 14524 fi 14525 ;; 14526 esac 14527 case "$CPPFLAGS" in 14528 (*$cf_add_cflags) 14529 ;; 14530 (*) 14531 case $cf_add_cflags in 14532 (-D*) 14533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14534 14535CPPFLAGS=`echo "$CPPFLAGS" | \ 14536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14538 14539 ;; 14540 esac 14541 14542 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14543 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14544 14545 ;; 14546 esac 14547 ;; 14548 (*) 14549 14550 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14551 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14552 14553 ;; 14554 esac 14555 ;; 14556(yes) 14557 14558 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14559 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14560 14561 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 14562 14563 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14564 && test -z "${cf_tst_cflags}" \ 14565 && cf_fix_cppflags=no 14566 ;; 14567esac 14568done 14569 14570if test -n "$cf_new_cflags" ; then 14571 14572 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14573 CFLAGS="${CFLAGS}$cf_new_cflags" 14574 14575fi 14576 14577if test -n "$cf_new_cppflags" ; then 14578 14579 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14580 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14581 14582fi 14583 14584if test -n "$cf_new_extra_cppflags" ; then 14585 14586 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14587 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14588 14589fi 14590 14591 ;; 14592 esac 14593 ;; 14594esac 14595 14596if test "$with_dmalloc" = yes ; then 14597 echo "$as_me:14597: checking for dmalloc.h" >&5 14598echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 14599if test "${ac_cv_header_dmalloc_h+set}" = set; then 14600 echo $ECHO_N "(cached) $ECHO_C" >&6 14601else 14602 cat >conftest.$ac_ext <<_ACEOF 14603#line 14603 "configure" 14604#include "confdefs.h" 14605#include <dmalloc.h> 14606_ACEOF 14607if { (eval echo "$as_me:14607: \"$ac_cpp conftest.$ac_ext\"") >&5 14608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14609 ac_status=$? 14610 egrep -v '^ *\+' conftest.er1 >conftest.err 14611 rm -f conftest.er1 14612 cat conftest.err >&5 14613 echo "$as_me:14613: \$? = $ac_status" >&5 14614 (exit $ac_status); } >/dev/null; then 14615 if test -s conftest.err; then 14616 ac_cpp_err=$ac_c_preproc_warn_flag 14617 else 14618 ac_cpp_err= 14619 fi 14620else 14621 ac_cpp_err=yes 14622fi 14623if test -z "$ac_cpp_err"; then 14624 ac_cv_header_dmalloc_h=yes 14625else 14626 echo "$as_me: failed program was:" >&5 14627 cat conftest.$ac_ext >&5 14628 ac_cv_header_dmalloc_h=no 14629fi 14630rm -f conftest.err conftest.$ac_ext 14631fi 14632echo "$as_me:14632: result: $ac_cv_header_dmalloc_h" >&5 14633echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 14634if test $ac_cv_header_dmalloc_h = yes; then 14635 14636echo "$as_me:14636: checking for dmalloc_debug in -ldmalloc" >&5 14637echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 14638if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 14639 echo $ECHO_N "(cached) $ECHO_C" >&6 14640else 14641 ac_check_lib_save_LIBS=$LIBS 14642LIBS="-ldmalloc $LIBS" 14643cat >conftest.$ac_ext <<_ACEOF 14644#line 14644 "configure" 14645#include "confdefs.h" 14646 14647/* Override any gcc2 internal prototype to avoid an error. */ 14648#ifdef __cplusplus 14649extern "C" 14650#endif 14651/* We use char because int might match the return type of a gcc2 14652 builtin and then its argument prototype would still apply. */ 14653char dmalloc_debug (); 14654int 14655main (void) 14656{ 14657dmalloc_debug (); 14658 ; 14659 return 0; 14660} 14661_ACEOF 14662rm -f conftest.$ac_objext conftest$ac_exeext 14663if { (eval echo "$as_me:14663: \"$ac_link\"") >&5 14664 (eval $ac_link) 2>&5 14665 ac_status=$? 14666 echo "$as_me:14666: \$? = $ac_status" >&5 14667 (exit $ac_status); } && 14668 { ac_try='test -s conftest$ac_exeext' 14669 { (eval echo "$as_me:14669: \"$ac_try\"") >&5 14670 (eval $ac_try) 2>&5 14671 ac_status=$? 14672 echo "$as_me:14672: \$? = $ac_status" >&5 14673 (exit $ac_status); }; }; then 14674 ac_cv_lib_dmalloc_dmalloc_debug=yes 14675else 14676 echo "$as_me: failed program was:" >&5 14677cat conftest.$ac_ext >&5 14678ac_cv_lib_dmalloc_dmalloc_debug=no 14679fi 14680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14681LIBS=$ac_check_lib_save_LIBS 14682fi 14683echo "$as_me:14683: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 14684echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 14685if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 14686 cat >>confdefs.h <<EOF 14687#define HAVE_LIBDMALLOC 1 14688EOF 14689 14690 LIBS="-ldmalloc $LIBS" 14691 14692fi 14693 14694fi 14695 14696fi 14697 14698echo "$as_me:14698: checking if you want to use dbmalloc for testing" >&5 14699echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 14700 14701# Check whether --with-dbmalloc or --without-dbmalloc was given. 14702if test "${with_dbmalloc+set}" = set; then 14703 withval="$with_dbmalloc" 14704 14705cat >>confdefs.h <<EOF 14706#define USE_DBMALLOC 1 14707EOF 14708 14709 : ${with_cflags:=-g} 14710 : ${with_no_leaks:=yes} 14711 with_dbmalloc=yes 14712else 14713 with_dbmalloc= 14714fi; 14715echo "$as_me:14715: result: ${with_dbmalloc:-no}" >&5 14716echo "${ECHO_T}${with_dbmalloc:-no}" >&6 14717 14718case .$with_cflags in 14719(.*-g*) 14720 case .$CFLAGS in 14721 (.*-g*) 14722 ;; 14723 (*) 14724 14725cf_fix_cppflags=no 14726cf_new_cflags= 14727cf_new_cppflags= 14728cf_new_extra_cppflags= 14729 14730for cf_add_cflags in -g 14731do 14732case $cf_fix_cppflags in 14733(no) 14734 case $cf_add_cflags in 14735 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14736 case $cf_add_cflags in 14737 (-D*) 14738 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14739 14740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14741 && test -z "${cf_tst_cflags}" \ 14742 && cf_fix_cppflags=yes 14743 14744 if test $cf_fix_cppflags = yes ; then 14745 14746 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14747 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14748 14749 continue 14750 elif test "${cf_tst_cflags}" = "\"'" ; then 14751 14752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14754 14755 continue 14756 fi 14757 ;; 14758 esac 14759 case "$CPPFLAGS" in 14760 (*$cf_add_cflags) 14761 ;; 14762 (*) 14763 case $cf_add_cflags in 14764 (-D*) 14765 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14766 14767CPPFLAGS=`echo "$CPPFLAGS" | \ 14768 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14769 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14770 14771 ;; 14772 esac 14773 14774 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14775 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14776 14777 ;; 14778 esac 14779 ;; 14780 (*) 14781 14782 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14783 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14784 14785 ;; 14786 esac 14787 ;; 14788(yes) 14789 14790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14791 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14792 14793 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 14794 14795 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14796 && test -z "${cf_tst_cflags}" \ 14797 && cf_fix_cppflags=no 14798 ;; 14799esac 14800done 14801 14802if test -n "$cf_new_cflags" ; then 14803 14804 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14805 CFLAGS="${CFLAGS}$cf_new_cflags" 14806 14807fi 14808 14809if test -n "$cf_new_cppflags" ; then 14810 14811 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14812 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14813 14814fi 14815 14816if test -n "$cf_new_extra_cppflags" ; then 14817 14818 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14819 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14820 14821fi 14822 14823 ;; 14824 esac 14825 ;; 14826esac 14827 14828if test "$with_dbmalloc" = yes ; then 14829 echo "$as_me:14829: checking for dbmalloc.h" >&5 14830echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 14831if test "${ac_cv_header_dbmalloc_h+set}" = set; then 14832 echo $ECHO_N "(cached) $ECHO_C" >&6 14833else 14834 cat >conftest.$ac_ext <<_ACEOF 14835#line 14835 "configure" 14836#include "confdefs.h" 14837#include <dbmalloc.h> 14838_ACEOF 14839if { (eval echo "$as_me:14839: \"$ac_cpp conftest.$ac_ext\"") >&5 14840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14841 ac_status=$? 14842 egrep -v '^ *\+' conftest.er1 >conftest.err 14843 rm -f conftest.er1 14844 cat conftest.err >&5 14845 echo "$as_me:14845: \$? = $ac_status" >&5 14846 (exit $ac_status); } >/dev/null; then 14847 if test -s conftest.err; then 14848 ac_cpp_err=$ac_c_preproc_warn_flag 14849 else 14850 ac_cpp_err= 14851 fi 14852else 14853 ac_cpp_err=yes 14854fi 14855if test -z "$ac_cpp_err"; then 14856 ac_cv_header_dbmalloc_h=yes 14857else 14858 echo "$as_me: failed program was:" >&5 14859 cat conftest.$ac_ext >&5 14860 ac_cv_header_dbmalloc_h=no 14861fi 14862rm -f conftest.err conftest.$ac_ext 14863fi 14864echo "$as_me:14864: result: $ac_cv_header_dbmalloc_h" >&5 14865echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 14866if test $ac_cv_header_dbmalloc_h = yes; then 14867 14868echo "$as_me:14868: checking for debug_malloc in -ldbmalloc" >&5 14869echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 14870if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 14871 echo $ECHO_N "(cached) $ECHO_C" >&6 14872else 14873 ac_check_lib_save_LIBS=$LIBS 14874LIBS="-ldbmalloc $LIBS" 14875cat >conftest.$ac_ext <<_ACEOF 14876#line 14876 "configure" 14877#include "confdefs.h" 14878 14879/* Override any gcc2 internal prototype to avoid an error. */ 14880#ifdef __cplusplus 14881extern "C" 14882#endif 14883/* We use char because int might match the return type of a gcc2 14884 builtin and then its argument prototype would still apply. */ 14885char debug_malloc (); 14886int 14887main (void) 14888{ 14889debug_malloc (); 14890 ; 14891 return 0; 14892} 14893_ACEOF 14894rm -f conftest.$ac_objext conftest$ac_exeext 14895if { (eval echo "$as_me:14895: \"$ac_link\"") >&5 14896 (eval $ac_link) 2>&5 14897 ac_status=$? 14898 echo "$as_me:14898: \$? = $ac_status" >&5 14899 (exit $ac_status); } && 14900 { ac_try='test -s conftest$ac_exeext' 14901 { (eval echo "$as_me:14901: \"$ac_try\"") >&5 14902 (eval $ac_try) 2>&5 14903 ac_status=$? 14904 echo "$as_me:14904: \$? = $ac_status" >&5 14905 (exit $ac_status); }; }; then 14906 ac_cv_lib_dbmalloc_debug_malloc=yes 14907else 14908 echo "$as_me: failed program was:" >&5 14909cat conftest.$ac_ext >&5 14910ac_cv_lib_dbmalloc_debug_malloc=no 14911fi 14912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14913LIBS=$ac_check_lib_save_LIBS 14914fi 14915echo "$as_me:14915: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 14916echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 14917if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 14918 cat >>confdefs.h <<EOF 14919#define HAVE_LIBDBMALLOC 1 14920EOF 14921 14922 LIBS="-ldbmalloc $LIBS" 14923 14924fi 14925 14926fi 14927 14928fi 14929 14930echo "$as_me:14930: checking if you want to use valgrind for testing" >&5 14931echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 14932 14933# Check whether --with-valgrind or --without-valgrind was given. 14934if test "${with_valgrind+set}" = set; then 14935 withval="$with_valgrind" 14936 14937cat >>confdefs.h <<EOF 14938#define USE_VALGRIND 1 14939EOF 14940 14941 : ${with_cflags:=-g} 14942 : ${with_no_leaks:=yes} 14943 with_valgrind=yes 14944else 14945 with_valgrind= 14946fi; 14947echo "$as_me:14947: result: ${with_valgrind:-no}" >&5 14948echo "${ECHO_T}${with_valgrind:-no}" >&6 14949 14950case .$with_cflags in 14951(.*-g*) 14952 case .$CFLAGS in 14953 (.*-g*) 14954 ;; 14955 (*) 14956 14957cf_fix_cppflags=no 14958cf_new_cflags= 14959cf_new_cppflags= 14960cf_new_extra_cppflags= 14961 14962for cf_add_cflags in -g 14963do 14964case $cf_fix_cppflags in 14965(no) 14966 case $cf_add_cflags in 14967 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14968 case $cf_add_cflags in 14969 (-D*) 14970 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14971 14972 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14973 && test -z "${cf_tst_cflags}" \ 14974 && cf_fix_cppflags=yes 14975 14976 if test $cf_fix_cppflags = yes ; then 14977 14978 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14979 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14980 14981 continue 14982 elif test "${cf_tst_cflags}" = "\"'" ; then 14983 14984 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14985 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14986 14987 continue 14988 fi 14989 ;; 14990 esac 14991 case "$CPPFLAGS" in 14992 (*$cf_add_cflags) 14993 ;; 14994 (*) 14995 case $cf_add_cflags in 14996 (-D*) 14997 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14998 14999CPPFLAGS=`echo "$CPPFLAGS" | \ 15000 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15001 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15002 15003 ;; 15004 esac 15005 15006 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15007 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15008 15009 ;; 15010 esac 15011 ;; 15012 (*) 15013 15014 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15015 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15016 15017 ;; 15018 esac 15019 ;; 15020(yes) 15021 15022 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15023 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15024 15025 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15026 15027 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15028 && test -z "${cf_tst_cflags}" \ 15029 && cf_fix_cppflags=no 15030 ;; 15031esac 15032done 15033 15034if test -n "$cf_new_cflags" ; then 15035 15036 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15037 CFLAGS="${CFLAGS}$cf_new_cflags" 15038 15039fi 15040 15041if test -n "$cf_new_cppflags" ; then 15042 15043 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15044 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15045 15046fi 15047 15048if test -n "$cf_new_extra_cppflags" ; then 15049 15050 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15051 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15052 15053fi 15054 15055 ;; 15056 esac 15057 ;; 15058esac 15059 15060echo "$as_me:15060: checking if you want to perform memory-leak testing" >&5 15061echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 15062 15063# Check whether --enable-leaks or --disable-leaks was given. 15064if test "${enable_leaks+set}" = set; then 15065 enableval="$enable_leaks" 15066 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 15067else 15068 : ${with_no_leaks:=no} 15069fi; 15070echo "$as_me:15070: result: $with_no_leaks" >&5 15071echo "${ECHO_T}$with_no_leaks" >&6 15072 15073if test "$with_no_leaks" = yes ; then 15074 15075cat >>confdefs.h <<\EOF 15076#define NO_LEAKS 1 15077EOF 15078 15079cat >>confdefs.h <<\EOF 15080#define YY_NO_LEAKS 1 15081EOF 15082 15083fi 15084 15085for ac_func in \ 15086getcwd \ 15087getopt \ 15088 15089do 15090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15091echo "$as_me:15091: checking for $ac_func" >&5 15092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15093if eval "test \"\${$as_ac_var+set}\" = set"; then 15094 echo $ECHO_N "(cached) $ECHO_C" >&6 15095else 15096 cat >conftest.$ac_ext <<_ACEOF 15097#line 15097 "configure" 15098#include "confdefs.h" 15099/* System header to define __stub macros and hopefully few prototypes, 15100 which can conflict with char $ac_func (); below. */ 15101#include <assert.h> 15102/* Override any gcc2 internal prototype to avoid an error. */ 15103#ifdef __cplusplus 15104extern "C" 15105#endif 15106/* We use char because int might match the return type of a gcc2 15107 builtin and then its argument prototype would still apply. */ 15108char $ac_func (); 15109char (*f) (); 15110 15111int 15112main (void) 15113{ 15114/* The GNU C library defines this for functions which it implements 15115 to always fail with ENOSYS. Some functions are actually named 15116 something starting with __ and the normal name is an alias. */ 15117#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15118choke me 15119#else 15120f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 15121#endif 15122 15123 ; 15124 return 0; 15125} 15126_ACEOF 15127rm -f conftest.$ac_objext conftest$ac_exeext 15128if { (eval echo "$as_me:15128: \"$ac_link\"") >&5 15129 (eval $ac_link) 2>&5 15130 ac_status=$? 15131 echo "$as_me:15131: \$? = $ac_status" >&5 15132 (exit $ac_status); } && 15133 { ac_try='test -s conftest$ac_exeext' 15134 { (eval echo "$as_me:15134: \"$ac_try\"") >&5 15135 (eval $ac_try) 2>&5 15136 ac_status=$? 15137 echo "$as_me:15137: \$? = $ac_status" >&5 15138 (exit $ac_status); }; }; then 15139 eval "$as_ac_var=yes" 15140else 15141 echo "$as_me: failed program was:" >&5 15142cat conftest.$ac_ext >&5 15143eval "$as_ac_var=no" 15144fi 15145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15146fi 15147echo "$as_me:15147: result: `eval echo '${'$as_ac_var'}'`" >&5 15148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15149if test `eval echo '${'$as_ac_var'}'` = yes; then 15150 cat >>confdefs.h <<EOF 15151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15152EOF 15153 15154fi 15155done 15156 15157echo "$as_me:15157: checking definition to turn on extended curses functions" >&5 15158echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6 15159if test "${cf_cv_need_xopen_extension+set}" = set; then 15160 echo $ECHO_N "(cached) $ECHO_C" >&6 15161else 15162 15163cf_cv_need_xopen_extension=unknown 15164cat >conftest.$ac_ext <<_ACEOF 15165#line 15165 "configure" 15166#include "confdefs.h" 15167 15168#include <stdlib.h> 15169#include <${cf_cv_ncurses_header:-curses.h}> 15170int 15171main (void) 15172{ 15173 15174#if defined(NCURSES_VERSION_PATCH) 15175#if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403) 15176 make an error 15177#endif 15178#endif 15179#ifdef NCURSES_VERSION 15180 cchar_t check; 15181 int check2 = curs_set((int)sizeof(check)); 15182#endif 15183 long x = winnstr(stdscr, "", 0); 15184 int x1, y1; 15185 getbegyx(stdscr, y1, x1) 15186 ; 15187 return 0; 15188} 15189_ACEOF 15190rm -f conftest.$ac_objext conftest$ac_exeext 15191if { (eval echo "$as_me:15191: \"$ac_link\"") >&5 15192 (eval $ac_link) 2>&5 15193 ac_status=$? 15194 echo "$as_me:15194: \$? = $ac_status" >&5 15195 (exit $ac_status); } && 15196 { ac_try='test -s conftest$ac_exeext' 15197 { (eval echo "$as_me:15197: \"$ac_try\"") >&5 15198 (eval $ac_try) 2>&5 15199 ac_status=$? 15200 echo "$as_me:15200: \$? = $ac_status" >&5 15201 (exit $ac_status); }; }; then 15202 cf_cv_need_xopen_extension=none 15203else 15204 echo "$as_me: failed program was:" >&5 15205cat conftest.$ac_ext >&5 15206 15207 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR 15208 do 15209 cat >conftest.$ac_ext <<_ACEOF 15210#line 15210 "configure" 15211#include "confdefs.h" 15212 15213#define $cf_try_xopen_extension 1 15214#include <stdlib.h> 15215#include <${cf_cv_ncurses_header:-curses.h}> 15216int 15217main (void) 15218{ 15219 15220#ifdef NCURSES_VERSION 15221 cchar_t check; 15222 int check2 = curs_set((int)sizeof(check)); 15223#endif 15224 long x = winnstr(stdscr, "", 0); 15225 int x1, y1; 15226 getbegyx(stdscr, y1, x1) 15227 ; 15228 return 0; 15229} 15230_ACEOF 15231rm -f conftest.$ac_objext conftest$ac_exeext 15232if { (eval echo "$as_me:15232: \"$ac_link\"") >&5 15233 (eval $ac_link) 2>&5 15234 ac_status=$? 15235 echo "$as_me:15235: \$? = $ac_status" >&5 15236 (exit $ac_status); } && 15237 { ac_try='test -s conftest$ac_exeext' 15238 { (eval echo "$as_me:15238: \"$ac_try\"") >&5 15239 (eval $ac_try) 2>&5 15240 ac_status=$? 15241 echo "$as_me:15241: \$? = $ac_status" >&5 15242 (exit $ac_status); }; }; then 15243 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break 15244else 15245 echo "$as_me: failed program was:" >&5 15246cat conftest.$ac_ext >&5 15247fi 15248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15249 done 15250 15251fi 15252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15253 15254fi 15255echo "$as_me:15255: result: $cf_cv_need_xopen_extension" >&5 15256echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6 15257 15258case $cf_cv_need_xopen_extension in 15259(*_*) 15260 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension" 15261 ;; 15262esac 15263 15264echo "$as_me:15264: checking for term.h" >&5 15265echo $ECHO_N "checking for term.h... $ECHO_C" >&6 15266if test "${cf_cv_term_header+set}" = set; then 15267 echo $ECHO_N "(cached) $ECHO_C" >&6 15268else 15269 15270# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look 15271# for <term.h> if we do not find the variant. 15272 15273cf_header_list="term.h ncurses/term.h ncursesw/term.h" 15274 15275case ${cf_cv_ncurses_header:-curses.h} in 15276(*/*) 15277 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h 15278 cf_header_list="$cf_header_item $cf_header_list" 15279 ;; 15280esac 15281 15282for cf_header in $cf_header_list 15283do 15284 cat >conftest.$ac_ext <<_ACEOF 15285#line 15285 "configure" 15286#include "confdefs.h" 15287 15288#include <${cf_cv_ncurses_header:-curses.h}> 15289#include <${cf_header}> 15290int 15291main (void) 15292{ 15293WINDOW *x 15294 ; 15295 return 0; 15296} 15297_ACEOF 15298rm -f conftest.$ac_objext 15299if { (eval echo "$as_me:15299: \"$ac_compile\"") >&5 15300 (eval $ac_compile) 2>&5 15301 ac_status=$? 15302 echo "$as_me:15302: \$? = $ac_status" >&5 15303 (exit $ac_status); } && 15304 { ac_try='test -s conftest.$ac_objext' 15305 { (eval echo "$as_me:15305: \"$ac_try\"") >&5 15306 (eval $ac_try) 2>&5 15307 ac_status=$? 15308 echo "$as_me:15308: \$? = $ac_status" >&5 15309 (exit $ac_status); }; }; then 15310 cf_cv_term_header=$cf_header 15311 break 15312else 15313 echo "$as_me: failed program was:" >&5 15314cat conftest.$ac_ext >&5 15315cf_cv_term_header=no 15316fi 15317rm -f conftest.$ac_objext conftest.$ac_ext 15318done 15319 15320case $cf_cv_term_header in 15321(no) 15322 # If curses is ncurses, some packagers still mess it up by trying to make 15323 # us use GNU termcap. This handles the most common case. 15324 for cf_header in ncurses/term.h ncursesw/term.h 15325 do 15326 cat >conftest.$ac_ext <<_ACEOF 15327#line 15327 "configure" 15328#include "confdefs.h" 15329 15330#include <${cf_cv_ncurses_header:-curses.h}> 15331#ifdef NCURSES_VERSION 15332#include <${cf_header}> 15333#else 15334make an error 15335#endif 15336int 15337main (void) 15338{ 15339WINDOW *x 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344rm -f conftest.$ac_objext 15345if { (eval echo "$as_me:15345: \"$ac_compile\"") >&5 15346 (eval $ac_compile) 2>&5 15347 ac_status=$? 15348 echo "$as_me:15348: \$? = $ac_status" >&5 15349 (exit $ac_status); } && 15350 { ac_try='test -s conftest.$ac_objext' 15351 { (eval echo "$as_me:15351: \"$ac_try\"") >&5 15352 (eval $ac_try) 2>&5 15353 ac_status=$? 15354 echo "$as_me:15354: \$? = $ac_status" >&5 15355 (exit $ac_status); }; }; then 15356 cf_cv_term_header=$cf_header 15357 break 15358else 15359 echo "$as_me: failed program was:" >&5 15360cat conftest.$ac_ext >&5 15361cf_cv_term_header=no 15362fi 15363rm -f conftest.$ac_objext conftest.$ac_ext 15364 done 15365 ;; 15366esac 15367 15368fi 15369echo "$as_me:15369: result: $cf_cv_term_header" >&5 15370echo "${ECHO_T}$cf_cv_term_header" >&6 15371 15372case $cf_cv_term_header in 15373(term.h) 15374 15375cat >>confdefs.h <<\EOF 15376#define HAVE_TERM_H 1 15377EOF 15378 15379 ;; 15380(ncurses/term.h) 15381 15382cat >>confdefs.h <<\EOF 15383#define HAVE_NCURSES_TERM_H 1 15384EOF 15385 15386 ;; 15387(ncursesw/term.h) 15388 15389cat >>confdefs.h <<\EOF 15390#define HAVE_NCURSESW_TERM_H 1 15391EOF 15392 15393 ;; 15394esac 15395 15396echo "$as_me:15396: checking for unctrl.h" >&5 15397echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6 15398if test "${cf_cv_unctrl_header+set}" = set; then 15399 echo $ECHO_N "(cached) $ECHO_C" >&6 15400else 15401 15402# If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look 15403# for <unctrl.h> if we do not find the variant. 15404 15405cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h" 15406 15407case ${cf_cv_ncurses_header:-curses.h} in 15408(*/*) 15409 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h 15410 cf_header_list="$cf_header_item $cf_header_list" 15411 ;; 15412esac 15413 15414for cf_header in $cf_header_list 15415do 15416 cat >conftest.$ac_ext <<_ACEOF 15417#line 15417 "configure" 15418#include "confdefs.h" 15419 15420#include <${cf_cv_ncurses_header:-curses.h}> 15421#include <${cf_header}> 15422int 15423main (void) 15424{ 15425WINDOW *x 15426 ; 15427 return 0; 15428} 15429_ACEOF 15430rm -f conftest.$ac_objext 15431if { (eval echo "$as_me:15431: \"$ac_compile\"") >&5 15432 (eval $ac_compile) 2>&5 15433 ac_status=$? 15434 echo "$as_me:15434: \$? = $ac_status" >&5 15435 (exit $ac_status); } && 15436 { ac_try='test -s conftest.$ac_objext' 15437 { (eval echo "$as_me:15437: \"$ac_try\"") >&5 15438 (eval $ac_try) 2>&5 15439 ac_status=$? 15440 echo "$as_me:15440: \$? = $ac_status" >&5 15441 (exit $ac_status); }; }; then 15442 cf_cv_unctrl_header=$cf_header 15443 break 15444else 15445 echo "$as_me: failed program was:" >&5 15446cat conftest.$ac_ext >&5 15447cf_cv_unctrl_header=no 15448fi 15449rm -f conftest.$ac_objext conftest.$ac_ext 15450done 15451 15452fi 15453echo "$as_me:15453: result: $cf_cv_unctrl_header" >&5 15454echo "${ECHO_T}$cf_cv_unctrl_header" >&6 15455 15456case $cf_cv_unctrl_header in 15457(no) 15458 { echo "$as_me:15458: WARNING: unctrl.h header not found" >&5 15459echo "$as_me: WARNING: unctrl.h header not found" >&2;} 15460 ;; 15461esac 15462 15463case $cf_cv_unctrl_header in 15464(unctrl.h) 15465 15466cat >>confdefs.h <<\EOF 15467#define HAVE_UNCTRL_H 1 15468EOF 15469 15470 ;; 15471(ncurses/unctrl.h) 15472 15473cat >>confdefs.h <<\EOF 15474#define HAVE_NCURSES_UNCTRL_H 1 15475EOF 15476 15477 ;; 15478(ncursesw/unctrl.h) 15479 15480cat >>confdefs.h <<\EOF 15481#define HAVE_NCURSESW_UNCTRL_H 1 15482EOF 15483 15484 ;; 15485esac 15486 15487for cf_func in \ 15488COLOR_PAIR \ 15489beep \ 15490bkgd \ 15491define_key \ 15492flash \ 15493keypad \ 15494typeahead \ 15495wsetscrreg \ 15496 15497do 15498 15499cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15500 15501 echo "$as_me:15501: checking for ${cf_func}" >&5 15502echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 15503 15504echo "${as_me:-configure}:15504: testing ${cf_func} ..." 1>&5 15505 15506 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then 15507 echo $ECHO_N "(cached) $ECHO_C" >&6 15508else 15509 15510 eval cf_result='$ac_cv_func_'$cf_func 15511 if test ".$cf_result" != ".no"; then 15512 cat >conftest.$ac_ext <<_ACEOF 15513#line 15513 "configure" 15514#include "confdefs.h" 15515 15516#ifdef HAVE_XCURSES 15517#include <xcurses.h> 15518char * XCursesProgramName = "test"; 15519#else 15520#include <${cf_cv_ncurses_header:-curses.h}> 15521#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H) 15522#include <ncursesw/term.h> 15523#elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H) 15524#include <ncurses/term.h> 15525#elif defined(HAVE_TERM_H) 15526#include <term.h> 15527#endif 15528#endif 15529 15530int 15531main (void) 15532{ 15533 15534#ifndef ${cf_func} 15535long foo = (long)(&${cf_func}); 15536fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo); 15537if (foo + 1234L > 5678L) 15538 ${cf_cv_main_return:-return}(foo != 0); 15539#endif 15540 15541 ; 15542 return 0; 15543} 15544_ACEOF 15545rm -f conftest.$ac_objext conftest$ac_exeext 15546if { (eval echo "$as_me:15546: \"$ac_link\"") >&5 15547 (eval $ac_link) 2>&5 15548 ac_status=$? 15549 echo "$as_me:15549: \$? = $ac_status" >&5 15550 (exit $ac_status); } && 15551 { ac_try='test -s conftest$ac_exeext' 15552 { (eval echo "$as_me:15552: \"$ac_try\"") >&5 15553 (eval $ac_try) 2>&5 15554 ac_status=$? 15555 echo "$as_me:15555: \$? = $ac_status" >&5 15556 (exit $ac_status); }; }; then 15557 cf_result=yes 15558else 15559 echo "$as_me: failed program was:" >&5 15560cat conftest.$ac_ext >&5 15561cf_result=no 15562fi 15563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15564 fi 15565 eval 'cf_cv_func_'$cf_func'=$cf_result' 15566 15567fi 15568 15569 # use the computed/retrieved cache-value: 15570 eval 'cf_result=$cf_cv_func_'$cf_func 15571 echo "$as_me:15571: result: $cf_result" >&5 15572echo "${ECHO_T}$cf_result" >&6 15573 if test $cf_result != no; then 15574 cat >>confdefs.h <<EOF 15575#define HAVE_${cf_tr_func} 1 15576EOF 15577 15578 fi 15579done 15580 15581### output makefile and config.h 15582ac_config_files="$ac_config_files makefile" 15583ac_config_commands="$ac_config_commands default" 15584cat >confcache <<\_ACEOF 15585# This file is a shell script that caches the results of configure 15586# tests run on this system so they can be shared between configure 15587# scripts and configure runs, see configure's option --config-cache. 15588# It is not useful on other systems. If it contains results you don't 15589# want to keep, you may remove or edit it. 15590# 15591# config.status only pays attention to the cache file if you give it 15592# the --recheck option to rerun configure. 15593# 15594# `ac_cv_env_foo' variables (set or unset) will be overriden when 15595# loading this file, other *unset* `ac_cv_foo' will be assigned the 15596# following values. 15597 15598_ACEOF 15599 15600# The following way of writing the cache mishandles newlines in values, 15601# but we know of no workaround that is simple, portable, and efficient. 15602# So, don't put newlines in cache variables' values. 15603# Ultrix sh set writes to stderr and can't be redirected directly, 15604# and sets the high bit in the cache file unless we assign to the vars. 15605{ 15606 (set) 2>&1 | 15607 case `(ac_space=' '; set | grep ac_space) 2>&1` in 15608 *ac_space=\ *) 15609 # `set' does not quote correctly, so add quotes (double-quote 15610 # substitution turns \\\\ into \\, and sed turns \\ into \). 15611 sed -n \ 15612 "s/'/'\\\\''/g; 15613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15614 ;; 15615 *) 15616 # `set' quotes correctly as required by POSIX, so do not add quotes. 15617 sed -n \ 15618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 15619 ;; 15620 esac; 15621} | 15622 sed ' 15623 t clear 15624 : clear 15625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15626 t end 15627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15628 : end' >>confcache 15629if cmp -s $cache_file confcache; then :; else 15630 if test -w $cache_file; then 15631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 15632 cat confcache >$cache_file 15633 else 15634 echo "not updating unwritable cache $cache_file" 15635 fi 15636fi 15637rm -f confcache 15638 15639test "x$prefix" = xNONE && prefix=$ac_default_prefix 15640# Let make expand exec_prefix. 15641test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15642 15643# VPATH may cause trouble with some makes, so we remove $(srcdir), 15644# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15645# trailing colons and then remove the whole line if VPATH becomes empty 15646# (actually we leave an empty line to preserve line numbers). 15647if test "x$srcdir" = x.; then 15648 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15649s/:*\$(srcdir):*/:/; 15650s/:*\${srcdir}:*/:/; 15651s/:*@srcdir@:*/:/; 15652s/^\([^=]*=[ ]*\):*/\1/; 15653s/:*$//; 15654s/^[^=]*=[ ]*$//; 15655}' 15656fi 15657 15658DEFS=-DHAVE_CONFIG_H 15659 15660: ${CONFIG_STATUS=./config.status} 15661ac_clean_files_save=$ac_clean_files 15662ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15663{ echo "$as_me:15663: creating $CONFIG_STATUS" >&5 15664echo "$as_me: creating $CONFIG_STATUS" >&6;} 15665cat >$CONFIG_STATUS <<_ACEOF 15666#! $SHELL 15667# Generated automatically by configure. 15668# Run this file to recreate the current configuration. 15669# Compiler output produced by configure, useful for debugging 15670# configure, is in config.log if it exists. 15671 15672debug=false 15673SHELL=\${CONFIG_SHELL-$SHELL} 15674ac_cs_invocation="\$0 \$@" 15675 15676_ACEOF 15677 15678cat >>$CONFIG_STATUS <<\_ACEOF 15679# Be Bourne compatible 15680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15681 emulate sh 15682 NULLCMD=: 15683elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15684 set -o posix 15685fi 15686 15687# Name of the executable. 15688as_me=`echo "$0" |sed 's,.*[\\/],,'` 15689 15690if expr a : '\(a\)' >/dev/null 2>&1; then 15691 as_expr=expr 15692else 15693 as_expr=false 15694fi 15695 15696rm -f conf$$ conf$$.exe conf$$.file 15697echo >conf$$.file 15698if ln -s conf$$.file conf$$ 2>/dev/null; then 15699 # We could just check for DJGPP; but this test a) works b) is more generic 15700 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 15701 if test -f conf$$.exe; then 15702 # Don't use ln at all; we don't have any links 15703 as_ln_s='cp -p' 15704 else 15705 as_ln_s='ln -s' 15706 fi 15707elif ln conf$$.file conf$$ 2>/dev/null; then 15708 as_ln_s=ln 15709else 15710 as_ln_s='cp -p' 15711fi 15712rm -f conf$$ conf$$.exe conf$$.file 15713 15714as_executable_p="test -f" 15715 15716# Support unset when possible. 15717if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 15718 as_unset=unset 15719else 15720 as_unset=false 15721fi 15722 15723# NLS nuisances. 15724$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 15725$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 15726$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 15727$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 15728$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 15729$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 15730$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 15731$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 15732 15733# IFS 15734# We need space, tab and new line, in precisely that order. 15735as_nl=' 15736' 15737IFS=" $as_nl" 15738 15739# CDPATH. 15740$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 15741 15742exec 6>&1 15743 15744_ACEOF 15745 15746# Files that config.status was made for. 15747if test -n "$ac_config_files"; then 15748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 15749fi 15750 15751if test -n "$ac_config_headers"; then 15752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 15753fi 15754 15755if test -n "$ac_config_links"; then 15756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 15757fi 15758 15759if test -n "$ac_config_commands"; then 15760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 15761fi 15762 15763cat >>$CONFIG_STATUS <<\EOF 15764 15765ac_cs_usage="\ 15766\`$as_me' instantiates files from templates according to the 15767current configuration. 15768 15769Usage: $0 [OPTIONS] [FILE]... 15770 15771 -h, --help print this help, then exit 15772 -V, --version print version number, then exit 15773 -d, --debug don't remove temporary files 15774 --recheck update $as_me by reconfiguring in the same conditions 15775 --file=FILE[:TEMPLATE] 15776 instantiate the configuration file FILE 15777 --header=FILE[:TEMPLATE] 15778 instantiate the configuration header FILE 15779 15780Configuration files: 15781$config_files 15782 15783Configuration headers: 15784$config_headers 15785 15786Configuration commands: 15787$config_commands 15788 15789Report bugs to <dickey@invisible-island.net>." 15790EOF 15791 15792cat >>$CONFIG_STATUS <<EOF 15793ac_cs_version="\\ 15794config.status 15795configured by $0, generated by GNU Autoconf 2.52.20170501, 15796 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 15797 15798Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 15799Free Software Foundation, Inc. 15800This config.status script is free software; the Free Software Foundation 15801gives unlimited permission to copy, distribute and modify it." 15802srcdir=$srcdir 15803INSTALL="$INSTALL" 15804EOF 15805 15806cat >>$CONFIG_STATUS <<\EOF 15807# If no file are specified by the user, then we need to provide default 15808# value. By we need to know if files were specified by the user. 15809ac_need_defaults=: 15810while test $# != 0 15811do 15812 case $1 in 15813 --*=*) 15814 ac_option=`expr "x$1" : 'x\([^=]*\)='` 15815 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 15816 shift 15817 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 15818 shift 15819 ;; 15820 -*);; 15821 *) # This is not an option, so the user has probably given explicit 15822 # arguments. 15823 ac_need_defaults=false;; 15824 esac 15825 15826 case $1 in 15827 # Handling of the options. 15828EOF 15829cat >>$CONFIG_STATUS <<EOF 15830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15831 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 15832 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 15833EOF 15834cat >>$CONFIG_STATUS <<\EOF 15835 --version | --vers* | -V ) 15836 echo "$ac_cs_version"; exit 0 ;; 15837 --he | --h) 15838 # Conflict between --help and --header 15839 { { echo "$as_me:15839: error: ambiguous option: $1 15840Try \`$0 --help' for more information." >&5 15841echo "$as_me: error: ambiguous option: $1 15842Try \`$0 --help' for more information." >&2;} 15843 { (exit 1); exit 1; }; };; 15844 --help | --hel | -h ) 15845 echo "$ac_cs_usage"; exit 0 ;; 15846 --debug | --d* | -d ) 15847 debug=: ;; 15848 --file | --fil | --fi | --f ) 15849 shift 15850 CONFIG_FILES="$CONFIG_FILES $1" 15851 ac_need_defaults=false;; 15852 --header | --heade | --head | --hea ) 15853 shift 15854 CONFIG_HEADERS="$CONFIG_HEADERS $1" 15855 ac_need_defaults=false;; 15856 15857 # This is an error. 15858 -*) { { echo "$as_me:15858: error: unrecognized option: $1 15859Try \`$0 --help' for more information." >&5 15860echo "$as_me: error: unrecognized option: $1 15861Try \`$0 --help' for more information." >&2;} 15862 { (exit 1); exit 1; }; } ;; 15863 15864 *) ac_config_targets="$ac_config_targets $1" ;; 15865 15866 esac 15867 shift 15868done 15869 15870exec 5>>config.log 15871cat >&5 << _ACEOF 15872 15873## ----------------------- ## 15874## Running config.status. ## 15875## ----------------------- ## 15876 15877This file was extended by $as_me 2.52.20170501, executed with 15878 CONFIG_FILES = $CONFIG_FILES 15879 CONFIG_HEADERS = $CONFIG_HEADERS 15880 CONFIG_LINKS = $CONFIG_LINKS 15881 CONFIG_COMMANDS = $CONFIG_COMMANDS 15882 > $ac_cs_invocation 15883on `(hostname || uname -n) 2>/dev/null | sed 1q` 15884 15885_ACEOF 15886EOF 15887 15888cat >>$CONFIG_STATUS <<\EOF 15889for ac_config_target in $ac_config_targets 15890do 15891 case "$ac_config_target" in 15892 # Handling of arguments. 15893 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 15894 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 15895 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 15896 *) { { echo "$as_me:15896: error: invalid argument: $ac_config_target" >&5 15897echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15898 { (exit 1); exit 1; }; };; 15899 esac 15900done 15901 15902# If the user did not use the arguments to specify the items to instantiate, 15903# then the envvar interface is used. Set only those that are not. 15904# We use the long form for the default assignment because of an extremely 15905# bizarre bug on SunOS 4.1.3. 15906if $ac_need_defaults; then 15907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15910fi 15911 15912# Create a temporary directory, and hook for its removal unless debugging. 15913$debug || 15914{ 15915 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 15916 trap '{ (exit 1); exit 1; }' 1 2 13 15 15917} 15918 15919# Create a (secure) tmp directory for tmp files. 15920: ${TMPDIR=/tmp} 15921{ 15922 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 15923 test -n "$tmp" && test -d "$tmp" 15924} || 15925{ 15926 tmp=$TMPDIR/cs$$-$RANDOM 15927 (umask 077 && mkdir $tmp) 15928} || 15929{ 15930 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 15931 { (exit 1); exit 1; } 15932} 15933 15934EOF 15935 15936cat >>$CONFIG_STATUS <<EOF 15937 15938# 15939# CONFIG_FILES section. 15940# 15941 15942# No need to generate the scripts if there are no CONFIG_FILES. 15943# This happens for instance when ./config.status config.h 15944if test -n "\$CONFIG_FILES"; then 15945 # Protect against being on the right side of a sed subst in config.status. 15946 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 15947 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 15948s,@SHELL@,$SHELL,;t t 15949s,@exec_prefix@,$exec_prefix,;t t 15950s,@prefix@,$prefix,;t t 15951s,@program_transform_name@,$program_transform_name,;t t 15952s,@bindir@,$bindir,;t t 15953s,@sbindir@,$sbindir,;t t 15954s,@libexecdir@,$libexecdir,;t t 15955s,@datarootdir@,$datarootdir,;t t 15956s,@datadir@,$datadir,;t t 15957s,@sysconfdir@,$sysconfdir,;t t 15958s,@sharedstatedir@,$sharedstatedir,;t t 15959s,@localstatedir@,$localstatedir,;t t 15960s,@libdir@,$libdir,;t t 15961s,@includedir@,$includedir,;t t 15962s,@oldincludedir@,$oldincludedir,;t t 15963s,@infodir@,$infodir,;t t 15964s,@mandir@,$mandir,;t t 15965s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 15966s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 15967s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 15968s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 15969s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 15970s,@build_alias@,$build_alias,;t t 15971s,@host_alias@,$host_alias,;t t 15972s,@target_alias@,$target_alias,;t t 15973s,@ECHO_C@,$ECHO_C,;t t 15974s,@ECHO_N@,$ECHO_N,;t t 15975s,@ECHO_T@,$ECHO_T,;t t 15976s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 15977s,@DEFS@,$DEFS,;t t 15978s,@LIBS@,$LIBS,;t t 15979s,@build@,$build,;t t 15980s,@build_cpu@,$build_cpu,;t t 15981s,@build_vendor@,$build_vendor,;t t 15982s,@build_os@,$build_os,;t t 15983s,@host@,$host,;t t 15984s,@host_cpu@,$host_cpu,;t t 15985s,@host_vendor@,$host_vendor,;t t 15986s,@host_os@,$host_os,;t t 15987s,@CC@,$CC,;t t 15988s,@CFLAGS@,$CFLAGS,;t t 15989s,@LDFLAGS@,$LDFLAGS,;t t 15990s,@CPPFLAGS@,$CPPFLAGS,;t t 15991s,@ac_ct_CC@,$ac_ct_CC,;t t 15992s,@EXEEXT@,$EXEEXT,;t t 15993s,@OBJEXT@,$OBJEXT,;t t 15994s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 15995s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 15996s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 15997s,@INSTALL_DATA@,$INSTALL_DATA,;t t 15998s,@CTAGS@,$CTAGS,;t t 15999s,@ETAGS@,$ETAGS,;t t 16000s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 16001s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 16002s,@LINT@,$LINT,;t t 16003s,@LINT_OPTS@,$LINT_OPTS,;t t 16004s,@CPP@,$CPP,;t t 16005s,@ECHO_LT@,$ECHO_LT,;t t 16006s,@ECHO_LD@,$ECHO_LD,;t t 16007s,@RULE_CC@,$RULE_CC,;t t 16008s,@SHOW_CC@,$SHOW_CC,;t t 16009s,@ECHO_CC@,$ECHO_CC,;t t 16010s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 16011s,@PKG_CONFIG@,$PKG_CONFIG,;t t 16012s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 16013s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t 16014s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t 16015s,@X_CFLAGS@,$X_CFLAGS,;t t 16016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 16017s,@X_LIBS@,$X_LIBS,;t t 16018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 16019s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t 16020s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t 16021s,@GROFF_PATH@,$GROFF_PATH,;t t 16022s,@NROFF_PATH@,$NROFF_PATH,;t t 16023s,@TBL_PATH@,$TBL_PATH,;t t 16024s,@GROFF_NOTE@,$GROFF_NOTE,;t t 16025s,@NROFF_NOTE@,$NROFF_NOTE,;t t 16026s,@cf_man2html@,$cf_man2html,;t t 16027s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 16028s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 16029s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 16030CEOF 16031 16032EOF 16033 16034 cat >>$CONFIG_STATUS <<\EOF 16035 # Split the substitutions into bite-sized pieces for seds with 16036 # small command number limits, like on Digital OSF/1 and HP-UX. 16037 ac_max_sed_lines=48 16038 ac_sed_frag=1 # Number of current file. 16039 ac_beg=1 # First line for current file. 16040 ac_end=$ac_max_sed_lines # Line after last line for current file. 16041 ac_more_lines=: 16042 ac_sed_cmds= 16043 while $ac_more_lines; do 16044 if test $ac_beg -gt 1; then 16045 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 16046 else 16047 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 16048 fi 16049 if test ! -s $tmp/subs.frag; then 16050 ac_more_lines=false 16051 else 16052 # The purpose of the label and of the branching condition is to 16053 # speed up the sed processing (if there are no `@' at all, there 16054 # is no need to browse any of the substitutions). 16055 # These are the two extra sed commands mentioned above. 16056 (echo ':t 16057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 16058 # It is possible to make a multiline substitution using escaped newlines. 16059 # Ensure that we do not split the substitution between script fragments. 16060 ac_BEG=$ac_end 16061 ac_END=`expr $ac_end + $ac_max_sed_lines` 16062 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 16063 if test -s $tmp/subs.next; then 16064 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 16065 if test ! -s $tmp/subs.edit; then 16066 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 16067 if test ! -s $tmp/subs.edit; then 16068 if test $ac_beg -gt 1; then 16069 ac_end=`expr $ac_end - 1` 16070 continue 16071 fi 16072 fi 16073 fi 16074 fi 16075 16076 if test -z "$ac_sed_cmds"; then 16077 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 16078 else 16079 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 16080 fi 16081 ac_sed_frag=`expr $ac_sed_frag + 1` 16082 ac_beg=$ac_end 16083 ac_end=`expr $ac_end + $ac_max_sed_lines` 16084 fi 16085 done 16086 if test -z "$ac_sed_cmds"; then 16087 ac_sed_cmds=cat 16088 fi 16089fi # test -n "$CONFIG_FILES" 16090 16091EOF 16092cat >>$CONFIG_STATUS <<\EOF 16093for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 16094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 16095 case $ac_file in 16096 - | *:- | *:-:* ) # input from stdin 16097 cat >$tmp/stdin 16098 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16100 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16102 * ) ac_file_in=$ac_file.in ;; 16103 esac 16104 16105 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 16106 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16107 X"$ac_file" : 'X\(//\)[^/]' \| \ 16108 X"$ac_file" : 'X\(//\)$' \| \ 16109 X"$ac_file" : 'X\(/\)' \| \ 16110 . : '\(.\)' 2>/dev/null || 16111echo X"$ac_file" | 16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 16113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 16114 /^X\(\/\/\)$/{ s//\1/; q; } 16115 /^X\(\/\).*/{ s//\1/; q; } 16116 s/.*/./; q'` 16117 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 16118 { case "$ac_dir" in 16119 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 16120 *) as_incr_dir=.;; 16121esac 16122as_dummy="$ac_dir" 16123for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 16124 case $as_mkdir_dir in 16125 # Skip DOS drivespec 16126 ?:) as_incr_dir=$as_mkdir_dir ;; 16127 *) 16128 as_incr_dir=$as_incr_dir/$as_mkdir_dir 16129 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 16130 ;; 16131 esac 16132done; } 16133 16134 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 16135 # A "../" for each directory in $ac_dir_suffix. 16136 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 16137 else 16138 ac_dir_suffix= ac_dots= 16139 fi 16140 16141 case $srcdir in 16142 .) ac_srcdir=. 16143 if test -z "$ac_dots"; then 16144 ac_top_srcdir=. 16145 else 16146 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 16147 fi ;; 16148 [\\/]* | ?:[\\/]* ) 16149 ac_srcdir=$srcdir$ac_dir_suffix; 16150 ac_top_srcdir=$srcdir ;; 16151 *) # Relative path. 16152 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 16153 ac_top_srcdir=$ac_dots$srcdir ;; 16154 esac 16155 16156 case $INSTALL in 16157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16158 *) ac_INSTALL=$ac_dots$INSTALL ;; 16159 esac 16160 16161 if test x"$ac_file" != x-; then 16162 { echo "$as_me:16162: creating $ac_file" >&5 16163echo "$as_me: creating $ac_file" >&6;} 16164 rm -f "$ac_file" 16165 fi 16166 # Let's still pretend it is `configure' which instantiates (i.e., don't 16167 # use $as_me), people would be surprised to read: 16168 # /* config.h. Generated automatically by config.status. */ 16169 configure_input="Generated automatically from `echo $ac_file_in | 16170 sed 's,.*/,,'` by configure." 16171 16172 # First look for the input files in the build tree, otherwise in the 16173 # src tree. 16174 ac_file_inputs=`IFS=: 16175 for f in $ac_file_in; do 16176 case $f in 16177 -) echo $tmp/stdin ;; 16178 [\\/$]*) 16179 # Absolute (can't be DOS-style, as IFS=:) 16180 test -f "$f" || { { echo "$as_me:16180: error: cannot find input file: $f" >&5 16181echo "$as_me: error: cannot find input file: $f" >&2;} 16182 { (exit 1); exit 1; }; } 16183 echo $f;; 16184 *) # Relative 16185 if test -f "$f"; then 16186 # Build tree 16187 echo $f 16188 elif test -f "$srcdir/$f"; then 16189 # Source tree 16190 echo $srcdir/$f 16191 else 16192 # /dev/null tree 16193 { { echo "$as_me:16193: error: cannot find input file: $f" >&5 16194echo "$as_me: error: cannot find input file: $f" >&2;} 16195 { (exit 1); exit 1; }; } 16196 fi;; 16197 esac 16198 done` || { (exit 1); exit 1; } 16199EOF 16200cat >>$CONFIG_STATUS <<\EOF 16201 ac_warn_datarootdir=no 16202 if test x"$ac_file" != x-; then 16203 for ac_item in $ac_file_inputs 16204 do 16205 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 16206 if test -n "$ac_seen"; then 16207 ac_used=`grep '@datarootdir@' $ac_item` 16208 if test -z "$ac_used"; then 16209 { echo "$as_me:16209: WARNING: datarootdir was used implicitly but not set: 16210$ac_seen" >&5 16211echo "$as_me: WARNING: datarootdir was used implicitly but not set: 16212$ac_seen" >&2;} 16213 ac_warn_datarootdir=yes 16214 fi 16215 fi 16216 ac_seen=`grep '${datarootdir}' $ac_item` 16217 if test -n "$ac_seen"; then 16218 { echo "$as_me:16218: WARNING: datarootdir was used explicitly but not set: 16219$ac_seen" >&5 16220echo "$as_me: WARNING: datarootdir was used explicitly but not set: 16221$ac_seen" >&2;} 16222 ac_warn_datarootdir=yes 16223 fi 16224 done 16225 fi 16226 16227if test "x$ac_warn_datarootdir" = xyes; then 16228 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 16229fi 16230 16231EOF 16232cat >>$CONFIG_STATUS <<EOF 16233 sed "$ac_vpsub 16234$extrasub 16235EOF 16236cat >>$CONFIG_STATUS <<\EOF 16237:t 16238/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16239s,@configure_input@,$configure_input,;t t 16240s,@srcdir@,$ac_srcdir,;t t 16241s,@top_srcdir@,$ac_top_srcdir,;t t 16242s,@INSTALL@,$ac_INSTALL,;t t 16243" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 16244 rm -f $tmp/stdin 16245 if test x"$ac_file" != x-; then 16246 cp $tmp/out $ac_file 16247 16248 for ac_name in prefix exec_prefix datarootdir 16249 do 16250 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 16251 if test -n "$ac_seen"; then 16252 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 16253 if test -z "$ac_init"; then 16254 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 16255 { echo "$as_me:16255: WARNING: Variable $ac_name is used but was not set: 16256$ac_seen" >&5 16257echo "$as_me: WARNING: Variable $ac_name is used but was not set: 16258$ac_seen" >&2;} 16259 fi 16260 fi 16261 done 16262 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 16263 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 16264 if test -s $tmp/out; then 16265 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 16266 { echo "$as_me:16266: WARNING: Some variables may not be substituted: 16267$ac_seen" >&5 16268echo "$as_me: WARNING: Some variables may not be substituted: 16269$ac_seen" >&2;} 16270 fi 16271 else 16272 cat $tmp/out 16273 fi 16274 rm -f $tmp/out 16275 16276done 16277EOF 16278cat >>$CONFIG_STATUS <<\EOF 16279 16280# 16281# CONFIG_HEADER section. 16282# 16283 16284# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 16285# NAME is the cpp macro being defined and VALUE is the value it is being given. 16286# 16287# ac_d sets the value in "#define NAME VALUE" lines. 16288ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 16289ac_dB='[ ].*$,\1#\2' 16290ac_dC=' ' 16291ac_dD=',;t' 16292# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 16293ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 16294ac_iB='\([ ]\),\1#\2define\3' 16295ac_iC=' ' 16296ac_iD='\4,;t' 16297# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 16298ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 16299ac_uB='$,\1#\2define\3' 16300ac_uC=' ' 16301ac_uD=',;t' 16302 16303for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 16304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 16305 case $ac_file in 16306 - | *:- | *:-:* ) # input from stdin 16307 cat >$tmp/stdin 16308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16312 * ) ac_file_in=$ac_file.in ;; 16313 esac 16314 16315 test x"$ac_file" != x- && { echo "$as_me:16315: creating $ac_file" >&5 16316echo "$as_me: creating $ac_file" >&6;} 16317 16318 # First look for the input files in the build tree, otherwise in the 16319 # src tree. 16320 ac_file_inputs=`IFS=: 16321 for f in $ac_file_in; do 16322 case $f in 16323 -) echo $tmp/stdin ;; 16324 [\\/$]*) 16325 # Absolute (can't be DOS-style, as IFS=:) 16326 test -f "$f" || { { echo "$as_me:16326: error: cannot find input file: $f" >&5 16327echo "$as_me: error: cannot find input file: $f" >&2;} 16328 { (exit 1); exit 1; }; } 16329 echo $f;; 16330 *) # Relative 16331 if test -f "$f"; then 16332 # Build tree 16333 echo $f 16334 elif test -f "$srcdir/$f"; then 16335 # Source tree 16336 echo $srcdir/$f 16337 else 16338 # /dev/null tree 16339 { { echo "$as_me:16339: error: cannot find input file: $f" >&5 16340echo "$as_me: error: cannot find input file: $f" >&2;} 16341 { (exit 1); exit 1; }; } 16342 fi;; 16343 esac 16344 done` || { (exit 1); exit 1; } 16345 # Remove the trailing spaces. 16346 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 16347 16348EOF 16349 16350# Transform confdefs.h into a list of #define's. We won't use it as a sed 16351# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 16352# be either 'cat' or 'sort'. 16353cat confdefs.h | uniq >conftest.vals 16354 16355# Break up conftest.vals because some shells have a limit on 16356# the size of here documents, and old seds have small limits too. 16357 16358rm -f conftest.tail 16359echo ' rm -f conftest.frag' >> $CONFIG_STATUS 16360while grep . conftest.vals >/dev/null 16361do 16362 # Write chunks of a limited-size here document to conftest.frag. 16363 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 16364 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 16365 echo 'CEOF' >> $CONFIG_STATUS 16366 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 16367 rm -f conftest.vals 16368 mv conftest.tail conftest.vals 16369done 16370rm -f conftest.vals 16371 16372# Run sed to substitute the contents of conftest.frag into $tmp/in at the 16373# marker @DEFS@. 16374echo ' cat >> conftest.edit <<CEOF 16375/@DEFS@/r conftest.frag 16376/@DEFS@/d 16377CEOF 16378sed -f conftest.edit $tmp/in > $tmp/out 16379rm -f $tmp/in 16380mv $tmp/out $tmp/in 16381rm -f conftest.edit conftest.frag 16382' >> $CONFIG_STATUS 16383 16384cat >>$CONFIG_STATUS <<\EOF 16385 # Let's still pretend it is `configure' which instantiates (i.e., don't 16386 # use $as_me), people would be surprised to read: 16387 # /* config.h. Generated automatically by config.status. */ 16388 if test x"$ac_file" = x-; then 16389 echo "/* Generated automatically by configure. */" >$tmp/config.h 16390 else 16391 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 16392 fi 16393 cat $tmp/in >>$tmp/config.h 16394 rm -f $tmp/in 16395 if test x"$ac_file" != x-; then 16396 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 16397 { echo "$as_me:16397: $ac_file is unchanged" >&5 16398echo "$as_me: $ac_file is unchanged" >&6;} 16399 else 16400 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16401 X"$ac_file" : 'X\(//\)[^/]' \| \ 16402 X"$ac_file" : 'X\(//\)$' \| \ 16403 X"$ac_file" : 'X\(/\)' \| \ 16404 . : '\(.\)' 2>/dev/null || 16405echo X"$ac_file" | 16406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 16407 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 16408 /^X\(\/\/\)$/{ s//\1/; q; } 16409 /^X\(\/\).*/{ s//\1/; q; } 16410 s/.*/./; q'` 16411 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 16412 { case "$ac_dir" in 16413 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 16414 *) as_incr_dir=.;; 16415esac 16416as_dummy="$ac_dir" 16417for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 16418 case $as_mkdir_dir in 16419 # Skip DOS drivespec 16420 ?:) as_incr_dir=$as_mkdir_dir ;; 16421 *) 16422 as_incr_dir=$as_incr_dir/$as_mkdir_dir 16423 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 16424 ;; 16425 esac 16426done; } 16427 16428 fi 16429 rm -f $ac_file 16430 mv $tmp/config.h $ac_file 16431 fi 16432 else 16433 cat $tmp/config.h 16434 rm -f $tmp/config.h 16435 fi 16436done 16437EOF 16438 16439cat >>$CONFIG_STATUS <<\EOF 16440 16441{ (exit 0); exit 0; } 16442EOF 16443chmod +x $CONFIG_STATUS 16444ac_clean_files=$ac_clean_files_save 16445 16446# configure is writing to config.log, and then calls config.status. 16447# config.status does its own redirection, appending to config.log. 16448# Unfortunately, on DOS this fails, as config.log is still kept open 16449# by configure, so config.status won't be able to write to it; its 16450# output is simply discarded. So we exec the FD to /dev/null, 16451# effectively closing config.log, so it can be properly (re)opened and 16452# appended to by config.status. When coming back to configure, we 16453# need to make the FD available again. 16454if test "$no_create" != yes; then 16455 ac_cs_success=: 16456 exec 5>/dev/null 16457 $SHELL $CONFIG_STATUS || ac_cs_success=false 16458 exec 5>>config.log 16459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16460 # would make configure fail if this is the last instruction. 16461 $ac_cs_success || { (exit 1); exit 1; } 16462fi 16463 16464test -z "$cf_make_docs" && cf_make_docs=0 16465 16466cf_output=makefile 16467test -f "$cf_output" || cf_output=Makefile 16468 16469if test "$cf_make_docs" = 0 16470then 16471cat >>$cf_output <<CF_EOF 16472################################################################################ 16473## generated by CF_MAKE_DOCS 16474.SUFFIXES : .html .1 .man .ps .pdf .txt 16475 16476${NROFF_NOTE}.1.txt : 16477${NROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@ 16478 16479${GROFF_NOTE}.ps.pdf : 16480${GROFF_NOTE} ps2pdf \$*.ps 16481${GROFF_NOTE} 16482${GROFF_NOTE}.1.ps : 16483${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@ 16484${GROFF_NOTE} 16485${GROFF_NOTE}.1.txt : 16486${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@ 16487 16488${MAN2HTML_NOTE}.1.html : 16489${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@ 16490 16491CF_EOF 16492 cf_make_docs=1 16493fi 16494 16495for cf_name in add 16496do 16497cat >>$cf_output <<CF_EOF 16498################################################################################ 16499${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 16500${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html 16501${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf 16502${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps 16503${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 16504 16505clean \\ 16506docs-clean :: 16507${NROFF_NOTE} rm -f $cf_name.txt 16508${MAN2HTML_NOTE} rm -f $cf_name.html 16509${GROFF_NOTE} rm -f $cf_name.pdf 16510${GROFF_NOTE} rm -f $cf_name.ps 16511${GROFF_NOTE} rm -f $cf_name.txt 16512 16513${NROFF_NOTE}$cf_name.txt : $cf_name.1 16514${MAN2HTML_NOTE}$cf_name.html : $cf_name.1 16515${GROFF_NOTE}$cf_name.pdf : $cf_name.ps 16516${GROFF_NOTE}$cf_name.ps : $cf_name.1 16517${GROFF_NOTE}$cf_name.txt : $cf_name.1 16518CF_EOF 16519done 16520 16521