configure revision 60786
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.12 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library [auto]" 16ac_help="$ac_help 17 --with-editor=PROGRAM use PROGRAM as the default editor [vi]" 18 19# Initialize some variables set by options. 20# The variables have the same names as the options, with 21# dashes changed to underlines. 22build=NONE 23cache_file=./config.cache 24exec_prefix=NONE 25host=NONE 26no_create= 27nonopt=NONE 28no_recursion= 29prefix=NONE 30program_prefix=NONE 31program_suffix=NONE 32program_transform_name=s,x,x, 33silent= 34site= 35srcdir= 36target=NONE 37verbose= 38x_includes=NONE 39x_libraries=NONE 40bindir='${exec_prefix}/bin' 41sbindir='${exec_prefix}/sbin' 42libexecdir='${exec_prefix}/libexec' 43datadir='${prefix}/share' 44sysconfdir='${prefix}/etc' 45sharedstatedir='${prefix}/com' 46localstatedir='${prefix}/var' 47libdir='${exec_prefix}/lib' 48includedir='${prefix}/include' 49oldincludedir='/usr/include' 50infodir='${prefix}/info' 51mandir='${prefix}/man' 52 53# Initialize some other variables. 54subdirs= 55MFLAGS= MAKEFLAGS= 56# Maximum number of lines to put in a shell here document. 57ac_max_here_lines=12 58 59ac_prev= 60for ac_option 61do 62 63 # If the previous option needs an argument, assign it. 64 if test -n "$ac_prev"; then 65 eval "$ac_prev=\$ac_option" 66 ac_prev= 67 continue 68 fi 69 70 case "$ac_option" in 71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 72 *) ac_optarg= ;; 73 esac 74 75 # Accept the important Cygnus configure options, so we can diagnose typos. 76 77 case "$ac_option" in 78 79 -bindir | --bindir | --bindi | --bind | --bin | --bi) 80 ac_prev=bindir ;; 81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 82 bindir="$ac_optarg" ;; 83 84 -build | --build | --buil | --bui | --bu) 85 ac_prev=build ;; 86 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 87 build="$ac_optarg" ;; 88 89 -cache-file | --cache-file | --cache-fil | --cache-fi \ 90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 91 ac_prev=cache_file ;; 92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 94 cache_file="$ac_optarg" ;; 95 96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 97 ac_prev=datadir ;; 98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 99 | --da=*) 100 datadir="$ac_optarg" ;; 101 102 -disable-* | --disable-*) 103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 104 # Reject names that are not valid shell variable names. 105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 107 fi 108 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 109 eval "enable_${ac_feature}=no" ;; 110 111 -enable-* | --enable-*) 112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 113 # Reject names that are not valid shell variable names. 114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 116 fi 117 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 118 case "$ac_option" in 119 *=*) ;; 120 *) ac_optarg=yes ;; 121 esac 122 eval "enable_${ac_feature}='$ac_optarg'" ;; 123 124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 126 | --exec | --exe | --ex) 127 ac_prev=exec_prefix ;; 128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 130 | --exec=* | --exe=* | --ex=*) 131 exec_prefix="$ac_optarg" ;; 132 133 -gas | --gas | --ga | --g) 134 # Obsolete; use --with-gas. 135 with_gas=yes ;; 136 137 -help | --help | --hel | --he) 138 # Omit some internal or obsolete options to make the list less imposing. 139 # This message is too long to be a string in the A/UX 3.1 sh. 140 cat << EOF 141Usage: configure [options] [host] 142Options: [defaults in brackets after descriptions] 143Configuration: 144 --cache-file=FILE cache test results in FILE 145 --help print this message 146 --no-create do not create output files 147 --quiet, --silent do not print \`checking...' messages 148 --version print the version of autoconf that created configure 149Directory and file names: 150 --prefix=PREFIX install architecture-independent files in PREFIX 151 [$ac_default_prefix] 152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 153 [same as prefix] 154 --bindir=DIR user executables in DIR [EPREFIX/bin] 155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 157 --datadir=DIR read-only architecture-independent data in DIR 158 [PREFIX/share] 159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 160 --sharedstatedir=DIR modifiable architecture-independent data in DIR 161 [PREFIX/com] 162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 163 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 164 --includedir=DIR C header files in DIR [PREFIX/include] 165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 166 --infodir=DIR info documentation in DIR [PREFIX/info] 167 --mandir=DIR man documentation in DIR [PREFIX/man] 168 --srcdir=DIR find the sources in DIR [configure dir or ..] 169 --program-prefix=PREFIX prepend PREFIX to installed program names 170 --program-suffix=SUFFIX append SUFFIX to installed program names 171 --program-transform-name=PROGRAM 172 run sed PROGRAM on installed program names 173EOF 174 cat << EOF 175Host type: 176 --build=BUILD configure for building on BUILD [BUILD=HOST] 177 --host=HOST configure for HOST [guessed] 178 --target=TARGET configure for TARGET [TARGET=HOST] 179Features and packages: 180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 184 --x-includes=DIR X include files are in DIR 185 --x-libraries=DIR X library files are in DIR 186EOF 187 if test -n "$ac_help"; then 188 echo "--enable and --with options recognized:$ac_help" 189 fi 190 exit 0 ;; 191 192 -host | --host | --hos | --ho) 193 ac_prev=host ;; 194 -host=* | --host=* | --hos=* | --ho=*) 195 host="$ac_optarg" ;; 196 197 -includedir | --includedir | --includedi | --included | --include \ 198 | --includ | --inclu | --incl | --inc) 199 ac_prev=includedir ;; 200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 201 | --includ=* | --inclu=* | --incl=* | --inc=*) 202 includedir="$ac_optarg" ;; 203 204 -infodir | --infodir | --infodi | --infod | --info | --inf) 205 ac_prev=infodir ;; 206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 207 infodir="$ac_optarg" ;; 208 209 -libdir | --libdir | --libdi | --libd) 210 ac_prev=libdir ;; 211 -libdir=* | --libdir=* | --libdi=* | --libd=*) 212 libdir="$ac_optarg" ;; 213 214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 215 | --libexe | --libex | --libe) 216 ac_prev=libexecdir ;; 217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 218 | --libexe=* | --libex=* | --libe=*) 219 libexecdir="$ac_optarg" ;; 220 221 -localstatedir | --localstatedir | --localstatedi | --localstated \ 222 | --localstate | --localstat | --localsta | --localst \ 223 | --locals | --local | --loca | --loc | --lo) 224 ac_prev=localstatedir ;; 225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 228 localstatedir="$ac_optarg" ;; 229 230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 231 ac_prev=mandir ;; 232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 233 mandir="$ac_optarg" ;; 234 235 -nfp | --nfp | --nf) 236 # Obsolete; use --without-fp. 237 with_fp=no ;; 238 239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 240 | --no-cr | --no-c) 241 no_create=yes ;; 242 243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 245 no_recursion=yes ;; 246 247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 249 | --oldin | --oldi | --old | --ol | --o) 250 ac_prev=oldincludedir ;; 251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 254 oldincludedir="$ac_optarg" ;; 255 256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 257 ac_prev=prefix ;; 258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 259 prefix="$ac_optarg" ;; 260 261 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 262 | --program-pre | --program-pr | --program-p) 263 ac_prev=program_prefix ;; 264 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 266 program_prefix="$ac_optarg" ;; 267 268 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 269 | --program-suf | --program-su | --program-s) 270 ac_prev=program_suffix ;; 271 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 273 program_suffix="$ac_optarg" ;; 274 275 -program-transform-name | --program-transform-name \ 276 | --program-transform-nam | --program-transform-na \ 277 | --program-transform-n | --program-transform- \ 278 | --program-transform | --program-transfor \ 279 | --program-transfo | --program-transf \ 280 | --program-trans | --program-tran \ 281 | --progr-tra | --program-tr | --program-t) 282 ac_prev=program_transform_name ;; 283 -program-transform-name=* | --program-transform-name=* \ 284 | --program-transform-nam=* | --program-transform-na=* \ 285 | --program-transform-n=* | --program-transform-=* \ 286 | --program-transform=* | --program-transfor=* \ 287 | --program-transfo=* | --program-transf=* \ 288 | --program-trans=* | --program-tran=* \ 289 | --progr-tra=* | --program-tr=* | --program-t=*) 290 program_transform_name="$ac_optarg" ;; 291 292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 293 | -silent | --silent | --silen | --sile | --sil) 294 silent=yes ;; 295 296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 297 ac_prev=sbindir ;; 298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 299 | --sbi=* | --sb=*) 300 sbindir="$ac_optarg" ;; 301 302 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 304 | --sharedst | --shareds | --shared | --share | --shar \ 305 | --sha | --sh) 306 ac_prev=sharedstatedir ;; 307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 310 | --sha=* | --sh=*) 311 sharedstatedir="$ac_optarg" ;; 312 313 -site | --site | --sit) 314 ac_prev=site ;; 315 -site=* | --site=* | --sit=*) 316 site="$ac_optarg" ;; 317 318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 319 ac_prev=srcdir ;; 320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 321 srcdir="$ac_optarg" ;; 322 323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 324 | --syscon | --sysco | --sysc | --sys | --sy) 325 ac_prev=sysconfdir ;; 326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 328 sysconfdir="$ac_optarg" ;; 329 330 -target | --target | --targe | --targ | --tar | --ta | --t) 331 ac_prev=target ;; 332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 333 target="$ac_optarg" ;; 334 335 -v | -verbose | --verbose | --verbos | --verbo | --verb) 336 verbose=yes ;; 337 338 -version | --version | --versio | --versi | --vers) 339 echo "configure generated by autoconf version 2.12" 340 exit 0 ;; 341 342 -with-* | --with-*) 343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 344 # Reject names that are not valid shell variable names. 345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 347 fi 348 ac_package=`echo $ac_package| sed 's/-/_/g'` 349 case "$ac_option" in 350 *=*) ;; 351 *) ac_optarg=yes ;; 352 esac 353 eval "with_${ac_package}='$ac_optarg'" ;; 354 355 -without-* | --without-*) 356 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 357 # Reject names that are not valid shell variable names. 358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 360 fi 361 ac_package=`echo $ac_package| sed 's/-/_/g'` 362 eval "with_${ac_package}=no" ;; 363 364 --x) 365 # Obsolete; use --with-x. 366 with_x=yes ;; 367 368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 369 | --x-incl | --x-inc | --x-in | --x-i) 370 ac_prev=x_includes ;; 371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 373 x_includes="$ac_optarg" ;; 374 375 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 377 ac_prev=x_libraries ;; 378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 380 x_libraries="$ac_optarg" ;; 381 382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 383 ;; 384 385 *) 386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 387 echo "configure: warning: $ac_option: invalid host type" 1>&2 388 fi 389 if test "x$nonopt" != xNONE; then 390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 391 fi 392 nonopt="$ac_option" 393 ;; 394 395 esac 396done 397 398if test -n "$ac_prev"; then 399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 400fi 401 402trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 403 404# File descriptor usage: 405# 0 standard input 406# 1 file creation 407# 2 errors and warnings 408# 3 some systems may open it to /dev/tty 409# 4 used on the Kubota Titan 410# 6 checking for... messages and results 411# 5 compiler messages saved in config.log 412if test "$silent" = yes; then 413 exec 6>/dev/null 414else 415 exec 6>&1 416fi 417exec 5>./config.log 418 419echo "\ 420This file contains any messages produced by compilers while 421running configure, to aid debugging if configure makes a mistake. 422" 1>&5 423 424# Strip out --no-create and --no-recursion so they do not pile up. 425# Also quote any args containing shell metacharacters. 426ac_configure_args= 427for ac_arg 428do 429 case "$ac_arg" in 430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 431 | --no-cr | --no-c) ;; 432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 435 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 436 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 437 esac 438done 439 440# NLS nuisances. 441# Only set these to C if already set. These must not be set unconditionally 442# because not all systems understand e.g. LANG=C (notably SCO). 443# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 444# Non-C LC_CTYPE values break the ctype check. 445if test "${LANG+set}" = set; then LANG=C; export LANG; fi 446if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 447if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 448if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 449 450# confdefs.h avoids OS command line length limits that DEFS can exceed. 451rm -rf conftest* confdefs.h 452# AIX cpp loses on an empty file, so make sure it contains at least a newline. 453echo > confdefs.h 454 455# A filename unique to this package, relative to the directory that 456# configure is in, which we can look for to find out if srcdir is correct. 457ac_unique_file=forwback.c 458 459# Find the source files, if location was not specified. 460if test -z "$srcdir"; then 461 ac_srcdir_defaulted=yes 462 # Try the directory containing this script, then its parent. 463 ac_prog=$0 464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 466 srcdir=$ac_confdir 467 if test ! -r $srcdir/$ac_unique_file; then 468 srcdir=.. 469 fi 470else 471 ac_srcdir_defaulted=no 472fi 473if test ! -r $srcdir/$ac_unique_file; then 474 if test "$ac_srcdir_defaulted" = yes; then 475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 476 else 477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 478 fi 479fi 480srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 481 482# Prefer explicitly selected file to automatically selected ones. 483if test -z "$CONFIG_SITE"; then 484 if test "x$prefix" != xNONE; then 485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 486 else 487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 488 fi 489fi 490for ac_site_file in $CONFIG_SITE; do 491 if test -r "$ac_site_file"; then 492 echo "loading site script $ac_site_file" 493 . "$ac_site_file" 494 fi 495done 496 497if test -r "$cache_file"; then 498 echo "loading cache $cache_file" 499 . $cache_file 500else 501 echo "creating cache $cache_file" 502 > $cache_file 503fi 504 505ac_ext=c 506# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 507ac_cpp='$CPP $CPPFLAGS' 508ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 509ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 510cross_compiling=$ac_cv_prog_cc_cross 511 512if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 514 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 515 ac_n= ac_c=' 516' ac_t=' ' 517 else 518 ac_n=-n ac_c= ac_t= 519 fi 520else 521 ac_n= ac_c='\c' ac_t= 522fi 523 524 525 526 527# Extract the first word of "gcc", so it can be a program name with args. 528set dummy gcc; ac_word=$2 529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 530echo "configure:531: checking for $ac_word" >&5 531if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 532 echo $ac_n "(cached) $ac_c" 1>&6 533else 534 if test -n "$CC"; then 535 ac_cv_prog_CC="$CC" # Let the user override the test. 536else 537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 538 for ac_dir in $PATH; do 539 test -z "$ac_dir" && ac_dir=. 540 if test -f $ac_dir/$ac_word; then 541 ac_cv_prog_CC="gcc" 542 break 543 fi 544 done 545 IFS="$ac_save_ifs" 546fi 547fi 548CC="$ac_cv_prog_CC" 549if test -n "$CC"; then 550 echo "$ac_t""$CC" 1>&6 551else 552 echo "$ac_t""no" 1>&6 553fi 554 555if test -z "$CC"; then 556 # Extract the first word of "cc", so it can be a program name with args. 557set dummy cc; ac_word=$2 558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 559echo "configure:560: checking for $ac_word" >&5 560if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 561 echo $ac_n "(cached) $ac_c" 1>&6 562else 563 if test -n "$CC"; then 564 ac_cv_prog_CC="$CC" # Let the user override the test. 565else 566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 567 ac_prog_rejected=no 568 for ac_dir in $PATH; do 569 test -z "$ac_dir" && ac_dir=. 570 if test -f $ac_dir/$ac_word; then 571 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 572 ac_prog_rejected=yes 573 continue 574 fi 575 ac_cv_prog_CC="cc" 576 break 577 fi 578 done 579 IFS="$ac_save_ifs" 580if test $ac_prog_rejected = yes; then 581 # We found a bogon in the path, so make sure we never use it. 582 set dummy $ac_cv_prog_CC 583 shift 584 if test $# -gt 0; then 585 # We chose a different compiler from the bogus one. 586 # However, it has the same basename, so the bogon will be chosen 587 # first if we set CC to just the basename; use the full file name. 588 shift 589 set dummy "$ac_dir/$ac_word" "$@" 590 shift 591 ac_cv_prog_CC="$@" 592 fi 593fi 594fi 595fi 596CC="$ac_cv_prog_CC" 597if test -n "$CC"; then 598 echo "$ac_t""$CC" 1>&6 599else 600 echo "$ac_t""no" 1>&6 601fi 602 603 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 604fi 605 606echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 607echo "configure:608: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 608 609ac_ext=c 610# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 611ac_cpp='$CPP $CPPFLAGS' 612ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 613ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 614cross_compiling=$ac_cv_prog_cc_cross 615 616cat > conftest.$ac_ext <<EOF 617#line 618 "configure" 618#include "confdefs.h" 619main(){return(0);} 620EOF 621if { (eval echo configure:622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 622 ac_cv_prog_cc_works=yes 623 # If we can't run a trivial program, we are probably using a cross compiler. 624 if (./conftest; exit) 2>/dev/null; then 625 ac_cv_prog_cc_cross=no 626 else 627 ac_cv_prog_cc_cross=yes 628 fi 629else 630 echo "configure: failed program was:" >&5 631 cat conftest.$ac_ext >&5 632 ac_cv_prog_cc_works=no 633fi 634rm -fr conftest* 635 636echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 637if test $ac_cv_prog_cc_works = no; then 638 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 639fi 640echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 641echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 642echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 643cross_compiling=$ac_cv_prog_cc_cross 644 645echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 646echo "configure:647: checking whether we are using GNU C" >&5 647if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 648 echo $ac_n "(cached) $ac_c" 1>&6 649else 650 cat > conftest.c <<EOF 651#ifdef __GNUC__ 652 yes; 653#endif 654EOF 655if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 656 ac_cv_prog_gcc=yes 657else 658 ac_cv_prog_gcc=no 659fi 660fi 661 662echo "$ac_t""$ac_cv_prog_gcc" 1>&6 663 664if test $ac_cv_prog_gcc = yes; then 665 GCC=yes 666 ac_test_CFLAGS="${CFLAGS+set}" 667 ac_save_CFLAGS="$CFLAGS" 668 CFLAGS= 669 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 670echo "configure:671: checking whether ${CC-cc} accepts -g" >&5 671if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 672 echo $ac_n "(cached) $ac_c" 1>&6 673else 674 echo 'void f(){}' > conftest.c 675if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 676 ac_cv_prog_cc_g=yes 677else 678 ac_cv_prog_cc_g=no 679fi 680rm -f conftest* 681 682fi 683 684echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 685 if test "$ac_test_CFLAGS" = set; then 686 CFLAGS="$ac_save_CFLAGS" 687 elif test $ac_cv_prog_cc_g = yes; then 688 CFLAGS="-g -O2" 689 else 690 CFLAGS="-O2" 691 fi 692else 693 GCC= 694 test "${CFLAGS+set}" = set || CFLAGS="-g" 695fi 696 697echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 698echo "configure:699: checking for POSIXized ISC" >&5 699if test -d /etc/conf/kconfig.d && 700 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 701then 702 echo "$ac_t""yes" 1>&6 703 ISC=yes # If later tests want to check for ISC. 704 cat >> confdefs.h <<\EOF 705#define _POSIX_SOURCE 1 706EOF 707 708 if test "$GCC" = yes; then 709 CC="$CC -posix" 710 else 711 CC="$CC -Xp" 712 fi 713else 714 echo "$ac_t""no" 1>&6 715 ISC= 716fi 717 718echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 719echo "configure:720: checking how to run the C preprocessor" >&5 720# On Suns, sometimes $CPP names a directory. 721if test -n "$CPP" && test -d "$CPP"; then 722 CPP= 723fi 724if test -z "$CPP"; then 725if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 726 echo $ac_n "(cached) $ac_c" 1>&6 727else 728 # This must be in double quotes, not single quotes, because CPP may get 729 # substituted into the Makefile and "${CC-cc}" will confuse make. 730 CPP="${CC-cc} -E" 731 # On the NeXT, cc -E runs the code through the compiler's parser, 732 # not just through cpp. 733 cat > conftest.$ac_ext <<EOF 734#line 735 "configure" 735#include "confdefs.h" 736#include <assert.h> 737Syntax Error 738EOF 739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 740{ (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 741ac_err=`grep -v '^ *+' conftest.out` 742if test -z "$ac_err"; then 743 : 744else 745 echo "$ac_err" >&5 746 echo "configure: failed program was:" >&5 747 cat conftest.$ac_ext >&5 748 rm -rf conftest* 749 CPP="${CC-cc} -E -traditional-cpp" 750 cat > conftest.$ac_ext <<EOF 751#line 752 "configure" 752#include "confdefs.h" 753#include <assert.h> 754Syntax Error 755EOF 756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 757{ (eval echo configure:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 758ac_err=`grep -v '^ *+' conftest.out` 759if test -z "$ac_err"; then 760 : 761else 762 echo "$ac_err" >&5 763 echo "configure: failed program was:" >&5 764 cat conftest.$ac_ext >&5 765 rm -rf conftest* 766 CPP=/lib/cpp 767fi 768rm -f conftest* 769fi 770rm -f conftest* 771 ac_cv_prog_CPP="$CPP" 772fi 773 CPP="$ac_cv_prog_CPP" 774else 775 ac_cv_prog_CPP="$CPP" 776fi 777echo "$ac_t""$CPP" 1>&6 778 779if test $ac_cv_prog_gcc = yes; then 780 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 781echo "configure:782: checking whether ${CC-cc} needs -traditional" >&5 782if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 783 echo $ac_n "(cached) $ac_c" 1>&6 784else 785 ac_pattern="Autoconf.*'x'" 786 cat > conftest.$ac_ext <<EOF 787#line 788 "configure" 788#include "confdefs.h" 789#include <sgtty.h> 790Autoconf TIOCGETP 791EOF 792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 793 egrep "$ac_pattern" >/dev/null 2>&1; then 794 rm -rf conftest* 795 ac_cv_prog_gcc_traditional=yes 796else 797 rm -rf conftest* 798 ac_cv_prog_gcc_traditional=no 799fi 800rm -f conftest* 801 802 803 if test $ac_cv_prog_gcc_traditional = no; then 804 cat > conftest.$ac_ext <<EOF 805#line 806 "configure" 806#include "confdefs.h" 807#include <termio.h> 808Autoconf TCGETA 809EOF 810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 811 egrep "$ac_pattern" >/dev/null 2>&1; then 812 rm -rf conftest* 813 ac_cv_prog_gcc_traditional=yes 814fi 815rm -f conftest* 816 817 fi 818fi 819 820echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 821 if test $ac_cv_prog_gcc_traditional = yes; then 822 CC="$CC -traditional" 823 fi 824fi 825 826ac_aux_dir= 827for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 828 if test -f $ac_dir/install-sh; then 829 ac_aux_dir=$ac_dir 830 ac_install_sh="$ac_aux_dir/install-sh -c" 831 break 832 elif test -f $ac_dir/install.sh; then 833 ac_aux_dir=$ac_dir 834 ac_install_sh="$ac_aux_dir/install.sh -c" 835 break 836 fi 837done 838if test -z "$ac_aux_dir"; then 839 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 840fi 841ac_config_guess=$ac_aux_dir/config.guess 842ac_config_sub=$ac_aux_dir/config.sub 843ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 844 845# Find a good install program. We prefer a C program (faster), 846# so one script is as good as another. But avoid the broken or 847# incompatible versions: 848# SysV /etc/install, /usr/sbin/install 849# SunOS /usr/etc/install 850# IRIX /sbin/install 851# AIX /bin/install 852# AFS /usr/afsws/bin/install, which mishandles nonexistent args 853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 854# ./install, which can be erroneously created by make from ./install.sh. 855echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 856echo "configure:857: checking for a BSD compatible install" >&5 857if test -z "$INSTALL"; then 858if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 859 echo $ac_n "(cached) $ac_c" 1>&6 860else 861 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 862 for ac_dir in $PATH; do 863 # Account for people who put trailing slashes in PATH elements. 864 case "$ac_dir/" in 865 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 866 *) 867 # OSF1 and SCO ODT 3.0 have their own names for install. 868 for ac_prog in ginstall installbsd scoinst install; do 869 if test -f $ac_dir/$ac_prog; then 870 if test $ac_prog = install && 871 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 872 # AIX install. It has an incompatible calling convention. 873 # OSF/1 installbsd also uses dspmsg, but is usable. 874 : 875 else 876 ac_cv_path_install="$ac_dir/$ac_prog -c" 877 break 2 878 fi 879 fi 880 done 881 ;; 882 esac 883 done 884 IFS="$ac_save_IFS" 885 886fi 887 if test "${ac_cv_path_install+set}" = set; then 888 INSTALL="$ac_cv_path_install" 889 else 890 # As a last resort, use the slow shell script. We don't cache a 891 # path for INSTALL within a source directory, because that will 892 # break other packages using the cache if that directory is 893 # removed, or if the path is relative. 894 INSTALL="$ac_install_sh" 895 fi 896fi 897echo "$ac_t""$INSTALL" 1>&6 898 899# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 900# It thinks the first close brace ends the variable substitution. 901test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 902 903test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 904 905 906echo $ac_n "checking for initscr in -lxcurses""... $ac_c" 1>&6 907echo "configure:908: checking for initscr in -lxcurses" >&5 908ac_lib_var=`echo xcurses'_'initscr | sed 'y%./+-%__p_%'` 909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 910 echo $ac_n "(cached) $ac_c" 1>&6 911else 912 ac_save_LIBS="$LIBS" 913LIBS="-lxcurses $LIBS" 914cat > conftest.$ac_ext <<EOF 915#line 916 "configure" 916#include "confdefs.h" 917/* Override any gcc2 internal prototype to avoid an error. */ 918/* We use char because int might match the return type of a gcc2 919 builtin and then its argument prototype would still apply. */ 920char initscr(); 921 922int main() { 923initscr() 924; return 0; } 925EOF 926if { (eval echo configure:927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 927 rm -rf conftest* 928 eval "ac_cv_lib_$ac_lib_var=yes" 929else 930 echo "configure: failed program was:" >&5 931 cat conftest.$ac_ext >&5 932 rm -rf conftest* 933 eval "ac_cv_lib_$ac_lib_var=no" 934fi 935rm -f conftest* 936LIBS="$ac_save_LIBS" 937 938fi 939if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 940 echo "$ac_t""yes" 1>&6 941 have_xcurses=yes 942else 943 echo "$ac_t""no" 1>&6 944have_xcurses=no 945fi 946 947echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 948echo "configure:949: checking for initscr in -lncurses" >&5 949ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 951 echo $ac_n "(cached) $ac_c" 1>&6 952else 953 ac_save_LIBS="$LIBS" 954LIBS="-lncurses $LIBS" 955cat > conftest.$ac_ext <<EOF 956#line 957 "configure" 957#include "confdefs.h" 958/* Override any gcc2 internal prototype to avoid an error. */ 959/* We use char because int might match the return type of a gcc2 960 builtin and then its argument prototype would still apply. */ 961char initscr(); 962 963int main() { 964initscr() 965; return 0; } 966EOF 967if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 968 rm -rf conftest* 969 eval "ac_cv_lib_$ac_lib_var=yes" 970else 971 echo "configure: failed program was:" >&5 972 cat conftest.$ac_ext >&5 973 rm -rf conftest* 974 eval "ac_cv_lib_$ac_lib_var=no" 975fi 976rm -f conftest* 977LIBS="$ac_save_LIBS" 978 979fi 980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 981 echo "$ac_t""yes" 1>&6 982 have_ncurses=yes 983else 984 echo "$ac_t""no" 1>&6 985have_ncurses=no 986fi 987 988echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6 989echo "configure:990: checking for initscr in -lcurses" >&5 990ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'` 991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 992 echo $ac_n "(cached) $ac_c" 1>&6 993else 994 ac_save_LIBS="$LIBS" 995LIBS="-lcurses $LIBS" 996cat > conftest.$ac_ext <<EOF 997#line 998 "configure" 998#include "confdefs.h" 999/* Override any gcc2 internal prototype to avoid an error. */ 1000/* We use char because int might match the return type of a gcc2 1001 builtin and then its argument prototype would still apply. */ 1002char initscr(); 1003 1004int main() { 1005initscr() 1006; return 0; } 1007EOF 1008if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1009 rm -rf conftest* 1010 eval "ac_cv_lib_$ac_lib_var=yes" 1011else 1012 echo "configure: failed program was:" >&5 1013 cat conftest.$ac_ext >&5 1014 rm -rf conftest* 1015 eval "ac_cv_lib_$ac_lib_var=no" 1016fi 1017rm -f conftest* 1018LIBS="$ac_save_LIBS" 1019 1020fi 1021if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1022 echo "$ac_t""yes" 1>&6 1023 have_curses=yes 1024else 1025 echo "$ac_t""no" 1>&6 1026have_curses=no 1027fi 1028 1029echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 1030echo "configure:1031: checking for tgetent in -ltermcap" >&5 1031ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 1032if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1033 echo $ac_n "(cached) $ac_c" 1>&6 1034else 1035 ac_save_LIBS="$LIBS" 1036LIBS="-ltermcap $LIBS" 1037cat > conftest.$ac_ext <<EOF 1038#line 1039 "configure" 1039#include "confdefs.h" 1040/* Override any gcc2 internal prototype to avoid an error. */ 1041/* We use char because int might match the return type of a gcc2 1042 builtin and then its argument prototype would still apply. */ 1043char tgetent(); 1044 1045int main() { 1046tgetent() 1047; return 0; } 1048EOF 1049if { (eval echo configure:1050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1050 rm -rf conftest* 1051 eval "ac_cv_lib_$ac_lib_var=yes" 1052else 1053 echo "configure: failed program was:" >&5 1054 cat conftest.$ac_ext >&5 1055 rm -rf conftest* 1056 eval "ac_cv_lib_$ac_lib_var=no" 1057fi 1058rm -f conftest* 1059LIBS="$ac_save_LIBS" 1060 1061fi 1062if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1063 echo "$ac_t""yes" 1>&6 1064 have_termcap=yes 1065else 1066 echo "$ac_t""no" 1>&6 1067have_termcap=no 1068fi 1069 1070echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6 1071echo "configure:1072: checking for tgetent in -ltermlib" >&5 1072ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'` 1073if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1074 echo $ac_n "(cached) $ac_c" 1>&6 1075else 1076 ac_save_LIBS="$LIBS" 1077LIBS="-ltermlib $LIBS" 1078cat > conftest.$ac_ext <<EOF 1079#line 1080 "configure" 1080#include "confdefs.h" 1081/* Override any gcc2 internal prototype to avoid an error. */ 1082/* We use char because int might match the return type of a gcc2 1083 builtin and then its argument prototype would still apply. */ 1084char tgetent(); 1085 1086int main() { 1087tgetent() 1088; return 0; } 1089EOF 1090if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1091 rm -rf conftest* 1092 eval "ac_cv_lib_$ac_lib_var=yes" 1093else 1094 echo "configure: failed program was:" >&5 1095 cat conftest.$ac_ext >&5 1096 rm -rf conftest* 1097 eval "ac_cv_lib_$ac_lib_var=no" 1098fi 1099rm -f conftest* 1100LIBS="$ac_save_LIBS" 1101 1102fi 1103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1104 echo "$ac_t""yes" 1>&6 1105 have_termlib=yes 1106else 1107 echo "$ac_t""no" 1>&6 1108have_termlib=no 1109fi 1110 1111echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6 1112echo "configure:1113: checking for regcmp in -lgen" >&5 1113ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'` 1114if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1115 echo $ac_n "(cached) $ac_c" 1>&6 1116else 1117 ac_save_LIBS="$LIBS" 1118LIBS="-lgen $LIBS" 1119cat > conftest.$ac_ext <<EOF 1120#line 1121 "configure" 1121#include "confdefs.h" 1122/* Override any gcc2 internal prototype to avoid an error. */ 1123/* We use char because int might match the return type of a gcc2 1124 builtin and then its argument prototype would still apply. */ 1125char regcmp(); 1126 1127int main() { 1128regcmp() 1129; return 0; } 1130EOF 1131if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1132 rm -rf conftest* 1133 eval "ac_cv_lib_$ac_lib_var=yes" 1134else 1135 echo "configure: failed program was:" >&5 1136 cat conftest.$ac_ext >&5 1137 rm -rf conftest* 1138 eval "ac_cv_lib_$ac_lib_var=no" 1139fi 1140rm -f conftest* 1141LIBS="$ac_save_LIBS" 1142 1143fi 1144if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1145 echo "$ac_t""yes" 1>&6 1146 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1148 cat >> confdefs.h <<EOF 1149#define $ac_tr_lib 1 1150EOF 1151 1152 LIBS="-lgen $LIBS" 1153 1154else 1155 echo "$ac_t""no" 1>&6 1156fi 1157 1158echo $ac_n "checking for regcmp in -lintl""... $ac_c" 1>&6 1159echo "configure:1160: checking for regcmp in -lintl" >&5 1160ac_lib_var=`echo intl'_'regcmp | sed 'y%./+-%__p_%'` 1161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1162 echo $ac_n "(cached) $ac_c" 1>&6 1163else 1164 ac_save_LIBS="$LIBS" 1165LIBS="-lintl $LIBS" 1166cat > conftest.$ac_ext <<EOF 1167#line 1168 "configure" 1168#include "confdefs.h" 1169/* Override any gcc2 internal prototype to avoid an error. */ 1170/* We use char because int might match the return type of a gcc2 1171 builtin and then its argument prototype would still apply. */ 1172char regcmp(); 1173 1174int main() { 1175regcmp() 1176; return 0; } 1177EOF 1178if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1179 rm -rf conftest* 1180 eval "ac_cv_lib_$ac_lib_var=yes" 1181else 1182 echo "configure: failed program was:" >&5 1183 cat conftest.$ac_ext >&5 1184 rm -rf conftest* 1185 eval "ac_cv_lib_$ac_lib_var=no" 1186fi 1187rm -f conftest* 1188LIBS="$ac_save_LIBS" 1189 1190fi 1191if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1192 echo "$ac_t""yes" 1>&6 1193 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1195 cat >> confdefs.h <<EOF 1196#define $ac_tr_lib 1 1197EOF 1198 1199 LIBS="-lintl $LIBS" 1200 1201else 1202 echo "$ac_t""no" 1>&6 1203fi 1204 1205echo $ac_n "checking for regcmp in -lPW""... $ac_c" 1>&6 1206echo "configure:1207: checking for regcmp in -lPW" >&5 1207ac_lib_var=`echo PW'_'regcmp | sed 'y%./+-%__p_%'` 1208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1209 echo $ac_n "(cached) $ac_c" 1>&6 1210else 1211 ac_save_LIBS="$LIBS" 1212LIBS="-lPW $LIBS" 1213cat > conftest.$ac_ext <<EOF 1214#line 1215 "configure" 1215#include "confdefs.h" 1216/* Override any gcc2 internal prototype to avoid an error. */ 1217/* We use char because int might match the return type of a gcc2 1218 builtin and then its argument prototype would still apply. */ 1219char regcmp(); 1220 1221int main() { 1222regcmp() 1223; return 0; } 1224EOF 1225if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1226 rm -rf conftest* 1227 eval "ac_cv_lib_$ac_lib_var=yes" 1228else 1229 echo "configure: failed program was:" >&5 1230 cat conftest.$ac_ext >&5 1231 rm -rf conftest* 1232 eval "ac_cv_lib_$ac_lib_var=no" 1233fi 1234rm -f conftest* 1235LIBS="$ac_save_LIBS" 1236 1237fi 1238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1239 echo "$ac_t""yes" 1>&6 1240 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1242 cat >> confdefs.h <<EOF 1243#define $ac_tr_lib 1 1244EOF 1245 1246 LIBS="-lPW $LIBS" 1247 1248else 1249 echo "$ac_t""no" 1>&6 1250fi 1251 1252 1253echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6 1254echo "configure:1255: checking for working terminal libraries" >&5 1255TERMLIBS= 1256 1257curses_broken=0 1258if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then 1259if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then 1260 curses_broken=1 1261fi 1262fi 1263 1264if test $curses_broken = 0; then 1265if test "x$TERMLIBS" = x; then 1266 if test $have_xcurses = yes; then 1267 TERMLIBS="-lxcurses" 1268 SAVE_LIBS=$LIBS 1269 LIBS="$LIBS $TERMLIBS" 1270 cat > conftest.$ac_ext <<EOF 1271#line 1272 "configure" 1272#include "confdefs.h" 1273 1274int main() { 1275tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1276; return 0; } 1277EOF 1278if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1279 rm -rf conftest* 1280 termok=yes 1281else 1282 echo "configure: failed program was:" >&5 1283 cat conftest.$ac_ext >&5 1284 rm -rf conftest* 1285 termok=no 1286fi 1287rm -f conftest* 1288 LIBS=$SAVE_LIBS 1289 if test $termok = no; then TERMLIBS=""; fi 1290 fi 1291fi 1292 1293if test "x$TERMLIBS" = x; then 1294 if test $have_ncurses = yes; then 1295 TERMLIBS="-lncurses" 1296 SAVE_LIBS=$LIBS 1297 LIBS="$LIBS $TERMLIBS" 1298 cat > conftest.$ac_ext <<EOF 1299#line 1300 "configure" 1300#include "confdefs.h" 1301 1302int main() { 1303tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1304; return 0; } 1305EOF 1306if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1307 rm -rf conftest* 1308 termok=yes 1309else 1310 echo "configure: failed program was:" >&5 1311 cat conftest.$ac_ext >&5 1312 rm -rf conftest* 1313 termok=no 1314fi 1315rm -f conftest* 1316 LIBS=$SAVE_LIBS 1317 if test $termok = no; then TERMLIBS=""; fi 1318 fi 1319fi 1320 1321if test "x$TERMLIBS" = x; then 1322 if test $have_curses = yes; then 1323 TERMLIBS="-lcurses" 1324 SAVE_LIBS=$LIBS 1325 LIBS="$LIBS $TERMLIBS" 1326 cat > conftest.$ac_ext <<EOF 1327#line 1328 "configure" 1328#include "confdefs.h" 1329 1330int main() { 1331tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1332; return 0; } 1333EOF 1334if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1335 rm -rf conftest* 1336 termok=yes 1337else 1338 echo "configure: failed program was:" >&5 1339 cat conftest.$ac_ext >&5 1340 rm -rf conftest* 1341 termok=no 1342fi 1343rm -f conftest* 1344 LIBS=$SAVE_LIBS 1345 if test $termok = no; then TERMLIBS=""; fi 1346 fi 1347fi 1348 1349if test "x$TERMLIBS" = x; then 1350 if test $have_curses = yes; then 1351 if test $have_termcap = yes; then 1352 TERMLIBS="-lcurses -ltermcap" 1353 SAVE_LIBS=$LIBS 1354 LIBS="$LIBS $TERMLIBS" 1355 cat > conftest.$ac_ext <<EOF 1356#line 1357 "configure" 1357#include "confdefs.h" 1358 1359int main() { 1360tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1361; return 0; } 1362EOF 1363if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1364 rm -rf conftest* 1365 termok=yes 1366else 1367 echo "configure: failed program was:" >&5 1368 cat conftest.$ac_ext >&5 1369 rm -rf conftest* 1370 termok=no 1371fi 1372rm -f conftest* 1373 LIBS=$SAVE_LIBS 1374 if test $termok = no; then TERMLIBS=""; fi 1375 fi 1376 fi 1377fi 1378fi 1379 1380if test "x$TERMLIBS" = x; then 1381 if test $have_termcap = yes; then 1382 TERMLIBS="-ltermcap" 1383 SAVE_LIBS=$LIBS 1384 LIBS="$LIBS $TERMLIBS" 1385 cat > conftest.$ac_ext <<EOF 1386#line 1387 "configure" 1387#include "confdefs.h" 1388 1389int main() { 1390tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1391; return 0; } 1392EOF 1393if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1394 rm -rf conftest* 1395 termok=yes 1396else 1397 echo "configure: failed program was:" >&5 1398 cat conftest.$ac_ext >&5 1399 rm -rf conftest* 1400 termok=no 1401fi 1402rm -f conftest* 1403 LIBS=$SAVE_LIBS 1404 if test $termok = no; then TERMLIBS=""; fi 1405 fi 1406fi 1407 1408if test "x$TERMLIBS" = x; then 1409 if test $have_termlib = yes; then 1410 TERMLIBS="-lcurses -ltermlib" 1411 SAVE_LIBS=$LIBS 1412 LIBS="$LIBS $TERMLIBS" 1413 cat > conftest.$ac_ext <<EOF 1414#line 1415 "configure" 1415#include "confdefs.h" 1416 1417int main() { 1418tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 1419; return 0; } 1420EOF 1421if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1422 rm -rf conftest* 1423 termok=yes 1424else 1425 echo "configure: failed program was:" >&5 1426 cat conftest.$ac_ext >&5 1427 rm -rf conftest* 1428 termok=no 1429fi 1430rm -f conftest* 1431 LIBS=$SAVE_LIBS 1432 if test $termok = no; then TERMLIBS=""; fi 1433 fi 1434fi 1435 1436if test "x$TERMLIBS" = x; then 1437 echo "$ac_t""Cannot find terminal libraries - configure failed" 1>&6 1438 exit 1 1439fi 1440echo "$ac_t""using $TERMLIBS" 1>&6 1441LIBS="$LIBS $TERMLIBS" 1442 1443 1444for ac_hdr in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h 1445do 1446ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1447echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1448echo "configure:1449: checking for $ac_hdr" >&5 1449if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1450 echo $ac_n "(cached) $ac_c" 1>&6 1451else 1452 cat > conftest.$ac_ext <<EOF 1453#line 1454 "configure" 1454#include "confdefs.h" 1455#include <$ac_hdr> 1456EOF 1457ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1458{ (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1459ac_err=`grep -v '^ *+' conftest.out` 1460if test -z "$ac_err"; then 1461 rm -rf conftest* 1462 eval "ac_cv_header_$ac_safe=yes" 1463else 1464 echo "$ac_err" >&5 1465 echo "configure: failed program was:" >&5 1466 cat conftest.$ac_ext >&5 1467 rm -rf conftest* 1468 eval "ac_cv_header_$ac_safe=no" 1469fi 1470rm -f conftest* 1471fi 1472if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1473 echo "$ac_t""yes" 1>&6 1474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1475 cat >> confdefs.h <<EOF 1476#define $ac_tr_hdr 1 1477EOF 1478 1479else 1480 echo "$ac_t""no" 1>&6 1481fi 1482done 1483 1484 1485echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1486echo "configure:1487: checking for ANSI C header files" >&5 1487if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1488 echo $ac_n "(cached) $ac_c" 1>&6 1489else 1490 cat > conftest.$ac_ext <<EOF 1491#line 1492 "configure" 1492#include "confdefs.h" 1493#include <stdlib.h> 1494#include <stdarg.h> 1495#include <string.h> 1496#include <float.h> 1497EOF 1498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1499{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1500ac_err=`grep -v '^ *+' conftest.out` 1501if test -z "$ac_err"; then 1502 rm -rf conftest* 1503 ac_cv_header_stdc=yes 1504else 1505 echo "$ac_err" >&5 1506 echo "configure: failed program was:" >&5 1507 cat conftest.$ac_ext >&5 1508 rm -rf conftest* 1509 ac_cv_header_stdc=no 1510fi 1511rm -f conftest* 1512 1513if test $ac_cv_header_stdc = yes; then 1514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1515cat > conftest.$ac_ext <<EOF 1516#line 1517 "configure" 1517#include "confdefs.h" 1518#include <string.h> 1519EOF 1520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1521 egrep "memchr" >/dev/null 2>&1; then 1522 : 1523else 1524 rm -rf conftest* 1525 ac_cv_header_stdc=no 1526fi 1527rm -f conftest* 1528 1529fi 1530 1531if test $ac_cv_header_stdc = yes; then 1532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1533cat > conftest.$ac_ext <<EOF 1534#line 1535 "configure" 1535#include "confdefs.h" 1536#include <stdlib.h> 1537EOF 1538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1539 egrep "free" >/dev/null 2>&1; then 1540 : 1541else 1542 rm -rf conftest* 1543 ac_cv_header_stdc=no 1544fi 1545rm -f conftest* 1546 1547fi 1548 1549if test $ac_cv_header_stdc = yes; then 1550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1551if test "$cross_compiling" = yes; then 1552 : 1553else 1554 cat > conftest.$ac_ext <<EOF 1555#line 1556 "configure" 1556#include "confdefs.h" 1557#include <ctype.h> 1558#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1559#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1560#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1561int main () { int i; for (i = 0; i < 256; i++) 1562if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1563exit (0); } 1564 1565EOF 1566if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1567then 1568 : 1569else 1570 echo "configure: failed program was:" >&5 1571 cat conftest.$ac_ext >&5 1572 rm -fr conftest* 1573 ac_cv_header_stdc=no 1574fi 1575rm -fr conftest* 1576fi 1577 1578fi 1579fi 1580 1581echo "$ac_t""$ac_cv_header_stdc" 1>&6 1582if test $ac_cv_header_stdc = yes; then 1583 cat >> confdefs.h <<\EOF 1584#define STDC_HEADERS 1 1585EOF 1586 1587fi 1588 1589echo $ac_n "checking for off_t""... $ac_c" 1>&6 1590echo "configure:1591: checking for off_t" >&5 1591if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1592 echo $ac_n "(cached) $ac_c" 1>&6 1593else 1594 cat > conftest.$ac_ext <<EOF 1595#line 1596 "configure" 1596#include "confdefs.h" 1597#include <sys/types.h> 1598#if STDC_HEADERS 1599#include <stdlib.h> 1600#include <stddef.h> 1601#endif 1602EOF 1603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1604 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1605 rm -rf conftest* 1606 ac_cv_type_off_t=yes 1607else 1608 rm -rf conftest* 1609 ac_cv_type_off_t=no 1610fi 1611rm -f conftest* 1612 1613fi 1614echo "$ac_t""$ac_cv_type_off_t" 1>&6 1615if test $ac_cv_type_off_t = no; then 1616 cat >> confdefs.h <<\EOF 1617#define off_t long 1618EOF 1619 1620fi 1621 1622echo $ac_n "checking for void""... $ac_c" 1>&6 1623echo "configure:1624: checking for void" >&5 1624cat > conftest.$ac_ext <<EOF 1625#line 1626 "configure" 1626#include "confdefs.h" 1627 1628int main() { 1629void *foo = 0; 1630; return 0; } 1631EOF 1632if { (eval echo configure:1633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1633 rm -rf conftest* 1634 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1635#define HAVE_VOID 1 1636EOF 1637 1638else 1639 echo "configure: failed program was:" >&5 1640 cat conftest.$ac_ext >&5 1641 rm -rf conftest* 1642 echo "$ac_t""no" 1>&6 1643fi 1644rm -f conftest* 1645echo $ac_n "checking for const""... $ac_c" 1>&6 1646echo "configure:1647: checking for const" >&5 1647cat > conftest.$ac_ext <<EOF 1648#line 1649 "configure" 1649#include "confdefs.h" 1650 1651int main() { 1652const int foo = 0; 1653; return 0; } 1654EOF 1655if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1656 rm -rf conftest* 1657 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1658#define HAVE_CONST 1 1659EOF 1660 1661else 1662 echo "configure: failed program was:" >&5 1663 cat conftest.$ac_ext >&5 1664 rm -rf conftest* 1665 echo "$ac_t""no" 1>&6 1666fi 1667rm -f conftest* 1668echo $ac_n "checking for time_t""... $ac_c" 1>&6 1669echo "configure:1670: checking for time_t" >&5 1670cat > conftest.$ac_ext <<EOF 1671#line 1672 "configure" 1672#include "confdefs.h" 1673#include <time.h> 1674int main() { 1675time_t t = 0; 1676; return 0; } 1677EOF 1678if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1679 rm -rf conftest* 1680 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1681#define HAVE_TIME_T 1 1682EOF 1683 1684else 1685 echo "configure: failed program was:" >&5 1686 cat conftest.$ac_ext >&5 1687 rm -rf conftest* 1688 echo "$ac_t""no" 1>&6 1689fi 1690rm -f conftest* 1691 1692echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1693echo "configure:1694: checking return type of signal handlers" >&5 1694if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1695 echo $ac_n "(cached) $ac_c" 1>&6 1696else 1697 cat > conftest.$ac_ext <<EOF 1698#line 1699 "configure" 1699#include "confdefs.h" 1700#include <sys/types.h> 1701#include <signal.h> 1702#ifdef signal 1703#undef signal 1704#endif 1705#ifdef __cplusplus 1706extern "C" void (*signal (int, void (*)(int)))(int); 1707#else 1708void (*signal ()) (); 1709#endif 1710 1711int main() { 1712int i; 1713; return 0; } 1714EOF 1715if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1716 rm -rf conftest* 1717 ac_cv_type_signal=void 1718else 1719 echo "configure: failed program was:" >&5 1720 cat conftest.$ac_ext >&5 1721 rm -rf conftest* 1722 ac_cv_type_signal=int 1723fi 1724rm -f conftest* 1725fi 1726 1727echo "$ac_t""$ac_cv_type_signal" 1>&6 1728cat >> confdefs.h <<EOF 1729#define RETSIGTYPE $ac_cv_type_signal 1730EOF 1731 1732 1733for ac_func in memcpy popen _setjmp sigsetmask stat strchr strstr system 1734do 1735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1736echo "configure:1737: checking for $ac_func" >&5 1737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1738 echo $ac_n "(cached) $ac_c" 1>&6 1739else 1740 cat > conftest.$ac_ext <<EOF 1741#line 1742 "configure" 1742#include "confdefs.h" 1743/* System header to define __stub macros and hopefully few prototypes, 1744 which can conflict with char $ac_func(); below. */ 1745#include <assert.h> 1746/* Override any gcc2 internal prototype to avoid an error. */ 1747/* We use char because int might match the return type of a gcc2 1748 builtin and then its argument prototype would still apply. */ 1749char $ac_func(); 1750 1751int main() { 1752 1753/* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1757choke me 1758#else 1759$ac_func(); 1760#endif 1761 1762; return 0; } 1763EOF 1764if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1765 rm -rf conftest* 1766 eval "ac_cv_func_$ac_func=yes" 1767else 1768 echo "configure: failed program was:" >&5 1769 cat conftest.$ac_ext >&5 1770 rm -rf conftest* 1771 eval "ac_cv_func_$ac_func=no" 1772fi 1773rm -f conftest* 1774fi 1775 1776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1777 echo "$ac_t""yes" 1>&6 1778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1779 cat >> confdefs.h <<EOF 1780#define $ac_tr_func 1 1781EOF 1782 1783else 1784 echo "$ac_t""no" 1>&6 1785fi 1786done 1787 1788 1789echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6 1790echo "configure:1791: checking for tcgetattr" >&5 1791if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then 1792 echo $ac_n "(cached) $ac_c" 1>&6 1793else 1794 cat > conftest.$ac_ext <<EOF 1795#line 1796 "configure" 1796#include "confdefs.h" 1797/* System header to define __stub macros and hopefully few prototypes, 1798 which can conflict with char tcgetattr(); below. */ 1799#include <assert.h> 1800/* Override any gcc2 internal prototype to avoid an error. */ 1801/* We use char because int might match the return type of a gcc2 1802 builtin and then its argument prototype would still apply. */ 1803char tcgetattr(); 1804 1805int main() { 1806 1807/* The GNU C library defines this for functions which it implements 1808 to always fail with ENOSYS. Some functions are actually named 1809 something starting with __ and the normal name is an alias. */ 1810#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr) 1811choke me 1812#else 1813tcgetattr(); 1814#endif 1815 1816; return 0; } 1817EOF 1818if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1819 rm -rf conftest* 1820 eval "ac_cv_func_tcgetattr=yes" 1821else 1822 echo "configure: failed program was:" >&5 1823 cat conftest.$ac_ext >&5 1824 rm -rf conftest* 1825 eval "ac_cv_func_tcgetattr=no" 1826fi 1827rm -f conftest* 1828fi 1829 1830if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then 1831 echo "$ac_t""yes" 1>&6 1832 cat >> confdefs.h <<\EOF 1833#define HAVE_TERMIOS_FUNCS 1 1834EOF 1835 1836else 1837 echo "$ac_t""no" 1>&6 1838fi 1839 1840 1841echo $ac_n "checking for fileno""... $ac_c" 1>&6 1842echo "configure:1843: checking for fileno" >&5 1843cat > conftest.$ac_ext <<EOF 1844#line 1845 "configure" 1845#include "confdefs.h" 1846 1847#if HAVE_STDIO_H 1848#include <stdio.h> 1849#endif 1850int main() { 1851static int x; x = fileno(stdin); 1852; return 0; } 1853EOF 1854if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1855 rm -rf conftest* 1856 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1857#define HAVE_FILENO 1 1858EOF 1859 1860else 1861 echo "configure: failed program was:" >&5 1862 cat conftest.$ac_ext >&5 1863 rm -rf conftest* 1864 echo "$ac_t""no" 1>&6 1865fi 1866rm -f conftest* 1867 1868echo $ac_n "checking for strerror""... $ac_c" 1>&6 1869echo "configure:1870: checking for strerror" >&5 1870cat > conftest.$ac_ext <<EOF 1871#line 1872 "configure" 1872#include "confdefs.h" 1873 1874#if HAVE_STDIO_H 1875#include <stdio.h> 1876#endif 1877#if HAVE_STRING_H 1878#include <string.h> 1879#endif 1880#if HAVE_ERRNO_H 1881#include <errno.h> 1882#endif 1883int main() { 1884static char *x; x = strerror(0); 1885; return 0; } 1886EOF 1887if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1888 rm -rf conftest* 1889 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1890#define HAVE_STRERROR 1 1891EOF 1892 1893else 1894 echo "configure: failed program was:" >&5 1895 cat conftest.$ac_ext >&5 1896 rm -rf conftest* 1897 echo "$ac_t""no" 1>&6 1898fi 1899rm -f conftest* 1900 1901echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6 1902echo "configure:1903: checking for sys_errlist" >&5 1903cat > conftest.$ac_ext <<EOF 1904#line 1905 "configure" 1905#include "confdefs.h" 1906 1907int main() { 1908extern char *sys_errlist[]; static char **x; x = sys_errlist; 1909; return 0; } 1910EOF 1911if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1912 rm -rf conftest* 1913 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1914#define HAVE_SYS_ERRLIST 1 1915EOF 1916 1917else 1918 echo "configure: failed program was:" >&5 1919 cat conftest.$ac_ext >&5 1920 rm -rf conftest* 1921 echo "$ac_t""no" 1>&6 1922fi 1923rm -f conftest* 1924 1925have_errno=no 1926echo $ac_n "checking for errno""... $ac_c" 1>&6 1927echo "configure:1928: checking for errno" >&5 1928cat > conftest.$ac_ext <<EOF 1929#line 1930 "configure" 1930#include "confdefs.h" 1931 1932#if HAVE_ERRNO_H 1933#include <errno.h> 1934#endif 1935int main() { 1936static int x; x = errno; 1937; return 0; } 1938EOF 1939if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1940 rm -rf conftest* 1941 echo "$ac_t""yes - in errno.h" 1>&6; cat >> confdefs.h <<\EOF 1942#define HAVE_ERRNO 1 1943EOF 1944 have_errno=yes 1945else 1946 echo "configure: failed program was:" >&5 1947 cat conftest.$ac_ext >&5 1948fi 1949rm -f conftest* 1950if test $have_errno = no; then 1951cat > conftest.$ac_ext <<EOF 1952#line 1953 "configure" 1953#include "confdefs.h" 1954 1955#if HAVE_ERRNO_H 1956#include <errno.h> 1957#endif 1958int main() { 1959extern int errno; static int x; x = errno; 1960; return 0; } 1961EOF 1962if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1963 rm -rf conftest* 1964 echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF 1965#define HAVE_ERRNO 1 1966EOF 1967 cat >> confdefs.h <<\EOF 1968#define MUST_DEFINE_ERRNO 1 1969EOF 1970 1971else 1972 echo "configure: failed program was:" >&5 1973 cat conftest.$ac_ext >&5 1974 rm -rf conftest* 1975 echo "$ac_t""no" 1>&6 1976fi 1977rm -f conftest* 1978fi 1979 1980echo $ac_n "checking for locale""... $ac_c" 1>&6 1981echo "configure:1982: checking for locale" >&5 1982cat > conftest.$ac_ext <<EOF 1983#line 1984 "configure" 1984#include "confdefs.h" 1985#include <locale.h> 1986#include <ctype.h> 1987int main() { 1988setlocale(LC_CTYPE,""); isprint(0); iscntrl(0); 1989; return 0; } 1990EOF 1991if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1992 rm -rf conftest* 1993 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1994#define HAVE_LOCALE 1 1995EOF 1996 1997else 1998 echo "configure: failed program was:" >&5 1999 cat conftest.$ac_ext >&5 2000 rm -rf conftest* 2001 echo "$ac_t""no" 1>&6 2002fi 2003rm -f conftest* 2004echo $ac_n "checking for ctype functions""... $ac_c" 1>&6 2005echo "configure:2006: checking for ctype functions" >&5 2006cat > conftest.$ac_ext <<EOF 2007#line 2008 "configure" 2008#include "confdefs.h" 2009 2010#if HAVE_CTYPE_H 2011#include <ctype.h> 2012#endif 2013int main() { 2014static int x; x = isupper(x); x = tolower(x); x = toupper(x); 2015; return 0; } 2016EOF 2017if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2018 rm -rf conftest* 2019 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 2020#define HAVE_UPPER_LOWER 1 2021EOF 2022 2023else 2024 echo "configure: failed program was:" >&5 2025 cat conftest.$ac_ext >&5 2026 rm -rf conftest* 2027 echo "$ac_t""no" 1>&6 2028fi 2029rm -f conftest* 2030 2031have_ospeed=no 2032echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6 2033echo "configure:2034: checking termcap for ospeed" >&5 2034cat > conftest.$ac_ext <<EOF 2035#line 2036 "configure" 2036#include "confdefs.h" 2037 2038#include <sys/types.h> 2039#if HAVE_TERMIOS_H 2040#include <termios.h> 2041#endif 2042#if HAVE_TERMCAP_H 2043#include <termcap.h> 2044#endif 2045int main() { 2046ospeed = 0; 2047; return 0; } 2048EOF 2049if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2050 rm -rf conftest* 2051 echo "$ac_t""yes - in termcap.h" 1>&6; cat >> confdefs.h <<\EOF 2052#define HAVE_OSPEED 1 2053EOF 2054 have_ospeed=yes 2055else 2056 echo "configure: failed program was:" >&5 2057 cat conftest.$ac_ext >&5 2058fi 2059rm -f conftest* 2060if test $have_ospeed = no; then 2061cat > conftest.$ac_ext <<EOF 2062#line 2063 "configure" 2063#include "confdefs.h" 2064 2065int main() { 2066extern short ospeed; ospeed = 0; 2067; return 0; } 2068EOF 2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2070 rm -rf conftest* 2071 echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF 2072#define HAVE_OSPEED 1 2073EOF 2074 cat >> confdefs.h <<\EOF 2075#define MUST_DEFINE_OSPEED 1 2076EOF 2077 2078else 2079 echo "configure: failed program was:" >&5 2080 cat conftest.$ac_ext >&5 2081 rm -rf conftest* 2082 echo "$ac_t""no" 1>&6 2083fi 2084rm -f conftest* 2085fi 2086 2087have_regex=no 2088have_posix_regex=unknown 2089echo $ac_n "checking for regcomp""... $ac_c" 1>&6 2090echo "configure:2091: checking for regcomp" >&5 2091 2092WANT_REGEX=auto 2093# Check whether --with-regex or --without-regex was given. 2094if test "${with_regex+set}" = set; then 2095 withval="$with_regex" 2096 WANT_REGEX="$withval" 2097fi 2098 2099 2100if test $have_regex = no; then 2101if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then 2102if test "$cross_compiling" = yes; then 2103 have_posix_regex=unknown 2104else 2105 cat > conftest.$ac_ext <<EOF 2106#line 2107 "configure" 2107#include "confdefs.h" 2108 2109#include <sys/types.h> 2110#include <regex.h> 2111main() { regex_t r; regmatch_t rm; char *text = "xabcy"; 2112if (regcomp(&r, "abc", 0)) exit(1); 2113if (regexec(&r, text, 1, &rm, 0)) exit(1); 2114#ifndef __WATCOMC__ 2115if (rm.rm_so != 1) exit(1); /* check for correct offset */ 2116#else 2117if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */ 2118#endif 2119exit(0); } 2120EOF 2121if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2122then 2123 have_posix_regex=yes 2124else 2125 echo "configure: failed program was:" >&5 2126 cat conftest.$ac_ext >&5 2127 rm -fr conftest* 2128 have_posix_regex=no 2129fi 2130rm -fr conftest* 2131fi 2132 2133if test $have_posix_regex = yes; then 2134 echo "$ac_t""using POSIX regcomp" 1>&6 2135 cat >> confdefs.h <<\EOF 2136#define HAVE_POSIX_REGCOMP 1 2137EOF 2138 2139 have_regex=yes 2140elif test $have_posix_regex = unknown; then 2141 cat > conftest.$ac_ext <<EOF 2142#line 2143 "configure" 2143#include "confdefs.h" 2144 2145#include <sys/types.h> 2146#include <regex.h> 2147int main() { 2148regex_t *r; regfree(r); 2149; return 0; } 2150EOF 2151if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2152 rm -rf conftest* 2153 echo "$ac_t""using POSIX regcomp" 1>&6 2154 cat >> confdefs.h <<\EOF 2155#define HAVE_POSIX_REGCOMP 1 2156EOF 2157 have_regex=yes 2158else 2159 echo "configure: failed program was:" >&5 2160 cat conftest.$ac_ext >&5 2161fi 2162rm -f conftest* 2163else 2164 echo "$ac_t""no" 1>&6 2165fi 2166fi 2167fi 2168 2169if test $have_regex = no; then 2170if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then 2171echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6 2172echo "configure:2173: checking for pcre_compile in -lpcre" >&5 2173ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'` 2174if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2175 echo $ac_n "(cached) $ac_c" 1>&6 2176else 2177 ac_save_LIBS="$LIBS" 2178LIBS="-lpcre $LIBS" 2179cat > conftest.$ac_ext <<EOF 2180#line 2181 "configure" 2181#include "confdefs.h" 2182/* Override any gcc2 internal prototype to avoid an error. */ 2183/* We use char because int might match the return type of a gcc2 2184 builtin and then its argument prototype would still apply. */ 2185char pcre_compile(); 2186 2187int main() { 2188pcre_compile() 2189; return 0; } 2190EOF 2191if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2192 rm -rf conftest* 2193 eval "ac_cv_lib_$ac_lib_var=yes" 2194else 2195 echo "configure: failed program was:" >&5 2196 cat conftest.$ac_ext >&5 2197 rm -rf conftest* 2198 eval "ac_cv_lib_$ac_lib_var=no" 2199fi 2200rm -f conftest* 2201LIBS="$ac_save_LIBS" 2202 2203fi 2204if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2205 echo "$ac_t""yes" 1>&6 2206 echo "$ac_t""using pcre" 1>&6; cat >> confdefs.h <<\EOF 2207#define HAVE_PCRE 1 2208EOF 2209 LIBS="$LIBS -lpcre" have_regex=yes 2210else 2211 echo "$ac_t""no" 1>&6 2212fi 2213 2214fi 2215fi 2216 2217if test $have_regex = no; then 2218if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then 2219echo $ac_n "checking for regcmp""... $ac_c" 1>&6 2220echo "configure:2221: checking for regcmp" >&5 2221if eval "test \"`echo '$''{'ac_cv_func_regcmp'+set}'`\" = set"; then 2222 echo $ac_n "(cached) $ac_c" 1>&6 2223else 2224 cat > conftest.$ac_ext <<EOF 2225#line 2226 "configure" 2226#include "confdefs.h" 2227/* System header to define __stub macros and hopefully few prototypes, 2228 which can conflict with char regcmp(); below. */ 2229#include <assert.h> 2230/* Override any gcc2 internal prototype to avoid an error. */ 2231/* We use char because int might match the return type of a gcc2 2232 builtin and then its argument prototype would still apply. */ 2233char regcmp(); 2234 2235int main() { 2236 2237/* The GNU C library defines this for functions which it implements 2238 to always fail with ENOSYS. Some functions are actually named 2239 something starting with __ and the normal name is an alias. */ 2240#if defined (__stub_regcmp) || defined (__stub___regcmp) 2241choke me 2242#else 2243regcmp(); 2244#endif 2245 2246; return 0; } 2247EOF 2248if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2249 rm -rf conftest* 2250 eval "ac_cv_func_regcmp=yes" 2251else 2252 echo "configure: failed program was:" >&5 2253 cat conftest.$ac_ext >&5 2254 rm -rf conftest* 2255 eval "ac_cv_func_regcmp=no" 2256fi 2257rm -f conftest* 2258fi 2259 2260if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then 2261 echo "$ac_t""yes" 1>&6 2262 echo "$ac_t""using regcmp" 1>&6; cat >> confdefs.h <<\EOF 2263#define HAVE_REGCMP 1 2264EOF 2265 have_regex=yes 2266else 2267 echo "$ac_t""no" 1>&6 2268fi 2269 2270fi 2271fi 2272 2273if test $have_regex = no; then 2274if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then 2275cat > conftest.$ac_ext <<EOF 2276#line 2277 "configure" 2277#include "confdefs.h" 2278 2279#include "regexp.h" 2280int main() { 2281regcomp(""); 2282; return 0; } 2283EOF 2284if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2285 rm -rf conftest* 2286 echo "$ac_t""using V8 regcomp" 1>&6; cat >> confdefs.h <<\EOF 2287#define HAVE_V8_REGCOMP 1 2288EOF 2289 have_regex=yes 2290else 2291 echo "configure: failed program was:" >&5 2292 cat conftest.$ac_ext >&5 2293fi 2294rm -f conftest* 2295fi 2296fi 2297 2298if test $have_regex = no && test -f ${srcdir}/regexp.c; then 2299if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then 2300echo "$ac_t""using V8 regcomp -- local source" 1>&6; cat >> confdefs.h <<\EOF 2301#define HAVE_V8_REGCOMP 1 2302EOF 2303 cat >> confdefs.h <<\EOF 2304#define HAVE_REGEXEC2 1 2305EOF 2306 REGEX_O='regexp.$(O)' have_regex=yes 2307fi 2308fi 2309 2310if test $have_regex = no; then 2311if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then 2312echo "$ac_t""using re_comp" 1>&6; echo $ac_n "checking for re_comp""... $ac_c" 1>&6 2313echo "configure:2314: checking for re_comp" >&5 2314if eval "test \"`echo '$''{'ac_cv_func_re_comp'+set}'`\" = set"; then 2315 echo $ac_n "(cached) $ac_c" 1>&6 2316else 2317 cat > conftest.$ac_ext <<EOF 2318#line 2319 "configure" 2319#include "confdefs.h" 2320/* System header to define __stub macros and hopefully few prototypes, 2321 which can conflict with char re_comp(); below. */ 2322#include <assert.h> 2323/* Override any gcc2 internal prototype to avoid an error. */ 2324/* We use char because int might match the return type of a gcc2 2325 builtin and then its argument prototype would still apply. */ 2326char re_comp(); 2327 2328int main() { 2329 2330/* The GNU C library defines this for functions which it implements 2331 to always fail with ENOSYS. Some functions are actually named 2332 something starting with __ and the normal name is an alias. */ 2333#if defined (__stub_re_comp) || defined (__stub___re_comp) 2334choke me 2335#else 2336re_comp(); 2337#endif 2338 2339; return 0; } 2340EOF 2341if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2342 rm -rf conftest* 2343 eval "ac_cv_func_re_comp=yes" 2344else 2345 echo "configure: failed program was:" >&5 2346 cat conftest.$ac_ext >&5 2347 rm -rf conftest* 2348 eval "ac_cv_func_re_comp=no" 2349fi 2350rm -f conftest* 2351fi 2352 2353if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then 2354 echo "$ac_t""yes" 1>&6 2355 cat >> confdefs.h <<\EOF 2356#define HAVE_RE_COMP 1 2357EOF 2358 have_regex=yes 2359else 2360 echo "$ac_t""no" 1>&6 2361fi 2362 2363fi 2364fi 2365 2366if test $have_regex = no; then 2367echo "$ac_t""cannot find regular expression library" 1>&6; cat >> confdefs.h <<\EOF 2368#define NO_REGEX 1 2369EOF 2370 2371fi 2372 2373# Check whether --with-editor or --without-editor was given. 2374if test "${with_editor+set}" = set; then 2375 withval="$with_editor" 2376 cat >> confdefs.h <<EOF 2377#define EDIT_PGM "$withval" 2378EOF 2379 2380fi 2381 2382 2383trap '' 1 2 15 2384cat > confcache <<\EOF 2385# This file is a shell script that caches the results of configure 2386# tests run on this system so they can be shared between configure 2387# scripts and configure runs. It is not useful on other systems. 2388# If it contains results you don't want to keep, you may remove or edit it. 2389# 2390# By default, configure uses ./config.cache as the cache file, 2391# creating it if it does not exist already. You can give configure 2392# the --cache-file=FILE option to use a different cache file; that is 2393# what configure does when it calls configure scripts in 2394# subdirectories, so they share the cache. 2395# Giving --cache-file=/dev/null disables caching, for debugging configure. 2396# config.status only pays attention to the cache file if you give it the 2397# --recheck option to rerun configure. 2398# 2399EOF 2400# The following way of writing the cache mishandles newlines in values, 2401# but we know of no workaround that is simple, portable, and efficient. 2402# So, don't put newlines in cache variables' values. 2403# Ultrix sh set writes to stderr and can't be redirected directly, 2404# and sets the high bit in the cache file unless we assign to the vars. 2405(set) 2>&1 | 2406 case `(ac_space=' '; set) 2>&1` in 2407 *ac_space=\ *) 2408 # `set' does not quote correctly, so add quotes (double-quote substitution 2409 # turns \\\\ into \\, and sed turns \\ into \). 2410 sed -n \ 2411 -e "s/'/'\\\\''/g" \ 2412 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2413 ;; 2414 *) 2415 # `set' quotes correctly as required by POSIX, so do not add quotes. 2416 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2417 ;; 2418 esac >> confcache 2419if cmp -s $cache_file confcache; then 2420 : 2421else 2422 if test -w $cache_file; then 2423 echo "updating cache $cache_file" 2424 cat confcache > $cache_file 2425 else 2426 echo "not updating unwritable cache $cache_file" 2427 fi 2428fi 2429rm -f confcache 2430 2431trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2432 2433test "x$prefix" = xNONE && prefix=$ac_default_prefix 2434# Let make expand exec_prefix. 2435test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2436 2437# Any assignment to VPATH causes Sun make to only execute 2438# the first set of double-colon rules, so remove it if not needed. 2439# If there is a colon in the path, we need to keep it. 2440if test "x$srcdir" = x.; then 2441 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2442fi 2443 2444trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2445 2446DEFS=-DHAVE_CONFIG_H 2447 2448# Without the "./", some shells look in PATH for config.status. 2449: ${CONFIG_STATUS=./config.status} 2450 2451echo creating $CONFIG_STATUS 2452rm -f $CONFIG_STATUS 2453cat > $CONFIG_STATUS <<EOF 2454#! /bin/sh 2455# Generated automatically by configure. 2456# Run this file to recreate the current configuration. 2457# This directory was configured as follows, 2458# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2459# 2460# $0 $ac_configure_args 2461# 2462# Compiler output produced by configure, useful for debugging 2463# configure, is in ./config.log if it exists. 2464 2465ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2466for ac_option 2467do 2468 case "\$ac_option" in 2469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2470 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2471 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2472 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2473 echo "$CONFIG_STATUS generated by autoconf version 2.12" 2474 exit 0 ;; 2475 -help | --help | --hel | --he | --h) 2476 echo "\$ac_cs_usage"; exit 0 ;; 2477 *) echo "\$ac_cs_usage"; exit 1 ;; 2478 esac 2479done 2480 2481ac_given_srcdir=$srcdir 2482ac_given_INSTALL="$INSTALL" 2483 2484trap 'rm -fr `echo "Makefile defines.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2485EOF 2486cat >> $CONFIG_STATUS <<EOF 2487 2488# Protect against being on the right side of a sed subst in config.status. 2489sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2490 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2491$ac_vpsub 2492$extrasub 2493s%@CFLAGS@%$CFLAGS%g 2494s%@CPPFLAGS@%$CPPFLAGS%g 2495s%@CXXFLAGS@%$CXXFLAGS%g 2496s%@DEFS@%$DEFS%g 2497s%@LDFLAGS@%$LDFLAGS%g 2498s%@LIBS@%$LIBS%g 2499s%@exec_prefix@%$exec_prefix%g 2500s%@prefix@%$prefix%g 2501s%@program_transform_name@%$program_transform_name%g 2502s%@bindir@%$bindir%g 2503s%@sbindir@%$sbindir%g 2504s%@libexecdir@%$libexecdir%g 2505s%@datadir@%$datadir%g 2506s%@sysconfdir@%$sysconfdir%g 2507s%@sharedstatedir@%$sharedstatedir%g 2508s%@localstatedir@%$localstatedir%g 2509s%@libdir@%$libdir%g 2510s%@includedir@%$includedir%g 2511s%@oldincludedir@%$oldincludedir%g 2512s%@infodir@%$infodir%g 2513s%@mandir@%$mandir%g 2514s%@CC@%$CC%g 2515s%@CPP@%$CPP%g 2516s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2517s%@INSTALL_DATA@%$INSTALL_DATA%g 2518s%@REGEX_O@%$REGEX_O%g 2519 2520CEOF 2521EOF 2522 2523cat >> $CONFIG_STATUS <<\EOF 2524 2525# Split the substitutions into bite-sized pieces for seds with 2526# small command number limits, like on Digital OSF/1 and HP-UX. 2527ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2528ac_file=1 # Number of current file. 2529ac_beg=1 # First line for current file. 2530ac_end=$ac_max_sed_cmds # Line after last line for current file. 2531ac_more_lines=: 2532ac_sed_cmds="" 2533while $ac_more_lines; do 2534 if test $ac_beg -gt 1; then 2535 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2536 else 2537 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2538 fi 2539 if test ! -s conftest.s$ac_file; then 2540 ac_more_lines=false 2541 rm -f conftest.s$ac_file 2542 else 2543 if test -z "$ac_sed_cmds"; then 2544 ac_sed_cmds="sed -f conftest.s$ac_file" 2545 else 2546 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2547 fi 2548 ac_file=`expr $ac_file + 1` 2549 ac_beg=$ac_end 2550 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2551 fi 2552done 2553if test -z "$ac_sed_cmds"; then 2554 ac_sed_cmds=cat 2555fi 2556EOF 2557 2558cat >> $CONFIG_STATUS <<EOF 2559 2560CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2561EOF 2562cat >> $CONFIG_STATUS <<\EOF 2563for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2565 case "$ac_file" in 2566 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2567 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2568 *) ac_file_in="${ac_file}.in" ;; 2569 esac 2570 2571 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2572 2573 # Remove last slash and all that follows it. Not all systems have dirname. 2574 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2575 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2576 # The file is in a subdirectory. 2577 test ! -d "$ac_dir" && mkdir "$ac_dir" 2578 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2579 # A "../" for each directory in $ac_dir_suffix. 2580 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2581 else 2582 ac_dir_suffix= ac_dots= 2583 fi 2584 2585 case "$ac_given_srcdir" in 2586 .) srcdir=. 2587 if test -z "$ac_dots"; then top_srcdir=. 2588 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2589 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2590 *) # Relative path. 2591 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2592 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2593 esac 2594 2595 case "$ac_given_INSTALL" in 2596 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2597 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2598 esac 2599 2600 echo creating "$ac_file" 2601 rm -f "$ac_file" 2602 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2603 case "$ac_file" in 2604 *Makefile*) ac_comsub="1i\\ 2605# $configure_input" ;; 2606 *) ac_comsub= ;; 2607 esac 2608 2609 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2610 sed -e "$ac_comsub 2611s%@configure_input@%$configure_input%g 2612s%@srcdir@%$srcdir%g 2613s%@top_srcdir@%$top_srcdir%g 2614s%@INSTALL@%$INSTALL%g 2615" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2616fi; done 2617rm -f conftest.s* 2618 2619# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2620# NAME is the cpp macro being defined and VALUE is the value it is being given. 2621# 2622# ac_d sets the value in "#define NAME VALUE" lines. 2623ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2624ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2625ac_dC='\3' 2626ac_dD='%g' 2627# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2628ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2629ac_uB='\([ ]\)%\1#\2define\3' 2630ac_uC=' ' 2631ac_uD='\4%g' 2632# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2633ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2634ac_eB='$%\1#\2define\3' 2635ac_eC=' ' 2636ac_eD='%g' 2637 2638if test "${CONFIG_HEADERS+set}" != set; then 2639EOF 2640cat >> $CONFIG_STATUS <<EOF 2641 CONFIG_HEADERS="defines.h" 2642EOF 2643cat >> $CONFIG_STATUS <<\EOF 2644fi 2645for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2647 case "$ac_file" in 2648 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2649 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2650 *) ac_file_in="${ac_file}.in" ;; 2651 esac 2652 2653 echo creating $ac_file 2654 2655 rm -f conftest.frag conftest.in conftest.out 2656 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2657 cat $ac_file_inputs > conftest.in 2658 2659EOF 2660 2661# Transform confdefs.h into a sed script conftest.vals that substitutes 2662# the proper values into config.h.in to produce config.h. And first: 2663# Protect against being on the right side of a sed subst in config.status. 2664# Protect against being in an unquoted here document in config.status. 2665rm -f conftest.vals 2666cat > conftest.hdr <<\EOF 2667s/[\\&%]/\\&/g 2668s%[\\$`]%\\&%g 2669s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2670s%ac_d%ac_u%gp 2671s%ac_u%ac_e%gp 2672EOF 2673sed -n -f conftest.hdr confdefs.h > conftest.vals 2674rm -f conftest.hdr 2675 2676# This sed command replaces #undef with comments. This is necessary, for 2677# example, in the case of _POSIX_SOURCE, which is predefined and required 2678# on some systems where configure will not decide to define it. 2679cat >> conftest.vals <<\EOF 2680s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2681EOF 2682 2683# Break up conftest.vals because some shells have a limit on 2684# the size of here documents, and old seds have small limits too. 2685 2686rm -f conftest.tail 2687while : 2688do 2689 ac_lines=`grep -c . conftest.vals` 2690 # grep -c gives empty output for an empty file on some AIX systems. 2691 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2692 # Write a limited-size here document to conftest.frag. 2693 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2694 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2695 echo 'CEOF 2696 sed -f conftest.frag conftest.in > conftest.out 2697 rm -f conftest.in 2698 mv conftest.out conftest.in 2699' >> $CONFIG_STATUS 2700 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2701 rm -f conftest.vals 2702 mv conftest.tail conftest.vals 2703done 2704rm -f conftest.vals 2705 2706cat >> $CONFIG_STATUS <<\EOF 2707 rm -f conftest.frag conftest.h 2708 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2709 cat conftest.in >> conftest.h 2710 rm -f conftest.in 2711 if cmp -s $ac_file conftest.h 2>/dev/null; then 2712 echo "$ac_file is unchanged" 2713 rm -f conftest.h 2714 else 2715 # Remove last slash and all that follows it. Not all systems have dirname. 2716 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2718 # The file is in a subdirectory. 2719 test ! -d "$ac_dir" && mkdir "$ac_dir" 2720 fi 2721 rm -f $ac_file 2722 mv conftest.h $ac_file 2723 fi 2724fi; done 2725 2726EOF 2727cat >> $CONFIG_STATUS <<EOF 2728 2729EOF 2730cat >> $CONFIG_STATUS <<\EOF 2731 2732exit 0 2733EOF 2734chmod +x $CONFIG_STATUS 2735rm -fr confdefs* $ac_clean_files 2736test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2737 2738