configure revision 83098
11541Srgrimes#! /bin/sh 21541Srgrimes 31541Srgrimes# Guess values for system-dependent variables and create Makefiles. 41541Srgrimes# Generated automatically using autoconf version 2.13 51541Srgrimes# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 61541Srgrimes# 71541Srgrimes# This configure script is free software; the Free Software Foundation 81541Srgrimes# gives unlimited permission to copy, distribute and modify it. 91541Srgrimes 101541Srgrimes# Defaults: 111541Srgrimesac_help= 121541Srgrimesac_default_prefix=/usr/local 131541Srgrimes# Any additions from configure.in: 141541Srgrimesac_help="$ac_help 151541Srgrimes --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion" 161541Srgrimes 171541Srgrimes# Initialize some variables set by options. 181541Srgrimes# The variables have the same names as the options, with 191541Srgrimes# dashes changed to underlines. 201541Srgrimesbuild=NONE 211541Srgrimescache_file=./config.cache 221541Srgrimesexec_prefix=NONE 231541Srgrimeshost=NONE 241541Srgrimesno_create= 251541Srgrimesnonopt=NONE 261541Srgrimesno_recursion= 271541Srgrimesprefix=NONE 281541Srgrimesprogram_prefix=NONE 291541Srgrimesprogram_suffix=NONE 301541Srgrimesprogram_transform_name=s,x,x, 311541Srgrimessilent= 321541Srgrimessite= 331541Srgrimessrcdir= 34116189Sobrientarget=NONE 35116189Sobrienverbose= 36116189Sobrienx_includes=NONE 3718207Sbdex_libraries=NONE 381541Srgrimesbindir='${exec_prefix}/bin' 391541Srgrimessbindir='${exec_prefix}/sbin' 401541Srgrimeslibexecdir='${exec_prefix}/libexec' 411541Srgrimesdatadir='${prefix}/share' 421541Srgrimessysconfdir='${prefix}/etc' 431541Srgrimessharedstatedir='${prefix}/com' 441541Srgrimeslocalstatedir='${prefix}/var' 451541Srgrimeslibdir='${exec_prefix}/lib' 461541Srgrimesincludedir='${prefix}/include' 471541Srgrimesoldincludedir='/usr/include' 481541Srgrimesinfodir='${prefix}/info' 491541Srgrimesmandir='${prefix}/man' 501541Srgrimes 511541Srgrimes# Initialize some other variables. 521541Srgrimessubdirs= 531541SrgrimesMFLAGS= MAKEFLAGS= 541541SrgrimesSHELL=${CONFIG_SHELL-/bin/sh} 551541Srgrimes# Maximum number of lines to put in a shell here document. 561541Srgrimesac_max_here_lines=12 571541Srgrimes 581541Srgrimesac_prev= 591541Srgrimesfor ac_option 601541Srgrimesdo 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --version print the version of autoconf that created configure 148Directory and file names: 149 --prefix=PREFIX install architecture-independent files in PREFIX 150 [$ac_default_prefix] 151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 152 [same as prefix] 153 --bindir=DIR user executables in DIR [EPREFIX/bin] 154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 156 --datadir=DIR read-only architecture-independent data in DIR 157 [PREFIX/share] 158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 159 --sharedstatedir=DIR modifiable architecture-independent data in DIR 160 [PREFIX/com] 161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 162 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 163 --includedir=DIR C header files in DIR [PREFIX/include] 164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 165 --infodir=DIR info documentation in DIR [PREFIX/info] 166 --mandir=DIR man documentation in DIR [PREFIX/man] 167 --srcdir=DIR find the sources in DIR [configure dir or ..] 168 --program-prefix=PREFIX prepend PREFIX to installed program names 169 --program-suffix=SUFFIX append SUFFIX to installed program names 170 --program-transform-name=PROGRAM 171 run sed PROGRAM on installed program names 172EOF 173 cat << EOF 174Host type: 175 --build=BUILD configure for building on BUILD [BUILD=HOST] 176 --host=HOST configure for HOST [guessed] 177 --target=TARGET configure for TARGET [TARGET=HOST] 178Features and packages: 179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 183 --x-includes=DIR X include files are in DIR 184 --x-libraries=DIR X library files are in DIR 185EOF 186 if test -n "$ac_help"; then 187 echo "--enable and --with options recognized:$ac_help" 188 fi 189 exit 0 ;; 190 191 -host | --host | --hos | --ho) 192 ac_prev=host ;; 193 -host=* | --host=* | --hos=* | --ho=*) 194 host="$ac_optarg" ;; 195 196 -includedir | --includedir | --includedi | --included | --include \ 197 | --includ | --inclu | --incl | --inc) 198 ac_prev=includedir ;; 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 200 | --includ=* | --inclu=* | --incl=* | --inc=*) 201 includedir="$ac_optarg" ;; 202 203 -infodir | --infodir | --infodi | --infod | --info | --inf) 204 ac_prev=infodir ;; 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 206 infodir="$ac_optarg" ;; 207 208 -libdir | --libdir | --libdi | --libd) 209 ac_prev=libdir ;; 210 -libdir=* | --libdir=* | --libdi=* | --libd=*) 211 libdir="$ac_optarg" ;; 212 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 214 | --libexe | --libex | --libe) 215 ac_prev=libexecdir ;; 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 217 | --libexe=* | --libex=* | --libe=*) 218 libexecdir="$ac_optarg" ;; 219 220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 221 | --localstate | --localstat | --localsta | --localst \ 222 | --locals | --local | --loca | --loc | --lo) 223 ac_prev=localstatedir ;; 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 227 localstatedir="$ac_optarg" ;; 228 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 230 ac_prev=mandir ;; 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 232 mandir="$ac_optarg" ;; 233 234 -nfp | --nfp | --nf) 235 # Obsolete; use --without-fp. 236 with_fp=no ;; 237 238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 239 | --no-cr | --no-c) 240 no_create=yes ;; 241 242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 244 no_recursion=yes ;; 245 246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 248 | --oldin | --oldi | --old | --ol | --o) 249 ac_prev=oldincludedir ;; 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 253 oldincludedir="$ac_optarg" ;; 254 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 256 ac_prev=prefix ;; 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 258 prefix="$ac_optarg" ;; 259 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 261 | --program-pre | --program-pr | --program-p) 262 ac_prev=program_prefix ;; 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 265 program_prefix="$ac_optarg" ;; 266 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 268 | --program-suf | --program-su | --program-s) 269 ac_prev=program_suffix ;; 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 272 program_suffix="$ac_optarg" ;; 273 274 -program-transform-name | --program-transform-name \ 275 | --program-transform-nam | --program-transform-na \ 276 | --program-transform-n | --program-transform- \ 277 | --program-transform | --program-transfor \ 278 | --program-transfo | --program-transf \ 279 | --program-trans | --program-tran \ 280 | --progr-tra | --program-tr | --program-t) 281 ac_prev=program_transform_name ;; 282 -program-transform-name=* | --program-transform-name=* \ 283 | --program-transform-nam=* | --program-transform-na=* \ 284 | --program-transform-n=* | --program-transform-=* \ 285 | --program-transform=* | --program-transfor=* \ 286 | --program-transfo=* | --program-transf=* \ 287 | --program-trans=* | --program-tran=* \ 288 | --progr-tra=* | --program-tr=* | --program-t=*) 289 program_transform_name="$ac_optarg" ;; 290 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 292 | -silent | --silent | --silen | --sile | --sil) 293 silent=yes ;; 294 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 296 ac_prev=sbindir ;; 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 298 | --sbi=* | --sb=*) 299 sbindir="$ac_optarg" ;; 300 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 303 | --sharedst | --shareds | --shared | --share | --shar \ 304 | --sha | --sh) 305 ac_prev=sharedstatedir ;; 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 309 | --sha=* | --sh=*) 310 sharedstatedir="$ac_optarg" ;; 311 312 -site | --site | --sit) 313 ac_prev=site ;; 314 -site=* | --site=* | --sit=*) 315 site="$ac_optarg" ;; 316 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 318 ac_prev=srcdir ;; 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 320 srcdir="$ac_optarg" ;; 321 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 323 | --syscon | --sysco | --sysc | --sys | --sy) 324 ac_prev=sysconfdir ;; 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 327 sysconfdir="$ac_optarg" ;; 328 329 -target | --target | --targe | --targ | --tar | --ta | --t) 330 ac_prev=target ;; 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 332 target="$ac_optarg" ;; 333 334 -v | -verbose | --verbose | --verbos | --verbo | --verb) 335 verbose=yes ;; 336 337 -version | --version | --versio | --versi | --vers) 338 echo "configure generated by autoconf version 2.13" 339 exit 0 ;; 340 341 -with-* | --with-*) 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 343 # Reject names that are not valid shell variable names. 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 346 fi 347 ac_package=`echo $ac_package| sed 's/-/_/g'` 348 case "$ac_option" in 349 *=*) ;; 350 *) ac_optarg=yes ;; 351 esac 352 eval "with_${ac_package}='$ac_optarg'" ;; 353 354 -without-* | --without-*) 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 eval "with_${ac_package}=no" ;; 362 363 --x) 364 # Obsolete; use --with-x. 365 with_x=yes ;; 366 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 368 | --x-incl | --x-inc | --x-in | --x-i) 369 ac_prev=x_includes ;; 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 372 x_includes="$ac_optarg" ;; 373 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 376 ac_prev=x_libraries ;; 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 379 x_libraries="$ac_optarg" ;; 380 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 382 ;; 383 384 *) 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 386 echo "configure: warning: $ac_option: invalid host type" 1>&2 387 fi 388 if test "x$nonopt" != xNONE; then 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 390 fi 391 nonopt="$ac_option" 392 ;; 393 394 esac 395done 396 397if test -n "$ac_prev"; then 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 399fi 400 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 402 403# File descriptor usage: 404# 0 standard input 405# 1 file creation 406# 2 errors and warnings 407# 3 some systems may open it to /dev/tty 408# 4 used on the Kubota Titan 409# 6 checking for... messages and results 410# 5 compiler messages saved in config.log 411if test "$silent" = yes; then 412 exec 6>/dev/null 413else 414 exec 6>&1 415fi 416exec 5>./config.log 417 418echo "\ 419This file contains any messages produced by compilers while 420running configure, to aid debugging if configure makes a mistake. 421" 1>&5 422 423# Strip out --no-create and --no-recursion so they do not pile up. 424# Also quote any args containing shell metacharacters. 425ac_configure_args= 426for ac_arg 427do 428 case "$ac_arg" in 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 430 | --no-cr | --no-c) ;; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 434 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 435 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 436 esac 437done 438 439# NLS nuisances. 440# Only set these to C if already set. These must not be set unconditionally 441# because not all systems understand e.g. LANG=C (notably SCO). 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 443# Non-C LC_CTYPE values break the ctype check. 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 448 449# confdefs.h avoids OS command line length limits that DEFS can exceed. 450rm -rf conftest* confdefs.h 451# AIX cpp loses on an empty file, so make sure it contains at least a newline. 452echo > confdefs.h 453 454# A filename unique to this package, relative to the directory that 455# configure is in, which we can look for to find out if srcdir is correct. 456ac_unique_file=tc.vers.c 457 458# Find the source files, if location was not specified. 459if test -z "$srcdir"; then 460 ac_srcdir_defaulted=yes 461 # Try the directory containing this script, then its parent. 462 ac_prog=$0 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 465 srcdir=$ac_confdir 466 if test ! -r $srcdir/$ac_unique_file; then 467 srcdir=.. 468 fi 469else 470 ac_srcdir_defaulted=no 471fi 472if test ! -r $srcdir/$ac_unique_file; then 473 if test "$ac_srcdir_defaulted" = yes; then 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 475 else 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 477 fi 478fi 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 480 481# Prefer explicitly selected file to automatically selected ones. 482if test -z "$CONFIG_SITE"; then 483 if test "x$prefix" != xNONE; then 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 485 else 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 487 fi 488fi 489for ac_site_file in $CONFIG_SITE; do 490 if test -r "$ac_site_file"; then 491 echo "loading site script $ac_site_file" 492 . "$ac_site_file" 493 fi 494done 495 496if test -r "$cache_file"; then 497 echo "loading cache $cache_file" 498 . $cache_file 499else 500 echo "creating cache $cache_file" 501 > $cache_file 502fi 503 504ac_ext=c 505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 506ac_cpp='$CPP $CPPFLAGS' 507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 509cross_compiling=$ac_cv_prog_cc_cross 510 511ac_exeext= 512ac_objext=o 513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521else 522 ac_n= ac_c='\c' ac_t= 523fi 524 525 526 527ac_aux_dir= 528for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 529 if test -f $ac_dir/install-sh; then 530 ac_aux_dir=$ac_dir 531 ac_install_sh="$ac_aux_dir/install-sh -c" 532 break 533 elif test -f $ac_dir/install.sh; then 534 ac_aux_dir=$ac_dir 535 ac_install_sh="$ac_aux_dir/install.sh -c" 536 break 537 fi 538done 539if test -z "$ac_aux_dir"; then 540 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 541fi 542ac_config_guess=$ac_aux_dir/config.guess 543ac_config_sub=$ac_aux_dir/config.sub 544ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 545 546 547# Make sure we can run config.sub. 548if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 549else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 550fi 551 552echo $ac_n "checking host system type""... $ac_c" 1>&6 553echo "configure:554: checking host system type" >&5 554 555host_alias=$host 556case "$host_alias" in 557NONE) 558 case $nonopt in 559 NONE) 560 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 561 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 562 fi ;; 563 *) host_alias=$nonopt ;; 564 esac ;; 565esac 566 567host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 568host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 569host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 570host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 571echo "$ac_t""$host" 1>&6 572 573 574echo $ac_n "checking cached host tuple""... $ac_c" 1>&6 575echo "configure:576: checking cached host tuple" >&5 576if { test x"${ac_cv_host_system_type+set}" = x"set" && 577 test x"$ac_cv_host_system_type" != x"$host"; }; then 578 echo "$ac_t""different" 1>&6 579 { echo "configure: error: remove config.cache and re-run configure" 1>&2; exit 1; } 580else 581 echo "$ac_t""ok" 1>&6 582fi 583ac_cv_host_system_type="$host" 584 585 586 587case "${host}" in 588 589 ## Alpha (DEC) machines. 590 alpha*-dec-osf* ) 591 tcsh_config_file=decosf1 592 ;; 593 594 ## Ultrix 595 *-dec-ultrix* ) 596 tcsh_config_file=ultrix 597 ;; 598 599 ## DGUX 600 *-dg-dguxR4* ) 601 tcsh_config_file=dgux5.4 602 ;; 603 m88k-dg-dgux5.4R* ) 604 tcsh_config_file=dgux5.4 605 ;; 606 607 ## HP/UX 608 *-hp-hpux7* ) 609 tcsh_config_file=hpux7 610 ;; 611 *-hp-hpux[89]* ) 612 tcsh_config_file=hpux8 613 ;; 614 *-hp-hpux1[0-9]* ) 615 tcsh_config_file=hpux11 616 ;; 617 618 ## IBM AIX systems 619 *-ibm-aix*) 620 tcsh_config_file=aix 621 ;; 622 623 ## SX-4 624 sx4-nec-*) 625 CC='cc -h0,ansi,novector,float0' 626 LDFLAGS='-Gsmall' 627 tcsh_config_file=superux8 628 ;; 629 630 ## IBM OS/390 systems 631 *-ibm-os390*) 632 CC='c89' 633 tcsh_config_file=os390 634 ;; 635 636 ## Linux 637 *-*-linux* ) 638 tcsh_config_file=linux 639 ;; 640 641 ## Motorola systems 642 m68k-motorola-sysv* ) 643 tcsh_config_file=sysV68 644 ;; 645 m88k-motorola-sysv3* ) 646 tcsh_config_file=sysV88 647 ;; 648 649 ## NetBSD systems 650 *-*-netbsd*) 651 tcsh_config_file=bsd4.4 652 ;; 653 654 ## FreeBSD systems 655 *-*-freebsd*) 656 tcsh_config_file=bsd4.4 657 ;; 658 659 ## OpenBSD systems 660 *-*-openbsd*) 661 tcsh_config_file=bsd4.4 662 ;; 663 664 ## BSDI systems 665 *-*-bsdi*) 666 tcsh_config_file=bsd4.4 667 ;; 668 669 ## Mac OS X Server 670 *-*-rhapsody* ) 671 tcsh_config_file=bsd4.4 672 ;; 673 674 ## Silicon Graphics machines 675 *-sgi-iri* ) 676 tcsh_config_file=irix 677 case "${host_os}" in 678 irix[34]*) # Irix-3.x - Irix 4.x 679 NON_GNU_DFLAGS='-D__STDC__' 680 LIBS='-lsun -lbsd -lc_s' 681 ;; 682 irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1 683 LIBS='-lbsd' 684 ;; 685 irix6.[2-9]*) # Irix 6.2 and later 686 tcsh_config_file=irix62 687 ;; 688 esac 689 ;; 690 691 ## Suns 692 *-sun-sunos3* ) 693 tcsh_config_file=sunos35 694 ;; 695 *-sun-sunos4.0* ) 696 tcsh_config_file=sunos40 697 ;; 698 *-sun-sunos4.1.[12]* ) 699 tcsh_config_file=sunos41 700 ;; 701 *-sun-sunos4.1.[3456]* ) 702 tcsh_config_file=sunos413 703 ;; 704 *-*-solaris2.[01]* ) # Should handle sparc or x86 705 tcsh_config_file=sol2 706 ;; 707 *-sun-solaris2.2* ) # Sparc only release 708 tcsh_config_file=sol22 709 ;; 710 *-sun-solaris2.3* ) # Sparc only release 711 tcsh_config_file=sol23 712 ;; 713 *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc 714 tcsh_config_file=sol24 715 ;; 716 *-*-solaris2.* ) # Should handle sparc, x86 and powerpc 717 tcsh_config_file=sol26 718 ;; 719 720 ## Dell SVR4 721 *-dell-sysv4* ) 722 tcsh_config_file=sysv4 723 DFLAGS="$DFLAGS -DDELL" 724 ;; 725 726 ## SVR4 (Generic and otherwise) 727 *-*-sysv4* ) 728 tcsh_config_file=sysv4 729 ;; 730 731 ## Tektronix systems 732 m68k-tektronix-bsd* ) 733 tcsh_config_file=bsd 734 NON_GNU_DFLAGS='-DBSD -DUTek' 735 ;; 736 m88k-tektronix-sysv3* ) 737 tcsh_config_file=tekXD88 738 ;; 739 740 ## SCO 741 *-sco3.2v5*) 742 tcsh_config_file=sco32v5 743 ;; 744 *-sco3.2v4*) 745 tcsh_config_file=sco32v4 746 ;; 747 *-sco3.2v2*) 748 tcsh_config_file=sco32v2 749 ;; 750 751 ## Siemens BS2000 Mainframe 752 bs2000-siemens-posix) 753 tcsh_config_file=bs2000 754 ;; 755 756 ## Convex 757 *-convex*) 758 tcsh_config_file=convex 759 ;; 760 761 ## Cray 762 *-cray-unicos*) 763 tcsh_config_file=cray 764 ;; 765 766 ## Cygnus GNU Win32 767 *-cygwin) 768 tcsh_config_file=cygwin32 769 ;; 770 771 ## mips-compaq-nonstopux 772 *-*-nonstopux) 773 tcsh_config_file=sysv4 774 ;; 775 776 ## Apollo Domain/OS 777 *-apollo-*) 778 tcsh_config_file=apollo 779 ;; 780 781 * ) 782 { echo "configure: error: Tcsh can't guess the configuration file name 783for \`${host}' systems. 784Check tcsh's \`Ported' file for manual configuration instructions." 1>&2; exit 1; } 785 ;; 786 787esac 788 789echo "Tcsh will use configuration file \`$tcsh_config_file'." 790 791 792# Extract the first word of "gcc", so it can be a program name with args. 793set dummy gcc; ac_word=$2 794echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 795echo "configure:796: checking for $ac_word" >&5 796if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 797 echo $ac_n "(cached) $ac_c" 1>&6 798else 799 if test -n "$CC"; then 800 ac_cv_prog_CC="$CC" # Let the user override the test. 801else 802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 803 ac_dummy="$PATH" 804 for ac_dir in $ac_dummy; do 805 test -z "$ac_dir" && ac_dir=. 806 if test -f $ac_dir/$ac_word; then 807 ac_cv_prog_CC="gcc" 808 break 809 fi 810 done 811 IFS="$ac_save_ifs" 812fi 813fi 814CC="$ac_cv_prog_CC" 815if test -n "$CC"; then 816 echo "$ac_t""$CC" 1>&6 817else 818 echo "$ac_t""no" 1>&6 819fi 820 821if test -z "$CC"; then 822 # Extract the first word of "cc", so it can be a program name with args. 823set dummy cc; ac_word=$2 824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 825echo "configure:826: checking for $ac_word" >&5 826if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 827 echo $ac_n "(cached) $ac_c" 1>&6 828else 829 if test -n "$CC"; then 830 ac_cv_prog_CC="$CC" # Let the user override the test. 831else 832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 833 ac_prog_rejected=no 834 ac_dummy="$PATH" 835 for ac_dir in $ac_dummy; do 836 test -z "$ac_dir" && ac_dir=. 837 if test -f $ac_dir/$ac_word; then 838 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 839 ac_prog_rejected=yes 840 continue 841 fi 842 ac_cv_prog_CC="cc" 843 break 844 fi 845 done 846 IFS="$ac_save_ifs" 847if test $ac_prog_rejected = yes; then 848 # We found a bogon in the path, so make sure we never use it. 849 set dummy $ac_cv_prog_CC 850 shift 851 if test $# -gt 0; then 852 # We chose a different compiler from the bogus one. 853 # However, it has the same basename, so the bogon will be chosen 854 # first if we set CC to just the basename; use the full file name. 855 shift 856 set dummy "$ac_dir/$ac_word" "$@" 857 shift 858 ac_cv_prog_CC="$@" 859 fi 860fi 861fi 862fi 863CC="$ac_cv_prog_CC" 864if test -n "$CC"; then 865 echo "$ac_t""$CC" 1>&6 866else 867 echo "$ac_t""no" 1>&6 868fi 869 870 if test -z "$CC"; then 871 case "`uname -s`" in 872 *win32* | *WIN32*) 873 # Extract the first word of "cl", so it can be a program name with args. 874set dummy cl; ac_word=$2 875echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 876echo "configure:877: checking for $ac_word" >&5 877if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 878 echo $ac_n "(cached) $ac_c" 1>&6 879else 880 if test -n "$CC"; then 881 ac_cv_prog_CC="$CC" # Let the user override the test. 882else 883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 884 ac_dummy="$PATH" 885 for ac_dir in $ac_dummy; do 886 test -z "$ac_dir" && ac_dir=. 887 if test -f $ac_dir/$ac_word; then 888 ac_cv_prog_CC="cl" 889 break 890 fi 891 done 892 IFS="$ac_save_ifs" 893fi 894fi 895CC="$ac_cv_prog_CC" 896if test -n "$CC"; then 897 echo "$ac_t""$CC" 1>&6 898else 899 echo "$ac_t""no" 1>&6 900fi 901 ;; 902 esac 903 fi 904 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 905fi 906 907echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 908echo "configure:909: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 909 910ac_ext=c 911# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 912ac_cpp='$CPP $CPPFLAGS' 913ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 914ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 915cross_compiling=$ac_cv_prog_cc_cross 916 917cat > conftest.$ac_ext << EOF 918 919#line 920 "configure" 920#include "confdefs.h" 921 922main(){return(0);} 923EOF 924if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 925 ac_cv_prog_cc_works=yes 926 # If we can't run a trivial program, we are probably using a cross compiler. 927 if (./conftest; exit) 2>/dev/null; then 928 ac_cv_prog_cc_cross=no 929 else 930 ac_cv_prog_cc_cross=yes 931 fi 932else 933 echo "configure: failed program was:" >&5 934 cat conftest.$ac_ext >&5 935 ac_cv_prog_cc_works=no 936fi 937rm -fr conftest* 938ac_ext=c 939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 940ac_cpp='$CPP $CPPFLAGS' 941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 943cross_compiling=$ac_cv_prog_cc_cross 944 945echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 946if test $ac_cv_prog_cc_works = no; then 947 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 948fi 949echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 950echo "configure:951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 951echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 952cross_compiling=$ac_cv_prog_cc_cross 953 954echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 955echo "configure:956: checking whether we are using GNU C" >&5 956if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 957 echo $ac_n "(cached) $ac_c" 1>&6 958else 959 cat > conftest.c <<EOF 960#ifdef __GNUC__ 961 yes; 962#endif 963EOF 964if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 965 ac_cv_prog_gcc=yes 966else 967 ac_cv_prog_gcc=no 968fi 969fi 970 971echo "$ac_t""$ac_cv_prog_gcc" 1>&6 972 973if test $ac_cv_prog_gcc = yes; then 974 GCC=yes 975else 976 GCC= 977fi 978 979ac_test_CFLAGS="${CFLAGS+set}" 980ac_save_CFLAGS="$CFLAGS" 981CFLAGS= 982echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 983echo "configure:984: checking whether ${CC-cc} accepts -g" >&5 984if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 985 echo $ac_n "(cached) $ac_c" 1>&6 986else 987 echo 'void f(){}' > conftest.c 988if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 989 ac_cv_prog_cc_g=yes 990else 991 ac_cv_prog_cc_g=no 992fi 993rm -f conftest* 994 995fi 996 997echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 998if test "$ac_test_CFLAGS" = set; then 999 CFLAGS="$ac_save_CFLAGS" 1000elif test $ac_cv_prog_cc_g = yes; then 1001 if test "$GCC" = yes; then 1002 CFLAGS="-g -O2" 1003 else 1004 CFLAGS="-g" 1005 fi 1006else 1007 if test "$GCC" = yes; then 1008 CFLAGS="-O2" 1009 else 1010 CFLAGS= 1011 fi 1012fi 1013 1014echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1015echo "configure:1016: checking how to run the C preprocessor" >&5 1016# On Suns, sometimes $CPP names a directory. 1017if test -n "$CPP" && test -d "$CPP"; then 1018 CPP= 1019fi 1020if test -z "$CPP"; then 1021if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1022 echo $ac_n "(cached) $ac_c" 1>&6 1023else 1024 # This must be in double quotes, not single quotes, because CPP may get 1025 # substituted into the Makefile and "${CC-cc}" will confuse make. 1026 CPP="${CC-cc} -E" 1027 # On the NeXT, cc -E runs the code through the compiler's parser, 1028 # not just through cpp. 1029 cat > conftest.$ac_ext <<EOF 1030#line 1031 "configure" 1031#include "confdefs.h" 1032#include <assert.h> 1033Syntax Error 1034EOF 1035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1036{ (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1038if test -z "$ac_err"; then 1039 : 1040else 1041 echo "$ac_err" >&5 1042 echo "configure: failed program was:" >&5 1043 cat conftest.$ac_ext >&5 1044 rm -rf conftest* 1045 CPP="${CC-cc} -E -traditional-cpp" 1046 cat > conftest.$ac_ext <<EOF 1047#line 1048 "configure" 1048#include "confdefs.h" 1049#include <assert.h> 1050Syntax Error 1051EOF 1052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1053{ (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1055if test -z "$ac_err"; then 1056 : 1057else 1058 echo "$ac_err" >&5 1059 echo "configure: failed program was:" >&5 1060 cat conftest.$ac_ext >&5 1061 rm -rf conftest* 1062 CPP="${CC-cc} -nologo -E" 1063 cat > conftest.$ac_ext <<EOF 1064#line 1065 "configure" 1065#include "confdefs.h" 1066#include <assert.h> 1067Syntax Error 1068EOF 1069ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1070{ (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1071ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1072if test -z "$ac_err"; then 1073 : 1074else 1075 echo "$ac_err" >&5 1076 echo "configure: failed program was:" >&5 1077 cat conftest.$ac_ext >&5 1078 rm -rf conftest* 1079 CPP=/lib/cpp 1080fi 1081rm -f conftest* 1082fi 1083rm -f conftest* 1084fi 1085rm -f conftest* 1086 ac_cv_prog_CPP="$CPP" 1087fi 1088 CPP="$ac_cv_prog_CPP" 1089else 1090 ac_cv_prog_CPP="$CPP" 1091fi 1092echo "$ac_t""$CPP" 1>&6 1093 1094if test $ac_cv_prog_gcc = yes; then 1095 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1096echo "configure:1097: checking whether ${CC-cc} needs -traditional" >&5 1097if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1098 echo $ac_n "(cached) $ac_c" 1>&6 1099else 1100 ac_pattern="Autoconf.*'x'" 1101 cat > conftest.$ac_ext <<EOF 1102#line 1103 "configure" 1103#include "confdefs.h" 1104#include <sgtty.h> 1105Autoconf TIOCGETP 1106EOF 1107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1108 egrep "$ac_pattern" >/dev/null 2>&1; then 1109 rm -rf conftest* 1110 ac_cv_prog_gcc_traditional=yes 1111else 1112 rm -rf conftest* 1113 ac_cv_prog_gcc_traditional=no 1114fi 1115rm -f conftest* 1116 1117 1118 if test $ac_cv_prog_gcc_traditional = no; then 1119 cat > conftest.$ac_ext <<EOF 1120#line 1121 "configure" 1121#include "confdefs.h" 1122#include <termio.h> 1123Autoconf TCGETA 1124EOF 1125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1126 egrep "$ac_pattern" >/dev/null 2>&1; then 1127 rm -rf conftest* 1128 ac_cv_prog_gcc_traditional=yes 1129fi 1130rm -f conftest* 1131 1132 fi 1133fi 1134 1135echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1136 if test $ac_cv_prog_gcc_traditional = yes; then 1137 CC="$CC -traditional" 1138 fi 1139fi 1140 1141 1142if test $ac_cv_prog_gcc = no ; then 1143 DFLAGS="$DFLAGS $NON_GNU_DFLAGS" 1144 CFLAGS="$CFLAGS $NON_GNU_CFLAGS" 1145fi 1146 1147case "${host}" in 1148 ## Cygnus GNU Win32 1149 *-cygwin) 1150 CFLAGS="$CFLAGS -mno-win32" 1151 ;; 1152esac 1153 1154 1155echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6 1156echo "configure:1157: checking for library containing crypt" >&5 1157if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then 1158 echo $ac_n "(cached) $ac_c" 1>&6 1159else 1160 ac_func_search_save_LIBS="$LIBS" 1161ac_cv_search_crypt="no" 1162cat > conftest.$ac_ext <<EOF 1163#line 1164 "configure" 1164#include "confdefs.h" 1165/* Override any gcc2 internal prototype to avoid an error. */ 1166/* We use char because int might match the return type of a gcc2 1167 builtin and then its argument prototype would still apply. */ 1168char crypt(); 1169 1170int main() { 1171crypt() 1172; return 0; } 1173EOF 1174if { (eval echo configure:1175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1175 rm -rf conftest* 1176 ac_cv_search_crypt="none required" 1177else 1178 echo "configure: failed program was:" >&5 1179 cat conftest.$ac_ext >&5 1180fi 1181rm -f conftest* 1182test "$ac_cv_search_crypt" = "no" && for i in crypt; do 1183LIBS="-l$i $ac_func_search_save_LIBS" 1184cat > conftest.$ac_ext <<EOF 1185#line 1186 "configure" 1186#include "confdefs.h" 1187/* Override any gcc2 internal prototype to avoid an error. */ 1188/* We use char because int might match the return type of a gcc2 1189 builtin and then its argument prototype would still apply. */ 1190char crypt(); 1191 1192int main() { 1193crypt() 1194; return 0; } 1195EOF 1196if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1197 rm -rf conftest* 1198 ac_cv_search_crypt="-l$i" 1199break 1200else 1201 echo "configure: failed program was:" >&5 1202 cat conftest.$ac_ext >&5 1203fi 1204rm -f conftest* 1205done 1206LIBS="$ac_func_search_save_LIBS" 1207fi 1208 1209echo "$ac_t""$ac_cv_search_crypt" 1>&6 1210if test "$ac_cv_search_crypt" != "no"; then 1211 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS" 1212 1213else : 1214 1215fi 1216 1217echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6 1218echo "configure:1219: checking for library containing tgetent" >&5 1219if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then 1220 echo $ac_n "(cached) $ac_c" 1>&6 1221else 1222 ac_func_search_save_LIBS="$LIBS" 1223ac_cv_search_tgetent="no" 1224cat > conftest.$ac_ext <<EOF 1225#line 1226 "configure" 1226#include "confdefs.h" 1227/* Override any gcc2 internal prototype to avoid an error. */ 1228/* We use char because int might match the return type of a gcc2 1229 builtin and then its argument prototype would still apply. */ 1230char tgetent(); 1231 1232int main() { 1233tgetent() 1234; return 0; } 1235EOF 1236if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1237 rm -rf conftest* 1238 ac_cv_search_tgetent="none required" 1239else 1240 echo "configure: failed program was:" >&5 1241 cat conftest.$ac_ext >&5 1242fi 1243rm -f conftest* 1244test "$ac_cv_search_tgetent" = "no" && for i in termlib curses termcap; do 1245LIBS="-l$i $ac_func_search_save_LIBS" 1246cat > conftest.$ac_ext <<EOF 1247#line 1248 "configure" 1248#include "confdefs.h" 1249/* Override any gcc2 internal prototype to avoid an error. */ 1250/* We use char because int might match the return type of a gcc2 1251 builtin and then its argument prototype would still apply. */ 1252char tgetent(); 1253 1254int main() { 1255tgetent() 1256; return 0; } 1257EOF 1258if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1259 rm -rf conftest* 1260 ac_cv_search_tgetent="-l$i" 1261break 1262else 1263 echo "configure: failed program was:" >&5 1264 cat conftest.$ac_ext >&5 1265fi 1266rm -f conftest* 1267done 1268LIBS="$ac_func_search_save_LIBS" 1269fi 1270 1271echo "$ac_t""$ac_cv_search_tgetent" 1>&6 1272if test "$ac_cv_search_tgetent" != "no"; then 1273 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" 1274 1275else : 1276 1277fi 1278 1279echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 1280echo "configure:1281: checking for library containing gethostbyname" >&5 1281if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then 1282 echo $ac_n "(cached) $ac_c" 1>&6 1283else 1284 ac_func_search_save_LIBS="$LIBS" 1285ac_cv_search_gethostbyname="no" 1286cat > conftest.$ac_ext <<EOF 1287#line 1288 "configure" 1288#include "confdefs.h" 1289/* Override any gcc2 internal prototype to avoid an error. */ 1290/* We use char because int might match the return type of a gcc2 1291 builtin and then its argument prototype would still apply. */ 1292char gethostbyname(); 1293 1294int main() { 1295gethostbyname() 1296; return 0; } 1297EOF 1298if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1299 rm -rf conftest* 1300 ac_cv_search_gethostbyname="none required" 1301else 1302 echo "configure: failed program was:" >&5 1303 cat conftest.$ac_ext >&5 1304fi 1305rm -f conftest* 1306test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do 1307LIBS="-l$i $ac_func_search_save_LIBS" 1308cat > conftest.$ac_ext <<EOF 1309#line 1310 "configure" 1310#include "confdefs.h" 1311/* Override any gcc2 internal prototype to avoid an error. */ 1312/* We use char because int might match the return type of a gcc2 1313 builtin and then its argument prototype would still apply. */ 1314char gethostbyname(); 1315 1316int main() { 1317gethostbyname() 1318; return 0; } 1319EOF 1320if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1321 rm -rf conftest* 1322 ac_cv_search_gethostbyname="-l$i" 1323break 1324else 1325 echo "configure: failed program was:" >&5 1326 cat conftest.$ac_ext >&5 1327fi 1328rm -f conftest* 1329done 1330LIBS="$ac_func_search_save_LIBS" 1331fi 1332 1333echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 1334if test "$ac_cv_search_gethostbyname" != "no"; then 1335 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 1336 1337else : 1338 1339fi 1340 1341echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 1342echo "configure:1343: checking for library containing connect" >&5 1343if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 1345else 1346 ac_func_search_save_LIBS="$LIBS" 1347ac_cv_search_connect="no" 1348cat > conftest.$ac_ext <<EOF 1349#line 1350 "configure" 1350#include "confdefs.h" 1351/* Override any gcc2 internal prototype to avoid an error. */ 1352/* We use char because int might match the return type of a gcc2 1353 builtin and then its argument prototype would still apply. */ 1354char connect(); 1355 1356int main() { 1357connect() 1358; return 0; } 1359EOF 1360if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1361 rm -rf conftest* 1362 ac_cv_search_connect="none required" 1363else 1364 echo "configure: failed program was:" >&5 1365 cat conftest.$ac_ext >&5 1366fi 1367rm -f conftest* 1368test "$ac_cv_search_connect" = "no" && for i in socket; do 1369LIBS="-l$i $ac_func_search_save_LIBS" 1370cat > conftest.$ac_ext <<EOF 1371#line 1372 "configure" 1372#include "confdefs.h" 1373/* Override any gcc2 internal prototype to avoid an error. */ 1374/* We use char because int might match the return type of a gcc2 1375 builtin and then its argument prototype would still apply. */ 1376char connect(); 1377 1378int main() { 1379connect() 1380; return 0; } 1381EOF 1382if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1383 rm -rf conftest* 1384 ac_cv_search_connect="-l$i" 1385break 1386else 1387 echo "configure: failed program was:" >&5 1388 cat conftest.$ac_ext >&5 1389fi 1390rm -f conftest* 1391done 1392LIBS="$ac_func_search_save_LIBS" 1393fi 1394 1395echo "$ac_t""$ac_cv_search_connect" 1>&6 1396if test "$ac_cv_search_connect" != "no"; then 1397 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 1398 1399else : 1400 1401fi 1402 1403 1404 1405 1406# Check whether --with-hesiod or --without-hesiod was given. 1407if test "${with_hesiod+set}" = set; then 1408 withval="$with_hesiod" 1409 hesiod="$withval" 1410else 1411 hesiod=no 1412fi 1413 1414if test "$hesiod" != no; then 1415 HESLIB="-lhesiod" 1416 echo $ac_n "checking for res_send""... $ac_c" 1>&6 1417echo "configure:1418: checking for res_send" >&5 1418if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then 1419 echo $ac_n "(cached) $ac_c" 1>&6 1420else 1421 cat > conftest.$ac_ext <<EOF 1422#line 1423 "configure" 1423#include "confdefs.h" 1424/* System header to define __stub macros and hopefully few prototypes, 1425 which can conflict with char res_send(); below. */ 1426#include <assert.h> 1427/* Override any gcc2 internal prototype to avoid an error. */ 1428/* We use char because int might match the return type of a gcc2 1429 builtin and then its argument prototype would still apply. */ 1430char res_send(); 1431 1432int main() { 1433 1434/* The GNU C library defines this for functions which it implements 1435 to always fail with ENOSYS. Some functions are actually named 1436 something starting with __ and the normal name is an alias. */ 1437#if defined (__stub_res_send) || defined (__stub___res_send) 1438choke me 1439#else 1440res_send(); 1441#endif 1442 1443; return 0; } 1444EOF 1445if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1446 rm -rf conftest* 1447 eval "ac_cv_func_res_send=yes" 1448else 1449 echo "configure: failed program was:" >&5 1450 cat conftest.$ac_ext >&5 1451 rm -rf conftest* 1452 eval "ac_cv_func_res_send=no" 1453fi 1454rm -f conftest* 1455fi 1456 1457if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then 1458 echo "$ac_t""yes" 1>&6 1459 : 1460else 1461 echo "$ac_t""no" 1>&6 1462echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 1463echo "configure:1464: checking for res_send in -lresolv" >&5 1464ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` 1465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1466 echo $ac_n "(cached) $ac_c" 1>&6 1467else 1468 ac_save_LIBS="$LIBS" 1469LIBS="-lresolv $LIBS" 1470cat > conftest.$ac_ext <<EOF 1471#line 1472 "configure" 1472#include "confdefs.h" 1473/* Override any gcc2 internal prototype to avoid an error. */ 1474/* We use char because int might match the return type of a gcc2 1475 builtin and then its argument prototype would still apply. */ 1476char res_send(); 1477 1478int main() { 1479res_send() 1480; return 0; } 1481EOF 1482if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1483 rm -rf conftest* 1484 eval "ac_cv_lib_$ac_lib_var=yes" 1485else 1486 echo "configure: failed program was:" >&5 1487 cat conftest.$ac_ext >&5 1488 rm -rf conftest* 1489 eval "ac_cv_lib_$ac_lib_var=no" 1490fi 1491rm -f conftest* 1492LIBS="$ac_save_LIBS" 1493 1494fi 1495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1496 echo "$ac_t""yes" 1>&6 1497 HESLIB="$HESLIB -lresolv" 1498else 1499 echo "$ac_t""no" 1>&6 1500fi 1501 1502fi 1503 1504 HESDEF=-DHESIOD 1505 if test "$hesiod" != yes; then 1506 HESDEF="$HESDEF -I$hesiod/include" 1507 HESLIB="-L$hesiod/lib $HESLIB" 1508 fi 1509fi 1510 1511 1512 1513trap '' 1 2 15 1514cat > confcache <<\EOF 1515# This file is a shell script that caches the results of configure 1516# tests run on this system so they can be shared between configure 1517# scripts and configure runs. It is not useful on other systems. 1518# If it contains results you don't want to keep, you may remove or edit it. 1519# 1520# By default, configure uses ./config.cache as the cache file, 1521# creating it if it does not exist already. You can give configure 1522# the --cache-file=FILE option to use a different cache file; that is 1523# what configure does when it calls configure scripts in 1524# subdirectories, so they share the cache. 1525# Giving --cache-file=/dev/null disables caching, for debugging configure. 1526# config.status only pays attention to the cache file if you give it the 1527# --recheck option to rerun configure. 1528# 1529EOF 1530# The following way of writing the cache mishandles newlines in values, 1531# but we know of no workaround that is simple, portable, and efficient. 1532# So, don't put newlines in cache variables' values. 1533# Ultrix sh set writes to stderr and can't be redirected directly, 1534# and sets the high bit in the cache file unless we assign to the vars. 1535(set) 2>&1 | 1536 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1537 *ac_space=\ *) 1538 # `set' does not quote correctly, so add quotes (double-quote substitution 1539 # turns \\\\ into \\, and sed turns \\ into \). 1540 sed -n \ 1541 -e "s/'/'\\\\''/g" \ 1542 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1543 ;; 1544 *) 1545 # `set' quotes correctly as required by POSIX, so do not add quotes. 1546 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1547 ;; 1548 esac >> confcache 1549if cmp -s $cache_file confcache; then 1550 : 1551else 1552 if test -w $cache_file; then 1553 echo "updating cache $cache_file" 1554 cat confcache > $cache_file 1555 else 1556 echo "not updating unwritable cache $cache_file" 1557 fi 1558fi 1559rm -f confcache 1560 1561trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1562 1563test "x$prefix" = xNONE && prefix=$ac_default_prefix 1564# Let make expand exec_prefix. 1565test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1566 1567# Any assignment to VPATH causes Sun make to only execute 1568# the first set of double-colon rules, so remove it if not needed. 1569# If there is a colon in the path, we need to keep it. 1570if test "x$srcdir" = x.; then 1571 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1572fi 1573 1574trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1575 1576DEFS=-DHAVE_CONFIG_H 1577 1578# Without the "./", some shells look in PATH for config.status. 1579: ${CONFIG_STATUS=./config.status} 1580 1581echo creating $CONFIG_STATUS 1582rm -f $CONFIG_STATUS 1583cat > $CONFIG_STATUS <<EOF 1584#! /bin/sh 1585# Generated automatically by configure. 1586# Run this file to recreate the current configuration. 1587# This directory was configured as follows, 1588# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1589# 1590# $0 $ac_configure_args 1591# 1592# Compiler output produced by configure, useful for debugging 1593# configure, is in ./config.log if it exists. 1594 1595ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1596for ac_option 1597do 1598 case "\$ac_option" in 1599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1600 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1601 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1602 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1603 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1604 exit 0 ;; 1605 -help | --help | --hel | --he | --h) 1606 echo "\$ac_cs_usage"; exit 0 ;; 1607 *) echo "\$ac_cs_usage"; exit 1 ;; 1608 esac 1609done 1610 1611ac_given_srcdir=$srcdir 1612 1613trap 'rm -fr `echo "Makefile config.h:config/${tcsh_config_file}:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1614EOF 1615cat >> $CONFIG_STATUS <<EOF 1616 1617# Protect against being on the right side of a sed subst in config.status. 1618sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1619 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1620$ac_vpsub 1621$extrasub 1622s%@SHELL@%$SHELL%g 1623s%@CFLAGS@%$CFLAGS%g 1624s%@CPPFLAGS@%$CPPFLAGS%g 1625s%@CXXFLAGS@%$CXXFLAGS%g 1626s%@FFLAGS@%$FFLAGS%g 1627s%@DEFS@%$DEFS%g 1628s%@LDFLAGS@%$LDFLAGS%g 1629s%@LIBS@%$LIBS%g 1630s%@exec_prefix@%$exec_prefix%g 1631s%@prefix@%$prefix%g 1632s%@program_transform_name@%$program_transform_name%g 1633s%@bindir@%$bindir%g 1634s%@sbindir@%$sbindir%g 1635s%@libexecdir@%$libexecdir%g 1636s%@datadir@%$datadir%g 1637s%@sysconfdir@%$sysconfdir%g 1638s%@sharedstatedir@%$sharedstatedir%g 1639s%@localstatedir@%$localstatedir%g 1640s%@libdir@%$libdir%g 1641s%@includedir@%$includedir%g 1642s%@oldincludedir@%$oldincludedir%g 1643s%@infodir@%$infodir%g 1644s%@mandir@%$mandir%g 1645s%@host@%$host%g 1646s%@host_alias@%$host_alias%g 1647s%@host_cpu@%$host_cpu%g 1648s%@host_vendor@%$host_vendor%g 1649s%@host_os@%$host_os%g 1650s%@CC@%$CC%g 1651s%@CPP@%$CPP%g 1652s%@DFLAGS@%$DFLAGS%g 1653s%@HESDEF@%$HESDEF%g 1654s%@HESLIB@%$HESLIB%g 1655 1656CEOF 1657EOF 1658 1659cat >> $CONFIG_STATUS <<\EOF 1660 1661# Split the substitutions into bite-sized pieces for seds with 1662# small command number limits, like on Digital OSF/1 and HP-UX. 1663ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1664ac_file=1 # Number of current file. 1665ac_beg=1 # First line for current file. 1666ac_end=$ac_max_sed_cmds # Line after last line for current file. 1667ac_more_lines=: 1668ac_sed_cmds="" 1669while $ac_more_lines; do 1670 if test $ac_beg -gt 1; then 1671 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1672 else 1673 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1674 fi 1675 if test ! -s conftest.s$ac_file; then 1676 ac_more_lines=false 1677 rm -f conftest.s$ac_file 1678 else 1679 if test -z "$ac_sed_cmds"; then 1680 ac_sed_cmds="sed -f conftest.s$ac_file" 1681 else 1682 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1683 fi 1684 ac_file=`expr $ac_file + 1` 1685 ac_beg=$ac_end 1686 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1687 fi 1688done 1689if test -z "$ac_sed_cmds"; then 1690 ac_sed_cmds=cat 1691fi 1692EOF 1693 1694cat >> $CONFIG_STATUS <<EOF 1695 1696CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1697EOF 1698cat >> $CONFIG_STATUS <<\EOF 1699for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1701 case "$ac_file" in 1702 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1703 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1704 *) ac_file_in="${ac_file}.in" ;; 1705 esac 1706 1707 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1708 1709 # Remove last slash and all that follows it. Not all systems have dirname. 1710 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1711 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1712 # The file is in a subdirectory. 1713 test ! -d "$ac_dir" && mkdir "$ac_dir" 1714 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1715 # A "../" for each directory in $ac_dir_suffix. 1716 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1717 else 1718 ac_dir_suffix= ac_dots= 1719 fi 1720 1721 case "$ac_given_srcdir" in 1722 .) srcdir=. 1723 if test -z "$ac_dots"; then top_srcdir=. 1724 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1725 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1726 *) # Relative path. 1727 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1728 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1729 esac 1730 1731 1732 echo creating "$ac_file" 1733 rm -f "$ac_file" 1734 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1735 case "$ac_file" in 1736 *Makefile*) ac_comsub="1i\\ 1737# $configure_input" ;; 1738 *) ac_comsub= ;; 1739 esac 1740 1741 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1742 sed -e "$ac_comsub 1743s%@configure_input@%$configure_input%g 1744s%@srcdir@%$srcdir%g 1745s%@top_srcdir@%$top_srcdir%g 1746" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1747fi; done 1748rm -f conftest.s* 1749 1750# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1751# NAME is the cpp macro being defined and VALUE is the value it is being given. 1752# 1753# ac_d sets the value in "#define NAME VALUE" lines. 1754ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1755ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1756ac_dC='\3' 1757ac_dD='%g' 1758# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1759ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1760ac_uB='\([ ]\)%\1#\2define\3' 1761ac_uC=' ' 1762ac_uD='\4%g' 1763# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1764ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1765ac_eB='$%\1#\2define\3' 1766ac_eC=' ' 1767ac_eD='%g' 1768 1769if test "${CONFIG_HEADERS+set}" != set; then 1770EOF 1771cat >> $CONFIG_STATUS <<EOF 1772 CONFIG_HEADERS="config.h:config/${tcsh_config_file}:config.h.in" 1773EOF 1774cat >> $CONFIG_STATUS <<\EOF 1775fi 1776for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1778 case "$ac_file" in 1779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1781 *) ac_file_in="${ac_file}.in" ;; 1782 esac 1783 1784 echo creating $ac_file 1785 1786 rm -f conftest.frag conftest.in conftest.out 1787 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1788 cat $ac_file_inputs > conftest.in 1789 1790EOF 1791 1792# Transform confdefs.h into a sed script conftest.vals that substitutes 1793# the proper values into config.h.in to produce config.h. And first: 1794# Protect against being on the right side of a sed subst in config.status. 1795# Protect against being in an unquoted here document in config.status. 1796rm -f conftest.vals 1797cat > conftest.hdr <<\EOF 1798s/[\\&%]/\\&/g 1799s%[\\$`]%\\&%g 1800s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1801s%ac_d%ac_u%gp 1802s%ac_u%ac_e%gp 1803EOF 1804sed -n -f conftest.hdr confdefs.h > conftest.vals 1805rm -f conftest.hdr 1806 1807# This sed command replaces #undef with comments. This is necessary, for 1808# example, in the case of _POSIX_SOURCE, which is predefined and required 1809# on some systems where configure will not decide to define it. 1810cat >> conftest.vals <<\EOF 1811s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1812EOF 1813 1814# Break up conftest.vals because some shells have a limit on 1815# the size of here documents, and old seds have small limits too. 1816 1817rm -f conftest.tail 1818while : 1819do 1820 ac_lines=`grep -c . conftest.vals` 1821 # grep -c gives empty output for an empty file on some AIX systems. 1822 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1823 # Write a limited-size here document to conftest.frag. 1824 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1825 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1826 echo 'CEOF 1827 sed -f conftest.frag conftest.in > conftest.out 1828 rm -f conftest.in 1829 mv conftest.out conftest.in 1830' >> $CONFIG_STATUS 1831 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1832 rm -f conftest.vals 1833 mv conftest.tail conftest.vals 1834done 1835rm -f conftest.vals 1836 1837cat >> $CONFIG_STATUS <<\EOF 1838 rm -f conftest.frag conftest.h 1839 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1840 cat conftest.in >> conftest.h 1841 rm -f conftest.in 1842 if cmp -s $ac_file conftest.h 2>/dev/null; then 1843 echo "$ac_file is unchanged" 1844 rm -f conftest.h 1845 else 1846 # Remove last slash and all that follows it. Not all systems have dirname. 1847 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1848 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1849 # The file is in a subdirectory. 1850 test ! -d "$ac_dir" && mkdir "$ac_dir" 1851 fi 1852 rm -f $ac_file 1853 mv conftest.h $ac_file 1854 fi 1855fi; done 1856 1857EOF 1858cat >> $CONFIG_STATUS <<EOF 1859 1860EOF 1861cat >> $CONFIG_STATUS <<\EOF 1862 1863exit 0 1864EOF 1865chmod +x $CONFIG_STATUS 1866rm -fr confdefs* $ac_clean_files 1867test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1868 1869