1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20101002. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="dialog.h" 108# Factoring default headers for most tests. 109ac_includes_default="\ 110#include <stdio.h> 111#if HAVE_SYS_TYPES_H 112# include <sys/types.h> 113#endif 114#if HAVE_SYS_STAT_H 115# include <sys/stat.h> 116#endif 117#if STDC_HEADERS 118# include <stdlib.h> 119# include <stddef.h> 120#else 121# if HAVE_STDLIB_H 122# include <stdlib.h> 123# endif 124#endif 125#if HAVE_STRING_H 126# if !STDC_HEADERS && HAVE_MEMORY_H 127# include <memory.h> 128# endif 129# include <string.h> 130#endif 131#if HAVE_STRINGS_H 132# include <strings.h> 133#endif 134#if HAVE_INTTYPES_H 135# include <inttypes.h> 136#else 137# if HAVE_STDINT_H 138# include <stdint.h> 139# endif 140#endif 141#if HAVE_UNISTD_H 142# include <unistd.h> 143#endif" 144 145# Initialize some variables set by options. 146ac_init_help= 147ac_init_version=false 148# The variables have the same names as the options, with 149# dashes changed to underlines. 150cache_file=/dev/null 151exec_prefix=NONE 152no_create= 153no_recursion= 154prefix=NONE 155program_prefix=NONE 156program_suffix=NONE 157program_transform_name=s,x,x, 158silent= 159site= 160srcdir= 161verbose= 162x_includes=NONE 163x_libraries=NONE 164 165# Installation directory options. 166# These are left unexpanded so users can "make install exec_prefix=/foo" 167# and all the variables that are supposed to be based on exec_prefix 168# by default will actually change. 169# Use braces instead of parens because sh, perl, etc. also accept them. 170bindir='${exec_prefix}/bin' 171sbindir='${exec_prefix}/sbin' 172libexecdir='${exec_prefix}/libexec' 173datadir='${prefix}/share' 174sysconfdir='${prefix}/etc' 175sharedstatedir='${prefix}/com' 176localstatedir='${prefix}/var' 177libdir='${exec_prefix}/lib' 178includedir='${prefix}/include' 179oldincludedir='/usr/include' 180infodir='${prefix}/info' 181mandir='${prefix}/man' 182 183# Identity of this package. 184PACKAGE_NAME= 185PACKAGE_TARNAME= 186PACKAGE_VERSION= 187PACKAGE_STRING= 188PACKAGE_BUGREPORT= 189 190ac_prev= 191for ac_option 192do 193 # If the previous option needs an argument, assign it. 194 if test -n "$ac_prev"; then 195 eval "$ac_prev=\$ac_option" 196 ac_prev= 197 continue 198 fi 199 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 201 202 # Accept the important Cygnus configure options, so we can diagnose typos. 203 204 case $ac_option in 205 206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 207 ac_prev=bindir ;; 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 209 bindir=$ac_optarg ;; 210 211 -build | --build | --buil | --bui | --bu) 212 ac_prev=build_alias ;; 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 214 build_alias=$ac_optarg ;; 215 216 -cache-file | --cache-file | --cache-fil | --cache-fi \ 217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 218 ac_prev=cache_file ;; 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 221 cache_file=$ac_optarg ;; 222 223 --config-cache | -C) 224 cache_file=config.cache ;; 225 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 227 ac_prev=datadir ;; 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 229 | --da=*) 230 datadir=$ac_optarg ;; 231 232 -disable-* | --disable-*) 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 234 # Reject names that are not valid shell variable names. 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 237 { (exit 1); exit 1; }; } 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 239 eval "enable_$ac_feature=no" ;; 240 241 -enable-* | --enable-*) 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 243 # Reject names that are not valid shell variable names. 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 246 { (exit 1); exit 1; }; } 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 248 case $ac_option in 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 250 *) ac_optarg=yes ;; 251 esac 252 eval "enable_$ac_feature='$ac_optarg'" ;; 253 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 256 | --exec | --exe | --ex) 257 ac_prev=exec_prefix ;; 258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 260 | --exec=* | --exe=* | --ex=*) 261 exec_prefix=$ac_optarg ;; 262 263 -gas | --gas | --ga | --g) 264 # Obsolete; use --with-gas. 265 with_gas=yes ;; 266 267 -help | --help | --hel | --he | -h) 268 ac_init_help=long ;; 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 270 ac_init_help=recursive ;; 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 272 ac_init_help=short ;; 273 274 -host | --host | --hos | --ho) 275 ac_prev=host_alias ;; 276 -host=* | --host=* | --hos=* | --ho=*) 277 host_alias=$ac_optarg ;; 278 279 -includedir | --includedir | --includedi | --included | --include \ 280 | --includ | --inclu | --incl | --inc) 281 ac_prev=includedir ;; 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 283 | --includ=* | --inclu=* | --incl=* | --inc=*) 284 includedir=$ac_optarg ;; 285 286 -infodir | --infodir | --infodi | --infod | --info | --inf) 287 ac_prev=infodir ;; 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 289 infodir=$ac_optarg ;; 290 291 -libdir | --libdir | --libdi | --libd) 292 ac_prev=libdir ;; 293 -libdir=* | --libdir=* | --libdi=* | --libd=*) 294 libdir=$ac_optarg ;; 295 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 297 | --libexe | --libex | --libe) 298 ac_prev=libexecdir ;; 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 300 | --libexe=* | --libex=* | --libe=*) 301 libexecdir=$ac_optarg ;; 302 303 -localstatedir | --localstatedir | --localstatedi | --localstated \ 304 | --localstate | --localstat | --localsta | --localst \ 305 | --locals | --local | --loca | --loc | --lo) 306 ac_prev=localstatedir ;; 307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 310 localstatedir=$ac_optarg ;; 311 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 313 ac_prev=mandir ;; 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 315 mandir=$ac_optarg ;; 316 317 -nfp | --nfp | --nf) 318 # Obsolete; use --without-fp. 319 with_fp=no ;; 320 321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 322 | --no-cr | --no-c) 323 no_create=yes ;; 324 325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 327 no_recursion=yes ;; 328 329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 331 | --oldin | --oldi | --old | --ol | --o) 332 ac_prev=oldincludedir ;; 333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 336 oldincludedir=$ac_optarg ;; 337 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 339 ac_prev=prefix ;; 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 341 prefix=$ac_optarg ;; 342 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 344 | --program-pre | --program-pr | --program-p) 345 ac_prev=program_prefix ;; 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 348 program_prefix=$ac_optarg ;; 349 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 351 | --program-suf | --program-su | --program-s) 352 ac_prev=program_suffix ;; 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 355 program_suffix=$ac_optarg ;; 356 357 -program-transform-name | --program-transform-name \ 358 | --program-transform-nam | --program-transform-na \ 359 | --program-transform-n | --program-transform- \ 360 | --program-transform | --program-transfor \ 361 | --program-transfo | --program-transf \ 362 | --program-trans | --program-tran \ 363 | --progr-tra | --program-tr | --program-t) 364 ac_prev=program_transform_name ;; 365 -program-transform-name=* | --program-transform-name=* \ 366 | --program-transform-nam=* | --program-transform-na=* \ 367 | --program-transform-n=* | --program-transform-=* \ 368 | --program-transform=* | --program-transfor=* \ 369 | --program-transfo=* | --program-transf=* \ 370 | --program-trans=* | --program-tran=* \ 371 | --progr-tra=* | --program-tr=* | --program-t=*) 372 program_transform_name=$ac_optarg ;; 373 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 375 | -silent | --silent | --silen | --sile | --sil) 376 silent=yes ;; 377 378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 379 ac_prev=sbindir ;; 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 381 | --sbi=* | --sb=*) 382 sbindir=$ac_optarg ;; 383 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 386 | --sharedst | --shareds | --shared | --share | --shar \ 387 | --sha | --sh) 388 ac_prev=sharedstatedir ;; 389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 392 | --sha=* | --sh=*) 393 sharedstatedir=$ac_optarg ;; 394 395 -site | --site | --sit) 396 ac_prev=site ;; 397 -site=* | --site=* | --sit=*) 398 site=$ac_optarg ;; 399 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 401 ac_prev=srcdir ;; 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 403 srcdir=$ac_optarg ;; 404 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 406 | --syscon | --sysco | --sysc | --sys | --sy) 407 ac_prev=sysconfdir ;; 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 410 sysconfdir=$ac_optarg ;; 411 412 -target | --target | --targe | --targ | --tar | --ta | --t) 413 ac_prev=target_alias ;; 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 415 target_alias=$ac_optarg ;; 416 417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 418 verbose=yes ;; 419 420 -version | --version | --versio | --versi | --vers | -V) 421 ac_init_version=: ;; 422 423 -with-* | --with-*) 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 425 # Reject names that are not valid shell variable names. 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 427 { echo "$as_me: error: invalid package name: $ac_package" >&2 428 { (exit 1); exit 1; }; } 429 ac_package=`echo $ac_package| sed 's/-/_/g'` 430 case $ac_option in 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 432 *) ac_optarg=yes ;; 433 esac 434 eval "with_$ac_package='$ac_optarg'" ;; 435 436 -without-* | --without-*) 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 438 # Reject names that are not valid shell variable names. 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 440 { echo "$as_me: error: invalid package name: $ac_package" >&2 441 { (exit 1); exit 1; }; } 442 ac_package=`echo $ac_package | sed 's/-/_/g'` 443 eval "with_$ac_package=no" ;; 444 445 --x) 446 # Obsolete; use --with-x. 447 with_x=yes ;; 448 449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 450 | --x-incl | --x-inc | --x-in | --x-i) 451 ac_prev=x_includes ;; 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 454 x_includes=$ac_optarg ;; 455 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 458 ac_prev=x_libraries ;; 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 461 x_libraries=$ac_optarg ;; 462 463 -*) { echo "$as_me: error: unrecognized option: $ac_option 464Try \`$0 --help' for more information." >&2 465 { (exit 1); exit 1; }; } 466 ;; 467 468 *=*) 469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 470 # Reject names that are not valid shell variable names. 471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 473 { (exit 1); exit 1; }; } 474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 475 eval "$ac_envvar='$ac_optarg'" 476 export $ac_envvar ;; 477 478 *) 479 # FIXME: should be removed in autoconf 3.0. 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 484 ;; 485 486 esac 487done 488 489if test -n "$ac_prev"; then 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 491 { echo "$as_me: error: missing argument to $ac_option" >&2 492 { (exit 1); exit 1; }; } 493fi 494 495# Be sure to have absolute paths. 496for ac_var in exec_prefix prefix 497do 498 eval ac_val=$`echo $ac_var` 499 case $ac_val in 500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 502 { (exit 1); exit 1; }; };; 503 esac 504done 505 506# Be sure to have absolute paths. 507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 508 localstatedir libdir includedir oldincludedir infodir mandir 509do 510 eval ac_val=$`echo $ac_var` 511 case $ac_val in 512 [\\/$]* | ?:[\\/]* ) ;; 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 514 { (exit 1); exit 1; }; };; 515 esac 516done 517 518# There might be people who depend on the old broken behavior: `$host' 519# used to hold the argument of --host etc. 520build=$build_alias 521host=$host_alias 522target=$target_alias 523 524# FIXME: should be removed in autoconf 3.0. 525if test "x$host_alias" != x; then 526 if test "x$build_alias" = x; then 527 cross_compiling=maybe 528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 529 If a cross compiler is detected then cross compile mode will be used." >&2 530 elif test "x$build_alias" != "x$host_alias"; then 531 cross_compiling=yes 532 fi 533fi 534 535ac_tool_prefix= 536test -n "$host_alias" && ac_tool_prefix=$host_alias- 537 538test "$silent" = yes && exec 6>/dev/null 539 540# Find the source files, if location was not specified. 541if test -z "$srcdir"; then 542 ac_srcdir_defaulted=yes 543 # Try the directory containing this script, then its parent. 544 ac_prog=$0 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 547 srcdir=$ac_confdir 548 if test ! -r $srcdir/$ac_unique_file; then 549 srcdir=.. 550 fi 551else 552 ac_srcdir_defaulted=no 553fi 554if test ! -r $srcdir/$ac_unique_file; then 555 if test "$ac_srcdir_defaulted" = yes; then 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 557 { (exit 1); exit 1; }; } 558 else 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 560 { (exit 1); exit 1; }; } 561 fi 562fi 563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 564ac_env_build_alias_set=${build_alias+set} 565ac_env_build_alias_value=$build_alias 566ac_cv_env_build_alias_set=${build_alias+set} 567ac_cv_env_build_alias_value=$build_alias 568ac_env_host_alias_set=${host_alias+set} 569ac_env_host_alias_value=$host_alias 570ac_cv_env_host_alias_set=${host_alias+set} 571ac_cv_env_host_alias_value=$host_alias 572ac_env_target_alias_set=${target_alias+set} 573ac_env_target_alias_value=$target_alias 574ac_cv_env_target_alias_set=${target_alias+set} 575ac_cv_env_target_alias_value=$target_alias 576ac_env_CC_set=${CC+set} 577ac_env_CC_value=$CC 578ac_cv_env_CC_set=${CC+set} 579ac_cv_env_CC_value=$CC 580ac_env_CFLAGS_set=${CFLAGS+set} 581ac_env_CFLAGS_value=$CFLAGS 582ac_cv_env_CFLAGS_set=${CFLAGS+set} 583ac_cv_env_CFLAGS_value=$CFLAGS 584ac_env_LDFLAGS_set=${LDFLAGS+set} 585ac_env_LDFLAGS_value=$LDFLAGS 586ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 587ac_cv_env_LDFLAGS_value=$LDFLAGS 588ac_env_CPPFLAGS_set=${CPPFLAGS+set} 589ac_env_CPPFLAGS_value=$CPPFLAGS 590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 591ac_cv_env_CPPFLAGS_value=$CPPFLAGS 592ac_env_CPP_set=${CPP+set} 593ac_env_CPP_value=$CPP 594ac_cv_env_CPP_set=${CPP+set} 595ac_cv_env_CPP_value=$CPP 596 597# 598# Report the --help message. 599# 600if test "$ac_init_help" = "long"; then 601 # Omit some internal or obsolete options to make the list less imposing. 602 # This message is too long to be a string in the A/UX 3.1 sh. 603 cat <<EOF 604\`configure' configures this package to adapt to many kinds of systems. 605 606Usage: $0 [OPTION]... [VAR=VALUE]... 607 608To assign environment variables (e.g., CC, CFLAGS...), specify them as 609VAR=VALUE. See below for descriptions of some of the useful variables. 610 611Defaults for the options are specified in brackets. 612 613Configuration: 614 -h, --help display this help and exit 615 --help=short display options specific to this package 616 --help=recursive display the short help of all the included packages 617 -V, --version display version information and exit 618 -q, --quiet, --silent do not print \`checking...' messages 619 --cache-file=FILE cache test results in FILE [disabled] 620 -C, --config-cache alias for \`--cache-file=config.cache' 621 -n, --no-create do not create output files 622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 623 624EOF 625 626 cat <<EOF 627Installation directories: 628 --prefix=PREFIX install architecture-independent files in PREFIX 629 [$ac_default_prefix] 630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 631 [PREFIX] 632 633By default, \`make install' will install all the files in 634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 635an installation prefix other than \`$ac_default_prefix' using \`--prefix', 636for instance \`--prefix=\$HOME'. 637 638For better control, use the options below. 639 640Fine tuning of the installation directories: 641 --bindir=DIR user executables [EPREFIX/bin] 642 --sbindir=DIR system admin executables [EPREFIX/sbin] 643 --libexecdir=DIR program executables [EPREFIX/libexec] 644 --datadir=DIR read-only architecture-independent data [PREFIX/share] 645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 648 --libdir=DIR object code libraries [EPREFIX/lib] 649 --includedir=DIR C header files [PREFIX/include] 650 --oldincludedir=DIR C header files for non-gcc [/usr/include] 651 --infodir=DIR info documentation [PREFIX/info] 652 --mandir=DIR man documentation [PREFIX/man] 653EOF 654 655 cat <<\EOF 656 657Program names: 658 --program-prefix=PREFIX prepend PREFIX to installed program names 659 --program-suffix=SUFFIX append SUFFIX to installed program names 660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 661 662System types: 663 --build=BUILD configure for building on BUILD [guessed] 664 --host=HOST build programs to run on HOST [BUILD] 665EOF 666fi 667 668if test -n "$ac_init_help"; then 669 670 cat <<\EOF 671 672Optional Features: 673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 675 676Optional Packages: 677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 679 680 --disable-echo display "compiling" commands 681 --disable-largefile omit support for large files 682 --with-warnings test: turn on gcc warnings 683 --with-package=XXX rename dialog to XXX, library to libXXX.a, etc 684 --enable-header-subdir install dlg_XXX headers to subdirectory 685 --with-libiconv-prefix=DIR 686 search for libiconv in DIR/include and DIR/lib 687 --enable-nls use Native Language Support 688 --with-included-gettext use the GNU gettext library included here 689 --with-textdomain=PKG NLS text-domain (default is package name) 690 --disable-included-msgs use included messages, for i18n support 691 --with-dmalloc test: use Gray Watson's dmalloc library 692 --with-dbmalloc test: use Conor Cahill's dbmalloc library 693 --with-purify test: use Purify 694 --with-valgrind test: use valgrind 695 --with-no-leaks test: free permanent memory, analyze leaks 696 --disable-trace do not support --trace option 697 --disable-libtool-version enable to use libtool's incompatible naming scheme 698 --with-libtool generate libraries with libtool 699 --with-libtool-opts=XXX specify additional libtool options 700 --with-curses-dir=DIR directory in which (n)curses is installed 701 --with-ncurses compile/link with ncurses library 702 --with-ncursesw compile/link with wide-char ncurses library 703 --disable-extras do not include extra dialogs 704 --disable-rc-file do not include config-file support 705 --disable-Xdialog do not include Xdialog-style dialogs 706 --disable-form do not include the form dialog 707 --disable-gauge do not include the gauge dialogs 708 --disable-tailbox do not include the tailbox dialog 709 --disable-mixedform do not include the mixedform dialog 710 --disable-mixedgauge do not include the mixedgauge dialog 711 --enable-widec enable wide-curses features 712 --disable-rpath-hack don't add rpath options for additional libraries 713 714Some influential environment variables: 715 CC C compiler command 716 CFLAGS C compiler flags 717 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 718 nonstandard directory <lib dir> 719 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 720 headers in a nonstandard directory <include dir> 721 CPP C preprocessor 722 723Use these variables to override the choices made by `configure' or to help 724it to find libraries and programs with nonstandard names/locations. 725 726EOF 727fi 728 729if test "$ac_init_help" = "recursive"; then 730 # If there are subdirs, report their specific --help. 731 ac_popdir=`pwd` 732 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 733 cd $ac_subdir 734 # A "../" for each directory in /$ac_subdir. 735 ac_dots=`echo $ac_subdir | 736 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 737 738 case $srcdir in 739 .) # No --srcdir option. We are building in place. 740 ac_sub_srcdir=$srcdir ;; 741 [\\/]* | ?:[\\/]* ) # Absolute path. 742 ac_sub_srcdir=$srcdir/$ac_subdir ;; 743 *) # Relative path. 744 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 745 esac 746 747 # Check for guested configure; otherwise get Cygnus style configure. 748 if test -f $ac_sub_srcdir/configure.gnu; then 749 echo 750 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 751 elif test -f $ac_sub_srcdir/configure; then 752 echo 753 $SHELL $ac_sub_srcdir/configure --help=recursive 754 elif test -f $ac_sub_srcdir/configure.ac || 755 test -f $ac_sub_srcdir/configure.in; then 756 echo 757 $ac_configure --help 758 else 759 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 760 fi 761 cd $ac_popdir 762 done 763fi 764 765test -n "$ac_init_help" && exit 0 766if $ac_init_version; then 767 cat <<\EOF 768 769Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 770Free Software Foundation, Inc. 771This configure script is free software; the Free Software Foundation 772gives unlimited permission to copy, distribute and modify it. 773EOF 774 exit 0 775fi 776exec 5>config.log 777cat >&5 <<EOF 778This file contains any messages produced by compilers while 779running configure, to aid debugging if configure makes a mistake. 780 781It was created by $as_me, which was 782generated by GNU Autoconf 2.52.20101002. Invocation command line was 783 784 $ $0 $@ 785 786EOF 787{ 788cat <<_ASUNAME 789## ---------- ## 790## Platform. ## 791## ---------- ## 792 793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 794uname -m = `(uname -m) 2>/dev/null || echo unknown` 795uname -r = `(uname -r) 2>/dev/null || echo unknown` 796uname -s = `(uname -s) 2>/dev/null || echo unknown` 797uname -v = `(uname -v) 2>/dev/null || echo unknown` 798 799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 801 802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 805hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 809 810PATH = $PATH 811 812_ASUNAME 813} >&5 814 815cat >&5 <<EOF 816## ------------ ## 817## Core tests. ## 818## ------------ ## 819 820EOF 821 822# Keep a trace of the command line. 823# Strip out --no-create and --no-recursion so they do not pile up. 824# Also quote any args containing shell meta-characters. 825ac_configure_args= 826ac_sep= 827for ac_arg 828do 829 case $ac_arg in 830 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 831 | --no-cr | --no-c) ;; 832 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 833 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 834 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 835 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 836 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 837 ac_sep=" " ;; 838 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 839 ac_sep=" " ;; 840 esac 841 # Get rid of the leading space. 842done 843 844# When interrupted or exit'd, cleanup temporary files, and complete 845# config.log. We remove comments because anyway the quotes in there 846# would cause problems or look ugly. 847trap 'exit_status=$? 848 # Save into config.log some information that might help in debugging. 849 echo >&5 850 echo "## ----------------- ##" >&5 851 echo "## Cache variables. ##" >&5 852 echo "## ----------------- ##" >&5 853 echo >&5 854 # The following way of writing the cache mishandles newlines in values, 855{ 856 (set) 2>&1 | 857 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 858 *ac_space=\ *) 859 sed -n \ 860 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 862 ;; 863 *) 864 sed -n \ 865 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 866 ;; 867 esac; 868} >&5 869 sed "/^$/d" confdefs.h >conftest.log 870 if test -s conftest.log; then 871 echo >&5 872 echo "## ------------ ##" >&5 873 echo "## confdefs.h. ##" >&5 874 echo "## ------------ ##" >&5 875 echo >&5 876 cat conftest.log >&5 877 fi 878 (echo; echo) >&5 879 test "$ac_signal" != 0 && 880 echo "$as_me: caught signal $ac_signal" >&5 881 echo "$as_me: exit $exit_status" >&5 882 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 883 exit $exit_status 884 ' 0 885for ac_signal in 1 2 13 15; do 886 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 887done 888ac_signal=0 889 890# confdefs.h avoids OS command line length limits that DEFS can exceed. 891rm -rf conftest* confdefs.h 892# AIX cpp loses on an empty file, so make sure it contains at least a newline. 893echo >confdefs.h 894 895# Let the site file select an alternate cache file if it wants to. 896# Prefer explicitly selected file to automatically selected ones. 897if test -z "$CONFIG_SITE"; then 898 if test "x$prefix" != xNONE; then 899 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 900 else 901 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 902 fi 903fi 904for ac_site_file in $CONFIG_SITE; do 905 if test -r "$ac_site_file"; then 906 { echo "$as_me:906: loading site script $ac_site_file" >&5 907echo "$as_me: loading site script $ac_site_file" >&6;} 908 cat "$ac_site_file" >&5 909 . "$ac_site_file" 910 fi 911done 912 913if test -r "$cache_file"; then 914 # Some versions of bash will fail to source /dev/null (special 915 # files actually), so we avoid doing that. 916 if test -f "$cache_file"; then 917 { echo "$as_me:917: loading cache $cache_file" >&5 918echo "$as_me: loading cache $cache_file" >&6;} 919 case $cache_file in 920 [\\/]* | ?:[\\/]* ) . $cache_file;; 921 *) . ./$cache_file;; 922 esac 923 fi 924else 925 { echo "$as_me:925: creating cache $cache_file" >&5 926echo "$as_me: creating cache $cache_file" >&6;} 927 >$cache_file 928fi 929 930# Check that the precious variables saved in the cache have kept the same 931# value. 932ac_cache_corrupted=false 933for ac_var in `(set) 2>&1 | 934 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 935 eval ac_old_set=\$ac_cv_env_${ac_var}_set 936 eval ac_new_set=\$ac_env_${ac_var}_set 937 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 938 eval ac_new_val="\$ac_env_${ac_var}_value" 939 case $ac_old_set,$ac_new_set in 940 set,) 941 { echo "$as_me:941: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 942echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 943 ac_cache_corrupted=: ;; 944 ,set) 945 { echo "$as_me:945: error: \`$ac_var' was not set in the previous run" >&5 946echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 947 ac_cache_corrupted=: ;; 948 ,);; 949 *) 950 if test "x$ac_old_val" != "x$ac_new_val"; then 951 { echo "$as_me:951: error: \`$ac_var' has changed since the previous run:" >&5 952echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 953 { echo "$as_me:953: former value: $ac_old_val" >&5 954echo "$as_me: former value: $ac_old_val" >&2;} 955 { echo "$as_me:955: current value: $ac_new_val" >&5 956echo "$as_me: current value: $ac_new_val" >&2;} 957 ac_cache_corrupted=: 958 fi;; 959 esac 960 # Pass precious variables to config.status. It doesn't matter if 961 # we pass some twice (in addition to the command line arguments). 962 if test "$ac_new_set" = set; then 963 case $ac_new_val in 964 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 965 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 966 ac_configure_args="$ac_configure_args '$ac_arg'" 967 ;; 968 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 969 ;; 970 esac 971 fi 972done 973if $ac_cache_corrupted; then 974 { echo "$as_me:974: error: changes in the environment can compromise the build" >&5 975echo "$as_me: error: changes in the environment can compromise the build" >&2;} 976 { { echo "$as_me:976: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 977echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 978 { (exit 1); exit 1; }; } 979fi 980 981ac_ext=c 982ac_cpp='$CPP $CPPFLAGS' 983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 985ac_compiler_gnu=$ac_cv_c_compiler_gnu 986ac_main_return=return 987 988case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 989 *c*,-n*) ECHO_N= ECHO_C=' 990' ECHO_T=' ' ;; 991 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 992 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 993esac 994echo "#! $SHELL" >conftest.sh 995echo "exit 0" >>conftest.sh 996chmod +x conftest.sh 997if { (echo "$as_me:997: PATH=\".;.\"; conftest.sh") >&5 998 (PATH=".;."; conftest.sh) 2>&5 999 ac_status=$? 1000 echo "$as_me:1000: \$? = $ac_status" >&5 1001 (exit $ac_status); }; then 1002 ac_path_separator=';' 1003else 1004 ac_path_separator=: 1005fi 1006PATH_SEPARATOR="$ac_path_separator" 1007rm -f conftest.sh 1008 1009ac_config_headers="$ac_config_headers dlg_config.h:config.hin" 1010 1011test "$program_prefix" != NONE && 1012 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1013# Use a double $ so make ignores it. 1014test "$program_suffix" != NONE && 1015 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1016# Double any \ or $. echo might interpret backslashes. 1017# By default was `s,x,x', remove it if useless. 1018cat <<\_ACEOF >conftest.sed 1019s/[\\$]/&&/g;s/;s,x,x,$// 1020_ACEOF 1021program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1022rm conftest.sed 1023 1024DESTDIR= 1025 1026ac_ext=c 1027ac_cpp='$CPP $CPPFLAGS' 1028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1030ac_compiler_gnu=$ac_cv_c_compiler_gnu 1031ac_main_return=return 1032if test -n "$ac_tool_prefix"; then 1033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1034set dummy ${ac_tool_prefix}gcc; ac_word=$2 1035echo "$as_me:1035: checking for $ac_word" >&5 1036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1037if test "${ac_cv_prog_CC+set}" = set; then 1038 echo $ECHO_N "(cached) $ECHO_C" >&6 1039else 1040 if test -n "$CC"; then 1041 ac_cv_prog_CC="$CC" # Let the user override the test. 1042else 1043 ac_save_IFS=$IFS; IFS=$ac_path_separator 1044ac_dummy="$PATH" 1045for ac_dir in $ac_dummy; do 1046 IFS=$ac_save_IFS 1047 test -z "$ac_dir" && ac_dir=. 1048 $as_executable_p "$ac_dir/$ac_word" || continue 1049ac_cv_prog_CC="${ac_tool_prefix}gcc" 1050echo "$as_me:1050: found $ac_dir/$ac_word" >&5 1051break 1052done 1053 1054fi 1055fi 1056CC=$ac_cv_prog_CC 1057if test -n "$CC"; then 1058 echo "$as_me:1058: result: $CC" >&5 1059echo "${ECHO_T}$CC" >&6 1060else 1061 echo "$as_me:1061: result: no" >&5 1062echo "${ECHO_T}no" >&6 1063fi 1064 1065fi 1066if test -z "$ac_cv_prog_CC"; then 1067 ac_ct_CC=$CC 1068 # Extract the first word of "gcc", so it can be a program name with args. 1069set dummy gcc; ac_word=$2 1070echo "$as_me:1070: checking for $ac_word" >&5 1071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1073 echo $ECHO_N "(cached) $ECHO_C" >&6 1074else 1075 if test -n "$ac_ct_CC"; then 1076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1077else 1078 ac_save_IFS=$IFS; IFS=$ac_path_separator 1079ac_dummy="$PATH" 1080for ac_dir in $ac_dummy; do 1081 IFS=$ac_save_IFS 1082 test -z "$ac_dir" && ac_dir=. 1083 $as_executable_p "$ac_dir/$ac_word" || continue 1084ac_cv_prog_ac_ct_CC="gcc" 1085echo "$as_me:1085: found $ac_dir/$ac_word" >&5 1086break 1087done 1088 1089fi 1090fi 1091ac_ct_CC=$ac_cv_prog_ac_ct_CC 1092if test -n "$ac_ct_CC"; then 1093 echo "$as_me:1093: result: $ac_ct_CC" >&5 1094echo "${ECHO_T}$ac_ct_CC" >&6 1095else 1096 echo "$as_me:1096: result: no" >&5 1097echo "${ECHO_T}no" >&6 1098fi 1099 1100 CC=$ac_ct_CC 1101else 1102 CC="$ac_cv_prog_CC" 1103fi 1104 1105if test -z "$CC"; then 1106 if test -n "$ac_tool_prefix"; then 1107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1108set dummy ${ac_tool_prefix}cc; ac_word=$2 1109echo "$as_me:1109: checking for $ac_word" >&5 1110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1111if test "${ac_cv_prog_CC+set}" = set; then 1112 echo $ECHO_N "(cached) $ECHO_C" >&6 1113else 1114 if test -n "$CC"; then 1115 ac_cv_prog_CC="$CC" # Let the user override the test. 1116else 1117 ac_save_IFS=$IFS; IFS=$ac_path_separator 1118ac_dummy="$PATH" 1119for ac_dir in $ac_dummy; do 1120 IFS=$ac_save_IFS 1121 test -z "$ac_dir" && ac_dir=. 1122 $as_executable_p "$ac_dir/$ac_word" || continue 1123ac_cv_prog_CC="${ac_tool_prefix}cc" 1124echo "$as_me:1124: found $ac_dir/$ac_word" >&5 1125break 1126done 1127 1128fi 1129fi 1130CC=$ac_cv_prog_CC 1131if test -n "$CC"; then 1132 echo "$as_me:1132: result: $CC" >&5 1133echo "${ECHO_T}$CC" >&6 1134else 1135 echo "$as_me:1135: result: no" >&5 1136echo "${ECHO_T}no" >&6 1137fi 1138 1139fi 1140if test -z "$ac_cv_prog_CC"; then 1141 ac_ct_CC=$CC 1142 # Extract the first word of "cc", so it can be a program name with args. 1143set dummy cc; ac_word=$2 1144echo "$as_me:1144: checking for $ac_word" >&5 1145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1147 echo $ECHO_N "(cached) $ECHO_C" >&6 1148else 1149 if test -n "$ac_ct_CC"; then 1150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1151else 1152 ac_save_IFS=$IFS; IFS=$ac_path_separator 1153ac_dummy="$PATH" 1154for ac_dir in $ac_dummy; do 1155 IFS=$ac_save_IFS 1156 test -z "$ac_dir" && ac_dir=. 1157 $as_executable_p "$ac_dir/$ac_word" || continue 1158ac_cv_prog_ac_ct_CC="cc" 1159echo "$as_me:1159: found $ac_dir/$ac_word" >&5 1160break 1161done 1162 1163fi 1164fi 1165ac_ct_CC=$ac_cv_prog_ac_ct_CC 1166if test -n "$ac_ct_CC"; then 1167 echo "$as_me:1167: result: $ac_ct_CC" >&5 1168echo "${ECHO_T}$ac_ct_CC" >&6 1169else 1170 echo "$as_me:1170: result: no" >&5 1171echo "${ECHO_T}no" >&6 1172fi 1173 1174 CC=$ac_ct_CC 1175else 1176 CC="$ac_cv_prog_CC" 1177fi 1178 1179fi 1180if test -z "$CC"; then 1181 # Extract the first word of "cc", so it can be a program name with args. 1182set dummy cc; ac_word=$2 1183echo "$as_me:1183: checking for $ac_word" >&5 1184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1185if test "${ac_cv_prog_CC+set}" = set; then 1186 echo $ECHO_N "(cached) $ECHO_C" >&6 1187else 1188 if test -n "$CC"; then 1189 ac_cv_prog_CC="$CC" # Let the user override the test. 1190else 1191 ac_prog_rejected=no 1192 ac_save_IFS=$IFS; IFS=$ac_path_separator 1193ac_dummy="$PATH" 1194for ac_dir in $ac_dummy; do 1195 IFS=$ac_save_IFS 1196 test -z "$ac_dir" && ac_dir=. 1197 $as_executable_p "$ac_dir/$ac_word" || continue 1198if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1199 ac_prog_rejected=yes 1200 continue 1201fi 1202ac_cv_prog_CC="cc" 1203echo "$as_me:1203: found $ac_dir/$ac_word" >&5 1204break 1205done 1206 1207if test $ac_prog_rejected = yes; then 1208 # We found a bogon in the path, so make sure we never use it. 1209 set dummy $ac_cv_prog_CC 1210 shift 1211 if test $# != 0; then 1212 # We chose a different compiler from the bogus one. 1213 # However, it has the same basename, so the bogon will be chosen 1214 # first if we set CC to just the basename; use the full file name. 1215 shift 1216 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1217 shift 1218 ac_cv_prog_CC="$@" 1219 fi 1220fi 1221fi 1222fi 1223CC=$ac_cv_prog_CC 1224if test -n "$CC"; then 1225 echo "$as_me:1225: result: $CC" >&5 1226echo "${ECHO_T}$CC" >&6 1227else 1228 echo "$as_me:1228: result: no" >&5 1229echo "${ECHO_T}no" >&6 1230fi 1231 1232fi 1233if test -z "$CC"; then 1234 if test -n "$ac_tool_prefix"; then 1235 for ac_prog in cl 1236 do 1237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1239echo "$as_me:1239: checking for $ac_word" >&5 1240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1241if test "${ac_cv_prog_CC+set}" = set; then 1242 echo $ECHO_N "(cached) $ECHO_C" >&6 1243else 1244 if test -n "$CC"; then 1245 ac_cv_prog_CC="$CC" # Let the user override the test. 1246else 1247 ac_save_IFS=$IFS; IFS=$ac_path_separator 1248ac_dummy="$PATH" 1249for ac_dir in $ac_dummy; do 1250 IFS=$ac_save_IFS 1251 test -z "$ac_dir" && ac_dir=. 1252 $as_executable_p "$ac_dir/$ac_word" || continue 1253ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1254echo "$as_me:1254: found $ac_dir/$ac_word" >&5 1255break 1256done 1257 1258fi 1259fi 1260CC=$ac_cv_prog_CC 1261if test -n "$CC"; then 1262 echo "$as_me:1262: result: $CC" >&5 1263echo "${ECHO_T}$CC" >&6 1264else 1265 echo "$as_me:1265: result: no" >&5 1266echo "${ECHO_T}no" >&6 1267fi 1268 1269 test -n "$CC" && break 1270 done 1271fi 1272if test -z "$CC"; then 1273 ac_ct_CC=$CC 1274 for ac_prog in cl 1275do 1276 # Extract the first word of "$ac_prog", so it can be a program name with args. 1277set dummy $ac_prog; ac_word=$2 1278echo "$as_me:1278: checking for $ac_word" >&5 1279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1280if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1281 echo $ECHO_N "(cached) $ECHO_C" >&6 1282else 1283 if test -n "$ac_ct_CC"; then 1284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1285else 1286 ac_save_IFS=$IFS; IFS=$ac_path_separator 1287ac_dummy="$PATH" 1288for ac_dir in $ac_dummy; do 1289 IFS=$ac_save_IFS 1290 test -z "$ac_dir" && ac_dir=. 1291 $as_executable_p "$ac_dir/$ac_word" || continue 1292ac_cv_prog_ac_ct_CC="$ac_prog" 1293echo "$as_me:1293: found $ac_dir/$ac_word" >&5 1294break 1295done 1296 1297fi 1298fi 1299ac_ct_CC=$ac_cv_prog_ac_ct_CC 1300if test -n "$ac_ct_CC"; then 1301 echo "$as_me:1301: result: $ac_ct_CC" >&5 1302echo "${ECHO_T}$ac_ct_CC" >&6 1303else 1304 echo "$as_me:1304: result: no" >&5 1305echo "${ECHO_T}no" >&6 1306fi 1307 1308 test -n "$ac_ct_CC" && break 1309done 1310 1311 CC=$ac_ct_CC 1312fi 1313 1314fi 1315 1316test -z "$CC" && { { echo "$as_me:1316: error: no acceptable cc found in \$PATH" >&5 1317echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1318 { (exit 1); exit 1; }; } 1319 1320# Provide some information about the compiler. 1321echo "$as_me:1321:" \ 1322 "checking for C compiler version" >&5 1323ac_compiler=`set X $ac_compile; echo $2` 1324{ (eval echo "$as_me:1324: \"$ac_compiler --version </dev/null >&5\"") >&5 1325 (eval $ac_compiler --version </dev/null >&5) 2>&5 1326 ac_status=$? 1327 echo "$as_me:1327: \$? = $ac_status" >&5 1328 (exit $ac_status); } 1329{ (eval echo "$as_me:1329: \"$ac_compiler -v </dev/null >&5\"") >&5 1330 (eval $ac_compiler -v </dev/null >&5) 2>&5 1331 ac_status=$? 1332 echo "$as_me:1332: \$? = $ac_status" >&5 1333 (exit $ac_status); } 1334{ (eval echo "$as_me:1334: \"$ac_compiler -V </dev/null >&5\"") >&5 1335 (eval $ac_compiler -V </dev/null >&5) 2>&5 1336 ac_status=$? 1337 echo "$as_me:1337: \$? = $ac_status" >&5 1338 (exit $ac_status); } 1339 1340cat >conftest.$ac_ext <<_ACEOF 1341#line 1341 "configure" 1342#include "confdefs.h" 1343 1344int 1345main () 1346{ 1347 1348 ; 1349 return 0; 1350} 1351_ACEOF 1352ac_clean_files_save=$ac_clean_files 1353ac_clean_files="$ac_clean_files a.out a.exe" 1354# Try to create an executable without -o first, disregard a.out. 1355# It will help us diagnose broken compilers, and finding out an intuition 1356# of exeext. 1357echo "$as_me:1357: checking for C compiler default output" >&5 1358echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1359ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1360if { (eval echo "$as_me:1360: \"$ac_link_default\"") >&5 1361 (eval $ac_link_default) 2>&5 1362 ac_status=$? 1363 echo "$as_me:1363: \$? = $ac_status" >&5 1364 (exit $ac_status); }; then 1365 # Find the output, starting from the most likely. This scheme is 1366# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1367# resort. 1368for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1369 ls a.out conftest 2>/dev/null; 1370 ls a.* conftest.* 2>/dev/null`; do 1371 case $ac_file in 1372 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1373 a.out ) # We found the default executable, but exeext='' is most 1374 # certainly right. 1375 break;; 1376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1377 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1378 export ac_cv_exeext 1379 break;; 1380 * ) break;; 1381 esac 1382done 1383else 1384 echo "$as_me: failed program was:" >&5 1385cat conftest.$ac_ext >&5 1386{ { echo "$as_me:1386: error: C compiler cannot create executables" >&5 1387echo "$as_me: error: C compiler cannot create executables" >&2;} 1388 { (exit 77); exit 77; }; } 1389fi 1390 1391ac_exeext=$ac_cv_exeext 1392echo "$as_me:1392: result: $ac_file" >&5 1393echo "${ECHO_T}$ac_file" >&6 1394 1395# Check the compiler produces executables we can run. If not, either 1396# the compiler is broken, or we cross compile. 1397echo "$as_me:1397: checking whether the C compiler works" >&5 1398echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1399# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1400# If not cross compiling, check that we can run a simple program. 1401if test "$cross_compiling" != yes; then 1402 if { ac_try='./$ac_file' 1403 { (eval echo "$as_me:1403: \"$ac_try\"") >&5 1404 (eval $ac_try) 2>&5 1405 ac_status=$? 1406 echo "$as_me:1406: \$? = $ac_status" >&5 1407 (exit $ac_status); }; }; then 1408 cross_compiling=no 1409 else 1410 if test "$cross_compiling" = maybe; then 1411 cross_compiling=yes 1412 else 1413 { { echo "$as_me:1413: error: cannot run C compiled programs. 1414If you meant to cross compile, use \`--host'." >&5 1415echo "$as_me: error: cannot run C compiled programs. 1416If you meant to cross compile, use \`--host'." >&2;} 1417 { (exit 1); exit 1; }; } 1418 fi 1419 fi 1420fi 1421echo "$as_me:1421: result: yes" >&5 1422echo "${ECHO_T}yes" >&6 1423 1424rm -f a.out a.exe conftest$ac_cv_exeext 1425ac_clean_files=$ac_clean_files_save 1426# Check the compiler produces executables we can run. If not, either 1427# the compiler is broken, or we cross compile. 1428echo "$as_me:1428: checking whether we are cross compiling" >&5 1429echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1430echo "$as_me:1430: result: $cross_compiling" >&5 1431echo "${ECHO_T}$cross_compiling" >&6 1432 1433echo "$as_me:1433: checking for executable suffix" >&5 1434echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1435if { (eval echo "$as_me:1435: \"$ac_link\"") >&5 1436 (eval $ac_link) 2>&5 1437 ac_status=$? 1438 echo "$as_me:1438: \$? = $ac_status" >&5 1439 (exit $ac_status); }; then 1440 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1442# work properly (i.e., refer to `conftest.exe'), while it won't with 1443# `rm'. 1444for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1445 case $ac_file in 1446 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1448 export ac_cv_exeext 1449 break;; 1450 * ) break;; 1451 esac 1452done 1453else 1454 { { echo "$as_me:1454: error: cannot compute EXEEXT: cannot compile and link" >&5 1455echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1456 { (exit 1); exit 1; }; } 1457fi 1458 1459rm -f conftest$ac_cv_exeext 1460echo "$as_me:1460: result: $ac_cv_exeext" >&5 1461echo "${ECHO_T}$ac_cv_exeext" >&6 1462 1463rm -f conftest.$ac_ext 1464EXEEXT=$ac_cv_exeext 1465ac_exeext=$EXEEXT 1466echo "$as_me:1466: checking for object suffix" >&5 1467echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1468if test "${ac_cv_objext+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 cat >conftest.$ac_ext <<_ACEOF 1472#line 1472 "configure" 1473#include "confdefs.h" 1474 1475int 1476main () 1477{ 1478 1479 ; 1480 return 0; 1481} 1482_ACEOF 1483rm -f conftest.o conftest.obj 1484if { (eval echo "$as_me:1484: \"$ac_compile\"") >&5 1485 (eval $ac_compile) 2>&5 1486 ac_status=$? 1487 echo "$as_me:1487: \$? = $ac_status" >&5 1488 (exit $ac_status); }; then 1489 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1490 case $ac_file in 1491 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1493 break;; 1494 esac 1495done 1496else 1497 echo "$as_me: failed program was:" >&5 1498cat conftest.$ac_ext >&5 1499{ { echo "$as_me:1499: error: cannot compute OBJEXT: cannot compile" >&5 1500echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1501 { (exit 1); exit 1; }; } 1502fi 1503 1504rm -f conftest.$ac_cv_objext conftest.$ac_ext 1505fi 1506echo "$as_me:1506: result: $ac_cv_objext" >&5 1507echo "${ECHO_T}$ac_cv_objext" >&6 1508OBJEXT=$ac_cv_objext 1509ac_objext=$OBJEXT 1510echo "$as_me:1510: checking whether we are using the GNU C compiler" >&5 1511echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1512if test "${ac_cv_c_compiler_gnu+set}" = set; then 1513 echo $ECHO_N "(cached) $ECHO_C" >&6 1514else 1515 cat >conftest.$ac_ext <<_ACEOF 1516#line 1516 "configure" 1517#include "confdefs.h" 1518 1519int 1520main () 1521{ 1522#ifndef __GNUC__ 1523 choke me 1524#endif 1525 1526 ; 1527 return 0; 1528} 1529_ACEOF 1530rm -f conftest.$ac_objext 1531if { (eval echo "$as_me:1531: \"$ac_compile\"") >&5 1532 (eval $ac_compile) 2>&5 1533 ac_status=$? 1534 echo "$as_me:1534: \$? = $ac_status" >&5 1535 (exit $ac_status); } && 1536 { ac_try='test -s conftest.$ac_objext' 1537 { (eval echo "$as_me:1537: \"$ac_try\"") >&5 1538 (eval $ac_try) 2>&5 1539 ac_status=$? 1540 echo "$as_me:1540: \$? = $ac_status" >&5 1541 (exit $ac_status); }; }; then 1542 ac_compiler_gnu=yes 1543else 1544 echo "$as_me: failed program was:" >&5 1545cat conftest.$ac_ext >&5 1546ac_compiler_gnu=no 1547fi 1548rm -f conftest.$ac_objext conftest.$ac_ext 1549ac_cv_c_compiler_gnu=$ac_compiler_gnu 1550 1551fi 1552echo "$as_me:1552: result: $ac_cv_c_compiler_gnu" >&5 1553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1554GCC=`test $ac_compiler_gnu = yes && echo yes` 1555ac_test_CFLAGS=${CFLAGS+set} 1556ac_save_CFLAGS=$CFLAGS 1557CFLAGS="-g" 1558echo "$as_me:1558: checking whether $CC accepts -g" >&5 1559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1560if test "${ac_cv_prog_cc_g+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562else 1563 cat >conftest.$ac_ext <<_ACEOF 1564#line 1564 "configure" 1565#include "confdefs.h" 1566 1567int 1568main () 1569{ 1570 1571 ; 1572 return 0; 1573} 1574_ACEOF 1575rm -f conftest.$ac_objext 1576if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5 1577 (eval $ac_compile) 2>&5 1578 ac_status=$? 1579 echo "$as_me:1579: \$? = $ac_status" >&5 1580 (exit $ac_status); } && 1581 { ac_try='test -s conftest.$ac_objext' 1582 { (eval echo "$as_me:1582: \"$ac_try\"") >&5 1583 (eval $ac_try) 2>&5 1584 ac_status=$? 1585 echo "$as_me:1585: \$? = $ac_status" >&5 1586 (exit $ac_status); }; }; then 1587 ac_cv_prog_cc_g=yes 1588else 1589 echo "$as_me: failed program was:" >&5 1590cat conftest.$ac_ext >&5 1591ac_cv_prog_cc_g=no 1592fi 1593rm -f conftest.$ac_objext conftest.$ac_ext 1594fi 1595echo "$as_me:1595: result: $ac_cv_prog_cc_g" >&5 1596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1597if test "$ac_test_CFLAGS" = set; then 1598 CFLAGS=$ac_save_CFLAGS 1599elif test $ac_cv_prog_cc_g = yes; then 1600 if test "$GCC" = yes; then 1601 CFLAGS="-g -O2" 1602 else 1603 CFLAGS="-g" 1604 fi 1605else 1606 if test "$GCC" = yes; then 1607 CFLAGS="-O2" 1608 else 1609 CFLAGS= 1610 fi 1611fi 1612# Some people use a C++ compiler to compile C. Since we use `exit', 1613# in C++ we need to declare it. In case someone uses the same compiler 1614# for both compiling C and C++ we need to have the C++ compiler decide 1615# the declaration of exit, since it's the most demanding environment. 1616cat >conftest.$ac_ext <<_ACEOF 1617#ifndef __cplusplus 1618 choke me 1619#endif 1620_ACEOF 1621rm -f conftest.$ac_objext 1622if { (eval echo "$as_me:1622: \"$ac_compile\"") >&5 1623 (eval $ac_compile) 2>&5 1624 ac_status=$? 1625 echo "$as_me:1625: \$? = $ac_status" >&5 1626 (exit $ac_status); } && 1627 { ac_try='test -s conftest.$ac_objext' 1628 { (eval echo "$as_me:1628: \"$ac_try\"") >&5 1629 (eval $ac_try) 2>&5 1630 ac_status=$? 1631 echo "$as_me:1631: \$? = $ac_status" >&5 1632 (exit $ac_status); }; }; then 1633 for ac_declaration in \ 1634 ''\ 1635 '#include <stdlib.h>' \ 1636 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1637 'extern "C" void std::exit (int); using std::exit;' \ 1638 'extern "C" void exit (int) throw ();' \ 1639 'extern "C" void exit (int);' \ 1640 'void exit (int);' 1641do 1642 cat >conftest.$ac_ext <<_ACEOF 1643#line 1643 "configure" 1644#include "confdefs.h" 1645#include <stdlib.h> 1646$ac_declaration 1647int 1648main () 1649{ 1650exit (42); 1651 ; 1652 return 0; 1653} 1654_ACEOF 1655rm -f conftest.$ac_objext 1656if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5 1657 (eval $ac_compile) 2>&5 1658 ac_status=$? 1659 echo "$as_me:1659: \$? = $ac_status" >&5 1660 (exit $ac_status); } && 1661 { ac_try='test -s conftest.$ac_objext' 1662 { (eval echo "$as_me:1662: \"$ac_try\"") >&5 1663 (eval $ac_try) 2>&5 1664 ac_status=$? 1665 echo "$as_me:1665: \$? = $ac_status" >&5 1666 (exit $ac_status); }; }; then 1667 : 1668else 1669 echo "$as_me: failed program was:" >&5 1670cat conftest.$ac_ext >&5 1671continue 1672fi 1673rm -f conftest.$ac_objext conftest.$ac_ext 1674 cat >conftest.$ac_ext <<_ACEOF 1675#line 1675 "configure" 1676#include "confdefs.h" 1677$ac_declaration 1678int 1679main () 1680{ 1681exit (42); 1682 ; 1683 return 0; 1684} 1685_ACEOF 1686rm -f conftest.$ac_objext 1687if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5 1688 (eval $ac_compile) 2>&5 1689 ac_status=$? 1690 echo "$as_me:1690: \$? = $ac_status" >&5 1691 (exit $ac_status); } && 1692 { ac_try='test -s conftest.$ac_objext' 1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5 1694 (eval $ac_try) 2>&5 1695 ac_status=$? 1696 echo "$as_me:1696: \$? = $ac_status" >&5 1697 (exit $ac_status); }; }; then 1698 break 1699else 1700 echo "$as_me: failed program was:" >&5 1701cat conftest.$ac_ext >&5 1702fi 1703rm -f conftest.$ac_objext conftest.$ac_ext 1704done 1705rm -rf conftest* 1706if test -n "$ac_declaration"; then 1707 echo '#ifdef __cplusplus' >>confdefs.h 1708 echo $ac_declaration >>confdefs.h 1709 echo '#endif' >>confdefs.h 1710fi 1711 1712else 1713 echo "$as_me: failed program was:" >&5 1714cat conftest.$ac_ext >&5 1715fi 1716rm -f conftest.$ac_objext conftest.$ac_ext 1717ac_ext=c 1718ac_cpp='$CPP $CPPFLAGS' 1719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1721ac_compiler_gnu=$ac_cv_c_compiler_gnu 1722ac_main_return=return 1723 1724ac_ext=c 1725ac_cpp='$CPP $CPPFLAGS' 1726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1728ac_compiler_gnu=$ac_cv_c_compiler_gnu 1729ac_main_return=return 1730echo "$as_me:1730: checking how to run the C preprocessor" >&5 1731echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1732# On Suns, sometimes $CPP names a directory. 1733if test -n "$CPP" && test -d "$CPP"; then 1734 CPP= 1735fi 1736if test -z "$CPP"; then 1737 if test "${ac_cv_prog_CPP+set}" = set; then 1738 echo $ECHO_N "(cached) $ECHO_C" >&6 1739else 1740 # Double quotes because CPP needs to be expanded 1741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1742 do 1743 ac_preproc_ok=false 1744for ac_c_preproc_warn_flag in '' yes 1745do 1746 # Use a header file that comes with gcc, so configuring glibc 1747 # with a fresh cross-compiler works. 1748 # On the NeXT, cc -E runs the code through the compiler's parser, 1749 # not just through cpp. "Syntax error" is here to catch this case. 1750 cat >conftest.$ac_ext <<_ACEOF 1751#line 1751 "configure" 1752#include "confdefs.h" 1753#include <assert.h> 1754 Syntax error 1755_ACEOF 1756if { (eval echo "$as_me:1756: \"$ac_cpp conftest.$ac_ext\"") >&5 1757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1758 ac_status=$? 1759 egrep -v '^ *\+' conftest.er1 >conftest.err 1760 rm -f conftest.er1 1761 cat conftest.err >&5 1762 echo "$as_me:1762: \$? = $ac_status" >&5 1763 (exit $ac_status); } >/dev/null; then 1764 if test -s conftest.err; then 1765 ac_cpp_err=$ac_c_preproc_warn_flag 1766 else 1767 ac_cpp_err= 1768 fi 1769else 1770 ac_cpp_err=yes 1771fi 1772if test -z "$ac_cpp_err"; then 1773 : 1774else 1775 echo "$as_me: failed program was:" >&5 1776 cat conftest.$ac_ext >&5 1777 # Broken: fails on valid input. 1778continue 1779fi 1780rm -f conftest.err conftest.$ac_ext 1781 1782 # OK, works on sane cases. Now check whether non-existent headers 1783 # can be detected and how. 1784 cat >conftest.$ac_ext <<_ACEOF 1785#line 1785 "configure" 1786#include "confdefs.h" 1787#include <ac_nonexistent.h> 1788_ACEOF 1789if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5 1790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1791 ac_status=$? 1792 egrep -v '^ *\+' conftest.er1 >conftest.err 1793 rm -f conftest.er1 1794 cat conftest.err >&5 1795 echo "$as_me:1795: \$? = $ac_status" >&5 1796 (exit $ac_status); } >/dev/null; then 1797 if test -s conftest.err; then 1798 ac_cpp_err=$ac_c_preproc_warn_flag 1799 else 1800 ac_cpp_err= 1801 fi 1802else 1803 ac_cpp_err=yes 1804fi 1805if test -z "$ac_cpp_err"; then 1806 # Broken: success on invalid input. 1807continue 1808else 1809 echo "$as_me: failed program was:" >&5 1810 cat conftest.$ac_ext >&5 1811 # Passes both tests. 1812ac_preproc_ok=: 1813break 1814fi 1815rm -f conftest.err conftest.$ac_ext 1816 1817done 1818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1819rm -f conftest.err conftest.$ac_ext 1820if $ac_preproc_ok; then 1821 break 1822fi 1823 1824 done 1825 ac_cv_prog_CPP=$CPP 1826 1827fi 1828 CPP=$ac_cv_prog_CPP 1829else 1830 ac_cv_prog_CPP=$CPP 1831fi 1832echo "$as_me:1832: result: $CPP" >&5 1833echo "${ECHO_T}$CPP" >&6 1834ac_preproc_ok=false 1835for ac_c_preproc_warn_flag in '' yes 1836do 1837 # Use a header file that comes with gcc, so configuring glibc 1838 # with a fresh cross-compiler works. 1839 # On the NeXT, cc -E runs the code through the compiler's parser, 1840 # not just through cpp. "Syntax error" is here to catch this case. 1841 cat >conftest.$ac_ext <<_ACEOF 1842#line 1842 "configure" 1843#include "confdefs.h" 1844#include <assert.h> 1845 Syntax error 1846_ACEOF 1847if { (eval echo "$as_me:1847: \"$ac_cpp conftest.$ac_ext\"") >&5 1848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1849 ac_status=$? 1850 egrep -v '^ *\+' conftest.er1 >conftest.err 1851 rm -f conftest.er1 1852 cat conftest.err >&5 1853 echo "$as_me:1853: \$? = $ac_status" >&5 1854 (exit $ac_status); } >/dev/null; then 1855 if test -s conftest.err; then 1856 ac_cpp_err=$ac_c_preproc_warn_flag 1857 else 1858 ac_cpp_err= 1859 fi 1860else 1861 ac_cpp_err=yes 1862fi 1863if test -z "$ac_cpp_err"; then 1864 : 1865else 1866 echo "$as_me: failed program was:" >&5 1867 cat conftest.$ac_ext >&5 1868 # Broken: fails on valid input. 1869continue 1870fi 1871rm -f conftest.err conftest.$ac_ext 1872 1873 # OK, works on sane cases. Now check whether non-existent headers 1874 # can be detected and how. 1875 cat >conftest.$ac_ext <<_ACEOF 1876#line 1876 "configure" 1877#include "confdefs.h" 1878#include <ac_nonexistent.h> 1879_ACEOF 1880if { (eval echo "$as_me:1880: \"$ac_cpp conftest.$ac_ext\"") >&5 1881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1882 ac_status=$? 1883 egrep -v '^ *\+' conftest.er1 >conftest.err 1884 rm -f conftest.er1 1885 cat conftest.err >&5 1886 echo "$as_me:1886: \$? = $ac_status" >&5 1887 (exit $ac_status); } >/dev/null; then 1888 if test -s conftest.err; then 1889 ac_cpp_err=$ac_c_preproc_warn_flag 1890 else 1891 ac_cpp_err= 1892 fi 1893else 1894 ac_cpp_err=yes 1895fi 1896if test -z "$ac_cpp_err"; then 1897 # Broken: success on invalid input. 1898continue 1899else 1900 echo "$as_me: failed program was:" >&5 1901 cat conftest.$ac_ext >&5 1902 # Passes both tests. 1903ac_preproc_ok=: 1904break 1905fi 1906rm -f conftest.err conftest.$ac_ext 1907 1908done 1909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1910rm -f conftest.err conftest.$ac_ext 1911if $ac_preproc_ok; then 1912 : 1913else 1914 { { echo "$as_me:1914: error: C preprocessor \"$CPP\" fails sanity check" >&5 1915echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1916 { (exit 1); exit 1; }; } 1917fi 1918 1919ac_ext=c 1920ac_cpp='$CPP $CPPFLAGS' 1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1923ac_compiler_gnu=$ac_cv_c_compiler_gnu 1924ac_main_return=return 1925 1926if test $ac_cv_c_compiler_gnu = yes; then 1927 echo "$as_me:1927: checking whether $CC needs -traditional" >&5 1928echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 1929if test "${ac_cv_prog_gcc_traditional+set}" = set; then 1930 echo $ECHO_N "(cached) $ECHO_C" >&6 1931else 1932 ac_pattern="Autoconf.*'x'" 1933 cat >conftest.$ac_ext <<_ACEOF 1934#line 1934 "configure" 1935#include "confdefs.h" 1936#include <sgtty.h> 1937int Autoconf = TIOCGETP; 1938_ACEOF 1939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1940 egrep "$ac_pattern" >/dev/null 2>&1; then 1941 ac_cv_prog_gcc_traditional=yes 1942else 1943 ac_cv_prog_gcc_traditional=no 1944fi 1945rm -rf conftest* 1946 1947 if test $ac_cv_prog_gcc_traditional = no; then 1948 cat >conftest.$ac_ext <<_ACEOF 1949#line 1949 "configure" 1950#include "confdefs.h" 1951#include <termio.h> 1952int Autoconf = TCGETA; 1953_ACEOF 1954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1955 egrep "$ac_pattern" >/dev/null 2>&1; then 1956 ac_cv_prog_gcc_traditional=yes 1957fi 1958rm -rf conftest* 1959 1960 fi 1961fi 1962echo "$as_me:1962: result: $ac_cv_prog_gcc_traditional" >&5 1963echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 1964 if test $ac_cv_prog_gcc_traditional = yes; then 1965 CC="$CC -traditional" 1966 fi 1967fi 1968 1969echo "$as_me:1969: checking whether ${MAKE-make} sets \${MAKE}" >&5 1970echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1973 echo $ECHO_N "(cached) $ECHO_C" >&6 1974else 1975 cat >conftest.make <<\EOF 1976all: 1977 @echo 'ac_maketemp="${MAKE}"' 1978EOF 1979# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1981if test -n "$ac_maketemp"; then 1982 eval ac_cv_prog_make_${ac_make}_set=yes 1983else 1984 eval ac_cv_prog_make_${ac_make}_set=no 1985fi 1986rm -f conftest.make 1987fi 1988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1989 echo "$as_me:1989: result: yes" >&5 1990echo "${ECHO_T}yes" >&6 1991 SET_MAKE= 1992else 1993 echo "$as_me:1993: result: no" >&5 1994echo "${ECHO_T}no" >&6 1995 SET_MAKE="MAKE=${MAKE-make}" 1996fi 1997 1998if test -n "$ac_tool_prefix"; then 1999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2000set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2001echo "$as_me:2001: checking for $ac_word" >&5 2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2003if test "${ac_cv_prog_RANLIB+set}" = set; then 2004 echo $ECHO_N "(cached) $ECHO_C" >&6 2005else 2006 if test -n "$RANLIB"; then 2007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2008else 2009 ac_save_IFS=$IFS; IFS=$ac_path_separator 2010ac_dummy="$PATH" 2011for ac_dir in $ac_dummy; do 2012 IFS=$ac_save_IFS 2013 test -z "$ac_dir" && ac_dir=. 2014 $as_executable_p "$ac_dir/$ac_word" || continue 2015ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2016echo "$as_me:2016: found $ac_dir/$ac_word" >&5 2017break 2018done 2019 2020fi 2021fi 2022RANLIB=$ac_cv_prog_RANLIB 2023if test -n "$RANLIB"; then 2024 echo "$as_me:2024: result: $RANLIB" >&5 2025echo "${ECHO_T}$RANLIB" >&6 2026else 2027 echo "$as_me:2027: result: no" >&5 2028echo "${ECHO_T}no" >&6 2029fi 2030 2031fi 2032if test -z "$ac_cv_prog_RANLIB"; then 2033 ac_ct_RANLIB=$RANLIB 2034 # Extract the first word of "ranlib", so it can be a program name with args. 2035set dummy ranlib; ac_word=$2 2036echo "$as_me:2036: checking for $ac_word" >&5 2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2039 echo $ECHO_N "(cached) $ECHO_C" >&6 2040else 2041 if test -n "$ac_ct_RANLIB"; then 2042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2043else 2044 ac_save_IFS=$IFS; IFS=$ac_path_separator 2045ac_dummy="$PATH" 2046for ac_dir in $ac_dummy; do 2047 IFS=$ac_save_IFS 2048 test -z "$ac_dir" && ac_dir=. 2049 $as_executable_p "$ac_dir/$ac_word" || continue 2050ac_cv_prog_ac_ct_RANLIB="ranlib" 2051echo "$as_me:2051: found $ac_dir/$ac_word" >&5 2052break 2053done 2054 2055 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2056fi 2057fi 2058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2059if test -n "$ac_ct_RANLIB"; then 2060 echo "$as_me:2060: result: $ac_ct_RANLIB" >&5 2061echo "${ECHO_T}$ac_ct_RANLIB" >&6 2062else 2063 echo "$as_me:2063: result: no" >&5 2064echo "${ECHO_T}no" >&6 2065fi 2066 2067 RANLIB=$ac_ct_RANLIB 2068else 2069 RANLIB="$ac_cv_prog_RANLIB" 2070fi 2071 2072ac_aux_dir= 2073for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2074 if test -f $ac_dir/install-sh; then 2075 ac_aux_dir=$ac_dir 2076 ac_install_sh="$ac_aux_dir/install-sh -c" 2077 break 2078 elif test -f $ac_dir/install.sh; then 2079 ac_aux_dir=$ac_dir 2080 ac_install_sh="$ac_aux_dir/install.sh -c" 2081 break 2082 elif test -f $ac_dir/shtool; then 2083 ac_aux_dir=$ac_dir 2084 ac_install_sh="$ac_aux_dir/shtool install -c" 2085 break 2086 fi 2087done 2088if test -z "$ac_aux_dir"; then 2089 { { echo "$as_me:2089: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2090echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2091 { (exit 1); exit 1; }; } 2092fi 2093ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2094ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2095ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2096 2097# Find a good install program. We prefer a C program (faster), 2098# so one script is as good as another. But avoid the broken or 2099# incompatible versions: 2100# SysV /etc/install, /usr/sbin/install 2101# SunOS /usr/etc/install 2102# IRIX /sbin/install 2103# AIX /bin/install 2104# AmigaOS /C/install, which installs bootblocks on floppy discs 2105# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2106# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2107# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2108# ./install, which can be erroneously created by make from ./install.sh. 2109echo "$as_me:2109: checking for a BSD compatible install" >&5 2110echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2111if test -z "$INSTALL"; then 2112if test "${ac_cv_path_install+set}" = set; then 2113 echo $ECHO_N "(cached) $ECHO_C" >&6 2114else 2115 ac_save_IFS=$IFS; IFS=$ac_path_separator 2116 for ac_dir in $PATH; do 2117 IFS=$ac_save_IFS 2118 # Account for people who put trailing slashes in PATH elements. 2119 case $ac_dir/ in 2120 / | ./ | .// | /cC/* \ 2121 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2122 | /usr/ucb/* ) ;; 2123 *) 2124 # OSF1 and SCO ODT 3.0 have their own names for install. 2125 # Don't use installbsd from OSF since it installs stuff as root 2126 # by default. 2127 for ac_prog in ginstall scoinst install; do 2128 if $as_executable_p "$ac_dir/$ac_prog"; then 2129 if test $ac_prog = install && 2130 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2131 # AIX install. It has an incompatible calling convention. 2132 : 2133 elif test $ac_prog = install && 2134 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2135 # program-specific install script used by HP pwplus--don't use. 2136 : 2137 else 2138 ac_cv_path_install="$ac_dir/$ac_prog -c" 2139 break 2 2140 fi 2141 fi 2142 done 2143 ;; 2144 esac 2145 done 2146 2147fi 2148 if test "${ac_cv_path_install+set}" = set; then 2149 INSTALL=$ac_cv_path_install 2150 else 2151 # As a last resort, use the slow shell script. We don't cache a 2152 # path for INSTALL within a source directory, because that will 2153 # break other packages using the cache if that directory is 2154 # removed, or if the path is relative. 2155 INSTALL=$ac_install_sh 2156 fi 2157fi 2158echo "$as_me:2158: result: $INSTALL" >&5 2159echo "${ECHO_T}$INSTALL" >&6 2160 2161# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2162# It thinks the first close brace ends the variable substitution. 2163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2164 2165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2166 2167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2168 2169for ac_prog in tdlint lint alint splint lclint 2170do 2171 # Extract the first word of "$ac_prog", so it can be a program name with args. 2172set dummy $ac_prog; ac_word=$2 2173echo "$as_me:2173: checking for $ac_word" >&5 2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2175if test "${ac_cv_prog_LINT+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 if test -n "$LINT"; then 2179 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2180else 2181 ac_save_IFS=$IFS; IFS=$ac_path_separator 2182ac_dummy="$PATH" 2183for ac_dir in $ac_dummy; do 2184 IFS=$ac_save_IFS 2185 test -z "$ac_dir" && ac_dir=. 2186 $as_executable_p "$ac_dir/$ac_word" || continue 2187ac_cv_prog_LINT="$ac_prog" 2188echo "$as_me:2188: found $ac_dir/$ac_word" >&5 2189break 2190done 2191 2192fi 2193fi 2194LINT=$ac_cv_prog_LINT 2195if test -n "$LINT"; then 2196 echo "$as_me:2196: result: $LINT" >&5 2197echo "${ECHO_T}$LINT" >&6 2198else 2199 echo "$as_me:2199: result: no" >&5 2200echo "${ECHO_T}no" >&6 2201fi 2202 2203 test -n "$LINT" && break 2204done 2205 2206if test -n "$ac_tool_prefix"; then 2207 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2208set dummy ${ac_tool_prefix}ar; ac_word=$2 2209echo "$as_me:2209: checking for $ac_word" >&5 2210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2211if test "${ac_cv_prog_AR+set}" = set; then 2212 echo $ECHO_N "(cached) $ECHO_C" >&6 2213else 2214 if test -n "$AR"; then 2215 ac_cv_prog_AR="$AR" # Let the user override the test. 2216else 2217 ac_save_IFS=$IFS; IFS=$ac_path_separator 2218ac_dummy="$PATH" 2219for ac_dir in $ac_dummy; do 2220 IFS=$ac_save_IFS 2221 test -z "$ac_dir" && ac_dir=. 2222 $as_executable_p "$ac_dir/$ac_word" || continue 2223ac_cv_prog_AR="${ac_tool_prefix}ar" 2224echo "$as_me:2224: found $ac_dir/$ac_word" >&5 2225break 2226done 2227 2228fi 2229fi 2230AR=$ac_cv_prog_AR 2231if test -n "$AR"; then 2232 echo "$as_me:2232: result: $AR" >&5 2233echo "${ECHO_T}$AR" >&6 2234else 2235 echo "$as_me:2235: result: no" >&5 2236echo "${ECHO_T}no" >&6 2237fi 2238 2239fi 2240if test -z "$ac_cv_prog_AR"; then 2241 ac_ct_AR=$AR 2242 # Extract the first word of "ar", so it can be a program name with args. 2243set dummy ar; ac_word=$2 2244echo "$as_me:2244: checking for $ac_word" >&5 2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2246if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2247 echo $ECHO_N "(cached) $ECHO_C" >&6 2248else 2249 if test -n "$ac_ct_AR"; then 2250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2251else 2252 ac_save_IFS=$IFS; IFS=$ac_path_separator 2253ac_dummy="$PATH" 2254for ac_dir in $ac_dummy; do 2255 IFS=$ac_save_IFS 2256 test -z "$ac_dir" && ac_dir=. 2257 $as_executable_p "$ac_dir/$ac_word" || continue 2258ac_cv_prog_ac_ct_AR="ar" 2259echo "$as_me:2259: found $ac_dir/$ac_word" >&5 2260break 2261done 2262 2263 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 2264fi 2265fi 2266ac_ct_AR=$ac_cv_prog_ac_ct_AR 2267if test -n "$ac_ct_AR"; then 2268 echo "$as_me:2268: result: $ac_ct_AR" >&5 2269echo "${ECHO_T}$ac_ct_AR" >&6 2270else 2271 echo "$as_me:2271: result: no" >&5 2272echo "${ECHO_T}no" >&6 2273fi 2274 2275 AR=$ac_ct_AR 2276else 2277 AR="$ac_cv_prog_AR" 2278fi 2279 2280echo "$as_me:2280: checking for POSIXized ISC" >&5 2281echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2282if test -d /etc/conf/kconfig.d && 2283 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2284then 2285 echo "$as_me:2285: result: yes" >&5 2286echo "${ECHO_T}yes" >&6 2287 ISC=yes # If later tests want to check for ISC. 2288 2289cat >>confdefs.h <<\EOF 2290#define _POSIX_SOURCE 1 2291EOF 2292 2293 if test "$GCC" = yes; then 2294 CC="$CC -posix" 2295 else 2296 CC="$CC -Xp" 2297 fi 2298else 2299 echo "$as_me:2299: result: no" >&5 2300echo "${ECHO_T}no" >&6 2301 ISC= 2302fi 2303 2304echo "$as_me:2304: checking for $CC option to accept ANSI C" >&5 2305echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2306if test "${ac_cv_prog_cc_stdc+set}" = set; then 2307 echo $ECHO_N "(cached) $ECHO_C" >&6 2308else 2309 ac_cv_prog_cc_stdc=no 2310ac_save_CC=$CC 2311cat >conftest.$ac_ext <<_ACEOF 2312#line 2312 "configure" 2313#include "confdefs.h" 2314#include <stdarg.h> 2315#include <stdio.h> 2316#include <sys/types.h> 2317#include <sys/stat.h> 2318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2319struct buf { int x; }; 2320FILE * (*rcsopen) (struct buf *, struct stat *, int); 2321static char *e (p, i) 2322 char **p; 2323 int i; 2324{ 2325 return p[i]; 2326} 2327static char *f (char * (*g) (char **, int), char **p, ...) 2328{ 2329 char *s; 2330 va_list v; 2331 va_start (v,p); 2332 s = g (p, va_arg (v,int)); 2333 va_end (v); 2334 return s; 2335} 2336int test (int i, double x); 2337struct s1 {int (*f) (int a);}; 2338struct s2 {int (*f) (double a);}; 2339int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2340int argc; 2341char **argv; 2342int 2343main () 2344{ 2345return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2346 ; 2347 return 0; 2348} 2349_ACEOF 2350# Don't try gcc -ansi; that turns off useful extensions and 2351# breaks some systems' header files. 2352# AIX -qlanglvl=ansi 2353# Ultrix and OSF/1 -std1 2354# HP-UX 10.20 and later -Ae 2355# HP-UX older versions -Aa -D_HPUX_SOURCE 2356# SVR4 -Xc -D__EXTENSIONS__ 2357for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2358do 2359 CC="$ac_save_CC $ac_arg" 2360 rm -f conftest.$ac_objext 2361if { (eval echo "$as_me:2361: \"$ac_compile\"") >&5 2362 (eval $ac_compile) 2>&5 2363 ac_status=$? 2364 echo "$as_me:2364: \$? = $ac_status" >&5 2365 (exit $ac_status); } && 2366 { ac_try='test -s conftest.$ac_objext' 2367 { (eval echo "$as_me:2367: \"$ac_try\"") >&5 2368 (eval $ac_try) 2>&5 2369 ac_status=$? 2370 echo "$as_me:2370: \$? = $ac_status" >&5 2371 (exit $ac_status); }; }; then 2372 ac_cv_prog_cc_stdc=$ac_arg 2373break 2374else 2375 echo "$as_me: failed program was:" >&5 2376cat conftest.$ac_ext >&5 2377fi 2378rm -f conftest.$ac_objext 2379done 2380rm -f conftest.$ac_ext conftest.$ac_objext 2381CC=$ac_save_CC 2382 2383fi 2384 2385case "x$ac_cv_prog_cc_stdc" in 2386 x|xno) 2387 echo "$as_me:2387: result: none needed" >&5 2388echo "${ECHO_T}none needed" >&6 ;; 2389 *) 2390 echo "$as_me:2390: result: $ac_cv_prog_cc_stdc" >&5 2391echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2392 CC="$CC $ac_cv_prog_cc_stdc" ;; 2393esac 2394 2395echo "$as_me:2395: checking for an ANSI C-conforming const" >&5 2396echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2397if test "${ac_cv_c_const+set}" = set; then 2398 echo $ECHO_N "(cached) $ECHO_C" >&6 2399else 2400 cat >conftest.$ac_ext <<_ACEOF 2401#line 2401 "configure" 2402#include "confdefs.h" 2403 2404int 2405main () 2406{ 2407/* FIXME: Include the comments suggested by Paul. */ 2408#ifndef __cplusplus 2409 /* Ultrix mips cc rejects this. */ 2410 typedef int charset[2]; 2411 const charset x; 2412 /* SunOS 4.1.1 cc rejects this. */ 2413 char const *const *ccp; 2414 char **p; 2415 /* NEC SVR4.0.2 mips cc rejects this. */ 2416 struct point {int x, y;}; 2417 static struct point const zero = {0,0}; 2418 /* AIX XL C 1.02.0.0 rejects this. 2419 It does not let you subtract one const X* pointer from another in 2420 an arm of an if-expression whose if-part is not a constant 2421 expression */ 2422 const char *g = "string"; 2423 ccp = &g + (g ? g-g : 0); 2424 /* HPUX 7.0 cc rejects these. */ 2425 ++ccp; 2426 p = (char**) ccp; 2427 ccp = (char const *const *) p; 2428 { /* SCO 3.2v4 cc rejects this. */ 2429 char *t; 2430 char const *s = 0 ? (char *) 0 : (char const *) 0; 2431 2432 *t++ = 0; 2433 } 2434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2435 int x[] = {25, 17}; 2436 const int *foo = &x[0]; 2437 ++foo; 2438 } 2439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2440 typedef const int *iptr; 2441 iptr p = 0; 2442 ++p; 2443 } 2444 { /* AIX XL C 1.02.0.0 rejects this saying 2445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2446 struct s { int j; const int *ap[3]; }; 2447 struct s *b; b->j = 5; 2448 } 2449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2450 const int foo = 10; 2451 } 2452#endif 2453 2454 ; 2455 return 0; 2456} 2457_ACEOF 2458rm -f conftest.$ac_objext 2459if { (eval echo "$as_me:2459: \"$ac_compile\"") >&5 2460 (eval $ac_compile) 2>&5 2461 ac_status=$? 2462 echo "$as_me:2462: \$? = $ac_status" >&5 2463 (exit $ac_status); } && 2464 { ac_try='test -s conftest.$ac_objext' 2465 { (eval echo "$as_me:2465: \"$ac_try\"") >&5 2466 (eval $ac_try) 2>&5 2467 ac_status=$? 2468 echo "$as_me:2468: \$? = $ac_status" >&5 2469 (exit $ac_status); }; }; then 2470 ac_cv_c_const=yes 2471else 2472 echo "$as_me: failed program was:" >&5 2473cat conftest.$ac_ext >&5 2474ac_cv_c_const=no 2475fi 2476rm -f conftest.$ac_objext conftest.$ac_ext 2477fi 2478echo "$as_me:2478: result: $ac_cv_c_const" >&5 2479echo "${ECHO_T}$ac_cv_c_const" >&6 2480if test $ac_cv_c_const = no; then 2481 2482cat >>confdefs.h <<\EOF 2483#define const 2484EOF 2485 2486fi 2487 2488echo "$as_me:2488: checking for makeflags variable" >&5 2489echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 2490if test "${cf_cv_makeflags+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 2494 cf_cv_makeflags='' 2495 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 2496 do 2497 cat >cf_makeflags.tmp <<CF_EOF 2498SHELL = /bin/sh 2499all : 2500 @ echo '.$cf_option' 2501CF_EOF 2502 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'` 2503 case "$cf_result" in 2504 .*k) 2505 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 2506 case "$cf_result" in 2507 .*CC=*) cf_cv_makeflags= 2508 ;; 2509 *) cf_cv_makeflags=$cf_option 2510 ;; 2511 esac 2512 break 2513 ;; 2514 .-) ;; 2515 *) echo "given option \"$cf_option\", no match \"$cf_result\"" 2516 ;; 2517 esac 2518 done 2519 rm -f cf_makeflags.tmp 2520 2521fi 2522echo "$as_me:2522: result: $cf_cv_makeflags" >&5 2523echo "${ECHO_T}$cf_cv_makeflags" >&6 2524 2525echo "$as_me:2525: checking if filesystem supports mixed-case filenames" >&5 2526echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2527if test "${cf_cv_mixedcase+set}" = set; then 2528 echo $ECHO_N "(cached) $ECHO_C" >&6 2529else 2530 2531if test "$cross_compiling" = yes ; then 2532 case $target_alias in #(vi 2533 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi 2534 cf_cv_mixedcase=no 2535 ;; 2536 *) 2537 cf_cv_mixedcase=yes 2538 ;; 2539 esac 2540else 2541 rm -f conftest CONFTEST 2542 echo test >conftest 2543 if test -f CONFTEST ; then 2544 cf_cv_mixedcase=no 2545 else 2546 cf_cv_mixedcase=yes 2547 fi 2548 rm -f conftest CONFTEST 2549fi 2550 2551fi 2552echo "$as_me:2552: result: $cf_cv_mixedcase" >&5 2553echo "${ECHO_T}$cf_cv_mixedcase" >&6 2554test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF 2555#define MIXEDCASE_FILENAMES 1 2556EOF 2557 2558for ac_prog in exctags ctags 2559do 2560 # Extract the first word of "$ac_prog", so it can be a program name with args. 2561set dummy $ac_prog; ac_word=$2 2562echo "$as_me:2562: checking for $ac_word" >&5 2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2564if test "${ac_cv_prog_CTAGS+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 if test -n "$CTAGS"; then 2568 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2569else 2570 ac_save_IFS=$IFS; IFS=$ac_path_separator 2571ac_dummy="$PATH" 2572for ac_dir in $ac_dummy; do 2573 IFS=$ac_save_IFS 2574 test -z "$ac_dir" && ac_dir=. 2575 $as_executable_p "$ac_dir/$ac_word" || continue 2576ac_cv_prog_CTAGS="$ac_prog" 2577echo "$as_me:2577: found $ac_dir/$ac_word" >&5 2578break 2579done 2580 2581fi 2582fi 2583CTAGS=$ac_cv_prog_CTAGS 2584if test -n "$CTAGS"; then 2585 echo "$as_me:2585: result: $CTAGS" >&5 2586echo "${ECHO_T}$CTAGS" >&6 2587else 2588 echo "$as_me:2588: result: no" >&5 2589echo "${ECHO_T}no" >&6 2590fi 2591 2592 test -n "$CTAGS" && break 2593done 2594 2595for ac_prog in exetags etags 2596do 2597 # Extract the first word of "$ac_prog", so it can be a program name with args. 2598set dummy $ac_prog; ac_word=$2 2599echo "$as_me:2599: checking for $ac_word" >&5 2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2601if test "${ac_cv_prog_ETAGS+set}" = set; then 2602 echo $ECHO_N "(cached) $ECHO_C" >&6 2603else 2604 if test -n "$ETAGS"; then 2605 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2606else 2607 ac_save_IFS=$IFS; IFS=$ac_path_separator 2608ac_dummy="$PATH" 2609for ac_dir in $ac_dummy; do 2610 IFS=$ac_save_IFS 2611 test -z "$ac_dir" && ac_dir=. 2612 $as_executable_p "$ac_dir/$ac_word" || continue 2613ac_cv_prog_ETAGS="$ac_prog" 2614echo "$as_me:2614: found $ac_dir/$ac_word" >&5 2615break 2616done 2617 2618fi 2619fi 2620ETAGS=$ac_cv_prog_ETAGS 2621if test -n "$ETAGS"; then 2622 echo "$as_me:2622: result: $ETAGS" >&5 2623echo "${ECHO_T}$ETAGS" >&6 2624else 2625 echo "$as_me:2625: result: no" >&5 2626echo "${ECHO_T}no" >&6 2627fi 2628 2629 test -n "$ETAGS" && break 2630done 2631 2632# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2633set dummy ${CTAGS:-ctags}; ac_word=$2 2634echo "$as_me:2634: checking for $ac_word" >&5 2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2636if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2637 echo $ECHO_N "(cached) $ECHO_C" >&6 2638else 2639 if test -n "$MAKE_LOWER_TAGS"; then 2640 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2641else 2642 ac_save_IFS=$IFS; IFS=$ac_path_separator 2643ac_dummy="$PATH" 2644for ac_dir in $ac_dummy; do 2645 IFS=$ac_save_IFS 2646 test -z "$ac_dir" && ac_dir=. 2647 $as_executable_p "$ac_dir/$ac_word" || continue 2648ac_cv_prog_MAKE_LOWER_TAGS="yes" 2649echo "$as_me:2649: found $ac_dir/$ac_word" >&5 2650break 2651done 2652 2653 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2654fi 2655fi 2656MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2657if test -n "$MAKE_LOWER_TAGS"; then 2658 echo "$as_me:2658: result: $MAKE_LOWER_TAGS" >&5 2659echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2660else 2661 echo "$as_me:2661: result: no" >&5 2662echo "${ECHO_T}no" >&6 2663fi 2664 2665if test "$cf_cv_mixedcase" = yes ; then 2666 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2667set dummy ${ETAGS:-etags}; ac_word=$2 2668echo "$as_me:2668: checking for $ac_word" >&5 2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2670if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2671 echo $ECHO_N "(cached) $ECHO_C" >&6 2672else 2673 if test -n "$MAKE_UPPER_TAGS"; then 2674 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2675else 2676 ac_save_IFS=$IFS; IFS=$ac_path_separator 2677ac_dummy="$PATH" 2678for ac_dir in $ac_dummy; do 2679 IFS=$ac_save_IFS 2680 test -z "$ac_dir" && ac_dir=. 2681 $as_executable_p "$ac_dir/$ac_word" || continue 2682ac_cv_prog_MAKE_UPPER_TAGS="yes" 2683echo "$as_me:2683: found $ac_dir/$ac_word" >&5 2684break 2685done 2686 2687 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2688fi 2689fi 2690MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2691if test -n "$MAKE_UPPER_TAGS"; then 2692 echo "$as_me:2692: result: $MAKE_UPPER_TAGS" >&5 2693echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2694else 2695 echo "$as_me:2695: result: no" >&5 2696echo "${ECHO_T}no" >&6 2697fi 2698 2699else 2700 MAKE_UPPER_TAGS=no 2701fi 2702 2703if test "$MAKE_UPPER_TAGS" = yes ; then 2704 MAKE_UPPER_TAGS= 2705else 2706 MAKE_UPPER_TAGS="#" 2707fi 2708 2709if test "$MAKE_LOWER_TAGS" = yes ; then 2710 MAKE_LOWER_TAGS= 2711else 2712 MAKE_LOWER_TAGS="#" 2713fi 2714 2715echo "$as_me:2715: checking if you want to see long compiling messages" >&5 2716echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 2717 2718# Check whether --enable-echo or --disable-echo was given. 2719if test "${enable_echo+set}" = set; then 2720 enableval="$enable_echo" 2721 test "$enableval" != no && enableval=yes 2722 if test "$enableval" != "yes" ; then 2723 2724 ECHO_LT='--silent' 2725 ECHO_LD='@echo linking $@;' 2726 RULE_CC='@echo compiling $<' 2727 SHOW_CC='@echo compiling $@' 2728 ECHO_CC='@' 2729 2730 else 2731 2732 ECHO_LT='' 2733 ECHO_LD='' 2734 RULE_CC='' 2735 SHOW_CC='' 2736 ECHO_CC='' 2737 2738 fi 2739else 2740 enableval=yes 2741 2742 ECHO_LT='' 2743 ECHO_LD='' 2744 RULE_CC='' 2745 SHOW_CC='' 2746 ECHO_CC='' 2747 2748fi; 2749echo "$as_me:2749: result: $enableval" >&5 2750echo "${ECHO_T}$enableval" >&6 2751 2752# Make sure we can run config.sub. 2753$ac_config_sub sun4 >/dev/null 2>&1 || 2754 { { echo "$as_me:2754: error: cannot run $ac_config_sub" >&5 2755echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2756 { (exit 1); exit 1; }; } 2757 2758echo "$as_me:2758: checking build system type" >&5 2759echo $ECHO_N "checking build system type... $ECHO_C" >&6 2760if test "${ac_cv_build+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 ac_cv_build_alias=$build_alias 2764test -z "$ac_cv_build_alias" && 2765 ac_cv_build_alias=`$ac_config_guess` 2766test -z "$ac_cv_build_alias" && 2767 { { echo "$as_me:2767: error: cannot guess build type; you must specify one" >&5 2768echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2769 { (exit 1); exit 1; }; } 2770ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2771 { { echo "$as_me:2771: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2772echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2773 { (exit 1); exit 1; }; } 2774 2775fi 2776echo "$as_me:2776: result: $ac_cv_build" >&5 2777echo "${ECHO_T}$ac_cv_build" >&6 2778build=$ac_cv_build 2779build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2780build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2781build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2782 2783if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 2784 echo "$as_me:2784: checking host system type" >&5 2785echo $ECHO_N "checking host system type... $ECHO_C" >&6 2786if test "${ac_cv_host+set}" = set; then 2787 echo $ECHO_N "(cached) $ECHO_C" >&6 2788else 2789 ac_cv_host_alias=$host_alias 2790test -z "$ac_cv_host_alias" && 2791 ac_cv_host_alias=$ac_cv_build_alias 2792ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2793 { { echo "$as_me:2793: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2794echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2795 { (exit 1); exit 1; }; } 2796 2797fi 2798echo "$as_me:2798: result: $ac_cv_host" >&5 2799echo "${ECHO_T}$ac_cv_host" >&6 2800host=$ac_cv_host 2801host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2802host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2803host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2804 2805 system_name="$host_os" 2806else 2807 system_name="`(uname -s -r) 2>/dev/null`" 2808 if test -z "$system_name" ; then 2809 system_name="`(hostname) 2>/dev/null`" 2810 fi 2811fi 2812test -n "$system_name" && cat >>confdefs.h <<EOF 2813#define SYSTEM_NAME "$system_name" 2814EOF 2815 2816if test "${cf_cv_system_name+set}" = set; then 2817 echo $ECHO_N "(cached) $ECHO_C" >&6 2818else 2819 cf_cv_system_name="$system_name" 2820fi 2821 2822test -z "$system_name" && system_name="$cf_cv_system_name" 2823test -n "$cf_cv_system_name" && echo "$as_me:2823: result: Configuring for $cf_cv_system_name" >&5 2824echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 2825 2826if test ".$system_name" != ".$cf_cv_system_name" ; then 2827 echo "$as_me:2827: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 2828echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 2829 { { echo "$as_me:2829: error: \"Please remove config.cache and try again.\"" >&5 2830echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 2831 { (exit 1); exit 1; }; } 2832fi 2833 2834case $cf_cv_system_name in 2835os2*) 2836 CFLAGS="$CFLAGS -Zmt" 2837 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 2838 CXXFLAGS="$CXXFLAGS -Zmt" 2839 # autoconf's macro sets -Zexe and suffix both, which conflict:w 2840 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 2841 ac_cv_exeext=.exe 2842 ;; 2843esac 2844 2845PROG_EXT="$EXEEXT" 2846 2847test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 2848#define PROG_EXT "$PROG_EXT" 2849EOF 2850 2851 case $cf_cv_system_name in 2852 os2*) PATH_SEPARATOR=';' ;; 2853 *) PATH_SEPARATOR=':' ;; 2854 esac 2855 2856 case $cf_cv_system_name in #(vi 2857 OS/2*|os2*) #(vi 2858 LIB_PREFIX='' 2859 ;; 2860 *) LIB_PREFIX='lib' 2861 ;; 2862 esac 2863 2864cf_XOPEN_SOURCE=500 2865cf_POSIX_C_SOURCE=199506L 2866cf_xopen_source= 2867 2868case $host_os in #(vi 2869aix[4-7]*) #(vi 2870 cf_xopen_source="-D_ALL_SOURCE" 2871 ;; 2872cygwin) #(vi 2873 cf_XOPEN_SOURCE=600 2874 ;; 2875darwin[0-8].*) #(vi 2876 cf_xopen_source="-D_APPLE_C_SOURCE" 2877 ;; 2878darwin*) #(vi 2879 cf_xopen_source="-D_DARWIN_C_SOURCE" 2880 cf_XOPEN_SOURCE= 2881 ;; 2882freebsd*|dragonfly*) #(vi 2883 # 5.x headers associate 2884 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2885 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2886 cf_POSIX_C_SOURCE=200112L 2887 cf_XOPEN_SOURCE=600 2888 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2889 ;; 2890hpux11*) #(vi 2891 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2892 ;; 2893hpux*) #(vi 2894 cf_xopen_source="-D_HPUX_SOURCE" 2895 ;; 2896irix[56].*) #(vi 2897 cf_xopen_source="-D_SGI_SOURCE" 2898 cf_XOPEN_SOURCE= 2899 ;; 2900linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2901 2902echo "$as_me:2902: checking if we must define _GNU_SOURCE" >&5 2903echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2904if test "${cf_cv_gnu_source+set}" = set; then 2905 echo $ECHO_N "(cached) $ECHO_C" >&6 2906else 2907 2908cat >conftest.$ac_ext <<_ACEOF 2909#line 2909 "configure" 2910#include "confdefs.h" 2911#include <sys/types.h> 2912int 2913main () 2914{ 2915 2916#ifndef _XOPEN_SOURCE 2917make an error 2918#endif 2919 ; 2920 return 0; 2921} 2922_ACEOF 2923rm -f conftest.$ac_objext 2924if { (eval echo "$as_me:2924: \"$ac_compile\"") >&5 2925 (eval $ac_compile) 2>&5 2926 ac_status=$? 2927 echo "$as_me:2927: \$? = $ac_status" >&5 2928 (exit $ac_status); } && 2929 { ac_try='test -s conftest.$ac_objext' 2930 { (eval echo "$as_me:2930: \"$ac_try\"") >&5 2931 (eval $ac_try) 2>&5 2932 ac_status=$? 2933 echo "$as_me:2933: \$? = $ac_status" >&5 2934 (exit $ac_status); }; }; then 2935 cf_cv_gnu_source=no 2936else 2937 echo "$as_me: failed program was:" >&5 2938cat conftest.$ac_ext >&5 2939cf_save="$CPPFLAGS" 2940 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2941 cat >conftest.$ac_ext <<_ACEOF 2942#line 2942 "configure" 2943#include "confdefs.h" 2944#include <sys/types.h> 2945int 2946main () 2947{ 2948 2949#ifdef _XOPEN_SOURCE 2950make an error 2951#endif 2952 ; 2953 return 0; 2954} 2955_ACEOF 2956rm -f conftest.$ac_objext 2957if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5 2958 (eval $ac_compile) 2>&5 2959 ac_status=$? 2960 echo "$as_me:2960: \$? = $ac_status" >&5 2961 (exit $ac_status); } && 2962 { ac_try='test -s conftest.$ac_objext' 2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5 2964 (eval $ac_try) 2>&5 2965 ac_status=$? 2966 echo "$as_me:2966: \$? = $ac_status" >&5 2967 (exit $ac_status); }; }; then 2968 cf_cv_gnu_source=no 2969else 2970 echo "$as_me: failed program was:" >&5 2971cat conftest.$ac_ext >&5 2972cf_cv_gnu_source=yes 2973fi 2974rm -f conftest.$ac_objext conftest.$ac_ext 2975 CPPFLAGS="$cf_save" 2976 2977fi 2978rm -f conftest.$ac_objext conftest.$ac_ext 2979 2980fi 2981echo "$as_me:2981: result: $cf_cv_gnu_source" >&5 2982echo "${ECHO_T}$cf_cv_gnu_source" >&6 2983test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2984 2985 ;; 2986mirbsd*) #(vi 2987 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2988 cf_XOPEN_SOURCE= 2989 2990cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2991 2992cf_save_CFLAGS="$CFLAGS" 2993cf_save_CPPFLAGS="$CPPFLAGS" 2994 2995cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2996 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2997 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2998 2999cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3000 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3001 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3002 3003echo "$as_me:3003: checking if we should define _POSIX_C_SOURCE" >&5 3004echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3005if test "${cf_cv_posix_c_source+set}" = set; then 3006 echo $ECHO_N "(cached) $ECHO_C" >&6 3007else 3008 3009echo "${as_me:-configure}:3009: testing if the symbol is already defined go no further ..." 1>&5 3010 3011 cat >conftest.$ac_ext <<_ACEOF 3012#line 3012 "configure" 3013#include "confdefs.h" 3014#include <sys/types.h> 3015int 3016main () 3017{ 3018 3019#ifndef _POSIX_C_SOURCE 3020make an error 3021#endif 3022 ; 3023 return 0; 3024} 3025_ACEOF 3026rm -f conftest.$ac_objext 3027if { (eval echo "$as_me:3027: \"$ac_compile\"") >&5 3028 (eval $ac_compile) 2>&5 3029 ac_status=$? 3030 echo "$as_me:3030: \$? = $ac_status" >&5 3031 (exit $ac_status); } && 3032 { ac_try='test -s conftest.$ac_objext' 3033 { (eval echo "$as_me:3033: \"$ac_try\"") >&5 3034 (eval $ac_try) 2>&5 3035 ac_status=$? 3036 echo "$as_me:3036: \$? = $ac_status" >&5 3037 (exit $ac_status); }; }; then 3038 cf_cv_posix_c_source=no 3039else 3040 echo "$as_me: failed program was:" >&5 3041cat conftest.$ac_ext >&5 3042cf_want_posix_source=no 3043 case .$cf_POSIX_C_SOURCE in #(vi 3044 .[12]??*) #(vi 3045 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3046 ;; 3047 .2) #(vi 3048 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3049 cf_want_posix_source=yes 3050 ;; 3051 .*) 3052 cf_want_posix_source=yes 3053 ;; 3054 esac 3055 if test "$cf_want_posix_source" = yes ; then 3056 cat >conftest.$ac_ext <<_ACEOF 3057#line 3057 "configure" 3058#include "confdefs.h" 3059#include <sys/types.h> 3060int 3061main () 3062{ 3063 3064#ifdef _POSIX_SOURCE 3065make an error 3066#endif 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071rm -f conftest.$ac_objext 3072if { (eval echo "$as_me:3072: \"$ac_compile\"") >&5 3073 (eval $ac_compile) 2>&5 3074 ac_status=$? 3075 echo "$as_me:3075: \$? = $ac_status" >&5 3076 (exit $ac_status); } && 3077 { ac_try='test -s conftest.$ac_objext' 3078 { (eval echo "$as_me:3078: \"$ac_try\"") >&5 3079 (eval $ac_try) 2>&5 3080 ac_status=$? 3081 echo "$as_me:3081: \$? = $ac_status" >&5 3082 (exit $ac_status); }; }; then 3083 : 3084else 3085 echo "$as_me: failed program was:" >&5 3086cat conftest.$ac_ext >&5 3087cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3088fi 3089rm -f conftest.$ac_objext conftest.$ac_ext 3090 fi 3091 3092echo "${as_me:-configure}:3092: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3093 3094 CFLAGS="$cf_trim_CFLAGS" 3095 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3096 3097echo "${as_me:-configure}:3097: testing if the second compile does not leave our definition intact error ..." 1>&5 3098 3099 cat >conftest.$ac_ext <<_ACEOF 3100#line 3100 "configure" 3101#include "confdefs.h" 3102#include <sys/types.h> 3103int 3104main () 3105{ 3106 3107#ifndef _POSIX_C_SOURCE 3108make an error 3109#endif 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114rm -f conftest.$ac_objext 3115if { (eval echo "$as_me:3115: \"$ac_compile\"") >&5 3116 (eval $ac_compile) 2>&5 3117 ac_status=$? 3118 echo "$as_me:3118: \$? = $ac_status" >&5 3119 (exit $ac_status); } && 3120 { ac_try='test -s conftest.$ac_objext' 3121 { (eval echo "$as_me:3121: \"$ac_try\"") >&5 3122 (eval $ac_try) 2>&5 3123 ac_status=$? 3124 echo "$as_me:3124: \$? = $ac_status" >&5 3125 (exit $ac_status); }; }; then 3126 : 3127else 3128 echo "$as_me: failed program was:" >&5 3129cat conftest.$ac_ext >&5 3130cf_cv_posix_c_source=no 3131fi 3132rm -f conftest.$ac_objext conftest.$ac_ext 3133 CFLAGS="$cf_save_CFLAGS" 3134 CPPFLAGS="$cf_save_CPPFLAGS" 3135 3136fi 3137rm -f conftest.$ac_objext conftest.$ac_ext 3138 3139fi 3140echo "$as_me:3140: result: $cf_cv_posix_c_source" >&5 3141echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3142 3143if test "$cf_cv_posix_c_source" != no ; then 3144 CFLAGS="$cf_trim_CFLAGS" 3145 CPPFLAGS="$cf_trim_CPPFLAGS" 3146 3147cf_fix_cppflags=no 3148cf_new_cflags= 3149cf_new_cppflags= 3150cf_new_extra_cppflags= 3151 3152for cf_add_cflags in $cf_cv_posix_c_source 3153do 3154case $cf_fix_cppflags in 3155no) 3156 case $cf_add_cflags in #(vi 3157 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3158 case $cf_add_cflags in 3159 -D*) 3160 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3161 3162 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3163 && test -z "${cf_tst_cflags}" \ 3164 && cf_fix_cppflags=yes 3165 3166 if test $cf_fix_cppflags = yes ; then 3167 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3168 continue 3169 elif test "${cf_tst_cflags}" = "\"'" ; then 3170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3171 continue 3172 fi 3173 ;; 3174 esac 3175 case "$CPPFLAGS" in 3176 *$cf_add_cflags) #(vi 3177 ;; 3178 *) #(vi 3179 case $cf_add_cflags in #(vi 3180 -D*) 3181 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3182 3183CPPFLAGS=`echo "$CPPFLAGS" | \ 3184 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3185 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3186 3187 ;; 3188 esac 3189 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3190 ;; 3191 esac 3192 ;; 3193 *) 3194 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3195 ;; 3196 esac 3197 ;; 3198yes) 3199 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3200 3201 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3202 3203 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3204 && test -z "${cf_tst_cflags}" \ 3205 && cf_fix_cppflags=no 3206 ;; 3207esac 3208done 3209 3210if test -n "$cf_new_cflags" ; then 3211 3212 CFLAGS="$CFLAGS $cf_new_cflags" 3213fi 3214 3215if test -n "$cf_new_cppflags" ; then 3216 3217 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3218fi 3219 3220if test -n "$cf_new_extra_cppflags" ; then 3221 3222 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3223fi 3224 3225fi 3226 3227 ;; 3228netbsd*) #(vi 3229 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3230 ;; 3231openbsd[4-9]*) #(vi 3232 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3233 cf_xopen_source="-D_BSD_SOURCE" 3234 cf_XOPEN_SOURCE=600 3235 ;; 3236openbsd*) #(vi 3237 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3238 ;; 3239osf[45]*) #(vi 3240 cf_xopen_source="-D_OSF_SOURCE" 3241 ;; 3242nto-qnx*) #(vi 3243 cf_xopen_source="-D_QNX_SOURCE" 3244 ;; 3245sco*) #(vi 3246 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3247 ;; 3248solaris2.*) #(vi 3249 cf_xopen_source="-D__EXTENSIONS__" 3250 ;; 3251*) 3252 3253echo "$as_me:3253: checking if we should define _XOPEN_SOURCE" >&5 3254echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3255if test "${cf_cv_xopen_source+set}" = set; then 3256 echo $ECHO_N "(cached) $ECHO_C" >&6 3257else 3258 3259 cat >conftest.$ac_ext <<_ACEOF 3260#line 3260 "configure" 3261#include "confdefs.h" 3262 3263#include <stdlib.h> 3264#include <string.h> 3265#include <sys/types.h> 3266 3267int 3268main () 3269{ 3270 3271#ifndef _XOPEN_SOURCE 3272make an error 3273#endif 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278rm -f conftest.$ac_objext 3279if { (eval echo "$as_me:3279: \"$ac_compile\"") >&5 3280 (eval $ac_compile) 2>&5 3281 ac_status=$? 3282 echo "$as_me:3282: \$? = $ac_status" >&5 3283 (exit $ac_status); } && 3284 { ac_try='test -s conftest.$ac_objext' 3285 { (eval echo "$as_me:3285: \"$ac_try\"") >&5 3286 (eval $ac_try) 2>&5 3287 ac_status=$? 3288 echo "$as_me:3288: \$? = $ac_status" >&5 3289 (exit $ac_status); }; }; then 3290 cf_cv_xopen_source=no 3291else 3292 echo "$as_me: failed program was:" >&5 3293cat conftest.$ac_ext >&5 3294cf_save="$CPPFLAGS" 3295 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3296 cat >conftest.$ac_ext <<_ACEOF 3297#line 3297 "configure" 3298#include "confdefs.h" 3299 3300#include <stdlib.h> 3301#include <string.h> 3302#include <sys/types.h> 3303 3304int 3305main () 3306{ 3307 3308#ifdef _XOPEN_SOURCE 3309make an error 3310#endif 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315rm -f conftest.$ac_objext 3316if { (eval echo "$as_me:3316: \"$ac_compile\"") >&5 3317 (eval $ac_compile) 2>&5 3318 ac_status=$? 3319 echo "$as_me:3319: \$? = $ac_status" >&5 3320 (exit $ac_status); } && 3321 { ac_try='test -s conftest.$ac_objext' 3322 { (eval echo "$as_me:3322: \"$ac_try\"") >&5 3323 (eval $ac_try) 2>&5 3324 ac_status=$? 3325 echo "$as_me:3325: \$? = $ac_status" >&5 3326 (exit $ac_status); }; }; then 3327 cf_cv_xopen_source=no 3328else 3329 echo "$as_me: failed program was:" >&5 3330cat conftest.$ac_ext >&5 3331cf_cv_xopen_source=$cf_XOPEN_SOURCE 3332fi 3333rm -f conftest.$ac_objext conftest.$ac_ext 3334 CPPFLAGS="$cf_save" 3335 3336fi 3337rm -f conftest.$ac_objext conftest.$ac_ext 3338 3339fi 3340echo "$as_me:3340: result: $cf_cv_xopen_source" >&5 3341echo "${ECHO_T}$cf_cv_xopen_source" >&6 3342 3343if test "$cf_cv_xopen_source" != no ; then 3344 3345CFLAGS=`echo "$CFLAGS" | \ 3346 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3347 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3348 3349CPPFLAGS=`echo "$CPPFLAGS" | \ 3350 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3351 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3352 3353 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3354 3355cf_fix_cppflags=no 3356cf_new_cflags= 3357cf_new_cppflags= 3358cf_new_extra_cppflags= 3359 3360for cf_add_cflags in $cf_temp_xopen_source 3361do 3362case $cf_fix_cppflags in 3363no) 3364 case $cf_add_cflags in #(vi 3365 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3366 case $cf_add_cflags in 3367 -D*) 3368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3369 3370 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3371 && test -z "${cf_tst_cflags}" \ 3372 && cf_fix_cppflags=yes 3373 3374 if test $cf_fix_cppflags = yes ; then 3375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3376 continue 3377 elif test "${cf_tst_cflags}" = "\"'" ; then 3378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3379 continue 3380 fi 3381 ;; 3382 esac 3383 case "$CPPFLAGS" in 3384 *$cf_add_cflags) #(vi 3385 ;; 3386 *) #(vi 3387 case $cf_add_cflags in #(vi 3388 -D*) 3389 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3390 3391CPPFLAGS=`echo "$CPPFLAGS" | \ 3392 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3393 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3394 3395 ;; 3396 esac 3397 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3398 ;; 3399 esac 3400 ;; 3401 *) 3402 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3403 ;; 3404 esac 3405 ;; 3406yes) 3407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3408 3409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3410 3411 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3412 && test -z "${cf_tst_cflags}" \ 3413 && cf_fix_cppflags=no 3414 ;; 3415esac 3416done 3417 3418if test -n "$cf_new_cflags" ; then 3419 3420 CFLAGS="$CFLAGS $cf_new_cflags" 3421fi 3422 3423if test -n "$cf_new_cppflags" ; then 3424 3425 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3426fi 3427 3428if test -n "$cf_new_extra_cppflags" ; then 3429 3430 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3431fi 3432 3433fi 3434 3435cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3436 3437cf_save_CFLAGS="$CFLAGS" 3438cf_save_CPPFLAGS="$CPPFLAGS" 3439 3440cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3441 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3442 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3443 3444cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3445 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3446 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3447 3448echo "$as_me:3448: checking if we should define _POSIX_C_SOURCE" >&5 3449echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3450if test "${cf_cv_posix_c_source+set}" = set; then 3451 echo $ECHO_N "(cached) $ECHO_C" >&6 3452else 3453 3454echo "${as_me:-configure}:3454: testing if the symbol is already defined go no further ..." 1>&5 3455 3456 cat >conftest.$ac_ext <<_ACEOF 3457#line 3457 "configure" 3458#include "confdefs.h" 3459#include <sys/types.h> 3460int 3461main () 3462{ 3463 3464#ifndef _POSIX_C_SOURCE 3465make an error 3466#endif 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471rm -f conftest.$ac_objext 3472if { (eval echo "$as_me:3472: \"$ac_compile\"") >&5 3473 (eval $ac_compile) 2>&5 3474 ac_status=$? 3475 echo "$as_me:3475: \$? = $ac_status" >&5 3476 (exit $ac_status); } && 3477 { ac_try='test -s conftest.$ac_objext' 3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5 3479 (eval $ac_try) 2>&5 3480 ac_status=$? 3481 echo "$as_me:3481: \$? = $ac_status" >&5 3482 (exit $ac_status); }; }; then 3483 cf_cv_posix_c_source=no 3484else 3485 echo "$as_me: failed program was:" >&5 3486cat conftest.$ac_ext >&5 3487cf_want_posix_source=no 3488 case .$cf_POSIX_C_SOURCE in #(vi 3489 .[12]??*) #(vi 3490 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3491 ;; 3492 .2) #(vi 3493 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3494 cf_want_posix_source=yes 3495 ;; 3496 .*) 3497 cf_want_posix_source=yes 3498 ;; 3499 esac 3500 if test "$cf_want_posix_source" = yes ; then 3501 cat >conftest.$ac_ext <<_ACEOF 3502#line 3502 "configure" 3503#include "confdefs.h" 3504#include <sys/types.h> 3505int 3506main () 3507{ 3508 3509#ifdef _POSIX_SOURCE 3510make an error 3511#endif 3512 ; 3513 return 0; 3514} 3515_ACEOF 3516rm -f conftest.$ac_objext 3517if { (eval echo "$as_me:3517: \"$ac_compile\"") >&5 3518 (eval $ac_compile) 2>&5 3519 ac_status=$? 3520 echo "$as_me:3520: \$? = $ac_status" >&5 3521 (exit $ac_status); } && 3522 { ac_try='test -s conftest.$ac_objext' 3523 { (eval echo "$as_me:3523: \"$ac_try\"") >&5 3524 (eval $ac_try) 2>&5 3525 ac_status=$? 3526 echo "$as_me:3526: \$? = $ac_status" >&5 3527 (exit $ac_status); }; }; then 3528 : 3529else 3530 echo "$as_me: failed program was:" >&5 3531cat conftest.$ac_ext >&5 3532cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3533fi 3534rm -f conftest.$ac_objext conftest.$ac_ext 3535 fi 3536 3537echo "${as_me:-configure}:3537: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3538 3539 CFLAGS="$cf_trim_CFLAGS" 3540 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3541 3542echo "${as_me:-configure}:3542: testing if the second compile does not leave our definition intact error ..." 1>&5 3543 3544 cat >conftest.$ac_ext <<_ACEOF 3545#line 3545 "configure" 3546#include "confdefs.h" 3547#include <sys/types.h> 3548int 3549main () 3550{ 3551 3552#ifndef _POSIX_C_SOURCE 3553make an error 3554#endif 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559rm -f conftest.$ac_objext 3560if { (eval echo "$as_me:3560: \"$ac_compile\"") >&5 3561 (eval $ac_compile) 2>&5 3562 ac_status=$? 3563 echo "$as_me:3563: \$? = $ac_status" >&5 3564 (exit $ac_status); } && 3565 { ac_try='test -s conftest.$ac_objext' 3566 { (eval echo "$as_me:3566: \"$ac_try\"") >&5 3567 (eval $ac_try) 2>&5 3568 ac_status=$? 3569 echo "$as_me:3569: \$? = $ac_status" >&5 3570 (exit $ac_status); }; }; then 3571 : 3572else 3573 echo "$as_me: failed program was:" >&5 3574cat conftest.$ac_ext >&5 3575cf_cv_posix_c_source=no 3576fi 3577rm -f conftest.$ac_objext conftest.$ac_ext 3578 CFLAGS="$cf_save_CFLAGS" 3579 CPPFLAGS="$cf_save_CPPFLAGS" 3580 3581fi 3582rm -f conftest.$ac_objext conftest.$ac_ext 3583 3584fi 3585echo "$as_me:3585: result: $cf_cv_posix_c_source" >&5 3586echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3587 3588if test "$cf_cv_posix_c_source" != no ; then 3589 CFLAGS="$cf_trim_CFLAGS" 3590 CPPFLAGS="$cf_trim_CPPFLAGS" 3591 3592cf_fix_cppflags=no 3593cf_new_cflags= 3594cf_new_cppflags= 3595cf_new_extra_cppflags= 3596 3597for cf_add_cflags in $cf_cv_posix_c_source 3598do 3599case $cf_fix_cppflags in 3600no) 3601 case $cf_add_cflags in #(vi 3602 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3603 case $cf_add_cflags in 3604 -D*) 3605 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3606 3607 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3608 && test -z "${cf_tst_cflags}" \ 3609 && cf_fix_cppflags=yes 3610 3611 if test $cf_fix_cppflags = yes ; then 3612 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3613 continue 3614 elif test "${cf_tst_cflags}" = "\"'" ; then 3615 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3616 continue 3617 fi 3618 ;; 3619 esac 3620 case "$CPPFLAGS" in 3621 *$cf_add_cflags) #(vi 3622 ;; 3623 *) #(vi 3624 case $cf_add_cflags in #(vi 3625 -D*) 3626 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3627 3628CPPFLAGS=`echo "$CPPFLAGS" | \ 3629 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3630 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3631 3632 ;; 3633 esac 3634 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3635 ;; 3636 esac 3637 ;; 3638 *) 3639 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3640 ;; 3641 esac 3642 ;; 3643yes) 3644 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3645 3646 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3647 3648 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3649 && test -z "${cf_tst_cflags}" \ 3650 && cf_fix_cppflags=no 3651 ;; 3652esac 3653done 3654 3655if test -n "$cf_new_cflags" ; then 3656 3657 CFLAGS="$CFLAGS $cf_new_cflags" 3658fi 3659 3660if test -n "$cf_new_cppflags" ; then 3661 3662 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3663fi 3664 3665if test -n "$cf_new_extra_cppflags" ; then 3666 3667 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3668fi 3669 3670fi 3671 3672 ;; 3673esac 3674 3675if test -n "$cf_xopen_source" ; then 3676 3677cf_fix_cppflags=no 3678cf_new_cflags= 3679cf_new_cppflags= 3680cf_new_extra_cppflags= 3681 3682for cf_add_cflags in $cf_xopen_source 3683do 3684case $cf_fix_cppflags in 3685no) 3686 case $cf_add_cflags in #(vi 3687 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3688 case $cf_add_cflags in 3689 -D*) 3690 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3691 3692 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3693 && test -z "${cf_tst_cflags}" \ 3694 && cf_fix_cppflags=yes 3695 3696 if test $cf_fix_cppflags = yes ; then 3697 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3698 continue 3699 elif test "${cf_tst_cflags}" = "\"'" ; then 3700 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3701 continue 3702 fi 3703 ;; 3704 esac 3705 case "$CPPFLAGS" in 3706 *$cf_add_cflags) #(vi 3707 ;; 3708 *) #(vi 3709 case $cf_add_cflags in #(vi 3710 -D*) 3711 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3712 3713CPPFLAGS=`echo "$CPPFLAGS" | \ 3714 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3715 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3716 3717 ;; 3718 esac 3719 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3720 ;; 3721 esac 3722 ;; 3723 *) 3724 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3725 ;; 3726 esac 3727 ;; 3728yes) 3729 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3730 3731 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3732 3733 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3734 && test -z "${cf_tst_cflags}" \ 3735 && cf_fix_cppflags=no 3736 ;; 3737esac 3738done 3739 3740if test -n "$cf_new_cflags" ; then 3741 3742 CFLAGS="$CFLAGS $cf_new_cflags" 3743fi 3744 3745if test -n "$cf_new_cppflags" ; then 3746 3747 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3748fi 3749 3750if test -n "$cf_new_extra_cppflags" ; then 3751 3752 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3753fi 3754 3755fi 3756 3757if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3758 echo "$as_me:3758: checking if _XOPEN_SOURCE really is set" >&5 3759echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3760 cat >conftest.$ac_ext <<_ACEOF 3761#line 3761 "configure" 3762#include "confdefs.h" 3763#include <stdlib.h> 3764int 3765main () 3766{ 3767 3768#ifndef _XOPEN_SOURCE 3769make an error 3770#endif 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775rm -f conftest.$ac_objext 3776if { (eval echo "$as_me:3776: \"$ac_compile\"") >&5 3777 (eval $ac_compile) 2>&5 3778 ac_status=$? 3779 echo "$as_me:3779: \$? = $ac_status" >&5 3780 (exit $ac_status); } && 3781 { ac_try='test -s conftest.$ac_objext' 3782 { (eval echo "$as_me:3782: \"$ac_try\"") >&5 3783 (eval $ac_try) 2>&5 3784 ac_status=$? 3785 echo "$as_me:3785: \$? = $ac_status" >&5 3786 (exit $ac_status); }; }; then 3787 cf_XOPEN_SOURCE_set=yes 3788else 3789 echo "$as_me: failed program was:" >&5 3790cat conftest.$ac_ext >&5 3791cf_XOPEN_SOURCE_set=no 3792fi 3793rm -f conftest.$ac_objext conftest.$ac_ext 3794 echo "$as_me:3794: result: $cf_XOPEN_SOURCE_set" >&5 3795echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3796 if test $cf_XOPEN_SOURCE_set = yes 3797 then 3798 cat >conftest.$ac_ext <<_ACEOF 3799#line 3799 "configure" 3800#include "confdefs.h" 3801#include <stdlib.h> 3802int 3803main () 3804{ 3805 3806#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3807make an error 3808#endif 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813rm -f conftest.$ac_objext 3814if { (eval echo "$as_me:3814: \"$ac_compile\"") >&5 3815 (eval $ac_compile) 2>&5 3816 ac_status=$? 3817 echo "$as_me:3817: \$? = $ac_status" >&5 3818 (exit $ac_status); } && 3819 { ac_try='test -s conftest.$ac_objext' 3820 { (eval echo "$as_me:3820: \"$ac_try\"") >&5 3821 (eval $ac_try) 2>&5 3822 ac_status=$? 3823 echo "$as_me:3823: \$? = $ac_status" >&5 3824 (exit $ac_status); }; }; then 3825 cf_XOPEN_SOURCE_set_ok=yes 3826else 3827 echo "$as_me: failed program was:" >&5 3828cat conftest.$ac_ext >&5 3829cf_XOPEN_SOURCE_set_ok=no 3830fi 3831rm -f conftest.$ac_objext conftest.$ac_ext 3832 if test $cf_XOPEN_SOURCE_set_ok = no 3833 then 3834 { echo "$as_me:3834: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3835echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3836 fi 3837 else 3838 3839echo "$as_me:3839: checking if we should define _XOPEN_SOURCE" >&5 3840echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3841if test "${cf_cv_xopen_source+set}" = set; then 3842 echo $ECHO_N "(cached) $ECHO_C" >&6 3843else 3844 3845 cat >conftest.$ac_ext <<_ACEOF 3846#line 3846 "configure" 3847#include "confdefs.h" 3848 3849#include <stdlib.h> 3850#include <string.h> 3851#include <sys/types.h> 3852 3853int 3854main () 3855{ 3856 3857#ifndef _XOPEN_SOURCE 3858make an error 3859#endif 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864rm -f conftest.$ac_objext 3865if { (eval echo "$as_me:3865: \"$ac_compile\"") >&5 3866 (eval $ac_compile) 2>&5 3867 ac_status=$? 3868 echo "$as_me:3868: \$? = $ac_status" >&5 3869 (exit $ac_status); } && 3870 { ac_try='test -s conftest.$ac_objext' 3871 { (eval echo "$as_me:3871: \"$ac_try\"") >&5 3872 (eval $ac_try) 2>&5 3873 ac_status=$? 3874 echo "$as_me:3874: \$? = $ac_status" >&5 3875 (exit $ac_status); }; }; then 3876 cf_cv_xopen_source=no 3877else 3878 echo "$as_me: failed program was:" >&5 3879cat conftest.$ac_ext >&5 3880cf_save="$CPPFLAGS" 3881 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3882 cat >conftest.$ac_ext <<_ACEOF 3883#line 3883 "configure" 3884#include "confdefs.h" 3885 3886#include <stdlib.h> 3887#include <string.h> 3888#include <sys/types.h> 3889 3890int 3891main () 3892{ 3893 3894#ifdef _XOPEN_SOURCE 3895make an error 3896#endif 3897 ; 3898 return 0; 3899} 3900_ACEOF 3901rm -f conftest.$ac_objext 3902if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5 3903 (eval $ac_compile) 2>&5 3904 ac_status=$? 3905 echo "$as_me:3905: \$? = $ac_status" >&5 3906 (exit $ac_status); } && 3907 { ac_try='test -s conftest.$ac_objext' 3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5 3909 (eval $ac_try) 2>&5 3910 ac_status=$? 3911 echo "$as_me:3911: \$? = $ac_status" >&5 3912 (exit $ac_status); }; }; then 3913 cf_cv_xopen_source=no 3914else 3915 echo "$as_me: failed program was:" >&5 3916cat conftest.$ac_ext >&5 3917cf_cv_xopen_source=$cf_XOPEN_SOURCE 3918fi 3919rm -f conftest.$ac_objext conftest.$ac_ext 3920 CPPFLAGS="$cf_save" 3921 3922fi 3923rm -f conftest.$ac_objext conftest.$ac_ext 3924 3925fi 3926echo "$as_me:3926: result: $cf_cv_xopen_source" >&5 3927echo "${ECHO_T}$cf_cv_xopen_source" >&6 3928 3929if test "$cf_cv_xopen_source" != no ; then 3930 3931CFLAGS=`echo "$CFLAGS" | \ 3932 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3933 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3934 3935CPPFLAGS=`echo "$CPPFLAGS" | \ 3936 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3937 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3938 3939 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3940 3941cf_fix_cppflags=no 3942cf_new_cflags= 3943cf_new_cppflags= 3944cf_new_extra_cppflags= 3945 3946for cf_add_cflags in $cf_temp_xopen_source 3947do 3948case $cf_fix_cppflags in 3949no) 3950 case $cf_add_cflags in #(vi 3951 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3952 case $cf_add_cflags in 3953 -D*) 3954 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3955 3956 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3957 && test -z "${cf_tst_cflags}" \ 3958 && cf_fix_cppflags=yes 3959 3960 if test $cf_fix_cppflags = yes ; then 3961 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3962 continue 3963 elif test "${cf_tst_cflags}" = "\"'" ; then 3964 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3965 continue 3966 fi 3967 ;; 3968 esac 3969 case "$CPPFLAGS" in 3970 *$cf_add_cflags) #(vi 3971 ;; 3972 *) #(vi 3973 case $cf_add_cflags in #(vi 3974 -D*) 3975 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3976 3977CPPFLAGS=`echo "$CPPFLAGS" | \ 3978 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3979 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3980 3981 ;; 3982 esac 3983 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3984 ;; 3985 esac 3986 ;; 3987 *) 3988 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3989 ;; 3990 esac 3991 ;; 3992yes) 3993 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3994 3995 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3996 3997 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3998 && test -z "${cf_tst_cflags}" \ 3999 && cf_fix_cppflags=no 4000 ;; 4001esac 4002done 4003 4004if test -n "$cf_new_cflags" ; then 4005 4006 CFLAGS="$CFLAGS $cf_new_cflags" 4007fi 4008 4009if test -n "$cf_new_cppflags" ; then 4010 4011 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4012fi 4013 4014if test -n "$cf_new_extra_cppflags" ; then 4015 4016 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4017fi 4018 4019fi 4020 4021 fi 4022fi 4023 4024# Check whether --enable-largefile or --disable-largefile was given. 4025if test "${enable_largefile+set}" = set; then 4026 enableval="$enable_largefile" 4027 4028fi; 4029if test "$enable_largefile" != no; then 4030 4031 echo "$as_me:4031: checking for special C compiler options needed for large files" >&5 4032echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 4033if test "${ac_cv_sys_largefile_CC+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 4035else 4036 ac_cv_sys_largefile_CC=no 4037 if test "$GCC" != yes; then 4038 ac_save_CC=$CC 4039 while :; do 4040 # IRIX 6.2 and later do not support large files by default, 4041 # so use the C compiler's -n32 option if that helps. 4042 cat >conftest.$ac_ext <<_ACEOF 4043#line 4043 "configure" 4044#include "confdefs.h" 4045#include <sys/types.h> 4046 /* Check that off_t can represent 2**63 - 1 correctly. 4047 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4048 since some C++ compilers masquerading as C compilers 4049 incorrectly reject 9223372036854775807. */ 4050#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4052 && LARGE_OFF_T % 2147483647 == 1) 4053 ? 1 : -1]; 4054int 4055main () 4056{ 4057 4058 ; 4059 return 0; 4060} 4061_ACEOF 4062 rm -f conftest.$ac_objext 4063if { (eval echo "$as_me:4063: \"$ac_compile\"") >&5 4064 (eval $ac_compile) 2>&5 4065 ac_status=$? 4066 echo "$as_me:4066: \$? = $ac_status" >&5 4067 (exit $ac_status); } && 4068 { ac_try='test -s conftest.$ac_objext' 4069 { (eval echo "$as_me:4069: \"$ac_try\"") >&5 4070 (eval $ac_try) 2>&5 4071 ac_status=$? 4072 echo "$as_me:4072: \$? = $ac_status" >&5 4073 (exit $ac_status); }; }; then 4074 break 4075else 4076 echo "$as_me: failed program was:" >&5 4077cat conftest.$ac_ext >&5 4078fi 4079rm -f conftest.$ac_objext 4080 CC="$CC -n32" 4081 rm -f conftest.$ac_objext 4082if { (eval echo "$as_me:4082: \"$ac_compile\"") >&5 4083 (eval $ac_compile) 2>&5 4084 ac_status=$? 4085 echo "$as_me:4085: \$? = $ac_status" >&5 4086 (exit $ac_status); } && 4087 { ac_try='test -s conftest.$ac_objext' 4088 { (eval echo "$as_me:4088: \"$ac_try\"") >&5 4089 (eval $ac_try) 2>&5 4090 ac_status=$? 4091 echo "$as_me:4091: \$? = $ac_status" >&5 4092 (exit $ac_status); }; }; then 4093 ac_cv_sys_largefile_CC=' -n32'; break 4094else 4095 echo "$as_me: failed program was:" >&5 4096cat conftest.$ac_ext >&5 4097fi 4098rm -f conftest.$ac_objext 4099 break 4100 done 4101 CC=$ac_save_CC 4102 rm -f conftest.$ac_ext 4103 fi 4104fi 4105echo "$as_me:4105: result: $ac_cv_sys_largefile_CC" >&5 4106echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 4107 if test "$ac_cv_sys_largefile_CC" != no; then 4108 CC=$CC$ac_cv_sys_largefile_CC 4109 fi 4110 4111 echo "$as_me:4111: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4112echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 4113if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4114 echo $ECHO_N "(cached) $ECHO_C" >&6 4115else 4116 while :; do 4117 ac_cv_sys_file_offset_bits=no 4118 cat >conftest.$ac_ext <<_ACEOF 4119#line 4119 "configure" 4120#include "confdefs.h" 4121#include <sys/types.h> 4122 /* Check that off_t can represent 2**63 - 1 correctly. 4123 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4124 since some C++ compilers masquerading as C compilers 4125 incorrectly reject 9223372036854775807. */ 4126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4128 && LARGE_OFF_T % 2147483647 == 1) 4129 ? 1 : -1]; 4130int 4131main () 4132{ 4133 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138rm -f conftest.$ac_objext 4139if { (eval echo "$as_me:4139: \"$ac_compile\"") >&5 4140 (eval $ac_compile) 2>&5 4141 ac_status=$? 4142 echo "$as_me:4142: \$? = $ac_status" >&5 4143 (exit $ac_status); } && 4144 { ac_try='test -s conftest.$ac_objext' 4145 { (eval echo "$as_me:4145: \"$ac_try\"") >&5 4146 (eval $ac_try) 2>&5 4147 ac_status=$? 4148 echo "$as_me:4148: \$? = $ac_status" >&5 4149 (exit $ac_status); }; }; then 4150 break 4151else 4152 echo "$as_me: failed program was:" >&5 4153cat conftest.$ac_ext >&5 4154fi 4155rm -f conftest.$ac_objext conftest.$ac_ext 4156 cat >conftest.$ac_ext <<_ACEOF 4157#line 4157 "configure" 4158#include "confdefs.h" 4159#define _FILE_OFFSET_BITS 64 4160#include <sys/types.h> 4161 /* Check that off_t can represent 2**63 - 1 correctly. 4162 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4163 since some C++ compilers masquerading as C compilers 4164 incorrectly reject 9223372036854775807. */ 4165#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4167 && LARGE_OFF_T % 2147483647 == 1) 4168 ? 1 : -1]; 4169int 4170main () 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177rm -f conftest.$ac_objext 4178if { (eval echo "$as_me:4178: \"$ac_compile\"") >&5 4179 (eval $ac_compile) 2>&5 4180 ac_status=$? 4181 echo "$as_me:4181: \$? = $ac_status" >&5 4182 (exit $ac_status); } && 4183 { ac_try='test -s conftest.$ac_objext' 4184 { (eval echo "$as_me:4184: \"$ac_try\"") >&5 4185 (eval $ac_try) 2>&5 4186 ac_status=$? 4187 echo "$as_me:4187: \$? = $ac_status" >&5 4188 (exit $ac_status); }; }; then 4189 ac_cv_sys_file_offset_bits=64; break 4190else 4191 echo "$as_me: failed program was:" >&5 4192cat conftest.$ac_ext >&5 4193fi 4194rm -f conftest.$ac_objext conftest.$ac_ext 4195 break 4196done 4197fi 4198echo "$as_me:4198: result: $ac_cv_sys_file_offset_bits" >&5 4199echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 4200if test "$ac_cv_sys_file_offset_bits" != no; then 4201 4202cat >>confdefs.h <<EOF 4203#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4204EOF 4205 4206fi 4207rm -rf conftest* 4208 echo "$as_me:4208: checking for _LARGE_FILES value needed for large files" >&5 4209echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 4210if test "${ac_cv_sys_large_files+set}" = set; then 4211 echo $ECHO_N "(cached) $ECHO_C" >&6 4212else 4213 while :; do 4214 ac_cv_sys_large_files=no 4215 cat >conftest.$ac_ext <<_ACEOF 4216#line 4216 "configure" 4217#include "confdefs.h" 4218#include <sys/types.h> 4219 /* Check that off_t can represent 2**63 - 1 correctly. 4220 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4221 since some C++ compilers masquerading as C compilers 4222 incorrectly reject 9223372036854775807. */ 4223#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4225 && LARGE_OFF_T % 2147483647 == 1) 4226 ? 1 : -1]; 4227int 4228main () 4229{ 4230 4231 ; 4232 return 0; 4233} 4234_ACEOF 4235rm -f conftest.$ac_objext 4236if { (eval echo "$as_me:4236: \"$ac_compile\"") >&5 4237 (eval $ac_compile) 2>&5 4238 ac_status=$? 4239 echo "$as_me:4239: \$? = $ac_status" >&5 4240 (exit $ac_status); } && 4241 { ac_try='test -s conftest.$ac_objext' 4242 { (eval echo "$as_me:4242: \"$ac_try\"") >&5 4243 (eval $ac_try) 2>&5 4244 ac_status=$? 4245 echo "$as_me:4245: \$? = $ac_status" >&5 4246 (exit $ac_status); }; }; then 4247 break 4248else 4249 echo "$as_me: failed program was:" >&5 4250cat conftest.$ac_ext >&5 4251fi 4252rm -f conftest.$ac_objext conftest.$ac_ext 4253 cat >conftest.$ac_ext <<_ACEOF 4254#line 4254 "configure" 4255#include "confdefs.h" 4256#define _LARGE_FILES 1 4257#include <sys/types.h> 4258 /* Check that off_t can represent 2**63 - 1 correctly. 4259 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4260 since some C++ compilers masquerading as C compilers 4261 incorrectly reject 9223372036854775807. */ 4262#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4264 && LARGE_OFF_T % 2147483647 == 1) 4265 ? 1 : -1]; 4266int 4267main () 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274rm -f conftest.$ac_objext 4275if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5 4276 (eval $ac_compile) 2>&5 4277 ac_status=$? 4278 echo "$as_me:4278: \$? = $ac_status" >&5 4279 (exit $ac_status); } && 4280 { ac_try='test -s conftest.$ac_objext' 4281 { (eval echo "$as_me:4281: \"$ac_try\"") >&5 4282 (eval $ac_try) 2>&5 4283 ac_status=$? 4284 echo "$as_me:4284: \$? = $ac_status" >&5 4285 (exit $ac_status); }; }; then 4286 ac_cv_sys_large_files=1; break 4287else 4288 echo "$as_me: failed program was:" >&5 4289cat conftest.$ac_ext >&5 4290fi 4291rm -f conftest.$ac_objext conftest.$ac_ext 4292 break 4293done 4294fi 4295echo "$as_me:4295: result: $ac_cv_sys_large_files" >&5 4296echo "${ECHO_T}$ac_cv_sys_large_files" >&6 4297if test "$ac_cv_sys_large_files" != no; then 4298 4299cat >>confdefs.h <<EOF 4300#define _LARGE_FILES $ac_cv_sys_large_files 4301EOF 4302 4303fi 4304rm -rf conftest* 4305fi 4306 4307 if test "$enable_largefile" != no ; then 4308 echo "$as_me:4308: checking for _LARGEFILE_SOURCE value needed for large files" >&5 4309echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 4310if test "${ac_cv_sys_largefile_source+set}" = set; then 4311 echo $ECHO_N "(cached) $ECHO_C" >&6 4312else 4313 while :; do 4314 ac_cv_sys_largefile_source=no 4315 cat >conftest.$ac_ext <<_ACEOF 4316#line 4316 "configure" 4317#include "confdefs.h" 4318#include <stdio.h> 4319int 4320main () 4321{ 4322return !fseeko; 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327rm -f conftest.$ac_objext 4328if { (eval echo "$as_me:4328: \"$ac_compile\"") >&5 4329 (eval $ac_compile) 2>&5 4330 ac_status=$? 4331 echo "$as_me:4331: \$? = $ac_status" >&5 4332 (exit $ac_status); } && 4333 { ac_try='test -s conftest.$ac_objext' 4334 { (eval echo "$as_me:4334: \"$ac_try\"") >&5 4335 (eval $ac_try) 2>&5 4336 ac_status=$? 4337 echo "$as_me:4337: \$? = $ac_status" >&5 4338 (exit $ac_status); }; }; then 4339 break 4340else 4341 echo "$as_me: failed program was:" >&5 4342cat conftest.$ac_ext >&5 4343fi 4344rm -f conftest.$ac_objext conftest.$ac_ext 4345 cat >conftest.$ac_ext <<_ACEOF 4346#line 4346 "configure" 4347#include "confdefs.h" 4348#define _LARGEFILE_SOURCE 1 4349#include <stdio.h> 4350int 4351main () 4352{ 4353return !fseeko; 4354 ; 4355 return 0; 4356} 4357_ACEOF 4358rm -f conftest.$ac_objext 4359if { (eval echo "$as_me:4359: \"$ac_compile\"") >&5 4360 (eval $ac_compile) 2>&5 4361 ac_status=$? 4362 echo "$as_me:4362: \$? = $ac_status" >&5 4363 (exit $ac_status); } && 4364 { ac_try='test -s conftest.$ac_objext' 4365 { (eval echo "$as_me:4365: \"$ac_try\"") >&5 4366 (eval $ac_try) 2>&5 4367 ac_status=$? 4368 echo "$as_me:4368: \$? = $ac_status" >&5 4369 (exit $ac_status); }; }; then 4370 ac_cv_sys_largefile_source=1; break 4371else 4372 echo "$as_me: failed program was:" >&5 4373cat conftest.$ac_ext >&5 4374fi 4375rm -f conftest.$ac_objext conftest.$ac_ext 4376 break 4377done 4378fi 4379echo "$as_me:4379: result: $ac_cv_sys_largefile_source" >&5 4380echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 4381if test "$ac_cv_sys_largefile_source" != no; then 4382 4383cat >>confdefs.h <<EOF 4384#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 4385EOF 4386 4387fi 4388rm -rf conftest* 4389 4390# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 4391# in glibc 2.1.3, but that breaks too many other things. 4392# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 4393echo "$as_me:4393: checking for fseeko" >&5 4394echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 4395if test "${ac_cv_func_fseeko+set}" = set; then 4396 echo $ECHO_N "(cached) $ECHO_C" >&6 4397else 4398 cat >conftest.$ac_ext <<_ACEOF 4399#line 4399 "configure" 4400#include "confdefs.h" 4401#include <stdio.h> 4402int 4403main () 4404{ 4405return fseeko && fseeko (stdin, 0, 0); 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410rm -f conftest.$ac_objext conftest$ac_exeext 4411if { (eval echo "$as_me:4411: \"$ac_link\"") >&5 4412 (eval $ac_link) 2>&5 4413 ac_status=$? 4414 echo "$as_me:4414: \$? = $ac_status" >&5 4415 (exit $ac_status); } && 4416 { ac_try='test -s conftest$ac_exeext' 4417 { (eval echo "$as_me:4417: \"$ac_try\"") >&5 4418 (eval $ac_try) 2>&5 4419 ac_status=$? 4420 echo "$as_me:4420: \$? = $ac_status" >&5 4421 (exit $ac_status); }; }; then 4422 ac_cv_func_fseeko=yes 4423else 4424 echo "$as_me: failed program was:" >&5 4425cat conftest.$ac_ext >&5 4426ac_cv_func_fseeko=no 4427fi 4428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4429fi 4430echo "$as_me:4430: result: $ac_cv_func_fseeko" >&5 4431echo "${ECHO_T}$ac_cv_func_fseeko" >&6 4432if test $ac_cv_func_fseeko = yes; then 4433 4434cat >>confdefs.h <<\EOF 4435#define HAVE_FSEEKO 1 4436EOF 4437 4438fi 4439 4440 # Normally we would collect these definitions in the config.h, 4441 # but (like _XOPEN_SOURCE), some environments rely on having these 4442 # defined before any of the system headers are included. Another 4443 # case comes up with C++, e.g., on AIX the compiler compiles the 4444 # header files by themselves before looking at the body files it is 4445 # told to compile. For ncurses, those header files do not include 4446 # the config.h 4447 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES " 4448 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE " 4449 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits " 4450 4451 echo "$as_me:4451: checking whether to use struct dirent64" >&5 4452echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 4453if test "${cf_cv_struct_dirent64+set}" = set; then 4454 echo $ECHO_N "(cached) $ECHO_C" >&6 4455else 4456 4457 cat >conftest.$ac_ext <<_ACEOF 4458#line 4458 "configure" 4459#include "confdefs.h" 4460 4461#include <sys/types.h> 4462#include <dirent.h> 4463 4464int 4465main () 4466{ 4467 4468 /* if transitional largefile support is setup, this is true */ 4469 extern struct dirent64 * readdir(DIR *); 4470 struct dirent64 *x = readdir((DIR *)0); 4471 struct dirent *y = readdir((DIR *)0); 4472 int z = x - y; 4473 4474 ; 4475 return 0; 4476} 4477_ACEOF 4478rm -f conftest.$ac_objext 4479if { (eval echo "$as_me:4479: \"$ac_compile\"") >&5 4480 (eval $ac_compile) 2>&5 4481 ac_status=$? 4482 echo "$as_me:4482: \$? = $ac_status" >&5 4483 (exit $ac_status); } && 4484 { ac_try='test -s conftest.$ac_objext' 4485 { (eval echo "$as_me:4485: \"$ac_try\"") >&5 4486 (eval $ac_try) 2>&5 4487 ac_status=$? 4488 echo "$as_me:4488: \$? = $ac_status" >&5 4489 (exit $ac_status); }; }; then 4490 cf_cv_struct_dirent64=yes 4491else 4492 echo "$as_me: failed program was:" >&5 4493cat conftest.$ac_ext >&5 4494cf_cv_struct_dirent64=no 4495fi 4496rm -f conftest.$ac_objext conftest.$ac_ext 4497 4498fi 4499echo "$as_me:4499: result: $cf_cv_struct_dirent64" >&5 4500echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 4501 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF 4502#define HAVE_STRUCT_DIRENT64 1 4503EOF 4504 4505 fi 4506 4507GCC_VERSION=none 4508if test "$GCC" = yes ; then 4509 echo "$as_me:4509: checking version of $CC" >&5 4510echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 4511 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 4512 test -z "$GCC_VERSION" && GCC_VERSION=unknown 4513 echo "$as_me:4513: result: $GCC_VERSION" >&5 4514echo "${ECHO_T}$GCC_VERSION" >&6 4515fi 4516 4517if ( test "$GCC" = yes || test "$GXX" = yes ) 4518then 4519echo "$as_me:4519: checking if you want to check for gcc warnings" >&5 4520echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4521 4522# Check whether --with-warnings or --without-warnings was given. 4523if test "${with_warnings+set}" = set; then 4524 withval="$with_warnings" 4525 cf_opt_with_warnings=$withval 4526else 4527 cf_opt_with_warnings=no 4528fi; 4529echo "$as_me:4529: result: $cf_opt_with_warnings" >&5 4530echo "${ECHO_T}$cf_opt_with_warnings" >&6 4531if test "$cf_opt_with_warnings" != no ; then 4532 4533if test "$GCC" = yes 4534then 4535cat > conftest.i <<EOF 4536#ifndef GCC_PRINTF 4537#define GCC_PRINTF 0 4538#endif 4539#ifndef GCC_SCANF 4540#define GCC_SCANF 0 4541#endif 4542#ifndef GCC_NORETURN 4543#define GCC_NORETURN /* nothing */ 4544#endif 4545#ifndef GCC_UNUSED 4546#define GCC_UNUSED /* nothing */ 4547#endif 4548EOF 4549if test "$GCC" = yes 4550then 4551 { echo "$as_me:4551: checking for $CC __attribute__ directives..." >&5 4552echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 4553cat > conftest.$ac_ext <<EOF 4554#line 4554 "${as_me:-configure}" 4555#include "confdefs.h" 4556#include "conftest.h" 4557#include "conftest.i" 4558#if GCC_PRINTF 4559#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4560#else 4561#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4562#endif 4563#if GCC_SCANF 4564#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4565#else 4566#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4567#endif 4568extern void wow(char *,...) GCC_SCANFLIKE(1,2); 4569extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4570extern void foo(void) GCC_NORETURN; 4571int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4572EOF 4573 cf_printf_attribute=no 4574 cf_scanf_attribute=no 4575 for cf_attribute in scanf printf unused noreturn 4576 do 4577 4578cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4579 4580 cf_directive="__attribute__(($cf_attribute))" 4581 echo "checking for $CC $cf_directive" 1>&5 4582 4583 case $cf_attribute in #(vi 4584 printf) #(vi 4585 cf_printf_attribute=yes 4586 cat >conftest.h <<EOF 4587#define GCC_$cf_ATTRIBUTE 1 4588EOF 4589 ;; 4590 scanf) #(vi 4591 cf_scanf_attribute=yes 4592 cat >conftest.h <<EOF 4593#define GCC_$cf_ATTRIBUTE 1 4594EOF 4595 ;; 4596 *) #(vi 4597 cat >conftest.h <<EOF 4598#define GCC_$cf_ATTRIBUTE $cf_directive 4599EOF 4600 ;; 4601 esac 4602 4603 if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5 4604 (eval $ac_compile) 2>&5 4605 ac_status=$? 4606 echo "$as_me:4606: \$? = $ac_status" >&5 4607 (exit $ac_status); }; then 4608 test -n "$verbose" && echo "$as_me:4608: result: ... $cf_attribute" >&5 4609echo "${ECHO_T}... $cf_attribute" >&6 4610 cat conftest.h >>confdefs.h 4611 case $cf_attribute in #(vi 4612 printf) #(vi 4613 if test "$cf_printf_attribute" = no ; then 4614 cat >>confdefs.h <<EOF 4615#define GCC_PRINTFLIKE(fmt,var) /* nothing */ 4616EOF 4617 else 4618 cat >>confdefs.h <<EOF 4619#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4620EOF 4621 fi 4622 ;; 4623 scanf) #(vi 4624 if test "$cf_scanf_attribute" = no ; then 4625 cat >>confdefs.h <<EOF 4626#define GCC_SCANFLIKE(fmt,var) /* nothing */ 4627EOF 4628 else 4629 cat >>confdefs.h <<EOF 4630#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4631EOF 4632 fi 4633 ;; 4634 esac 4635 fi 4636 done 4637else 4638 fgrep define conftest.i >>confdefs.h 4639fi 4640rm -rf conftest* 4641fi 4642 4643INTEL_COMPILER=no 4644 4645if test "$GCC" = yes ; then 4646 case $host_os in 4647 linux*|gnu*) 4648 echo "$as_me:4648: checking if this is really Intel C compiler" >&5 4649echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4650 cf_save_CFLAGS="$CFLAGS" 4651 CFLAGS="$CFLAGS -no-gcc" 4652 cat >conftest.$ac_ext <<_ACEOF 4653#line 4653 "configure" 4654#include "confdefs.h" 4655 4656int 4657main () 4658{ 4659 4660#ifdef __INTEL_COMPILER 4661#else 4662make an error 4663#endif 4664 4665 ; 4666 return 0; 4667} 4668_ACEOF 4669rm -f conftest.$ac_objext 4670if { (eval echo "$as_me:4670: \"$ac_compile\"") >&5 4671 (eval $ac_compile) 2>&5 4672 ac_status=$? 4673 echo "$as_me:4673: \$? = $ac_status" >&5 4674 (exit $ac_status); } && 4675 { ac_try='test -s conftest.$ac_objext' 4676 { (eval echo "$as_me:4676: \"$ac_try\"") >&5 4677 (eval $ac_try) 2>&5 4678 ac_status=$? 4679 echo "$as_me:4679: \$? = $ac_status" >&5 4680 (exit $ac_status); }; }; then 4681 INTEL_COMPILER=yes 4682cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 4683 4684else 4685 echo "$as_me: failed program was:" >&5 4686cat conftest.$ac_ext >&5 4687fi 4688rm -f conftest.$ac_objext conftest.$ac_ext 4689 CFLAGS="$cf_save_CFLAGS" 4690 echo "$as_me:4690: result: $INTEL_COMPILER" >&5 4691echo "${ECHO_T}$INTEL_COMPILER" >&6 4692 ;; 4693 esac 4694fi 4695 4696cat > conftest.$ac_ext <<EOF 4697#line 4697 "${as_me:-configure}" 4698int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4699EOF 4700 4701if test "$INTEL_COMPILER" = yes 4702then 4703# The "-wdXXX" options suppress warnings: 4704# remark #1419: external declaration in primary source file 4705# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4706# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4707# remark #193: zero used for undefined preprocessing identifier 4708# remark #593: variable "curs_sb_left_arrow" was set but never used 4709# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4710# remark #869: parameter "tw" was never referenced 4711# remark #981: operands are evaluated in unspecified order 4712# warning #279: controlling expression is constant 4713 4714 { echo "$as_me:4714: checking for $CC warning options..." >&5 4715echo "$as_me: checking for $CC warning options..." >&6;} 4716 cf_save_CFLAGS="$CFLAGS" 4717 EXTRA_CFLAGS="-Wall" 4718 for cf_opt in \ 4719 wd1419 \ 4720 wd1683 \ 4721 wd1684 \ 4722 wd193 \ 4723 wd593 \ 4724 wd279 \ 4725 wd810 \ 4726 wd869 \ 4727 wd981 4728 do 4729 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4730 if { (eval echo "$as_me:4730: \"$ac_compile\"") >&5 4731 (eval $ac_compile) 2>&5 4732 ac_status=$? 4733 echo "$as_me:4733: \$? = $ac_status" >&5 4734 (exit $ac_status); }; then 4735 test -n "$verbose" && echo "$as_me:4735: result: ... -$cf_opt" >&5 4736echo "${ECHO_T}... -$cf_opt" >&6 4737 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4738 fi 4739 done 4740 CFLAGS="$cf_save_CFLAGS" 4741 4742elif test "$GCC" = yes 4743then 4744 { echo "$as_me:4744: checking for $CC warning options..." >&5 4745echo "$as_me: checking for $CC warning options..." >&6;} 4746 cf_save_CFLAGS="$CFLAGS" 4747 EXTRA_CFLAGS= 4748 cf_warn_CONST="" 4749 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4750 for cf_opt in W Wall \ 4751 Wbad-function-cast \ 4752 Wcast-align \ 4753 Wcast-qual \ 4754 Winline \ 4755 Wmissing-declarations \ 4756 Wmissing-prototypes \ 4757 Wnested-externs \ 4758 Wpointer-arith \ 4759 Wshadow \ 4760 Wstrict-prototypes \ 4761 Wundef $cf_warn_CONST 4762 do 4763 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4764 if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5 4765 (eval $ac_compile) 2>&5 4766 ac_status=$? 4767 echo "$as_me:4767: \$? = $ac_status" >&5 4768 (exit $ac_status); }; then 4769 test -n "$verbose" && echo "$as_me:4769: result: ... -$cf_opt" >&5 4770echo "${ECHO_T}... -$cf_opt" >&6 4771 case $cf_opt in #(vi 4772 Wcast-qual) #(vi 4773 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4774 ;; 4775 Winline) #(vi 4776 case $GCC_VERSION in 4777 [34].*) 4778 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4779 4780echo "${as_me:-configure}:4780: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4781 4782 continue;; 4783 esac 4784 ;; 4785 esac 4786 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4787 fi 4788 done 4789 CFLAGS="$cf_save_CFLAGS" 4790fi 4791rm -rf conftest* 4792 4793fi 4794fi 4795 4796# Check whether --with-package or --without-package was given. 4797if test "${with_package+set}" = set; then 4798 withval="$with_package" 4799 PACKAGE=$withval 4800else 4801 PACKAGE=dialog 4802fi; 4803 4804if test -f $srcdir/VERSION ; then 4805 echo "$as_me:4805: checking for package version" >&5 4806echo $ECHO_N "checking for package version... $ECHO_C" >&6 4807 4808 # if there are not enough fields, cut returns the last one... 4809 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 4810 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2` 4811 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3` 4812 4813 # this is how CF_BUNDLED_INTL uses $VERSION: 4814 VERSION="$cf_field1" 4815 4816 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'` 4817 test -z "$VERSION_MAJOR" && { { echo "$as_me:4817: error: missing major-version" >&5 4818echo "$as_me: error: missing major-version" >&2;} 4819 { (exit 1); exit 1; }; } 4820 4821 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'` 4822 test -z "$VERSION_MINOR" && { { echo "$as_me:4822: error: missing minor-version" >&5 4823echo "$as_me: error: missing minor-version" >&2;} 4824 { (exit 1); exit 1; }; } 4825 4826 echo "$as_me:4826: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5 4827echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6 4828 4829 echo "$as_me:4829: checking for package patch date" >&5 4830echo $ECHO_N "checking for package patch date... $ECHO_C" >&6 4831 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'` 4832 case .$VERSION_PATCH in 4833 .) 4834 { { echo "$as_me:4834: error: missing patch-date $VERSION_PATCH" >&5 4835echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;} 4836 { (exit 1); exit 1; }; } 4837 ;; 4838 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) 4839 ;; 4840 *) 4841 { { echo "$as_me:4841: error: illegal patch-date $VERSION_PATCH" >&5 4842echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;} 4843 { (exit 1); exit 1; }; } 4844 ;; 4845 esac 4846 echo "$as_me:4846: result: $VERSION_PATCH" >&5 4847echo "${ECHO_T}$VERSION_PATCH" >&6 4848else 4849 { { echo "$as_me:4849: error: did not find $srcdir/VERSION" >&5 4850echo "$as_me: error: did not find $srcdir/VERSION" >&2;} 4851 { (exit 1); exit 1; }; } 4852fi 4853 4854# show the actual data that we have for versions: 4855test -n "$verbose" && echo " VERSION $VERSION" 1>&6 4856 4857echo "${as_me:-configure}:4857: testing VERSION $VERSION ..." 1>&5 4858 4859test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6 4860 4861echo "${as_me:-configure}:4861: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5 4862 4863test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6 4864 4865echo "${as_me:-configure}:4865: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5 4866 4867test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6 4868 4869echo "${as_me:-configure}:4869: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5 4870 4871 cf_PACKAGE=dialog 4872 PACKAGE=$PACKAGE 4873 cat >>confdefs.h <<EOF 4874#define PACKAGE "$PACKAGE" 4875EOF 4876 4877cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4878 4879 cat >>confdefs.h <<EOF 4880#define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}" 4881EOF 4882 4883 cat >>confdefs.h <<EOF 4884#define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH} 4885EOF 4886 4887# Check whether --enable-header-subdir or --disable-header-subdir was given. 4888if test "${enable_header_subdir+set}" = set; then 4889 enableval="$enable_header_subdir" 4890 SUB_INC=$enableval 4891else 4892 SUB_INC=no 4893fi; 4894 4895EXTRAOBJS="" 4896echo "$as_me:4896: checking for ANSI C header files" >&5 4897echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4898if test "${ac_cv_header_stdc+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 cat >conftest.$ac_ext <<_ACEOF 4902#line 4902 "configure" 4903#include "confdefs.h" 4904#include <stdlib.h> 4905#include <stdarg.h> 4906#include <string.h> 4907#include <float.h> 4908 4909_ACEOF 4910if { (eval echo "$as_me:4910: \"$ac_cpp conftest.$ac_ext\"") >&5 4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4912 ac_status=$? 4913 egrep -v '^ *\+' conftest.er1 >conftest.err 4914 rm -f conftest.er1 4915 cat conftest.err >&5 4916 echo "$as_me:4916: \$? = $ac_status" >&5 4917 (exit $ac_status); } >/dev/null; then 4918 if test -s conftest.err; then 4919 ac_cpp_err=$ac_c_preproc_warn_flag 4920 else 4921 ac_cpp_err= 4922 fi 4923else 4924 ac_cpp_err=yes 4925fi 4926if test -z "$ac_cpp_err"; then 4927 ac_cv_header_stdc=yes 4928else 4929 echo "$as_me: failed program was:" >&5 4930 cat conftest.$ac_ext >&5 4931 ac_cv_header_stdc=no 4932fi 4933rm -f conftest.err conftest.$ac_ext 4934 4935if test $ac_cv_header_stdc = yes; then 4936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4937 cat >conftest.$ac_ext <<_ACEOF 4938#line 4938 "configure" 4939#include "confdefs.h" 4940#include <string.h> 4941 4942_ACEOF 4943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4944 egrep "memchr" >/dev/null 2>&1; then 4945 : 4946else 4947 ac_cv_header_stdc=no 4948fi 4949rm -rf conftest* 4950 4951fi 4952 4953if test $ac_cv_header_stdc = yes; then 4954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4955 cat >conftest.$ac_ext <<_ACEOF 4956#line 4956 "configure" 4957#include "confdefs.h" 4958#include <stdlib.h> 4959 4960_ACEOF 4961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4962 egrep "free" >/dev/null 2>&1; then 4963 : 4964else 4965 ac_cv_header_stdc=no 4966fi 4967rm -rf conftest* 4968 4969fi 4970 4971if test $ac_cv_header_stdc = yes; then 4972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4973 if test "$cross_compiling" = yes; then 4974 : 4975else 4976 cat >conftest.$ac_ext <<_ACEOF 4977#line 4977 "configure" 4978#include "confdefs.h" 4979#include <ctype.h> 4980#if ((' ' & 0x0FF) == 0x020) 4981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4983#else 4984# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4985 || ('j' <= (c) && (c) <= 'r') \ 4986 || ('s' <= (c) && (c) <= 'z')) 4987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4988#endif 4989 4990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4991int 4992main () 4993{ 4994 int i; 4995 for (i = 0; i < 256; i++) 4996 if (XOR (islower (i), ISLOWER (i)) 4997 || toupper (i) != TOUPPER (i)) 4998 $ac_main_return(2); 4999 $ac_main_return (0); 5000} 5001_ACEOF 5002rm -f conftest$ac_exeext 5003if { (eval echo "$as_me:5003: \"$ac_link\"") >&5 5004 (eval $ac_link) 2>&5 5005 ac_status=$? 5006 echo "$as_me:5006: \$? = $ac_status" >&5 5007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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 : 5014else 5015 echo "$as_me: program exited with status $ac_status" >&5 5016echo "$as_me: failed program was:" >&5 5017cat conftest.$ac_ext >&5 5018ac_cv_header_stdc=no 5019fi 5020rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5021fi 5022fi 5023fi 5024echo "$as_me:5024: result: $ac_cv_header_stdc" >&5 5025echo "${ECHO_T}$ac_cv_header_stdc" >&6 5026if test $ac_cv_header_stdc = yes; then 5027 5028cat >>confdefs.h <<\EOF 5029#define STDC_HEADERS 1 5030EOF 5031 5032fi 5033 5034echo "$as_me:5034: checking for inline" >&5 5035echo $ECHO_N "checking for inline... $ECHO_C" >&6 5036if test "${ac_cv_c_inline+set}" = set; then 5037 echo $ECHO_N "(cached) $ECHO_C" >&6 5038else 5039 ac_cv_c_inline=no 5040for ac_kw in inline __inline__ __inline; do 5041 cat >conftest.$ac_ext <<_ACEOF 5042#line 5042 "configure" 5043#include "confdefs.h" 5044#ifndef __cplusplus 5045static $ac_kw int static_foo () {return 0; } 5046$ac_kw int foo () {return 0; } 5047#endif 5048 5049_ACEOF 5050rm -f conftest.$ac_objext 5051if { (eval echo "$as_me:5051: \"$ac_compile\"") >&5 5052 (eval $ac_compile) 2>&5 5053 ac_status=$? 5054 echo "$as_me:5054: \$? = $ac_status" >&5 5055 (exit $ac_status); } && 5056 { ac_try='test -s conftest.$ac_objext' 5057 { (eval echo "$as_me:5057: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:5060: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 ac_cv_c_inline=$ac_kw; break 5063else 5064 echo "$as_me: failed program was:" >&5 5065cat conftest.$ac_ext >&5 5066fi 5067rm -f conftest.$ac_objext conftest.$ac_ext 5068done 5069 5070fi 5071echo "$as_me:5071: result: $ac_cv_c_inline" >&5 5072echo "${ECHO_T}$ac_cv_c_inline" >&6 5073case $ac_cv_c_inline in 5074 inline | yes) ;; 5075 no) 5076cat >>confdefs.h <<\EOF 5077#define inline 5078EOF 5079 ;; 5080 *) cat >>confdefs.h <<EOF 5081#define inline $ac_cv_c_inline 5082EOF 5083 ;; 5084esac 5085 5086# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5087 5088for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5089 inttypes.h stdint.h unistd.h 5090do 5091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5092echo "$as_me:5092: checking for $ac_header" >&5 5093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5094if eval "test \"\${$as_ac_Header+set}\" = set"; then 5095 echo $ECHO_N "(cached) $ECHO_C" >&6 5096else 5097 cat >conftest.$ac_ext <<_ACEOF 5098#line 5098 "configure" 5099#include "confdefs.h" 5100$ac_includes_default 5101#include <$ac_header> 5102_ACEOF 5103rm -f conftest.$ac_objext 5104if { (eval echo "$as_me:5104: \"$ac_compile\"") >&5 5105 (eval $ac_compile) 2>&5 5106 ac_status=$? 5107 echo "$as_me:5107: \$? = $ac_status" >&5 5108 (exit $ac_status); } && 5109 { ac_try='test -s conftest.$ac_objext' 5110 { (eval echo "$as_me:5110: \"$ac_try\"") >&5 5111 (eval $ac_try) 2>&5 5112 ac_status=$? 5113 echo "$as_me:5113: \$? = $ac_status" >&5 5114 (exit $ac_status); }; }; then 5115 eval "$as_ac_Header=yes" 5116else 5117 echo "$as_me: failed program was:" >&5 5118cat conftest.$ac_ext >&5 5119eval "$as_ac_Header=no" 5120fi 5121rm -f conftest.$ac_objext conftest.$ac_ext 5122fi 5123echo "$as_me:5123: result: `eval echo '${'$as_ac_Header'}'`" >&5 5124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5125if test `eval echo '${'$as_ac_Header'}'` = yes; then 5126 cat >>confdefs.h <<EOF 5127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5128EOF 5129 5130fi 5131done 5132 5133echo "$as_me:5133: checking for off_t" >&5 5134echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5135if test "${ac_cv_type_off_t+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 cat >conftest.$ac_ext <<_ACEOF 5139#line 5139 "configure" 5140#include "confdefs.h" 5141$ac_includes_default 5142int 5143main () 5144{ 5145if ((off_t *) 0) 5146 return 0; 5147if (sizeof (off_t)) 5148 return 0; 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153rm -f conftest.$ac_objext 5154if { (eval echo "$as_me:5154: \"$ac_compile\"") >&5 5155 (eval $ac_compile) 2>&5 5156 ac_status=$? 5157 echo "$as_me:5157: \$? = $ac_status" >&5 5158 (exit $ac_status); } && 5159 { ac_try='test -s conftest.$ac_objext' 5160 { (eval echo "$as_me:5160: \"$ac_try\"") >&5 5161 (eval $ac_try) 2>&5 5162 ac_status=$? 5163 echo "$as_me:5163: \$? = $ac_status" >&5 5164 (exit $ac_status); }; }; then 5165 ac_cv_type_off_t=yes 5166else 5167 echo "$as_me: failed program was:" >&5 5168cat conftest.$ac_ext >&5 5169ac_cv_type_off_t=no 5170fi 5171rm -f conftest.$ac_objext conftest.$ac_ext 5172fi 5173echo "$as_me:5173: result: $ac_cv_type_off_t" >&5 5174echo "${ECHO_T}$ac_cv_type_off_t" >&6 5175if test $ac_cv_type_off_t = yes; then 5176 : 5177else 5178 5179cat >>confdefs.h <<EOF 5180#define off_t long 5181EOF 5182 5183fi 5184 5185echo "$as_me:5185: checking for size_t" >&5 5186echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5187if test "${ac_cv_type_size_t+set}" = set; then 5188 echo $ECHO_N "(cached) $ECHO_C" >&6 5189else 5190 cat >conftest.$ac_ext <<_ACEOF 5191#line 5191 "configure" 5192#include "confdefs.h" 5193$ac_includes_default 5194int 5195main () 5196{ 5197if ((size_t *) 0) 5198 return 0; 5199if (sizeof (size_t)) 5200 return 0; 5201 ; 5202 return 0; 5203} 5204_ACEOF 5205rm -f conftest.$ac_objext 5206if { (eval echo "$as_me:5206: \"$ac_compile\"") >&5 5207 (eval $ac_compile) 2>&5 5208 ac_status=$? 5209 echo "$as_me:5209: \$? = $ac_status" >&5 5210 (exit $ac_status); } && 5211 { ac_try='test -s conftest.$ac_objext' 5212 { (eval echo "$as_me:5212: \"$ac_try\"") >&5 5213 (eval $ac_try) 2>&5 5214 ac_status=$? 5215 echo "$as_me:5215: \$? = $ac_status" >&5 5216 (exit $ac_status); }; }; then 5217 ac_cv_type_size_t=yes 5218else 5219 echo "$as_me: failed program was:" >&5 5220cat conftest.$ac_ext >&5 5221ac_cv_type_size_t=no 5222fi 5223rm -f conftest.$ac_objext conftest.$ac_ext 5224fi 5225echo "$as_me:5225: result: $ac_cv_type_size_t" >&5 5226echo "${ECHO_T}$ac_cv_type_size_t" >&6 5227if test $ac_cv_type_size_t = yes; then 5228 : 5229else 5230 5231cat >>confdefs.h <<EOF 5232#define size_t unsigned 5233EOF 5234 5235fi 5236 5237# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5238# for constant arguments. Useless! 5239echo "$as_me:5239: checking for working alloca.h" >&5 5240echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5241if test "${ac_cv_working_alloca_h+set}" = set; then 5242 echo $ECHO_N "(cached) $ECHO_C" >&6 5243else 5244 cat >conftest.$ac_ext <<_ACEOF 5245#line 5245 "configure" 5246#include "confdefs.h" 5247#include <alloca.h> 5248int 5249main () 5250{ 5251char *p = (char *) alloca (2 * sizeof (int)); 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256rm -f conftest.$ac_objext conftest$ac_exeext 5257if { (eval echo "$as_me:5257: \"$ac_link\"") >&5 5258 (eval $ac_link) 2>&5 5259 ac_status=$? 5260 echo "$as_me:5260: \$? = $ac_status" >&5 5261 (exit $ac_status); } && 5262 { ac_try='test -s conftest$ac_exeext' 5263 { (eval echo "$as_me:5263: \"$ac_try\"") >&5 5264 (eval $ac_try) 2>&5 5265 ac_status=$? 5266 echo "$as_me:5266: \$? = $ac_status" >&5 5267 (exit $ac_status); }; }; then 5268 ac_cv_working_alloca_h=yes 5269else 5270 echo "$as_me: failed program was:" >&5 5271cat conftest.$ac_ext >&5 5272ac_cv_working_alloca_h=no 5273fi 5274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5275fi 5276echo "$as_me:5276: result: $ac_cv_working_alloca_h" >&5 5277echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5278if test $ac_cv_working_alloca_h = yes; then 5279 5280cat >>confdefs.h <<\EOF 5281#define HAVE_ALLOCA_H 1 5282EOF 5283 5284fi 5285 5286echo "$as_me:5286: checking for alloca" >&5 5287echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5288if test "${ac_cv_func_alloca_works+set}" = set; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 cat >conftest.$ac_ext <<_ACEOF 5292#line 5292 "configure" 5293#include "confdefs.h" 5294#ifdef __GNUC__ 5295# define alloca __builtin_alloca 5296#else 5297# ifdef _MSC_VER 5298# include <malloc.h> 5299# define alloca _alloca 5300# else 5301# if HAVE_ALLOCA_H 5302# include <alloca.h> 5303# else 5304# ifdef _AIX 5305 #pragma alloca 5306# else 5307# ifndef alloca /* predefined by HP cc +Olibcalls */ 5308char *alloca (); 5309# endif 5310# endif 5311# endif 5312# endif 5313#endif 5314 5315int 5316main () 5317{ 5318char *p = (char *) alloca (1); 5319 ; 5320 return 0; 5321} 5322_ACEOF 5323rm -f conftest.$ac_objext conftest$ac_exeext 5324if { (eval echo "$as_me:5324: \"$ac_link\"") >&5 5325 (eval $ac_link) 2>&5 5326 ac_status=$? 5327 echo "$as_me:5327: \$? = $ac_status" >&5 5328 (exit $ac_status); } && 5329 { ac_try='test -s conftest$ac_exeext' 5330 { (eval echo "$as_me:5330: \"$ac_try\"") >&5 5331 (eval $ac_try) 2>&5 5332 ac_status=$? 5333 echo "$as_me:5333: \$? = $ac_status" >&5 5334 (exit $ac_status); }; }; then 5335 ac_cv_func_alloca_works=yes 5336else 5337 echo "$as_me: failed program was:" >&5 5338cat conftest.$ac_ext >&5 5339ac_cv_func_alloca_works=no 5340fi 5341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5342fi 5343echo "$as_me:5343: result: $ac_cv_func_alloca_works" >&5 5344echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5345 5346if test $ac_cv_func_alloca_works = yes; then 5347 5348cat >>confdefs.h <<\EOF 5349#define HAVE_ALLOCA 1 5350EOF 5351 5352else 5353 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5354# that cause trouble. Some versions do not even contain alloca or 5355# contain a buggy version. If you still want to use their alloca, 5356# use ar to extract alloca.o from them instead of compiling alloca.c. 5357 5358ALLOCA=alloca.$ac_objext 5359 5360cat >>confdefs.h <<\EOF 5361#define C_ALLOCA 1 5362EOF 5363 5364echo "$as_me:5364: checking whether \`alloca.c' needs Cray hooks" >&5 5365echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5366if test "${ac_cv_os_cray+set}" = set; then 5367 echo $ECHO_N "(cached) $ECHO_C" >&6 5368else 5369 cat >conftest.$ac_ext <<_ACEOF 5370#line 5370 "configure" 5371#include "confdefs.h" 5372#if defined(CRAY) && ! defined(CRAY2) 5373webecray 5374#else 5375wenotbecray 5376#endif 5377 5378_ACEOF 5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5380 egrep "webecray" >/dev/null 2>&1; then 5381 ac_cv_os_cray=yes 5382else 5383 ac_cv_os_cray=no 5384fi 5385rm -rf conftest* 5386 5387fi 5388echo "$as_me:5388: result: $ac_cv_os_cray" >&5 5389echo "${ECHO_T}$ac_cv_os_cray" >&6 5390if test $ac_cv_os_cray = yes; then 5391 for ac_func in _getb67 GETB67 getb67; do 5392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5393echo "$as_me:5393: checking for $ac_func" >&5 5394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5395if eval "test \"\${$as_ac_var+set}\" = set"; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 cat >conftest.$ac_ext <<_ACEOF 5399#line 5399 "configure" 5400#include "confdefs.h" 5401/* System header to define __stub macros and hopefully few prototypes, 5402 which can conflict with char $ac_func (); below. */ 5403#include <assert.h> 5404/* Override any gcc2 internal prototype to avoid an error. */ 5405#ifdef __cplusplus 5406extern "C" 5407#endif 5408/* We use char because int might match the return type of a gcc2 5409 builtin and then its argument prototype would still apply. */ 5410char $ac_func (); 5411char (*f) (); 5412 5413int 5414main () 5415{ 5416/* The GNU C library defines this for functions which it implements 5417 to always fail with ENOSYS. Some functions are actually named 5418 something starting with __ and the normal name is an alias. */ 5419#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5420choke me 5421#else 5422f = $ac_func; 5423#endif 5424 5425 ; 5426 return 0; 5427} 5428_ACEOF 5429rm -f conftest.$ac_objext conftest$ac_exeext 5430if { (eval echo "$as_me:5430: \"$ac_link\"") >&5 5431 (eval $ac_link) 2>&5 5432 ac_status=$? 5433 echo "$as_me:5433: \$? = $ac_status" >&5 5434 (exit $ac_status); } && 5435 { ac_try='test -s conftest$ac_exeext' 5436 { (eval echo "$as_me:5436: \"$ac_try\"") >&5 5437 (eval $ac_try) 2>&5 5438 ac_status=$? 5439 echo "$as_me:5439: \$? = $ac_status" >&5 5440 (exit $ac_status); }; }; then 5441 eval "$as_ac_var=yes" 5442else 5443 echo "$as_me: failed program was:" >&5 5444cat conftest.$ac_ext >&5 5445eval "$as_ac_var=no" 5446fi 5447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5448fi 5449echo "$as_me:5449: result: `eval echo '${'$as_ac_var'}'`" >&5 5450echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5451if test `eval echo '${'$as_ac_var'}'` = yes; then 5452 5453cat >>confdefs.h <<EOF 5454#define CRAY_STACKSEG_END $ac_func 5455EOF 5456 5457 break 5458fi 5459 5460 done 5461fi 5462 5463echo "$as_me:5463: checking stack direction for C alloca" >&5 5464echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5465if test "${ac_cv_c_stack_direction+set}" = set; then 5466 echo $ECHO_N "(cached) $ECHO_C" >&6 5467else 5468 if test "$cross_compiling" = yes; then 5469 ac_cv_c_stack_direction=0 5470else 5471 cat >conftest.$ac_ext <<_ACEOF 5472#line 5472 "configure" 5473#include "confdefs.h" 5474int 5475find_stack_direction () 5476{ 5477 static char *addr = 0; 5478 auto char dummy; 5479 if (addr == 0) 5480 { 5481 addr = &dummy; 5482 return find_stack_direction (); 5483 } 5484 else 5485 return (&dummy > addr) ? 1 : -1; 5486} 5487 5488int 5489main () 5490{ 5491 $ac_main_return (find_stack_direction () < 0); 5492} 5493_ACEOF 5494rm -f conftest$ac_exeext 5495if { (eval echo "$as_me:5495: \"$ac_link\"") >&5 5496 (eval $ac_link) 2>&5 5497 ac_status=$? 5498 echo "$as_me:5498: \$? = $ac_status" >&5 5499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5500 { (eval echo "$as_me:5500: \"$ac_try\"") >&5 5501 (eval $ac_try) 2>&5 5502 ac_status=$? 5503 echo "$as_me:5503: \$? = $ac_status" >&5 5504 (exit $ac_status); }; }; then 5505 ac_cv_c_stack_direction=1 5506else 5507 echo "$as_me: program exited with status $ac_status" >&5 5508echo "$as_me: failed program was:" >&5 5509cat conftest.$ac_ext >&5 5510ac_cv_c_stack_direction=-1 5511fi 5512rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5513fi 5514fi 5515echo "$as_me:5515: result: $ac_cv_c_stack_direction" >&5 5516echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5517 5518cat >>confdefs.h <<EOF 5519#define STACK_DIRECTION $ac_cv_c_stack_direction 5520EOF 5521 5522fi 5523 5524for ac_header in stdlib.h unistd.h 5525do 5526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5527echo "$as_me:5527: checking for $ac_header" >&5 5528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5529if eval "test \"\${$as_ac_Header+set}\" = set"; then 5530 echo $ECHO_N "(cached) $ECHO_C" >&6 5531else 5532 cat >conftest.$ac_ext <<_ACEOF 5533#line 5533 "configure" 5534#include "confdefs.h" 5535#include <$ac_header> 5536_ACEOF 5537if { (eval echo "$as_me:5537: \"$ac_cpp conftest.$ac_ext\"") >&5 5538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5539 ac_status=$? 5540 egrep -v '^ *\+' conftest.er1 >conftest.err 5541 rm -f conftest.er1 5542 cat conftest.err >&5 5543 echo "$as_me:5543: \$? = $ac_status" >&5 5544 (exit $ac_status); } >/dev/null; then 5545 if test -s conftest.err; then 5546 ac_cpp_err=$ac_c_preproc_warn_flag 5547 else 5548 ac_cpp_err= 5549 fi 5550else 5551 ac_cpp_err=yes 5552fi 5553if test -z "$ac_cpp_err"; then 5554 eval "$as_ac_Header=yes" 5555else 5556 echo "$as_me: failed program was:" >&5 5557 cat conftest.$ac_ext >&5 5558 eval "$as_ac_Header=no" 5559fi 5560rm -f conftest.err conftest.$ac_ext 5561fi 5562echo "$as_me:5562: result: `eval echo '${'$as_ac_Header'}'`" >&5 5563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5564if test `eval echo '${'$as_ac_Header'}'` = yes; then 5565 cat >>confdefs.h <<EOF 5566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5567EOF 5568 5569fi 5570done 5571 5572for ac_func in getpagesize 5573do 5574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5575echo "$as_me:5575: checking for $ac_func" >&5 5576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5577if eval "test \"\${$as_ac_var+set}\" = set"; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 cat >conftest.$ac_ext <<_ACEOF 5581#line 5581 "configure" 5582#include "confdefs.h" 5583/* System header to define __stub macros and hopefully few prototypes, 5584 which can conflict with char $ac_func (); below. */ 5585#include <assert.h> 5586/* Override any gcc2 internal prototype to avoid an error. */ 5587#ifdef __cplusplus 5588extern "C" 5589#endif 5590/* We use char because int might match the return type of a gcc2 5591 builtin and then its argument prototype would still apply. */ 5592char $ac_func (); 5593char (*f) (); 5594 5595int 5596main () 5597{ 5598/* The GNU C library defines this for functions which it implements 5599 to always fail with ENOSYS. Some functions are actually named 5600 something starting with __ and the normal name is an alias. */ 5601#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5602choke me 5603#else 5604f = $ac_func; 5605#endif 5606 5607 ; 5608 return 0; 5609} 5610_ACEOF 5611rm -f conftest.$ac_objext conftest$ac_exeext 5612if { (eval echo "$as_me:5612: \"$ac_link\"") >&5 5613 (eval $ac_link) 2>&5 5614 ac_status=$? 5615 echo "$as_me:5615: \$? = $ac_status" >&5 5616 (exit $ac_status); } && 5617 { ac_try='test -s conftest$ac_exeext' 5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5 5619 (eval $ac_try) 2>&5 5620 ac_status=$? 5621 echo "$as_me:5621: \$? = $ac_status" >&5 5622 (exit $ac_status); }; }; then 5623 eval "$as_ac_var=yes" 5624else 5625 echo "$as_me: failed program was:" >&5 5626cat conftest.$ac_ext >&5 5627eval "$as_ac_var=no" 5628fi 5629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5630fi 5631echo "$as_me:5631: result: `eval echo '${'$as_ac_var'}'`" >&5 5632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5633if test `eval echo '${'$as_ac_var'}'` = yes; then 5634 cat >>confdefs.h <<EOF 5635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5636EOF 5637 5638fi 5639done 5640 5641echo "$as_me:5641: checking for working mmap" >&5 5642echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5643if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5644 echo $ECHO_N "(cached) $ECHO_C" >&6 5645else 5646 if test "$cross_compiling" = yes; then 5647 ac_cv_func_mmap_fixed_mapped=no 5648else 5649 cat >conftest.$ac_ext <<_ACEOF 5650#line 5650 "configure" 5651#include "confdefs.h" 5652$ac_includes_default 5653/* Thanks to Mike Haertel and Jim Avera for this test. 5654 Here is a matrix of mmap possibilities: 5655 mmap private not fixed 5656 mmap private fixed at somewhere currently unmapped 5657 mmap private fixed at somewhere already mapped 5658 mmap shared not fixed 5659 mmap shared fixed at somewhere currently unmapped 5660 mmap shared fixed at somewhere already mapped 5661 For private mappings, we should verify that changes cannot be read() 5662 back from the file, nor mmap's back from the file at a different 5663 address. (There have been systems where private was not correctly 5664 implemented like the infamous i386 svr4.0, and systems where the 5665 VM page cache was not coherent with the file system buffer cache 5666 like early versions of FreeBSD and possibly contemporary NetBSD.) 5667 For shared mappings, we should conversely verify that changes get 5668 propogated back to all the places they're supposed to be. 5669 5670 Grep wants private fixed already mapped. 5671 The main things grep needs to know about mmap are: 5672 * does it exist and is it safe to write into the mmap'd area 5673 * how to use it (BSD variants) */ 5674 5675#include <fcntl.h> 5676#include <sys/mman.h> 5677 5678#if !STDC_HEADERS && !HAVE_STDLIB_H 5679char *malloc (); 5680#endif 5681 5682/* This mess was copied from the GNU getpagesize.h. */ 5683#if !HAVE_GETPAGESIZE 5684/* Assume that all systems that can run configure have sys/param.h. */ 5685# if !HAVE_SYS_PARAM_H 5686# define HAVE_SYS_PARAM_H 1 5687# endif 5688 5689# ifdef _SC_PAGESIZE 5690# define getpagesize() sysconf(_SC_PAGESIZE) 5691# else /* no _SC_PAGESIZE */ 5692# if HAVE_SYS_PARAM_H 5693# include <sys/param.h> 5694# ifdef EXEC_PAGESIZE 5695# define getpagesize() EXEC_PAGESIZE 5696# else /* no EXEC_PAGESIZE */ 5697# ifdef NBPG 5698# define getpagesize() NBPG * CLSIZE 5699# ifndef CLSIZE 5700# define CLSIZE 1 5701# endif /* no CLSIZE */ 5702# else /* no NBPG */ 5703# ifdef NBPC 5704# define getpagesize() NBPC 5705# else /* no NBPC */ 5706# ifdef PAGESIZE 5707# define getpagesize() PAGESIZE 5708# endif /* PAGESIZE */ 5709# endif /* no NBPC */ 5710# endif /* no NBPG */ 5711# endif /* no EXEC_PAGESIZE */ 5712# else /* no HAVE_SYS_PARAM_H */ 5713# define getpagesize() 8192 /* punt totally */ 5714# endif /* no HAVE_SYS_PARAM_H */ 5715# endif /* no _SC_PAGESIZE */ 5716 5717#endif /* no HAVE_GETPAGESIZE */ 5718 5719int 5720main () 5721{ 5722 char *data, *data2, *data3; 5723 int i, pagesize; 5724 int fd; 5725 5726 pagesize = getpagesize (); 5727 5728 /* First, make a file with some known garbage in it. */ 5729 data = (char *) malloc (pagesize); 5730 if (!data) 5731 $ac_main_return (1); 5732 for (i = 0; i < pagesize; ++i) 5733 *(data + i) = rand (); 5734 umask (0); 5735 fd = creat ("conftest.mmap", 0600); 5736 if (fd < 0) 5737 $ac_main_return (1); 5738 if (write (fd, data, pagesize) != pagesize) 5739 $ac_main_return (1); 5740 close (fd); 5741 5742 /* Next, try to mmap the file at a fixed address which already has 5743 something else allocated at it. If we can, also make sure that 5744 we see the same garbage. */ 5745 fd = open ("conftest.mmap", O_RDWR); 5746 if (fd < 0) 5747 $ac_main_return (1); 5748 data2 = (char *) malloc (2 * pagesize); 5749 if (!data2) 5750 $ac_main_return (1); 5751 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5753 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5754 $ac_main_return (1); 5755 for (i = 0; i < pagesize; ++i) 5756 if (*(data + i) != *(data2 + i)) 5757 $ac_main_return (1); 5758 5759 /* Finally, make sure that changes to the mapped area do not 5760 percolate back to the file as seen by read(). (This is a bug on 5761 some variants of i386 svr4.0.) */ 5762 for (i = 0; i < pagesize; ++i) 5763 *(data2 + i) = *(data2 + i) + 1; 5764 data3 = (char *) malloc (pagesize); 5765 if (!data3) 5766 $ac_main_return (1); 5767 if (read (fd, data3, pagesize) != pagesize) 5768 $ac_main_return (1); 5769 for (i = 0; i < pagesize; ++i) 5770 if (*(data + i) != *(data3 + i)) 5771 $ac_main_return (1); 5772 close (fd); 5773 $ac_main_return (0); 5774} 5775_ACEOF 5776rm -f conftest$ac_exeext 5777if { (eval echo "$as_me:5777: \"$ac_link\"") >&5 5778 (eval $ac_link) 2>&5 5779 ac_status=$? 5780 echo "$as_me:5780: \$? = $ac_status" >&5 5781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5782 { (eval echo "$as_me:5782: \"$ac_try\"") >&5 5783 (eval $ac_try) 2>&5 5784 ac_status=$? 5785 echo "$as_me:5785: \$? = $ac_status" >&5 5786 (exit $ac_status); }; }; then 5787 ac_cv_func_mmap_fixed_mapped=yes 5788else 5789 echo "$as_me: program exited with status $ac_status" >&5 5790echo "$as_me: failed program was:" >&5 5791cat conftest.$ac_ext >&5 5792ac_cv_func_mmap_fixed_mapped=no 5793fi 5794rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5795fi 5796fi 5797echo "$as_me:5797: result: $ac_cv_func_mmap_fixed_mapped" >&5 5798echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5799if test $ac_cv_func_mmap_fixed_mapped = yes; then 5800 5801cat >>confdefs.h <<\EOF 5802#define HAVE_MMAP 1 5803EOF 5804 5805fi 5806rm -f conftest.mmap 5807 5808 echo "$as_me:5808: checking whether we are using the GNU C Library 2.1 or newer" >&5 5809echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 5810if test "${ac_cv_gnu_library_2_1+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812else 5813 cat >conftest.$ac_ext <<_ACEOF 5814#line 5814 "configure" 5815#include "confdefs.h" 5816 5817#include <features.h> 5818#ifdef __GNU_LIBRARY__ 5819 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5820 Lucky GNU user 5821 #endif 5822#endif 5823 5824_ACEOF 5825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5826 egrep "Lucky GNU user" >/dev/null 2>&1; then 5827 ac_cv_gnu_library_2_1=yes 5828else 5829 ac_cv_gnu_library_2_1=no 5830fi 5831rm -rf conftest* 5832 5833fi 5834echo "$as_me:5834: result: $ac_cv_gnu_library_2_1" >&5 5835echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 5836 5837 GLIBC21="$ac_cv_gnu_library_2_1" 5838 5839cf_makefile=makefile 5840 5841test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'` 5842 5843# Allow override of "config.h" definition: 5844: ${CONFIG_H:=config.h} 5845 5846if test -z "$PACKAGE" ; then 5847 { { echo "$as_me:5847: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&5 5848echo "$as_me: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&2;} 5849 { (exit 1); exit 1; }; } 5850fi 5851 5852if test -z "$VERSION" ; then 5853if test -f $srcdir/VERSION ; then 5854 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 5855else 5856 VERSION=unknown 5857fi 5858fi 5859 5860for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 5861stdlib.h string.h unistd.h sys/param.h 5862do 5863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5864echo "$as_me:5864: checking for $ac_header" >&5 5865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5866if eval "test \"\${$as_ac_Header+set}\" = set"; then 5867 echo $ECHO_N "(cached) $ECHO_C" >&6 5868else 5869 cat >conftest.$ac_ext <<_ACEOF 5870#line 5870 "configure" 5871#include "confdefs.h" 5872#include <$ac_header> 5873_ACEOF 5874if { (eval echo "$as_me:5874: \"$ac_cpp conftest.$ac_ext\"") >&5 5875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5876 ac_status=$? 5877 egrep -v '^ *\+' conftest.er1 >conftest.err 5878 rm -f conftest.er1 5879 cat conftest.err >&5 5880 echo "$as_me:5880: \$? = $ac_status" >&5 5881 (exit $ac_status); } >/dev/null; then 5882 if test -s conftest.err; then 5883 ac_cpp_err=$ac_c_preproc_warn_flag 5884 else 5885 ac_cpp_err= 5886 fi 5887else 5888 ac_cpp_err=yes 5889fi 5890if test -z "$ac_cpp_err"; then 5891 eval "$as_ac_Header=yes" 5892else 5893 echo "$as_me: failed program was:" >&5 5894 cat conftest.$ac_ext >&5 5895 eval "$as_ac_Header=no" 5896fi 5897rm -f conftest.err conftest.$ac_ext 5898fi 5899echo "$as_me:5899: result: `eval echo '${'$as_ac_Header'}'`" >&5 5900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5901if test `eval echo '${'$as_ac_Header'}'` = yes; then 5902 cat >>confdefs.h <<EOF 5903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5904EOF 5905 5906fi 5907done 5908 5909for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ 5910getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ 5911strdup strtoul tsearch __argz_count __argz_stringify __argz_next 5912do 5913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5914echo "$as_me:5914: checking for $ac_func" >&5 5915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5916if eval "test \"\${$as_ac_var+set}\" = set"; then 5917 echo $ECHO_N "(cached) $ECHO_C" >&6 5918else 5919 cat >conftest.$ac_ext <<_ACEOF 5920#line 5920 "configure" 5921#include "confdefs.h" 5922/* System header to define __stub macros and hopefully few prototypes, 5923 which can conflict with char $ac_func (); below. */ 5924#include <assert.h> 5925/* Override any gcc2 internal prototype to avoid an error. */ 5926#ifdef __cplusplus 5927extern "C" 5928#endif 5929/* We use char because int might match the return type of a gcc2 5930 builtin and then its argument prototype would still apply. */ 5931char $ac_func (); 5932char (*f) (); 5933 5934int 5935main () 5936{ 5937/* The GNU C library defines this for functions which it implements 5938 to always fail with ENOSYS. Some functions are actually named 5939 something starting with __ and the normal name is an alias. */ 5940#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5941choke me 5942#else 5943f = $ac_func; 5944#endif 5945 5946 ; 5947 return 0; 5948} 5949_ACEOF 5950rm -f conftest.$ac_objext conftest$ac_exeext 5951if { (eval echo "$as_me:5951: \"$ac_link\"") >&5 5952 (eval $ac_link) 2>&5 5953 ac_status=$? 5954 echo "$as_me:5954: \$? = $ac_status" >&5 5955 (exit $ac_status); } && 5956 { ac_try='test -s conftest$ac_exeext' 5957 { (eval echo "$as_me:5957: \"$ac_try\"") >&5 5958 (eval $ac_try) 2>&5 5959 ac_status=$? 5960 echo "$as_me:5960: \$? = $ac_status" >&5 5961 (exit $ac_status); }; }; then 5962 eval "$as_ac_var=yes" 5963else 5964 echo "$as_me: failed program was:" >&5 5965cat conftest.$ac_ext >&5 5966eval "$as_ac_var=no" 5967fi 5968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5969fi 5970echo "$as_me:5970: result: `eval echo '${'$as_ac_var'}'`" >&5 5971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5972if test `eval echo '${'$as_ac_var'}'` = yes; then 5973 cat >>confdefs.h <<EOF 5974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5975EOF 5976 5977fi 5978done 5979 5980# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 5981if test "${with_libiconv_prefix+set}" = set; then 5982 withval="$with_libiconv_prefix" 5983 5984 case "$withval" in #(vi 5985 no) #(vi 5986 ;; 5987 yes) #(vi 5988 ;; 5989 *) 5990 5991for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do 5992 if test -d $cf_searchpath/include; then 5993 5994if test -n "$cf_searchpath/include" ; then 5995 for cf_add_incdir in $cf_searchpath/include 5996 do 5997 while test $cf_add_incdir != /usr/include 5998 do 5999 if test -d $cf_add_incdir 6000 then 6001 cf_have_incdir=no 6002 if test -n "$CFLAGS$CPPFLAGS" ; then 6003 # a loop is needed to ensure we can add subdirs of existing dirs 6004 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6005 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6006 cf_have_incdir=yes; break 6007 fi 6008 done 6009 fi 6010 6011 if test "$cf_have_incdir" = no ; then 6012 if test "$cf_add_incdir" = /usr/local/include ; then 6013 if test "$GCC" = yes 6014 then 6015 cf_save_CPPFLAGS=$CPPFLAGS 6016 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6017 cat >conftest.$ac_ext <<_ACEOF 6018#line 6018 "configure" 6019#include "confdefs.h" 6020#include <stdio.h> 6021int 6022main () 6023{ 6024printf("Hello") 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029rm -f conftest.$ac_objext 6030if { (eval echo "$as_me:6030: \"$ac_compile\"") >&5 6031 (eval $ac_compile) 2>&5 6032 ac_status=$? 6033 echo "$as_me:6033: \$? = $ac_status" >&5 6034 (exit $ac_status); } && 6035 { ac_try='test -s conftest.$ac_objext' 6036 { (eval echo "$as_me:6036: \"$ac_try\"") >&5 6037 (eval $ac_try) 2>&5 6038 ac_status=$? 6039 echo "$as_me:6039: \$? = $ac_status" >&5 6040 (exit $ac_status); }; }; then 6041 : 6042else 6043 echo "$as_me: failed program was:" >&5 6044cat conftest.$ac_ext >&5 6045cf_have_incdir=yes 6046fi 6047rm -f conftest.$ac_objext conftest.$ac_ext 6048 CPPFLAGS=$cf_save_CPPFLAGS 6049 fi 6050 fi 6051 fi 6052 6053 if test "$cf_have_incdir" = no ; then 6054 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6055 6056echo "${as_me:-configure}:6056: testing adding $cf_add_incdir to include-path ..." 1>&5 6057 6058 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6059 6060 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6061 test "$cf_top_incdir" = "$cf_add_incdir" && break 6062 cf_add_incdir="$cf_top_incdir" 6063 else 6064 break 6065 fi 6066 fi 6067 done 6068 done 6069fi 6070 6071 elif test -d $cf_searchpath/../include ; then 6072 6073if test -n "$cf_searchpath/../include" ; then 6074 for cf_add_incdir in $cf_searchpath/../include 6075 do 6076 while test $cf_add_incdir != /usr/include 6077 do 6078 if test -d $cf_add_incdir 6079 then 6080 cf_have_incdir=no 6081 if test -n "$CFLAGS$CPPFLAGS" ; then 6082 # a loop is needed to ensure we can add subdirs of existing dirs 6083 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6084 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6085 cf_have_incdir=yes; break 6086 fi 6087 done 6088 fi 6089 6090 if test "$cf_have_incdir" = no ; then 6091 if test "$cf_add_incdir" = /usr/local/include ; then 6092 if test "$GCC" = yes 6093 then 6094 cf_save_CPPFLAGS=$CPPFLAGS 6095 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6096 cat >conftest.$ac_ext <<_ACEOF 6097#line 6097 "configure" 6098#include "confdefs.h" 6099#include <stdio.h> 6100int 6101main () 6102{ 6103printf("Hello") 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108rm -f conftest.$ac_objext 6109if { (eval echo "$as_me:6109: \"$ac_compile\"") >&5 6110 (eval $ac_compile) 2>&5 6111 ac_status=$? 6112 echo "$as_me:6112: \$? = $ac_status" >&5 6113 (exit $ac_status); } && 6114 { ac_try='test -s conftest.$ac_objext' 6115 { (eval echo "$as_me:6115: \"$ac_try\"") >&5 6116 (eval $ac_try) 2>&5 6117 ac_status=$? 6118 echo "$as_me:6118: \$? = $ac_status" >&5 6119 (exit $ac_status); }; }; then 6120 : 6121else 6122 echo "$as_me: failed program was:" >&5 6123cat conftest.$ac_ext >&5 6124cf_have_incdir=yes 6125fi 6126rm -f conftest.$ac_objext conftest.$ac_ext 6127 CPPFLAGS=$cf_save_CPPFLAGS 6128 fi 6129 fi 6130 fi 6131 6132 if test "$cf_have_incdir" = no ; then 6133 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6134 6135echo "${as_me:-configure}:6135: testing adding $cf_add_incdir to include-path ..." 1>&5 6136 6137 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6138 6139 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6140 test "$cf_top_incdir" = "$cf_add_incdir" && break 6141 cf_add_incdir="$cf_top_incdir" 6142 else 6143 break 6144 fi 6145 fi 6146 done 6147 done 6148fi 6149 6150 else 6151{ { echo "$as_me:6151: error: cannot find libiconv under $withval" >&5 6152echo "$as_me: error: cannot find libiconv under $withval" >&2;} 6153 { (exit 1); exit 1; }; } 6154 fi 6155 if test -d $cf_searchpath/lib; then 6156 6157if test -n "$cf_searchpath/lib" ; then 6158 for cf_add_libdir in $cf_searchpath/lib 6159 do 6160 if test $cf_add_libdir = /usr/lib ; then 6161 : 6162 elif test -d $cf_add_libdir 6163 then 6164 cf_have_libdir=no 6165 if test -n "$LDFLAGS$LIBS" ; then 6166 # a loop is needed to ensure we can add subdirs of existing dirs 6167 for cf_test_libdir in $LDFLAGS $LIBS ; do 6168 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6169 cf_have_libdir=yes; break 6170 fi 6171 done 6172 fi 6173 if test "$cf_have_libdir" = no ; then 6174 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6175 6176echo "${as_me:-configure}:6176: testing adding $cf_add_libdir to library-path ..." 1>&5 6177 6178 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6179 fi 6180 fi 6181 done 6182fi 6183 6184 elif test -d $cf_searchpath ; then 6185 6186if test -n "$cf_searchpath" ; then 6187 for cf_add_libdir in $cf_searchpath 6188 do 6189 if test $cf_add_libdir = /usr/lib ; then 6190 : 6191 elif test -d $cf_add_libdir 6192 then 6193 cf_have_libdir=no 6194 if test -n "$LDFLAGS$LIBS" ; then 6195 # a loop is needed to ensure we can add subdirs of existing dirs 6196 for cf_test_libdir in $LDFLAGS $LIBS ; do 6197 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6198 cf_have_libdir=yes; break 6199 fi 6200 done 6201 fi 6202 if test "$cf_have_libdir" = no ; then 6203 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6204 6205echo "${as_me:-configure}:6205: testing adding $cf_add_libdir to library-path ..." 1>&5 6206 6207 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6208 fi 6209 fi 6210 done 6211fi 6212 6213 else 6214{ { echo "$as_me:6214: error: cannot find libiconv under $withval" >&5 6215echo "$as_me: error: cannot find libiconv under $withval" >&2;} 6216 { (exit 1); exit 1; }; } 6217 fi 6218done 6219 6220 ;; 6221 esac 6222 6223fi; 6224 6225 echo "$as_me:6225: checking for iconv" >&5 6226echo $ECHO_N "checking for iconv... $ECHO_C" >&6 6227if test "${am_cv_func_iconv+set}" = set; then 6228 echo $ECHO_N "(cached) $ECHO_C" >&6 6229else 6230 6231# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 6232# will be set on completion of the AC_TRY_LINK below. 6233cf_cv_header_path_iconv= 6234cf_cv_library_path_iconv= 6235 6236echo "${as_me:-configure}:6236: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5 6237 6238cf_save_LIBS="$LIBS" 6239 6240cat >conftest.$ac_ext <<_ACEOF 6241#line 6241 "configure" 6242#include "confdefs.h" 6243 6244#include <stdlib.h> 6245#include <iconv.h> 6246 6247int 6248main () 6249{ 6250 6251 iconv_t cd = iconv_open("",""); 6252 iconv(cd,NULL,NULL,NULL,NULL); 6253 iconv_close(cd); 6254 6255 ; 6256 return 0; 6257} 6258_ACEOF 6259rm -f conftest.$ac_objext conftest$ac_exeext 6260if { (eval echo "$as_me:6260: \"$ac_link\"") >&5 6261 (eval $ac_link) 2>&5 6262 ac_status=$? 6263 echo "$as_me:6263: \$? = $ac_status" >&5 6264 (exit $ac_status); } && 6265 { ac_try='test -s conftest$ac_exeext' 6266 { (eval echo "$as_me:6266: \"$ac_try\"") >&5 6267 (eval $ac_try) 2>&5 6268 ac_status=$? 6269 echo "$as_me:6269: \$? = $ac_status" >&5 6270 (exit $ac_status); }; }; then 6271 6272 cf_cv_find_linkage_iconv=yes 6273 cf_cv_header_path_iconv=/usr/include 6274 cf_cv_library_path_iconv=/usr/lib 6275 6276else 6277 echo "$as_me: failed program was:" >&5 6278cat conftest.$ac_ext >&5 6279 6280LIBS="-liconv $cf_save_LIBS" 6281 6282cat >conftest.$ac_ext <<_ACEOF 6283#line 6283 "configure" 6284#include "confdefs.h" 6285 6286#include <stdlib.h> 6287#include <iconv.h> 6288 6289int 6290main () 6291{ 6292 6293 iconv_t cd = iconv_open("",""); 6294 iconv(cd,NULL,NULL,NULL,NULL); 6295 iconv_close(cd); 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301rm -f conftest.$ac_objext conftest$ac_exeext 6302if { (eval echo "$as_me:6302: \"$ac_link\"") >&5 6303 (eval $ac_link) 2>&5 6304 ac_status=$? 6305 echo "$as_me:6305: \$? = $ac_status" >&5 6306 (exit $ac_status); } && 6307 { ac_try='test -s conftest$ac_exeext' 6308 { (eval echo "$as_me:6308: \"$ac_try\"") >&5 6309 (eval $ac_try) 2>&5 6310 ac_status=$? 6311 echo "$as_me:6311: \$? = $ac_status" >&5 6312 (exit $ac_status); }; }; then 6313 6314 cf_cv_find_linkage_iconv=yes 6315 cf_cv_header_path_iconv=/usr/include 6316 cf_cv_library_path_iconv=/usr/lib 6317 cf_cv_library_file_iconv="-liconv" 6318 6319else 6320 echo "$as_me: failed program was:" >&5 6321cat conftest.$ac_ext >&5 6322 6323 cf_cv_find_linkage_iconv=no 6324 LIBS="$cf_save_LIBS" 6325 6326 test -n "$verbose" && echo " find linkage for iconv library" 1>&6 6327 6328echo "${as_me:-configure}:6328: testing find linkage for iconv library ..." 1>&5 6329 6330echo "${as_me:-configure}:6330: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5 6331 6332 cf_save_CPPFLAGS="$CPPFLAGS" 6333 cf_test_CPPFLAGS="$CPPFLAGS" 6334 6335cf_search= 6336 6337# collect the current set of include-directories from compiler flags 6338cf_header_path_list="" 6339if test -n "${CFLAGS}${CPPFLAGS}" ; then 6340 for cf_header_path in $CPPFLAGS $CFLAGS 6341 do 6342 case $cf_header_path in #(vi 6343 -I*) 6344 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 6345 6346test "$cf_header_path" != "NONE" && \ 6347test -d "$cf_header_path" && \ 6348 { 6349 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 6350 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 6351 test -d $cf_header_path/include/iconv && cf_search="$cf_search $cf_header_path/include/iconv" 6352 test -d $cf_header_path/include/iconv/include && cf_search="$cf_search $cf_header_path/include/iconv/include" 6353 test -d $cf_header_path/iconv/include && cf_search="$cf_search $cf_header_path/iconv/include" 6354 test -d $cf_header_path/iconv/include/iconv && cf_search="$cf_search $cf_header_path/iconv/include/iconv" 6355} 6356 6357 cf_header_path_list="$cf_header_path_list $cf_search" 6358 ;; 6359 esac 6360 done 6361fi 6362 6363# add the variations for the package we are looking for 6364 6365cf_search= 6366 6367test "/usr" != "$prefix" && \ 6368test -d "/usr" && \ 6369(test $prefix = NONE || test "/usr" != "$prefix") && { 6370 test -n "$verbose" && echo " ... testing for include-directories under /usr" 6371 test -d /usr/include && cf_search="$cf_search /usr/include" 6372 test -d /usr/include/iconv && cf_search="$cf_search /usr/include/iconv" 6373 test -d /usr/include/iconv/include && cf_search="$cf_search /usr/include/iconv/include" 6374 test -d /usr/iconv/include && cf_search="$cf_search /usr/iconv/include" 6375 test -d /usr/iconv/include/iconv && cf_search="$cf_search /usr/iconv/include/iconv" 6376} 6377 6378test "$prefix" != "NONE" && \ 6379test -d "$prefix" && \ 6380 { 6381 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 6382 test -d $prefix/include && cf_search="$cf_search $prefix/include" 6383 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv" 6384 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include" 6385 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include" 6386 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv" 6387} 6388 6389test "/usr/local" != "$prefix" && \ 6390test -d "/usr/local" && \ 6391(test $prefix = NONE || test "/usr/local" != "$prefix") && { 6392 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 6393 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 6394 test -d /usr/local/include/iconv && cf_search="$cf_search /usr/local/include/iconv" 6395 test -d /usr/local/include/iconv/include && cf_search="$cf_search /usr/local/include/iconv/include" 6396 test -d /usr/local/iconv/include && cf_search="$cf_search /usr/local/iconv/include" 6397 test -d /usr/local/iconv/include/iconv && cf_search="$cf_search /usr/local/iconv/include/iconv" 6398} 6399 6400test "/opt" != "$prefix" && \ 6401test -d "/opt" && \ 6402(test $prefix = NONE || test "/opt" != "$prefix") && { 6403 test -n "$verbose" && echo " ... testing for include-directories under /opt" 6404 test -d /opt/include && cf_search="$cf_search /opt/include" 6405 test -d /opt/include/iconv && cf_search="$cf_search /opt/include/iconv" 6406 test -d /opt/include/iconv/include && cf_search="$cf_search /opt/include/iconv/include" 6407 test -d /opt/iconv/include && cf_search="$cf_search /opt/iconv/include" 6408 test -d /opt/iconv/include/iconv && cf_search="$cf_search /opt/iconv/include/iconv" 6409} 6410 6411test "$HOME" != "$prefix" && \ 6412test -d "$HOME" && \ 6413(test $prefix = NONE || test "$HOME" != "$prefix") && { 6414 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 6415 test -d $HOME/include && cf_search="$cf_search $HOME/include" 6416 test -d $HOME/include/iconv && cf_search="$cf_search $HOME/include/iconv" 6417 test -d $HOME/include/iconv/include && cf_search="$cf_search $HOME/include/iconv/include" 6418 test -d $HOME/iconv/include && cf_search="$cf_search $HOME/iconv/include" 6419 test -d $HOME/iconv/include/iconv && cf_search="$cf_search $HOME/iconv/include/iconv" 6420} 6421 6422test "$includedir" != NONE && \ 6423test "$includedir" != "/usr/include" && \ 6424test -d "$includedir" && { 6425 test -d $includedir && cf_search="$cf_search $includedir" 6426 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv" 6427} 6428 6429test "$oldincludedir" != NONE && \ 6430test "$oldincludedir" != "/usr/include" && \ 6431test -d "$oldincludedir" && { 6432 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 6433 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv" 6434} 6435 6436cf_search="$cf_search $cf_header_path_list" 6437 6438 for cf_cv_header_path_iconv in $cf_search 6439 do 6440 if test -d $cf_cv_header_path_iconv ; then 6441 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6 6442 6443echo "${as_me:-configure}:6443: testing ... testing $cf_cv_header_path_iconv ..." 1>&5 6444 6445 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_iconv" 6446 cat >conftest.$ac_ext <<_ACEOF 6447#line 6447 "configure" 6448#include "confdefs.h" 6449 6450#include <stdlib.h> 6451#include <iconv.h> 6452 6453int 6454main () 6455{ 6456 6457 iconv_t cd = iconv_open("",""); 6458 iconv(cd,NULL,NULL,NULL,NULL); 6459 iconv_close(cd); 6460 6461 ; 6462 return 0; 6463} 6464_ACEOF 6465rm -f conftest.$ac_objext 6466if { (eval echo "$as_me:6466: \"$ac_compile\"") >&5 6467 (eval $ac_compile) 2>&5 6468 ac_status=$? 6469 echo "$as_me:6469: \$? = $ac_status" >&5 6470 (exit $ac_status); } && 6471 { ac_try='test -s conftest.$ac_objext' 6472 { (eval echo "$as_me:6472: \"$ac_try\"") >&5 6473 (eval $ac_try) 2>&5 6474 ac_status=$? 6475 echo "$as_me:6475: \$? = $ac_status" >&5 6476 (exit $ac_status); }; }; then 6477 6478 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6 6479 6480echo "${as_me:-configure}:6480: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5 6481 6482 cf_cv_find_linkage_iconv=maybe 6483 cf_test_CPPFLAGS="$CPPFLAGS" 6484 break 6485else 6486 echo "$as_me: failed program was:" >&5 6487cat conftest.$ac_ext >&5 6488 6489 CPPFLAGS="$cf_save_CPPFLAGS" 6490 6491fi 6492rm -f conftest.$ac_objext conftest.$ac_ext 6493 fi 6494 done 6495 6496 if test "$cf_cv_find_linkage_iconv" = maybe ; then 6497 6498echo "${as_me:-configure}:6498: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5 6499 6500 cf_save_LIBS="$LIBS" 6501 cf_save_LDFLAGS="$LDFLAGS" 6502 6503 if test "$cf_cv_find_linkage_iconv" != yes ; then 6504 6505cf_search= 6506cf_library_path_list="" 6507if test -n "${LDFLAGS}${LIBS}" ; then 6508 for cf_library_path in $LDFLAGS $LIBS 6509 do 6510 case $cf_library_path in #(vi 6511 -L*) 6512 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 6513 6514test "$cf_library_path" != "NONE" && \ 6515test -d "$cf_library_path" && \ 6516 { 6517 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 6518 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 6519 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv" 6520 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib" 6521 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib" 6522 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv" 6523} 6524 6525 cf_library_path_list="$cf_library_path_list $cf_search" 6526 ;; 6527 esac 6528 done 6529fi 6530 6531cf_search= 6532 6533test "/usr" != "$prefix" && \ 6534test -d "/usr" && \ 6535(test $prefix = NONE || test "/usr" != "$prefix") && { 6536 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 6537 test -d /usr/lib && cf_search="$cf_search /usr/lib" 6538 test -d /usr/lib/iconv && cf_search="$cf_search /usr/lib/iconv" 6539 test -d /usr/lib/iconv/lib && cf_search="$cf_search /usr/lib/iconv/lib" 6540 test -d /usr/iconv/lib && cf_search="$cf_search /usr/iconv/lib" 6541 test -d /usr/iconv/lib/iconv && cf_search="$cf_search /usr/iconv/lib/iconv" 6542} 6543 6544test "$prefix" != "NONE" && \ 6545test -d "$prefix" && \ 6546 { 6547 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 6548 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 6549 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv" 6550 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib" 6551 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib" 6552 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv" 6553} 6554 6555test "/usr/local" != "$prefix" && \ 6556test -d "/usr/local" && \ 6557(test $prefix = NONE || test "/usr/local" != "$prefix") && { 6558 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 6559 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 6560 test -d /usr/local/lib/iconv && cf_search="$cf_search /usr/local/lib/iconv" 6561 test -d /usr/local/lib/iconv/lib && cf_search="$cf_search /usr/local/lib/iconv/lib" 6562 test -d /usr/local/iconv/lib && cf_search="$cf_search /usr/local/iconv/lib" 6563 test -d /usr/local/iconv/lib/iconv && cf_search="$cf_search /usr/local/iconv/lib/iconv" 6564} 6565 6566test "/opt" != "$prefix" && \ 6567test -d "/opt" && \ 6568(test $prefix = NONE || test "/opt" != "$prefix") && { 6569 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 6570 test -d /opt/lib && cf_search="$cf_search /opt/lib" 6571 test -d /opt/lib/iconv && cf_search="$cf_search /opt/lib/iconv" 6572 test -d /opt/lib/iconv/lib && cf_search="$cf_search /opt/lib/iconv/lib" 6573 test -d /opt/iconv/lib && cf_search="$cf_search /opt/iconv/lib" 6574 test -d /opt/iconv/lib/iconv && cf_search="$cf_search /opt/iconv/lib/iconv" 6575} 6576 6577test "$HOME" != "$prefix" && \ 6578test -d "$HOME" && \ 6579(test $prefix = NONE || test "$HOME" != "$prefix") && { 6580 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 6581 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 6582 test -d $HOME/lib/iconv && cf_search="$cf_search $HOME/lib/iconv" 6583 test -d $HOME/lib/iconv/lib && cf_search="$cf_search $HOME/lib/iconv/lib" 6584 test -d $HOME/iconv/lib && cf_search="$cf_search $HOME/iconv/lib" 6585 test -d $HOME/iconv/lib/iconv && cf_search="$cf_search $HOME/iconv/lib/iconv" 6586} 6587 6588cf_search="$cf_library_path_list $cf_search" 6589 6590 for cf_cv_library_path_iconv in $cf_search 6591 do 6592 if test -d $cf_cv_library_path_iconv ; then 6593 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6 6594 6595echo "${as_me:-configure}:6595: testing ... testing $cf_cv_library_path_iconv ..." 1>&5 6596 6597 CPPFLAGS="$cf_test_CPPFLAGS" 6598 LIBS="-liconv $cf_save_LIBS" 6599 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv" 6600 cat >conftest.$ac_ext <<_ACEOF 6601#line 6601 "configure" 6602#include "confdefs.h" 6603 6604#include <stdlib.h> 6605#include <iconv.h> 6606 6607int 6608main () 6609{ 6610 6611 iconv_t cd = iconv_open("",""); 6612 iconv(cd,NULL,NULL,NULL,NULL); 6613 iconv_close(cd); 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619rm -f conftest.$ac_objext conftest$ac_exeext 6620if { (eval echo "$as_me:6620: \"$ac_link\"") >&5 6621 (eval $ac_link) 2>&5 6622 ac_status=$? 6623 echo "$as_me:6623: \$? = $ac_status" >&5 6624 (exit $ac_status); } && 6625 { ac_try='test -s conftest$ac_exeext' 6626 { (eval echo "$as_me:6626: \"$ac_try\"") >&5 6627 (eval $ac_try) 2>&5 6628 ac_status=$? 6629 echo "$as_me:6629: \$? = $ac_status" >&5 6630 (exit $ac_status); }; }; then 6631 6632 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6 6633 6634echo "${as_me:-configure}:6634: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5 6635 6636 cf_cv_find_linkage_iconv=yes 6637 cf_cv_library_file_iconv="-liconv" 6638 break 6639else 6640 echo "$as_me: failed program was:" >&5 6641cat conftest.$ac_ext >&5 6642 6643 CPPFLAGS="$cf_save_CPPFLAGS" 6644 LIBS="$cf_save_LIBS" 6645 LDFLAGS="$cf_save_LDFLAGS" 6646 6647fi 6648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6649 fi 6650 done 6651 CPPFLAGS="$cf_save_CPPFLAGS" 6652 LDFLAGS="$cf_save_LDFLAGS" 6653 fi 6654 6655 else 6656 cf_cv_find_linkage_iconv=no 6657 fi 6658 6659fi 6660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6661 6662fi 6663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6664 6665LIBS="$cf_save_LIBS" 6666 6667if test "$cf_cv_find_linkage_iconv" = yes ; then 6668am_cv_func_iconv=yes 6669else 6670am_cv_func_iconv="no, consider installing GNU libiconv" 6671fi 6672 6673fi 6674echo "$as_me:6674: result: $am_cv_func_iconv" >&5 6675echo "${ECHO_T}$am_cv_func_iconv" >&6 6676 6677 if test "$am_cv_func_iconv" = yes; then 6678 6679cat >>confdefs.h <<\EOF 6680#define HAVE_ICONV 1 6681EOF 6682 6683 echo "$as_me:6683: checking if the declaration of iconv() needs const." >&5 6684echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6 6685if test "${am_cv_proto_iconv_const+set}" = set; then 6686 echo $ECHO_N "(cached) $ECHO_C" >&6 6687else 6688 6689 cat >conftest.$ac_ext <<_ACEOF 6690#line 6690 "configure" 6691#include "confdefs.h" 6692 6693#include <stdlib.h> 6694#include <iconv.h> 6695 6696extern 6697#ifdef __cplusplus 6698"C" 6699#endif 6700#if defined(__STDC__) || defined(__cplusplus) 6701size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 6702#else 6703size_t iconv(); 6704#endif 6705 6706int 6707main () 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714rm -f conftest.$ac_objext 6715if { (eval echo "$as_me:6715: \"$ac_compile\"") >&5 6716 (eval $ac_compile) 2>&5 6717 ac_status=$? 6718 echo "$as_me:6718: \$? = $ac_status" >&5 6719 (exit $ac_status); } && 6720 { ac_try='test -s conftest.$ac_objext' 6721 { (eval echo "$as_me:6721: \"$ac_try\"") >&5 6722 (eval $ac_try) 2>&5 6723 ac_status=$? 6724 echo "$as_me:6724: \$? = $ac_status" >&5 6725 (exit $ac_status); }; }; then 6726 am_cv_proto_iconv_const=no 6727else 6728 echo "$as_me: failed program was:" >&5 6729cat conftest.$ac_ext >&5 6730am_cv_proto_iconv_const=yes 6731fi 6732rm -f conftest.$ac_objext conftest.$ac_ext 6733fi 6734echo "$as_me:6734: result: $am_cv_proto_iconv_const" >&5 6735echo "${ECHO_T}$am_cv_proto_iconv_const" >&6 6736 6737 if test "$am_cv_proto_iconv_const" = yes ; then 6738 am_cv_proto_iconv_arg1="const" 6739 else 6740 am_cv_proto_iconv_arg1="" 6741 fi 6742 6743cat >>confdefs.h <<EOF 6744#define ICONV_CONST $am_cv_proto_iconv_arg1 6745EOF 6746 6747 fi 6748 6749 LIBICONV= 6750 if test "$cf_cv_find_linkage_iconv" = yes; then 6751 6752if test -n "$cf_cv_header_path_iconv" ; then 6753 for cf_add_incdir in $cf_cv_header_path_iconv 6754 do 6755 while test $cf_add_incdir != /usr/include 6756 do 6757 if test -d $cf_add_incdir 6758 then 6759 cf_have_incdir=no 6760 if test -n "$CFLAGS$CPPFLAGS" ; then 6761 # a loop is needed to ensure we can add subdirs of existing dirs 6762 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6763 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6764 cf_have_incdir=yes; break 6765 fi 6766 done 6767 fi 6768 6769 if test "$cf_have_incdir" = no ; then 6770 if test "$cf_add_incdir" = /usr/local/include ; then 6771 if test "$GCC" = yes 6772 then 6773 cf_save_CPPFLAGS=$CPPFLAGS 6774 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6775 cat >conftest.$ac_ext <<_ACEOF 6776#line 6776 "configure" 6777#include "confdefs.h" 6778#include <stdio.h> 6779int 6780main () 6781{ 6782printf("Hello") 6783 ; 6784 return 0; 6785} 6786_ACEOF 6787rm -f conftest.$ac_objext 6788if { (eval echo "$as_me:6788: \"$ac_compile\"") >&5 6789 (eval $ac_compile) 2>&5 6790 ac_status=$? 6791 echo "$as_me:6791: \$? = $ac_status" >&5 6792 (exit $ac_status); } && 6793 { ac_try='test -s conftest.$ac_objext' 6794 { (eval echo "$as_me:6794: \"$ac_try\"") >&5 6795 (eval $ac_try) 2>&5 6796 ac_status=$? 6797 echo "$as_me:6797: \$? = $ac_status" >&5 6798 (exit $ac_status); }; }; then 6799 : 6800else 6801 echo "$as_me: failed program was:" >&5 6802cat conftest.$ac_ext >&5 6803cf_have_incdir=yes 6804fi 6805rm -f conftest.$ac_objext conftest.$ac_ext 6806 CPPFLAGS=$cf_save_CPPFLAGS 6807 fi 6808 fi 6809 fi 6810 6811 if test "$cf_have_incdir" = no ; then 6812 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6813 6814echo "${as_me:-configure}:6814: testing adding $cf_add_incdir to include-path ..." 1>&5 6815 6816 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6817 6818 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6819 test "$cf_top_incdir" = "$cf_add_incdir" && break 6820 cf_add_incdir="$cf_top_incdir" 6821 else 6822 break 6823 fi 6824 fi 6825 done 6826 done 6827fi 6828 6829 if test -n "$cf_cv_library_file_iconv" ; then 6830 LIBICONV="-liconv" 6831 6832if test -n "$cf_cv_library_path_iconv" ; then 6833 for cf_add_libdir in $cf_cv_library_path_iconv 6834 do 6835 if test $cf_add_libdir = /usr/lib ; then 6836 : 6837 elif test -d $cf_add_libdir 6838 then 6839 cf_have_libdir=no 6840 if test -n "$LDFLAGS$LIBS" ; then 6841 # a loop is needed to ensure we can add subdirs of existing dirs 6842 for cf_test_libdir in $LDFLAGS $LIBS ; do 6843 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6844 cf_have_libdir=yes; break 6845 fi 6846 done 6847 fi 6848 if test "$cf_have_libdir" = no ; then 6849 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6850 6851echo "${as_me:-configure}:6851: testing adding $cf_add_libdir to library-path ..." 1>&5 6852 6853 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6854 fi 6855 fi 6856 done 6857fi 6858 6859 fi 6860 fi 6861 6862 echo "$as_me:6862: checking for nl_langinfo and CODESET" >&5 6863echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 6864if test "${am_cv_langinfo_codeset+set}" = set; then 6865 echo $ECHO_N "(cached) $ECHO_C" >&6 6866else 6867 cat >conftest.$ac_ext <<_ACEOF 6868#line 6868 "configure" 6869#include "confdefs.h" 6870#include <langinfo.h> 6871int 6872main () 6873{ 6874char* cs = nl_langinfo(CODESET); 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879rm -f conftest.$ac_objext conftest$ac_exeext 6880if { (eval echo "$as_me:6880: \"$ac_link\"") >&5 6881 (eval $ac_link) 2>&5 6882 ac_status=$? 6883 echo "$as_me:6883: \$? = $ac_status" >&5 6884 (exit $ac_status); } && 6885 { ac_try='test -s conftest$ac_exeext' 6886 { (eval echo "$as_me:6886: \"$ac_try\"") >&5 6887 (eval $ac_try) 2>&5 6888 ac_status=$? 6889 echo "$as_me:6889: \$? = $ac_status" >&5 6890 (exit $ac_status); }; }; then 6891 am_cv_langinfo_codeset=yes 6892else 6893 echo "$as_me: failed program was:" >&5 6894cat conftest.$ac_ext >&5 6895am_cv_langinfo_codeset=no 6896fi 6897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6898 6899fi 6900echo "$as_me:6900: result: $am_cv_langinfo_codeset" >&5 6901echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 6902 if test $am_cv_langinfo_codeset = yes; then 6903 6904cat >>confdefs.h <<\EOF 6905#define HAVE_LANGINFO_CODESET 1 6906EOF 6907 6908 fi 6909 6910 if test $ac_cv_header_locale_h = yes; then 6911 echo "$as_me:6911: checking for LC_MESSAGES" >&5 6912echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 6913if test "${am_cv_val_LC_MESSAGES+set}" = set; then 6914 echo $ECHO_N "(cached) $ECHO_C" >&6 6915else 6916 cat >conftest.$ac_ext <<_ACEOF 6917#line 6917 "configure" 6918#include "confdefs.h" 6919#include <locale.h> 6920int 6921main () 6922{ 6923return LC_MESSAGES 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928rm -f conftest.$ac_objext conftest$ac_exeext 6929if { (eval echo "$as_me:6929: \"$ac_link\"") >&5 6930 (eval $ac_link) 2>&5 6931 ac_status=$? 6932 echo "$as_me:6932: \$? = $ac_status" >&5 6933 (exit $ac_status); } && 6934 { ac_try='test -s conftest$ac_exeext' 6935 { (eval echo "$as_me:6935: \"$ac_try\"") >&5 6936 (eval $ac_try) 2>&5 6937 ac_status=$? 6938 echo "$as_me:6938: \$? = $ac_status" >&5 6939 (exit $ac_status); }; }; then 6940 am_cv_val_LC_MESSAGES=yes 6941else 6942 echo "$as_me: failed program was:" >&5 6943cat conftest.$ac_ext >&5 6944am_cv_val_LC_MESSAGES=no 6945fi 6946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6947fi 6948echo "$as_me:6948: result: $am_cv_val_LC_MESSAGES" >&5 6949echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 6950 if test $am_cv_val_LC_MESSAGES = yes; then 6951 6952cat >>confdefs.h <<\EOF 6953#define HAVE_LC_MESSAGES 1 6954EOF 6955 6956 fi 6957 fi 6958 echo "$as_me:6958: checking whether NLS is requested" >&5 6959echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 6960 6961# Check whether --enable-nls or --disable-nls was given. 6962if test "${enable_nls+set}" = set; then 6963 enableval="$enable_nls" 6964 USE_NLS=$enableval 6965else 6966 USE_NLS=no 6967fi; 6968 echo "$as_me:6968: result: $USE_NLS" >&5 6969echo "${ECHO_T}$USE_NLS" >&6 6970 6971 BUILD_INCLUDED_LIBINTL=no 6972 USE_INCLUDED_LIBINTL=no 6973 INTLLIBS= 6974 6975 if test "$USE_NLS" = "yes"; then 6976 6977cat >>confdefs.h <<\EOF 6978#define ENABLE_NLS 1 6979EOF 6980 6981 echo "$as_me:6981: checking whether included gettext is requested" >&5 6982echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 6983 6984# Check whether --with-included-gettext or --without-included-gettext was given. 6985if test "${with_included_gettext+set}" = set; then 6986 withval="$with_included_gettext" 6987 nls_cv_force_use_gnu_gettext=$withval 6988else 6989 nls_cv_force_use_gnu_gettext=no 6990fi; 6991 echo "$as_me:6991: result: $nls_cv_force_use_gnu_gettext" >&5 6992echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 6993 6994 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 6995 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 6996 CATOBJEXT=NONE 6997 6998 cf_save_LIBS_1="$LIBS" 6999 LIBS="$LIBICONV $LIBS" 7000 echo "$as_me:7000: checking for libintl.h and gettext()" >&5 7001echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6 7002if test "${cf_cv_func_gettext+set}" = set; then 7003 echo $ECHO_N "(cached) $ECHO_C" >&6 7004else 7005 7006# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 7007# will be set on completion of the AC_TRY_LINK below. 7008cf_cv_header_path_intl= 7009cf_cv_library_path_intl= 7010 7011echo "${as_me:-configure}:7011: testing Starting FIND_LINKAGE(intl,) ..." 1>&5 7012 7013cf_save_LIBS="$LIBS" 7014 7015cat >conftest.$ac_ext <<_ACEOF 7016#line 7016 "configure" 7017#include "confdefs.h" 7018 7019#include <libintl.h> 7020extern int _nl_msg_cat_cntr; 7021 7022int 7023main () 7024{ 7025 7026 bindtextdomain ("", ""); 7027 return (int) gettext ("") 7028 7029 + _nl_msg_cat_cntr 7030 7031 ; 7032 return 0; 7033} 7034_ACEOF 7035rm -f conftest.$ac_objext conftest$ac_exeext 7036if { (eval echo "$as_me:7036: \"$ac_link\"") >&5 7037 (eval $ac_link) 2>&5 7038 ac_status=$? 7039 echo "$as_me:7039: \$? = $ac_status" >&5 7040 (exit $ac_status); } && 7041 { ac_try='test -s conftest$ac_exeext' 7042 { (eval echo "$as_me:7042: \"$ac_try\"") >&5 7043 (eval $ac_try) 2>&5 7044 ac_status=$? 7045 echo "$as_me:7045: \$? = $ac_status" >&5 7046 (exit $ac_status); }; }; then 7047 7048 cf_cv_find_linkage_intl=yes 7049 cf_cv_header_path_intl=/usr/include 7050 cf_cv_library_path_intl=/usr/lib 7051 7052else 7053 echo "$as_me: failed program was:" >&5 7054cat conftest.$ac_ext >&5 7055 7056LIBS="-lintl $cf_save_LIBS" 7057 7058cat >conftest.$ac_ext <<_ACEOF 7059#line 7059 "configure" 7060#include "confdefs.h" 7061 7062#include <libintl.h> 7063extern int _nl_msg_cat_cntr; 7064 7065int 7066main () 7067{ 7068 7069 bindtextdomain ("", ""); 7070 return (int) gettext ("") 7071 7072 + _nl_msg_cat_cntr 7073 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078rm -f conftest.$ac_objext conftest$ac_exeext 7079if { (eval echo "$as_me:7079: \"$ac_link\"") >&5 7080 (eval $ac_link) 2>&5 7081 ac_status=$? 7082 echo "$as_me:7082: \$? = $ac_status" >&5 7083 (exit $ac_status); } && 7084 { ac_try='test -s conftest$ac_exeext' 7085 { (eval echo "$as_me:7085: \"$ac_try\"") >&5 7086 (eval $ac_try) 2>&5 7087 ac_status=$? 7088 echo "$as_me:7088: \$? = $ac_status" >&5 7089 (exit $ac_status); }; }; then 7090 7091 cf_cv_find_linkage_intl=yes 7092 cf_cv_header_path_intl=/usr/include 7093 cf_cv_library_path_intl=/usr/lib 7094 cf_cv_library_file_intl="-lintl" 7095 7096else 7097 echo "$as_me: failed program was:" >&5 7098cat conftest.$ac_ext >&5 7099 7100 cf_cv_find_linkage_intl=no 7101 LIBS="$cf_save_LIBS" 7102 7103 test -n "$verbose" && echo " find linkage for intl library" 1>&6 7104 7105echo "${as_me:-configure}:7105: testing find linkage for intl library ..." 1>&5 7106 7107echo "${as_me:-configure}:7107: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5 7108 7109 cf_save_CPPFLAGS="$CPPFLAGS" 7110 cf_test_CPPFLAGS="$CPPFLAGS" 7111 7112cf_search= 7113 7114# collect the current set of include-directories from compiler flags 7115cf_header_path_list="" 7116if test -n "${CFLAGS}${CPPFLAGS}" ; then 7117 for cf_header_path in $CPPFLAGS $CFLAGS 7118 do 7119 case $cf_header_path in #(vi 7120 -I*) 7121 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 7122 7123test "$cf_header_path" != "NONE" && \ 7124test -d "$cf_header_path" && \ 7125 { 7126 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 7127 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 7128 test -d $cf_header_path/include/intl && cf_search="$cf_search $cf_header_path/include/intl" 7129 test -d $cf_header_path/include/intl/include && cf_search="$cf_search $cf_header_path/include/intl/include" 7130 test -d $cf_header_path/intl/include && cf_search="$cf_search $cf_header_path/intl/include" 7131 test -d $cf_header_path/intl/include/intl && cf_search="$cf_search $cf_header_path/intl/include/intl" 7132} 7133 7134 cf_header_path_list="$cf_header_path_list $cf_search" 7135 ;; 7136 esac 7137 done 7138fi 7139 7140# add the variations for the package we are looking for 7141 7142cf_search= 7143 7144test "/usr" != "$prefix" && \ 7145test -d "/usr" && \ 7146(test $prefix = NONE || test "/usr" != "$prefix") && { 7147 test -n "$verbose" && echo " ... testing for include-directories under /usr" 7148 test -d /usr/include && cf_search="$cf_search /usr/include" 7149 test -d /usr/include/intl && cf_search="$cf_search /usr/include/intl" 7150 test -d /usr/include/intl/include && cf_search="$cf_search /usr/include/intl/include" 7151 test -d /usr/intl/include && cf_search="$cf_search /usr/intl/include" 7152 test -d /usr/intl/include/intl && cf_search="$cf_search /usr/intl/include/intl" 7153} 7154 7155test "$prefix" != "NONE" && \ 7156test -d "$prefix" && \ 7157 { 7158 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 7159 test -d $prefix/include && cf_search="$cf_search $prefix/include" 7160 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl" 7161 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include" 7162 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include" 7163 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl" 7164} 7165 7166test "/usr/local" != "$prefix" && \ 7167test -d "/usr/local" && \ 7168(test $prefix = NONE || test "/usr/local" != "$prefix") && { 7169 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 7170 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 7171 test -d /usr/local/include/intl && cf_search="$cf_search /usr/local/include/intl" 7172 test -d /usr/local/include/intl/include && cf_search="$cf_search /usr/local/include/intl/include" 7173 test -d /usr/local/intl/include && cf_search="$cf_search /usr/local/intl/include" 7174 test -d /usr/local/intl/include/intl && cf_search="$cf_search /usr/local/intl/include/intl" 7175} 7176 7177test "/opt" != "$prefix" && \ 7178test -d "/opt" && \ 7179(test $prefix = NONE || test "/opt" != "$prefix") && { 7180 test -n "$verbose" && echo " ... testing for include-directories under /opt" 7181 test -d /opt/include && cf_search="$cf_search /opt/include" 7182 test -d /opt/include/intl && cf_search="$cf_search /opt/include/intl" 7183 test -d /opt/include/intl/include && cf_search="$cf_search /opt/include/intl/include" 7184 test -d /opt/intl/include && cf_search="$cf_search /opt/intl/include" 7185 test -d /opt/intl/include/intl && cf_search="$cf_search /opt/intl/include/intl" 7186} 7187 7188test "$HOME" != "$prefix" && \ 7189test -d "$HOME" && \ 7190(test $prefix = NONE || test "$HOME" != "$prefix") && { 7191 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 7192 test -d $HOME/include && cf_search="$cf_search $HOME/include" 7193 test -d $HOME/include/intl && cf_search="$cf_search $HOME/include/intl" 7194 test -d $HOME/include/intl/include && cf_search="$cf_search $HOME/include/intl/include" 7195 test -d $HOME/intl/include && cf_search="$cf_search $HOME/intl/include" 7196 test -d $HOME/intl/include/intl && cf_search="$cf_search $HOME/intl/include/intl" 7197} 7198 7199test "$includedir" != NONE && \ 7200test "$includedir" != "/usr/include" && \ 7201test -d "$includedir" && { 7202 test -d $includedir && cf_search="$cf_search $includedir" 7203 test -d $includedir/intl && cf_search="$cf_search $includedir/intl" 7204} 7205 7206test "$oldincludedir" != NONE && \ 7207test "$oldincludedir" != "/usr/include" && \ 7208test -d "$oldincludedir" && { 7209 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 7210 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl" 7211} 7212 7213cf_search="$cf_search $cf_header_path_list" 7214 7215 for cf_cv_header_path_intl in $cf_search 7216 do 7217 if test -d $cf_cv_header_path_intl ; then 7218 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6 7219 7220echo "${as_me:-configure}:7220: testing ... testing $cf_cv_header_path_intl ..." 1>&5 7221 7222 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_intl" 7223 cat >conftest.$ac_ext <<_ACEOF 7224#line 7224 "configure" 7225#include "confdefs.h" 7226 7227#include <libintl.h> 7228extern int _nl_msg_cat_cntr; 7229 7230int 7231main () 7232{ 7233 7234 bindtextdomain ("", ""); 7235 return (int) gettext ("") 7236 7237 + _nl_msg_cat_cntr 7238 7239 ; 7240 return 0; 7241} 7242_ACEOF 7243rm -f conftest.$ac_objext 7244if { (eval echo "$as_me:7244: \"$ac_compile\"") >&5 7245 (eval $ac_compile) 2>&5 7246 ac_status=$? 7247 echo "$as_me:7247: \$? = $ac_status" >&5 7248 (exit $ac_status); } && 7249 { ac_try='test -s conftest.$ac_objext' 7250 { (eval echo "$as_me:7250: \"$ac_try\"") >&5 7251 (eval $ac_try) 2>&5 7252 ac_status=$? 7253 echo "$as_me:7253: \$? = $ac_status" >&5 7254 (exit $ac_status); }; }; then 7255 7256 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6 7257 7258echo "${as_me:-configure}:7258: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5 7259 7260 cf_cv_find_linkage_intl=maybe 7261 cf_test_CPPFLAGS="$CPPFLAGS" 7262 break 7263else 7264 echo "$as_me: failed program was:" >&5 7265cat conftest.$ac_ext >&5 7266 7267 CPPFLAGS="$cf_save_CPPFLAGS" 7268 7269fi 7270rm -f conftest.$ac_objext conftest.$ac_ext 7271 fi 7272 done 7273 7274 if test "$cf_cv_find_linkage_intl" = maybe ; then 7275 7276echo "${as_me:-configure}:7276: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5 7277 7278 cf_save_LIBS="$LIBS" 7279 cf_save_LDFLAGS="$LDFLAGS" 7280 7281 if test "$cf_cv_find_linkage_intl" != yes ; then 7282 7283cf_search= 7284cf_library_path_list="" 7285if test -n "${LDFLAGS}${LIBS}" ; then 7286 for cf_library_path in $LDFLAGS $LIBS 7287 do 7288 case $cf_library_path in #(vi 7289 -L*) 7290 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 7291 7292test "$cf_library_path" != "NONE" && \ 7293test -d "$cf_library_path" && \ 7294 { 7295 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 7296 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 7297 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl" 7298 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib" 7299 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib" 7300 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl" 7301} 7302 7303 cf_library_path_list="$cf_library_path_list $cf_search" 7304 ;; 7305 esac 7306 done 7307fi 7308 7309cf_search= 7310 7311test "/usr" != "$prefix" && \ 7312test -d "/usr" && \ 7313(test $prefix = NONE || test "/usr" != "$prefix") && { 7314 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 7315 test -d /usr/lib && cf_search="$cf_search /usr/lib" 7316 test -d /usr/lib/intl && cf_search="$cf_search /usr/lib/intl" 7317 test -d /usr/lib/intl/lib && cf_search="$cf_search /usr/lib/intl/lib" 7318 test -d /usr/intl/lib && cf_search="$cf_search /usr/intl/lib" 7319 test -d /usr/intl/lib/intl && cf_search="$cf_search /usr/intl/lib/intl" 7320} 7321 7322test "$prefix" != "NONE" && \ 7323test -d "$prefix" && \ 7324 { 7325 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 7326 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 7327 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl" 7328 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib" 7329 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib" 7330 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl" 7331} 7332 7333test "/usr/local" != "$prefix" && \ 7334test -d "/usr/local" && \ 7335(test $prefix = NONE || test "/usr/local" != "$prefix") && { 7336 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 7337 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 7338 test -d /usr/local/lib/intl && cf_search="$cf_search /usr/local/lib/intl" 7339 test -d /usr/local/lib/intl/lib && cf_search="$cf_search /usr/local/lib/intl/lib" 7340 test -d /usr/local/intl/lib && cf_search="$cf_search /usr/local/intl/lib" 7341 test -d /usr/local/intl/lib/intl && cf_search="$cf_search /usr/local/intl/lib/intl" 7342} 7343 7344test "/opt" != "$prefix" && \ 7345test -d "/opt" && \ 7346(test $prefix = NONE || test "/opt" != "$prefix") && { 7347 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 7348 test -d /opt/lib && cf_search="$cf_search /opt/lib" 7349 test -d /opt/lib/intl && cf_search="$cf_search /opt/lib/intl" 7350 test -d /opt/lib/intl/lib && cf_search="$cf_search /opt/lib/intl/lib" 7351 test -d /opt/intl/lib && cf_search="$cf_search /opt/intl/lib" 7352 test -d /opt/intl/lib/intl && cf_search="$cf_search /opt/intl/lib/intl" 7353} 7354 7355test "$HOME" != "$prefix" && \ 7356test -d "$HOME" && \ 7357(test $prefix = NONE || test "$HOME" != "$prefix") && { 7358 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 7359 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 7360 test -d $HOME/lib/intl && cf_search="$cf_search $HOME/lib/intl" 7361 test -d $HOME/lib/intl/lib && cf_search="$cf_search $HOME/lib/intl/lib" 7362 test -d $HOME/intl/lib && cf_search="$cf_search $HOME/intl/lib" 7363 test -d $HOME/intl/lib/intl && cf_search="$cf_search $HOME/intl/lib/intl" 7364} 7365 7366cf_search="$cf_library_path_list $cf_search" 7367 7368 for cf_cv_library_path_intl in $cf_search 7369 do 7370 if test -d $cf_cv_library_path_intl ; then 7371 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6 7372 7373echo "${as_me:-configure}:7373: testing ... testing $cf_cv_library_path_intl ..." 1>&5 7374 7375 CPPFLAGS="$cf_test_CPPFLAGS" 7376 LIBS="-lintl $cf_save_LIBS" 7377 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl" 7378 cat >conftest.$ac_ext <<_ACEOF 7379#line 7379 "configure" 7380#include "confdefs.h" 7381 7382#include <libintl.h> 7383extern int _nl_msg_cat_cntr; 7384 7385int 7386main () 7387{ 7388 7389 bindtextdomain ("", ""); 7390 return (int) gettext ("") 7391 7392 + _nl_msg_cat_cntr 7393 7394 ; 7395 return 0; 7396} 7397_ACEOF 7398rm -f conftest.$ac_objext conftest$ac_exeext 7399if { (eval echo "$as_me:7399: \"$ac_link\"") >&5 7400 (eval $ac_link) 2>&5 7401 ac_status=$? 7402 echo "$as_me:7402: \$? = $ac_status" >&5 7403 (exit $ac_status); } && 7404 { ac_try='test -s conftest$ac_exeext' 7405 { (eval echo "$as_me:7405: \"$ac_try\"") >&5 7406 (eval $ac_try) 2>&5 7407 ac_status=$? 7408 echo "$as_me:7408: \$? = $ac_status" >&5 7409 (exit $ac_status); }; }; then 7410 7411 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6 7412 7413echo "${as_me:-configure}:7413: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5 7414 7415 cf_cv_find_linkage_intl=yes 7416 cf_cv_library_file_intl="-lintl" 7417 break 7418else 7419 echo "$as_me: failed program was:" >&5 7420cat conftest.$ac_ext >&5 7421 7422 CPPFLAGS="$cf_save_CPPFLAGS" 7423 LIBS="$cf_save_LIBS" 7424 LDFLAGS="$cf_save_LDFLAGS" 7425 7426fi 7427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7428 fi 7429 done 7430 CPPFLAGS="$cf_save_CPPFLAGS" 7431 LDFLAGS="$cf_save_LDFLAGS" 7432 fi 7433 7434 else 7435 cf_cv_find_linkage_intl=no 7436 fi 7437 7438fi 7439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7440 7441fi 7442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7443 7444LIBS="$cf_save_LIBS" 7445 7446if test "$cf_cv_find_linkage_intl" = yes ; then 7447cf_cv_func_gettext=yes 7448else 7449cf_cv_func_gettext=no 7450fi 7451 7452fi 7453echo "$as_me:7453: result: $cf_cv_func_gettext" >&5 7454echo "${ECHO_T}$cf_cv_func_gettext" >&6 7455 LIBS="$cf_save_LIBS_1" 7456 7457 if test "$cf_cv_func_gettext" = yes ; then 7458 cat >>confdefs.h <<\EOF 7459#define HAVE_LIBINTL_H 1 7460EOF 7461 7462 if test "$PACKAGE" != gettext; then 7463 7464cat >>confdefs.h <<\EOF 7465#define HAVE_GETTEXT 1 7466EOF 7467 7468if test -n "$cf_cv_header_path_intl" ; then 7469 for cf_add_incdir in $cf_cv_header_path_intl 7470 do 7471 while test $cf_add_incdir != /usr/include 7472 do 7473 if test -d $cf_add_incdir 7474 then 7475 cf_have_incdir=no 7476 if test -n "$CFLAGS$CPPFLAGS" ; then 7477 # a loop is needed to ensure we can add subdirs of existing dirs 7478 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 7479 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 7480 cf_have_incdir=yes; break 7481 fi 7482 done 7483 fi 7484 7485 if test "$cf_have_incdir" = no ; then 7486 if test "$cf_add_incdir" = /usr/local/include ; then 7487 if test "$GCC" = yes 7488 then 7489 cf_save_CPPFLAGS=$CPPFLAGS 7490 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7491 cat >conftest.$ac_ext <<_ACEOF 7492#line 7492 "configure" 7493#include "confdefs.h" 7494#include <stdio.h> 7495int 7496main () 7497{ 7498printf("Hello") 7499 ; 7500 return 0; 7501} 7502_ACEOF 7503rm -f conftest.$ac_objext 7504if { (eval echo "$as_me:7504: \"$ac_compile\"") >&5 7505 (eval $ac_compile) 2>&5 7506 ac_status=$? 7507 echo "$as_me:7507: \$? = $ac_status" >&5 7508 (exit $ac_status); } && 7509 { ac_try='test -s conftest.$ac_objext' 7510 { (eval echo "$as_me:7510: \"$ac_try\"") >&5 7511 (eval $ac_try) 2>&5 7512 ac_status=$? 7513 echo "$as_me:7513: \$? = $ac_status" >&5 7514 (exit $ac_status); }; }; then 7515 : 7516else 7517 echo "$as_me: failed program was:" >&5 7518cat conftest.$ac_ext >&5 7519cf_have_incdir=yes 7520fi 7521rm -f conftest.$ac_objext conftest.$ac_ext 7522 CPPFLAGS=$cf_save_CPPFLAGS 7523 fi 7524 fi 7525 fi 7526 7527 if test "$cf_have_incdir" = no ; then 7528 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 7529 7530echo "${as_me:-configure}:7530: testing adding $cf_add_incdir to include-path ..." 1>&5 7531 7532 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 7533 7534 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 7535 test "$cf_top_incdir" = "$cf_add_incdir" && break 7536 cf_add_incdir="$cf_top_incdir" 7537 else 7538 break 7539 fi 7540 fi 7541 done 7542 done 7543fi 7544 7545 if test -n "$cf_cv_library_file_intl" ; then 7546 INTLLIBS="$cf_cv_library_file_intl $LIBICONV" 7547 7548if test -n "$cf_cv_library_path_intl" ; then 7549 for cf_add_libdir in $cf_cv_library_path_intl 7550 do 7551 if test $cf_add_libdir = /usr/lib ; then 7552 : 7553 elif test -d $cf_add_libdir 7554 then 7555 cf_have_libdir=no 7556 if test -n "$LDFLAGS$LIBS" ; then 7557 # a loop is needed to ensure we can add subdirs of existing dirs 7558 for cf_test_libdir in $LDFLAGS $LIBS ; do 7559 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 7560 cf_have_libdir=yes; break 7561 fi 7562 done 7563 fi 7564 if test "$cf_have_libdir" = no ; then 7565 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 7566 7567echo "${as_me:-configure}:7567: testing adding $cf_add_libdir to library-path ..." 1>&5 7568 7569 INTLLIBS="-L$cf_add_libdir $INTLLIBS" 7570 fi 7571 fi 7572 done 7573fi 7574 7575 fi 7576 7577 gt_save_LIBS="$LIBS" 7578 LIBS="$LIBS $INTLLIBS" 7579 7580for ac_func in dcgettext 7581do 7582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7583echo "$as_me:7583: checking for $ac_func" >&5 7584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7585if eval "test \"\${$as_ac_var+set}\" = set"; then 7586 echo $ECHO_N "(cached) $ECHO_C" >&6 7587else 7588 cat >conftest.$ac_ext <<_ACEOF 7589#line 7589 "configure" 7590#include "confdefs.h" 7591/* System header to define __stub macros and hopefully few prototypes, 7592 which can conflict with char $ac_func (); below. */ 7593#include <assert.h> 7594/* Override any gcc2 internal prototype to avoid an error. */ 7595#ifdef __cplusplus 7596extern "C" 7597#endif 7598/* We use char because int might match the return type of a gcc2 7599 builtin and then its argument prototype would still apply. */ 7600char $ac_func (); 7601char (*f) (); 7602 7603int 7604main () 7605{ 7606/* The GNU C library defines this for functions which it implements 7607 to always fail with ENOSYS. Some functions are actually named 7608 something starting with __ and the normal name is an alias. */ 7609#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7610choke me 7611#else 7612f = $ac_func; 7613#endif 7614 7615 ; 7616 return 0; 7617} 7618_ACEOF 7619rm -f conftest.$ac_objext conftest$ac_exeext 7620if { (eval echo "$as_me:7620: \"$ac_link\"") >&5 7621 (eval $ac_link) 2>&5 7622 ac_status=$? 7623 echo "$as_me:7623: \$? = $ac_status" >&5 7624 (exit $ac_status); } && 7625 { ac_try='test -s conftest$ac_exeext' 7626 { (eval echo "$as_me:7626: \"$ac_try\"") >&5 7627 (eval $ac_try) 2>&5 7628 ac_status=$? 7629 echo "$as_me:7629: \$? = $ac_status" >&5 7630 (exit $ac_status); }; }; then 7631 eval "$as_ac_var=yes" 7632else 7633 echo "$as_me: failed program was:" >&5 7634cat conftest.$ac_ext >&5 7635eval "$as_ac_var=no" 7636fi 7637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7638fi 7639echo "$as_me:7639: result: `eval echo '${'$as_ac_var'}'`" >&5 7640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7641if test `eval echo '${'$as_ac_var'}'` = yes; then 7642 cat >>confdefs.h <<EOF 7643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7644EOF 7645 7646fi 7647done 7648 7649 LIBS="$gt_save_LIBS" 7650 7651 # Extract the first word of "msgfmt", so it can be a program name with args. 7652 7653set dummy msgfmt; ac_word=$2 7654echo "$as_me:7654: checking for $ac_word" >&5 7655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7656if test "${ac_cv_path_MSGFMT+set}" = set; then 7657 echo $ECHO_N "(cached) $ECHO_C" >&6 7658else 7659 case "$MSGFMT" in 7660 [\\/]*|?:[\\/]*) 7661 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7662 ;; 7663 *) 7664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7665 for ac_dir in $PATH; do 7666 test -z "$ac_dir" && ac_dir=. 7667 if test -f $ac_dir/$ac_word$ac_exeext; then 7668 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7669 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7670 break 7671 fi 7672 fi 7673 done 7674 IFS="$ac_save_ifs" 7675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7676 ;; 7677esac 7678fi 7679MSGFMT="$ac_cv_path_MSGFMT" 7680if test "$MSGFMT" != ":"; then 7681 echo "$as_me:7681: result: $MSGFMT" >&5 7682echo "${ECHO_T}$MSGFMT" >&6 7683else 7684 echo "$as_me:7684: result: no" >&5 7685echo "${ECHO_T}no" >&6 7686fi 7687 7688 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7689set dummy gmsgfmt; ac_word=$2 7690echo "$as_me:7690: checking for $ac_word" >&5 7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7692if test "${ac_cv_path_GMSGFMT+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 case $GMSGFMT in 7696 [\\/]* | ?:[\\/]*) 7697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7698 ;; 7699 *) 7700 ac_save_IFS=$IFS; IFS=$ac_path_separator 7701ac_dummy="$PATH" 7702for ac_dir in $ac_dummy; do 7703 IFS=$ac_save_IFS 7704 test -z "$ac_dir" && ac_dir=. 7705 if $as_executable_p "$ac_dir/$ac_word"; then 7706 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7707 echo "$as_me:7707: found $ac_dir/$ac_word" >&5 7708 break 7709fi 7710done 7711 7712 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7713 ;; 7714esac 7715fi 7716GMSGFMT=$ac_cv_path_GMSGFMT 7717 7718if test -n "$GMSGFMT"; then 7719 echo "$as_me:7719: result: $GMSGFMT" >&5 7720echo "${ECHO_T}$GMSGFMT" >&6 7721else 7722 echo "$as_me:7722: result: no" >&5 7723echo "${ECHO_T}no" >&6 7724fi 7725 7726 # Extract the first word of "xgettext", so it can be a program name with args. 7727 7728set dummy xgettext; ac_word=$2 7729echo "$as_me:7729: checking for $ac_word" >&5 7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7731if test "${ac_cv_path_XGETTEXT+set}" = set; then 7732 echo $ECHO_N "(cached) $ECHO_C" >&6 7733else 7734 case "$XGETTEXT" in 7735 [\\/]*|?:[\\/]*) 7736 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7737 ;; 7738 *) 7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7740 for ac_dir in $PATH; do 7741 test -z "$ac_dir" && ac_dir=. 7742 if test -f $ac_dir/$ac_word$ac_exeext; then 7743 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7744 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7745 break 7746 fi 7747 fi 7748 done 7749 IFS="$ac_save_ifs" 7750 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7751 ;; 7752esac 7753fi 7754XGETTEXT="$ac_cv_path_XGETTEXT" 7755if test "$XGETTEXT" != ":"; then 7756 echo "$as_me:7756: result: $XGETTEXT" >&5 7757echo "${ECHO_T}$XGETTEXT" >&6 7758else 7759 echo "$as_me:7759: result: no" >&5 7760echo "${ECHO_T}no" >&6 7761fi 7762 7763 CATOBJEXT=.gmo 7764 fi 7765 fi 7766 7767 if test "$CATOBJEXT" = "NONE"; then 7768 nls_cv_use_gnu_gettext=yes 7769 fi 7770 fi 7771 7772 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7773 if test ! -d $srcdir/intl ; then 7774 { { echo "$as_me:7774: error: no NLS library is packaged with this application" >&5 7775echo "$as_me: error: no NLS library is packaged with this application" >&2;} 7776 { (exit 1); exit 1; }; } 7777 fi 7778 INTLOBJS="\$(GETTOBJS)" 7779 # Extract the first word of "msgfmt", so it can be a program name with args. 7780 7781set dummy msgfmt; ac_word=$2 7782echo "$as_me:7782: checking for $ac_word" >&5 7783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7784if test "${ac_cv_path_MSGFMT+set}" = set; then 7785 echo $ECHO_N "(cached) $ECHO_C" >&6 7786else 7787 case "$MSGFMT" in 7788 [\\/]*|?:[\\/]*) 7789 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7790 ;; 7791 *) 7792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7793 for ac_dir in $PATH; do 7794 test -z "$ac_dir" && ac_dir=. 7795 if test -f $ac_dir/$ac_word$ac_exeext; then 7796 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7797 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7798 break 7799 fi 7800 fi 7801 done 7802 IFS="$ac_save_ifs" 7803 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7804 ;; 7805esac 7806fi 7807MSGFMT="$ac_cv_path_MSGFMT" 7808if test "$MSGFMT" != ":"; then 7809 echo "$as_me:7809: result: $MSGFMT" >&5 7810echo "${ECHO_T}$MSGFMT" >&6 7811else 7812 echo "$as_me:7812: result: no" >&5 7813echo "${ECHO_T}no" >&6 7814fi 7815 7816 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7817set dummy gmsgfmt; ac_word=$2 7818echo "$as_me:7818: checking for $ac_word" >&5 7819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7820if test "${ac_cv_path_GMSGFMT+set}" = set; then 7821 echo $ECHO_N "(cached) $ECHO_C" >&6 7822else 7823 case $GMSGFMT in 7824 [\\/]* | ?:[\\/]*) 7825 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7826 ;; 7827 *) 7828 ac_save_IFS=$IFS; IFS=$ac_path_separator 7829ac_dummy="$PATH" 7830for ac_dir in $ac_dummy; do 7831 IFS=$ac_save_IFS 7832 test -z "$ac_dir" && ac_dir=. 7833 if $as_executable_p "$ac_dir/$ac_word"; then 7834 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7835 echo "$as_me:7835: found $ac_dir/$ac_word" >&5 7836 break 7837fi 7838done 7839 7840 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7841 ;; 7842esac 7843fi 7844GMSGFMT=$ac_cv_path_GMSGFMT 7845 7846if test -n "$GMSGFMT"; then 7847 echo "$as_me:7847: result: $GMSGFMT" >&5 7848echo "${ECHO_T}$GMSGFMT" >&6 7849else 7850 echo "$as_me:7850: result: no" >&5 7851echo "${ECHO_T}no" >&6 7852fi 7853 7854 # Extract the first word of "xgettext", so it can be a program name with args. 7855 7856set dummy xgettext; ac_word=$2 7857echo "$as_me:7857: checking for $ac_word" >&5 7858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7859if test "${ac_cv_path_XGETTEXT+set}" = set; then 7860 echo $ECHO_N "(cached) $ECHO_C" >&6 7861else 7862 case "$XGETTEXT" in 7863 [\\/]*|?:[\\/]*) 7864 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7865 ;; 7866 *) 7867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7868 for ac_dir in $PATH; do 7869 test -z "$ac_dir" && ac_dir=. 7870 if test -f $ac_dir/$ac_word$ac_exeext; then 7871 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7872 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7873 break 7874 fi 7875 fi 7876 done 7877 IFS="$ac_save_ifs" 7878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7879 ;; 7880esac 7881fi 7882XGETTEXT="$ac_cv_path_XGETTEXT" 7883if test "$XGETTEXT" != ":"; then 7884 echo "$as_me:7884: result: $XGETTEXT" >&5 7885echo "${ECHO_T}$XGETTEXT" >&6 7886else 7887 echo "$as_me:7887: result: no" >&5 7888echo "${ECHO_T}no" >&6 7889fi 7890 7891 BUILD_INCLUDED_LIBINTL=yes 7892 USE_INCLUDED_LIBINTL=yes 7893 CATOBJEXT=.gmo 7894 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" 7895 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 7896 fi 7897 7898 if test "$GMSGFMT" != ":"; then 7899 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then 7900 : ; 7901 else 7902 echo "$as_me:7902: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 7903echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 7904 GMSGFMT=":" 7905 fi 7906 fi 7907 7908 if test "$XGETTEXT" != ":"; then 7909 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then 7910 : ; 7911 else 7912 echo "$as_me:7912: result: found xgettext program is not GNU xgettext; ignore it" >&5 7913echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 7914 XGETTEXT=":" 7915 fi 7916 fi 7917 7918 POSUB=po 7919 fi 7920 7921 ac_config_commands="$ac_config_commands default-1" 7922 7923 if test "$PACKAGE" = gettext; then 7924 BUILD_INCLUDED_LIBINTL=yes 7925 fi 7926 7927 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7928 for ac_prog in bison 7929do 7930 # Extract the first word of "$ac_prog", so it can be a program name with args. 7931set dummy $ac_prog; ac_word=$2 7932echo "$as_me:7932: checking for $ac_word" >&5 7933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7934if test "${ac_cv_prog_INTLBISON+set}" = set; then 7935 echo $ECHO_N "(cached) $ECHO_C" >&6 7936else 7937 if test -n "$INTLBISON"; then 7938 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7939else 7940 ac_save_IFS=$IFS; IFS=$ac_path_separator 7941ac_dummy="$PATH" 7942for ac_dir in $ac_dummy; do 7943 IFS=$ac_save_IFS 7944 test -z "$ac_dir" && ac_dir=. 7945 $as_executable_p "$ac_dir/$ac_word" || continue 7946ac_cv_prog_INTLBISON="$ac_prog" 7947echo "$as_me:7947: found $ac_dir/$ac_word" >&5 7948break 7949done 7950 7951fi 7952fi 7953INTLBISON=$ac_cv_prog_INTLBISON 7954if test -n "$INTLBISON"; then 7955 echo "$as_me:7955: result: $INTLBISON" >&5 7956echo "${ECHO_T}$INTLBISON" >&6 7957else 7958 echo "$as_me:7958: result: no" >&5 7959echo "${ECHO_T}no" >&6 7960fi 7961 7962 test -n "$INTLBISON" && break 7963done 7964 7965 if test -z "$INTLBISON"; then 7966 ac_verc_fail=yes 7967 else 7968 echo "$as_me:7968: checking version of bison" >&5 7969echo $ECHO_N "checking version of bison... $ECHO_C" >&6 7970 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7971 case $ac_prog_version in 7972 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7973 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7974 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7975 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7976 esac 7977 echo "$as_me:7977: result: $ac_prog_version" >&5 7978echo "${ECHO_T}$ac_prog_version" >&6 7979 fi 7980 if test $ac_verc_fail = yes; then 7981 INTLBISON=: 7982 fi 7983 fi 7984 7985 for lang in $ALL_LINGUAS; do 7986 GMOFILES="$GMOFILES $lang.gmo" 7987 POFILES="$POFILES $lang.po" 7988 done 7989 7990 nls_cv_header_intl= 7991 nls_cv_header_libgt= 7992 7993 DATADIRNAME=share 7994 7995 INSTOBJEXT=.mo 7996 7997 GENCAT=gencat 7998 7999 if test "x$CATOBJEXT" != "x"; then 8000 if test "x$ALL_LINGUAS" = "x"; then 8001 LINGUAS= 8002 else 8003 echo "$as_me:8003: checking for catalogs to be installed" >&5 8004echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 8005 NEW_LINGUAS= 8006 for presentlang in $ALL_LINGUAS; do 8007 useit=no 8008 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do 8009 # Use the presentlang catalog if desiredlang is 8010 # a. equal to presentlang, or 8011 # b. a variant of presentlang (because in this case, 8012 # presentlang can be used as a fallback for messages 8013 # which are not translated in the desiredlang catalog). 8014 case "$desiredlang" in 8015 "$presentlang"*) useit=yes;; 8016 esac 8017 done 8018 if test $useit = yes; then 8019 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 8020 fi 8021 done 8022 LINGUAS=$NEW_LINGUAS 8023 echo "$as_me:8023: result: $LINGUAS" >&5 8024echo "${ECHO_T}$LINGUAS" >&6 8025 fi 8026 8027 if test -n "$LINGUAS"; then 8028 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 8029 fi 8030 fi 8031 8032 INTL_LIBTOOL_SUFFIX_PREFIX= 8033 8034if test "$USE_NLS" = yes ; then 8035 8036# Check whether --with-textdomain or --without-textdomain was given. 8037if test "${with_textdomain+set}" = set; then 8038 withval="$with_textdomain" 8039 NLS_TEXTDOMAIN=$withval 8040else 8041 NLS_TEXTDOMAIN=$PACKAGE 8042fi; 8043 cat >>confdefs.h <<EOF 8044#define NLS_TEXTDOMAIN "$NLS_TEXTDOMAIN" 8045EOF 8046 8047fi 8048 8049INTLDIR_MAKE= 8050MSG_DIR_MAKE= 8051SUB_MAKEFILE= 8052 8053cf_makefile=makefile 8054 8055use_our_messages=no 8056if test "$USE_NLS" = yes ; then 8057if test -d $srcdir/po ; then 8058echo "$as_me:8058: checking if we should use included message-library" >&5 8059echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6 8060 8061# Check whether --enable-included-msgs or --disable-included-msgs was given. 8062if test "${enable_included_msgs+set}" = set; then 8063 enableval="$enable_included_msgs" 8064 use_our_messages=$enableval 8065else 8066 use_our_messages=yes 8067fi; 8068fi 8069echo "$as_me:8069: result: $use_our_messages" >&5 8070echo "${ECHO_T}$use_our_messages" >&6 8071fi 8072 8073MSG_DIR_MAKE="#" 8074if test "$use_our_messages" = yes 8075then 8076 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn" 8077 MSG_DIR_MAKE= 8078fi 8079 8080if test "$USE_INCLUDED_LIBINTL" = yes ; then 8081 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 8082 : 8083 elif test "$nls_cv_use_gnu_gettext" = yes ; then 8084 : 8085 else 8086 INTLDIR_MAKE="#" 8087 fi 8088 if test -z "$INTLDIR_MAKE"; then 8089 cat >>confdefs.h <<\EOF 8090#define HAVE_LIBGETTEXT_H 1 8091EOF 8092 8093 for cf_makefile in \ 8094 $srcdir/intl/Makefile.in \ 8095 $srcdir/intl/makefile.in 8096 do 8097 if test -f "$cf_makefile" ; then 8098 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}" 8099 break 8100 fi 8101 done 8102 fi 8103else 8104 INTLDIR_MAKE="#" 8105 if test "$USE_NLS" = yes ; then 8106 8107for ac_header in libintl.h 8108do 8109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8110echo "$as_me:8110: checking for $ac_header" >&5 8111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8112if eval "test \"\${$as_ac_Header+set}\" = set"; then 8113 echo $ECHO_N "(cached) $ECHO_C" >&6 8114else 8115 cat >conftest.$ac_ext <<_ACEOF 8116#line 8116 "configure" 8117#include "confdefs.h" 8118#include <$ac_header> 8119_ACEOF 8120if { (eval echo "$as_me:8120: \"$ac_cpp conftest.$ac_ext\"") >&5 8121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8122 ac_status=$? 8123 egrep -v '^ *\+' conftest.er1 >conftest.err 8124 rm -f conftest.er1 8125 cat conftest.err >&5 8126 echo "$as_me:8126: \$? = $ac_status" >&5 8127 (exit $ac_status); } >/dev/null; then 8128 if test -s conftest.err; then 8129 ac_cpp_err=$ac_c_preproc_warn_flag 8130 else 8131 ac_cpp_err= 8132 fi 8133else 8134 ac_cpp_err=yes 8135fi 8136if test -z "$ac_cpp_err"; then 8137 eval "$as_ac_Header=yes" 8138else 8139 echo "$as_me: failed program was:" >&5 8140 cat conftest.$ac_ext >&5 8141 eval "$as_ac_Header=no" 8142fi 8143rm -f conftest.err conftest.$ac_ext 8144fi 8145echo "$as_me:8145: result: `eval echo '${'$as_ac_Header'}'`" >&5 8146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8147if test `eval echo '${'$as_ac_Header'}'` = yes; then 8148 cat >>confdefs.h <<EOF 8149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8150EOF 8151 8152fi 8153done 8154 8155 fi 8156fi 8157 8158if test -z "$INTLDIR_MAKE" ; then 8159 CPPFLAGS="$CPPFLAGS -I../intl" 8160fi 8161 8162if test "$BUILD_INCLUDED_LIBINTL" = yes ; then 8163 GT_YES="#" 8164 GT_NO= 8165else 8166 GT_YES= 8167 GT_NO="#" 8168fi 8169 8170if test "$USE_INCLUDED_LIBINTL" = yes ; then 8171 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 8172 cat >>confdefs.h <<\EOF 8173#define HAVE_GETTEXT 1 8174EOF 8175 8176 elif test "$nls_cv_use_gnu_gettext" = yes ; then 8177 cat >>confdefs.h <<\EOF 8178#define HAVE_GETTEXT 1 8179EOF 8180 8181 fi 8182 if test -n "$nls_cv_header_intl" ; then 8183 cat >>confdefs.h <<\EOF 8184#define HAVE_LIBINTL_H 1 8185EOF 8186 8187 fi 8188fi 8189 8190echo "$as_me:8190: checking if -lm needed for math functions" >&5 8191echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 8192if test "${cf_cv_need_libm+set}" = set; then 8193 echo $ECHO_N "(cached) $ECHO_C" >&6 8194else 8195 8196 cat >conftest.$ac_ext <<_ACEOF 8197#line 8197 "configure" 8198#include "confdefs.h" 8199 8200 #include <stdio.h> 8201 #include <math.h> 8202 8203int 8204main () 8205{ 8206double x = rand(); printf("result = %g\n", sqrt(x)) 8207 ; 8208 return 0; 8209} 8210_ACEOF 8211rm -f conftest.$ac_objext conftest$ac_exeext 8212if { (eval echo "$as_me:8212: \"$ac_link\"") >&5 8213 (eval $ac_link) 2>&5 8214 ac_status=$? 8215 echo "$as_me:8215: \$? = $ac_status" >&5 8216 (exit $ac_status); } && 8217 { ac_try='test -s conftest$ac_exeext' 8218 { (eval echo "$as_me:8218: \"$ac_try\"") >&5 8219 (eval $ac_try) 2>&5 8220 ac_status=$? 8221 echo "$as_me:8221: \$? = $ac_status" >&5 8222 (exit $ac_status); }; }; then 8223 cf_cv_need_libm=no 8224else 8225 echo "$as_me: failed program was:" >&5 8226cat conftest.$ac_ext >&5 8227cf_cv_need_libm=yes 8228fi 8229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8230fi 8231echo "$as_me:8231: result: $cf_cv_need_libm" >&5 8232echo "${ECHO_T}$cf_cv_need_libm" >&6 8233if test "$cf_cv_need_libm" = yes 8234then 8235 8236 LIBS="-lm $LIBS" 8237 8238fi 8239 8240echo "$as_me:8240: checking if you want to use dmalloc for testing" >&5 8241echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 8242 8243# Check whether --with-dmalloc or --without-dmalloc was given. 8244if test "${with_dmalloc+set}" = set; then 8245 withval="$with_dmalloc" 8246 cat >>confdefs.h <<\EOF 8247#define USE_DMALLOC 1 8248EOF 8249 8250 : ${with_cflags:=-g} 8251 : ${with_no_leaks:=yes} 8252 with_dmalloc=yes 8253else 8254 with_dmalloc= 8255fi; 8256echo "$as_me:8256: result: ${with_dmalloc:-no}" >&5 8257echo "${ECHO_T}${with_dmalloc:-no}" >&6 8258 8259case .$with_cflags in #(vi 8260.*-g*) 8261 case .$CFLAGS in #(vi 8262 .*-g*) #(vi 8263 ;; 8264 *) 8265 8266cf_fix_cppflags=no 8267cf_new_cflags= 8268cf_new_cppflags= 8269cf_new_extra_cppflags= 8270 8271for cf_add_cflags in -g 8272do 8273case $cf_fix_cppflags in 8274no) 8275 case $cf_add_cflags in #(vi 8276 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8277 case $cf_add_cflags in 8278 -D*) 8279 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8280 8281 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8282 && test -z "${cf_tst_cflags}" \ 8283 && cf_fix_cppflags=yes 8284 8285 if test $cf_fix_cppflags = yes ; then 8286 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8287 continue 8288 elif test "${cf_tst_cflags}" = "\"'" ; then 8289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8290 continue 8291 fi 8292 ;; 8293 esac 8294 case "$CPPFLAGS" in 8295 *$cf_add_cflags) #(vi 8296 ;; 8297 *) #(vi 8298 case $cf_add_cflags in #(vi 8299 -D*) 8300 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8301 8302CPPFLAGS=`echo "$CPPFLAGS" | \ 8303 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8304 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8305 8306 ;; 8307 esac 8308 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8309 ;; 8310 esac 8311 ;; 8312 *) 8313 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8314 ;; 8315 esac 8316 ;; 8317yes) 8318 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8319 8320 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8321 8322 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8323 && test -z "${cf_tst_cflags}" \ 8324 && cf_fix_cppflags=no 8325 ;; 8326esac 8327done 8328 8329if test -n "$cf_new_cflags" ; then 8330 8331 CFLAGS="$CFLAGS $cf_new_cflags" 8332fi 8333 8334if test -n "$cf_new_cppflags" ; then 8335 8336 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8337fi 8338 8339if test -n "$cf_new_extra_cppflags" ; then 8340 8341 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8342fi 8343 8344 ;; 8345 esac 8346 ;; 8347esac 8348 8349if test "$with_dmalloc" = yes ; then 8350 echo "$as_me:8350: checking for dmalloc.h" >&5 8351echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 8352if test "${ac_cv_header_dmalloc_h+set}" = set; then 8353 echo $ECHO_N "(cached) $ECHO_C" >&6 8354else 8355 cat >conftest.$ac_ext <<_ACEOF 8356#line 8356 "configure" 8357#include "confdefs.h" 8358#include <dmalloc.h> 8359_ACEOF 8360if { (eval echo "$as_me:8360: \"$ac_cpp conftest.$ac_ext\"") >&5 8361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8362 ac_status=$? 8363 egrep -v '^ *\+' conftest.er1 >conftest.err 8364 rm -f conftest.er1 8365 cat conftest.err >&5 8366 echo "$as_me:8366: \$? = $ac_status" >&5 8367 (exit $ac_status); } >/dev/null; then 8368 if test -s conftest.err; then 8369 ac_cpp_err=$ac_c_preproc_warn_flag 8370 else 8371 ac_cpp_err= 8372 fi 8373else 8374 ac_cpp_err=yes 8375fi 8376if test -z "$ac_cpp_err"; then 8377 ac_cv_header_dmalloc_h=yes 8378else 8379 echo "$as_me: failed program was:" >&5 8380 cat conftest.$ac_ext >&5 8381 ac_cv_header_dmalloc_h=no 8382fi 8383rm -f conftest.err conftest.$ac_ext 8384fi 8385echo "$as_me:8385: result: $ac_cv_header_dmalloc_h" >&5 8386echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 8387if test $ac_cv_header_dmalloc_h = yes; then 8388 8389echo "$as_me:8389: checking for dmalloc_debug in -ldmalloc" >&5 8390echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 8391if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 8392 echo $ECHO_N "(cached) $ECHO_C" >&6 8393else 8394 ac_check_lib_save_LIBS=$LIBS 8395LIBS="-ldmalloc $LIBS" 8396cat >conftest.$ac_ext <<_ACEOF 8397#line 8397 "configure" 8398#include "confdefs.h" 8399 8400/* Override any gcc2 internal prototype to avoid an error. */ 8401#ifdef __cplusplus 8402extern "C" 8403#endif 8404/* We use char because int might match the return type of a gcc2 8405 builtin and then its argument prototype would still apply. */ 8406char dmalloc_debug (); 8407int 8408main () 8409{ 8410dmalloc_debug (); 8411 ; 8412 return 0; 8413} 8414_ACEOF 8415rm -f conftest.$ac_objext conftest$ac_exeext 8416if { (eval echo "$as_me:8416: \"$ac_link\"") >&5 8417 (eval $ac_link) 2>&5 8418 ac_status=$? 8419 echo "$as_me:8419: \$? = $ac_status" >&5 8420 (exit $ac_status); } && 8421 { ac_try='test -s conftest$ac_exeext' 8422 { (eval echo "$as_me:8422: \"$ac_try\"") >&5 8423 (eval $ac_try) 2>&5 8424 ac_status=$? 8425 echo "$as_me:8425: \$? = $ac_status" >&5 8426 (exit $ac_status); }; }; then 8427 ac_cv_lib_dmalloc_dmalloc_debug=yes 8428else 8429 echo "$as_me: failed program was:" >&5 8430cat conftest.$ac_ext >&5 8431ac_cv_lib_dmalloc_dmalloc_debug=no 8432fi 8433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8434LIBS=$ac_check_lib_save_LIBS 8435fi 8436echo "$as_me:8436: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 8437echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 8438if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 8439 cat >>confdefs.h <<EOF 8440#define HAVE_LIBDMALLOC 1 8441EOF 8442 8443 LIBS="-ldmalloc $LIBS" 8444 8445fi 8446 8447fi 8448 8449fi 8450 8451echo "$as_me:8451: checking if you want to use dbmalloc for testing" >&5 8452echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 8453 8454# Check whether --with-dbmalloc or --without-dbmalloc was given. 8455if test "${with_dbmalloc+set}" = set; then 8456 withval="$with_dbmalloc" 8457 cat >>confdefs.h <<\EOF 8458#define USE_DBMALLOC 1 8459EOF 8460 8461 : ${with_cflags:=-g} 8462 : ${with_no_leaks:=yes} 8463 with_dbmalloc=yes 8464else 8465 with_dbmalloc= 8466fi; 8467echo "$as_me:8467: result: ${with_dbmalloc:-no}" >&5 8468echo "${ECHO_T}${with_dbmalloc:-no}" >&6 8469 8470case .$with_cflags in #(vi 8471.*-g*) 8472 case .$CFLAGS in #(vi 8473 .*-g*) #(vi 8474 ;; 8475 *) 8476 8477cf_fix_cppflags=no 8478cf_new_cflags= 8479cf_new_cppflags= 8480cf_new_extra_cppflags= 8481 8482for cf_add_cflags in -g 8483do 8484case $cf_fix_cppflags in 8485no) 8486 case $cf_add_cflags in #(vi 8487 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8488 case $cf_add_cflags in 8489 -D*) 8490 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8491 8492 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8493 && test -z "${cf_tst_cflags}" \ 8494 && cf_fix_cppflags=yes 8495 8496 if test $cf_fix_cppflags = yes ; then 8497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8498 continue 8499 elif test "${cf_tst_cflags}" = "\"'" ; then 8500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8501 continue 8502 fi 8503 ;; 8504 esac 8505 case "$CPPFLAGS" in 8506 *$cf_add_cflags) #(vi 8507 ;; 8508 *) #(vi 8509 case $cf_add_cflags in #(vi 8510 -D*) 8511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8512 8513CPPFLAGS=`echo "$CPPFLAGS" | \ 8514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8516 8517 ;; 8518 esac 8519 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8520 ;; 8521 esac 8522 ;; 8523 *) 8524 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8525 ;; 8526 esac 8527 ;; 8528yes) 8529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8530 8531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8532 8533 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8534 && test -z "${cf_tst_cflags}" \ 8535 && cf_fix_cppflags=no 8536 ;; 8537esac 8538done 8539 8540if test -n "$cf_new_cflags" ; then 8541 8542 CFLAGS="$CFLAGS $cf_new_cflags" 8543fi 8544 8545if test -n "$cf_new_cppflags" ; then 8546 8547 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8548fi 8549 8550if test -n "$cf_new_extra_cppflags" ; then 8551 8552 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8553fi 8554 8555 ;; 8556 esac 8557 ;; 8558esac 8559 8560if test "$with_dbmalloc" = yes ; then 8561 echo "$as_me:8561: checking for dbmalloc.h" >&5 8562echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 8563if test "${ac_cv_header_dbmalloc_h+set}" = set; then 8564 echo $ECHO_N "(cached) $ECHO_C" >&6 8565else 8566 cat >conftest.$ac_ext <<_ACEOF 8567#line 8567 "configure" 8568#include "confdefs.h" 8569#include <dbmalloc.h> 8570_ACEOF 8571if { (eval echo "$as_me:8571: \"$ac_cpp conftest.$ac_ext\"") >&5 8572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8573 ac_status=$? 8574 egrep -v '^ *\+' conftest.er1 >conftest.err 8575 rm -f conftest.er1 8576 cat conftest.err >&5 8577 echo "$as_me:8577: \$? = $ac_status" >&5 8578 (exit $ac_status); } >/dev/null; then 8579 if test -s conftest.err; then 8580 ac_cpp_err=$ac_c_preproc_warn_flag 8581 else 8582 ac_cpp_err= 8583 fi 8584else 8585 ac_cpp_err=yes 8586fi 8587if test -z "$ac_cpp_err"; then 8588 ac_cv_header_dbmalloc_h=yes 8589else 8590 echo "$as_me: failed program was:" >&5 8591 cat conftest.$ac_ext >&5 8592 ac_cv_header_dbmalloc_h=no 8593fi 8594rm -f conftest.err conftest.$ac_ext 8595fi 8596echo "$as_me:8596: result: $ac_cv_header_dbmalloc_h" >&5 8597echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 8598if test $ac_cv_header_dbmalloc_h = yes; then 8599 8600echo "$as_me:8600: checking for debug_malloc in -ldbmalloc" >&5 8601echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 8602if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 8603 echo $ECHO_N "(cached) $ECHO_C" >&6 8604else 8605 ac_check_lib_save_LIBS=$LIBS 8606LIBS="-ldbmalloc $LIBS" 8607cat >conftest.$ac_ext <<_ACEOF 8608#line 8608 "configure" 8609#include "confdefs.h" 8610 8611/* Override any gcc2 internal prototype to avoid an error. */ 8612#ifdef __cplusplus 8613extern "C" 8614#endif 8615/* We use char because int might match the return type of a gcc2 8616 builtin and then its argument prototype would still apply. */ 8617char debug_malloc (); 8618int 8619main () 8620{ 8621debug_malloc (); 8622 ; 8623 return 0; 8624} 8625_ACEOF 8626rm -f conftest.$ac_objext conftest$ac_exeext 8627if { (eval echo "$as_me:8627: \"$ac_link\"") >&5 8628 (eval $ac_link) 2>&5 8629 ac_status=$? 8630 echo "$as_me:8630: \$? = $ac_status" >&5 8631 (exit $ac_status); } && 8632 { ac_try='test -s conftest$ac_exeext' 8633 { (eval echo "$as_me:8633: \"$ac_try\"") >&5 8634 (eval $ac_try) 2>&5 8635 ac_status=$? 8636 echo "$as_me:8636: \$? = $ac_status" >&5 8637 (exit $ac_status); }; }; then 8638 ac_cv_lib_dbmalloc_debug_malloc=yes 8639else 8640 echo "$as_me: failed program was:" >&5 8641cat conftest.$ac_ext >&5 8642ac_cv_lib_dbmalloc_debug_malloc=no 8643fi 8644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8645LIBS=$ac_check_lib_save_LIBS 8646fi 8647echo "$as_me:8647: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 8648echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 8649if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 8650 cat >>confdefs.h <<EOF 8651#define HAVE_LIBDBMALLOC 1 8652EOF 8653 8654 LIBS="-ldbmalloc $LIBS" 8655 8656fi 8657 8658fi 8659 8660fi 8661 8662echo "$as_me:8662: checking if you want to use purify for testing" >&5 8663echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6 8664 8665# Check whether --with-purify or --without-purify was given. 8666if test "${with_purify+set}" = set; then 8667 withval="$with_purify" 8668 cat >>confdefs.h <<\EOF 8669#define USE_PURIFY 1 8670EOF 8671 8672 : ${with_cflags:=-g} 8673 : ${with_no_leaks:=yes} 8674 with_purify=yes 8675else 8676 with_purify= 8677fi; 8678echo "$as_me:8678: result: ${with_purify:-no}" >&5 8679echo "${ECHO_T}${with_purify:-no}" >&6 8680 8681case .$with_cflags in #(vi 8682.*-g*) 8683 case .$CFLAGS in #(vi 8684 .*-g*) #(vi 8685 ;; 8686 *) 8687 8688cf_fix_cppflags=no 8689cf_new_cflags= 8690cf_new_cppflags= 8691cf_new_extra_cppflags= 8692 8693for cf_add_cflags in -g 8694do 8695case $cf_fix_cppflags in 8696no) 8697 case $cf_add_cflags in #(vi 8698 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8699 case $cf_add_cflags in 8700 -D*) 8701 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8702 8703 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8704 && test -z "${cf_tst_cflags}" \ 8705 && cf_fix_cppflags=yes 8706 8707 if test $cf_fix_cppflags = yes ; then 8708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8709 continue 8710 elif test "${cf_tst_cflags}" = "\"'" ; then 8711 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8712 continue 8713 fi 8714 ;; 8715 esac 8716 case "$CPPFLAGS" in 8717 *$cf_add_cflags) #(vi 8718 ;; 8719 *) #(vi 8720 case $cf_add_cflags in #(vi 8721 -D*) 8722 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8723 8724CPPFLAGS=`echo "$CPPFLAGS" | \ 8725 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8726 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8727 8728 ;; 8729 esac 8730 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8731 ;; 8732 esac 8733 ;; 8734 *) 8735 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8736 ;; 8737 esac 8738 ;; 8739yes) 8740 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8741 8742 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8743 8744 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8745 && test -z "${cf_tst_cflags}" \ 8746 && cf_fix_cppflags=no 8747 ;; 8748esac 8749done 8750 8751if test -n "$cf_new_cflags" ; then 8752 8753 CFLAGS="$CFLAGS $cf_new_cflags" 8754fi 8755 8756if test -n "$cf_new_cppflags" ; then 8757 8758 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8759fi 8760 8761if test -n "$cf_new_extra_cppflags" ; then 8762 8763 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8764fi 8765 8766 ;; 8767 esac 8768 ;; 8769esac 8770 8771echo "$as_me:8771: checking if you want to use valgrind for testing" >&5 8772echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 8773 8774# Check whether --with-valgrind or --without-valgrind was given. 8775if test "${with_valgrind+set}" = set; then 8776 withval="$with_valgrind" 8777 cat >>confdefs.h <<\EOF 8778#define USE_VALGRIND 1 8779EOF 8780 8781 : ${with_cflags:=-g} 8782 : ${with_no_leaks:=yes} 8783 with_valgrind=yes 8784else 8785 with_valgrind= 8786fi; 8787echo "$as_me:8787: result: ${with_valgrind:-no}" >&5 8788echo "${ECHO_T}${with_valgrind:-no}" >&6 8789 8790case .$with_cflags in #(vi 8791.*-g*) 8792 case .$CFLAGS in #(vi 8793 .*-g*) #(vi 8794 ;; 8795 *) 8796 8797cf_fix_cppflags=no 8798cf_new_cflags= 8799cf_new_cppflags= 8800cf_new_extra_cppflags= 8801 8802for cf_add_cflags in -g 8803do 8804case $cf_fix_cppflags in 8805no) 8806 case $cf_add_cflags in #(vi 8807 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8808 case $cf_add_cflags in 8809 -D*) 8810 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8811 8812 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8813 && test -z "${cf_tst_cflags}" \ 8814 && cf_fix_cppflags=yes 8815 8816 if test $cf_fix_cppflags = yes ; then 8817 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8818 continue 8819 elif test "${cf_tst_cflags}" = "\"'" ; then 8820 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8821 continue 8822 fi 8823 ;; 8824 esac 8825 case "$CPPFLAGS" in 8826 *$cf_add_cflags) #(vi 8827 ;; 8828 *) #(vi 8829 case $cf_add_cflags in #(vi 8830 -D*) 8831 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8832 8833CPPFLAGS=`echo "$CPPFLAGS" | \ 8834 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8835 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8836 8837 ;; 8838 esac 8839 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8840 ;; 8841 esac 8842 ;; 8843 *) 8844 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8845 ;; 8846 esac 8847 ;; 8848yes) 8849 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8850 8851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8852 8853 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8854 && test -z "${cf_tst_cflags}" \ 8855 && cf_fix_cppflags=no 8856 ;; 8857esac 8858done 8859 8860if test -n "$cf_new_cflags" ; then 8861 8862 CFLAGS="$CFLAGS $cf_new_cflags" 8863fi 8864 8865if test -n "$cf_new_cppflags" ; then 8866 8867 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8868fi 8869 8870if test -n "$cf_new_extra_cppflags" ; then 8871 8872 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8873fi 8874 8875 ;; 8876 esac 8877 ;; 8878esac 8879 8880echo "$as_me:8880: checking if you want to perform memory-leak testing" >&5 8881echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 8882 8883# Check whether --with-no-leaks or --without-no-leaks was given. 8884if test "${with_no_leaks+set}" = set; then 8885 withval="$with_no_leaks" 8886 cat >>confdefs.h <<\EOF 8887#define NO_LEAKS 1 8888EOF 8889 8890 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}" 8891 case ${cf_doalloc} in #(vi 8892 *yes*) ;; 8893 *) cat >>confdefs.h <<\EOF 8894#define DOALLOC 10000 8895EOF 8896 ;; 8897 esac 8898 with_no_leaks=yes 8899else 8900 with_no_leaks= 8901fi; 8902echo "$as_me:8902: result: $with_no_leaks" >&5 8903echo "${ECHO_T}$with_no_leaks" >&6 8904 8905echo "$as_me:8905: checking if you want --trace option" >&5 8906echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6 8907 8908# Check whether --enable-trace or --disable-trace was given. 8909if test "${enable_trace+set}" = set; then 8910 enableval="$enable_trace" 8911 8912else 8913 enableval=yes 8914fi; 8915echo "$as_me:8915: result: $enableval" >&5 8916echo "${ECHO_T}$enableval" >&6 8917if test "$enableval" != no ; then 8918EXTRAOBJS="$EXTRAOBJS trace\$o" 8919 cat >>confdefs.h <<\EOF 8920#define HAVE_DLG_TRACE 1 8921EOF 8922 8923else 8924 : 8925fi 8926 8927LIBTOOL_MAKE="#" 8928 8929echo "$as_me:8929: checking if libtool -version-number should be used" >&5 8930echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6 8931 8932# Check whether --enable-libtool-version or --disable-libtool-version was given. 8933if test "${enable_libtool_version+set}" = set; then 8934 enableval="$enable_libtool_version" 8935 test "$enableval" != no && enableval=yes 8936 if test "$enableval" != "yes" ; then 8937 cf_libtool_version=no 8938 else 8939 cf_libtool_version=yes 8940 fi 8941else 8942 enableval=yes 8943 cf_libtool_version=yes 8944 8945fi; 8946echo "$as_me:8946: result: $cf_libtool_version" >&5 8947echo "${ECHO_T}$cf_libtool_version" >&6 8948 8949if test "$cf_libtool_version" = yes ; then 8950 LIBTOOL_VERSION="-version-number" 8951else 8952 LIBTOOL_VERSION="-version-info" 8953fi 8954 8955LIBTOOL= 8956 8957# common library maintenance symbols that are convenient for libtool scripts: 8958LIB_CREATE='${AR} -cr' 8959LIB_OBJECT='${OBJECTS}' 8960LIB_SUFFIX=.a 8961LIB_PREP="$RANLIB" 8962 8963# symbols used to prop libtool up to enable it to determine what it should be 8964# doing: 8965LIB_CLEAN= 8966LIB_COMPILE= 8967LIB_LINK='${CC}' 8968LIB_INSTALL= 8969LIB_UNINSTALL= 8970 8971echo "$as_me:8971: checking if you want to build libraries with libtool" >&5 8972echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 8973 8974# Check whether --with-libtool or --without-libtool was given. 8975if test "${with_libtool+set}" = set; then 8976 withval="$with_libtool" 8977 with_libtool=$withval 8978else 8979 with_libtool=no 8980fi; 8981echo "$as_me:8981: result: $with_libtool" >&5 8982echo "${ECHO_T}$with_libtool" >&6 8983if test "$with_libtool" != "no"; then 8984 8985 if test "$with_libtool" != "yes" ; then 8986 8987if test "x$prefix" != xNONE; then 8988 cf_path_syntax="$prefix" 8989else 8990 cf_path_syntax="$ac_default_prefix" 8991fi 8992 8993case ".$with_libtool" in #(vi 8994.\$\(*\)*|.\'*\'*) #(vi 8995 ;; 8996..|./*|.\\*) #(vi 8997 ;; 8998.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8999 ;; 9000.\${*prefix}*) #(vi 9001 eval with_libtool="$with_libtool" 9002 case ".$with_libtool" in #(vi 9003 .NONE/*) 9004 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 9005 ;; 9006 esac 9007 ;; #(vi 9008.no|.NONE/*) 9009 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 9010 ;; 9011*) 9012 { { echo "$as_me:9012: error: expected a pathname, not \"$with_libtool\"" >&5 9013echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 9014 { (exit 1); exit 1; }; } 9015 ;; 9016esac 9017 9018 LIBTOOL=$with_libtool 9019 else 9020 # Extract the first word of "libtool", so it can be a program name with args. 9021set dummy libtool; ac_word=$2 9022echo "$as_me:9022: checking for $ac_word" >&5 9023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9024if test "${ac_cv_path_LIBTOOL+set}" = set; then 9025 echo $ECHO_N "(cached) $ECHO_C" >&6 9026else 9027 case $LIBTOOL in 9028 [\\/]* | ?:[\\/]*) 9029 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path. 9030 ;; 9031 *) 9032 ac_save_IFS=$IFS; IFS=$ac_path_separator 9033ac_dummy="$PATH" 9034for ac_dir in $ac_dummy; do 9035 IFS=$ac_save_IFS 9036 test -z "$ac_dir" && ac_dir=. 9037 if $as_executable_p "$ac_dir/$ac_word"; then 9038 ac_cv_path_LIBTOOL="$ac_dir/$ac_word" 9039 echo "$as_me:9039: found $ac_dir/$ac_word" >&5 9040 break 9041fi 9042done 9043 9044 ;; 9045esac 9046fi 9047LIBTOOL=$ac_cv_path_LIBTOOL 9048 9049if test -n "$LIBTOOL"; then 9050 echo "$as_me:9050: result: $LIBTOOL" >&5 9051echo "${ECHO_T}$LIBTOOL" >&6 9052else 9053 echo "$as_me:9053: result: no" >&5 9054echo "${ECHO_T}no" >&6 9055fi 9056 9057 fi 9058 if test -z "$LIBTOOL" ; then 9059 { { echo "$as_me:9059: error: Cannot find libtool" >&5 9060echo "$as_me: error: Cannot find libtool" >&2;} 9061 { (exit 1); exit 1; }; } 9062 fi 9063 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o' 9064 LIB_OBJECT='${OBJECTS:.o=.lo}' 9065 LIB_SUFFIX=.la 9066 LIB_CLEAN='${LIBTOOL} --mode=clean' 9067 LIB_COMPILE='${LIBTOOL} --mode=compile' 9068 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 9069 LIB_INSTALL='${LIBTOOL} --mode=install' 9070 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 9071 LIB_PREP=: 9072 9073 # Show the version of libtool 9074 echo "$as_me:9074: checking version of libtool" >&5 9075echo $ECHO_N "checking version of libtool... $ECHO_C" >&6 9076 9077 # Save the version in a cache variable - this is not entirely a good 9078 # thing, but the version string from libtool is very ugly, and for 9079 # bug reports it might be useful to have the original string. "(" 9080 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 9081 echo "$as_me:9081: result: $cf_cv_libtool_version" >&5 9082echo "${ECHO_T}$cf_cv_libtool_version" >&6 9083 if test -z "$cf_cv_libtool_version" ; then 9084 { { echo "$as_me:9084: error: This is not GNU libtool" >&5 9085echo "$as_me: error: This is not GNU libtool" >&2;} 9086 { (exit 1); exit 1; }; } 9087 fi 9088 9089 # special hack to add -no-undefined (which libtool should do for itself) 9090 LT_UNDEF= 9091 case "$cf_cv_system_name" in #(vi 9092 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi 9093 LT_UNDEF=-no-undefined 9094 ;; 9095 esac 9096 9097 # special hack to add --tag option for C++ compiler 9098 case $cf_cv_libtool_version in #(vi 9099 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi 9100 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 9101 LIBTOOL="$LIBTOOL --tag=CC" 9102 ;; 9103 *) 9104 LIBTOOL_CXX="$LIBTOOL" 9105 ;; 9106 esac 9107else 9108 LIBTOOL="" 9109 LIBTOOL_CXX="" 9110fi 9111 9112test -z "$LIBTOOL" && ECHO_LT= 9113 9114if test "$with_libtool" = "yes" ; then 9115 OBJEXT="lo" 9116 LIBTOOL_MAKE= 9117 9118echo "$as_me:9118: checking for additional libtool options" >&5 9119echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6 9120 9121# Check whether --with-libtool-opts or --without-libtool-opts was given. 9122if test "${with_libtool_opts+set}" = set; then 9123 withval="$with_libtool_opts" 9124 with_libtool_opts=$withval 9125else 9126 with_libtool_opts=no 9127fi; 9128echo "$as_me:9128: result: $with_libtool_opts" >&5 9129echo "${ECHO_T}$with_libtool_opts" >&6 9130 9131case .$with_libtool_opts in 9132.yes|.no|.) 9133 ;; 9134*) 9135 LIBTOOL_OPTS=$with_libtool_opts 9136 ;; 9137esac 9138 9139fi 9140 9141echo "$as_me:9141: checking for specific curses-directory" >&5 9142echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6 9143 9144# Check whether --with-curses-dir or --without-curses-dir was given. 9145if test "${with_curses_dir+set}" = set; then 9146 withval="$with_curses_dir" 9147 cf_cv_curses_dir=$withval 9148else 9149 cf_cv_curses_dir=no 9150fi; 9151echo "$as_me:9151: result: $cf_cv_curses_dir" >&5 9152echo "${ECHO_T}$cf_cv_curses_dir" >&6 9153 9154if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 9155then 9156 9157if test "x$prefix" != xNONE; then 9158 cf_path_syntax="$prefix" 9159else 9160 cf_path_syntax="$ac_default_prefix" 9161fi 9162 9163case ".$withval" in #(vi 9164.\$\(*\)*|.\'*\'*) #(vi 9165 ;; 9166..|./*|.\\*) #(vi 9167 ;; 9168.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 9169 ;; 9170.\${*prefix}*) #(vi 9171 eval withval="$withval" 9172 case ".$withval" in #(vi 9173 .NONE/*) 9174 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 9175 ;; 9176 esac 9177 ;; #(vi 9178.no|.NONE/*) 9179 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 9180 ;; 9181*) 9182 { { echo "$as_me:9182: error: expected a pathname, not \"$withval\"" >&5 9183echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 9184 { (exit 1); exit 1; }; } 9185 ;; 9186esac 9187 9188 if test -d "$cf_cv_curses_dir" 9189 then 9190 9191if test -n "$cf_cv_curses_dir/include" ; then 9192 for cf_add_incdir in $cf_cv_curses_dir/include 9193 do 9194 while test $cf_add_incdir != /usr/include 9195 do 9196 if test -d $cf_add_incdir 9197 then 9198 cf_have_incdir=no 9199 if test -n "$CFLAGS$CPPFLAGS" ; then 9200 # a loop is needed to ensure we can add subdirs of existing dirs 9201 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9202 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9203 cf_have_incdir=yes; break 9204 fi 9205 done 9206 fi 9207 9208 if test "$cf_have_incdir" = no ; then 9209 if test "$cf_add_incdir" = /usr/local/include ; then 9210 if test "$GCC" = yes 9211 then 9212 cf_save_CPPFLAGS=$CPPFLAGS 9213 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9214 cat >conftest.$ac_ext <<_ACEOF 9215#line 9215 "configure" 9216#include "confdefs.h" 9217#include <stdio.h> 9218int 9219main () 9220{ 9221printf("Hello") 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226rm -f conftest.$ac_objext 9227if { (eval echo "$as_me:9227: \"$ac_compile\"") >&5 9228 (eval $ac_compile) 2>&5 9229 ac_status=$? 9230 echo "$as_me:9230: \$? = $ac_status" >&5 9231 (exit $ac_status); } && 9232 { ac_try='test -s conftest.$ac_objext' 9233 { (eval echo "$as_me:9233: \"$ac_try\"") >&5 9234 (eval $ac_try) 2>&5 9235 ac_status=$? 9236 echo "$as_me:9236: \$? = $ac_status" >&5 9237 (exit $ac_status); }; }; then 9238 : 9239else 9240 echo "$as_me: failed program was:" >&5 9241cat conftest.$ac_ext >&5 9242cf_have_incdir=yes 9243fi 9244rm -f conftest.$ac_objext conftest.$ac_ext 9245 CPPFLAGS=$cf_save_CPPFLAGS 9246 fi 9247 fi 9248 fi 9249 9250 if test "$cf_have_incdir" = no ; then 9251 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9252 9253echo "${as_me:-configure}:9253: testing adding $cf_add_incdir to include-path ..." 1>&5 9254 9255 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9256 9257 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9258 test "$cf_top_incdir" = "$cf_add_incdir" && break 9259 cf_add_incdir="$cf_top_incdir" 9260 else 9261 break 9262 fi 9263 fi 9264 done 9265 done 9266fi 9267 9268if test -n "$cf_cv_curses_dir/lib" ; then 9269 for cf_add_libdir in $cf_cv_curses_dir/lib 9270 do 9271 if test $cf_add_libdir = /usr/lib ; then 9272 : 9273 elif test -d $cf_add_libdir 9274 then 9275 cf_have_libdir=no 9276 if test -n "$LDFLAGS$LIBS" ; then 9277 # a loop is needed to ensure we can add subdirs of existing dirs 9278 for cf_test_libdir in $LDFLAGS $LIBS ; do 9279 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 9280 cf_have_libdir=yes; break 9281 fi 9282 done 9283 fi 9284 if test "$cf_have_libdir" = no ; then 9285 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 9286 9287echo "${as_me:-configure}:9287: testing adding $cf_add_libdir to library-path ..." 1>&5 9288 9289 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 9290 fi 9291 fi 9292 done 9293fi 9294 9295 fi 9296fi 9297 9298use_ncurses=no 9299 9300# Check whether --with-ncurses or --without-ncurses was given. 9301if test "${with_ncurses+set}" = set; then 9302 withval="$with_ncurses" 9303 use_ncurses=ncurses 9304fi; 9305 9306# Check whether --with-ncursesw or --without-ncursesw was given. 9307if test "${with_ncursesw+set}" = set; then 9308 withval="$with_ncursesw" 9309 use_ncurses=ncursesw 9310fi; 9311if test $use_ncurses != no ; then 9312 cf_wide_curses=yes 9313 if test $use_ncurses = ncursesw ; then 9314 9315echo "$as_me:9315: checking for multibyte character support" >&5 9316echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 9317if test "${cf_cv_utf8_lib+set}" = set; then 9318 echo $ECHO_N "(cached) $ECHO_C" >&6 9319else 9320 9321 cf_save_LIBS="$LIBS" 9322 cat >conftest.$ac_ext <<_ACEOF 9323#line 9323 "configure" 9324#include "confdefs.h" 9325 9326#include <stdlib.h> 9327int 9328main () 9329{ 9330putwc(0,0); 9331 ; 9332 return 0; 9333} 9334_ACEOF 9335rm -f conftest.$ac_objext conftest$ac_exeext 9336if { (eval echo "$as_me:9336: \"$ac_link\"") >&5 9337 (eval $ac_link) 2>&5 9338 ac_status=$? 9339 echo "$as_me:9339: \$? = $ac_status" >&5 9340 (exit $ac_status); } && 9341 { ac_try='test -s conftest$ac_exeext' 9342 { (eval echo "$as_me:9342: \"$ac_try\"") >&5 9343 (eval $ac_try) 2>&5 9344 ac_status=$? 9345 echo "$as_me:9345: \$? = $ac_status" >&5 9346 (exit $ac_status); }; }; then 9347 cf_cv_utf8_lib=yes 9348else 9349 echo "$as_me: failed program was:" >&5 9350cat conftest.$ac_ext >&5 9351 9352# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 9353# will be set on completion of the AC_TRY_LINK below. 9354cf_cv_header_path_utf8= 9355cf_cv_library_path_utf8= 9356 9357echo "${as_me:-configure}:9357: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 9358 9359cf_save_LIBS="$LIBS" 9360 9361cat >conftest.$ac_ext <<_ACEOF 9362#line 9362 "configure" 9363#include "confdefs.h" 9364 9365#include <libutf8.h> 9366int 9367main () 9368{ 9369putwc(0,0); 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374rm -f conftest.$ac_objext conftest$ac_exeext 9375if { (eval echo "$as_me:9375: \"$ac_link\"") >&5 9376 (eval $ac_link) 2>&5 9377 ac_status=$? 9378 echo "$as_me:9378: \$? = $ac_status" >&5 9379 (exit $ac_status); } && 9380 { ac_try='test -s conftest$ac_exeext' 9381 { (eval echo "$as_me:9381: \"$ac_try\"") >&5 9382 (eval $ac_try) 2>&5 9383 ac_status=$? 9384 echo "$as_me:9384: \$? = $ac_status" >&5 9385 (exit $ac_status); }; }; then 9386 9387 cf_cv_find_linkage_utf8=yes 9388 cf_cv_header_path_utf8=/usr/include 9389 cf_cv_library_path_utf8=/usr/lib 9390 9391else 9392 echo "$as_me: failed program was:" >&5 9393cat conftest.$ac_ext >&5 9394 9395LIBS="-lutf8 $cf_save_LIBS" 9396 9397cat >conftest.$ac_ext <<_ACEOF 9398#line 9398 "configure" 9399#include "confdefs.h" 9400 9401#include <libutf8.h> 9402int 9403main () 9404{ 9405putwc(0,0); 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410rm -f conftest.$ac_objext conftest$ac_exeext 9411if { (eval echo "$as_me:9411: \"$ac_link\"") >&5 9412 (eval $ac_link) 2>&5 9413 ac_status=$? 9414 echo "$as_me:9414: \$? = $ac_status" >&5 9415 (exit $ac_status); } && 9416 { ac_try='test -s conftest$ac_exeext' 9417 { (eval echo "$as_me:9417: \"$ac_try\"") >&5 9418 (eval $ac_try) 2>&5 9419 ac_status=$? 9420 echo "$as_me:9420: \$? = $ac_status" >&5 9421 (exit $ac_status); }; }; then 9422 9423 cf_cv_find_linkage_utf8=yes 9424 cf_cv_header_path_utf8=/usr/include 9425 cf_cv_library_path_utf8=/usr/lib 9426 cf_cv_library_file_utf8="-lutf8" 9427 9428else 9429 echo "$as_me: failed program was:" >&5 9430cat conftest.$ac_ext >&5 9431 9432 cf_cv_find_linkage_utf8=no 9433 LIBS="$cf_save_LIBS" 9434 9435 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 9436 9437echo "${as_me:-configure}:9437: testing find linkage for utf8 library ..." 1>&5 9438 9439echo "${as_me:-configure}:9439: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 9440 9441 cf_save_CPPFLAGS="$CPPFLAGS" 9442 cf_test_CPPFLAGS="$CPPFLAGS" 9443 9444cf_search= 9445 9446# collect the current set of include-directories from compiler flags 9447cf_header_path_list="" 9448if test -n "${CFLAGS}${CPPFLAGS}" ; then 9449 for cf_header_path in $CPPFLAGS $CFLAGS 9450 do 9451 case $cf_header_path in #(vi 9452 -I*) 9453 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 9454 9455test "$cf_header_path" != "NONE" && \ 9456test -d "$cf_header_path" && \ 9457 { 9458 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 9459 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 9460 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8" 9461 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include" 9462 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include" 9463 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 9464} 9465 9466 cf_header_path_list="$cf_header_path_list $cf_search" 9467 ;; 9468 esac 9469 done 9470fi 9471 9472# add the variations for the package we are looking for 9473 9474cf_search= 9475 9476test "/usr" != "$prefix" && \ 9477test -d "/usr" && \ 9478(test $prefix = NONE || test "/usr" != "$prefix") && { 9479 test -n "$verbose" && echo " ... testing for include-directories under /usr" 9480 test -d /usr/include && cf_search="$cf_search /usr/include" 9481 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8" 9482 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include" 9483 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include" 9484 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8" 9485} 9486 9487test "$prefix" != "NONE" && \ 9488test -d "$prefix" && \ 9489 { 9490 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 9491 test -d $prefix/include && cf_search="$cf_search $prefix/include" 9492 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8" 9493 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include" 9494 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include" 9495 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8" 9496} 9497 9498test "/usr/local" != "$prefix" && \ 9499test -d "/usr/local" && \ 9500(test $prefix = NONE || test "/usr/local" != "$prefix") && { 9501 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 9502 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 9503 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8" 9504 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include" 9505 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include" 9506 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8" 9507} 9508 9509test "/opt" != "$prefix" && \ 9510test -d "/opt" && \ 9511(test $prefix = NONE || test "/opt" != "$prefix") && { 9512 test -n "$verbose" && echo " ... testing for include-directories under /opt" 9513 test -d /opt/include && cf_search="$cf_search /opt/include" 9514 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8" 9515 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include" 9516 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include" 9517 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8" 9518} 9519 9520test "$HOME" != "$prefix" && \ 9521test -d "$HOME" && \ 9522(test $prefix = NONE || test "$HOME" != "$prefix") && { 9523 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 9524 test -d $HOME/include && cf_search="$cf_search $HOME/include" 9525 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8" 9526 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include" 9527 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include" 9528 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8" 9529} 9530 9531test "$includedir" != NONE && \ 9532test "$includedir" != "/usr/include" && \ 9533test -d "$includedir" && { 9534 test -d $includedir && cf_search="$cf_search $includedir" 9535 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8" 9536} 9537 9538test "$oldincludedir" != NONE && \ 9539test "$oldincludedir" != "/usr/include" && \ 9540test -d "$oldincludedir" && { 9541 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 9542 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8" 9543} 9544 9545cf_search="$cf_search $cf_header_path_list" 9546 9547 for cf_cv_header_path_utf8 in $cf_search 9548 do 9549 if test -d $cf_cv_header_path_utf8 ; then 9550 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 9551 9552echo "${as_me:-configure}:9552: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 9553 9554 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8" 9555 cat >conftest.$ac_ext <<_ACEOF 9556#line 9556 "configure" 9557#include "confdefs.h" 9558 9559#include <libutf8.h> 9560int 9561main () 9562{ 9563putwc(0,0); 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568rm -f conftest.$ac_objext 9569if { (eval echo "$as_me:9569: \"$ac_compile\"") >&5 9570 (eval $ac_compile) 2>&5 9571 ac_status=$? 9572 echo "$as_me:9572: \$? = $ac_status" >&5 9573 (exit $ac_status); } && 9574 { ac_try='test -s conftest.$ac_objext' 9575 { (eval echo "$as_me:9575: \"$ac_try\"") >&5 9576 (eval $ac_try) 2>&5 9577 ac_status=$? 9578 echo "$as_me:9578: \$? = $ac_status" >&5 9579 (exit $ac_status); }; }; then 9580 9581 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 9582 9583echo "${as_me:-configure}:9583: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 9584 9585 cf_cv_find_linkage_utf8=maybe 9586 cf_test_CPPFLAGS="$CPPFLAGS" 9587 break 9588else 9589 echo "$as_me: failed program was:" >&5 9590cat conftest.$ac_ext >&5 9591 9592 CPPFLAGS="$cf_save_CPPFLAGS" 9593 9594fi 9595rm -f conftest.$ac_objext conftest.$ac_ext 9596 fi 9597 done 9598 9599 if test "$cf_cv_find_linkage_utf8" = maybe ; then 9600 9601echo "${as_me:-configure}:9601: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 9602 9603 cf_save_LIBS="$LIBS" 9604 cf_save_LDFLAGS="$LDFLAGS" 9605 9606 if test "$cf_cv_find_linkage_utf8" != yes ; then 9607 9608cf_search= 9609cf_library_path_list="" 9610if test -n "${LDFLAGS}${LIBS}" ; then 9611 for cf_library_path in $LDFLAGS $LIBS 9612 do 9613 case $cf_library_path in #(vi 9614 -L*) 9615 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 9616 9617test "$cf_library_path" != "NONE" && \ 9618test -d "$cf_library_path" && \ 9619 { 9620 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 9621 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 9622 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8" 9623 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 9624 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib" 9625 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 9626} 9627 9628 cf_library_path_list="$cf_library_path_list $cf_search" 9629 ;; 9630 esac 9631 done 9632fi 9633 9634cf_search= 9635 9636test "/usr" != "$prefix" && \ 9637test -d "/usr" && \ 9638(test $prefix = NONE || test "/usr" != "$prefix") && { 9639 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 9640 test -d /usr/lib && cf_search="$cf_search /usr/lib" 9641 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8" 9642 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib" 9643 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib" 9644 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8" 9645} 9646 9647test "$prefix" != "NONE" && \ 9648test -d "$prefix" && \ 9649 { 9650 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 9651 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 9652 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8" 9653 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib" 9654 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib" 9655 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8" 9656} 9657 9658test "/usr/local" != "$prefix" && \ 9659test -d "/usr/local" && \ 9660(test $prefix = NONE || test "/usr/local" != "$prefix") && { 9661 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 9662 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 9663 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8" 9664 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib" 9665 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib" 9666 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8" 9667} 9668 9669test "/opt" != "$prefix" && \ 9670test -d "/opt" && \ 9671(test $prefix = NONE || test "/opt" != "$prefix") && { 9672 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 9673 test -d /opt/lib && cf_search="$cf_search /opt/lib" 9674 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8" 9675 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib" 9676 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib" 9677 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8" 9678} 9679 9680test "$HOME" != "$prefix" && \ 9681test -d "$HOME" && \ 9682(test $prefix = NONE || test "$HOME" != "$prefix") && { 9683 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 9684 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 9685 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8" 9686 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib" 9687 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib" 9688 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8" 9689} 9690 9691cf_search="$cf_library_path_list $cf_search" 9692 9693 for cf_cv_library_path_utf8 in $cf_search 9694 do 9695 if test -d $cf_cv_library_path_utf8 ; then 9696 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 9697 9698echo "${as_me:-configure}:9698: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 9699 9700 CPPFLAGS="$cf_test_CPPFLAGS" 9701 LIBS="-lutf8 $cf_save_LIBS" 9702 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 9703 cat >conftest.$ac_ext <<_ACEOF 9704#line 9704 "configure" 9705#include "confdefs.h" 9706 9707#include <libutf8.h> 9708int 9709main () 9710{ 9711putwc(0,0); 9712 ; 9713 return 0; 9714} 9715_ACEOF 9716rm -f conftest.$ac_objext conftest$ac_exeext 9717if { (eval echo "$as_me:9717: \"$ac_link\"") >&5 9718 (eval $ac_link) 2>&5 9719 ac_status=$? 9720 echo "$as_me:9720: \$? = $ac_status" >&5 9721 (exit $ac_status); } && 9722 { ac_try='test -s conftest$ac_exeext' 9723 { (eval echo "$as_me:9723: \"$ac_try\"") >&5 9724 (eval $ac_try) 2>&5 9725 ac_status=$? 9726 echo "$as_me:9726: \$? = $ac_status" >&5 9727 (exit $ac_status); }; }; then 9728 9729 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 9730 9731echo "${as_me:-configure}:9731: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 9732 9733 cf_cv_find_linkage_utf8=yes 9734 cf_cv_library_file_utf8="-lutf8" 9735 break 9736else 9737 echo "$as_me: failed program was:" >&5 9738cat conftest.$ac_ext >&5 9739 9740 CPPFLAGS="$cf_save_CPPFLAGS" 9741 LIBS="$cf_save_LIBS" 9742 LDFLAGS="$cf_save_LDFLAGS" 9743 9744fi 9745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9746 fi 9747 done 9748 CPPFLAGS="$cf_save_CPPFLAGS" 9749 LDFLAGS="$cf_save_LDFLAGS" 9750 fi 9751 9752 else 9753 cf_cv_find_linkage_utf8=no 9754 fi 9755 9756fi 9757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9758 9759fi 9760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9761 9762LIBS="$cf_save_LIBS" 9763 9764if test "$cf_cv_find_linkage_utf8" = yes ; then 9765cf_cv_utf8_lib=add-on 9766else 9767cf_cv_utf8_lib=no 9768fi 9769 9770fi 9771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9772fi 9773echo "$as_me:9773: result: $cf_cv_utf8_lib" >&5 9774echo "${ECHO_T}$cf_cv_utf8_lib" >&6 9775 9776# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 9777# ncurses/ncursesw: 9778if test "$cf_cv_utf8_lib" = "add-on" ; then 9779 cat >>confdefs.h <<\EOF 9780#define HAVE_LIBUTF8_H 1 9781EOF 9782 9783if test -n "$cf_cv_header_path_utf8" ; then 9784 for cf_add_incdir in $cf_cv_header_path_utf8 9785 do 9786 while test $cf_add_incdir != /usr/include 9787 do 9788 if test -d $cf_add_incdir 9789 then 9790 cf_have_incdir=no 9791 if test -n "$CFLAGS$CPPFLAGS" ; then 9792 # a loop is needed to ensure we can add subdirs of existing dirs 9793 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9794 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9795 cf_have_incdir=yes; break 9796 fi 9797 done 9798 fi 9799 9800 if test "$cf_have_incdir" = no ; then 9801 if test "$cf_add_incdir" = /usr/local/include ; then 9802 if test "$GCC" = yes 9803 then 9804 cf_save_CPPFLAGS=$CPPFLAGS 9805 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9806 cat >conftest.$ac_ext <<_ACEOF 9807#line 9807 "configure" 9808#include "confdefs.h" 9809#include <stdio.h> 9810int 9811main () 9812{ 9813printf("Hello") 9814 ; 9815 return 0; 9816} 9817_ACEOF 9818rm -f conftest.$ac_objext 9819if { (eval echo "$as_me:9819: \"$ac_compile\"") >&5 9820 (eval $ac_compile) 2>&5 9821 ac_status=$? 9822 echo "$as_me:9822: \$? = $ac_status" >&5 9823 (exit $ac_status); } && 9824 { ac_try='test -s conftest.$ac_objext' 9825 { (eval echo "$as_me:9825: \"$ac_try\"") >&5 9826 (eval $ac_try) 2>&5 9827 ac_status=$? 9828 echo "$as_me:9828: \$? = $ac_status" >&5 9829 (exit $ac_status); }; }; then 9830 : 9831else 9832 echo "$as_me: failed program was:" >&5 9833cat conftest.$ac_ext >&5 9834cf_have_incdir=yes 9835fi 9836rm -f conftest.$ac_objext conftest.$ac_ext 9837 CPPFLAGS=$cf_save_CPPFLAGS 9838 fi 9839 fi 9840 fi 9841 9842 if test "$cf_have_incdir" = no ; then 9843 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9844 9845echo "${as_me:-configure}:9845: testing adding $cf_add_incdir to include-path ..." 1>&5 9846 9847 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9848 9849 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9850 test "$cf_top_incdir" = "$cf_add_incdir" && break 9851 cf_add_incdir="$cf_top_incdir" 9852 else 9853 break 9854 fi 9855 fi 9856 done 9857 done 9858fi 9859 9860if test -n "$cf_cv_library_path_utf8" ; then 9861 for cf_add_libdir in $cf_cv_library_path_utf8 9862 do 9863 if test $cf_add_libdir = /usr/lib ; then 9864 : 9865 elif test -d $cf_add_libdir 9866 then 9867 cf_have_libdir=no 9868 if test -n "$LDFLAGS$LIBS" ; then 9869 # a loop is needed to ensure we can add subdirs of existing dirs 9870 for cf_test_libdir in $LDFLAGS $LIBS ; do 9871 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 9872 cf_have_libdir=yes; break 9873 fi 9874 done 9875 fi 9876 if test "$cf_have_libdir" = no ; then 9877 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 9878 9879echo "${as_me:-configure}:9879: testing adding $cf_add_libdir to library-path ..." 1>&5 9880 9881 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 9882 fi 9883 fi 9884 done 9885fi 9886 9887 LIBS="$cf_cv_library_file_utf8 $LIBS" 9888fi 9889 9890 fi 9891 9892cf_ncuconfig_root=$use_ncurses 9893 9894echo "Looking for ${cf_ncuconfig_root}-config" 9895 9896if test -n "$ac_tool_prefix"; then 9897 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 9898 do 9899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9900set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9901echo "$as_me:9901: checking for $ac_word" >&5 9902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9903if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then 9904 echo $ECHO_N "(cached) $ECHO_C" >&6 9905else 9906 if test -n "$NCURSES_CONFIG"; then 9907 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test. 9908else 9909 ac_save_IFS=$IFS; IFS=$ac_path_separator 9910ac_dummy="$PATH" 9911for ac_dir in $ac_dummy; do 9912 IFS=$ac_save_IFS 9913 test -z "$ac_dir" && ac_dir=. 9914 $as_executable_p "$ac_dir/$ac_word" || continue 9915ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog" 9916echo "$as_me:9916: found $ac_dir/$ac_word" >&5 9917break 9918done 9919 9920fi 9921fi 9922NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG 9923if test -n "$NCURSES_CONFIG"; then 9924 echo "$as_me:9924: result: $NCURSES_CONFIG" >&5 9925echo "${ECHO_T}$NCURSES_CONFIG" >&6 9926else 9927 echo "$as_me:9927: result: no" >&5 9928echo "${ECHO_T}no" >&6 9929fi 9930 9931 test -n "$NCURSES_CONFIG" && break 9932 done 9933fi 9934if test -z "$NCURSES_CONFIG"; then 9935 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG 9936 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 9937do 9938 # Extract the first word of "$ac_prog", so it can be a program name with args. 9939set dummy $ac_prog; ac_word=$2 9940echo "$as_me:9940: checking for $ac_word" >&5 9941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9942if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then 9943 echo $ECHO_N "(cached) $ECHO_C" >&6 9944else 9945 if test -n "$ac_ct_NCURSES_CONFIG"; then 9946 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test. 9947else 9948 ac_save_IFS=$IFS; IFS=$ac_path_separator 9949ac_dummy="$PATH" 9950for ac_dir in $ac_dummy; do 9951 IFS=$ac_save_IFS 9952 test -z "$ac_dir" && ac_dir=. 9953 $as_executable_p "$ac_dir/$ac_word" || continue 9954ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog" 9955echo "$as_me:9955: found $ac_dir/$ac_word" >&5 9956break 9957done 9958 9959fi 9960fi 9961ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG 9962if test -n "$ac_ct_NCURSES_CONFIG"; then 9963 echo "$as_me:9963: result: $ac_ct_NCURSES_CONFIG" >&5 9964echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6 9965else 9966 echo "$as_me:9966: result: no" >&5 9967echo "${ECHO_T}no" >&6 9968fi 9969 9970 test -n "$ac_ct_NCURSES_CONFIG" && break 9971done 9972test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none" 9973 9974 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG 9975fi 9976 9977if test "$NCURSES_CONFIG" != none ; then 9978 9979CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`" 9980LIBS="`$NCURSES_CONFIG --libs` $LIBS" 9981 9982# even with config script, some packages use no-override for curses.h 9983 9984echo "$as_me:9984: checking if we have identified curses headers" >&5 9985echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 9986if test "${cf_cv_ncurses_header+set}" = set; then 9987 echo $ECHO_N "(cached) $ECHO_C" >&6 9988else 9989 9990cf_cv_ncurses_header=none 9991for cf_header in \ 9992 $use_ncurses/ncurses.h \ 9993 $use_ncurses/curses.h \ 9994 ncurses.h \ 9995 curses.h 9996do 9997cat >conftest.$ac_ext <<_ACEOF 9998#line 9998 "configure" 9999#include "confdefs.h" 10000#include <${cf_header}> 10001int 10002main () 10003{ 10004initscr(); tgoto("?", 0,0) 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009rm -f conftest.$ac_objext 10010if { (eval echo "$as_me:10010: \"$ac_compile\"") >&5 10011 (eval $ac_compile) 2>&5 10012 ac_status=$? 10013 echo "$as_me:10013: \$? = $ac_status" >&5 10014 (exit $ac_status); } && 10015 { ac_try='test -s conftest.$ac_objext' 10016 { (eval echo "$as_me:10016: \"$ac_try\"") >&5 10017 (eval $ac_try) 2>&5 10018 ac_status=$? 10019 echo "$as_me:10019: \$? = $ac_status" >&5 10020 (exit $ac_status); }; }; then 10021 cf_cv_ncurses_header=$cf_header; break 10022else 10023 echo "$as_me: failed program was:" >&5 10024cat conftest.$ac_ext >&5 10025fi 10026rm -f conftest.$ac_objext conftest.$ac_ext 10027done 10028 10029fi 10030echo "$as_me:10030: result: $cf_cv_ncurses_header" >&5 10031echo "${ECHO_T}$cf_cv_ncurses_header" >&6 10032 10033if test "$cf_cv_ncurses_header" = none ; then 10034 { { echo "$as_me:10034: error: No curses header-files found" >&5 10035echo "$as_me: error: No curses header-files found" >&2;} 10036 { (exit 1); exit 1; }; } 10037fi 10038 10039# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 10040 10041for ac_header in $cf_cv_ncurses_header 10042do 10043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10044echo "$as_me:10044: checking for $ac_header" >&5 10045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10046if eval "test \"\${$as_ac_Header+set}\" = set"; then 10047 echo $ECHO_N "(cached) $ECHO_C" >&6 10048else 10049 cat >conftest.$ac_ext <<_ACEOF 10050#line 10050 "configure" 10051#include "confdefs.h" 10052#include <$ac_header> 10053_ACEOF 10054if { (eval echo "$as_me:10054: \"$ac_cpp conftest.$ac_ext\"") >&5 10055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10056 ac_status=$? 10057 egrep -v '^ *\+' conftest.er1 >conftest.err 10058 rm -f conftest.er1 10059 cat conftest.err >&5 10060 echo "$as_me:10060: \$? = $ac_status" >&5 10061 (exit $ac_status); } >/dev/null; then 10062 if test -s conftest.err; then 10063 ac_cpp_err=$ac_c_preproc_warn_flag 10064 else 10065 ac_cpp_err= 10066 fi 10067else 10068 ac_cpp_err=yes 10069fi 10070if test -z "$ac_cpp_err"; then 10071 eval "$as_ac_Header=yes" 10072else 10073 echo "$as_me: failed program was:" >&5 10074 cat conftest.$ac_ext >&5 10075 eval "$as_ac_Header=no" 10076fi 10077rm -f conftest.err conftest.$ac_ext 10078fi 10079echo "$as_me:10079: result: `eval echo '${'$as_ac_Header'}'`" >&5 10080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10081if test `eval echo '${'$as_ac_Header'}'` = yes; then 10082 cat >>confdefs.h <<EOF 10083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10084EOF 10085 10086fi 10087done 10088 10089cat >>confdefs.h <<\EOF 10090#define NCURSES 1 10091EOF 10092 10093cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10094 10095cat >>confdefs.h <<EOF 10096#define $cf_nculib_ROOT 1 10097EOF 10098 10099cf_cv_ncurses_version=`$NCURSES_CONFIG --version` 10100 10101else 10102 10103cf_ncuhdr_root=$use_ncurses 10104 10105test -n "$cf_cv_curses_dir" && \ 10106test "$cf_cv_curses_dir" != "no" && { \ 10107 10108if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then 10109 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root 10110 do 10111 while test $cf_add_incdir != /usr/include 10112 do 10113 if test -d $cf_add_incdir 10114 then 10115 cf_have_incdir=no 10116 if test -n "$CFLAGS$CPPFLAGS" ; then 10117 # a loop is needed to ensure we can add subdirs of existing dirs 10118 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 10119 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 10120 cf_have_incdir=yes; break 10121 fi 10122 done 10123 fi 10124 10125 if test "$cf_have_incdir" = no ; then 10126 if test "$cf_add_incdir" = /usr/local/include ; then 10127 if test "$GCC" = yes 10128 then 10129 cf_save_CPPFLAGS=$CPPFLAGS 10130 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10131 cat >conftest.$ac_ext <<_ACEOF 10132#line 10132 "configure" 10133#include "confdefs.h" 10134#include <stdio.h> 10135int 10136main () 10137{ 10138printf("Hello") 10139 ; 10140 return 0; 10141} 10142_ACEOF 10143rm -f conftest.$ac_objext 10144if { (eval echo "$as_me:10144: \"$ac_compile\"") >&5 10145 (eval $ac_compile) 2>&5 10146 ac_status=$? 10147 echo "$as_me:10147: \$? = $ac_status" >&5 10148 (exit $ac_status); } && 10149 { ac_try='test -s conftest.$ac_objext' 10150 { (eval echo "$as_me:10150: \"$ac_try\"") >&5 10151 (eval $ac_try) 2>&5 10152 ac_status=$? 10153 echo "$as_me:10153: \$? = $ac_status" >&5 10154 (exit $ac_status); }; }; then 10155 : 10156else 10157 echo "$as_me: failed program was:" >&5 10158cat conftest.$ac_ext >&5 10159cf_have_incdir=yes 10160fi 10161rm -f conftest.$ac_objext conftest.$ac_ext 10162 CPPFLAGS=$cf_save_CPPFLAGS 10163 fi 10164 fi 10165 fi 10166 10167 if test "$cf_have_incdir" = no ; then 10168 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 10169 10170echo "${as_me:-configure}:10170: testing adding $cf_add_incdir to include-path ..." 1>&5 10171 10172 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10173 10174 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 10175 test "$cf_top_incdir" = "$cf_add_incdir" && break 10176 cf_add_incdir="$cf_top_incdir" 10177 else 10178 break 10179 fi 10180 fi 10181 done 10182 done 10183fi 10184 10185} 10186 10187echo "$as_me:10187: checking for $cf_ncuhdr_root header in include-path" >&5 10188echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6 10189if test "${cf_cv_ncurses_h+set}" = set; then 10190 echo $ECHO_N "(cached) $ECHO_C" >&6 10191else 10192 10193 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" 10194 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" 10195 for cf_header in $cf_header_list 10196 do 10197 10198 cat >conftest.$ac_ext <<_ACEOF 10199#line 10199 "configure" 10200#include "confdefs.h" 10201 10202#include <$cf_header> 10203int 10204main () 10205{ 10206 10207#ifdef NCURSES_VERSION 10208 10209printf("%s\n", NCURSES_VERSION); 10210#else 10211#ifdef __NCURSES_H 10212printf("old\n"); 10213#else 10214 make an error 10215#endif 10216#endif 10217 10218 ; 10219 return 0; 10220} 10221_ACEOF 10222rm -f conftest.$ac_objext 10223if { (eval echo "$as_me:10223: \"$ac_compile\"") >&5 10224 (eval $ac_compile) 2>&5 10225 ac_status=$? 10226 echo "$as_me:10226: \$? = $ac_status" >&5 10227 (exit $ac_status); } && 10228 { ac_try='test -s conftest.$ac_objext' 10229 { (eval echo "$as_me:10229: \"$ac_try\"") >&5 10230 (eval $ac_try) 2>&5 10231 ac_status=$? 10232 echo "$as_me:10232: \$? = $ac_status" >&5 10233 (exit $ac_status); }; }; then 10234 cf_cv_ncurses_h=$cf_header 10235 10236else 10237 echo "$as_me: failed program was:" >&5 10238cat conftest.$ac_ext >&5 10239cf_cv_ncurses_h=no 10240fi 10241rm -f conftest.$ac_objext conftest.$ac_ext 10242 10243 test "$cf_cv_ncurses_h" != no && break 10244 done 10245 10246fi 10247echo "$as_me:10247: result: $cf_cv_ncurses_h" >&5 10248echo "${ECHO_T}$cf_cv_ncurses_h" >&6 10249 10250if test "$cf_cv_ncurses_h" != no ; then 10251 cf_cv_ncurses_header=$cf_cv_ncurses_h 10252else 10253 10254echo "$as_me:10254: checking for $cf_ncuhdr_root include-path" >&5 10255echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6 10256if test "${cf_cv_ncurses_h2+set}" = set; then 10257 echo $ECHO_N "(cached) $ECHO_C" >&6 10258else 10259 10260 test -n "$verbose" && echo 10261 10262cf_search= 10263 10264# collect the current set of include-directories from compiler flags 10265cf_header_path_list="" 10266if test -n "${CFLAGS}${CPPFLAGS}" ; then 10267 for cf_header_path in $CPPFLAGS $CFLAGS 10268 do 10269 case $cf_header_path in #(vi 10270 -I*) 10271 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 10272 10273test "$cf_header_path" != "NONE" && \ 10274test -d "$cf_header_path" && \ 10275 { 10276 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 10277 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 10278 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root" 10279 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include" 10280 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include" 10281 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" 10282} 10283 10284 cf_header_path_list="$cf_header_path_list $cf_search" 10285 ;; 10286 esac 10287 done 10288fi 10289 10290# add the variations for the package we are looking for 10291 10292cf_search= 10293 10294test "/usr" != "$prefix" && \ 10295test -d "/usr" && \ 10296(test $prefix = NONE || test "/usr" != "$prefix") && { 10297 test -n "$verbose" && echo " ... testing for include-directories under /usr" 10298 test -d /usr/include && cf_search="$cf_search /usr/include" 10299 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root" 10300 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include" 10301 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include" 10302 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 10303} 10304 10305test "$prefix" != "NONE" && \ 10306test -d "$prefix" && \ 10307 { 10308 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 10309 test -d $prefix/include && cf_search="$cf_search $prefix/include" 10310 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" 10311 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" 10312 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" 10313 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 10314} 10315 10316test "/usr/local" != "$prefix" && \ 10317test -d "/usr/local" && \ 10318(test $prefix = NONE || test "/usr/local" != "$prefix") && { 10319 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 10320 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 10321 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root" 10322 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include" 10323 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include" 10324 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 10325} 10326 10327test "/opt" != "$prefix" && \ 10328test -d "/opt" && \ 10329(test $prefix = NONE || test "/opt" != "$prefix") && { 10330 test -n "$verbose" && echo " ... testing for include-directories under /opt" 10331 test -d /opt/include && cf_search="$cf_search /opt/include" 10332 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root" 10333 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include" 10334 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include" 10335 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 10336} 10337 10338test "$HOME" != "$prefix" && \ 10339test -d "$HOME" && \ 10340(test $prefix = NONE || test "$HOME" != "$prefix") && { 10341 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 10342 test -d $HOME/include && cf_search="$cf_search $HOME/include" 10343 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root" 10344 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include" 10345 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include" 10346 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 10347} 10348 10349test "$includedir" != NONE && \ 10350test "$includedir" != "/usr/include" && \ 10351test -d "$includedir" && { 10352 test -d $includedir && cf_search="$cf_search $includedir" 10353 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root" 10354} 10355 10356test "$oldincludedir" != NONE && \ 10357test "$oldincludedir" != "/usr/include" && \ 10358test -d "$oldincludedir" && { 10359 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 10360 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root" 10361} 10362 10363cf_search="$cf_search $cf_header_path_list" 10364 10365 test -n "$verbose" && echo search path $cf_search 10366 cf_save2_CPPFLAGS="$CPPFLAGS" 10367 for cf_incdir in $cf_search 10368 do 10369 10370if test -n "$cf_incdir" ; then 10371 for cf_add_incdir in $cf_incdir 10372 do 10373 while test $cf_add_incdir != /usr/include 10374 do 10375 if test -d $cf_add_incdir 10376 then 10377 cf_have_incdir=no 10378 if test -n "$CFLAGS$CPPFLAGS" ; then 10379 # a loop is needed to ensure we can add subdirs of existing dirs 10380 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 10381 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 10382 cf_have_incdir=yes; break 10383 fi 10384 done 10385 fi 10386 10387 if test "$cf_have_incdir" = no ; then 10388 if test "$cf_add_incdir" = /usr/local/include ; then 10389 if test "$GCC" = yes 10390 then 10391 cf_save_CPPFLAGS=$CPPFLAGS 10392 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10393 cat >conftest.$ac_ext <<_ACEOF 10394#line 10394 "configure" 10395#include "confdefs.h" 10396#include <stdio.h> 10397int 10398main () 10399{ 10400printf("Hello") 10401 ; 10402 return 0; 10403} 10404_ACEOF 10405rm -f conftest.$ac_objext 10406if { (eval echo "$as_me:10406: \"$ac_compile\"") >&5 10407 (eval $ac_compile) 2>&5 10408 ac_status=$? 10409 echo "$as_me:10409: \$? = $ac_status" >&5 10410 (exit $ac_status); } && 10411 { ac_try='test -s conftest.$ac_objext' 10412 { (eval echo "$as_me:10412: \"$ac_try\"") >&5 10413 (eval $ac_try) 2>&5 10414 ac_status=$? 10415 echo "$as_me:10415: \$? = $ac_status" >&5 10416 (exit $ac_status); }; }; then 10417 : 10418else 10419 echo "$as_me: failed program was:" >&5 10420cat conftest.$ac_ext >&5 10421cf_have_incdir=yes 10422fi 10423rm -f conftest.$ac_objext conftest.$ac_ext 10424 CPPFLAGS=$cf_save_CPPFLAGS 10425 fi 10426 fi 10427 fi 10428 10429 if test "$cf_have_incdir" = no ; then 10430 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 10431 10432echo "${as_me:-configure}:10432: testing adding $cf_add_incdir to include-path ..." 1>&5 10433 10434 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10435 10436 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 10437 test "$cf_top_incdir" = "$cf_add_incdir" && break 10438 cf_add_incdir="$cf_top_incdir" 10439 else 10440 break 10441 fi 10442 fi 10443 done 10444 done 10445fi 10446 10447 for cf_header in \ 10448 ncurses.h \ 10449 curses.h 10450 do 10451 10452 cat >conftest.$ac_ext <<_ACEOF 10453#line 10453 "configure" 10454#include "confdefs.h" 10455 10456#include <$cf_header> 10457int 10458main () 10459{ 10460 10461#ifdef NCURSES_VERSION 10462 10463printf("%s\n", NCURSES_VERSION); 10464#else 10465#ifdef __NCURSES_H 10466printf("old\n"); 10467#else 10468 make an error 10469#endif 10470#endif 10471 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476rm -f conftest.$ac_objext 10477if { (eval echo "$as_me:10477: \"$ac_compile\"") >&5 10478 (eval $ac_compile) 2>&5 10479 ac_status=$? 10480 echo "$as_me:10480: \$? = $ac_status" >&5 10481 (exit $ac_status); } && 10482 { ac_try='test -s conftest.$ac_objext' 10483 { (eval echo "$as_me:10483: \"$ac_try\"") >&5 10484 (eval $ac_try) 2>&5 10485 ac_status=$? 10486 echo "$as_me:10486: \$? = $ac_status" >&5 10487 (exit $ac_status); }; }; then 10488 cf_cv_ncurses_h2=$cf_header 10489 10490else 10491 echo "$as_me: failed program was:" >&5 10492cat conftest.$ac_ext >&5 10493cf_cv_ncurses_h2=no 10494fi 10495rm -f conftest.$ac_objext conftest.$ac_ext 10496 10497 if test "$cf_cv_ncurses_h2" != no ; then 10498 cf_cv_ncurses_h2=$cf_incdir/$cf_header 10499 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 10500 break 10501 fi 10502 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 10503 done 10504 CPPFLAGS="$cf_save2_CPPFLAGS" 10505 test "$cf_cv_ncurses_h2" != no && break 10506 done 10507 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:10507: error: not found" >&5 10508echo "$as_me: error: not found" >&2;} 10509 { (exit 1); exit 1; }; } 10510 10511fi 10512echo "$as_me:10512: result: $cf_cv_ncurses_h2" >&5 10513echo "${ECHO_T}$cf_cv_ncurses_h2" >&6 10514 10515 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` 10516 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` 10517 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then 10518 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header 10519 fi 10520 10521if test -n "$cf_1st_incdir" ; then 10522 for cf_add_incdir in $cf_1st_incdir 10523 do 10524 while test $cf_add_incdir != /usr/include 10525 do 10526 if test -d $cf_add_incdir 10527 then 10528 cf_have_incdir=no 10529 if test -n "$CFLAGS$CPPFLAGS" ; then 10530 # a loop is needed to ensure we can add subdirs of existing dirs 10531 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 10532 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 10533 cf_have_incdir=yes; break 10534 fi 10535 done 10536 fi 10537 10538 if test "$cf_have_incdir" = no ; then 10539 if test "$cf_add_incdir" = /usr/local/include ; then 10540 if test "$GCC" = yes 10541 then 10542 cf_save_CPPFLAGS=$CPPFLAGS 10543 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10544 cat >conftest.$ac_ext <<_ACEOF 10545#line 10545 "configure" 10546#include "confdefs.h" 10547#include <stdio.h> 10548int 10549main () 10550{ 10551printf("Hello") 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556rm -f conftest.$ac_objext 10557if { (eval echo "$as_me:10557: \"$ac_compile\"") >&5 10558 (eval $ac_compile) 2>&5 10559 ac_status=$? 10560 echo "$as_me:10560: \$? = $ac_status" >&5 10561 (exit $ac_status); } && 10562 { ac_try='test -s conftest.$ac_objext' 10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5 10564 (eval $ac_try) 2>&5 10565 ac_status=$? 10566 echo "$as_me:10566: \$? = $ac_status" >&5 10567 (exit $ac_status); }; }; then 10568 : 10569else 10570 echo "$as_me: failed program was:" >&5 10571cat conftest.$ac_ext >&5 10572cf_have_incdir=yes 10573fi 10574rm -f conftest.$ac_objext conftest.$ac_ext 10575 CPPFLAGS=$cf_save_CPPFLAGS 10576 fi 10577 fi 10578 fi 10579 10580 if test "$cf_have_incdir" = no ; then 10581 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 10582 10583echo "${as_me:-configure}:10583: testing adding $cf_add_incdir to include-path ..." 1>&5 10584 10585 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 10586 10587 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 10588 test "$cf_top_incdir" = "$cf_add_incdir" && break 10589 cf_add_incdir="$cf_top_incdir" 10590 else 10591 break 10592 fi 10593 fi 10594 done 10595 done 10596fi 10597 10598fi 10599 10600# Set definitions to allow ifdef'ing for ncurses.h 10601 10602case $cf_cv_ncurses_header in # (vi 10603*ncurses.h) 10604 cat >>confdefs.h <<\EOF 10605#define HAVE_NCURSES_H 1 10606EOF 10607 10608 ;; 10609esac 10610 10611case $cf_cv_ncurses_header in # (vi 10612ncurses/curses.h|ncurses/ncurses.h) 10613 cat >>confdefs.h <<\EOF 10614#define HAVE_NCURSES_NCURSES_H 1 10615EOF 10616 10617 ;; 10618ncursesw/curses.h|ncursesw/ncurses.h) 10619 cat >>confdefs.h <<\EOF 10620#define HAVE_NCURSESW_NCURSES_H 1 10621EOF 10622 10623 ;; 10624esac 10625 10626echo "$as_me:10626: checking for terminfo header" >&5 10627echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 10628if test "${cf_cv_term_header+set}" = set; then 10629 echo $ECHO_N "(cached) $ECHO_C" >&6 10630else 10631 10632case ${cf_cv_ncurses_header} in #(vi 10633*/ncurses.h|*/ncursesw.h) #(vi 10634 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 10635 ;; 10636*) 10637 cf_term_header=term.h 10638 ;; 10639esac 10640 10641for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 10642do 10643cat >conftest.$ac_ext <<_ACEOF 10644#line 10644 "configure" 10645#include "confdefs.h" 10646#include <stdio.h> 10647#include <${cf_cv_ncurses_header:-curses.h}> 10648#include <$cf_test> 10649 10650int 10651main () 10652{ 10653int x = auto_left_margin 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658rm -f conftest.$ac_objext 10659if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5 10660 (eval $ac_compile) 2>&5 10661 ac_status=$? 10662 echo "$as_me:10662: \$? = $ac_status" >&5 10663 (exit $ac_status); } && 10664 { ac_try='test -s conftest.$ac_objext' 10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5 10666 (eval $ac_try) 2>&5 10667 ac_status=$? 10668 echo "$as_me:10668: \$? = $ac_status" >&5 10669 (exit $ac_status); }; }; then 10670 10671 cf_cv_term_header="$cf_test" 10672else 10673 echo "$as_me: failed program was:" >&5 10674cat conftest.$ac_ext >&5 10675 10676 cf_cv_term_header=unknown 10677 10678fi 10679rm -f conftest.$ac_objext conftest.$ac_ext 10680 test "$cf_cv_term_header" != unknown && break 10681done 10682 10683fi 10684echo "$as_me:10684: result: $cf_cv_term_header" >&5 10685echo "${ECHO_T}$cf_cv_term_header" >&6 10686 10687# Set definitions to allow ifdef'ing to accommodate subdirectories 10688 10689case $cf_cv_term_header in # (vi 10690*term.h) 10691 cat >>confdefs.h <<\EOF 10692#define HAVE_TERM_H 1 10693EOF 10694 10695 ;; 10696esac 10697 10698case $cf_cv_term_header in # (vi 10699ncurses/term.h) #(vi 10700 cat >>confdefs.h <<\EOF 10701#define HAVE_NCURSES_TERM_H 1 10702EOF 10703 10704 ;; 10705ncursesw/term.h) 10706 cat >>confdefs.h <<\EOF 10707#define HAVE_NCURSESW_TERM_H 1 10708EOF 10709 10710 ;; 10711esac 10712 10713# some applications need this, but should check for NCURSES_VERSION 10714cat >>confdefs.h <<\EOF 10715#define NCURSES 1 10716EOF 10717 10718echo "$as_me:10718: checking for ncurses version" >&5 10719echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 10720if test "${cf_cv_ncurses_version+set}" = set; then 10721 echo $ECHO_N "(cached) $ECHO_C" >&6 10722else 10723 10724 cf_cv_ncurses_version=no 10725 cf_tempfile=out$$ 10726 rm -f $cf_tempfile 10727 if test "$cross_compiling" = yes; then 10728 10729 # This will not work if the preprocessor splits the line after the 10730 # Autoconf token. The 'unproto' program does that. 10731 cat > conftest.$ac_ext <<EOF 10732#include <${cf_cv_ncurses_header:-curses.h}> 10733#undef Autoconf 10734#ifdef NCURSES_VERSION 10735Autoconf NCURSES_VERSION 10736#else 10737#ifdef __NCURSES_H 10738Autoconf "old" 10739#endif 10740; 10741#endif 10742EOF 10743 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 10744 { (eval echo "$as_me:10744: \"$cf_try\"") >&5 10745 (eval $cf_try) 2>&5 10746 ac_status=$? 10747 echo "$as_me:10747: \$? = $ac_status" >&5 10748 (exit $ac_status); } 10749 if test -f conftest.out ; then 10750 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 10751 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 10752 rm -f conftest.out 10753 fi 10754 10755else 10756 cat >conftest.$ac_ext <<_ACEOF 10757#line 10757 "configure" 10758#include "confdefs.h" 10759 10760#include <${cf_cv_ncurses_header:-curses.h}> 10761#include <stdio.h> 10762int main() 10763{ 10764 FILE *fp = fopen("$cf_tempfile", "w"); 10765#ifdef NCURSES_VERSION 10766# ifdef NCURSES_VERSION_PATCH 10767 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 10768# else 10769 fprintf(fp, "%s\n", NCURSES_VERSION); 10770# endif 10771#else 10772# ifdef __NCURSES_H 10773 fprintf(fp, "old\n"); 10774# else 10775 make an error 10776# endif 10777#endif 10778 ${cf_cv_main_return:-return}(0); 10779} 10780_ACEOF 10781rm -f conftest$ac_exeext 10782if { (eval echo "$as_me:10782: \"$ac_link\"") >&5 10783 (eval $ac_link) 2>&5 10784 ac_status=$? 10785 echo "$as_me:10785: \$? = $ac_status" >&5 10786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10787 { (eval echo "$as_me:10787: \"$ac_try\"") >&5 10788 (eval $ac_try) 2>&5 10789 ac_status=$? 10790 echo "$as_me:10790: \$? = $ac_status" >&5 10791 (exit $ac_status); }; }; then 10792 10793 cf_cv_ncurses_version=`cat $cf_tempfile` 10794else 10795 echo "$as_me: program exited with status $ac_status" >&5 10796echo "$as_me: failed program was:" >&5 10797cat conftest.$ac_ext >&5 10798fi 10799rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10800fi 10801 rm -f $cf_tempfile 10802 10803fi 10804echo "$as_me:10804: result: $cf_cv_ncurses_version" >&5 10805echo "${ECHO_T}$cf_cv_ncurses_version" >&6 10806test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 10807#define NCURSES 1 10808EOF 10809 10810cf_nculib_root=$use_ncurses 10811 # This works, except for the special case where we find gpm, but 10812 # ncurses is in a nonstandard location via $LIBS, and we really want 10813 # to link gpm. 10814cf_ncurses_LIBS="" 10815cf_ncurses_SAVE="$LIBS" 10816echo "$as_me:10816: checking for Gpm_Open in -lgpm" >&5 10817echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 10818if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 10819 echo $ECHO_N "(cached) $ECHO_C" >&6 10820else 10821 ac_check_lib_save_LIBS=$LIBS 10822LIBS="-lgpm $LIBS" 10823cat >conftest.$ac_ext <<_ACEOF 10824#line 10824 "configure" 10825#include "confdefs.h" 10826 10827/* Override any gcc2 internal prototype to avoid an error. */ 10828#ifdef __cplusplus 10829extern "C" 10830#endif 10831/* We use char because int might match the return type of a gcc2 10832 builtin and then its argument prototype would still apply. */ 10833char Gpm_Open (); 10834int 10835main () 10836{ 10837Gpm_Open (); 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842rm -f conftest.$ac_objext conftest$ac_exeext 10843if { (eval echo "$as_me:10843: \"$ac_link\"") >&5 10844 (eval $ac_link) 2>&5 10845 ac_status=$? 10846 echo "$as_me:10846: \$? = $ac_status" >&5 10847 (exit $ac_status); } && 10848 { ac_try='test -s conftest$ac_exeext' 10849 { (eval echo "$as_me:10849: \"$ac_try\"") >&5 10850 (eval $ac_try) 2>&5 10851 ac_status=$? 10852 echo "$as_me:10852: \$? = $ac_status" >&5 10853 (exit $ac_status); }; }; then 10854 ac_cv_lib_gpm_Gpm_Open=yes 10855else 10856 echo "$as_me: failed program was:" >&5 10857cat conftest.$ac_ext >&5 10858ac_cv_lib_gpm_Gpm_Open=no 10859fi 10860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10861LIBS=$ac_check_lib_save_LIBS 10862fi 10863echo "$as_me:10863: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10864echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 10865if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10866 echo "$as_me:10866: checking for initscr in -lgpm" >&5 10867echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6 10868if test "${ac_cv_lib_gpm_initscr+set}" = set; then 10869 echo $ECHO_N "(cached) $ECHO_C" >&6 10870else 10871 ac_check_lib_save_LIBS=$LIBS 10872LIBS="-lgpm $LIBS" 10873cat >conftest.$ac_ext <<_ACEOF 10874#line 10874 "configure" 10875#include "confdefs.h" 10876 10877/* Override any gcc2 internal prototype to avoid an error. */ 10878#ifdef __cplusplus 10879extern "C" 10880#endif 10881/* We use char because int might match the return type of a gcc2 10882 builtin and then its argument prototype would still apply. */ 10883char initscr (); 10884int 10885main () 10886{ 10887initscr (); 10888 ; 10889 return 0; 10890} 10891_ACEOF 10892rm -f conftest.$ac_objext conftest$ac_exeext 10893if { (eval echo "$as_me:10893: \"$ac_link\"") >&5 10894 (eval $ac_link) 2>&5 10895 ac_status=$? 10896 echo "$as_me:10896: \$? = $ac_status" >&5 10897 (exit $ac_status); } && 10898 { ac_try='test -s conftest$ac_exeext' 10899 { (eval echo "$as_me:10899: \"$ac_try\"") >&5 10900 (eval $ac_try) 2>&5 10901 ac_status=$? 10902 echo "$as_me:10902: \$? = $ac_status" >&5 10903 (exit $ac_status); }; }; then 10904 ac_cv_lib_gpm_initscr=yes 10905else 10906 echo "$as_me: failed program was:" >&5 10907cat conftest.$ac_ext >&5 10908ac_cv_lib_gpm_initscr=no 10909fi 10910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913echo "$as_me:10913: result: $ac_cv_lib_gpm_initscr" >&5 10914echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6 10915if test $ac_cv_lib_gpm_initscr = yes; then 10916 LIBS="$cf_ncurses_SAVE" 10917else 10918 cf_ncurses_LIBS="-lgpm" 10919fi 10920 10921fi 10922 10923case $host_os in #(vi 10924freebsd*) 10925 # This is only necessary if you are linking against an obsolete 10926 # version of ncurses (but it should do no harm, since it's static). 10927 if test "$cf_nculib_root" = ncurses ; then 10928 echo "$as_me:10928: checking for tgoto in -lmytinfo" >&5 10929echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 10930if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 10931 echo $ECHO_N "(cached) $ECHO_C" >&6 10932else 10933 ac_check_lib_save_LIBS=$LIBS 10934LIBS="-lmytinfo $LIBS" 10935cat >conftest.$ac_ext <<_ACEOF 10936#line 10936 "configure" 10937#include "confdefs.h" 10938 10939/* Override any gcc2 internal prototype to avoid an error. */ 10940#ifdef __cplusplus 10941extern "C" 10942#endif 10943/* We use char because int might match the return type of a gcc2 10944 builtin and then its argument prototype would still apply. */ 10945char tgoto (); 10946int 10947main () 10948{ 10949tgoto (); 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954rm -f conftest.$ac_objext conftest$ac_exeext 10955if { (eval echo "$as_me:10955: \"$ac_link\"") >&5 10956 (eval $ac_link) 2>&5 10957 ac_status=$? 10958 echo "$as_me:10958: \$? = $ac_status" >&5 10959 (exit $ac_status); } && 10960 { ac_try='test -s conftest$ac_exeext' 10961 { (eval echo "$as_me:10961: \"$ac_try\"") >&5 10962 (eval $ac_try) 2>&5 10963 ac_status=$? 10964 echo "$as_me:10964: \$? = $ac_status" >&5 10965 (exit $ac_status); }; }; then 10966 ac_cv_lib_mytinfo_tgoto=yes 10967else 10968 echo "$as_me: failed program was:" >&5 10969cat conftest.$ac_ext >&5 10970ac_cv_lib_mytinfo_tgoto=no 10971fi 10972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10973LIBS=$ac_check_lib_save_LIBS 10974fi 10975echo "$as_me:10975: result: $ac_cv_lib_mytinfo_tgoto" >&5 10976echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 10977if test $ac_cv_lib_mytinfo_tgoto = yes; then 10978 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS" 10979fi 10980 10981 fi 10982 ;; 10983esac 10984 10985LIBS="$cf_ncurses_LIBS $LIBS" 10986 10987if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 10988then 10989 LIBS="-l$cf_nculib_root $LIBS" 10990else 10991 10992 eval 'cf_cv_have_lib_'$cf_nculib_root'=no' 10993 cf_libdir="" 10994 echo "$as_me:10994: checking for initscr" >&5 10995echo $ECHO_N "checking for initscr... $ECHO_C" >&6 10996if test "${ac_cv_func_initscr+set}" = set; then 10997 echo $ECHO_N "(cached) $ECHO_C" >&6 10998else 10999 cat >conftest.$ac_ext <<_ACEOF 11000#line 11000 "configure" 11001#include "confdefs.h" 11002/* System header to define __stub macros and hopefully few prototypes, 11003 which can conflict with char initscr (); below. */ 11004#include <assert.h> 11005/* Override any gcc2 internal prototype to avoid an error. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009/* We use char because int might match the return type of a gcc2 11010 builtin and then its argument prototype would still apply. */ 11011char initscr (); 11012char (*f) (); 11013 11014int 11015main () 11016{ 11017/* The GNU C library defines this for functions which it implements 11018 to always fail with ENOSYS. Some functions are actually named 11019 something starting with __ and the normal name is an alias. */ 11020#if defined (__stub_initscr) || defined (__stub___initscr) 11021choke me 11022#else 11023f = initscr; 11024#endif 11025 11026 ; 11027 return 0; 11028} 11029_ACEOF 11030rm -f conftest.$ac_objext conftest$ac_exeext 11031if { (eval echo "$as_me:11031: \"$ac_link\"") >&5 11032 (eval $ac_link) 2>&5 11033 ac_status=$? 11034 echo "$as_me:11034: \$? = $ac_status" >&5 11035 (exit $ac_status); } && 11036 { ac_try='test -s conftest$ac_exeext' 11037 { (eval echo "$as_me:11037: \"$ac_try\"") >&5 11038 (eval $ac_try) 2>&5 11039 ac_status=$? 11040 echo "$as_me:11040: \$? = $ac_status" >&5 11041 (exit $ac_status); }; }; then 11042 ac_cv_func_initscr=yes 11043else 11044 echo "$as_me: failed program was:" >&5 11045cat conftest.$ac_ext >&5 11046ac_cv_func_initscr=no 11047fi 11048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11049fi 11050echo "$as_me:11050: result: $ac_cv_func_initscr" >&5 11051echo "${ECHO_T}$ac_cv_func_initscr" >&6 11052if test $ac_cv_func_initscr = yes; then 11053 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 11054else 11055 11056 cf_save_LIBS="$LIBS" 11057 echo "$as_me:11057: checking for initscr in -l$cf_nculib_root" >&5 11058echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6 11059 LIBS="-l$cf_nculib_root $LIBS" 11060 cat >conftest.$ac_ext <<_ACEOF 11061#line 11061 "configure" 11062#include "confdefs.h" 11063#include <${cf_cv_ncurses_header:-curses.h}> 11064int 11065main () 11066{ 11067initscr() 11068 ; 11069 return 0; 11070} 11071_ACEOF 11072rm -f conftest.$ac_objext conftest$ac_exeext 11073if { (eval echo "$as_me:11073: \"$ac_link\"") >&5 11074 (eval $ac_link) 2>&5 11075 ac_status=$? 11076 echo "$as_me:11076: \$? = $ac_status" >&5 11077 (exit $ac_status); } && 11078 { ac_try='test -s conftest$ac_exeext' 11079 { (eval echo "$as_me:11079: \"$ac_try\"") >&5 11080 (eval $ac_try) 2>&5 11081 ac_status=$? 11082 echo "$as_me:11082: \$? = $ac_status" >&5 11083 (exit $ac_status); }; }; then 11084 echo "$as_me:11084: result: yes" >&5 11085echo "${ECHO_T}yes" >&6 11086 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 11087 11088else 11089 echo "$as_me: failed program was:" >&5 11090cat conftest.$ac_ext >&5 11091echo "$as_me:11091: result: no" >&5 11092echo "${ECHO_T}no" >&6 11093 11094cf_search= 11095cf_library_path_list="" 11096if test -n "${LDFLAGS}${LIBS}" ; then 11097 for cf_library_path in $LDFLAGS $LIBS 11098 do 11099 case $cf_library_path in #(vi 11100 -L*) 11101 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 11102 11103test "$cf_library_path" != "NONE" && \ 11104test -d "$cf_library_path" && \ 11105 { 11106 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 11107 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 11108 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root" 11109 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib" 11110 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib" 11111 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" 11112} 11113 11114 cf_library_path_list="$cf_library_path_list $cf_search" 11115 ;; 11116 esac 11117 done 11118fi 11119 11120cf_search= 11121 11122test "/usr" != "$prefix" && \ 11123test -d "/usr" && \ 11124(test $prefix = NONE || test "/usr" != "$prefix") && { 11125 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 11126 test -d /usr/lib && cf_search="$cf_search /usr/lib" 11127 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root" 11128 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib" 11129 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib" 11130 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root" 11131} 11132 11133test "$prefix" != "NONE" && \ 11134test -d "$prefix" && \ 11135 { 11136 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 11137 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 11138 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root" 11139 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib" 11140 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib" 11141 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root" 11142} 11143 11144test "/usr/local" != "$prefix" && \ 11145test -d "/usr/local" && \ 11146(test $prefix = NONE || test "/usr/local" != "$prefix") && { 11147 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 11148 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 11149 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root" 11150 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib" 11151 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib" 11152 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root" 11153} 11154 11155test "/opt" != "$prefix" && \ 11156test -d "/opt" && \ 11157(test $prefix = NONE || test "/opt" != "$prefix") && { 11158 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 11159 test -d /opt/lib && cf_search="$cf_search /opt/lib" 11160 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root" 11161 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib" 11162 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib" 11163 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root" 11164} 11165 11166test "$HOME" != "$prefix" && \ 11167test -d "$HOME" && \ 11168(test $prefix = NONE || test "$HOME" != "$prefix") && { 11169 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 11170 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 11171 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root" 11172 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib" 11173 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib" 11174 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root" 11175} 11176 11177cf_search="$cf_library_path_list $cf_search" 11178 11179 for cf_libdir in $cf_search 11180 do 11181 echo "$as_me:11181: checking for -l$cf_nculib_root in $cf_libdir" >&5 11182echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6 11183 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS" 11184 cat >conftest.$ac_ext <<_ACEOF 11185#line 11185 "configure" 11186#include "confdefs.h" 11187#include <${cf_cv_ncurses_header:-curses.h}> 11188int 11189main () 11190{ 11191initscr() 11192 ; 11193 return 0; 11194} 11195_ACEOF 11196rm -f conftest.$ac_objext conftest$ac_exeext 11197if { (eval echo "$as_me:11197: \"$ac_link\"") >&5 11198 (eval $ac_link) 2>&5 11199 ac_status=$? 11200 echo "$as_me:11200: \$? = $ac_status" >&5 11201 (exit $ac_status); } && 11202 { ac_try='test -s conftest$ac_exeext' 11203 { (eval echo "$as_me:11203: \"$ac_try\"") >&5 11204 (eval $ac_try) 2>&5 11205 ac_status=$? 11206 echo "$as_me:11206: \$? = $ac_status" >&5 11207 (exit $ac_status); }; }; then 11208 echo "$as_me:11208: result: yes" >&5 11209echo "${ECHO_T}yes" >&6 11210 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 11211 break 11212else 11213 echo "$as_me: failed program was:" >&5 11214cat conftest.$ac_ext >&5 11215echo "$as_me:11215: result: no" >&5 11216echo "${ECHO_T}no" >&6 11217 LIBS="$cf_save_LIBS" 11218fi 11219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11220 done 11221 11222fi 11223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11224 11225fi 11226 11227eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root 11228 11229if test $cf_found_library = no ; then 11230 { { echo "$as_me:11230: error: Cannot link $cf_nculib_root library" >&5 11231echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;} 11232 { (exit 1); exit 1; }; } 11233fi 11234 11235fi 11236 11237if test -n "$cf_ncurses_LIBS" ; then 11238 echo "$as_me:11238: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5 11239echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6 11240 cf_ncurses_SAVE="$LIBS" 11241 for p in $cf_ncurses_LIBS ; do 11242 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"` 11243 if test "$q" != "$LIBS" ; then 11244 LIBS="$q" 11245 fi 11246 done 11247 cat >conftest.$ac_ext <<_ACEOF 11248#line 11248 "configure" 11249#include "confdefs.h" 11250#include <${cf_cv_ncurses_header:-curses.h}> 11251int 11252main () 11253{ 11254initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259rm -f conftest.$ac_objext conftest$ac_exeext 11260if { (eval echo "$as_me:11260: \"$ac_link\"") >&5 11261 (eval $ac_link) 2>&5 11262 ac_status=$? 11263 echo "$as_me:11263: \$? = $ac_status" >&5 11264 (exit $ac_status); } && 11265 { ac_try='test -s conftest$ac_exeext' 11266 { (eval echo "$as_me:11266: \"$ac_try\"") >&5 11267 (eval $ac_try) 2>&5 11268 ac_status=$? 11269 echo "$as_me:11269: \$? = $ac_status" >&5 11270 (exit $ac_status); }; }; then 11271 echo "$as_me:11271: result: yes" >&5 11272echo "${ECHO_T}yes" >&6 11273else 11274 echo "$as_me: failed program was:" >&5 11275cat conftest.$ac_ext >&5 11276echo "$as_me:11276: result: no" >&5 11277echo "${ECHO_T}no" >&6 11278 LIBS="$cf_ncurses_SAVE" 11279fi 11280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11281fi 11282 11283cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11284 11285cat >>confdefs.h <<EOF 11286#define $cf_nculib_ROOT 1 11287EOF 11288 11289fi 11290 11291else 11292 cf_wide_curses=no 11293 11294echo "$as_me:11294: checking for extra include directories" >&5 11295echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6 11296if test "${cf_cv_curses_incdir+set}" = set; then 11297 echo $ECHO_N "(cached) $ECHO_C" >&6 11298else 11299 11300cf_cv_curses_incdir=no 11301case $host_os in #(vi 11302hpux10.*) #(vi 11303 if test "x$cf_cv_screen" = "xcurses_colr" 11304 then 11305 test -d /usr/include/curses_colr && \ 11306 cf_cv_curses_incdir="-I/usr/include/curses_colr" 11307 fi 11308 ;; 11309sunos3*|sunos4*) 11310 if test "x$cf_cv_screen" = "xcurses_5lib" 11311 then 11312 test -d /usr/5lib && \ 11313 test -d /usr/5include && \ 11314 cf_cv_curses_incdir="-I/usr/5include" 11315 fi 11316 ;; 11317esac 11318 11319fi 11320echo "$as_me:11320: result: $cf_cv_curses_incdir" >&5 11321echo "${ECHO_T}$cf_cv_curses_incdir" >&6 11322test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir" 11323 11324echo "$as_me:11324: checking if we have identified curses headers" >&5 11325echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 11326if test "${cf_cv_ncurses_header+set}" = set; then 11327 echo $ECHO_N "(cached) $ECHO_C" >&6 11328else 11329 11330cf_cv_ncurses_header=none 11331for cf_header in \ 11332 ncurses.h \ 11333 curses.h ncurses/ncurses.h ncurses/curses.h 11334do 11335cat >conftest.$ac_ext <<_ACEOF 11336#line 11336 "configure" 11337#include "confdefs.h" 11338#include <${cf_header}> 11339int 11340main () 11341{ 11342initscr(); tgoto("?", 0,0) 11343 ; 11344 return 0; 11345} 11346_ACEOF 11347rm -f conftest.$ac_objext 11348if { (eval echo "$as_me:11348: \"$ac_compile\"") >&5 11349 (eval $ac_compile) 2>&5 11350 ac_status=$? 11351 echo "$as_me:11351: \$? = $ac_status" >&5 11352 (exit $ac_status); } && 11353 { ac_try='test -s conftest.$ac_objext' 11354 { (eval echo "$as_me:11354: \"$ac_try\"") >&5 11355 (eval $ac_try) 2>&5 11356 ac_status=$? 11357 echo "$as_me:11357: \$? = $ac_status" >&5 11358 (exit $ac_status); }; }; then 11359 cf_cv_ncurses_header=$cf_header; break 11360else 11361 echo "$as_me: failed program was:" >&5 11362cat conftest.$ac_ext >&5 11363fi 11364rm -f conftest.$ac_objext conftest.$ac_ext 11365done 11366 11367fi 11368echo "$as_me:11368: result: $cf_cv_ncurses_header" >&5 11369echo "${ECHO_T}$cf_cv_ncurses_header" >&6 11370 11371if test "$cf_cv_ncurses_header" = none ; then 11372 { { echo "$as_me:11372: error: No curses header-files found" >&5 11373echo "$as_me: error: No curses header-files found" >&2;} 11374 { (exit 1); exit 1; }; } 11375fi 11376 11377# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 11378 11379for ac_header in $cf_cv_ncurses_header 11380do 11381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11382echo "$as_me:11382: checking for $ac_header" >&5 11383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11384if eval "test \"\${$as_ac_Header+set}\" = set"; then 11385 echo $ECHO_N "(cached) $ECHO_C" >&6 11386else 11387 cat >conftest.$ac_ext <<_ACEOF 11388#line 11388 "configure" 11389#include "confdefs.h" 11390#include <$ac_header> 11391_ACEOF 11392if { (eval echo "$as_me:11392: \"$ac_cpp conftest.$ac_ext\"") >&5 11393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11394 ac_status=$? 11395 egrep -v '^ *\+' conftest.er1 >conftest.err 11396 rm -f conftest.er1 11397 cat conftest.err >&5 11398 echo "$as_me:11398: \$? = $ac_status" >&5 11399 (exit $ac_status); } >/dev/null; then 11400 if test -s conftest.err; then 11401 ac_cpp_err=$ac_c_preproc_warn_flag 11402 else 11403 ac_cpp_err= 11404 fi 11405else 11406 ac_cpp_err=yes 11407fi 11408if test -z "$ac_cpp_err"; then 11409 eval "$as_ac_Header=yes" 11410else 11411 echo "$as_me: failed program was:" >&5 11412 cat conftest.$ac_ext >&5 11413 eval "$as_ac_Header=no" 11414fi 11415rm -f conftest.err conftest.$ac_ext 11416fi 11417echo "$as_me:11417: result: `eval echo '${'$as_ac_Header'}'`" >&5 11418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11419if test `eval echo '${'$as_ac_Header'}'` = yes; then 11420 cat >>confdefs.h <<EOF 11421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11422EOF 11423 11424fi 11425done 11426 11427echo "$as_me:11427: checking for terminfo header" >&5 11428echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 11429if test "${cf_cv_term_header+set}" = set; then 11430 echo $ECHO_N "(cached) $ECHO_C" >&6 11431else 11432 11433case ${cf_cv_ncurses_header} in #(vi 11434*/ncurses.h|*/ncursesw.h) #(vi 11435 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 11436 ;; 11437*) 11438 cf_term_header=term.h 11439 ;; 11440esac 11441 11442for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 11443do 11444cat >conftest.$ac_ext <<_ACEOF 11445#line 11445 "configure" 11446#include "confdefs.h" 11447#include <stdio.h> 11448#include <${cf_cv_ncurses_header:-curses.h}> 11449#include <$cf_test> 11450 11451int 11452main () 11453{ 11454int x = auto_left_margin 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459rm -f conftest.$ac_objext 11460if { (eval echo "$as_me:11460: \"$ac_compile\"") >&5 11461 (eval $ac_compile) 2>&5 11462 ac_status=$? 11463 echo "$as_me:11463: \$? = $ac_status" >&5 11464 (exit $ac_status); } && 11465 { ac_try='test -s conftest.$ac_objext' 11466 { (eval echo "$as_me:11466: \"$ac_try\"") >&5 11467 (eval $ac_try) 2>&5 11468 ac_status=$? 11469 echo "$as_me:11469: \$? = $ac_status" >&5 11470 (exit $ac_status); }; }; then 11471 11472 cf_cv_term_header="$cf_test" 11473else 11474 echo "$as_me: failed program was:" >&5 11475cat conftest.$ac_ext >&5 11476 11477 cf_cv_term_header=unknown 11478 11479fi 11480rm -f conftest.$ac_objext conftest.$ac_ext 11481 test "$cf_cv_term_header" != unknown && break 11482done 11483 11484fi 11485echo "$as_me:11485: result: $cf_cv_term_header" >&5 11486echo "${ECHO_T}$cf_cv_term_header" >&6 11487 11488# Set definitions to allow ifdef'ing to accommodate subdirectories 11489 11490case $cf_cv_term_header in # (vi 11491*term.h) 11492 cat >>confdefs.h <<\EOF 11493#define HAVE_TERM_H 1 11494EOF 11495 11496 ;; 11497esac 11498 11499case $cf_cv_term_header in # (vi 11500ncurses/term.h) #(vi 11501 cat >>confdefs.h <<\EOF 11502#define HAVE_NCURSES_TERM_H 1 11503EOF 11504 11505 ;; 11506ncursesw/term.h) 11507 cat >>confdefs.h <<\EOF 11508#define HAVE_NCURSESW_TERM_H 1 11509EOF 11510 11511 ;; 11512esac 11513 11514echo "$as_me:11514: checking for ncurses version" >&5 11515echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 11516if test "${cf_cv_ncurses_version+set}" = set; then 11517 echo $ECHO_N "(cached) $ECHO_C" >&6 11518else 11519 11520 cf_cv_ncurses_version=no 11521 cf_tempfile=out$$ 11522 rm -f $cf_tempfile 11523 if test "$cross_compiling" = yes; then 11524 11525 # This will not work if the preprocessor splits the line after the 11526 # Autoconf token. The 'unproto' program does that. 11527 cat > conftest.$ac_ext <<EOF 11528#include <${cf_cv_ncurses_header:-curses.h}> 11529#undef Autoconf 11530#ifdef NCURSES_VERSION 11531Autoconf NCURSES_VERSION 11532#else 11533#ifdef __NCURSES_H 11534Autoconf "old" 11535#endif 11536; 11537#endif 11538EOF 11539 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 11540 { (eval echo "$as_me:11540: \"$cf_try\"") >&5 11541 (eval $cf_try) 2>&5 11542 ac_status=$? 11543 echo "$as_me:11543: \$? = $ac_status" >&5 11544 (exit $ac_status); } 11545 if test -f conftest.out ; then 11546 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 11547 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 11548 rm -f conftest.out 11549 fi 11550 11551else 11552 cat >conftest.$ac_ext <<_ACEOF 11553#line 11553 "configure" 11554#include "confdefs.h" 11555 11556#include <${cf_cv_ncurses_header:-curses.h}> 11557#include <stdio.h> 11558int main() 11559{ 11560 FILE *fp = fopen("$cf_tempfile", "w"); 11561#ifdef NCURSES_VERSION 11562# ifdef NCURSES_VERSION_PATCH 11563 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 11564# else 11565 fprintf(fp, "%s\n", NCURSES_VERSION); 11566# endif 11567#else 11568# ifdef __NCURSES_H 11569 fprintf(fp, "old\n"); 11570# else 11571 make an error 11572# endif 11573#endif 11574 ${cf_cv_main_return:-return}(0); 11575} 11576_ACEOF 11577rm -f conftest$ac_exeext 11578if { (eval echo "$as_me:11578: \"$ac_link\"") >&5 11579 (eval $ac_link) 2>&5 11580 ac_status=$? 11581 echo "$as_me:11581: \$? = $ac_status" >&5 11582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11583 { (eval echo "$as_me:11583: \"$ac_try\"") >&5 11584 (eval $ac_try) 2>&5 11585 ac_status=$? 11586 echo "$as_me:11586: \$? = $ac_status" >&5 11587 (exit $ac_status); }; }; then 11588 11589 cf_cv_ncurses_version=`cat $cf_tempfile` 11590else 11591 echo "$as_me: program exited with status $ac_status" >&5 11592echo "$as_me: failed program was:" >&5 11593cat conftest.$ac_ext >&5 11594fi 11595rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11596fi 11597 rm -f $cf_tempfile 11598 11599fi 11600echo "$as_me:11600: result: $cf_cv_ncurses_version" >&5 11601echo "${ECHO_T}$cf_cv_ncurses_version" >&6 11602test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 11603#define NCURSES 1 11604EOF 11605 11606echo "$as_me:11606: checking if we have identified curses libraries" >&5 11607echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6 11608cat >conftest.$ac_ext <<_ACEOF 11609#line 11609 "configure" 11610#include "confdefs.h" 11611#include <${cf_cv_ncurses_header:-curses.h}> 11612int 11613main () 11614{ 11615initscr(); tgoto("?", 0,0) 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620rm -f conftest.$ac_objext conftest$ac_exeext 11621if { (eval echo "$as_me:11621: \"$ac_link\"") >&5 11622 (eval $ac_link) 2>&5 11623 ac_status=$? 11624 echo "$as_me:11624: \$? = $ac_status" >&5 11625 (exit $ac_status); } && 11626 { ac_try='test -s conftest$ac_exeext' 11627 { (eval echo "$as_me:11627: \"$ac_try\"") >&5 11628 (eval $ac_try) 2>&5 11629 ac_status=$? 11630 echo "$as_me:11630: \$? = $ac_status" >&5 11631 (exit $ac_status); }; }; then 11632 cf_result=yes 11633else 11634 echo "$as_me: failed program was:" >&5 11635cat conftest.$ac_ext >&5 11636cf_result=no 11637fi 11638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11639echo "$as_me:11639: result: $cf_result" >&5 11640echo "${ECHO_T}$cf_result" >&6 11641 11642if test "$cf_result" = no ; then 11643case $host_os in #(vi 11644freebsd*) #(vi 11645 echo "$as_me:11645: checking for tgoto in -lmytinfo" >&5 11646echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 11647if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 11648 echo $ECHO_N "(cached) $ECHO_C" >&6 11649else 11650 ac_check_lib_save_LIBS=$LIBS 11651LIBS="-lmytinfo $LIBS" 11652cat >conftest.$ac_ext <<_ACEOF 11653#line 11653 "configure" 11654#include "confdefs.h" 11655 11656/* Override any gcc2 internal prototype to avoid an error. */ 11657#ifdef __cplusplus 11658extern "C" 11659#endif 11660/* We use char because int might match the return type of a gcc2 11661 builtin and then its argument prototype would still apply. */ 11662char tgoto (); 11663int 11664main () 11665{ 11666tgoto (); 11667 ; 11668 return 0; 11669} 11670_ACEOF 11671rm -f conftest.$ac_objext conftest$ac_exeext 11672if { (eval echo "$as_me:11672: \"$ac_link\"") >&5 11673 (eval $ac_link) 2>&5 11674 ac_status=$? 11675 echo "$as_me:11675: \$? = $ac_status" >&5 11676 (exit $ac_status); } && 11677 { ac_try='test -s conftest$ac_exeext' 11678 { (eval echo "$as_me:11678: \"$ac_try\"") >&5 11679 (eval $ac_try) 2>&5 11680 ac_status=$? 11681 echo "$as_me:11681: \$? = $ac_status" >&5 11682 (exit $ac_status); }; }; then 11683 ac_cv_lib_mytinfo_tgoto=yes 11684else 11685 echo "$as_me: failed program was:" >&5 11686cat conftest.$ac_ext >&5 11687ac_cv_lib_mytinfo_tgoto=no 11688fi 11689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11690LIBS=$ac_check_lib_save_LIBS 11691fi 11692echo "$as_me:11692: result: $ac_cv_lib_mytinfo_tgoto" >&5 11693echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 11694if test $ac_cv_lib_mytinfo_tgoto = yes; then 11695 LIBS="-lmytinfo $LIBS" 11696fi 11697 11698 ;; 11699hpux10.*) #(vi 11700 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr 11701 # next (1998), and xcurses "newer" (2000). There is no header file for 11702 # Hcurses; the subdirectory curses_colr has the headers (curses.h and 11703 # term.h) for cur_colr 11704 if test "x$cf_cv_screen" = "xcurses_colr" 11705 then 11706 echo "$as_me:11706: checking for initscr in -lcur_colr" >&5 11707echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6 11708if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then 11709 echo $ECHO_N "(cached) $ECHO_C" >&6 11710else 11711 ac_check_lib_save_LIBS=$LIBS 11712LIBS="-lcur_colr $LIBS" 11713cat >conftest.$ac_ext <<_ACEOF 11714#line 11714 "configure" 11715#include "confdefs.h" 11716 11717/* Override any gcc2 internal prototype to avoid an error. */ 11718#ifdef __cplusplus 11719extern "C" 11720#endif 11721/* We use char because int might match the return type of a gcc2 11722 builtin and then its argument prototype would still apply. */ 11723char initscr (); 11724int 11725main () 11726{ 11727initscr (); 11728 ; 11729 return 0; 11730} 11731_ACEOF 11732rm -f conftest.$ac_objext conftest$ac_exeext 11733if { (eval echo "$as_me:11733: \"$ac_link\"") >&5 11734 (eval $ac_link) 2>&5 11735 ac_status=$? 11736 echo "$as_me:11736: \$? = $ac_status" >&5 11737 (exit $ac_status); } && 11738 { ac_try='test -s conftest$ac_exeext' 11739 { (eval echo "$as_me:11739: \"$ac_try\"") >&5 11740 (eval $ac_try) 2>&5 11741 ac_status=$? 11742 echo "$as_me:11742: \$? = $ac_status" >&5 11743 (exit $ac_status); }; }; then 11744 ac_cv_lib_cur_colr_initscr=yes 11745else 11746 echo "$as_me: failed program was:" >&5 11747cat conftest.$ac_ext >&5 11748ac_cv_lib_cur_colr_initscr=no 11749fi 11750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11751LIBS=$ac_check_lib_save_LIBS 11752fi 11753echo "$as_me:11753: result: $ac_cv_lib_cur_colr_initscr" >&5 11754echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6 11755if test $ac_cv_lib_cur_colr_initscr = yes; then 11756 11757 LIBS="-lcur_colr $LIBS" 11758 ac_cv_func_initscr=yes 11759 11760else 11761 11762 echo "$as_me:11762: checking for initscr in -lHcurses" >&5 11763echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6 11764if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then 11765 echo $ECHO_N "(cached) $ECHO_C" >&6 11766else 11767 ac_check_lib_save_LIBS=$LIBS 11768LIBS="-lHcurses $LIBS" 11769cat >conftest.$ac_ext <<_ACEOF 11770#line 11770 "configure" 11771#include "confdefs.h" 11772 11773/* Override any gcc2 internal prototype to avoid an error. */ 11774#ifdef __cplusplus 11775extern "C" 11776#endif 11777/* We use char because int might match the return type of a gcc2 11778 builtin and then its argument prototype would still apply. */ 11779char initscr (); 11780int 11781main () 11782{ 11783initscr (); 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788rm -f conftest.$ac_objext conftest$ac_exeext 11789if { (eval echo "$as_me:11789: \"$ac_link\"") >&5 11790 (eval $ac_link) 2>&5 11791 ac_status=$? 11792 echo "$as_me:11792: \$? = $ac_status" >&5 11793 (exit $ac_status); } && 11794 { ac_try='test -s conftest$ac_exeext' 11795 { (eval echo "$as_me:11795: \"$ac_try\"") >&5 11796 (eval $ac_try) 2>&5 11797 ac_status=$? 11798 echo "$as_me:11798: \$? = $ac_status" >&5 11799 (exit $ac_status); }; }; then 11800 ac_cv_lib_Hcurses_initscr=yes 11801else 11802 echo "$as_me: failed program was:" >&5 11803cat conftest.$ac_ext >&5 11804ac_cv_lib_Hcurses_initscr=no 11805fi 11806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11807LIBS=$ac_check_lib_save_LIBS 11808fi 11809echo "$as_me:11809: result: $ac_cv_lib_Hcurses_initscr" >&5 11810echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6 11811if test $ac_cv_lib_Hcurses_initscr = yes; then 11812 11813 # HP's header uses __HP_CURSES, but user claims _HP_CURSES. 11814 LIBS="-lHcurses $LIBS" 11815 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES" 11816 ac_cv_func_initscr=yes 11817 11818fi 11819 11820fi 11821 11822 fi 11823 ;; 11824linux*) 11825 case `arch 2>/dev/null` in 11826 x86_64) 11827 if test -d /lib64 11828 then 11829 11830if test -n "/lib64" ; then 11831 for cf_add_libdir in /lib64 11832 do 11833 if test $cf_add_libdir = /usr/lib ; then 11834 : 11835 elif test -d $cf_add_libdir 11836 then 11837 cf_have_libdir=no 11838 if test -n "$LDFLAGS$LIBS" ; then 11839 # a loop is needed to ensure we can add subdirs of existing dirs 11840 for cf_test_libdir in $LDFLAGS $LIBS ; do 11841 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11842 cf_have_libdir=yes; break 11843 fi 11844 done 11845 fi 11846 if test "$cf_have_libdir" = no ; then 11847 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11848 11849echo "${as_me:-configure}:11849: testing adding $cf_add_libdir to library-path ..." 1>&5 11850 11851 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11852 fi 11853 fi 11854 done 11855fi 11856 11857 else 11858 11859if test -n "/lib" ; then 11860 for cf_add_libdir in /lib 11861 do 11862 if test $cf_add_libdir = /usr/lib ; then 11863 : 11864 elif test -d $cf_add_libdir 11865 then 11866 cf_have_libdir=no 11867 if test -n "$LDFLAGS$LIBS" ; then 11868 # a loop is needed to ensure we can add subdirs of existing dirs 11869 for cf_test_libdir in $LDFLAGS $LIBS ; do 11870 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11871 cf_have_libdir=yes; break 11872 fi 11873 done 11874 fi 11875 if test "$cf_have_libdir" = no ; then 11876 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11877 11878echo "${as_me:-configure}:11878: testing adding $cf_add_libdir to library-path ..." 1>&5 11879 11880 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11881 fi 11882 fi 11883 done 11884fi 11885 11886 fi 11887 ;; 11888 *) 11889 11890if test -n "/lib" ; then 11891 for cf_add_libdir in /lib 11892 do 11893 if test $cf_add_libdir = /usr/lib ; then 11894 : 11895 elif test -d $cf_add_libdir 11896 then 11897 cf_have_libdir=no 11898 if test -n "$LDFLAGS$LIBS" ; then 11899 # a loop is needed to ensure we can add subdirs of existing dirs 11900 for cf_test_libdir in $LDFLAGS $LIBS ; do 11901 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11902 cf_have_libdir=yes; break 11903 fi 11904 done 11905 fi 11906 if test "$cf_have_libdir" = no ; then 11907 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11908 11909echo "${as_me:-configure}:11909: testing adding $cf_add_libdir to library-path ..." 1>&5 11910 11911 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11912 fi 11913 fi 11914 done 11915fi 11916 11917 ;; 11918 esac 11919 ;; 11920sunos3*|sunos4*) 11921 if test "x$cf_cv_screen" = "xcurses_5lib" 11922 then 11923 if test -d /usr/5lib ; then 11924 11925if test -n "/usr/5lib" ; then 11926 for cf_add_libdir in /usr/5lib 11927 do 11928 if test $cf_add_libdir = /usr/lib ; then 11929 : 11930 elif test -d $cf_add_libdir 11931 then 11932 cf_have_libdir=no 11933 if test -n "$LDFLAGS$LIBS" ; then 11934 # a loop is needed to ensure we can add subdirs of existing dirs 11935 for cf_test_libdir in $LDFLAGS $LIBS ; do 11936 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11937 cf_have_libdir=yes; break 11938 fi 11939 done 11940 fi 11941 if test "$cf_have_libdir" = no ; then 11942 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11943 11944echo "${as_me:-configure}:11944: testing adding $cf_add_libdir to library-path ..." 1>&5 11945 11946 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11947 fi 11948 fi 11949 done 11950fi 11951 11952 LIBS="-lcurses -ltermcap $LIBS" 11953 fi 11954 fi 11955 ac_cv_func_initscr=yes 11956 ;; 11957esac 11958 11959if test ".$ac_cv_func_initscr" != .yes ; then 11960 cf_save_LIBS="$LIBS" 11961 cf_term_lib="" 11962 cf_curs_lib="" 11963 11964 if test ".${cf_cv_ncurses_version:-no}" != .no 11965 then 11966 cf_check_list="ncurses curses cursesX" 11967 else 11968 cf_check_list="cursesX curses ncurses" 11969 fi 11970 11971 # Check for library containing tgoto. Do this before curses library 11972 # because it may be needed to link the test-case for initscr. 11973 echo "$as_me:11973: checking for tgoto" >&5 11974echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 11975if test "${ac_cv_func_tgoto+set}" = set; then 11976 echo $ECHO_N "(cached) $ECHO_C" >&6 11977else 11978 cat >conftest.$ac_ext <<_ACEOF 11979#line 11979 "configure" 11980#include "confdefs.h" 11981/* System header to define __stub macros and hopefully few prototypes, 11982 which can conflict with char tgoto (); below. */ 11983#include <assert.h> 11984/* Override any gcc2 internal prototype to avoid an error. */ 11985#ifdef __cplusplus 11986extern "C" 11987#endif 11988/* We use char because int might match the return type of a gcc2 11989 builtin and then its argument prototype would still apply. */ 11990char tgoto (); 11991char (*f) (); 11992 11993int 11994main () 11995{ 11996/* The GNU C library defines this for functions which it implements 11997 to always fail with ENOSYS. Some functions are actually named 11998 something starting with __ and the normal name is an alias. */ 11999#if defined (__stub_tgoto) || defined (__stub___tgoto) 12000choke me 12001#else 12002f = tgoto; 12003#endif 12004 12005 ; 12006 return 0; 12007} 12008_ACEOF 12009rm -f conftest.$ac_objext conftest$ac_exeext 12010if { (eval echo "$as_me:12010: \"$ac_link\"") >&5 12011 (eval $ac_link) 2>&5 12012 ac_status=$? 12013 echo "$as_me:12013: \$? = $ac_status" >&5 12014 (exit $ac_status); } && 12015 { ac_try='test -s conftest$ac_exeext' 12016 { (eval echo "$as_me:12016: \"$ac_try\"") >&5 12017 (eval $ac_try) 2>&5 12018 ac_status=$? 12019 echo "$as_me:12019: \$? = $ac_status" >&5 12020 (exit $ac_status); }; }; then 12021 ac_cv_func_tgoto=yes 12022else 12023 echo "$as_me: failed program was:" >&5 12024cat conftest.$ac_ext >&5 12025ac_cv_func_tgoto=no 12026fi 12027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12028fi 12029echo "$as_me:12029: result: $ac_cv_func_tgoto" >&5 12030echo "${ECHO_T}$ac_cv_func_tgoto" >&6 12031if test $ac_cv_func_tgoto = yes; then 12032 cf_term_lib=predefined 12033else 12034 12035 for cf_term_lib in $cf_check_list otermcap termcap termlib unknown 12036 do 12037 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` 12038echo "$as_me:12038: checking for tgoto in -l$cf_term_lib" >&5 12039echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6 12040if eval "test \"\${$as_ac_Lib+set}\" = set"; then 12041 echo $ECHO_N "(cached) $ECHO_C" >&6 12042else 12043 ac_check_lib_save_LIBS=$LIBS 12044LIBS="-l$cf_term_lib $LIBS" 12045cat >conftest.$ac_ext <<_ACEOF 12046#line 12046 "configure" 12047#include "confdefs.h" 12048 12049/* Override any gcc2 internal prototype to avoid an error. */ 12050#ifdef __cplusplus 12051extern "C" 12052#endif 12053/* We use char because int might match the return type of a gcc2 12054 builtin and then its argument prototype would still apply. */ 12055char tgoto (); 12056int 12057main () 12058{ 12059tgoto (); 12060 ; 12061 return 0; 12062} 12063_ACEOF 12064rm -f conftest.$ac_objext conftest$ac_exeext 12065if { (eval echo "$as_me:12065: \"$ac_link\"") >&5 12066 (eval $ac_link) 2>&5 12067 ac_status=$? 12068 echo "$as_me:12068: \$? = $ac_status" >&5 12069 (exit $ac_status); } && 12070 { ac_try='test -s conftest$ac_exeext' 12071 { (eval echo "$as_me:12071: \"$ac_try\"") >&5 12072 (eval $ac_try) 2>&5 12073 ac_status=$? 12074 echo "$as_me:12074: \$? = $ac_status" >&5 12075 (exit $ac_status); }; }; then 12076 eval "$as_ac_Lib=yes" 12077else 12078 echo "$as_me: failed program was:" >&5 12079cat conftest.$ac_ext >&5 12080eval "$as_ac_Lib=no" 12081fi 12082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12083LIBS=$ac_check_lib_save_LIBS 12084fi 12085echo "$as_me:12085: result: `eval echo '${'$as_ac_Lib'}'`" >&5 12086echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 12087if test `eval echo '${'$as_ac_Lib'}'` = yes; then 12088 break 12089fi 12090 12091 done 12092 12093fi 12094 12095 # Check for library containing initscr 12096 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" 12097 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown 12098 do 12099 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` 12100echo "$as_me:12100: checking for initscr in -l$cf_curs_lib" >&5 12101echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6 12102if eval "test \"\${$as_ac_Lib+set}\" = set"; then 12103 echo $ECHO_N "(cached) $ECHO_C" >&6 12104else 12105 ac_check_lib_save_LIBS=$LIBS 12106LIBS="-l$cf_curs_lib $LIBS" 12107cat >conftest.$ac_ext <<_ACEOF 12108#line 12108 "configure" 12109#include "confdefs.h" 12110 12111/* Override any gcc2 internal prototype to avoid an error. */ 12112#ifdef __cplusplus 12113extern "C" 12114#endif 12115/* We use char because int might match the return type of a gcc2 12116 builtin and then its argument prototype would still apply. */ 12117char initscr (); 12118int 12119main () 12120{ 12121initscr (); 12122 ; 12123 return 0; 12124} 12125_ACEOF 12126rm -f conftest.$ac_objext conftest$ac_exeext 12127if { (eval echo "$as_me:12127: \"$ac_link\"") >&5 12128 (eval $ac_link) 2>&5 12129 ac_status=$? 12130 echo "$as_me:12130: \$? = $ac_status" >&5 12131 (exit $ac_status); } && 12132 { ac_try='test -s conftest$ac_exeext' 12133 { (eval echo "$as_me:12133: \"$ac_try\"") >&5 12134 (eval $ac_try) 2>&5 12135 ac_status=$? 12136 echo "$as_me:12136: \$? = $ac_status" >&5 12137 (exit $ac_status); }; }; then 12138 eval "$as_ac_Lib=yes" 12139else 12140 echo "$as_me: failed program was:" >&5 12141cat conftest.$ac_ext >&5 12142eval "$as_ac_Lib=no" 12143fi 12144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12145LIBS=$ac_check_lib_save_LIBS 12146fi 12147echo "$as_me:12147: result: `eval echo '${'$as_ac_Lib'}'`" >&5 12148echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 12149if test `eval echo '${'$as_ac_Lib'}'` = yes; then 12150 break 12151fi 12152 12153 done 12154 test $cf_curs_lib = unknown && { { echo "$as_me:12154: error: no curses library found" >&5 12155echo "$as_me: error: no curses library found" >&2;} 12156 { (exit 1); exit 1; }; } 12157 12158 LIBS="-l$cf_curs_lib $cf_save_LIBS" 12159 if test "$cf_term_lib" = unknown ; then 12160 echo "$as_me:12160: checking if we can link with $cf_curs_lib library" >&5 12161echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6 12162 cat >conftest.$ac_ext <<_ACEOF 12163#line 12163 "configure" 12164#include "confdefs.h" 12165#include <${cf_cv_ncurses_header:-curses.h}> 12166int 12167main () 12168{ 12169initscr() 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174rm -f conftest.$ac_objext conftest$ac_exeext 12175if { (eval echo "$as_me:12175: \"$ac_link\"") >&5 12176 (eval $ac_link) 2>&5 12177 ac_status=$? 12178 echo "$as_me:12178: \$? = $ac_status" >&5 12179 (exit $ac_status); } && 12180 { ac_try='test -s conftest$ac_exeext' 12181 { (eval echo "$as_me:12181: \"$ac_try\"") >&5 12182 (eval $ac_try) 2>&5 12183 ac_status=$? 12184 echo "$as_me:12184: \$? = $ac_status" >&5 12185 (exit $ac_status); }; }; then 12186 cf_result=yes 12187else 12188 echo "$as_me: failed program was:" >&5 12189cat conftest.$ac_ext >&5 12190cf_result=no 12191fi 12192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12193 echo "$as_me:12193: result: $cf_result" >&5 12194echo "${ECHO_T}$cf_result" >&6 12195 test $cf_result = no && { { echo "$as_me:12195: error: Cannot link curses library" >&5 12196echo "$as_me: error: Cannot link curses library" >&2;} 12197 { (exit 1); exit 1; }; } 12198 elif test "$cf_curs_lib" = "$cf_term_lib" ; then 12199 : 12200 elif test "$cf_term_lib" != predefined ; then 12201 echo "$as_me:12201: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 12202echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6 12203 cat >conftest.$ac_ext <<_ACEOF 12204#line 12204 "configure" 12205#include "confdefs.h" 12206#include <${cf_cv_ncurses_header:-curses.h}> 12207int 12208main () 12209{ 12210initscr(); tgoto((char *)0, 0, 0); 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215rm -f conftest.$ac_objext conftest$ac_exeext 12216if { (eval echo "$as_me:12216: \"$ac_link\"") >&5 12217 (eval $ac_link) 2>&5 12218 ac_status=$? 12219 echo "$as_me:12219: \$? = $ac_status" >&5 12220 (exit $ac_status); } && 12221 { ac_try='test -s conftest$ac_exeext' 12222 { (eval echo "$as_me:12222: \"$ac_try\"") >&5 12223 (eval $ac_try) 2>&5 12224 ac_status=$? 12225 echo "$as_me:12225: \$? = $ac_status" >&5 12226 (exit $ac_status); }; }; then 12227 cf_result=no 12228else 12229 echo "$as_me: failed program was:" >&5 12230cat conftest.$ac_ext >&5 12231 12232 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" 12233 cat >conftest.$ac_ext <<_ACEOF 12234#line 12234 "configure" 12235#include "confdefs.h" 12236#include <${cf_cv_ncurses_header:-curses.h}> 12237int 12238main () 12239{ 12240initscr() 12241 ; 12242 return 0; 12243} 12244_ACEOF 12245rm -f conftest.$ac_objext conftest$ac_exeext 12246if { (eval echo "$as_me:12246: \"$ac_link\"") >&5 12247 (eval $ac_link) 2>&5 12248 ac_status=$? 12249 echo "$as_me:12249: \$? = $ac_status" >&5 12250 (exit $ac_status); } && 12251 { ac_try='test -s conftest$ac_exeext' 12252 { (eval echo "$as_me:12252: \"$ac_try\"") >&5 12253 (eval $ac_try) 2>&5 12254 ac_status=$? 12255 echo "$as_me:12255: \$? = $ac_status" >&5 12256 (exit $ac_status); }; }; then 12257 cf_result=yes 12258else 12259 echo "$as_me: failed program was:" >&5 12260cat conftest.$ac_ext >&5 12261cf_result=error 12262fi 12263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12264 12265fi 12266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12267 echo "$as_me:12267: result: $cf_result" >&5 12268echo "${ECHO_T}$cf_result" >&6 12269 fi 12270fi 12271fi 12272 12273fi 12274 12275cf_all_widgets=yes 12276 12277echo "$as_me:12277: checking if you want extra dialogs" >&5 12278echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6 12279 12280# Check whether --enable-extras or --disable-extras was given. 12281if test "${enable_extras+set}" = set; then 12282 enableval="$enable_extras" 12283 12284else 12285 enableval=yes 12286fi; 12287echo "$as_me:12287: result: $enableval" >&5 12288echo "${ECHO_T}$enableval" >&6 12289if test "$enableval" != no ; then 12290cf_all_widgets=yes 12291else 12292cf_all_widgets=no 12293fi 12294 12295echo "$as_me:12295: checking if you want config-file support" >&5 12296echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6 12297 12298# Check whether --enable-rc-file or --disable-rc-file was given. 12299if test "${enable_rc_file+set}" = set; then 12300 enableval="$enable_rc_file" 12301 12302else 12303 enableval=$cf_all_widgets 12304fi; 12305echo "$as_me:12305: result: $enableval" >&5 12306echo "${ECHO_T}$enableval" >&6 12307if test "$enableval" != no ; then 12308EXTRAOBJS="$EXTRAOBJS rc\$o" 12309 cat >>confdefs.h <<\EOF 12310#define HAVE_RC_FILE 1 12311EOF 12312 12313else 12314 : 12315fi 12316 12317echo "$as_me:12317: checking if you want Xdialog-style dialogs" >&5 12318echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6 12319 12320# Check whether --enable-Xdialog or --disable-Xdialog was given. 12321if test "${enable_Xdialog+set}" = set; then 12322 enableval="$enable_Xdialog" 12323 12324else 12325 enableval=$cf_all_widgets 12326fi; 12327echo "$as_me:12327: result: $enableval" >&5 12328echo "${ECHO_T}$enableval" >&6 12329if test "$enableval" != no ; then 12330EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o" 12331 cat >>confdefs.h <<\EOF 12332#define HAVE_XDIALOG 1 12333EOF 12334 12335else 12336 : 12337fi 12338 12339echo "$as_me:12339: checking if you want the form dialog" >&5 12340echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6 12341 12342# Check whether --enable-form or --disable-form was given. 12343if test "${enable_form+set}" = set; then 12344 enableval="$enable_form" 12345 12346else 12347 enableval=$cf_all_widgets 12348fi; 12349echo "$as_me:12349: result: $enableval" >&5 12350echo "${ECHO_T}$enableval" >&6 12351if test "$enableval" != no ; then 12352EXTRAOBJS="$EXTRAOBJS formbox\$o" 12353 cat >>confdefs.h <<\EOF 12354#define HAVE_DLG_FORMBOX 1 12355EOF 12356 12357else 12358 : 12359fi 12360 12361echo "$as_me:12361: checking if you want the gauge dialog" >&5 12362echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6 12363 12364# Check whether --enable-gauge or --disable-gauge was given. 12365if test "${enable_gauge+set}" = set; then 12366 enableval="$enable_gauge" 12367 12368else 12369 enableval=$cf_all_widgets 12370fi; 12371echo "$as_me:12371: result: $enableval" >&5 12372echo "${ECHO_T}$enableval" >&6 12373if test "$enableval" != no ; then 12374EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o prgbox\$o progressbox\$o" 12375 cat >>confdefs.h <<\EOF 12376#define HAVE_DLG_GAUGE 1 12377EOF 12378 12379else 12380 : 12381fi 12382 12383echo "$as_me:12383: checking if you want the tailbox dialog" >&5 12384echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6 12385 12386# Check whether --enable-tailbox or --disable-tailbox was given. 12387if test "${enable_tailbox+set}" = set; then 12388 enableval="$enable_tailbox" 12389 12390else 12391 enableval=$cf_all_widgets 12392fi; 12393echo "$as_me:12393: result: $enableval" >&5 12394echo "${ECHO_T}$enableval" >&6 12395if test "$enableval" != no ; then 12396EXTRAOBJS="$EXTRAOBJS tailbox\$o" 12397 cat >>confdefs.h <<\EOF 12398#define HAVE_DLG_TAILBOX 1 12399EOF 12400 12401else 12402 : 12403fi 12404 12405echo "$as_me:12405: checking if you want the mixedform dialog" >&5 12406echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6 12407 12408# Check whether --enable-mixedform or --disable-mixedform was given. 12409if test "${enable_mixedform+set}" = set; then 12410 enableval="$enable_mixedform" 12411 12412else 12413 enableval=$cf_all_widgets 12414fi; 12415echo "$as_me:12415: result: $enableval" >&5 12416echo "${ECHO_T}$enableval" >&6 12417if test "$enableval" != no ; then 12418EXTRAOBJS="$EXTRAOBJS mixedform\$o" 12419 cat >>confdefs.h <<\EOF 12420#define HAVE_DLG_MIXEDFORM 1 12421EOF 12422 12423else 12424 : 12425fi 12426 12427echo "$as_me:12427: checking if you want the mixedgauge dialog" >&5 12428echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6 12429 12430# Check whether --enable-mixedgauge or --disable-mixedgauge was given. 12431if test "${enable_mixedgauge+set}" = set; then 12432 enableval="$enable_mixedgauge" 12433 12434else 12435 enableval=$cf_all_widgets 12436fi; 12437echo "$as_me:12437: result: $enableval" >&5 12438echo "${ECHO_T}$enableval" >&6 12439if test "$enableval" != no ; then 12440EXTRAOBJS="$EXTRAOBJS mixedgauge\$o" 12441 cat >>confdefs.h <<\EOF 12442#define HAVE_MIXEDGAUGE 1 12443EOF 12444 12445else 12446 : 12447fi 12448 12449echo "$as_me:12449: checking if you want the wide-curses features" >&5 12450echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6 12451 12452# Check whether --enable-widec or --disable-widec was given. 12453if test "${enable_widec+set}" = set; then 12454 enableval="$enable_widec" 12455 12456else 12457 enableval=$cf_wide_curses 12458fi; 12459echo "$as_me:12459: result: $enableval" >&5 12460echo "${ECHO_T}$enableval" >&6 12461if test "$enableval" != no ; then 12462cat >>confdefs.h <<\EOF 12463#define USE_WIDE_CURSES 1 12464EOF 12465 12466else 12467 : 12468fi 12469 12470echo "$as_me:12470: checking for ANSI C header files" >&5 12471echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 12472if test "${ac_cv_header_stdc+set}" = set; then 12473 echo $ECHO_N "(cached) $ECHO_C" >&6 12474else 12475 cat >conftest.$ac_ext <<_ACEOF 12476#line 12476 "configure" 12477#include "confdefs.h" 12478#include <stdlib.h> 12479#include <stdarg.h> 12480#include <string.h> 12481#include <float.h> 12482 12483_ACEOF 12484if { (eval echo "$as_me:12484: \"$ac_cpp conftest.$ac_ext\"") >&5 12485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12486 ac_status=$? 12487 egrep -v '^ *\+' conftest.er1 >conftest.err 12488 rm -f conftest.er1 12489 cat conftest.err >&5 12490 echo "$as_me:12490: \$? = $ac_status" >&5 12491 (exit $ac_status); } >/dev/null; then 12492 if test -s conftest.err; then 12493 ac_cpp_err=$ac_c_preproc_warn_flag 12494 else 12495 ac_cpp_err= 12496 fi 12497else 12498 ac_cpp_err=yes 12499fi 12500if test -z "$ac_cpp_err"; then 12501 ac_cv_header_stdc=yes 12502else 12503 echo "$as_me: failed program was:" >&5 12504 cat conftest.$ac_ext >&5 12505 ac_cv_header_stdc=no 12506fi 12507rm -f conftest.err conftest.$ac_ext 12508 12509if test $ac_cv_header_stdc = yes; then 12510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12511 cat >conftest.$ac_ext <<_ACEOF 12512#line 12512 "configure" 12513#include "confdefs.h" 12514#include <string.h> 12515 12516_ACEOF 12517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12518 egrep "memchr" >/dev/null 2>&1; then 12519 : 12520else 12521 ac_cv_header_stdc=no 12522fi 12523rm -rf conftest* 12524 12525fi 12526 12527if test $ac_cv_header_stdc = yes; then 12528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12529 cat >conftest.$ac_ext <<_ACEOF 12530#line 12530 "configure" 12531#include "confdefs.h" 12532#include <stdlib.h> 12533 12534_ACEOF 12535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12536 egrep "free" >/dev/null 2>&1; then 12537 : 12538else 12539 ac_cv_header_stdc=no 12540fi 12541rm -rf conftest* 12542 12543fi 12544 12545if test $ac_cv_header_stdc = yes; then 12546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12547 if test "$cross_compiling" = yes; then 12548 : 12549else 12550 cat >conftest.$ac_ext <<_ACEOF 12551#line 12551 "configure" 12552#include "confdefs.h" 12553#include <ctype.h> 12554#if ((' ' & 0x0FF) == 0x020) 12555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12557#else 12558# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 12559 || ('j' <= (c) && (c) <= 'r') \ 12560 || ('s' <= (c) && (c) <= 'z')) 12561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12562#endif 12563 12564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12565int 12566main () 12567{ 12568 int i; 12569 for (i = 0; i < 256; i++) 12570 if (XOR (islower (i), ISLOWER (i)) 12571 || toupper (i) != TOUPPER (i)) 12572 $ac_main_return(2); 12573 $ac_main_return (0); 12574} 12575_ACEOF 12576rm -f conftest$ac_exeext 12577if { (eval echo "$as_me:12577: \"$ac_link\"") >&5 12578 (eval $ac_link) 2>&5 12579 ac_status=$? 12580 echo "$as_me:12580: \$? = $ac_status" >&5 12581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12582 { (eval echo "$as_me:12582: \"$ac_try\"") >&5 12583 (eval $ac_try) 2>&5 12584 ac_status=$? 12585 echo "$as_me:12585: \$? = $ac_status" >&5 12586 (exit $ac_status); }; }; then 12587 : 12588else 12589 echo "$as_me: program exited with status $ac_status" >&5 12590echo "$as_me: failed program was:" >&5 12591cat conftest.$ac_ext >&5 12592ac_cv_header_stdc=no 12593fi 12594rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12595fi 12596fi 12597fi 12598echo "$as_me:12598: result: $ac_cv_header_stdc" >&5 12599echo "${ECHO_T}$ac_cv_header_stdc" >&6 12600if test $ac_cv_header_stdc = yes; then 12601 12602cat >>confdefs.h <<\EOF 12603#define STDC_HEADERS 1 12604EOF 12605 12606fi 12607 12608echo "$as_me:12608: checking whether time.h and sys/time.h may both be included" >&5 12609echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 12610if test "${ac_cv_header_time+set}" = set; then 12611 echo $ECHO_N "(cached) $ECHO_C" >&6 12612else 12613 cat >conftest.$ac_ext <<_ACEOF 12614#line 12614 "configure" 12615#include "confdefs.h" 12616#include <sys/types.h> 12617#include <sys/time.h> 12618#include <time.h> 12619 12620int 12621main () 12622{ 12623if ((struct tm *) 0) 12624return 0; 12625 ; 12626 return 0; 12627} 12628_ACEOF 12629rm -f conftest.$ac_objext 12630if { (eval echo "$as_me:12630: \"$ac_compile\"") >&5 12631 (eval $ac_compile) 2>&5 12632 ac_status=$? 12633 echo "$as_me:12633: \$? = $ac_status" >&5 12634 (exit $ac_status); } && 12635 { ac_try='test -s conftest.$ac_objext' 12636 { (eval echo "$as_me:12636: \"$ac_try\"") >&5 12637 (eval $ac_try) 2>&5 12638 ac_status=$? 12639 echo "$as_me:12639: \$? = $ac_status" >&5 12640 (exit $ac_status); }; }; then 12641 ac_cv_header_time=yes 12642else 12643 echo "$as_me: failed program was:" >&5 12644cat conftest.$ac_ext >&5 12645ac_cv_header_time=no 12646fi 12647rm -f conftest.$ac_objext conftest.$ac_ext 12648fi 12649echo "$as_me:12649: result: $ac_cv_header_time" >&5 12650echo "${ECHO_T}$ac_cv_header_time" >&6 12651if test $ac_cv_header_time = yes; then 12652 12653cat >>confdefs.h <<\EOF 12654#define TIME_WITH_SYS_TIME 1 12655EOF 12656 12657fi 12658 12659ac_header_dirent=no 12660for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12661 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12662echo "$as_me:12662: checking for $ac_hdr that defines DIR" >&5 12663echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 12664if eval "test \"\${$as_ac_Header+set}\" = set"; then 12665 echo $ECHO_N "(cached) $ECHO_C" >&6 12666else 12667 cat >conftest.$ac_ext <<_ACEOF 12668#line 12668 "configure" 12669#include "confdefs.h" 12670#include <sys/types.h> 12671#include <$ac_hdr> 12672 12673int 12674main () 12675{ 12676if ((DIR *) 0) 12677return 0; 12678 ; 12679 return 0; 12680} 12681_ACEOF 12682rm -f conftest.$ac_objext 12683if { (eval echo "$as_me:12683: \"$ac_compile\"") >&5 12684 (eval $ac_compile) 2>&5 12685 ac_status=$? 12686 echo "$as_me:12686: \$? = $ac_status" >&5 12687 (exit $ac_status); } && 12688 { ac_try='test -s conftest.$ac_objext' 12689 { (eval echo "$as_me:12689: \"$ac_try\"") >&5 12690 (eval $ac_try) 2>&5 12691 ac_status=$? 12692 echo "$as_me:12692: \$? = $ac_status" >&5 12693 (exit $ac_status); }; }; then 12694 eval "$as_ac_Header=yes" 12695else 12696 echo "$as_me: failed program was:" >&5 12697cat conftest.$ac_ext >&5 12698eval "$as_ac_Header=no" 12699fi 12700rm -f conftest.$ac_objext conftest.$ac_ext 12701fi 12702echo "$as_me:12702: result: `eval echo '${'$as_ac_Header'}'`" >&5 12703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12704if test `eval echo '${'$as_ac_Header'}'` = yes; then 12705 cat >>confdefs.h <<EOF 12706#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12707EOF 12708 12709ac_header_dirent=$ac_hdr; break 12710fi 12711 12712done 12713# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12714if test $ac_header_dirent = dirent.h; then 12715 echo "$as_me:12715: checking for opendir in -ldir" >&5 12716echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 12717if test "${ac_cv_lib_dir_opendir+set}" = set; then 12718 echo $ECHO_N "(cached) $ECHO_C" >&6 12719else 12720 ac_check_lib_save_LIBS=$LIBS 12721LIBS="-ldir $LIBS" 12722cat >conftest.$ac_ext <<_ACEOF 12723#line 12723 "configure" 12724#include "confdefs.h" 12725 12726/* Override any gcc2 internal prototype to avoid an error. */ 12727#ifdef __cplusplus 12728extern "C" 12729#endif 12730/* We use char because int might match the return type of a gcc2 12731 builtin and then its argument prototype would still apply. */ 12732char opendir (); 12733int 12734main () 12735{ 12736opendir (); 12737 ; 12738 return 0; 12739} 12740_ACEOF 12741rm -f conftest.$ac_objext conftest$ac_exeext 12742if { (eval echo "$as_me:12742: \"$ac_link\"") >&5 12743 (eval $ac_link) 2>&5 12744 ac_status=$? 12745 echo "$as_me:12745: \$? = $ac_status" >&5 12746 (exit $ac_status); } && 12747 { ac_try='test -s conftest$ac_exeext' 12748 { (eval echo "$as_me:12748: \"$ac_try\"") >&5 12749 (eval $ac_try) 2>&5 12750 ac_status=$? 12751 echo "$as_me:12751: \$? = $ac_status" >&5 12752 (exit $ac_status); }; }; then 12753 ac_cv_lib_dir_opendir=yes 12754else 12755 echo "$as_me: failed program was:" >&5 12756cat conftest.$ac_ext >&5 12757ac_cv_lib_dir_opendir=no 12758fi 12759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12760LIBS=$ac_check_lib_save_LIBS 12761fi 12762echo "$as_me:12762: result: $ac_cv_lib_dir_opendir" >&5 12763echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 12764if test $ac_cv_lib_dir_opendir = yes; then 12765 LIBS="$LIBS -ldir" 12766fi 12767 12768else 12769 echo "$as_me:12769: checking for opendir in -lx" >&5 12770echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 12771if test "${ac_cv_lib_x_opendir+set}" = set; then 12772 echo $ECHO_N "(cached) $ECHO_C" >&6 12773else 12774 ac_check_lib_save_LIBS=$LIBS 12775LIBS="-lx $LIBS" 12776cat >conftest.$ac_ext <<_ACEOF 12777#line 12777 "configure" 12778#include "confdefs.h" 12779 12780/* Override any gcc2 internal prototype to avoid an error. */ 12781#ifdef __cplusplus 12782extern "C" 12783#endif 12784/* We use char because int might match the return type of a gcc2 12785 builtin and then its argument prototype would still apply. */ 12786char opendir (); 12787int 12788main () 12789{ 12790opendir (); 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795rm -f conftest.$ac_objext conftest$ac_exeext 12796if { (eval echo "$as_me:12796: \"$ac_link\"") >&5 12797 (eval $ac_link) 2>&5 12798 ac_status=$? 12799 echo "$as_me:12799: \$? = $ac_status" >&5 12800 (exit $ac_status); } && 12801 { ac_try='test -s conftest$ac_exeext' 12802 { (eval echo "$as_me:12802: \"$ac_try\"") >&5 12803 (eval $ac_try) 2>&5 12804 ac_status=$? 12805 echo "$as_me:12805: \$? = $ac_status" >&5 12806 (exit $ac_status); }; }; then 12807 ac_cv_lib_x_opendir=yes 12808else 12809 echo "$as_me: failed program was:" >&5 12810cat conftest.$ac_ext >&5 12811ac_cv_lib_x_opendir=no 12812fi 12813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816echo "$as_me:12816: result: $ac_cv_lib_x_opendir" >&5 12817echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 12818if test $ac_cv_lib_x_opendir = yes; then 12819 LIBS="$LIBS -lx" 12820fi 12821 12822fi 12823 12824for ac_header in search.h unctrl.h unistd.h 12825do 12826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12827echo "$as_me:12827: checking for $ac_header" >&5 12828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12829if eval "test \"\${$as_ac_Header+set}\" = set"; then 12830 echo $ECHO_N "(cached) $ECHO_C" >&6 12831else 12832 cat >conftest.$ac_ext <<_ACEOF 12833#line 12833 "configure" 12834#include "confdefs.h" 12835#include <$ac_header> 12836_ACEOF 12837if { (eval echo "$as_me:12837: \"$ac_cpp conftest.$ac_ext\"") >&5 12838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12839 ac_status=$? 12840 egrep -v '^ *\+' conftest.er1 >conftest.err 12841 rm -f conftest.er1 12842 cat conftest.err >&5 12843 echo "$as_me:12843: \$? = $ac_status" >&5 12844 (exit $ac_status); } >/dev/null; then 12845 if test -s conftest.err; then 12846 ac_cpp_err=$ac_c_preproc_warn_flag 12847 else 12848 ac_cpp_err= 12849 fi 12850else 12851 ac_cpp_err=yes 12852fi 12853if test -z "$ac_cpp_err"; then 12854 eval "$as_ac_Header=yes" 12855else 12856 echo "$as_me: failed program was:" >&5 12857 cat conftest.$ac_ext >&5 12858 eval "$as_ac_Header=no" 12859fi 12860rm -f conftest.err conftest.$ac_ext 12861fi 12862echo "$as_me:12862: result: `eval echo '${'$as_ac_Header'}'`" >&5 12863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12864if test `eval echo '${'$as_ac_Header'}'` = yes; then 12865 cat >>confdefs.h <<EOF 12866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12867EOF 12868 12869fi 12870done 12871 12872echo "$as_me:12872: checking for term.h" >&5 12873echo $ECHO_N "checking for term.h... $ECHO_C" >&6 12874if test "${cf_cv_term_header+set}" = set; then 12875 echo $ECHO_N "(cached) $ECHO_C" >&6 12876else 12877 12878# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look 12879# for <term.h> if we do not find the variant. 12880 12881cf_header_list="term.h ncurses/term.h ncursesw/term.h" 12882 12883case ${cf_cv_ncurses_header:-curses.h} in #(vi 12884*/*) 12885 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h 12886 cf_header_list="$cf_header_item $cf_header_list" 12887 ;; 12888esac 12889 12890for cf_header in $cf_header_list 12891do 12892 cat >conftest.$ac_ext <<_ACEOF 12893#line 12893 "configure" 12894#include "confdefs.h" 12895 12896#include <${cf_cv_ncurses_header:-curses.h}> 12897#include <${cf_header}> 12898int 12899main () 12900{ 12901WINDOW *x 12902 ; 12903 return 0; 12904} 12905_ACEOF 12906rm -f conftest.$ac_objext 12907if { (eval echo "$as_me:12907: \"$ac_compile\"") >&5 12908 (eval $ac_compile) 2>&5 12909 ac_status=$? 12910 echo "$as_me:12910: \$? = $ac_status" >&5 12911 (exit $ac_status); } && 12912 { ac_try='test -s conftest.$ac_objext' 12913 { (eval echo "$as_me:12913: \"$ac_try\"") >&5 12914 (eval $ac_try) 2>&5 12915 ac_status=$? 12916 echo "$as_me:12916: \$? = $ac_status" >&5 12917 (exit $ac_status); }; }; then 12918 cf_cv_term_header=$cf_header 12919 break 12920else 12921 echo "$as_me: failed program was:" >&5 12922cat conftest.$ac_ext >&5 12923cf_cv_term_header=no 12924fi 12925rm -f conftest.$ac_objext conftest.$ac_ext 12926done 12927 12928case $cf_cv_term_header in #(vi 12929no) 12930 # If curses is ncurses, some packagers still mess it up by trying to make 12931 # us use GNU termcap. This handles the most common case. 12932 for cf_header in ncurses/term.h ncursesw/term.h 12933 do 12934 cat >conftest.$ac_ext <<_ACEOF 12935#line 12935 "configure" 12936#include "confdefs.h" 12937 12938#include <${cf_cv_ncurses_header:-curses.h}> 12939#ifdef NCURSES_VERSION 12940#include <${cf_header}> 12941#else 12942make an error 12943#endif 12944int 12945main () 12946{ 12947WINDOW *x 12948 ; 12949 return 0; 12950} 12951_ACEOF 12952rm -f conftest.$ac_objext 12953if { (eval echo "$as_me:12953: \"$ac_compile\"") >&5 12954 (eval $ac_compile) 2>&5 12955 ac_status=$? 12956 echo "$as_me:12956: \$? = $ac_status" >&5 12957 (exit $ac_status); } && 12958 { ac_try='test -s conftest.$ac_objext' 12959 { (eval echo "$as_me:12959: \"$ac_try\"") >&5 12960 (eval $ac_try) 2>&5 12961 ac_status=$? 12962 echo "$as_me:12962: \$? = $ac_status" >&5 12963 (exit $ac_status); }; }; then 12964 cf_cv_term_header=$cf_header 12965 break 12966else 12967 echo "$as_me: failed program was:" >&5 12968cat conftest.$ac_ext >&5 12969cf_cv_term_header=no 12970fi 12971rm -f conftest.$ac_objext conftest.$ac_ext 12972 done 12973 ;; 12974esac 12975 12976fi 12977echo "$as_me:12977: result: $cf_cv_term_header" >&5 12978echo "${ECHO_T}$cf_cv_term_header" >&6 12979 12980case $cf_cv_term_header in #(vi 12981term.h) #(vi 12982 cat >>confdefs.h <<\EOF 12983#define HAVE_TERM_H 1 12984EOF 12985 12986 ;; 12987ncurses/term.h) #(vi 12988 cat >>confdefs.h <<\EOF 12989#define HAVE_NCURSES_TERM_H 1 12990EOF 12991 12992 ;; 12993ncursesw/term.h) 12994 cat >>confdefs.h <<\EOF 12995#define HAVE_NCURSESW_TERM_H 1 12996EOF 12997 12998 ;; 12999esac 13000 13001echo "$as_me:13001: checking return type of signal handlers" >&5 13002echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 13003if test "${ac_cv_type_signal+set}" = set; then 13004 echo $ECHO_N "(cached) $ECHO_C" >&6 13005else 13006 cat >conftest.$ac_ext <<_ACEOF 13007#line 13007 "configure" 13008#include "confdefs.h" 13009#include <sys/types.h> 13010#include <signal.h> 13011#ifdef signal 13012# undef signal 13013#endif 13014#ifdef __cplusplus 13015extern "C" void (*signal (int, void (*)(int)))(int); 13016#else 13017void (*signal ()) (); 13018#endif 13019 13020int 13021main () 13022{ 13023int i; 13024 ; 13025 return 0; 13026} 13027_ACEOF 13028rm -f conftest.$ac_objext 13029if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5 13030 (eval $ac_compile) 2>&5 13031 ac_status=$? 13032 echo "$as_me:13032: \$? = $ac_status" >&5 13033 (exit $ac_status); } && 13034 { ac_try='test -s conftest.$ac_objext' 13035 { (eval echo "$as_me:13035: \"$ac_try\"") >&5 13036 (eval $ac_try) 2>&5 13037 ac_status=$? 13038 echo "$as_me:13038: \$? = $ac_status" >&5 13039 (exit $ac_status); }; }; then 13040 ac_cv_type_signal=void 13041else 13042 echo "$as_me: failed program was:" >&5 13043cat conftest.$ac_ext >&5 13044ac_cv_type_signal=int 13045fi 13046rm -f conftest.$ac_objext conftest.$ac_ext 13047fi 13048echo "$as_me:13048: result: $ac_cv_type_signal" >&5 13049echo "${ECHO_T}$ac_cv_type_signal" >&6 13050 13051cat >>confdefs.h <<EOF 13052#define RETSIGTYPE $ac_cv_type_signal 13053EOF 13054 13055for ac_func in \ 13056_nc_free_and_exit \ 13057btowc \ 13058mblen \ 13059mbrlen \ 13060mbrtowc \ 13061mbtowc \ 13062strcasecmp \ 13063strftime \ 13064tsearch \ 13065waitpid \ 13066wcsrtombs \ 13067wcstombs \ 13068wctob \ 13069wctomb \ 13070 13071do 13072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13073echo "$as_me:13073: checking for $ac_func" >&5 13074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13075if eval "test \"\${$as_ac_var+set}\" = set"; then 13076 echo $ECHO_N "(cached) $ECHO_C" >&6 13077else 13078 cat >conftest.$ac_ext <<_ACEOF 13079#line 13079 "configure" 13080#include "confdefs.h" 13081/* System header to define __stub macros and hopefully few prototypes, 13082 which can conflict with char $ac_func (); below. */ 13083#include <assert.h> 13084/* Override any gcc2 internal prototype to avoid an error. */ 13085#ifdef __cplusplus 13086extern "C" 13087#endif 13088/* We use char because int might match the return type of a gcc2 13089 builtin and then its argument prototype would still apply. */ 13090char $ac_func (); 13091char (*f) (); 13092 13093int 13094main () 13095{ 13096/* The GNU C library defines this for functions which it implements 13097 to always fail with ENOSYS. Some functions are actually named 13098 something starting with __ and the normal name is an alias. */ 13099#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13100choke me 13101#else 13102f = $ac_func; 13103#endif 13104 13105 ; 13106 return 0; 13107} 13108_ACEOF 13109rm -f conftest.$ac_objext conftest$ac_exeext 13110if { (eval echo "$as_me:13110: \"$ac_link\"") >&5 13111 (eval $ac_link) 2>&5 13112 ac_status=$? 13113 echo "$as_me:13113: \$? = $ac_status" >&5 13114 (exit $ac_status); } && 13115 { ac_try='test -s conftest$ac_exeext' 13116 { (eval echo "$as_me:13116: \"$ac_try\"") >&5 13117 (eval $ac_try) 2>&5 13118 ac_status=$? 13119 echo "$as_me:13119: \$? = $ac_status" >&5 13120 (exit $ac_status); }; }; then 13121 eval "$as_ac_var=yes" 13122else 13123 echo "$as_me: failed program was:" >&5 13124cat conftest.$ac_ext >&5 13125eval "$as_ac_var=no" 13126fi 13127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13128fi 13129echo "$as_me:13129: result: `eval echo '${'$as_ac_var'}'`" >&5 13130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13131if test `eval echo '${'$as_ac_var'}'` = yes; then 13132 cat >>confdefs.h <<EOF 13133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13134EOF 13135 13136fi 13137done 13138 13139echo "$as_me:13139: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 13140echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 13141if test "${cf_cv_need_xopen_extension+set}" = set; then 13142 echo $ECHO_N "(cached) $ECHO_C" >&6 13143else 13144 13145cat >conftest.$ac_ext <<_ACEOF 13146#line 13146 "configure" 13147#include "confdefs.h" 13148 13149#include <stdlib.h> 13150#include <${cf_cv_ncurses_header:-curses.h}> 13151int 13152main () 13153{ 13154 13155#if defined(NCURSES_VERSION_PATCH) 13156#if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403) 13157 make an error 13158#endif 13159#endif 13160 long x = winnstr(stdscr, "", 0); 13161 int x1, y1; 13162 getbegyx(stdscr, y1, x1) 13163 ; 13164 return 0; 13165} 13166_ACEOF 13167rm -f conftest.$ac_objext conftest$ac_exeext 13168if { (eval echo "$as_me:13168: \"$ac_link\"") >&5 13169 (eval $ac_link) 2>&5 13170 ac_status=$? 13171 echo "$as_me:13171: \$? = $ac_status" >&5 13172 (exit $ac_status); } && 13173 { ac_try='test -s conftest$ac_exeext' 13174 { (eval echo "$as_me:13174: \"$ac_try\"") >&5 13175 (eval $ac_try) 2>&5 13176 ac_status=$? 13177 echo "$as_me:13177: \$? = $ac_status" >&5 13178 (exit $ac_status); }; }; then 13179 cf_cv_need_xopen_extension=no 13180else 13181 echo "$as_me: failed program was:" >&5 13182cat conftest.$ac_ext >&5 13183cat >conftest.$ac_ext <<_ACEOF 13184#line 13184 "configure" 13185#include "confdefs.h" 13186 13187#define _XOPEN_SOURCE_EXTENDED 13188#include <stdlib.h> 13189#include <${cf_cv_ncurses_header:-curses.h}> 13190int 13191main () 13192{ 13193 13194#ifdef NCURSES_VERSION 13195 cchar_t check; 13196 int check2 = curs_set((int)sizeof(check)); 13197#endif 13198 long x = winnstr(stdscr, "", 0); 13199 int x1, y1; 13200 getbegyx(stdscr, y1, x1) 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205rm -f conftest.$ac_objext conftest$ac_exeext 13206if { (eval echo "$as_me:13206: \"$ac_link\"") >&5 13207 (eval $ac_link) 2>&5 13208 ac_status=$? 13209 echo "$as_me:13209: \$? = $ac_status" >&5 13210 (exit $ac_status); } && 13211 { ac_try='test -s conftest$ac_exeext' 13212 { (eval echo "$as_me:13212: \"$ac_try\"") >&5 13213 (eval $ac_try) 2>&5 13214 ac_status=$? 13215 echo "$as_me:13215: \$? = $ac_status" >&5 13216 (exit $ac_status); }; }; then 13217 cf_cv_need_xopen_extension=yes 13218else 13219 echo "$as_me: failed program was:" >&5 13220cat conftest.$ac_ext >&5 13221cf_cv_need_xopen_extension=unknown 13222fi 13223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13224fi 13225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13226fi 13227echo "$as_me:13227: result: $cf_cv_need_xopen_extension" >&5 13228echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6 13229test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 13230 13231echo "$as_me:13231: checking for unctrl.h" >&5 13232echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6 13233if test "${cf_cv_unctrl_header+set}" = set; then 13234 echo $ECHO_N "(cached) $ECHO_C" >&6 13235else 13236 13237# If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look 13238# for <unctrl.h> if we do not find the variant. 13239 13240cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h" 13241 13242case ${cf_cv_ncurses_header:-curses.h} in #(vi 13243*/*) 13244 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h 13245 cf_header_list="$cf_header_item $cf_header_list" 13246 ;; 13247esac 13248 13249for cf_header in $cf_header_list 13250do 13251 cat >conftest.$ac_ext <<_ACEOF 13252#line 13252 "configure" 13253#include "confdefs.h" 13254 13255#include <${cf_cv_ncurses_header:-curses.h}> 13256#include <${cf_header}> 13257int 13258main () 13259{ 13260WINDOW *x 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265rm -f conftest.$ac_objext 13266if { (eval echo "$as_me:13266: \"$ac_compile\"") >&5 13267 (eval $ac_compile) 2>&5 13268 ac_status=$? 13269 echo "$as_me:13269: \$? = $ac_status" >&5 13270 (exit $ac_status); } && 13271 { ac_try='test -s conftest.$ac_objext' 13272 { (eval echo "$as_me:13272: \"$ac_try\"") >&5 13273 (eval $ac_try) 2>&5 13274 ac_status=$? 13275 echo "$as_me:13275: \$? = $ac_status" >&5 13276 (exit $ac_status); }; }; then 13277 cf_cv_unctrl_header=$cf_header 13278 break 13279else 13280 echo "$as_me: failed program was:" >&5 13281cat conftest.$ac_ext >&5 13282cf_cv_unctrl_header=no 13283fi 13284rm -f conftest.$ac_objext conftest.$ac_ext 13285done 13286 13287case $cf_cv_unctrl_header in #(vi 13288no) 13289 { echo "$as_me:13289: WARNING: unctrl.h header not found" >&5 13290echo "$as_me: WARNING: unctrl.h header not found" >&2;} 13291 ;; 13292esac 13293 13294fi 13295echo "$as_me:13295: result: $cf_cv_unctrl_header" >&5 13296echo "${ECHO_T}$cf_cv_unctrl_header" >&6 13297 13298case $cf_cv_unctrl_header in #(vi 13299unctrl.h) #(vi 13300 cat >>confdefs.h <<\EOF 13301#define HAVE_UNCTRL_H 1 13302EOF 13303 13304 ;; 13305ncurses/unctrl.h) #(vi 13306 cat >>confdefs.h <<\EOF 13307#define HAVE_NCURSES_UNCTRL_H 1 13308EOF 13309 13310 ;; 13311ncursesw/unctrl.h) 13312 cat >>confdefs.h <<\EOF 13313#define HAVE_NCURSESW_UNCTRL_H 1 13314EOF 13315 13316 ;; 13317esac 13318 13319for cf_func in \ 13320flushinp \ 13321getattrs \ 13322getbegx \ 13323getbegy \ 13324getbegyx \ 13325getcurx \ 13326getcury \ 13327getmaxx \ 13328getmaxy \ 13329getmaxyx \ 13330getparx \ 13331getpary \ 13332getparyx \ 13333use_default_colors \ 13334wchgat \ 13335wget_wch \ 13336 13337do 13338 13339cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13340 13341 echo "$as_me:13341: checking for ${cf_func}" >&5 13342echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 13343 13344echo "${as_me:-configure}:13344: testing ${cf_func} ..." 1>&5 13345 13346 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then 13347 echo $ECHO_N "(cached) $ECHO_C" >&6 13348else 13349 13350 eval cf_result='$ac_cv_func_'$cf_func 13351 if test ".$cf_result" != ".no"; then 13352 cat >conftest.$ac_ext <<_ACEOF 13353#line 13353 "configure" 13354#include "confdefs.h" 13355 13356#ifdef HAVE_XCURSES 13357#include <xcurses.h> 13358char * XCursesProgramName = "test"; 13359#else 13360#include <${cf_cv_ncurses_header:-curses.h}> 13361#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H) 13362#include <ncursesw/term.h> 13363#elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H) 13364#include <ncurses/term.h> 13365#elif defined(HAVE_TERM_H) 13366#include <term.h> 13367#endif 13368#endif 13369 13370int 13371main () 13372{ 13373 13374#ifndef ${cf_func} 13375long foo = (long)(&${cf_func}); 13376if (foo + 1234 > 5678) 13377 ${cf_cv_main_return:-return}(foo); 13378#endif 13379 13380 ; 13381 return 0; 13382} 13383_ACEOF 13384rm -f conftest.$ac_objext conftest$ac_exeext 13385if { (eval echo "$as_me:13385: \"$ac_link\"") >&5 13386 (eval $ac_link) 2>&5 13387 ac_status=$? 13388 echo "$as_me:13388: \$? = $ac_status" >&5 13389 (exit $ac_status); } && 13390 { ac_try='test -s conftest$ac_exeext' 13391 { (eval echo "$as_me:13391: \"$ac_try\"") >&5 13392 (eval $ac_try) 2>&5 13393 ac_status=$? 13394 echo "$as_me:13394: \$? = $ac_status" >&5 13395 (exit $ac_status); }; }; then 13396 cf_result=yes 13397else 13398 echo "$as_me: failed program was:" >&5 13399cat conftest.$ac_ext >&5 13400cf_result=no 13401fi 13402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13403 fi 13404 eval 'cf_cv_func_'$cf_func'=$cf_result' 13405 13406fi 13407 13408 # use the computed/retrieved cache-value: 13409 eval 'cf_result=$cf_cv_func_'$cf_func 13410 echo "$as_me:13410: result: $cf_result" >&5 13411echo "${ECHO_T}$cf_result" >&6 13412 if test $cf_result != no; then 13413 cat >>confdefs.h <<EOF 13414#define HAVE_${cf_tr_func} 1 13415EOF 13416 13417 fi 13418done 13419 13420echo "$as_me:13420: checking for start_color" >&5 13421echo $ECHO_N "checking for start_color... $ECHO_C" >&6 13422if test "${ac_cv_func_start_color+set}" = set; then 13423 echo $ECHO_N "(cached) $ECHO_C" >&6 13424else 13425 cat >conftest.$ac_ext <<_ACEOF 13426#line 13426 "configure" 13427#include "confdefs.h" 13428/* System header to define __stub macros and hopefully few prototypes, 13429 which can conflict with char start_color (); below. */ 13430#include <assert.h> 13431/* Override any gcc2 internal prototype to avoid an error. */ 13432#ifdef __cplusplus 13433extern "C" 13434#endif 13435/* We use char because int might match the return type of a gcc2 13436 builtin and then its argument prototype would still apply. */ 13437char start_color (); 13438char (*f) (); 13439 13440int 13441main () 13442{ 13443/* The GNU C library defines this for functions which it implements 13444 to always fail with ENOSYS. Some functions are actually named 13445 something starting with __ and the normal name is an alias. */ 13446#if defined (__stub_start_color) || defined (__stub___start_color) 13447choke me 13448#else 13449f = start_color; 13450#endif 13451 13452 ; 13453 return 0; 13454} 13455_ACEOF 13456rm -f conftest.$ac_objext conftest$ac_exeext 13457if { (eval echo "$as_me:13457: \"$ac_link\"") >&5 13458 (eval $ac_link) 2>&5 13459 ac_status=$? 13460 echo "$as_me:13460: \$? = $ac_status" >&5 13461 (exit $ac_status); } && 13462 { ac_try='test -s conftest$ac_exeext' 13463 { (eval echo "$as_me:13463: \"$ac_try\"") >&5 13464 (eval $ac_try) 2>&5 13465 ac_status=$? 13466 echo "$as_me:13466: \$? = $ac_status" >&5 13467 (exit $ac_status); }; }; then 13468 ac_cv_func_start_color=yes 13469else 13470 echo "$as_me: failed program was:" >&5 13471cat conftest.$ac_ext >&5 13472ac_cv_func_start_color=no 13473fi 13474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13475fi 13476echo "$as_me:13476: result: $ac_cv_func_start_color" >&5 13477echo "${ECHO_T}$ac_cv_func_start_color" >&6 13478if test $ac_cv_func_start_color = yes; then 13479 cat >>confdefs.h <<\EOF 13480#define HAVE_COLOR 1 13481EOF 13482 13483fi 13484 13485echo "$as_me:13485: checking for chtype typedef" >&5 13486echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6 13487if test "${cf_cv_chtype_decl+set}" = set; then 13488 echo $ECHO_N "(cached) $ECHO_C" >&6 13489else 13490 13491 cat >conftest.$ac_ext <<_ACEOF 13492#line 13492 "configure" 13493#include "confdefs.h" 13494#include <${cf_cv_ncurses_header:-curses.h}> 13495int 13496main () 13497{ 13498chtype foo 13499 ; 13500 return 0; 13501} 13502_ACEOF 13503rm -f conftest.$ac_objext 13504if { (eval echo "$as_me:13504: \"$ac_compile\"") >&5 13505 (eval $ac_compile) 2>&5 13506 ac_status=$? 13507 echo "$as_me:13507: \$? = $ac_status" >&5 13508 (exit $ac_status); } && 13509 { ac_try='test -s conftest.$ac_objext' 13510 { (eval echo "$as_me:13510: \"$ac_try\"") >&5 13511 (eval $ac_try) 2>&5 13512 ac_status=$? 13513 echo "$as_me:13513: \$? = $ac_status" >&5 13514 (exit $ac_status); }; }; then 13515 cf_cv_chtype_decl=yes 13516else 13517 echo "$as_me: failed program was:" >&5 13518cat conftest.$ac_ext >&5 13519cf_cv_chtype_decl=no 13520fi 13521rm -f conftest.$ac_objext conftest.$ac_ext 13522fi 13523echo "$as_me:13523: result: $cf_cv_chtype_decl" >&5 13524echo "${ECHO_T}$cf_cv_chtype_decl" >&6 13525if test $cf_cv_chtype_decl = yes ; then 13526 cat >>confdefs.h <<\EOF 13527#define HAVE_TYPE_CHTYPE 1 13528EOF 13529 13530 echo "$as_me:13530: checking if chtype is scalar or struct" >&5 13531echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6 13532if test "${cf_cv_chtype_type+set}" = set; then 13533 echo $ECHO_N "(cached) $ECHO_C" >&6 13534else 13535 13536 cat >conftest.$ac_ext <<_ACEOF 13537#line 13537 "configure" 13538#include "confdefs.h" 13539#include <${cf_cv_ncurses_header:-curses.h}> 13540int 13541main () 13542{ 13543chtype foo; long x = foo 13544 ; 13545 return 0; 13546} 13547_ACEOF 13548rm -f conftest.$ac_objext 13549if { (eval echo "$as_me:13549: \"$ac_compile\"") >&5 13550 (eval $ac_compile) 2>&5 13551 ac_status=$? 13552 echo "$as_me:13552: \$? = $ac_status" >&5 13553 (exit $ac_status); } && 13554 { ac_try='test -s conftest.$ac_objext' 13555 { (eval echo "$as_me:13555: \"$ac_try\"") >&5 13556 (eval $ac_try) 2>&5 13557 ac_status=$? 13558 echo "$as_me:13558: \$? = $ac_status" >&5 13559 (exit $ac_status); }; }; then 13560 cf_cv_chtype_type=scalar 13561else 13562 echo "$as_me: failed program was:" >&5 13563cat conftest.$ac_ext >&5 13564cf_cv_chtype_type=struct 13565fi 13566rm -f conftest.$ac_objext conftest.$ac_ext 13567fi 13568echo "$as_me:13568: result: $cf_cv_chtype_type" >&5 13569echo "${ECHO_T}$cf_cv_chtype_type" >&6 13570 if test $cf_cv_chtype_type = scalar ; then 13571 cat >>confdefs.h <<\EOF 13572#define TYPE_CHTYPE_IS_SCALAR 1 13573EOF 13574 13575 fi 13576fi 13577 13578echo "$as_me:13578: checking for wide alternate character set array" >&5 13579echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6 13580if test "${cf_cv_curses_wacs_map+set}" = set; then 13581 echo $ECHO_N "(cached) $ECHO_C" >&6 13582else 13583 13584 cf_cv_curses_wacs_map=unknown 13585 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char 13586 do 13587 cat >conftest.$ac_ext <<_ACEOF 13588#line 13588 "configure" 13589#include "confdefs.h" 13590 13591#ifndef _XOPEN_SOURCE_EXTENDED 13592#define _XOPEN_SOURCE_EXTENDED 13593#endif 13594#include <${cf_cv_ncurses_header:-curses.h}> 13595int 13596main () 13597{ 13598void *foo = &($name['k']) 13599 ; 13600 return 0; 13601} 13602_ACEOF 13603rm -f conftest.$ac_objext conftest$ac_exeext 13604if { (eval echo "$as_me:13604: \"$ac_link\"") >&5 13605 (eval $ac_link) 2>&5 13606 ac_status=$? 13607 echo "$as_me:13607: \$? = $ac_status" >&5 13608 (exit $ac_status); } && 13609 { ac_try='test -s conftest$ac_exeext' 13610 { (eval echo "$as_me:13610: \"$ac_try\"") >&5 13611 (eval $ac_try) 2>&5 13612 ac_status=$? 13613 echo "$as_me:13613: \$? = $ac_status" >&5 13614 (exit $ac_status); }; }; then 13615 cf_cv_curses_wacs_map=$name 13616 break 13617else 13618 echo "$as_me: failed program was:" >&5 13619cat conftest.$ac_ext >&5 13620fi 13621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13622 done 13623fi 13624echo "$as_me:13624: result: $cf_cv_curses_wacs_map" >&5 13625echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6 13626 13627test "$cf_cv_curses_wacs_map" != unknown && cat >>confdefs.h <<EOF 13628#define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map 13629EOF 13630 13631echo "$as_me:13631: checking for wide alternate character constants" >&5 13632echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6 13633if test "${cf_cv_curses_wacs_symbols+set}" = set; then 13634 echo $ECHO_N "(cached) $ECHO_C" >&6 13635else 13636 13637cf_cv_curses_wacs_symbols=no 13638if test "$cf_cv_curses_wacs_map" != unknown 13639then 13640 cat >conftest.$ac_ext <<_ACEOF 13641#line 13641 "configure" 13642#include "confdefs.h" 13643 13644#ifndef _XOPEN_SOURCE_EXTENDED 13645#define _XOPEN_SOURCE_EXTENDED 13646#endif 13647#include <${cf_cv_ncurses_header:-curses.h}> 13648int 13649main () 13650{ 13651cchar_t *foo = WACS_PLUS; 13652 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS 13653 ; 13654 return 0; 13655} 13656_ACEOF 13657rm -f conftest.$ac_objext conftest$ac_exeext 13658if { (eval echo "$as_me:13658: \"$ac_link\"") >&5 13659 (eval $ac_link) 2>&5 13660 ac_status=$? 13661 echo "$as_me:13661: \$? = $ac_status" >&5 13662 (exit $ac_status); } && 13663 { ac_try='test -s conftest$ac_exeext' 13664 { (eval echo "$as_me:13664: \"$ac_try\"") >&5 13665 (eval $ac_try) 2>&5 13666 ac_status=$? 13667 echo "$as_me:13667: \$? = $ac_status" >&5 13668 (exit $ac_status); }; }; then 13669 cf_cv_curses_wacs_symbols=yes 13670else 13671 echo "$as_me: failed program was:" >&5 13672cat conftest.$ac_ext >&5 13673fi 13674rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13675else 13676 cat >conftest.$ac_ext <<_ACEOF 13677#line 13677 "configure" 13678#include "confdefs.h" 13679 13680#ifndef _XOPEN_SOURCE_EXTENDED 13681#define _XOPEN_SOURCE_EXTENDED 13682#endif 13683#include <${cf_cv_ncurses_header:-curses.h}> 13684int 13685main () 13686{ 13687cchar_t *foo = WACS_PLUS 13688 ; 13689 return 0; 13690} 13691_ACEOF 13692rm -f conftest.$ac_objext conftest$ac_exeext 13693if { (eval echo "$as_me:13693: \"$ac_link\"") >&5 13694 (eval $ac_link) 2>&5 13695 ac_status=$? 13696 echo "$as_me:13696: \$? = $ac_status" >&5 13697 (exit $ac_status); } && 13698 { ac_try='test -s conftest$ac_exeext' 13699 { (eval echo "$as_me:13699: \"$ac_try\"") >&5 13700 (eval $ac_try) 2>&5 13701 ac_status=$? 13702 echo "$as_me:13702: \$? = $ac_status" >&5 13703 (exit $ac_status); }; }; then 13704 cf_cv_curses_wacs_symbols=yes 13705else 13706 echo "$as_me: failed program was:" >&5 13707cat conftest.$ac_ext >&5 13708fi 13709rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13710fi 13711 13712fi 13713echo "$as_me:13713: result: $cf_cv_curses_wacs_symbols" >&5 13714echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6 13715 13716test "$cf_cv_curses_wacs_symbols" != no && cat >>confdefs.h <<\EOF 13717#define CURSES_WACS_SYMBOLS 1 13718EOF 13719 13720for cf_func in wgetparent 13721do 13722 13723cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13724 13725 echo "$as_me:13725: checking for ${cf_func}" >&5 13726echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 13727 13728echo "${as_me:-configure}:13728: testing ${cf_func} ..." 1>&5 13729 13730 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then 13731 echo $ECHO_N "(cached) $ECHO_C" >&6 13732else 13733 13734 eval cf_result='$ac_cv_func_'$cf_func 13735 if test ".$cf_result" != ".no"; then 13736 cat >conftest.$ac_ext <<_ACEOF 13737#line 13737 "configure" 13738#include "confdefs.h" 13739 13740#ifdef HAVE_XCURSES 13741#include <xcurses.h> 13742char * XCursesProgramName = "test"; 13743#else 13744#include <${cf_cv_ncurses_header:-curses.h}> 13745#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H) 13746#include <ncursesw/term.h> 13747#elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H) 13748#include <ncurses/term.h> 13749#elif defined(HAVE_TERM_H) 13750#include <term.h> 13751#endif 13752#endif 13753 13754int 13755main () 13756{ 13757 13758#ifndef ${cf_func} 13759long foo = (long)(&${cf_func}); 13760if (foo + 1234 > 5678) 13761 ${cf_cv_main_return:-return}(foo); 13762#endif 13763 13764 ; 13765 return 0; 13766} 13767_ACEOF 13768rm -f conftest.$ac_objext conftest$ac_exeext 13769if { (eval echo "$as_me:13769: \"$ac_link\"") >&5 13770 (eval $ac_link) 2>&5 13771 ac_status=$? 13772 echo "$as_me:13772: \$? = $ac_status" >&5 13773 (exit $ac_status); } && 13774 { ac_try='test -s conftest$ac_exeext' 13775 { (eval echo "$as_me:13775: \"$ac_try\"") >&5 13776 (eval $ac_try) 2>&5 13777 ac_status=$? 13778 echo "$as_me:13778: \$? = $ac_status" >&5 13779 (exit $ac_status); }; }; then 13780 cf_result=yes 13781else 13782 echo "$as_me: failed program was:" >&5 13783cat conftest.$ac_ext >&5 13784cf_result=no 13785fi 13786rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13787 fi 13788 eval 'cf_cv_func_'$cf_func'=$cf_result' 13789 13790fi 13791 13792 # use the computed/retrieved cache-value: 13793 eval 'cf_result=$cf_cv_func_'$cf_func 13794 echo "$as_me:13794: result: $cf_result" >&5 13795echo "${ECHO_T}$cf_result" >&6 13796 if test $cf_result != no; then 13797 cat >>confdefs.h <<EOF 13798#define HAVE_${cf_tr_func} 1 13799EOF 13800 13801 fi 13802done 13803 13804if test "x$cf_cv_func_wgetparent" != xyes 13805then 13806 echo "$as_me:13806: checking if WINDOW has _parent member" >&5 13807echo $ECHO_N "checking if WINDOW has _parent member... $ECHO_C" >&6 13808 cat >conftest.$ac_ext <<_ACEOF 13809#line 13809 "configure" 13810#include "confdefs.h" 13811#include <${cf_cv_ncurses_header:-curses.h}> 13812int 13813main () 13814{ 13815WINDOW *p = stdscr->_parent 13816 ; 13817 return 0; 13818} 13819_ACEOF 13820rm -f conftest.$ac_objext 13821if { (eval echo "$as_me:13821: \"$ac_compile\"") >&5 13822 (eval $ac_compile) 2>&5 13823 ac_status=$? 13824 echo "$as_me:13824: \$? = $ac_status" >&5 13825 (exit $ac_status); } && 13826 { ac_try='test -s conftest.$ac_objext' 13827 { (eval echo "$as_me:13827: \"$ac_try\"") >&5 13828 (eval $ac_try) 2>&5 13829 ac_status=$? 13830 echo "$as_me:13830: \$? = $ac_status" >&5 13831 (exit $ac_status); }; }; then 13832 cf_window__parent=yes 13833else 13834 echo "$as_me: failed program was:" >&5 13835cat conftest.$ac_ext >&5 13836cf_window__parent=no 13837fi 13838rm -f conftest.$ac_objext conftest.$ac_ext 13839 echo "$as_me:13839: result: $cf_window__parent" >&5 13840echo "${ECHO_T}$cf_window__parent" >&6 13841 if test "$cf_window__parent" = yes 13842 then 13843 cat >>confdefs.h <<\EOF 13844#define HAVE_WINDOW__PARENT 1 13845EOF 13846 13847 fi 13848fi 13849 13850for ac_header in sys/wait.h 13851do 13852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13853echo "$as_me:13853: checking for $ac_header" >&5 13854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13855if eval "test \"\${$as_ac_Header+set}\" = set"; then 13856 echo $ECHO_N "(cached) $ECHO_C" >&6 13857else 13858 cat >conftest.$ac_ext <<_ACEOF 13859#line 13859 "configure" 13860#include "confdefs.h" 13861#include <$ac_header> 13862_ACEOF 13863if { (eval echo "$as_me:13863: \"$ac_cpp conftest.$ac_ext\"") >&5 13864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13865 ac_status=$? 13866 egrep -v '^ *\+' conftest.er1 >conftest.err 13867 rm -f conftest.er1 13868 cat conftest.err >&5 13869 echo "$as_me:13869: \$? = $ac_status" >&5 13870 (exit $ac_status); } >/dev/null; then 13871 if test -s conftest.err; then 13872 ac_cpp_err=$ac_c_preproc_warn_flag 13873 else 13874 ac_cpp_err= 13875 fi 13876else 13877 ac_cpp_err=yes 13878fi 13879if test -z "$ac_cpp_err"; then 13880 eval "$as_ac_Header=yes" 13881else 13882 echo "$as_me: failed program was:" >&5 13883 cat conftest.$ac_ext >&5 13884 eval "$as_ac_Header=no" 13885fi 13886rm -f conftest.err conftest.$ac_ext 13887fi 13888echo "$as_me:13888: result: `eval echo '${'$as_ac_Header'}'`" >&5 13889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13890if test `eval echo '${'$as_ac_Header'}'` = yes; then 13891 cat >>confdefs.h <<EOF 13892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13893EOF 13894 13895fi 13896done 13897 13898cf_wait_headers="#include <sys/types.h> 13899" 13900if test $ac_cv_header_sys_wait_h = yes; then 13901cf_wait_headers="$cf_wait_headers 13902#include <sys/wait.h> 13903" 13904else 13905 13906for ac_header in wait.h 13907do 13908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13909echo "$as_me:13909: checking for $ac_header" >&5 13910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13911if eval "test \"\${$as_ac_Header+set}\" = set"; then 13912 echo $ECHO_N "(cached) $ECHO_C" >&6 13913else 13914 cat >conftest.$ac_ext <<_ACEOF 13915#line 13915 "configure" 13916#include "confdefs.h" 13917#include <$ac_header> 13918_ACEOF 13919if { (eval echo "$as_me:13919: \"$ac_cpp conftest.$ac_ext\"") >&5 13920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13921 ac_status=$? 13922 egrep -v '^ *\+' conftest.er1 >conftest.err 13923 rm -f conftest.er1 13924 cat conftest.err >&5 13925 echo "$as_me:13925: \$? = $ac_status" >&5 13926 (exit $ac_status); } >/dev/null; then 13927 if test -s conftest.err; then 13928 ac_cpp_err=$ac_c_preproc_warn_flag 13929 else 13930 ac_cpp_err= 13931 fi 13932else 13933 ac_cpp_err=yes 13934fi 13935if test -z "$ac_cpp_err"; then 13936 eval "$as_ac_Header=yes" 13937else 13938 echo "$as_me: failed program was:" >&5 13939 cat conftest.$ac_ext >&5 13940 eval "$as_ac_Header=no" 13941fi 13942rm -f conftest.err conftest.$ac_ext 13943fi 13944echo "$as_me:13944: result: `eval echo '${'$as_ac_Header'}'`" >&5 13945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13946if test `eval echo '${'$as_ac_Header'}'` = yes; then 13947 cat >>confdefs.h <<EOF 13948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13949EOF 13950 13951fi 13952done 13953 13954for ac_header in waitstatus.h 13955do 13956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13957echo "$as_me:13957: checking for $ac_header" >&5 13958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13959if eval "test \"\${$as_ac_Header+set}\" = set"; then 13960 echo $ECHO_N "(cached) $ECHO_C" >&6 13961else 13962 cat >conftest.$ac_ext <<_ACEOF 13963#line 13963 "configure" 13964#include "confdefs.h" 13965#include <$ac_header> 13966_ACEOF 13967if { (eval echo "$as_me:13967: \"$ac_cpp conftest.$ac_ext\"") >&5 13968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13969 ac_status=$? 13970 egrep -v '^ *\+' conftest.er1 >conftest.err 13971 rm -f conftest.er1 13972 cat conftest.err >&5 13973 echo "$as_me:13973: \$? = $ac_status" >&5 13974 (exit $ac_status); } >/dev/null; then 13975 if test -s conftest.err; then 13976 ac_cpp_err=$ac_c_preproc_warn_flag 13977 else 13978 ac_cpp_err= 13979 fi 13980else 13981 ac_cpp_err=yes 13982fi 13983if test -z "$ac_cpp_err"; then 13984 eval "$as_ac_Header=yes" 13985else 13986 echo "$as_me: failed program was:" >&5 13987 cat conftest.$ac_ext >&5 13988 eval "$as_ac_Header=no" 13989fi 13990rm -f conftest.err conftest.$ac_ext 13991fi 13992echo "$as_me:13992: result: `eval echo '${'$as_ac_Header'}'`" >&5 13993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13994if test `eval echo '${'$as_ac_Header'}'` = yes; then 13995 cat >>confdefs.h <<EOF 13996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13997EOF 13998 13999fi 14000done 14001 14002if test $ac_cv_header_wait_h = yes; then 14003cf_wait_headers="$cf_wait_headers 14004#include <wait.h> 14005" 14006fi 14007if test $ac_cv_header_waitstatus_h = yes; then 14008cf_wait_headers="$cf_wait_headers 14009#include <waitstatus.h> 14010" 14011fi 14012fi 14013 14014echo "$as_me:14014: checking for union wait" >&5 14015echo $ECHO_N "checking for union wait... $ECHO_C" >&6 14016if test "${cf_cv_type_unionwait+set}" = set; then 14017 echo $ECHO_N "(cached) $ECHO_C" >&6 14018else 14019 14020 cat >conftest.$ac_ext <<_ACEOF 14021#line 14021 "configure" 14022#include "confdefs.h" 14023$cf_wait_headers 14024int 14025main () 14026{ 14027int x; 14028 int y = WEXITSTATUS(x); 14029 int z = WTERMSIG(x); 14030 wait(&x); 14031 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036rm -f conftest.$ac_objext conftest$ac_exeext 14037if { (eval echo "$as_me:14037: \"$ac_link\"") >&5 14038 (eval $ac_link) 2>&5 14039 ac_status=$? 14040 echo "$as_me:14040: \$? = $ac_status" >&5 14041 (exit $ac_status); } && 14042 { ac_try='test -s conftest$ac_exeext' 14043 { (eval echo "$as_me:14043: \"$ac_try\"") >&5 14044 (eval $ac_try) 2>&5 14045 ac_status=$? 14046 echo "$as_me:14046: \$? = $ac_status" >&5 14047 (exit $ac_status); }; }; then 14048 cf_cv_type_unionwait=no 14049 echo compiles ok w/o union wait 1>&5 14050 14051else 14052 echo "$as_me: failed program was:" >&5 14053cat conftest.$ac_ext >&5 14054 14055 cat >conftest.$ac_ext <<_ACEOF 14056#line 14056 "configure" 14057#include "confdefs.h" 14058$cf_wait_headers 14059int 14060main () 14061{ 14062union wait x; 14063#ifdef WEXITSTATUS 14064 int y = WEXITSTATUS(x); 14065#endif 14066#ifdef WTERMSIG 14067 int z = WTERMSIG(x); 14068#endif 14069 wait(&x); 14070 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075rm -f conftest.$ac_objext conftest$ac_exeext 14076if { (eval echo "$as_me:14076: \"$ac_link\"") >&5 14077 (eval $ac_link) 2>&5 14078 ac_status=$? 14079 echo "$as_me:14079: \$? = $ac_status" >&5 14080 (exit $ac_status); } && 14081 { ac_try='test -s conftest$ac_exeext' 14082 { (eval echo "$as_me:14082: \"$ac_try\"") >&5 14083 (eval $ac_try) 2>&5 14084 ac_status=$? 14085 echo "$as_me:14085: \$? = $ac_status" >&5 14086 (exit $ac_status); }; }; then 14087 cf_cv_type_unionwait=yes 14088 echo compiles ok with union wait and possibly macros too 1>&5 14089 14090else 14091 echo "$as_me: failed program was:" >&5 14092cat conftest.$ac_ext >&5 14093cf_cv_type_unionwait=no 14094fi 14095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14096fi 14097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14098fi 14099 14100echo "$as_me:14100: result: $cf_cv_type_unionwait" >&5 14101echo "${ECHO_T}$cf_cv_type_unionwait" >&6 14102test $cf_cv_type_unionwait = yes && cat >>confdefs.h <<\EOF 14103#define HAVE_TYPE_UNIONWAIT 1 14104EOF 14105 14106if test $cf_cv_type_unionwait = yes; then 14107 14108 echo "$as_me:14108: checking if union wait can be used as wait-arg" >&5 14109echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6 14110 if test "${cf_cv_arg_union_wait+set}" = set; then 14111 echo $ECHO_N "(cached) $ECHO_C" >&6 14112else 14113 14114 cat >conftest.$ac_ext <<_ACEOF 14115#line 14115 "configure" 14116#include "confdefs.h" 14117$cf_wait_headers 14118int 14119main () 14120{ 14121union wait x; wait(&x) 14122 ; 14123 return 0; 14124} 14125_ACEOF 14126rm -f conftest.$ac_objext 14127if { (eval echo "$as_me:14127: \"$ac_compile\"") >&5 14128 (eval $ac_compile) 2>&5 14129 ac_status=$? 14130 echo "$as_me:14130: \$? = $ac_status" >&5 14131 (exit $ac_status); } && 14132 { ac_try='test -s conftest.$ac_objext' 14133 { (eval echo "$as_me:14133: \"$ac_try\"") >&5 14134 (eval $ac_try) 2>&5 14135 ac_status=$? 14136 echo "$as_me:14136: \$? = $ac_status" >&5 14137 (exit $ac_status); }; }; then 14138 cf_cv_arg_union_wait=yes 14139else 14140 echo "$as_me: failed program was:" >&5 14141cat conftest.$ac_ext >&5 14142cf_cv_arg_union_wait=no 14143fi 14144rm -f conftest.$ac_objext conftest.$ac_ext 14145 14146fi 14147 14148 echo "$as_me:14148: result: $cf_cv_arg_union_wait" >&5 14149echo "${ECHO_T}$cf_cv_arg_union_wait" >&6 14150 test $cf_cv_arg_union_wait = yes && cat >>confdefs.h <<\EOF 14151#define WAIT_USES_UNION 1 14152EOF 14153 14154 echo "$as_me:14154: checking if union wait can be used as waitpid-arg" >&5 14155echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6 14156 if test "${cf_cv_arg_union_waitpid+set}" = set; then 14157 echo $ECHO_N "(cached) $ECHO_C" >&6 14158else 14159 14160 cat >conftest.$ac_ext <<_ACEOF 14161#line 14161 "configure" 14162#include "confdefs.h" 14163$cf_wait_headers 14164int 14165main () 14166{ 14167union wait x; waitpid(0, &x, 0) 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172rm -f conftest.$ac_objext 14173if { (eval echo "$as_me:14173: \"$ac_compile\"") >&5 14174 (eval $ac_compile) 2>&5 14175 ac_status=$? 14176 echo "$as_me:14176: \$? = $ac_status" >&5 14177 (exit $ac_status); } && 14178 { ac_try='test -s conftest.$ac_objext' 14179 { (eval echo "$as_me:14179: \"$ac_try\"") >&5 14180 (eval $ac_try) 2>&5 14181 ac_status=$? 14182 echo "$as_me:14182: \$? = $ac_status" >&5 14183 (exit $ac_status); }; }; then 14184 cf_cv_arg_union_waitpid=yes 14185else 14186 echo "$as_me: failed program was:" >&5 14187cat conftest.$ac_ext >&5 14188cf_cv_arg_union_waitpid=no 14189fi 14190rm -f conftest.$ac_objext conftest.$ac_ext 14191 14192fi 14193 14194 echo "$as_me:14194: result: $cf_cv_arg_union_waitpid" >&5 14195echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6 14196 test $cf_cv_arg_union_waitpid = yes && cat >>confdefs.h <<\EOF 14197#define WAITPID_USES_UNION 1 14198EOF 14199 14200fi 14201 14202echo "$as_me:14202: checking if we must include wchar.h to declare mbstate_t" >&5 14203echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 14204if test "${cf_cv_mbstate_t+set}" = set; then 14205 echo $ECHO_N "(cached) $ECHO_C" >&6 14206else 14207 14208cat >conftest.$ac_ext <<_ACEOF 14209#line 14209 "configure" 14210#include "confdefs.h" 14211 14212#include <stdlib.h> 14213#include <stdio.h> 14214#ifdef HAVE_LIBUTF8_H 14215#include <libutf8.h> 14216#endif 14217int 14218main () 14219{ 14220mbstate_t state 14221 ; 14222 return 0; 14223} 14224_ACEOF 14225rm -f conftest.$ac_objext 14226if { (eval echo "$as_me:14226: \"$ac_compile\"") >&5 14227 (eval $ac_compile) 2>&5 14228 ac_status=$? 14229 echo "$as_me:14229: \$? = $ac_status" >&5 14230 (exit $ac_status); } && 14231 { ac_try='test -s conftest.$ac_objext' 14232 { (eval echo "$as_me:14232: \"$ac_try\"") >&5 14233 (eval $ac_try) 2>&5 14234 ac_status=$? 14235 echo "$as_me:14235: \$? = $ac_status" >&5 14236 (exit $ac_status); }; }; then 14237 cf_cv_mbstate_t=no 14238else 14239 echo "$as_me: failed program was:" >&5 14240cat conftest.$ac_ext >&5 14241cat >conftest.$ac_ext <<_ACEOF 14242#line 14242 "configure" 14243#include "confdefs.h" 14244 14245#include <stdlib.h> 14246#include <stdio.h> 14247#include <wchar.h> 14248#ifdef HAVE_LIBUTF8_H 14249#include <libutf8.h> 14250#endif 14251int 14252main () 14253{ 14254mbstate_t value 14255 ; 14256 return 0; 14257} 14258_ACEOF 14259rm -f conftest.$ac_objext 14260if { (eval echo "$as_me:14260: \"$ac_compile\"") >&5 14261 (eval $ac_compile) 2>&5 14262 ac_status=$? 14263 echo "$as_me:14263: \$? = $ac_status" >&5 14264 (exit $ac_status); } && 14265 { ac_try='test -s conftest.$ac_objext' 14266 { (eval echo "$as_me:14266: \"$ac_try\"") >&5 14267 (eval $ac_try) 2>&5 14268 ac_status=$? 14269 echo "$as_me:14269: \$? = $ac_status" >&5 14270 (exit $ac_status); }; }; then 14271 cf_cv_mbstate_t=yes 14272else 14273 echo "$as_me: failed program was:" >&5 14274cat conftest.$ac_ext >&5 14275cf_cv_mbstate_t=unknown 14276fi 14277rm -f conftest.$ac_objext conftest.$ac_ext 14278fi 14279rm -f conftest.$ac_objext conftest.$ac_ext 14280fi 14281echo "$as_me:14281: result: $cf_cv_mbstate_t" >&5 14282echo "${ECHO_T}$cf_cv_mbstate_t" >&6 14283 14284if test "$cf_cv_mbstate_t" = yes ; then 14285 cat >>confdefs.h <<\EOF 14286#define NEED_WCHAR_H 1 14287EOF 14288 14289fi 14290 14291if test "$cf_cv_mbstate_t" != unknown ; then 14292 cat >>confdefs.h <<\EOF 14293#define HAVE_MBSTATE_T 1 14294EOF 14295 14296fi 14297 14298PACKAGE_PREFIX=DLG 14299PACKAGE_CONFIG=dlg_config.h 14300 14301EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in" 14302 14303cat >conftest.$ac_ext <<_ACEOF 14304#line 14304 "configure" 14305#include "confdefs.h" 14306#include <locale.h> 14307int 14308main () 14309{ 14310setlocale(LC_ALL, "") 14311 ; 14312 return 0; 14313} 14314_ACEOF 14315rm -f conftest.$ac_objext conftest$ac_exeext 14316if { (eval echo "$as_me:14316: \"$ac_link\"") >&5 14317 (eval $ac_link) 2>&5 14318 ac_status=$? 14319 echo "$as_me:14319: \$? = $ac_status" >&5 14320 (exit $ac_status); } && 14321 { ac_try='test -s conftest$ac_exeext' 14322 { (eval echo "$as_me:14322: \"$ac_try\"") >&5 14323 (eval $ac_try) 2>&5 14324 ac_status=$? 14325 echo "$as_me:14325: \$? = $ac_status" >&5 14326 (exit $ac_status); }; }; then 14327 cat >>confdefs.h <<\EOF 14328#define HAVE_SETLOCALE 1 14329EOF 14330 14331else 14332 echo "$as_me: failed program was:" >&5 14333cat conftest.$ac_ext >&5 14334fi 14335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14336 14337LD_RPATH_OPT= 14338echo "$as_me:14338: checking for an rpath option" >&5 14339echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 14340case $cf_cv_system_name in #(vi 14341irix*) #(vi 14342 if test "$GCC" = yes; then 14343 LD_RPATH_OPT="-Wl,-rpath," 14344 else 14345 LD_RPATH_OPT="-rpath " 14346 fi 14347 ;; 14348linux*|gnu*|k*bsd*-gnu) #(vi 14349 LD_RPATH_OPT="-Wl,-rpath," 14350 ;; 14351openbsd[2-9].*|mirbsd*) #(vi 14352 LD_RPATH_OPT="-Wl,-rpath," 14353 ;; 14354dragonfly*|freebsd*) #(vi 14355 LD_RPATH_OPT="-rpath " 14356 ;; 14357netbsd*) #(vi 14358 LD_RPATH_OPT="-Wl,-rpath," 14359 ;; 14360osf*|mls+*) #(vi 14361 LD_RPATH_OPT="-rpath " 14362 ;; 14363solaris2*) #(vi 14364 LD_RPATH_OPT="-R" 14365 ;; 14366*) 14367 ;; 14368esac 14369echo "$as_me:14369: result: $LD_RPATH_OPT" >&5 14370echo "${ECHO_T}$LD_RPATH_OPT" >&6 14371 14372case "x$LD_RPATH_OPT" in #(vi 14373x-R*) 14374 echo "$as_me:14374: checking if we need a space after rpath option" >&5 14375echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 14376 cf_save_LIBS="$LIBS" 14377 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 14378 cat >conftest.$ac_ext <<_ACEOF 14379#line 14379 "configure" 14380#include "confdefs.h" 14381 14382int 14383main () 14384{ 14385 14386 ; 14387 return 0; 14388} 14389_ACEOF 14390rm -f conftest.$ac_objext conftest$ac_exeext 14391if { (eval echo "$as_me:14391: \"$ac_link\"") >&5 14392 (eval $ac_link) 2>&5 14393 ac_status=$? 14394 echo "$as_me:14394: \$? = $ac_status" >&5 14395 (exit $ac_status); } && 14396 { ac_try='test -s conftest$ac_exeext' 14397 { (eval echo "$as_me:14397: \"$ac_try\"") >&5 14398 (eval $ac_try) 2>&5 14399 ac_status=$? 14400 echo "$as_me:14400: \$? = $ac_status" >&5 14401 (exit $ac_status); }; }; then 14402 cf_rpath_space=no 14403else 14404 echo "$as_me: failed program was:" >&5 14405cat conftest.$ac_ext >&5 14406cf_rpath_space=yes 14407fi 14408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14409 LIBS="$cf_save_LIBS" 14410 echo "$as_me:14410: result: $cf_rpath_space" >&5 14411echo "${ECHO_T}$cf_rpath_space" >&6 14412 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 14413 ;; 14414esac 14415 14416echo "$as_me:14416: checking if rpath-hack should be disabled" >&5 14417echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 14418 14419# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 14420if test "${enable_rpath_hack+set}" = set; then 14421 enableval="$enable_rpath_hack" 14422 test "$enableval" != no && enableval=yes 14423 if test "$enableval" != "yes" ; then 14424 cf_disable_rpath_hack=yes 14425 else 14426 cf_disable_rpath_hack=no 14427 fi 14428else 14429 enableval=yes 14430 cf_disable_rpath_hack=no 14431 14432fi; 14433echo "$as_me:14433: result: $cf_disable_rpath_hack" >&5 14434echo "${ECHO_T}$cf_disable_rpath_hack" >&6 14435if test "$cf_disable_rpath_hack" = no ; then 14436 14437echo "$as_me:14437: checking for updated LDFLAGS" >&5 14438echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 14439if test -n "$LD_RPATH_OPT" ; then 14440 echo "$as_me:14440: result: maybe" >&5 14441echo "${ECHO_T}maybe" >&6 14442 14443 for ac_prog in ldd 14444do 14445 # Extract the first word of "$ac_prog", so it can be a program name with args. 14446set dummy $ac_prog; ac_word=$2 14447echo "$as_me:14447: checking for $ac_word" >&5 14448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14449if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 14450 echo $ECHO_N "(cached) $ECHO_C" >&6 14451else 14452 if test -n "$cf_ldd_prog"; then 14453 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 14454else 14455 ac_save_IFS=$IFS; IFS=$ac_path_separator 14456ac_dummy="$PATH" 14457for ac_dir in $ac_dummy; do 14458 IFS=$ac_save_IFS 14459 test -z "$ac_dir" && ac_dir=. 14460 $as_executable_p "$ac_dir/$ac_word" || continue 14461ac_cv_prog_cf_ldd_prog="$ac_prog" 14462echo "$as_me:14462: found $ac_dir/$ac_word" >&5 14463break 14464done 14465 14466fi 14467fi 14468cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 14469if test -n "$cf_ldd_prog"; then 14470 echo "$as_me:14470: result: $cf_ldd_prog" >&5 14471echo "${ECHO_T}$cf_ldd_prog" >&6 14472else 14473 echo "$as_me:14473: result: no" >&5 14474echo "${ECHO_T}no" >&6 14475fi 14476 14477 test -n "$cf_ldd_prog" && break 14478done 14479test -n "$cf_ldd_prog" || cf_ldd_prog="no" 14480 14481 cf_rpath_list="/usr/lib /lib" 14482 if test "$cf_ldd_prog" != no 14483 then 14484 cf_rpath_oops= 14485 14486cat >conftest.$ac_ext <<_ACEOF 14487#line 14487 "configure" 14488#include "confdefs.h" 14489#include <stdio.h> 14490int 14491main () 14492{ 14493printf("Hello"); 14494 ; 14495 return 0; 14496} 14497_ACEOF 14498rm -f conftest.$ac_objext conftest$ac_exeext 14499if { (eval echo "$as_me:14499: \"$ac_link\"") >&5 14500 (eval $ac_link) 2>&5 14501 ac_status=$? 14502 echo "$as_me:14502: \$? = $ac_status" >&5 14503 (exit $ac_status); } && 14504 { ac_try='test -s conftest$ac_exeext' 14505 { (eval echo "$as_me:14505: \"$ac_try\"") >&5 14506 (eval $ac_try) 2>&5 14507 ac_status=$? 14508 echo "$as_me:14508: \$? = $ac_status" >&5 14509 (exit $ac_status); }; }; then 14510 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u` 14511 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u` 14512else 14513 echo "$as_me: failed program was:" >&5 14514cat conftest.$ac_ext >&5 14515fi 14516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14517 14518 # If we passed the link-test, but get a "not found" on a given library, 14519 # this could be due to inept reconfiguration of gcc to make it only 14520 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 14521 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 14522 # /usr/local libraries. 14523 if test -n "$cf_rpath_oops" 14524 then 14525 for cf_rpath_src in $cf_rpath_oops 14526 do 14527 for cf_rpath_dir in \ 14528 /usr/local \ 14529 /usr/pkg \ 14530 /opt/sfw 14531 do 14532 if test -f $cf_rpath_dir/lib/$cf_rpath_src 14533 then 14534 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 14535 14536echo "${as_me:-configure}:14536: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 14537 14538 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 14539 break 14540 fi 14541 done 14542 done 14543 fi 14544 fi 14545 14546 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 14547 14548echo "${as_me:-configure}:14548: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 14549 14550test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 14551 14552echo "${as_me:-configure}:14552: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 14553 14554cf_rpath_dst= 14555for cf_rpath_src in $LDFLAGS 14556do 14557 case $cf_rpath_src in #(vi 14558 -L*) #(vi 14559 14560 # check if this refers to a directory which we will ignore 14561 cf_rpath_skip=no 14562 if test -n "$cf_rpath_list" 14563 then 14564 for cf_rpath_item in $cf_rpath_list 14565 do 14566 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 14567 then 14568 cf_rpath_skip=yes 14569 break 14570 fi 14571 done 14572 fi 14573 14574 if test "$cf_rpath_skip" = no 14575 then 14576 # transform the option 14577 if test "$LD_RPATH_OPT" = "-R " ; then 14578 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 14579 else 14580 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 14581 fi 14582 14583 # if we have not already added this, add it now 14584 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 14585 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 14586 then 14587 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 14588 14589echo "${as_me:-configure}:14589: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 14590 14591 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 14592 fi 14593 fi 14594 ;; 14595 esac 14596 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 14597done 14598LDFLAGS=$cf_rpath_dst 14599 14600test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 14601 14602echo "${as_me:-configure}:14602: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 14603 14604test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 14605 14606echo "${as_me:-configure}:14606: testing ...checking LIBS $LIBS ..." 1>&5 14607 14608cf_rpath_dst= 14609for cf_rpath_src in $LIBS 14610do 14611 case $cf_rpath_src in #(vi 14612 -L*) #(vi 14613 14614 # check if this refers to a directory which we will ignore 14615 cf_rpath_skip=no 14616 if test -n "$cf_rpath_list" 14617 then 14618 for cf_rpath_item in $cf_rpath_list 14619 do 14620 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 14621 then 14622 cf_rpath_skip=yes 14623 break 14624 fi 14625 done 14626 fi 14627 14628 if test "$cf_rpath_skip" = no 14629 then 14630 # transform the option 14631 if test "$LD_RPATH_OPT" = "-R " ; then 14632 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 14633 else 14634 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 14635 fi 14636 14637 # if we have not already added this, add it now 14638 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 14639 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 14640 then 14641 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 14642 14643echo "${as_me:-configure}:14643: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 14644 14645 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 14646 fi 14647 fi 14648 ;; 14649 esac 14650 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 14651done 14652LIBS=$cf_rpath_dst 14653 14654test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 14655 14656echo "${as_me:-configure}:14656: testing ...checked LIBS $LIBS ..." 1>&5 14657 14658 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 14659 14660echo "${as_me:-configure}:14660: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 14661 14662fi 14663 14664fi 14665 14666ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE samples/install/makefile" 14667ac_config_commands="$ac_config_commands default" 14668cat >confcache <<\_ACEOF 14669# This file is a shell script that caches the results of configure 14670# tests run on this system so they can be shared between configure 14671# scripts and configure runs, see configure's option --config-cache. 14672# It is not useful on other systems. If it contains results you don't 14673# want to keep, you may remove or edit it. 14674# 14675# config.status only pays attention to the cache file if you give it 14676# the --recheck option to rerun configure. 14677# 14678# `ac_cv_env_foo' variables (set or unset) will be overriden when 14679# loading this file, other *unset* `ac_cv_foo' will be assigned the 14680# following values. 14681 14682_ACEOF 14683 14684# The following way of writing the cache mishandles newlines in values, 14685# but we know of no workaround that is simple, portable, and efficient. 14686# So, don't put newlines in cache variables' values. 14687# Ultrix sh set writes to stderr and can't be redirected directly, 14688# and sets the high bit in the cache file unless we assign to the vars. 14689{ 14690 (set) 2>&1 | 14691 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14692 *ac_space=\ *) 14693 # `set' does not quote correctly, so add quotes (double-quote 14694 # substitution turns \\\\ into \\, and sed turns \\ into \). 14695 sed -n \ 14696 "s/'/'\\\\''/g; 14697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14698 ;; 14699 *) 14700 # `set' quotes correctly as required by POSIX, so do not add quotes. 14701 sed -n \ 14702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14703 ;; 14704 esac; 14705} | 14706 sed ' 14707 t clear 14708 : clear 14709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14710 t end 14711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14712 : end' >>confcache 14713if cmp -s $cache_file confcache; then :; else 14714 if test -w $cache_file; then 14715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14716 cat confcache >$cache_file 14717 else 14718 echo "not updating unwritable cache $cache_file" 14719 fi 14720fi 14721rm -f confcache 14722 14723test "x$prefix" = xNONE && prefix=$ac_default_prefix 14724# Let make expand exec_prefix. 14725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14726 14727# VPATH may cause trouble with some makes, so we remove $(srcdir), 14728# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14729# trailing colons and then remove the whole line if VPATH becomes empty 14730# (actually we leave an empty line to preserve line numbers). 14731if test "x$srcdir" = x.; then 14732 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14733s/:*\$(srcdir):*/:/; 14734s/:*\${srcdir}:*/:/; 14735s/:*@srcdir@:*/:/; 14736s/^\([^=]*=[ ]*\):*/\1/; 14737s/:*$//; 14738s/^[^=]*=[ ]*$//; 14739}' 14740fi 14741 14742DEFS=-DHAVE_CONFIG_H 14743 14744: ${CONFIG_STATUS=./config.status} 14745ac_clean_files_save=$ac_clean_files 14746ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14747{ echo "$as_me:14747: creating $CONFIG_STATUS" >&5 14748echo "$as_me: creating $CONFIG_STATUS" >&6;} 14749cat >$CONFIG_STATUS <<_ACEOF 14750#! $SHELL 14751# Generated automatically by configure. 14752# Run this file to recreate the current configuration. 14753# Compiler output produced by configure, useful for debugging 14754# configure, is in config.log if it exists. 14755 14756debug=false 14757SHELL=\${CONFIG_SHELL-$SHELL} 14758ac_cs_invocation="\$0 \$@" 14759 14760_ACEOF 14761 14762cat >>$CONFIG_STATUS <<\_ACEOF 14763# Be Bourne compatible 14764if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14765 emulate sh 14766 NULLCMD=: 14767elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14768 set -o posix 14769fi 14770 14771# Name of the executable. 14772as_me=`echo "$0" |sed 's,.*[\\/],,'` 14773 14774if expr a : '\(a\)' >/dev/null 2>&1; then 14775 as_expr=expr 14776else 14777 as_expr=false 14778fi 14779 14780rm -f conf$$ conf$$.exe conf$$.file 14781echo >conf$$.file 14782if ln -s conf$$.file conf$$ 2>/dev/null; then 14783 # We could just check for DJGPP; but this test a) works b) is more generic 14784 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14785 if test -f conf$$.exe; then 14786 # Don't use ln at all; we don't have any links 14787 as_ln_s='cp -p' 14788 else 14789 as_ln_s='ln -s' 14790 fi 14791elif ln conf$$.file conf$$ 2>/dev/null; then 14792 as_ln_s=ln 14793else 14794 as_ln_s='cp -p' 14795fi 14796rm -f conf$$ conf$$.exe conf$$.file 14797 14798as_executable_p="test -f" 14799 14800# Support unset when possible. 14801if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 14802 as_unset=unset 14803else 14804 as_unset=false 14805fi 14806 14807# NLS nuisances. 14808$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 14809$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 14810$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 14811$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 14812$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 14813$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 14814$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 14815$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 14816 14817# IFS 14818# We need space, tab and new line, in precisely that order. 14819as_nl=' 14820' 14821IFS=" $as_nl" 14822 14823# CDPATH. 14824$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 14825 14826exec 6>&1 14827 14828_ACEOF 14829 14830# Files that config.status was made for. 14831if test -n "$ac_config_files"; then 14832 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14833fi 14834 14835if test -n "$ac_config_headers"; then 14836 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14837fi 14838 14839if test -n "$ac_config_links"; then 14840 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14841fi 14842 14843if test -n "$ac_config_commands"; then 14844 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14845fi 14846 14847cat >>$CONFIG_STATUS <<\EOF 14848 14849ac_cs_usage="\ 14850\`$as_me' instantiates files from templates according to the 14851current configuration. 14852 14853Usage: $0 [OPTIONS] [FILE]... 14854 14855 -h, --help print this help, then exit 14856 -V, --version print version number, then exit 14857 -d, --debug don't remove temporary files 14858 --recheck update $as_me by reconfiguring in the same conditions 14859 --file=FILE[:TEMPLATE] 14860 instantiate the configuration file FILE 14861 --header=FILE[:TEMPLATE] 14862 instantiate the configuration header FILE 14863 14864Configuration files: 14865$config_files 14866 14867Configuration headers: 14868$config_headers 14869 14870Configuration commands: 14871$config_commands 14872 14873Report bugs to <dickey@invisible-island.net>." 14874EOF 14875 14876cat >>$CONFIG_STATUS <<EOF 14877ac_cs_version="\\ 14878config.status 14879configured by $0, generated by GNU Autoconf 2.52.20101002, 14880 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14881 14882Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 14883Free Software Foundation, Inc. 14884This config.status script is free software; the Free Software Foundation 14885gives unlimited permission to copy, distribute and modify it." 14886srcdir=$srcdir 14887INSTALL="$INSTALL" 14888EOF 14889 14890cat >>$CONFIG_STATUS <<\EOF 14891# If no file are specified by the user, then we need to provide default 14892# value. By we need to know if files were specified by the user. 14893ac_need_defaults=: 14894while test $# != 0 14895do 14896 case $1 in 14897 --*=*) 14898 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14899 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14900 shift 14901 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 14902 shift 14903 ;; 14904 -*);; 14905 *) # This is not an option, so the user has probably given explicit 14906 # arguments. 14907 ac_need_defaults=false;; 14908 esac 14909 14910 case $1 in 14911 # Handling of the options. 14912EOF 14913cat >>$CONFIG_STATUS <<EOF 14914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14915 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 14916 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 14917EOF 14918cat >>$CONFIG_STATUS <<\EOF 14919 --version | --vers* | -V ) 14920 echo "$ac_cs_version"; exit 0 ;; 14921 --he | --h) 14922 # Conflict between --help and --header 14923 { { echo "$as_me:14923: error: ambiguous option: $1 14924Try \`$0 --help' for more information." >&5 14925echo "$as_me: error: ambiguous option: $1 14926Try \`$0 --help' for more information." >&2;} 14927 { (exit 1); exit 1; }; };; 14928 --help | --hel | -h ) 14929 echo "$ac_cs_usage"; exit 0 ;; 14930 --debug | --d* | -d ) 14931 debug=: ;; 14932 --file | --fil | --fi | --f ) 14933 shift 14934 CONFIG_FILES="$CONFIG_FILES $1" 14935 ac_need_defaults=false;; 14936 --header | --heade | --head | --hea ) 14937 shift 14938 CONFIG_HEADERS="$CONFIG_HEADERS $1" 14939 ac_need_defaults=false;; 14940 14941 # This is an error. 14942 -*) { { echo "$as_me:14942: error: unrecognized option: $1 14943Try \`$0 --help' for more information." >&5 14944echo "$as_me: error: unrecognized option: $1 14945Try \`$0 --help' for more information." >&2;} 14946 { (exit 1); exit 1; }; } ;; 14947 14948 *) ac_config_targets="$ac_config_targets $1" ;; 14949 14950 esac 14951 shift 14952done 14953 14954exec 5>>config.log 14955cat >&5 << _ACEOF 14956 14957## ----------------------- ## 14958## Running config.status. ## 14959## ----------------------- ## 14960 14961This file was extended by $as_me 2.52.20101002, executed with 14962 CONFIG_FILES = $CONFIG_FILES 14963 CONFIG_HEADERS = $CONFIG_HEADERS 14964 CONFIG_LINKS = $CONFIG_LINKS 14965 CONFIG_COMMANDS = $CONFIG_COMMANDS 14966 > $ac_cs_invocation 14967on `(hostname || uname -n) 2>/dev/null | sed 1q` 14968 14969_ACEOF 14970EOF 14971 14972cat >>$CONFIG_STATUS <<EOF 14973# 14974# INIT-COMMANDS section. 14975# 14976 14977EOF 14978 14979cat >>$CONFIG_STATUS <<\EOF 14980for ac_config_target in $ac_config_targets 14981do 14982 case "$ac_config_target" in 14983 # Handling of arguments. 14984 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;; 14985 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 14986 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;; 14987 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;; 14988 "samples/install/makefile" ) CONFIG_FILES="$CONFIG_FILES samples/install/makefile" ;; 14989 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14990 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14991 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;; 14992 *) { { echo "$as_me:14992: error: invalid argument: $ac_config_target" >&5 14993echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14994 { (exit 1); exit 1; }; };; 14995 esac 14996done 14997 14998# If the user did not use the arguments to specify the items to instantiate, 14999# then the envvar interface is used. Set only those that are not. 15000# We use the long form for the default assignment because of an extremely 15001# bizarre bug on SunOS 4.1.3. 15002if $ac_need_defaults; then 15003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15006fi 15007 15008# Create a temporary directory, and hook for its removal unless debugging. 15009$debug || 15010{ 15011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 15012 trap '{ (exit 1); exit 1; }' 1 2 13 15 15013} 15014 15015# Create a (secure) tmp directory for tmp files. 15016: ${TMPDIR=/tmp} 15017{ 15018 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 15019 test -n "$tmp" && test -d "$tmp" 15020} || 15021{ 15022 tmp=$TMPDIR/cs$$-$RANDOM 15023 (umask 077 && mkdir $tmp) 15024} || 15025{ 15026 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 15027 { (exit 1); exit 1; } 15028} 15029 15030EOF 15031 15032cat >>$CONFIG_STATUS <<EOF 15033 15034# 15035# CONFIG_FILES section. 15036# 15037 15038# No need to generate the scripts if there are no CONFIG_FILES. 15039# This happens for instance when ./config.status config.h 15040if test -n "\$CONFIG_FILES"; then 15041 # Protect against being on the right side of a sed subst in config.status. 15042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 15043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 15044s,@SHELL@,$SHELL,;t t 15045s,@exec_prefix@,$exec_prefix,;t t 15046s,@prefix@,$prefix,;t t 15047s,@program_transform_name@,$program_transform_name,;t t 15048s,@bindir@,$bindir,;t t 15049s,@sbindir@,$sbindir,;t t 15050s,@libexecdir@,$libexecdir,;t t 15051s,@datadir@,$datadir,;t t 15052s,@sysconfdir@,$sysconfdir,;t t 15053s,@sharedstatedir@,$sharedstatedir,;t t 15054s,@localstatedir@,$localstatedir,;t t 15055s,@libdir@,$libdir,;t t 15056s,@includedir@,$includedir,;t t 15057s,@oldincludedir@,$oldincludedir,;t t 15058s,@infodir@,$infodir,;t t 15059s,@mandir@,$mandir,;t t 15060s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 15061s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 15062s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 15063s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 15064s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 15065s,@build_alias@,$build_alias,;t t 15066s,@host_alias@,$host_alias,;t t 15067s,@target_alias@,$target_alias,;t t 15068s,@ECHO_C@,$ECHO_C,;t t 15069s,@ECHO_N@,$ECHO_N,;t t 15070s,@ECHO_T@,$ECHO_T,;t t 15071s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 15072s,@DEFS@,$DEFS,;t t 15073s,@LIBS@,$LIBS,;t t 15074s,@DESTDIR@,$DESTDIR,;t t 15075s,@CC@,$CC,;t t 15076s,@CFLAGS@,$CFLAGS,;t t 15077s,@LDFLAGS@,$LDFLAGS,;t t 15078s,@CPPFLAGS@,$CPPFLAGS,;t t 15079s,@ac_ct_CC@,$ac_ct_CC,;t t 15080s,@EXEEXT@,$EXEEXT,;t t 15081s,@OBJEXT@,$OBJEXT,;t t 15082s,@CPP@,$CPP,;t t 15083s,@SET_MAKE@,$SET_MAKE,;t t 15084s,@RANLIB@,$RANLIB,;t t 15085s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 15086s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 15087s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 15088s,@INSTALL_DATA@,$INSTALL_DATA,;t t 15089s,@LINT@,$LINT,;t t 15090s,@LINT_OPTS@,$LINT_OPTS,;t t 15091s,@AR@,$AR,;t t 15092s,@ac_ct_AR@,$ac_ct_AR,;t t 15093s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 15094s,@CTAGS@,$CTAGS,;t t 15095s,@ETAGS@,$ETAGS,;t t 15096s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 15097s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 15098s,@ECHO_LT@,$ECHO_LT,;t t 15099s,@ECHO_LD@,$ECHO_LD,;t t 15100s,@RULE_CC@,$RULE_CC,;t t 15101s,@SHOW_CC@,$SHOW_CC,;t t 15102s,@ECHO_CC@,$ECHO_CC,;t t 15103s,@build@,$build,;t t 15104s,@build_cpu@,$build_cpu,;t t 15105s,@build_vendor@,$build_vendor,;t t 15106s,@build_os@,$build_os,;t t 15107s,@host@,$host,;t t 15108s,@host_cpu@,$host_cpu,;t t 15109s,@host_vendor@,$host_vendor,;t t 15110s,@host_os@,$host_os,;t t 15111s,@PROG_EXT@,$PROG_EXT,;t t 15112s,@LIB_PREFIX@,$LIB_PREFIX,;t t 15113s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 15114s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 15115s,@VERSION@,$VERSION,;t t 15116s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t 15117s,@VERSION_MINOR@,$VERSION_MINOR,;t t 15118s,@VERSION_PATCH@,$VERSION_PATCH,;t t 15119s,@PACKAGE@,$PACKAGE,;t t 15120s,@SUB_INC@,$SUB_INC,;t t 15121s,@CONFIG_H@,$CONFIG_H,;t t 15122s,@ALLOCA@,$ALLOCA,;t t 15123s,@GLIBC21@,$GLIBC21,;t t 15124s,@LIBICONV@,$LIBICONV,;t t 15125s,@USE_NLS@,$USE_NLS,;t t 15126s,@MSGFMT@,$MSGFMT,;t t 15127s,@GMSGFMT@,$GMSGFMT,;t t 15128s,@XGETTEXT@,$XGETTEXT,;t t 15129s,@INTLBISON@,$INTLBISON,;t t 15130s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 15131s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 15132s,@CATALOGS@,$CATALOGS,;t t 15133s,@CATOBJEXT@,$CATOBJEXT,;t t 15134s,@GMOFILES@,$GMOFILES,;t t 15135s,@INTLLIBS@,$INTLLIBS,;t t 15136s,@INTLOBJS@,$INTLOBJS,;t t 15137s,@POFILES@,$POFILES,;t t 15138s,@POSUB@,$POSUB,;t t 15139s,@DATADIRNAME@,$DATADIRNAME,;t t 15140s,@INSTOBJEXT@,$INSTOBJEXT,;t t 15141s,@GENCAT@,$GENCAT,;t t 15142s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 15143s,@NLS_TEXTDOMAIN@,$NLS_TEXTDOMAIN,;t t 15144s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t 15145s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t 15146s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t 15147s,@GT_YES@,$GT_YES,;t t 15148s,@GT_NO@,$GT_NO,;t t 15149s,@LINK_PREFIX@,$LINK_PREFIX,;t t 15150s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t 15151s,@LIBTOOL@,$LIBTOOL,;t t 15152s,@LT_UNDEF@,$LT_UNDEF,;t t 15153s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 15154s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 15155s,@LIB_CREATE@,$LIB_CREATE,;t t 15156s,@LIB_OBJECT@,$LIB_OBJECT,;t t 15157s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 15158s,@LIB_PREP@,$LIB_PREP,;t t 15159s,@LIB_CLEAN@,$LIB_CLEAN,;t t 15160s,@LIB_COMPILE@,$LIB_COMPILE,;t t 15161s,@LIB_LINK@,$LIB_LINK,;t t 15162s,@LIB_INSTALL@,$LIB_INSTALL,;t t 15163s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 15164s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t 15165s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t 15166s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t 15167s,@EXTRAOBJS@,$EXTRAOBJS,;t t 15168s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t 15169s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t 15170s,@cf_ldd_prog@,$cf_ldd_prog,;t t 15171s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 15172CEOF 15173 15174EOF 15175 15176 cat >>$CONFIG_STATUS <<\EOF 15177 # Split the substitutions into bite-sized pieces for seds with 15178 # small command number limits, like on Digital OSF/1 and HP-UX. 15179 ac_max_sed_lines=48 15180 ac_sed_frag=1 # Number of current file. 15181 ac_beg=1 # First line for current file. 15182 ac_end=$ac_max_sed_lines # Line after last line for current file. 15183 ac_more_lines=: 15184 ac_sed_cmds= 15185 while $ac_more_lines; do 15186 if test $ac_beg -gt 1; then 15187 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15188 else 15189 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15190 fi 15191 if test ! -s $tmp/subs.frag; then 15192 ac_more_lines=false 15193 else 15194 # The purpose of the label and of the branching condition is to 15195 # speed up the sed processing (if there are no `@' at all, there 15196 # is no need to browse any of the substitutions). 15197 # These are the two extra sed commands mentioned above. 15198 (echo ':t 15199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 15200 if test -z "$ac_sed_cmds"; then 15201 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 15202 else 15203 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 15204 fi 15205 ac_sed_frag=`expr $ac_sed_frag + 1` 15206 ac_beg=$ac_end 15207 ac_end=`expr $ac_end + $ac_max_sed_lines` 15208 fi 15209 done 15210 if test -z "$ac_sed_cmds"; then 15211 ac_sed_cmds=cat 15212 fi 15213fi # test -n "$CONFIG_FILES" 15214 15215EOF 15216cat >>$CONFIG_STATUS <<\EOF 15217for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 15218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15219 case $ac_file in 15220 - | *:- | *:-:* ) # input from stdin 15221 cat >$tmp/stdin 15222 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15224 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15226 * ) ac_file_in=$ac_file.in ;; 15227 esac 15228 15229 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 15230 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15231 X"$ac_file" : 'X\(//\)[^/]' \| \ 15232 X"$ac_file" : 'X\(//\)$' \| \ 15233 X"$ac_file" : 'X\(/\)' \| \ 15234 . : '\(.\)' 2>/dev/null || 15235echo X"$ac_file" | 15236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15237 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15238 /^X\(\/\/\)$/{ s//\1/; q; } 15239 /^X\(\/\).*/{ s//\1/; q; } 15240 s/.*/./; q'` 15241 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 15242 { case "$ac_dir" in 15243 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 15244 *) as_incr_dir=.;; 15245esac 15246as_dummy="$ac_dir" 15247for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 15248 case $as_mkdir_dir in 15249 # Skip DOS drivespec 15250 ?:) as_incr_dir=$as_mkdir_dir ;; 15251 *) 15252 as_incr_dir=$as_incr_dir/$as_mkdir_dir 15253 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 15254 ;; 15255 esac 15256done; } 15257 15258 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 15259 # A "../" for each directory in $ac_dir_suffix. 15260 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 15261 else 15262 ac_dir_suffix= ac_dots= 15263 fi 15264 15265 case $srcdir in 15266 .) ac_srcdir=. 15267 if test -z "$ac_dots"; then 15268 ac_top_srcdir=. 15269 else 15270 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 15271 fi ;; 15272 [\\/]* | ?:[\\/]* ) 15273 ac_srcdir=$srcdir$ac_dir_suffix; 15274 ac_top_srcdir=$srcdir ;; 15275 *) # Relative path. 15276 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 15277 ac_top_srcdir=$ac_dots$srcdir ;; 15278 esac 15279 15280 case $INSTALL in 15281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15282 *) ac_INSTALL=$ac_dots$INSTALL ;; 15283 esac 15284 15285 if test x"$ac_file" != x-; then 15286 { echo "$as_me:15286: creating $ac_file" >&5 15287echo "$as_me: creating $ac_file" >&6;} 15288 rm -f "$ac_file" 15289 fi 15290 # Let's still pretend it is `configure' which instantiates (i.e., don't 15291 # use $as_me), people would be surprised to read: 15292 # /* config.h. Generated automatically by config.status. */ 15293 configure_input="Generated automatically from `echo $ac_file_in | 15294 sed 's,.*/,,'` by configure." 15295 15296 # First look for the input files in the build tree, otherwise in the 15297 # src tree. 15298 ac_file_inputs=`IFS=: 15299 for f in $ac_file_in; do 15300 case $f in 15301 -) echo $tmp/stdin ;; 15302 [\\/$]*) 15303 # Absolute (can't be DOS-style, as IFS=:) 15304 test -f "$f" || { { echo "$as_me:15304: error: cannot find input file: $f" >&5 15305echo "$as_me: error: cannot find input file: $f" >&2;} 15306 { (exit 1); exit 1; }; } 15307 echo $f;; 15308 *) # Relative 15309 if test -f "$f"; then 15310 # Build tree 15311 echo $f 15312 elif test -f "$srcdir/$f"; then 15313 # Source tree 15314 echo $srcdir/$f 15315 else 15316 # /dev/null tree 15317 { { echo "$as_me:15317: error: cannot find input file: $f" >&5 15318echo "$as_me: error: cannot find input file: $f" >&2;} 15319 { (exit 1); exit 1; }; } 15320 fi;; 15321 esac 15322 done` || { (exit 1); exit 1; } 15323EOF 15324cat >>$CONFIG_STATUS <<EOF 15325 sed "$ac_vpsub 15326$extrasub 15327EOF 15328cat >>$CONFIG_STATUS <<\EOF 15329:t 15330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15331s,@configure_input@,$configure_input,;t t 15332s,@srcdir@,$ac_srcdir,;t t 15333s,@top_srcdir@,$ac_top_srcdir,;t t 15334s,@INSTALL@,$ac_INSTALL,;t t 15335" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 15336 rm -f $tmp/stdin 15337 if test x"$ac_file" != x-; then 15338 mv $tmp/out $ac_file 15339 else 15340 cat $tmp/out 15341 rm -f $tmp/out 15342 fi 15343 15344done 15345EOF 15346cat >>$CONFIG_STATUS <<\EOF 15347 15348# 15349# CONFIG_HEADER section. 15350# 15351 15352# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 15353# NAME is the cpp macro being defined and VALUE is the value it is being given. 15354# 15355# ac_d sets the value in "#define NAME VALUE" lines. 15356ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 15357ac_dB='[ ].*$,\1#\2' 15358ac_dC=' ' 15359ac_dD=',;t' 15360# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 15361ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 15362ac_iB='\([ ]\),\1#\2define\3' 15363ac_iC=' ' 15364ac_iD='\4,;t' 15365# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 15366ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 15367ac_uB='$,\1#\2define\3' 15368ac_uC=' ' 15369ac_uD=',;t' 15370 15371for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 15372 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15373 case $ac_file in 15374 - | *:- | *:-:* ) # input from stdin 15375 cat >$tmp/stdin 15376 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15377 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15378 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15380 * ) ac_file_in=$ac_file.in ;; 15381 esac 15382 15383 test x"$ac_file" != x- && { echo "$as_me:15383: creating $ac_file" >&5 15384echo "$as_me: creating $ac_file" >&6;} 15385 15386 # First look for the input files in the build tree, otherwise in the 15387 # src tree. 15388 ac_file_inputs=`IFS=: 15389 for f in $ac_file_in; do 15390 case $f in 15391 -) echo $tmp/stdin ;; 15392 [\\/$]*) 15393 # Absolute (can't be DOS-style, as IFS=:) 15394 test -f "$f" || { { echo "$as_me:15394: error: cannot find input file: $f" >&5 15395echo "$as_me: error: cannot find input file: $f" >&2;} 15396 { (exit 1); exit 1; }; } 15397 echo $f;; 15398 *) # Relative 15399 if test -f "$f"; then 15400 # Build tree 15401 echo $f 15402 elif test -f "$srcdir/$f"; then 15403 # Source tree 15404 echo $srcdir/$f 15405 else 15406 # /dev/null tree 15407 { { echo "$as_me:15407: error: cannot find input file: $f" >&5 15408echo "$as_me: error: cannot find input file: $f" >&2;} 15409 { (exit 1); exit 1; }; } 15410 fi;; 15411 esac 15412 done` || { (exit 1); exit 1; } 15413 # Remove the trailing spaces. 15414 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 15415 15416EOF 15417 15418# Transform confdefs.h into a list of #define's. We won't use it as a sed 15419# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 15420# be either 'cat' or 'sort'. 15421sort -u confdefs.h | uniq >conftest.vals 15422 15423# Break up conftest.vals because some shells have a limit on 15424# the size of here documents, and old seds have small limits too. 15425 15426rm -f conftest.tail 15427echo ' rm -f conftest.frag' >> $CONFIG_STATUS 15428while grep . conftest.vals >/dev/null 15429do 15430 # Write chunks of a limited-size here document to conftest.frag. 15431 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 15432 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 15433 echo 'CEOF' >> $CONFIG_STATUS 15434 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 15435 rm -f conftest.vals 15436 mv conftest.tail conftest.vals 15437done 15438rm -f conftest.vals 15439 15440# Run sed to substitute the contents of conftest.frag into $tmp/in at the 15441# marker @DEFS@. 15442echo ' cat >> conftest.edit <<CEOF 15443/@DEFS@/r conftest.frag 15444/@DEFS@/d 15445CEOF 15446sed -f conftest.edit $tmp/in > $tmp/out 15447rm -f $tmp/in 15448mv $tmp/out $tmp/in 15449rm -f conftest.edit conftest.frag 15450' >> $CONFIG_STATUS 15451 15452cat >>$CONFIG_STATUS <<\EOF 15453 # Let's still pretend it is `configure' which instantiates (i.e., don't 15454 # use $as_me), people would be surprised to read: 15455 # /* config.h. Generated automatically by config.status. */ 15456 if test x"$ac_file" = x-; then 15457 echo "/* Generated automatically by configure. */" >$tmp/config.h 15458 else 15459 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 15460 fi 15461 cat $tmp/in >>$tmp/config.h 15462 rm -f $tmp/in 15463 if test x"$ac_file" != x-; then 15464 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 15465 { echo "$as_me:15465: $ac_file is unchanged" >&5 15466echo "$as_me: $ac_file is unchanged" >&6;} 15467 else 15468 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15469 X"$ac_file" : 'X\(//\)[^/]' \| \ 15470 X"$ac_file" : 'X\(//\)$' \| \ 15471 X"$ac_file" : 'X\(/\)' \| \ 15472 . : '\(.\)' 2>/dev/null || 15473echo X"$ac_file" | 15474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15475 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15476 /^X\(\/\/\)$/{ s//\1/; q; } 15477 /^X\(\/\).*/{ s//\1/; q; } 15478 s/.*/./; q'` 15479 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 15480 { case "$ac_dir" in 15481 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 15482 *) as_incr_dir=.;; 15483esac 15484as_dummy="$ac_dir" 15485for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 15486 case $as_mkdir_dir in 15487 # Skip DOS drivespec 15488 ?:) as_incr_dir=$as_mkdir_dir ;; 15489 *) 15490 as_incr_dir=$as_incr_dir/$as_mkdir_dir 15491 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 15492 ;; 15493 esac 15494done; } 15495 15496 fi 15497 rm -f $ac_file 15498 mv $tmp/config.h $ac_file 15499 fi 15500 else 15501 cat $tmp/config.h 15502 rm -f $tmp/config.h 15503 fi 15504done 15505EOF 15506cat >>$CONFIG_STATUS <<\EOF 15507# 15508# CONFIG_COMMANDS section. 15509# 15510for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15511 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15512 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15513 15514 case $ac_dest in 15515 default-1 ) for ac_file in $CONFIG_FILES; do 15516 15517 # Support "outfile[:infile[:infile...]]" 15518 case "$ac_file" in 15519 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15520 esac 15521 15522 # PO directories have a Makefile.in generated from Makefile.inn. 15523 case "$ac_file" in */[Mm]akefile.in) 15524 # Adjust a relative srcdir. 15525 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15526 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15527 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15528 ac_base=`basename $ac_file .in` 15529 # In autoconf-2.13 it is called $ac_given_srcdir. 15530 # In autoconf-2.50 it is called $srcdir. 15531 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15532 15533 case "$ac_given_srcdir" in 15534 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15535 /*) top_srcdir="$ac_given_srcdir" ;; 15536 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15537 esac 15538 15539 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15540 rm -f "$ac_dir/POTFILES" 15541 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15542 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" 15543 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base" 15544 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base" 15545 fi 15546 ;; 15547 esac 15548 done ;; 15549 esac 15550done 15551EOF 15552 15553cat >>$CONFIG_STATUS <<\EOF 15554 15555{ (exit 0); exit 0; } 15556EOF 15557chmod +x $CONFIG_STATUS 15558ac_clean_files=$ac_clean_files_save 15559 15560# configure is writing to config.log, and then calls config.status. 15561# config.status does its own redirection, appending to config.log. 15562# Unfortunately, on DOS this fails, as config.log is still kept open 15563# by configure, so config.status won't be able to write to it; its 15564# output is simply discarded. So we exec the FD to /dev/null, 15565# effectively closing config.log, so it can be properly (re)opened and 15566# appended to by config.status. When coming back to configure, we 15567# need to make the FD available again. 15568if test "$no_create" != yes; then 15569 ac_cs_success=: 15570 exec 5>/dev/null 15571 $SHELL $CONFIG_STATUS || ac_cs_success=false 15572 exec 5>>config.log 15573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15574 # would make configure fail if this is the last instruction. 15575 $ac_cs_success || { (exit 1); exit 1; } 15576fi 15577 15578