1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.4 5# Copyright (C) 1992, 1993, 1994 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: 14 15# Initialize some variables set by options. 16# The variables have the same names as the options, with 17# dashes changed to underlines. 18build=NONE 19cache_file=./config.cache 20exec_prefix=NONE 21host=NONE 22no_create= 23nonopt=NONE 24no_recursion= 25prefix=NONE 26program_prefix=NONE 27program_suffix=NONE 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE 36 37# Initialize some other variables. 38subdirs= 39 40ac_prev= 41for ac_option 42do 43 44 # If the previous option needs an argument, assign it. 45 if test -n "$ac_prev"; then 46 eval "$ac_prev=\$ac_option" 47 ac_prev= 48 continue 49 fi 50 51 case "$ac_option" in 52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 53 *) ac_optarg= ;; 54 esac 55 56 # Accept the important Cygnus configure options, so we can diagnose typos. 57 58 case "$ac_option" in 59 60 -build | --build | --buil | --bui | --bu | --b) 61 ac_prev=build ;; 62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) 63 build="$ac_optarg" ;; 64 65 -cache-file | --cache-file | --cache-fil | --cache-fi \ 66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 67 ac_prev=cache_file ;; 68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 70 cache_file="$ac_optarg" ;; 71 72 -disable-* | --disable-*) 73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 74 # Reject names that are not valid shell variable names. 75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 77 fi 78 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 79 eval "enable_${ac_feature}=no" ;; 80 81 -enable-* | --enable-*) 82 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 83 # Reject names that are not valid shell variable names. 84 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 85 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 86 fi 87 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 88 case "$ac_option" in 89 *=*) ;; 90 *) ac_optarg=yes ;; 91 esac 92 eval "enable_${ac_feature}='$ac_optarg'" ;; 93 94 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 95 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 96 | --exec | --exe | --ex) 97 ac_prev=exec_prefix ;; 98 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 99 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 100 | --exec=* | --exe=* | --ex=*) 101 exec_prefix="$ac_optarg" ;; 102 103 -gas | --gas | --ga | --g) 104 # Obsolete; use --with-gas. 105 with_gas=yes ;; 106 107 -help | --help | --hel | --he) 108 # Omit some internal or obsolete options to make the list less imposing. 109 # This message is too long to be a string in the A/UX 3.1 sh. 110 cat << EOF 111Usage: configure [options] [host] 112Options: [defaults in brackets after descriptions] 113Configuration: 114 --cache-file=FILE cache test results in FILE 115 --help print this message 116 --no-create do not create output files 117 --quiet, --silent do not print \`checking...' messages 118 --version print the version of autoconf that created configure 119Directory and file names: 120 --prefix=PREFIX install architecture-independent files in PREFIX 121 [$ac_default_prefix] 122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX 123 [same as prefix] 124 --srcdir=DIR find the sources in DIR [configure dir or ..] 125 --program-prefix=PREFIX prepend PREFIX to installed program names 126 --program-suffix=SUFFIX append SUFFIX to installed program names 127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 128Host type: 129 --build=BUILD configure for building on BUILD [BUILD=HOST] 130 --host=HOST configure for HOST [guessed] 131 --target=TARGET configure for TARGET [TARGET=HOST] 132Features and packages: 133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 137 --x-includes=DIR X include files are in DIR 138 --x-libraries=DIR X library files are in DIR 139--enable and --with options recognized:$ac_help 140EOF 141 exit 0 ;; 142 143 -host | --host | --hos | --ho) 144 ac_prev=host ;; 145 -host=* | --host=* | --hos=* | --ho=*) 146 host="$ac_optarg" ;; 147 148 -nfp | --nfp | --nf) 149 # Obsolete; use --without-fp. 150 with_fp=no ;; 151 152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 153 | --no-cr | --no-c) 154 no_create=yes ;; 155 156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 158 no_recursion=yes ;; 159 160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 161 ac_prev=prefix ;; 162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 163 prefix="$ac_optarg" ;; 164 165 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 166 | --program-pre | --program-pr | --program-p) 167 ac_prev=program_prefix ;; 168 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 170 program_prefix="$ac_optarg" ;; 171 172 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 173 | --program-suf | --program-su | --program-s) 174 ac_prev=program_suffix ;; 175 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 177 program_suffix="$ac_optarg" ;; 178 179 -program-transform-name | --program-transform-name \ 180 | --program-transform-nam | --program-transform-na \ 181 | --program-transform-n | --program-transform- \ 182 | --program-transform | --program-transfor \ 183 | --program-transfo | --program-transf \ 184 | --program-trans | --program-tran \ 185 | --progr-tra | --program-tr | --program-t) 186 ac_prev=program_transform_name ;; 187 -program-transform-name=* | --program-transform-name=* \ 188 | --program-transform-nam=* | --program-transform-na=* \ 189 | --program-transform-n=* | --program-transform-=* \ 190 | --program-transform=* | --program-transfor=* \ 191 | --program-transfo=* | --program-transf=* \ 192 | --program-trans=* | --program-tran=* \ 193 | --progr-tra=* | --program-tr=* | --program-t=*) 194 program_transform_name="$ac_optarg" ;; 195 196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 197 | -silent | --silent | --silen | --sile | --sil) 198 silent=yes ;; 199 200 -site | --site | --sit) 201 ac_prev=site ;; 202 -site=* | --site=* | --sit=*) 203 site="$ac_optarg" ;; 204 205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 206 ac_prev=srcdir ;; 207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 208 srcdir="$ac_optarg" ;; 209 210 -target | --target | --targe | --targ | --tar | --ta | --t) 211 ac_prev=target ;; 212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 213 target="$ac_optarg" ;; 214 215 -v | -verbose | --verbose | --verbos | --verbo | --verb) 216 verbose=yes ;; 217 218 -version | --version | --versio | --versi | --vers) 219 echo "configure generated by autoconf version 2.4" 220 exit 0 ;; 221 222 -with-* | --with-*) 223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 224 # Reject names that are not valid shell variable names. 225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 227 fi 228 ac_package=`echo $ac_package| sed 's/-/_/g'` 229 case "$ac_option" in 230 *=*) ;; 231 *) ac_optarg=yes ;; 232 esac 233 eval "with_${ac_package}='$ac_optarg'" ;; 234 235 -without-* | --without-*) 236 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 237 # Reject names that are not valid shell variable names. 238 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 240 fi 241 ac_package=`echo $ac_package| sed 's/-/_/g'` 242 eval "with_${ac_package}=no" ;; 243 244 --x) 245 # Obsolete; use --with-x. 246 with_x=yes ;; 247 248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 249 | --x-incl | --x-inc | --x-in | --x-i) 250 ac_prev=x_includes ;; 251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 253 x_includes="$ac_optarg" ;; 254 255 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 257 ac_prev=x_libraries ;; 258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 260 x_libraries="$ac_optarg" ;; 261 262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 263 ;; 264 265 *) 266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 267 echo "configure: warning: $ac_option: invalid host type" 1>&2 268 fi 269 if test "x$nonopt" != xNONE; then 270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 271 fi 272 nonopt="$ac_option" 273 ;; 274 275 esac 276done 277 278if test -n "$ac_prev"; then 279 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 280fi 281 282trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 283 284# File descriptor usage: 285# 0 standard input 286# 1 file creation 287# 2 errors and warnings 288# 3 some systems may open it to /dev/tty 289# 4 used on the Kubota Titan 290# 6 checking for... messages and results 291# 5 compiler messages saved in config.log 292if test "$silent" = yes; then 293 exec 6>/dev/null 294else 295 exec 6>&1 296fi 297exec 5>./config.log 298 299echo "\ 300This file contains any messages produced by compilers while 301running configure, to aid debugging if configure makes a mistake. 302" 1>&5 303 304# Strip out --no-create and --no-recursion so they do not pile up. 305# Also quote any args containing shell metacharacters. 306ac_configure_args= 307for ac_arg 308do 309 case "$ac_arg" in 310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 311 | --no-cr | --no-c) ;; 312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 315 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 316 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 317 esac 318done 319 320# NLS nuisances. 321# Only set LANG and LC_ALL to C if already set. 322# These must not be set unconditionally because not all systems understand 323# e.g. LANG=C (notably SCO). 324if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 325if test "${LANG+set}" = set; then LANG=C; export LANG; fi 326 327# confdefs.h avoids OS command line length limits that DEFS can exceed. 328rm -rf conftest* confdefs.h 329# AIX cpp loses on an empty file, so make sure it contains at least a newline. 330echo > confdefs.h 331 332# A filename unique to this package, relative to the directory that 333# configure is in, which we can look for to find out if srcdir is correct. 334ac_unique_file=search.c 335 336# Find the source files, if location was not specified. 337if test -z "$srcdir"; then 338 ac_srcdir_defaulted=yes 339 # Try the directory containing this script, then its parent. 340 ac_prog=$0 341 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 342 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 343 srcdir=$ac_confdir 344 if test ! -r $srcdir/$ac_unique_file; then 345 srcdir=.. 346 fi 347else 348 ac_srcdir_defaulted=no 349fi 350if test ! -r $srcdir/$ac_unique_file; then 351 if test "$ac_srcdir_defaulted" = yes; then 352 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 353 else 354 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 355 fi 356fi 357srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 358 359# Prefer explicitly selected file to automatically selected ones. 360if test -z "$CONFIG_SITE"; then 361 if test "x$prefix" != xNONE; then 362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 363 else 364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 365 fi 366fi 367for ac_site_file in $CONFIG_SITE; do 368 if test -r "$ac_site_file"; then 369 echo "loading site script $ac_site_file" 370 . "$ac_site_file" 371 fi 372done 373 374if test -r "$cache_file"; then 375 echo "loading cache $cache_file" 376 . $cache_file 377else 378 echo "creating cache $cache_file" 379 > $cache_file 380fi 381 382ac_ext=c 383# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 384ac_cpp='$CPP $CPPFLAGS' 385ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 386ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 387 388if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 389 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 390 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 391 ac_n= ac_c=' 392' ac_t=' ' 393 else 394 ac_n=-n ac_c= ac_t= 395 fi 396else 397 ac_n= ac_c='\c' ac_t= 398fi 399 400 401 402 403for ac_prog in 'bison -y' byacc 404do 405# Extract the first word of "$ac_prog", so it can be a program name with args. 406set dummy $ac_prog; ac_word=$2 407echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 408if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 409 echo $ac_n "(cached) $ac_c" 1>&6 410else 411 if test -n "$YACC"; then 412 ac_cv_prog_YACC="$YACC" # Let the user override the test. 413else 414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 415 for ac_dir in $PATH; do 416 test -z "$ac_dir" && ac_dir=. 417 if test -f $ac_dir/$ac_word; then 418 ac_cv_prog_YACC="$ac_prog" 419 break 420 fi 421 done 422 IFS="$ac_save_ifs" 423fi 424fi 425YACC="$ac_cv_prog_YACC" 426if test -n "$YACC"; then 427 echo "$ac_t""$YACC" 1>&6 428else 429 echo "$ac_t""no" 1>&6 430fi 431 432test -n "$YACC" && break 433done 434test -n "$YACC" || YACC="yacc" 435 436# Extract the first word of "gcc", so it can be a program name with args. 437set dummy gcc; ac_word=$2 438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 439if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 440 echo $ac_n "(cached) $ac_c" 1>&6 441else 442 if test -n "$CC"; then 443 ac_cv_prog_CC="$CC" # Let the user override the test. 444else 445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 446 for ac_dir in $PATH; do 447 test -z "$ac_dir" && ac_dir=. 448 if test -f $ac_dir/$ac_word; then 449 ac_cv_prog_CC="gcc" 450 break 451 fi 452 done 453 IFS="$ac_save_ifs" 454 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 455fi 456fi 457CC="$ac_cv_prog_CC" 458if test -n "$CC"; then 459 echo "$ac_t""$CC" 1>&6 460else 461 echo "$ac_t""no" 1>&6 462fi 463 464 465echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 466if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 467 echo $ac_n "(cached) $ac_c" 1>&6 468else 469 cat > conftest.c <<EOF 470#ifdef __GNUC__ 471 yes; 472#endif 473EOF 474if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then 475 ac_cv_prog_gcc=yes 476else 477 ac_cv_prog_gcc=no 478fi 479fi 480echo "$ac_t""$ac_cv_prog_gcc" 1>&6 481if test $ac_cv_prog_gcc = yes; then 482 GCC=yes 483 if test "${CFLAGS+set}" != set; then 484 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 485if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then 486 echo $ac_n "(cached) $ac_c" 1>&6 487else 488 echo 'void f(){}' > conftest.c 489if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 490 ac_cv_prog_gcc_g=yes 491else 492 ac_cv_prog_gcc_g=no 493fi 494rm -f conftest* 495 496fi 497 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 498 if test $ac_cv_prog_gcc_g = yes; then 499 CFLAGS="-g -O" 500 else 501 CFLAGS="-O" 502 fi 503 fi 504else 505 GCC= 506 test "${CFLAGS+set}" = set || CFLAGS="-g" 507fi 508 509echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 510if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 511 echo $ac_n "(cached) $ac_c" 1>&6 512else 513 rm -f conftestdata 514if ln -s X conftestdata 2>/dev/null 515then 516 rm -f conftestdata 517 ac_cv_prog_LN_S="ln -s" 518else 519 ac_cv_prog_LN_S=ln 520fi 521fi 522LN_S="$ac_cv_prog_LN_S" 523if test "$ac_cv_prog_LN_S" = "ln -s"; then 524 echo "$ac_t""yes" 1>&6 525else 526 echo "$ac_t""no" 1>&6 527fi 528 529echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 530set dummy ${MAKE-make}; ac_make=$2 531if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 532 echo $ac_n "(cached) $ac_c" 1>&6 533else 534 cat > conftestmake <<\EOF 535all: 536 @echo 'ac_maketemp="${MAKE}"' 537EOF 538# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 539eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 540if test -n "$ac_maketemp"; then 541 eval ac_cv_prog_make_${ac_make}_set=yes 542else 543 eval ac_cv_prog_make_${ac_make}_set=no 544fi 545rm -f conftestmake 546fi 547if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 548 echo "$ac_t""yes" 1>&6 549 SET_MAKE= 550else 551 echo "$ac_t""no" 1>&6 552 SET_MAKE="MAKE=${MAKE-make}" 553fi 554 555 556ac_save_path="$PATH" 557PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/libexec:/usr/sbin:/usr/etc:/etc 558for ac_prog in less more pg cat 559do 560# Extract the first word of "$ac_prog", so it can be a program name with args. 561set dummy $ac_prog; ac_word=$2 562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 563if eval "test \"`echo '$''{'ac_cv_path_DFLT_PAGER'+set}'`\" = set"; then 564 echo $ac_n "(cached) $ac_c" 1>&6 565else 566 case "$DFLT_PAGER" in 567 /*) 568 ac_cv_path_DFLT_PAGER="$DFLT_PAGER" # Let the user override the test with a path. 569 ;; 570 *) 571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 572 for ac_dir in $PATH; do 573 test -z "$ac_dir" && ac_dir=. 574 if test -f $ac_dir/$ac_word; then 575 ac_cv_path_DFLT_PAGER="$ac_dir/$ac_word" 576 break 577 fi 578 done 579 IFS="$ac_save_ifs" 580 ;; 581esac 582fi 583DFLT_PAGER="$ac_cv_path_DFLT_PAGER" 584if test -n "$DFLT_PAGER"; then 585 echo "$ac_t""$DFLT_PAGER" 1>&6 586else 587 echo "$ac_t""no" 1>&6 588fi 589 590test -n "$DFLT_PAGER" && break 591done 592test -n "$DFLT_PAGER" || DFLT_PAGER="cat" 593 594for ac_prog in crypt 595do 596# Extract the first word of "$ac_prog", so it can be a program name with args. 597set dummy $ac_prog; ac_word=$2 598echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 599if eval "test \"`echo '$''{'ac_cv_path_CRYPT_PATH'+set}'`\" = set"; then 600 echo $ac_n "(cached) $ac_c" 1>&6 601else 602 case "$CRYPT_PATH" in 603 /*) 604 ac_cv_path_CRYPT_PATH="$CRYPT_PATH" # Let the user override the test with a path. 605 ;; 606 *) 607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 608 for ac_dir in $PATH; do 609 test -z "$ac_dir" && ac_dir=. 610 if test -f $ac_dir/$ac_word; then 611 ac_cv_path_CRYPT_PATH="$ac_dir/$ac_word" 612 break 613 fi 614 done 615 IFS="$ac_save_ifs" 616 ;; 617esac 618fi 619CRYPT_PATH="$ac_cv_path_CRYPT_PATH" 620if test -n "$CRYPT_PATH"; then 621 echo "$ac_t""$CRYPT_PATH" 1>&6 622else 623 echo "$ac_t""no" 1>&6 624fi 625 626test -n "$CRYPT_PATH" && break 627done 628 629for ac_prog in des 630do 631# Extract the first word of "$ac_prog", so it can be a program name with args. 632set dummy $ac_prog; ac_word=$2 633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 634if eval "test \"`echo '$''{'ac_cv_path_DES'+set}'`\" = set"; then 635 echo $ac_n "(cached) $ac_c" 1>&6 636else 637 case "$DES" in 638 /*) 639 ac_cv_path_DES="$DES" # Let the user override the test with a path. 640 ;; 641 *) 642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 643 for ac_dir in $PATH; do 644 test -z "$ac_dir" && ac_dir=. 645 if test -f $ac_dir/$ac_word; then 646 ac_cv_path_DES="$ac_dir/$ac_word" 647 break 648 fi 649 done 650 IFS="$ac_save_ifs" 651 ;; 652esac 653fi 654DES="$ac_cv_path_DES" 655if test -n "$DES"; then 656 echo "$ac_t""$DES" 1>&6 657else 658 echo "$ac_t""no" 1>&6 659fi 660 661test -n "$DES" && break 662done 663 664PATH="$ac_save_path" 665 666TERMLIBS= 667echo $ac_n "checking for -lcurses""... $ac_c" 1>&6 668if eval "test \"`echo '$''{'ac_cv_lib_curses'+set}'`\" = set"; then 669 echo $ac_n "(cached) $ac_c" 1>&6 670else 671 ac_save_LIBS="$LIBS" 672LIBS="-lcurses $LIBS" 673cat > conftest.$ac_ext <<EOF 674#line 675 "configure" 675#include "confdefs.h" 676 677int main() { return 0; } 678int t() { 679box() 680; return 0; } 681EOF 682if eval $ac_link; then 683 rm -rf conftest* 684 eval "ac_cv_lib_curses=yes" 685else 686 rm -rf conftest* 687 eval "ac_cv_lib_curses=no" 688fi 689rm -f conftest* 690LIBS="$ac_save_LIBS" 691 692fi 693if eval "test \"`echo '$ac_cv_lib_'curses`\" = yes"; then 694 echo "$ac_t""yes" 1>&6 695 TERMLIBS="$TERMLIBS -lcurses" 696else 697 echo "$ac_t""no" 1>&6 698fi 699 700# Systems that have -ltermlib should use that before -ltermcap (e.g. SVR4) 701found_termlib='' 702for termlib in termlib termcap terminfo curses ncurses ; do 703 echo $ac_n "checking for -l${termlib}""... $ac_c" 1>&6 704if eval "test \"`echo '$''{'ac_cv_lib_${termlib}'+set}'`\" = set"; then 705 echo $ac_n "(cached) $ac_c" 1>&6 706else 707 ac_save_LIBS="$LIBS" 708LIBS="-l${termlib} $LIBS" 709cat > conftest.$ac_ext <<EOF 710#line 711 "configure" 711#include "confdefs.h" 712 713int main() { return 0; } 714int t() { 715main() 716; return 0; } 717EOF 718if eval $ac_link; then 719 rm -rf conftest* 720 eval "ac_cv_lib_${termlib}=yes" 721else 722 rm -rf conftest* 723 eval "ac_cv_lib_${termlib}=no" 724fi 725rm -f conftest* 726LIBS="$ac_save_LIBS" 727 728fi 729if eval "test \"`echo '$ac_cv_lib_'${termlib}`\" = yes"; then 730 echo "$ac_t""yes" 1>&6 731 LIBS="${LIBS} -l${termlib}" 732else 733 echo "$ac_t""no" 1>&6 734fi 735 736 case " ${LIBS} " in 737 *" -l${termlib} "* ) found_termlib=t; break ;; 738 esac 739done 740if test ".${found_termlib}" = "." ; then 741 cat >> confdefs.h <<\EOF 742#define NO_TERMCAP 1 743EOF 744 745fi 746echo $ac_n "checking for -lgen""... $ac_c" 1>&6 747if eval "test \"`echo '$''{'ac_cv_lib_gen'+set}'`\" = set"; then 748 echo $ac_n "(cached) $ac_c" 1>&6 749else 750 ac_save_LIBS="$LIBS" 751LIBS="-lgen $LIBS" 752cat > conftest.$ac_ext <<EOF 753#line 754 "configure" 754#include "confdefs.h" 755 756int main() { return 0; } 757int t() { 758regcmp() 759; return 0; } 760EOF 761if eval $ac_link; then 762 rm -rf conftest* 763 eval "ac_cv_lib_gen=yes" 764else 765 rm -rf conftest* 766 eval "ac_cv_lib_gen=no" 767fi 768rm -f conftest* 769LIBS="$ac_save_LIBS" 770 771fi 772if eval "test \"`echo '$ac_cv_lib_'gen`\" = yes"; then 773 echo "$ac_t""yes" 1>&6 774 ac_tr_lib=HAVE_LIB`echo gen | tr '[a-z]' '[A-Z]'` 775 cat >> confdefs.h <<EOF 776#define $ac_tr_lib 1 777EOF 778 779 LIBS="-lgen $LIBS" 780 781else 782 echo "$ac_t""no" 1>&6 783fi 784 785echo $ac_n "checking for -lintl""... $ac_c" 1>&6 786if eval "test \"`echo '$''{'ac_cv_lib_intl'+set}'`\" = set"; then 787 echo $ac_n "(cached) $ac_c" 1>&6 788else 789 ac_save_LIBS="$LIBS" 790LIBS="-lintl $LIBS" 791cat > conftest.$ac_ext <<EOF 792#line 793 "configure" 793#include "confdefs.h" 794 795int main() { return 0; } 796int t() { 797regcmp() 798; return 0; } 799EOF 800if eval $ac_link; then 801 rm -rf conftest* 802 eval "ac_cv_lib_intl=yes" 803else 804 rm -rf conftest* 805 eval "ac_cv_lib_intl=no" 806fi 807rm -f conftest* 808LIBS="$ac_save_LIBS" 809 810fi 811if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then 812 echo "$ac_t""yes" 1>&6 813 ac_tr_lib=HAVE_LIB`echo intl | tr '[a-z]' '[A-Z]'` 814 cat >> confdefs.h <<EOF 815#define $ac_tr_lib 1 816EOF 817 818 LIBS="-lintl $LIBS" 819 820else 821 echo "$ac_t""no" 1>&6 822fi 823 824echo $ac_n "checking for -lPW""... $ac_c" 1>&6 825if eval "test \"`echo '$''{'ac_cv_lib_PW'+set}'`\" = set"; then 826 echo $ac_n "(cached) $ac_c" 1>&6 827else 828 ac_save_LIBS="$LIBS" 829LIBS="-lPW $LIBS" 830cat > conftest.$ac_ext <<EOF 831#line 832 "configure" 832#include "confdefs.h" 833 834int main() { return 0; } 835int t() { 836regcmp() 837; return 0; } 838EOF 839if eval $ac_link; then 840 rm -rf conftest* 841 eval "ac_cv_lib_PW=yes" 842else 843 rm -rf conftest* 844 eval "ac_cv_lib_PW=no" 845fi 846rm -f conftest* 847LIBS="$ac_save_LIBS" 848 849fi 850if eval "test \"`echo '$ac_cv_lib_'PW`\" = yes"; then 851 echo "$ac_t""yes" 1>&6 852 ac_tr_lib=HAVE_LIB`echo PW | tr '[a-z]' '[A-Z]'` 853 cat >> confdefs.h <<EOF 854#define $ac_tr_lib 1 855EOF 856 857 LIBS="-lPW $LIBS" 858 859else 860 echo "$ac_t""no" 1>&6 861fi 862 863 864#-------------------------------------------------------------------- 865# On a few very rare systems, all of the libm.a stuff is 866# already in libc.a. Set compiler flags accordingly. 867# Also, Linux requires the "ieee" library for math to work 868# right (and it must appear before "-lm"). 869#-------------------------------------------------------------------- 870echo $ac_n "checking for -lm""... $ac_c" 1>&6 871if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then 872 echo $ac_n "(cached) $ac_c" 1>&6 873else 874 ac_save_LIBS="$LIBS" 875LIBS="-lm $LIBS" 876cat > conftest.$ac_ext <<EOF 877#line 878 "configure" 878#include "confdefs.h" 879 880int main() { return 0; } 881int t() { 882main() 883; return 0; } 884EOF 885if eval $ac_link; then 886 rm -rf conftest* 887 eval "ac_cv_lib_m=yes" 888else 889 rm -rf conftest* 890 eval "ac_cv_lib_m=no" 891fi 892rm -f conftest* 893LIBS="$ac_save_LIBS" 894 895fi 896if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then 897 echo "$ac_t""yes" 1>&6 898 MATH_LIBS="-lm" 899else 900 echo "$ac_t""no" 1>&6 901MATH_LIBS="" 902fi 903 904echo $ac_n "checking for -lieee""... $ac_c" 1>&6 905if eval "test \"`echo '$''{'ac_cv_lib_ieee'+set}'`\" = set"; then 906 echo $ac_n "(cached) $ac_c" 1>&6 907else 908 ac_save_LIBS="$LIBS" 909LIBS="-lieee $LIBS" 910cat > conftest.$ac_ext <<EOF 911#line 912 "configure" 912#include "confdefs.h" 913 914int main() { return 0; } 915int t() { 916main() 917; return 0; } 918EOF 919if eval $ac_link; then 920 rm -rf conftest* 921 eval "ac_cv_lib_ieee=yes" 922else 923 rm -rf conftest* 924 eval "ac_cv_lib_ieee=no" 925fi 926rm -f conftest* 927LIBS="$ac_save_LIBS" 928 929fi 930if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then 931 echo "$ac_t""yes" 1>&6 932 MATH_LIBS="-lieee $MATH_LIBS" 933else 934 echo "$ac_t""no" 1>&6 935fi 936 937LIBS="$LIBS $MATH_LIBS" 938 939echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6 940SAVE_LIBS=$LIBS 941LIBS="$LIBS $TERMLIBS" 942cat > conftest.$ac_ext <<EOF 943#line 944 "configure" 944#include "confdefs.h" 945 946int main() { return 0; } 947int t() { 948tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0); 949; return 0; } 950EOF 951if eval $ac_link; then 952 rm -rf conftest* 953 termok=yes 954else 955 rm -rf conftest* 956 termok=no 957fi 958rm -f conftest* 959 960if test $termok = yes; then 961 echo "$ac_t""using $TERMLIBS" 1>&6 962else 963 LIBS="$SAVE_LIBS" 964 if test $have_termlib = yes; then 965 LIBS="$LIBS -ltermlib" 966 echo "$ac_t""using -ltermlib" 1>&6 967 else 968 echo "$ac_t""TERMINAL LIBRARY BROKEN - configure failed" 1>&6 969 exit 1 970 fi 971fi 972 973 974echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 975# On Suns, sometimes $CPP names a directory. 976if test -n "$CPP" && test -d "$CPP"; then 977 CPP= 978fi 979if test -z "$CPP"; then 980if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 981 echo $ac_n "(cached) $ac_c" 1>&6 982else 983 # This must be in double quotes, not single quotes, because CPP may get 984 # substituted into the Makefile and "${CC-cc}" will confuse make. 985 CPP="${CC-cc} -E" 986 # On the NeXT, cc -E runs the code through the compiler's parser, 987 # not just through cpp. 988 cat > conftest.$ac_ext <<EOF 989#line 990 "configure" 990#include "confdefs.h" 991#include <assert.h> 992Syntax Error 993EOF 994eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 995ac_err=`grep -v '^ *+' conftest.out` 996if test -z "$ac_err"; then 997 : 998else 999 echo "$ac_err" >&5 1000 rm -rf conftest* 1001 CPP="${CC-cc} -E -traditional-cpp" 1002 cat > conftest.$ac_ext <<EOF 1003#line 1004 "configure" 1004#include "confdefs.h" 1005#include <assert.h> 1006Syntax Error 1007EOF 1008eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1009ac_err=`grep -v '^ *+' conftest.out` 1010if test -z "$ac_err"; then 1011 : 1012else 1013 echo "$ac_err" >&5 1014 rm -rf conftest* 1015 CPP=/lib/cpp 1016fi 1017rm -f conftest* 1018fi 1019rm -f conftest* 1020 ac_cv_prog_CPP="$CPP" 1021fi 1022 CPP="$ac_cv_prog_CPP" 1023else 1024 ac_cv_prog_CPP="$CPP" 1025fi 1026echo "$ac_t""$CPP" 1>&6 1027 1028# If we cannot run a trivial program, we must be cross compiling. 1029echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 1030if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then 1031 echo $ac_n "(cached) $ac_c" 1>&6 1032else 1033 if test "$cross_compiling" = yes; then 1034 ac_cv_c_cross=yes 1035else 1036cat > conftest.$ac_ext <<EOF 1037#line 1038 "configure" 1038#include "confdefs.h" 1039main(){return(0);} 1040EOF 1041eval $ac_link 1042if test -s conftest && (./conftest; exit) 2>/dev/null; then 1043 ac_cv_c_cross=no 1044else 1045 ac_cv_c_cross=yes 1046fi 1047fi 1048rm -fr conftest* 1049fi 1050cross_compiling=$ac_cv_c_cross 1051echo "$ac_t""$ac_cv_c_cross" 1>&6 1052 1053echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1054if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1055 echo $ac_n "(cached) $ac_c" 1>&6 1056else 1057 cat > conftest.$ac_ext <<EOF 1058#line 1059 "configure" 1059#include "confdefs.h" 1060#include <stdlib.h> 1061#include <stdarg.h> 1062#include <string.h> 1063#include <float.h> 1064EOF 1065eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1066ac_err=`grep -v '^ *+' conftest.out` 1067if test -z "$ac_err"; then 1068 rm -rf conftest* 1069 ac_cv_header_stdc=yes 1070else 1071 echo "$ac_err" >&5 1072 rm -rf conftest* 1073 ac_cv_header_stdc=no 1074fi 1075rm -f conftest* 1076 1077if test $ac_cv_header_stdc = yes; then 1078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1079cat > conftest.$ac_ext <<EOF 1080#line 1081 "configure" 1081#include "confdefs.h" 1082#include <string.h> 1083EOF 1084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1085 egrep "memchr" >/dev/null 2>&1; then 1086 : 1087else 1088 rm -rf conftest* 1089 ac_cv_header_stdc=no 1090fi 1091rm -f conftest* 1092 1093fi 1094 1095if test $ac_cv_header_stdc = yes; then 1096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1097cat > conftest.$ac_ext <<EOF 1098#line 1099 "configure" 1099#include "confdefs.h" 1100#include <stdlib.h> 1101EOF 1102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1103 egrep "free" >/dev/null 2>&1; then 1104 : 1105else 1106 rm -rf conftest* 1107 ac_cv_header_stdc=no 1108fi 1109rm -f conftest* 1110 1111fi 1112 1113if test $ac_cv_header_stdc = yes; then 1114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1115if test "$cross_compiling" = yes; then 1116 ac_cv_header_stdc=no 1117else 1118cat > conftest.$ac_ext <<EOF 1119#line 1120 "configure" 1120#include "confdefs.h" 1121#include <ctype.h> 1122#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1123#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1125int main () { int i; for (i = 0; i < 256; i++) 1126if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1127exit (0); } 1128 1129EOF 1130eval $ac_link 1131if test -s conftest && (./conftest; exit) 2>/dev/null; then 1132 : 1133else 1134 ac_cv_header_stdc=no 1135fi 1136fi 1137rm -fr conftest* 1138fi 1139fi 1140echo "$ac_t""$ac_cv_header_stdc" 1>&6 1141if test $ac_cv_header_stdc = yes; then 1142 cat >> confdefs.h <<\EOF 1143#define STDC_HEADERS 1 1144EOF 1145 1146fi 1147 1148for ac_hdr in ctype.h fcntl.h limits.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/ptem.h sys/stream.h sys/time.h time.h unistd.h 1149do 1150ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 1151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1153 echo $ac_n "(cached) $ac_c" 1>&6 1154else 1155 cat > conftest.$ac_ext <<EOF 1156#line 1157 "configure" 1157#include "confdefs.h" 1158#include <$ac_hdr> 1159EOF 1160eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1161ac_err=`grep -v '^ *+' conftest.out` 1162if test -z "$ac_err"; then 1163 rm -rf conftest* 1164 eval "ac_cv_header_$ac_safe=yes" 1165else 1166 echo "$ac_err" >&5 1167 rm -rf conftest* 1168 eval "ac_cv_header_$ac_safe=no" 1169fi 1170rm -f conftest* 1171fi 1172if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1173 echo "$ac_t""yes" 1>&6 1174 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` 1175 cat >> confdefs.h <<EOF 1176#define $ac_tr_hdr 1 1177EOF 1178 1179else 1180 echo "$ac_t""no" 1>&6 1181fi 1182done 1183 1184echo checking for X11 headers and libraries 1185dir="" 1186cat > conftest.$ac_ext <<EOF 1187#line 1188 "configure" 1188#include "confdefs.h" 1189#include <X11/Intrinsic.h> 1190EOF 1191eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1192ac_err=`grep -v '^ *+' conftest.out` 1193if test -z "$ac_err"; then 1194 rm -rf conftest* 1195 : 1196else 1197 echo "$ac_err" >&5 1198 rm -rf conftest* 1199 if test -r /usr/local/include/X11/Intrinsic.h; then 1200 dir=/usr/local/include 1201 1202 elif test -r /usr/include/X11R4/X11/Intrinsic.h; then 1203 dir=/usr/include/X11R4 1204 elif test -r /usr/include/X11R5/X11/Intrinsic.h; then 1205 dir=/usr/include/X11R5 1206 1207 elif test -r /usr/lpp/X11/Xamples/include/X11/Intrinsic.h; then 1208 dir=/usr/lpp/X11/Xamples/include 1209 1210 elif test -r /usr/X11/include/X11/Intrinsic.h; then 1211 dir=/usr/X11/include 1212 elif test -r /usr/X11R5/include/X11/Intrinsic.h; then 1213 dir=/usr/X11R5/include 1214 1215 elif test -r /usr/openwin/include/X11/Intrinsic.h; then 1216 dir=/usr/openwin/include 1217 elif test -r /usr/openwin/share/include/X11/Intrinsic.h; then 1218 dir=/usr/openwin/share/include 1219 1220 elif test -r /usr/include/X11/Intrinsic.h; then 1221 dir= # everyone's cc searches /usr/include, right? 1222 else 1223 no_x=t 1224 fi 1225 1226fi 1227rm -f conftest* 1228if test -n "$dir"; then 1229 xincludedir=-I$dir 1230 DEFS="$DEFS -I$dir" 1231 echo "(using $xincludedir)" 1232elif test -n "$no_x"; then 1233 # Not all programs may use this symbol, but it won't hurt to define it. 1234 xincludedir=-DX_DISPLAY_MISSING 1235fi 1236 1237# 1238# Now check for the libraries. Amazing how every single X vendor puts 1239# these in a different place, and all because MIT thought they should go 1240# in /usr/lib. 1241dir1="" 1242if test -r /usr/local/lib/libXt.a; then 1243 dir1=/usr/local/lib 1244 1245elif test -r /usr/lib/X11R4/libXt.sl; then 1246 dir1=/usr/lib/X11R4 1247elif test -r /usr/lib/X11R4/libXt.a; then 1248 dir1=/usr/lib/X11R4 1249elif test -r /usr/lib/X11R5/libXt.a; then 1250 dir1=/usr/lib/X11R5 1251 1252elif test -r /usr/lpp/X11/Xamples/lib/Xt/libXt.a; then 1253 dir1=/usr/lpp/X11/Xamples/lib/Xt 1254 1255elif test -r /usr/X11/lib/libXt.a; then 1256 dir1=/usr/X11/lib 1257elif test -r /usr/X11R5/lib/libXt.a; then 1258 dir1=/usr/X11R5/lib 1259 1260elif test -r /usr/openwin/lib/libXt.a; then 1261 dir1=/usr/openwin/lib 1262elif test -r /usr/openwin/lib/libXt.so; then 1263 dir1=/usr/openwin/lib 1264 1265fi 1266dir2="" 1267if test -r /usr/lpp/X11/Xamples/lib/Xmu/libXmu.a; then 1268 dir2=/usr/lpp/X11/Xamples/lib/Xmu 1269fi 1270# 1271# It would be nice to have a more robust check for the -R ld option then 1272# just checking for Solaris. The parentheses elide `uname: not found'. 1273# 1274# It would also be nice to do this for all -L options, not just this one. 1275if test -n "$dir1"; then 1276 xlibdir=-L$dir1 1277 DEFS="$DEFS -L$dir1" 1278 if test "`(uname) 2>/dev/null`" = SunOS && uname -r | grep '^5'; then 1279 xlibdir="$xlibdir -R$dir1" 1280 fi 1281 # 1282 # Don't need all that stuff for dir2, since it only gets used on AIX. 1283 test -n "$dir2" && xlibdir="$xlibdir -L$dir2" 1284fi 1285# 1286# Check for additional X libraries. 1287# 1288# Since we already have an explicit check for POSIXified ISC, use it. 1289if test -n "$ISC"; then 1290 wlibs="$wlibs -lnsl_s -linet" 1291 echo "(adding -lnsl_s -linet to wlibs)" 1292else 1293 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1294 # libraries were built with DECnet support. And karl@cs.umb.edu's Alpha 1295 # needs dnet_stubs. 1296 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6 1297if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then 1298 echo $ac_n "(cached) $ac_c" 1>&6 1299else 1300 ac_save_LIBS="$LIBS" 1301LIBS="-ldnet $LIBS" 1302cat > conftest.$ac_ext <<EOF 1303#line 1304 "configure" 1304#include "confdefs.h" 1305 1306int main() { return 0; } 1307int t() { 1308main() 1309; return 0; } 1310EOF 1311if eval $ac_link; then 1312 rm -rf conftest* 1313 eval "ac_cv_lib_dnet=yes" 1314else 1315 rm -rf conftest* 1316 eval "ac_cv_lib_dnet=no" 1317fi 1318rm -f conftest* 1319LIBS="$ac_save_LIBS" 1320 1321fi 1322if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then 1323 echo "$ac_t""yes" 1>&6 1324 wlibs="$wlibs -ldnet" 1325 have_dnet=t 1326 echo "(adding -ldnet to wlibs)" 1327else 1328 echo "$ac_t""no" 1>&6 1329fi 1330 1331 if test -z "$have_dnet"; then 1332 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 1333if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then 1334 echo $ac_n "(cached) $ac_c" 1>&6 1335else 1336 ac_save_LIBS="$LIBS" 1337LIBS="-ldnet_stub $LIBS" 1338cat > conftest.$ac_ext <<EOF 1339#line 1340 "configure" 1340#include "confdefs.h" 1341 1342int main() { return 0; } 1343int t() { 1344main() 1345; return 0; } 1346EOF 1347if eval $ac_link; then 1348 rm -rf conftest* 1349 eval "ac_cv_lib_dnet_stub=yes" 1350else 1351 rm -rf conftest* 1352 eval "ac_cv_lib_dnet_stub=no" 1353fi 1354rm -f conftest* 1355LIBS="$ac_save_LIBS" 1356 1357fi 1358if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then 1359 echo "$ac_t""yes" 1>&6 1360 wlibs="$wlibs -ldnet_stub" 1361 echo "(adding -ldnet_stub to wlibs)" 1362else 1363 echo "$ac_t""no" 1>&6 1364fi 1365 1366 fi 1367 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1368 # socket/setsockopt and other routines are undefined under SCO ODT 2.0. 1369 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 1370if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then 1371 echo $ac_n "(cached) $ac_c" 1>&6 1372else 1373 ac_save_LIBS="$LIBS" 1374LIBS="-lsocket $LIBS" 1375cat > conftest.$ac_ext <<EOF 1376#line 1377 "configure" 1377#include "confdefs.h" 1378 1379int main() { return 0; } 1380int t() { 1381main() 1382; return 0; } 1383EOF 1384if eval $ac_link; then 1385 rm -rf conftest* 1386 eval "ac_cv_lib_socket=yes" 1387else 1388 rm -rf conftest* 1389 eval "ac_cv_lib_socket=no" 1390fi 1391rm -f conftest* 1392LIBS="$ac_save_LIBS" 1393 1394fi 1395if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then 1396 echo "$ac_t""yes" 1>&6 1397 wlibs="$wlibs -lsocket" 1398 echo "(adding -lsocket to wlibs)" 1399else 1400 echo "$ac_t""no" 1>&6 1401fi 1402 1403 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 1404if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then 1405 echo $ac_n "(cached) $ac_c" 1>&6 1406else 1407 ac_save_LIBS="$LIBS" 1408LIBS="-lnsl $LIBS" 1409cat > conftest.$ac_ext <<EOF 1410#line 1411 "configure" 1411#include "confdefs.h" 1412 1413int main() { return 0; } 1414int t() { 1415main() 1416; return 0; } 1417EOF 1418if eval $ac_link; then 1419 rm -rf conftest* 1420 eval "ac_cv_lib_nsl=yes" 1421else 1422 rm -rf conftest* 1423 eval "ac_cv_lib_nsl=no" 1424fi 1425rm -f conftest* 1426LIBS="$ac_save_LIBS" 1427 1428fi 1429if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then 1430 echo "$ac_t""yes" 1>&6 1431 wlibs="$wlibs -lnsl" 1432 echo "(adding -lnsl to wlibs)" 1433else 1434 echo "$ac_t""no" 1>&6 1435fi 1436 1437fi 1438test -n "$xlibdir" && echo "(using $xlibdir)" 1439LIBS="$LIBS $xlibdir $wlibs" 1440 1441ac_safe=`echo "X11/X.h" | tr './\055' '___'` 1442echo $ac_n "checking for X11/X.h""... $ac_c" 1>&6 1443if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1444 echo $ac_n "(cached) $ac_c" 1>&6 1445else 1446 cat > conftest.$ac_ext <<EOF 1447#line 1448 "configure" 1448#include "confdefs.h" 1449#include <X11/X.h> 1450EOF 1451eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1452ac_err=`grep -v '^ *+' conftest.out` 1453if test -z "$ac_err"; then 1454 rm -rf conftest* 1455 eval "ac_cv_header_$ac_safe=yes" 1456else 1457 echo "$ac_err" >&5 1458 rm -rf conftest* 1459 eval "ac_cv_header_$ac_safe=no" 1460fi 1461rm -f conftest* 1462fi 1463if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1464 echo "$ac_t""yes" 1>&6 1465 cat >> confdefs.h <<\EOF 1466#define HAVE_X11_X_H 1 1467EOF 1468 LIBS="$LIBS -lX11" 1469else 1470 echo "$ac_t""no" 1>&6 1471fi 1472 1473 1474 1475echo $ac_n "checking for working const""... $ac_c" 1>&6 1476if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1477 echo $ac_n "(cached) $ac_c" 1>&6 1478else 1479 cat > conftest.$ac_ext <<EOF 1480#line 1481 "configure" 1481#include "confdefs.h" 1482 1483int main() { return 0; } 1484int t() { 1485 1486/* Ultrix mips cc rejects this. */ 1487typedef int charset[2]; const charset x; 1488/* SunOS 4.1.1 cc rejects this. */ 1489char const *const *ccp; 1490char **p; 1491/* NEC SVR4.0.2 mips cc rejects this. */ 1492struct point {int x, y;}; 1493static struct point const zero; 1494/* AIX XL C 1.02.0.0 rejects this. 1495 It does not let you subtract one const X* pointer from another in an arm 1496 of an if-expression whose if-part is not a constant expression */ 1497const char *g = "string"; 1498ccp = &g + (g ? g-g : 0); 1499/* HPUX 7.0 cc rejects these. */ 1500++ccp; 1501p = (char**) ccp; 1502ccp = (char const *const *) p; 1503{ /* SCO 3.2v4 cc rejects this. */ 1504 char *t; 1505 char const *s = 0 ? (char *) 0 : (char const *) 0; 1506 1507 *t++ = 0; 1508} 1509{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1510 int x[] = {25, 17}; 1511 const int *foo = &x[0]; 1512 ++foo; 1513} 1514{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1515 typedef const int *iptr; 1516 iptr p = 0; 1517 ++p; 1518} 1519{ /* AIX XL C 1.02.0.0 rejects this saying 1520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1521 struct s { int j; const int *ap[3]; }; 1522 struct s *b; b->j = 5; 1523} 1524{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1525 const int foo = 10; 1526} 1527 1528; return 0; } 1529EOF 1530if eval $ac_compile; then 1531 rm -rf conftest* 1532 ac_cv_c_const=yes 1533else 1534 rm -rf conftest* 1535 ac_cv_c_const=no 1536fi 1537rm -f conftest* 1538 1539fi 1540echo "$ac_t""$ac_cv_c_const" 1>&6 1541if test $ac_cv_c_const = no; then 1542 cat >> confdefs.h <<\EOF 1543#define const 1544EOF 1545 1546fi 1547 1548echo $ac_n "checking for size_t""... $ac_c" 1>&6 1549if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1550 echo $ac_n "(cached) $ac_c" 1>&6 1551else 1552 cat > conftest.$ac_ext <<EOF 1553#line 1554 "configure" 1554#include "confdefs.h" 1555#include <sys/types.h> 1556#if STDC_HEADERS 1557#include <stdlib.h> 1558#endif 1559EOF 1560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1561 egrep "size_t" >/dev/null 2>&1; then 1562 rm -rf conftest* 1563 ac_cv_type_size_t=yes 1564else 1565 rm -rf conftest* 1566 ac_cv_type_size_t=no 1567fi 1568rm -f conftest* 1569 1570fi 1571echo "$ac_t""$ac_cv_type_size_t" 1>&6 1572if test $ac_cv_type_size_t = no; then 1573 cat >> confdefs.h <<\EOF 1574#define size_t unsigned 1575EOF 1576 1577fi 1578 1579echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 1580if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then 1581 echo $ac_n "(cached) $ac_c" 1>&6 1582else 1583 cat > conftest.$ac_ext <<EOF 1584#line 1585 "configure" 1585#include "confdefs.h" 1586#include <sys/types.h> 1587#include <sys/stat.h> 1588int main() { return 0; } 1589int t() { 1590struct stat s; s.st_blksize; 1591; return 0; } 1592EOF 1593if eval $ac_compile; then 1594 rm -rf conftest* 1595 ac_cv_struct_st_blksize=yes 1596else 1597 rm -rf conftest* 1598 ac_cv_struct_st_blksize=no 1599fi 1600rm -f conftest* 1601 1602fi 1603echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 1604if test $ac_cv_struct_st_blksize = yes; then 1605 cat >> confdefs.h <<\EOF 1606#define HAVE_ST_BLKSIZE 1 1607EOF 1608 1609fi 1610 1611echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1612if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1613 echo $ac_n "(cached) $ac_c" 1>&6 1614else 1615 cat > conftest.$ac_ext <<EOF 1616#line 1617 "configure" 1617#include "confdefs.h" 1618#include <sys/types.h> 1619#include <time.h> 1620int main() { return 0; } 1621int t() { 1622struct tm *tp; tp->tm_sec; 1623; return 0; } 1624EOF 1625if eval $ac_compile; then 1626 rm -rf conftest* 1627 ac_cv_struct_tm=time.h 1628else 1629 rm -rf conftest* 1630 ac_cv_struct_tm=sys/time.h 1631fi 1632rm -f conftest* 1633 1634fi 1635echo "$ac_t""$ac_cv_struct_tm" 1>&6 1636if test $ac_cv_struct_tm = sys/time.h; then 1637 cat >> confdefs.h <<\EOF 1638#define TM_IN_SYS_TIME 1 1639EOF 1640 1641fi 1642 1643 1644# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 1645# for constant arguments. Useless! 1646echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 1647if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 1648 echo $ac_n "(cached) $ac_c" 1>&6 1649else 1650 cat > conftest.$ac_ext <<EOF 1651#line 1652 "configure" 1652#include "confdefs.h" 1653#include <alloca.h> 1654int main() { return 0; } 1655int t() { 1656char *p = alloca(2 * sizeof(int)); 1657; return 0; } 1658EOF 1659if eval $ac_link; then 1660 rm -rf conftest* 1661 ac_cv_header_alloca_h=yes 1662else 1663 rm -rf conftest* 1664 ac_cv_header_alloca_h=no 1665fi 1666rm -f conftest* 1667 1668fi 1669echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 1670if test $ac_cv_header_alloca_h = yes; then 1671 cat >> confdefs.h <<\EOF 1672#define HAVE_ALLOCA_H 1 1673EOF 1674 1675fi 1676 1677echo $ac_n "checking for alloca""... $ac_c" 1>&6 1678if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then 1679 echo $ac_n "(cached) $ac_c" 1>&6 1680else 1681 cat > conftest.$ac_ext <<EOF 1682#line 1683 "configure" 1683#include "confdefs.h" 1684 1685#ifdef __GNUC__ 1686# define alloca __builtin_alloca 1687#else 1688# if HAVE_ALLOCA_H 1689# include <alloca.h> 1690# else 1691# ifdef _AIX 1692 #pragma alloca 1693# else 1694# ifndef alloca /* predefined by HP cc +Olibcalls */ 1695char *alloca (); 1696# endif 1697# endif 1698# endif 1699#endif 1700 1701int main() { return 0; } 1702int t() { 1703char *p = (char *) alloca(1); 1704; return 0; } 1705EOF 1706if eval $ac_link; then 1707 rm -rf conftest* 1708 ac_cv_func_alloca=yes 1709else 1710 rm -rf conftest* 1711 ac_cv_func_alloca=no 1712fi 1713rm -f conftest* 1714 1715fi 1716echo "$ac_t""$ac_cv_func_alloca" 1>&6 1717if test $ac_cv_func_alloca = yes; then 1718 cat >> confdefs.h <<\EOF 1719#define HAVE_ALLOCA 1 1720EOF 1721 1722fi 1723 1724if test $ac_cv_func_alloca = no; then 1725 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 1726 # that cause trouble. Some versions do not even contain alloca or 1727 # contain a buggy version. If you still want to use their alloca, 1728 # use ar to extract alloca.o from them instead of compiling alloca.c. 1729 ALLOCA=alloca.o 1730 cat >> confdefs.h <<\EOF 1731#define C_ALLOCA 1 1732EOF 1733 1734 1735echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 1736if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 1737 echo $ac_n "(cached) $ac_c" 1>&6 1738else 1739 cat > conftest.$ac_ext <<EOF 1740#line 1741 "configure" 1741#include "confdefs.h" 1742#if defined(CRAY) && ! defined(CRAY2) 1743webecray 1744#else 1745wenotbecray 1746#endif 1747 1748EOF 1749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1750 egrep "webecray" >/dev/null 2>&1; then 1751 rm -rf conftest* 1752 ac_cv_os_cray=yes 1753else 1754 rm -rf conftest* 1755 ac_cv_os_cray=no 1756fi 1757rm -f conftest* 1758 1759fi 1760echo "$ac_t""$ac_cv_os_cray" 1>&6 1761if test $ac_cv_os_cray = yes; then 1762for ac_func in _getb67 GETB67 getb67; do 1763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1764if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1765 echo $ac_n "(cached) $ac_c" 1>&6 1766else 1767 cat > conftest.$ac_ext <<EOF 1768#line 1769 "configure" 1769#include "confdefs.h" 1770/* System header to define __stub macros and hopefully few prototypes, 1771 which can conflict with char $ac_func(); below. */ 1772#include <assert.h> 1773/* Override any gcc2 internal prototype to avoid an error. */ 1774char $ac_func(); 1775 1776int main() { return 0; } 1777int t() { 1778 1779/* The GNU C library defines this for functions which it implements 1780 to always fail with ENOSYS. Some functions are actually named 1781 something starting with __ and the normal name is an alias. */ 1782#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1783choke me 1784#else 1785$ac_func(); 1786#endif 1787 1788; return 0; } 1789EOF 1790if eval $ac_link; then 1791 rm -rf conftest* 1792 eval "ac_cv_func_$ac_func=yes" 1793else 1794 rm -rf conftest* 1795 eval "ac_cv_func_$ac_func=no" 1796fi 1797rm -f conftest* 1798 1799fi 1800if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1801 echo "$ac_t""yes" 1>&6 1802 cat >> confdefs.h <<EOF 1803#define CRAY_STACKSEG_END $ac_func 1804EOF 1805 1806 break 1807else 1808 echo "$ac_t""no" 1>&6 1809fi 1810 1811done 1812fi 1813 1814echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 1815if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 1816 echo $ac_n "(cached) $ac_c" 1>&6 1817else 1818 if test "$cross_compiling" = yes; then 1819 ac_cv_c_stack_direction=0 1820else 1821cat > conftest.$ac_ext <<EOF 1822#line 1823 "configure" 1823#include "confdefs.h" 1824find_stack_direction () 1825{ 1826 static char *addr = 0; 1827 auto char dummy; 1828 if (addr == 0) 1829 { 1830 addr = &dummy; 1831 return find_stack_direction (); 1832 } 1833 else 1834 return (&dummy > addr) ? 1 : -1; 1835} 1836main () 1837{ 1838 exit (find_stack_direction() < 0); 1839} 1840EOF 1841eval $ac_link 1842if test -s conftest && (./conftest; exit) 2>/dev/null; then 1843 ac_cv_c_stack_direction=1 1844else 1845 ac_cv_c_stack_direction=-1 1846fi 1847fi 1848rm -fr conftest* 1849fi 1850echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 1851cat >> confdefs.h <<EOF 1852#define STACK_DIRECTION $ac_cv_c_stack_direction 1853EOF 1854 1855fi 1856 1857if test $ac_cv_prog_gcc = yes; then 1858 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1859if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1860 echo $ac_n "(cached) $ac_c" 1>&6 1861else 1862 ac_pattern="Autoconf.*'x'" 1863 cat > conftest.$ac_ext <<EOF 1864#line 1865 "configure" 1865#include "confdefs.h" 1866#include <sgtty.h> 1867Autoconf TIOCGETP 1868EOF 1869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1870 egrep "$ac_pattern" >/dev/null 2>&1; then 1871 rm -rf conftest* 1872 ac_cv_prog_gcc_traditional=yes 1873else 1874 rm -rf conftest* 1875 ac_cv_prog_gcc_traditional=no 1876fi 1877rm -f conftest* 1878 1879 1880 if test $ac_cv_prog_gcc_traditional = no; then 1881 cat > conftest.$ac_ext <<EOF 1882#line 1883 "configure" 1883#include "confdefs.h" 1884#include <termio.h> 1885Autoconf TCGETA 1886EOF 1887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1888 egrep "$ac_pattern" >/dev/null 2>&1; then 1889 rm -rf conftest* 1890 ac_cv_prog_gcc_traditional=yes 1891fi 1892rm -f conftest* 1893 1894 fi 1895fi 1896 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1897 if test $ac_cv_prog_gcc_traditional = yes; then 1898 CC="$CC -traditional" 1899 fi 1900fi 1901 1902echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1903if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1904 echo $ac_n "(cached) $ac_c" 1>&6 1905else 1906 cat > conftest.$ac_ext <<EOF 1907#line 1908 "configure" 1908#include "confdefs.h" 1909#include <sys/types.h> 1910#include <signal.h> 1911#ifdef signal 1912#undef signal 1913#endif 1914#ifdef __cplusplus 1915extern "C" 1916#endif 1917void (*signal ()) (); 1918int main() { return 0; } 1919int t() { 1920int i; 1921; return 0; } 1922EOF 1923if eval $ac_compile; then 1924 rm -rf conftest* 1925 ac_cv_type_signal=void 1926else 1927 rm -rf conftest* 1928 ac_cv_type_signal=int 1929fi 1930rm -f conftest* 1931 1932fi 1933echo "$ac_t""$ac_cv_type_signal" 1>&6 1934cat >> confdefs.h <<EOF 1935#define RETSIGTYPE $ac_cv_type_signal 1936EOF 1937 1938 1939for ac_func in strchr memcpy 1940do 1941echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1942if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1943 echo $ac_n "(cached) $ac_c" 1>&6 1944else 1945 cat > conftest.$ac_ext <<EOF 1946#line 1947 "configure" 1947#include "confdefs.h" 1948/* System header to define __stub macros and hopefully few prototypes, 1949 which can conflict with char $ac_func(); below. */ 1950#include <assert.h> 1951/* Override any gcc2 internal prototype to avoid an error. */ 1952char $ac_func(); 1953 1954int main() { return 0; } 1955int t() { 1956 1957/* The GNU C library defines this for functions which it implements 1958 to always fail with ENOSYS. Some functions are actually named 1959 something starting with __ and the normal name is an alias. */ 1960#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1961choke me 1962#else 1963$ac_func(); 1964#endif 1965 1966; return 0; } 1967EOF 1968if eval $ac_link; then 1969 rm -rf conftest* 1970 eval "ac_cv_func_$ac_func=yes" 1971else 1972 rm -rf conftest* 1973 eval "ac_cv_func_$ac_func=no" 1974fi 1975rm -f conftest* 1976 1977fi 1978if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1979 echo "$ac_t""yes" 1>&6 1980 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` 1981 cat >> confdefs.h <<EOF 1982#define $ac_tr_func 1 1983EOF 1984 1985else 1986 echo "$ac_t""no" 1>&6 1987fi 1988done 1989 1990for ac_func in re_comp regcmp regcomp 1991do 1992echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1993if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1994 echo $ac_n "(cached) $ac_c" 1>&6 1995else 1996 cat > conftest.$ac_ext <<EOF 1997#line 1998 "configure" 1998#include "confdefs.h" 1999/* System header to define __stub macros and hopefully few prototypes, 2000 which can conflict with char $ac_func(); below. */ 2001#include <assert.h> 2002/* Override any gcc2 internal prototype to avoid an error. */ 2003char $ac_func(); 2004 2005int main() { return 0; } 2006int t() { 2007 2008/* The GNU C library defines this for functions which it implements 2009 to always fail with ENOSYS. Some functions are actually named 2010 something starting with __ and the normal name is an alias. */ 2011#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2012choke me 2013#else 2014$ac_func(); 2015#endif 2016 2017; return 0; } 2018EOF 2019if eval $ac_link; then 2020 rm -rf conftest* 2021 eval "ac_cv_func_$ac_func=yes" 2022else 2023 rm -rf conftest* 2024 eval "ac_cv_func_$ac_func=no" 2025fi 2026rm -f conftest* 2027 2028fi 2029if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2030 echo "$ac_t""yes" 1>&6 2031 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` 2032 cat >> confdefs.h <<EOF 2033#define $ac_tr_func 1 2034EOF 2035 2036else 2037 echo "$ac_t""no" 1>&6 2038fi 2039done 2040 2041for ac_func in rint pow10 fmod 2042do 2043echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2045 echo $ac_n "(cached) $ac_c" 1>&6 2046else 2047 cat > conftest.$ac_ext <<EOF 2048#line 2049 "configure" 2049#include "confdefs.h" 2050/* System header to define __stub macros and hopefully few prototypes, 2051 which can conflict with char $ac_func(); below. */ 2052#include <assert.h> 2053/* Override any gcc2 internal prototype to avoid an error. */ 2054char $ac_func(); 2055 2056int main() { return 0; } 2057int t() { 2058 2059/* The GNU C library defines this for functions which it implements 2060 to always fail with ENOSYS. Some functions are actually named 2061 something starting with __ and the normal name is an alias. */ 2062#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2063choke me 2064#else 2065$ac_func(); 2066#endif 2067 2068; return 0; } 2069EOF 2070if eval $ac_link; then 2071 rm -rf conftest* 2072 eval "ac_cv_func_$ac_func=yes" 2073else 2074 rm -rf conftest* 2075 eval "ac_cv_func_$ac_func=no" 2076fi 2077rm -f conftest* 2078 2079fi 2080if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2081 echo "$ac_t""yes" 1>&6 2082 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` 2083 cat >> confdefs.h <<EOF 2084#define $ac_tr_func 1 2085EOF 2086 2087else 2088 echo "$ac_t""no" 1>&6 2089fi 2090done 2091 2092for ac_func in fixterm idlok keypad notimeout reset_prog_mode reset_term_mode resetterm 2093do 2094echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2095if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2096 echo $ac_n "(cached) $ac_c" 1>&6 2097else 2098 cat > conftest.$ac_ext <<EOF 2099#line 2100 "configure" 2100#include "confdefs.h" 2101/* System header to define __stub macros and hopefully few prototypes, 2102 which can conflict with char $ac_func(); below. */ 2103#include <assert.h> 2104/* Override any gcc2 internal prototype to avoid an error. */ 2105char $ac_func(); 2106 2107int main() { return 0; } 2108int t() { 2109 2110/* The GNU C library defines this for functions which it implements 2111 to always fail with ENOSYS. Some functions are actually named 2112 something starting with __ and the normal name is an alias. */ 2113#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2114choke me 2115#else 2116$ac_func(); 2117#endif 2118 2119; return 0; } 2120EOF 2121if eval $ac_link; then 2122 rm -rf conftest* 2123 eval "ac_cv_func_$ac_func=yes" 2124else 2125 rm -rf conftest* 2126 eval "ac_cv_func_$ac_func=no" 2127fi 2128rm -f conftest* 2129 2130fi 2131if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2132 echo "$ac_t""yes" 1>&6 2133 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` 2134 cat >> confdefs.h <<EOF 2135#define $ac_tr_func 1 2136EOF 2137 2138else 2139 echo "$ac_t""no" 1>&6 2140fi 2141done 2142 2143 2144 2145 2146trap '' 1 2 15 2147cat > confcache <<\EOF 2148# This file is a shell script that caches the results of configure 2149# tests run on this system so they can be shared between configure 2150# scripts and configure runs. It is not useful on other systems. 2151# If it contains results you don't want to keep, you may remove or edit it. 2152# 2153# By default, configure uses ./config.cache as the cache file, 2154# creating it if it does not exist already. You can give configure 2155# the --cache-file=FILE option to use a different cache file; that is 2156# what configure does when it calls configure scripts in 2157# subdirectories, so they share the cache. 2158# Giving --cache-file=/dev/null disables caching, for debugging configure. 2159# config.status only pays attention to the cache file if you give it the 2160# --recheck option to rerun configure. 2161# 2162EOF 2163# Ultrix sh set writes to stderr and can't be redirected directly, 2164# and sets the high bit in the cache file unless we assign to the vars. 2165(set) 2>&1 | 2166 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 2167 >> confcache 2168if cmp -s $cache_file confcache; then 2169 : 2170else 2171 if test -w $cache_file; then 2172 echo "updating cache $cache_file" 2173 cat confcache > $cache_file 2174 else 2175 echo "not updating unwritable cache $cache_file" 2176 fi 2177fi 2178rm -f confcache 2179 2180trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2181 2182test "x$prefix" = xNONE && prefix=$ac_default_prefix 2183# Let make expand exec_prefix. 2184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2185 2186# Any assignment to VPATH causes Sun make to only execute 2187# the first set of double-colon rules, so remove it if not needed. 2188# If there is a colon in the path, we need to keep it. 2189if test "x$srcdir" = x.; then 2190 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2191fi 2192 2193trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2194 2195DEFS=-DHAVE_CONFIG_H 2196 2197# Without the "./", some shells look in PATH for config.status. 2198: ${CONFIG_STATUS=./config.status} 2199 2200echo creating $CONFIG_STATUS 2201rm -f $CONFIG_STATUS 2202cat > $CONFIG_STATUS <<EOF 2203#! /bin/sh 2204# Generated automatically by configure. 2205# Run this file to recreate the current configuration. 2206# This directory was configured as follows, 2207# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2208# 2209# $0 $ac_configure_args 2210# 2211# Compiler output produced by configure, useful for debugging 2212# configure, is in ./config.log if it exists. 2213 2214ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2215for ac_option 2216do 2217 case "\$ac_option" in 2218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2219 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2220 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2221 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2222 echo "$CONFIG_STATUS generated by autoconf version 2.4" 2223 exit 0 ;; 2224 -help | --help | --hel | --he | --h) 2225 echo "\$ac_cs_usage"; exit 0 ;; 2226 *) echo "\$ac_cs_usage"; exit 1 ;; 2227 esac 2228done 2229 2230ac_given_srcdir=$srcdir 2231 2232trap 'rm -fr `echo "Makefile config.h:config_h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2233 2234# Protect against being on the right side of a sed subst in config.status. 2235sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 2236 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF 2237$ac_vpsub 2238$extrasub 2239s%@CFLAGS@%$CFLAGS%g 2240s%@CPPFLAGS@%$CPPFLAGS%g 2241s%@CXXFLAGS@%$CXXFLAGS%g 2242s%@DEFS@%$DEFS%g 2243s%@LDFLAGS@%$LDFLAGS%g 2244s%@LIBS@%$LIBS%g 2245s%@exec_prefix@%$exec_prefix%g 2246s%@prefix@%$prefix%g 2247s%@program_transform_name@%$program_transform_name%g 2248s%@YACC@%$YACC%g 2249s%@CC@%$CC%g 2250s%@LN_S@%$LN_S%g 2251s%@SET_MAKE@%$SET_MAKE%g 2252s%@DFLT_PAGER@%$DFLT_PAGER%g 2253s%@CRYPT_PATH@%$CRYPT_PATH%g 2254s%@DES@%$DES%g 2255s%@CPP@%$CPP%g 2256s%@xincludedir@%$xincludedir%g 2257s%@xlibdir@%$xlibdir%g 2258s%@wlibs@%$wlibs%g 2259s%@ALLOCA@%$ALLOCA%g 2260 2261CEOF 2262EOF 2263cat >> $CONFIG_STATUS <<EOF 2264 2265CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2266EOF 2267cat >> $CONFIG_STATUS <<\EOF 2268for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2269 # Support "outfile[:infile]", defaulting infile="outfile.in". 2270 case "$ac_file" in 2271 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 2272 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2273 *) ac_file_in="${ac_file}.in" ;; 2274 esac 2275 2276 # Adjust relative srcdir, etc. for subdirectories. 2277 2278 # Remove last slash and all that follows it. Not all systems have dirname. 2279 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2281 # The file is in a subdirectory. 2282 test ! -d "$ac_dir" && mkdir "$ac_dir" 2283 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2284 # A "../" for each directory in $ac_dir_suffix. 2285 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2286 else 2287 ac_dir_suffix= ac_dots= 2288 fi 2289 2290 case "$ac_given_srcdir" in 2291 .) srcdir=. 2292 if test -z "$ac_dots"; then top_srcdir=. 2293 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2294 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2295 *) # Relative path. 2296 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2297 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2298 esac 2299 2300 echo creating "$ac_file" 2301 rm -f "$ac_file" 2302 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2303 case "$ac_file" in 2304 *Makefile*) ac_comsub="1i\\ 2305# $configure_input" ;; 2306 *) ac_comsub= ;; 2307 esac 2308 sed -e "$ac_comsub 2309s%@configure_input@%$configure_input%g 2310s%@srcdir@%$srcdir%g 2311s%@top_srcdir@%$top_srcdir%g 2312" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file 2313fi; done 2314rm -f conftest.subs 2315 2316# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2317# NAME is the cpp macro being defined and VALUE is the value it is being given. 2318# 2319# ac_d sets the value in "#define NAME VALUE" lines. 2320ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2321ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2322ac_dC='\3' 2323ac_dD='%g' 2324# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2325ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2326ac_uB='\([ ]\)%\1#\2define\3' 2327ac_uC=' ' 2328ac_uD='\4%g' 2329# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2330ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2331ac_eB='$%\1#\2define\3' 2332ac_eC=' ' 2333ac_eD='%g' 2334 2335CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config_h.in"} 2336for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2337 # Support "outfile[:infile]", defaulting infile="outfile.in". 2338 case "$ac_file" in 2339 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 2340 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2341 *) ac_file_in="${ac_file}.in" ;; 2342 esac 2343 2344 echo creating $ac_file 2345 2346 rm -f conftest.frag conftest.in conftest.out 2347 cp $ac_given_srcdir/$ac_file_in conftest.in 2348 2349EOF 2350 2351# Transform confdefs.h into a sed script conftest.vals that substitutes 2352# the proper values into config.h.in to produce config.h. And first: 2353# Protect against being on the right side of a sed subst in config.status. 2354# Protect against being in an unquoted here document in config.status. 2355rm -f conftest.vals 2356cat > conftest.hdr <<\EOF 2357s/[\\&%]/\\&/g 2358s%[\\$`]%\\&%g 2359s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2360s%ac_d%ac_u%gp 2361s%ac_u%ac_e%gp 2362EOF 2363sed -n -f conftest.hdr confdefs.h > conftest.vals 2364rm -f conftest.hdr 2365 2366# This sed command replaces #undef with comments. This is necessary, for 2367# example, in the case of _POSIX_SOURCE, which is predefined and required 2368# on some systems where configure will not decide to define it. 2369cat >> conftest.vals <<\EOF 2370s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2371EOF 2372 2373# Break up conftest.vals because some shells have a limit on 2374# the size of here documents, and old seds have small limits too. 2375# Maximum number of lines to put in a single here document. 2376ac_max_here_lines=12 2377 2378rm -f conftest.tail 2379while : 2380do 2381 ac_lines=`grep -c . conftest.vals` 2382 # grep -c gives empty output for an empty file on some AIX systems. 2383 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2384 # Write a limited-size here document to conftest.frag. 2385 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2386 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2387 echo 'CEOF 2388 sed -f conftest.frag conftest.in > conftest.out 2389 rm -f conftest.in 2390 mv conftest.out conftest.in 2391' >> $CONFIG_STATUS 2392 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2393 rm -f conftest.vals 2394 mv conftest.tail conftest.vals 2395done 2396rm -f conftest.vals 2397 2398cat >> $CONFIG_STATUS <<\EOF 2399 rm -f conftest.frag conftest.h 2400 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2401 cat conftest.in >> conftest.h 2402 rm -f conftest.in 2403 if cmp -s $ac_file conftest.h 2>/dev/null; then 2404 echo "$ac_file is unchanged" 2405 rm -f conftest.h 2406 else 2407 rm -f $ac_file 2408 mv conftest.h $ac_file 2409 fi 2410fi; done 2411 2412 2413 2414exit 0 2415EOF 2416chmod +x $CONFIG_STATUS 2417rm -fr confdefs* $ac_clean_files 2418test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2419 2420 2421