configure revision 69408
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion" 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE 24no_create= 25nonopt=NONE 26no_recursion= 27prefix=NONE 28program_prefix=NONE 29program_suffix=NONE 30program_transform_name=s,x,x, 31silent= 32site= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 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=hpux8 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 * ) 777 { echo "configure: error: Tcsh can't guess the configuration file name 778for \`${host}' systems. 779Check tcsh's \`Ported' file for manual configuration instructions." 1>&2; exit 1; } 780 ;; 781 782esac 783 784echo "Tcsh will use configuration file \`$tcsh_config_file'." 785 786 787# Extract the first word of "gcc", so it can be a program name with args. 788set dummy gcc; ac_word=$2 789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 790echo "configure:791: checking for $ac_word" >&5 791if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 792 echo $ac_n "(cached) $ac_c" 1>&6 793else 794 if test -n "$CC"; then 795 ac_cv_prog_CC="$CC" # Let the user override the test. 796else 797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 798 ac_dummy="$PATH" 799 for ac_dir in $ac_dummy; do 800 test -z "$ac_dir" && ac_dir=. 801 if test -f $ac_dir/$ac_word; then 802 ac_cv_prog_CC="gcc" 803 break 804 fi 805 done 806 IFS="$ac_save_ifs" 807fi 808fi 809CC="$ac_cv_prog_CC" 810if test -n "$CC"; then 811 echo "$ac_t""$CC" 1>&6 812else 813 echo "$ac_t""no" 1>&6 814fi 815 816if test -z "$CC"; then 817 # Extract the first word of "cc", so it can be a program name with args. 818set dummy cc; ac_word=$2 819echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 820echo "configure:821: checking for $ac_word" >&5 821if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 822 echo $ac_n "(cached) $ac_c" 1>&6 823else 824 if test -n "$CC"; then 825 ac_cv_prog_CC="$CC" # Let the user override the test. 826else 827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 828 ac_prog_rejected=no 829 ac_dummy="$PATH" 830 for ac_dir in $ac_dummy; do 831 test -z "$ac_dir" && ac_dir=. 832 if test -f $ac_dir/$ac_word; then 833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 834 ac_prog_rejected=yes 835 continue 836 fi 837 ac_cv_prog_CC="cc" 838 break 839 fi 840 done 841 IFS="$ac_save_ifs" 842if test $ac_prog_rejected = yes; then 843 # We found a bogon in the path, so make sure we never use it. 844 set dummy $ac_cv_prog_CC 845 shift 846 if test $# -gt 0; then 847 # We chose a different compiler from the bogus one. 848 # However, it has the same basename, so the bogon will be chosen 849 # first if we set CC to just the basename; use the full file name. 850 shift 851 set dummy "$ac_dir/$ac_word" "$@" 852 shift 853 ac_cv_prog_CC="$@" 854 fi 855fi 856fi 857fi 858CC="$ac_cv_prog_CC" 859if test -n "$CC"; then 860 echo "$ac_t""$CC" 1>&6 861else 862 echo "$ac_t""no" 1>&6 863fi 864 865 if test -z "$CC"; then 866 case "`uname -s`" in 867 *win32* | *WIN32*) 868 # Extract the first word of "cl", so it can be a program name with args. 869set dummy cl; ac_word=$2 870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 871echo "configure:872: checking for $ac_word" >&5 872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 873 echo $ac_n "(cached) $ac_c" 1>&6 874else 875 if test -n "$CC"; then 876 ac_cv_prog_CC="$CC" # Let the user override the test. 877else 878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 879 ac_dummy="$PATH" 880 for ac_dir in $ac_dummy; do 881 test -z "$ac_dir" && ac_dir=. 882 if test -f $ac_dir/$ac_word; then 883 ac_cv_prog_CC="cl" 884 break 885 fi 886 done 887 IFS="$ac_save_ifs" 888fi 889fi 890CC="$ac_cv_prog_CC" 891if test -n "$CC"; then 892 echo "$ac_t""$CC" 1>&6 893else 894 echo "$ac_t""no" 1>&6 895fi 896 ;; 897 esac 898 fi 899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 900fi 901 902echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 903echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 904 905ac_ext=c 906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 907ac_cpp='$CPP $CPPFLAGS' 908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 910cross_compiling=$ac_cv_prog_cc_cross 911 912cat > conftest.$ac_ext << EOF 913 914#line 915 "configure" 915#include "confdefs.h" 916 917main(){return(0);} 918EOF 919if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 920 ac_cv_prog_cc_works=yes 921 # If we can't run a trivial program, we are probably using a cross compiler. 922 if (./conftest; exit) 2>/dev/null; then 923 ac_cv_prog_cc_cross=no 924 else 925 ac_cv_prog_cc_cross=yes 926 fi 927else 928 echo "configure: failed program was:" >&5 929 cat conftest.$ac_ext >&5 930 ac_cv_prog_cc_works=no 931fi 932rm -fr conftest* 933ac_ext=c 934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 935ac_cpp='$CPP $CPPFLAGS' 936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 938cross_compiling=$ac_cv_prog_cc_cross 939 940echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 941if test $ac_cv_prog_cc_works = no; then 942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 943fi 944echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 945echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 946echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 947cross_compiling=$ac_cv_prog_cc_cross 948 949echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 950echo "configure:951: checking whether we are using GNU C" >&5 951if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 952 echo $ac_n "(cached) $ac_c" 1>&6 953else 954 cat > conftest.c <<EOF 955#ifdef __GNUC__ 956 yes; 957#endif 958EOF 959if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 960 ac_cv_prog_gcc=yes 961else 962 ac_cv_prog_gcc=no 963fi 964fi 965 966echo "$ac_t""$ac_cv_prog_gcc" 1>&6 967 968if test $ac_cv_prog_gcc = yes; then 969 GCC=yes 970else 971 GCC= 972fi 973 974ac_test_CFLAGS="${CFLAGS+set}" 975ac_save_CFLAGS="$CFLAGS" 976CFLAGS= 977echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 978echo "configure:979: checking whether ${CC-cc} accepts -g" >&5 979if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 980 echo $ac_n "(cached) $ac_c" 1>&6 981else 982 echo 'void f(){}' > conftest.c 983if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 984 ac_cv_prog_cc_g=yes 985else 986 ac_cv_prog_cc_g=no 987fi 988rm -f conftest* 989 990fi 991 992echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 993if test "$ac_test_CFLAGS" = set; then 994 CFLAGS="$ac_save_CFLAGS" 995elif test $ac_cv_prog_cc_g = yes; then 996 if test "$GCC" = yes; then 997 CFLAGS="-g -O2" 998 else 999 CFLAGS="-g" 1000 fi 1001else 1002 if test "$GCC" = yes; then 1003 CFLAGS="-O2" 1004 else 1005 CFLAGS= 1006 fi 1007fi 1008 1009echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1010echo "configure:1011: checking how to run the C preprocessor" >&5 1011# On Suns, sometimes $CPP names a directory. 1012if test -n "$CPP" && test -d "$CPP"; then 1013 CPP= 1014fi 1015if test -z "$CPP"; then 1016if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1017 echo $ac_n "(cached) $ac_c" 1>&6 1018else 1019 # This must be in double quotes, not single quotes, because CPP may get 1020 # substituted into the Makefile and "${CC-cc}" will confuse make. 1021 CPP="${CC-cc} -E" 1022 # On the NeXT, cc -E runs the code through the compiler's parser, 1023 # not just through cpp. 1024 cat > conftest.$ac_ext <<EOF 1025#line 1026 "configure" 1026#include "confdefs.h" 1027#include <assert.h> 1028Syntax Error 1029EOF 1030ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1031{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1032ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1033if test -z "$ac_err"; then 1034 : 1035else 1036 echo "$ac_err" >&5 1037 echo "configure: failed program was:" >&5 1038 cat conftest.$ac_ext >&5 1039 rm -rf conftest* 1040 CPP="${CC-cc} -E -traditional-cpp" 1041 cat > conftest.$ac_ext <<EOF 1042#line 1043 "configure" 1043#include "confdefs.h" 1044#include <assert.h> 1045Syntax Error 1046EOF 1047ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1048{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1049ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1050if test -z "$ac_err"; then 1051 : 1052else 1053 echo "$ac_err" >&5 1054 echo "configure: failed program was:" >&5 1055 cat conftest.$ac_ext >&5 1056 rm -rf conftest* 1057 CPP="${CC-cc} -nologo -E" 1058 cat > conftest.$ac_ext <<EOF 1059#line 1060 "configure" 1060#include "confdefs.h" 1061#include <assert.h> 1062Syntax Error 1063EOF 1064ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1065{ (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1066ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1067if test -z "$ac_err"; then 1068 : 1069else 1070 echo "$ac_err" >&5 1071 echo "configure: failed program was:" >&5 1072 cat conftest.$ac_ext >&5 1073 rm -rf conftest* 1074 CPP=/lib/cpp 1075fi 1076rm -f conftest* 1077fi 1078rm -f conftest* 1079fi 1080rm -f conftest* 1081 ac_cv_prog_CPP="$CPP" 1082fi 1083 CPP="$ac_cv_prog_CPP" 1084else 1085 ac_cv_prog_CPP="$CPP" 1086fi 1087echo "$ac_t""$CPP" 1>&6 1088 1089if test $ac_cv_prog_gcc = yes; then 1090 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1091echo "configure:1092: checking whether ${CC-cc} needs -traditional" >&5 1092if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1093 echo $ac_n "(cached) $ac_c" 1>&6 1094else 1095 ac_pattern="Autoconf.*'x'" 1096 cat > conftest.$ac_ext <<EOF 1097#line 1098 "configure" 1098#include "confdefs.h" 1099#include <sgtty.h> 1100Autoconf TIOCGETP 1101EOF 1102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1103 egrep "$ac_pattern" >/dev/null 2>&1; then 1104 rm -rf conftest* 1105 ac_cv_prog_gcc_traditional=yes 1106else 1107 rm -rf conftest* 1108 ac_cv_prog_gcc_traditional=no 1109fi 1110rm -f conftest* 1111 1112 1113 if test $ac_cv_prog_gcc_traditional = no; then 1114 cat > conftest.$ac_ext <<EOF 1115#line 1116 "configure" 1116#include "confdefs.h" 1117#include <termio.h> 1118Autoconf TCGETA 1119EOF 1120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1121 egrep "$ac_pattern" >/dev/null 2>&1; then 1122 rm -rf conftest* 1123 ac_cv_prog_gcc_traditional=yes 1124fi 1125rm -f conftest* 1126 1127 fi 1128fi 1129 1130echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1131 if test $ac_cv_prog_gcc_traditional = yes; then 1132 CC="$CC -traditional" 1133 fi 1134fi 1135 1136 1137if test $ac_cv_prog_gcc = no ; then 1138 DFLAGS="$DFLAGS $NON_GNU_DFLAGS" 1139 CFLAGS="$CFLAGS $NON_GNU_CFLAGS" 1140fi 1141 1142case "${host}" in 1143 ## Cygnus GNU Win32 1144 *-cygwin) 1145 CFLAGS="$CFLAGS -mno-win32" 1146 ;; 1147esac 1148 1149 1150echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6 1151echo "configure:1152: checking for library containing crypt" >&5 1152if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then 1153 echo $ac_n "(cached) $ac_c" 1>&6 1154else 1155 ac_func_search_save_LIBS="$LIBS" 1156ac_cv_search_crypt="no" 1157cat > conftest.$ac_ext <<EOF 1158#line 1159 "configure" 1159#include "confdefs.h" 1160/* Override any gcc2 internal prototype to avoid an error. */ 1161/* We use char because int might match the return type of a gcc2 1162 builtin and then its argument prototype would still apply. */ 1163char crypt(); 1164 1165int main() { 1166crypt() 1167; return 0; } 1168EOF 1169if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1170 rm -rf conftest* 1171 ac_cv_search_crypt="none required" 1172else 1173 echo "configure: failed program was:" >&5 1174 cat conftest.$ac_ext >&5 1175fi 1176rm -f conftest* 1177test "$ac_cv_search_crypt" = "no" && for i in crypt; do 1178LIBS="-l$i $ac_func_search_save_LIBS" 1179cat > conftest.$ac_ext <<EOF 1180#line 1181 "configure" 1181#include "confdefs.h" 1182/* Override any gcc2 internal prototype to avoid an error. */ 1183/* We use char because int might match the return type of a gcc2 1184 builtin and then its argument prototype would still apply. */ 1185char crypt(); 1186 1187int main() { 1188crypt() 1189; return 0; } 1190EOF 1191if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1192 rm -rf conftest* 1193 ac_cv_search_crypt="-l$i" 1194break 1195else 1196 echo "configure: failed program was:" >&5 1197 cat conftest.$ac_ext >&5 1198fi 1199rm -f conftest* 1200done 1201LIBS="$ac_func_search_save_LIBS" 1202fi 1203 1204echo "$ac_t""$ac_cv_search_crypt" 1>&6 1205if test "$ac_cv_search_crypt" != "no"; then 1206 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS" 1207 1208else : 1209 1210fi 1211 1212echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6 1213echo "configure:1214: checking for library containing tgetent" >&5 1214if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then 1215 echo $ac_n "(cached) $ac_c" 1>&6 1216else 1217 ac_func_search_save_LIBS="$LIBS" 1218ac_cv_search_tgetent="no" 1219cat > conftest.$ac_ext <<EOF 1220#line 1221 "configure" 1221#include "confdefs.h" 1222/* Override any gcc2 internal prototype to avoid an error. */ 1223/* We use char because int might match the return type of a gcc2 1224 builtin and then its argument prototype would still apply. */ 1225char tgetent(); 1226 1227int main() { 1228tgetent() 1229; return 0; } 1230EOF 1231if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1232 rm -rf conftest* 1233 ac_cv_search_tgetent="none required" 1234else 1235 echo "configure: failed program was:" >&5 1236 cat conftest.$ac_ext >&5 1237fi 1238rm -f conftest* 1239test "$ac_cv_search_tgetent" = "no" && for i in termlib curses termcap; do 1240LIBS="-l$i $ac_func_search_save_LIBS" 1241cat > conftest.$ac_ext <<EOF 1242#line 1243 "configure" 1243#include "confdefs.h" 1244/* Override any gcc2 internal prototype to avoid an error. */ 1245/* We use char because int might match the return type of a gcc2 1246 builtin and then its argument prototype would still apply. */ 1247char tgetent(); 1248 1249int main() { 1250tgetent() 1251; return 0; } 1252EOF 1253if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1254 rm -rf conftest* 1255 ac_cv_search_tgetent="-l$i" 1256break 1257else 1258 echo "configure: failed program was:" >&5 1259 cat conftest.$ac_ext >&5 1260fi 1261rm -f conftest* 1262done 1263LIBS="$ac_func_search_save_LIBS" 1264fi 1265 1266echo "$ac_t""$ac_cv_search_tgetent" 1>&6 1267if test "$ac_cv_search_tgetent" != "no"; then 1268 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" 1269 1270else : 1271 1272fi 1273 1274echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 1275echo "configure:1276: checking for library containing gethostbyname" >&5 1276if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then 1277 echo $ac_n "(cached) $ac_c" 1>&6 1278else 1279 ac_func_search_save_LIBS="$LIBS" 1280ac_cv_search_gethostbyname="no" 1281cat > conftest.$ac_ext <<EOF 1282#line 1283 "configure" 1283#include "confdefs.h" 1284/* Override any gcc2 internal prototype to avoid an error. */ 1285/* We use char because int might match the return type of a gcc2 1286 builtin and then its argument prototype would still apply. */ 1287char gethostbyname(); 1288 1289int main() { 1290gethostbyname() 1291; return 0; } 1292EOF 1293if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1294 rm -rf conftest* 1295 ac_cv_search_gethostbyname="none required" 1296else 1297 echo "configure: failed program was:" >&5 1298 cat conftest.$ac_ext >&5 1299fi 1300rm -f conftest* 1301test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do 1302LIBS="-l$i $ac_func_search_save_LIBS" 1303cat > conftest.$ac_ext <<EOF 1304#line 1305 "configure" 1305#include "confdefs.h" 1306/* Override any gcc2 internal prototype to avoid an error. */ 1307/* We use char because int might match the return type of a gcc2 1308 builtin and then its argument prototype would still apply. */ 1309char gethostbyname(); 1310 1311int main() { 1312gethostbyname() 1313; return 0; } 1314EOF 1315if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1316 rm -rf conftest* 1317 ac_cv_search_gethostbyname="-l$i" 1318break 1319else 1320 echo "configure: failed program was:" >&5 1321 cat conftest.$ac_ext >&5 1322fi 1323rm -f conftest* 1324done 1325LIBS="$ac_func_search_save_LIBS" 1326fi 1327 1328echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 1329if test "$ac_cv_search_gethostbyname" != "no"; then 1330 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 1331 1332else : 1333 1334fi 1335 1336echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 1337echo "configure:1338: checking for library containing connect" >&5 1338if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 1339 echo $ac_n "(cached) $ac_c" 1>&6 1340else 1341 ac_func_search_save_LIBS="$LIBS" 1342ac_cv_search_connect="no" 1343cat > conftest.$ac_ext <<EOF 1344#line 1345 "configure" 1345#include "confdefs.h" 1346/* Override any gcc2 internal prototype to avoid an error. */ 1347/* We use char because int might match the return type of a gcc2 1348 builtin and then its argument prototype would still apply. */ 1349char connect(); 1350 1351int main() { 1352connect() 1353; return 0; } 1354EOF 1355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1356 rm -rf conftest* 1357 ac_cv_search_connect="none required" 1358else 1359 echo "configure: failed program was:" >&5 1360 cat conftest.$ac_ext >&5 1361fi 1362rm -f conftest* 1363test "$ac_cv_search_connect" = "no" && for i in socket; do 1364LIBS="-l$i $ac_func_search_save_LIBS" 1365cat > conftest.$ac_ext <<EOF 1366#line 1367 "configure" 1367#include "confdefs.h" 1368/* Override any gcc2 internal prototype to avoid an error. */ 1369/* We use char because int might match the return type of a gcc2 1370 builtin and then its argument prototype would still apply. */ 1371char connect(); 1372 1373int main() { 1374connect() 1375; return 0; } 1376EOF 1377if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1378 rm -rf conftest* 1379 ac_cv_search_connect="-l$i" 1380break 1381else 1382 echo "configure: failed program was:" >&5 1383 cat conftest.$ac_ext >&5 1384fi 1385rm -f conftest* 1386done 1387LIBS="$ac_func_search_save_LIBS" 1388fi 1389 1390echo "$ac_t""$ac_cv_search_connect" 1>&6 1391if test "$ac_cv_search_connect" != "no"; then 1392 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 1393 1394else : 1395 1396fi 1397 1398 1399 1400 1401# Check whether --with-hesiod or --without-hesiod was given. 1402if test "${with_hesiod+set}" = set; then 1403 withval="$with_hesiod" 1404 hesiod="$withval" 1405else 1406 hesiod=no 1407fi 1408 1409if test "$hesiod" != no; then 1410 HESLIB="-lhesiod" 1411 echo $ac_n "checking for res_send""... $ac_c" 1>&6 1412echo "configure:1413: checking for res_send" >&5 1413if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then 1414 echo $ac_n "(cached) $ac_c" 1>&6 1415else 1416 cat > conftest.$ac_ext <<EOF 1417#line 1418 "configure" 1418#include "confdefs.h" 1419/* System header to define __stub macros and hopefully few prototypes, 1420 which can conflict with char res_send(); below. */ 1421#include <assert.h> 1422/* Override any gcc2 internal prototype to avoid an error. */ 1423/* We use char because int might match the return type of a gcc2 1424 builtin and then its argument prototype would still apply. */ 1425char res_send(); 1426 1427int main() { 1428 1429/* The GNU C library defines this for functions which it implements 1430 to always fail with ENOSYS. Some functions are actually named 1431 something starting with __ and the normal name is an alias. */ 1432#if defined (__stub_res_send) || defined (__stub___res_send) 1433choke me 1434#else 1435res_send(); 1436#endif 1437 1438; return 0; } 1439EOF 1440if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1441 rm -rf conftest* 1442 eval "ac_cv_func_res_send=yes" 1443else 1444 echo "configure: failed program was:" >&5 1445 cat conftest.$ac_ext >&5 1446 rm -rf conftest* 1447 eval "ac_cv_func_res_send=no" 1448fi 1449rm -f conftest* 1450fi 1451 1452if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then 1453 echo "$ac_t""yes" 1>&6 1454 : 1455else 1456 echo "$ac_t""no" 1>&6 1457echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 1458echo "configure:1459: checking for res_send in -lresolv" >&5 1459ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` 1460if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1461 echo $ac_n "(cached) $ac_c" 1>&6 1462else 1463 ac_save_LIBS="$LIBS" 1464LIBS="-lresolv $LIBS" 1465cat > conftest.$ac_ext <<EOF 1466#line 1467 "configure" 1467#include "confdefs.h" 1468/* Override any gcc2 internal prototype to avoid an error. */ 1469/* We use char because int might match the return type of a gcc2 1470 builtin and then its argument prototype would still apply. */ 1471char res_send(); 1472 1473int main() { 1474res_send() 1475; return 0; } 1476EOF 1477if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1478 rm -rf conftest* 1479 eval "ac_cv_lib_$ac_lib_var=yes" 1480else 1481 echo "configure: failed program was:" >&5 1482 cat conftest.$ac_ext >&5 1483 rm -rf conftest* 1484 eval "ac_cv_lib_$ac_lib_var=no" 1485fi 1486rm -f conftest* 1487LIBS="$ac_save_LIBS" 1488 1489fi 1490if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1491 echo "$ac_t""yes" 1>&6 1492 HESLIB="$HESLIB -lresolv" 1493else 1494 echo "$ac_t""no" 1>&6 1495fi 1496 1497fi 1498 1499 HESDEF=-DHESIOD 1500 if test "$hesiod" != yes; then 1501 HESDEF="$HESDEF -I$hesiod/include" 1502 HESLIB="-L$hesiod/lib $HESLIB" 1503 fi 1504fi 1505 1506 1507 1508trap '' 1 2 15 1509cat > confcache <<\EOF 1510# This file is a shell script that caches the results of configure 1511# tests run on this system so they can be shared between configure 1512# scripts and configure runs. It is not useful on other systems. 1513# If it contains results you don't want to keep, you may remove or edit it. 1514# 1515# By default, configure uses ./config.cache as the cache file, 1516# creating it if it does not exist already. You can give configure 1517# the --cache-file=FILE option to use a different cache file; that is 1518# what configure does when it calls configure scripts in 1519# subdirectories, so they share the cache. 1520# Giving --cache-file=/dev/null disables caching, for debugging configure. 1521# config.status only pays attention to the cache file if you give it the 1522# --recheck option to rerun configure. 1523# 1524EOF 1525# The following way of writing the cache mishandles newlines in values, 1526# but we know of no workaround that is simple, portable, and efficient. 1527# So, don't put newlines in cache variables' values. 1528# Ultrix sh set writes to stderr and can't be redirected directly, 1529# and sets the high bit in the cache file unless we assign to the vars. 1530(set) 2>&1 | 1531 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1532 *ac_space=\ *) 1533 # `set' does not quote correctly, so add quotes (double-quote substitution 1534 # turns \\\\ into \\, and sed turns \\ into \). 1535 sed -n \ 1536 -e "s/'/'\\\\''/g" \ 1537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1538 ;; 1539 *) 1540 # `set' quotes correctly as required by POSIX, so do not add quotes. 1541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1542 ;; 1543 esac >> confcache 1544if cmp -s $cache_file confcache; then 1545 : 1546else 1547 if test -w $cache_file; then 1548 echo "updating cache $cache_file" 1549 cat confcache > $cache_file 1550 else 1551 echo "not updating unwritable cache $cache_file" 1552 fi 1553fi 1554rm -f confcache 1555 1556trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1557 1558test "x$prefix" = xNONE && prefix=$ac_default_prefix 1559# Let make expand exec_prefix. 1560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1561 1562# Any assignment to VPATH causes Sun make to only execute 1563# the first set of double-colon rules, so remove it if not needed. 1564# If there is a colon in the path, we need to keep it. 1565if test "x$srcdir" = x.; then 1566 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1567fi 1568 1569trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1570 1571DEFS=-DHAVE_CONFIG_H 1572 1573# Without the "./", some shells look in PATH for config.status. 1574: ${CONFIG_STATUS=./config.status} 1575 1576echo creating $CONFIG_STATUS 1577rm -f $CONFIG_STATUS 1578cat > $CONFIG_STATUS <<EOF 1579#! /bin/sh 1580# Generated automatically by configure. 1581# Run this file to recreate the current configuration. 1582# This directory was configured as follows, 1583# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1584# 1585# $0 $ac_configure_args 1586# 1587# Compiler output produced by configure, useful for debugging 1588# configure, is in ./config.log if it exists. 1589 1590ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1591for ac_option 1592do 1593 case "\$ac_option" in 1594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1595 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1596 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1597 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1598 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1599 exit 0 ;; 1600 -help | --help | --hel | --he | --h) 1601 echo "\$ac_cs_usage"; exit 0 ;; 1602 *) echo "\$ac_cs_usage"; exit 1 ;; 1603 esac 1604done 1605 1606ac_given_srcdir=$srcdir 1607 1608trap 'rm -fr `echo "Makefile config.h:config/${tcsh_config_file}:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1609EOF 1610cat >> $CONFIG_STATUS <<EOF 1611 1612# Protect against being on the right side of a sed subst in config.status. 1613sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1614 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1615$ac_vpsub 1616$extrasub 1617s%@SHELL@%$SHELL%g 1618s%@CFLAGS@%$CFLAGS%g 1619s%@CPPFLAGS@%$CPPFLAGS%g 1620s%@CXXFLAGS@%$CXXFLAGS%g 1621s%@FFLAGS@%$FFLAGS%g 1622s%@DEFS@%$DEFS%g 1623s%@LDFLAGS@%$LDFLAGS%g 1624s%@LIBS@%$LIBS%g 1625s%@exec_prefix@%$exec_prefix%g 1626s%@prefix@%$prefix%g 1627s%@program_transform_name@%$program_transform_name%g 1628s%@bindir@%$bindir%g 1629s%@sbindir@%$sbindir%g 1630s%@libexecdir@%$libexecdir%g 1631s%@datadir@%$datadir%g 1632s%@sysconfdir@%$sysconfdir%g 1633s%@sharedstatedir@%$sharedstatedir%g 1634s%@localstatedir@%$localstatedir%g 1635s%@libdir@%$libdir%g 1636s%@includedir@%$includedir%g 1637s%@oldincludedir@%$oldincludedir%g 1638s%@infodir@%$infodir%g 1639s%@mandir@%$mandir%g 1640s%@host@%$host%g 1641s%@host_alias@%$host_alias%g 1642s%@host_cpu@%$host_cpu%g 1643s%@host_vendor@%$host_vendor%g 1644s%@host_os@%$host_os%g 1645s%@CC@%$CC%g 1646s%@CPP@%$CPP%g 1647s%@DFLAGS@%$DFLAGS%g 1648s%@HESDEF@%$HESDEF%g 1649s%@HESLIB@%$HESLIB%g 1650 1651CEOF 1652EOF 1653 1654cat >> $CONFIG_STATUS <<\EOF 1655 1656# Split the substitutions into bite-sized pieces for seds with 1657# small command number limits, like on Digital OSF/1 and HP-UX. 1658ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1659ac_file=1 # Number of current file. 1660ac_beg=1 # First line for current file. 1661ac_end=$ac_max_sed_cmds # Line after last line for current file. 1662ac_more_lines=: 1663ac_sed_cmds="" 1664while $ac_more_lines; do 1665 if test $ac_beg -gt 1; then 1666 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1667 else 1668 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1669 fi 1670 if test ! -s conftest.s$ac_file; then 1671 ac_more_lines=false 1672 rm -f conftest.s$ac_file 1673 else 1674 if test -z "$ac_sed_cmds"; then 1675 ac_sed_cmds="sed -f conftest.s$ac_file" 1676 else 1677 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1678 fi 1679 ac_file=`expr $ac_file + 1` 1680 ac_beg=$ac_end 1681 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1682 fi 1683done 1684if test -z "$ac_sed_cmds"; then 1685 ac_sed_cmds=cat 1686fi 1687EOF 1688 1689cat >> $CONFIG_STATUS <<EOF 1690 1691CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1692EOF 1693cat >> $CONFIG_STATUS <<\EOF 1694for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1696 case "$ac_file" in 1697 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1698 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1699 *) ac_file_in="${ac_file}.in" ;; 1700 esac 1701 1702 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1703 1704 # Remove last slash and all that follows it. Not all systems have dirname. 1705 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1707 # The file is in a subdirectory. 1708 test ! -d "$ac_dir" && mkdir "$ac_dir" 1709 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1710 # A "../" for each directory in $ac_dir_suffix. 1711 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1712 else 1713 ac_dir_suffix= ac_dots= 1714 fi 1715 1716 case "$ac_given_srcdir" in 1717 .) srcdir=. 1718 if test -z "$ac_dots"; then top_srcdir=. 1719 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1720 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1721 *) # Relative path. 1722 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1723 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1724 esac 1725 1726 1727 echo creating "$ac_file" 1728 rm -f "$ac_file" 1729 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1730 case "$ac_file" in 1731 *Makefile*) ac_comsub="1i\\ 1732# $configure_input" ;; 1733 *) ac_comsub= ;; 1734 esac 1735 1736 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1737 sed -e "$ac_comsub 1738s%@configure_input@%$configure_input%g 1739s%@srcdir@%$srcdir%g 1740s%@top_srcdir@%$top_srcdir%g 1741" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1742fi; done 1743rm -f conftest.s* 1744 1745# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1746# NAME is the cpp macro being defined and VALUE is the value it is being given. 1747# 1748# ac_d sets the value in "#define NAME VALUE" lines. 1749ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1750ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1751ac_dC='\3' 1752ac_dD='%g' 1753# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1754ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1755ac_uB='\([ ]\)%\1#\2define\3' 1756ac_uC=' ' 1757ac_uD='\4%g' 1758# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1759ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1760ac_eB='$%\1#\2define\3' 1761ac_eC=' ' 1762ac_eD='%g' 1763 1764if test "${CONFIG_HEADERS+set}" != set; then 1765EOF 1766cat >> $CONFIG_STATUS <<EOF 1767 CONFIG_HEADERS="config.h:config/${tcsh_config_file}:config.h.in" 1768EOF 1769cat >> $CONFIG_STATUS <<\EOF 1770fi 1771for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1773 case "$ac_file" in 1774 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1775 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1776 *) ac_file_in="${ac_file}.in" ;; 1777 esac 1778 1779 echo creating $ac_file 1780 1781 rm -f conftest.frag conftest.in conftest.out 1782 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1783 cat $ac_file_inputs > conftest.in 1784 1785EOF 1786 1787# Transform confdefs.h into a sed script conftest.vals that substitutes 1788# the proper values into config.h.in to produce config.h. And first: 1789# Protect against being on the right side of a sed subst in config.status. 1790# Protect against being in an unquoted here document in config.status. 1791rm -f conftest.vals 1792cat > conftest.hdr <<\EOF 1793s/[\\&%]/\\&/g 1794s%[\\$`]%\\&%g 1795s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1796s%ac_d%ac_u%gp 1797s%ac_u%ac_e%gp 1798EOF 1799sed -n -f conftest.hdr confdefs.h > conftest.vals 1800rm -f conftest.hdr 1801 1802# This sed command replaces #undef with comments. This is necessary, for 1803# example, in the case of _POSIX_SOURCE, which is predefined and required 1804# on some systems where configure will not decide to define it. 1805cat >> conftest.vals <<\EOF 1806s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1807EOF 1808 1809# Break up conftest.vals because some shells have a limit on 1810# the size of here documents, and old seds have small limits too. 1811 1812rm -f conftest.tail 1813while : 1814do 1815 ac_lines=`grep -c . conftest.vals` 1816 # grep -c gives empty output for an empty file on some AIX systems. 1817 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1818 # Write a limited-size here document to conftest.frag. 1819 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1820 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1821 echo 'CEOF 1822 sed -f conftest.frag conftest.in > conftest.out 1823 rm -f conftest.in 1824 mv conftest.out conftest.in 1825' >> $CONFIG_STATUS 1826 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1827 rm -f conftest.vals 1828 mv conftest.tail conftest.vals 1829done 1830rm -f conftest.vals 1831 1832cat >> $CONFIG_STATUS <<\EOF 1833 rm -f conftest.frag conftest.h 1834 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1835 cat conftest.in >> conftest.h 1836 rm -f conftest.in 1837 if cmp -s $ac_file conftest.h 2>/dev/null; then 1838 echo "$ac_file is unchanged" 1839 rm -f conftest.h 1840 else 1841 # Remove last slash and all that follows it. Not all systems have dirname. 1842 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1843 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1844 # The file is in a subdirectory. 1845 test ! -d "$ac_dir" && mkdir "$ac_dir" 1846 fi 1847 rm -f $ac_file 1848 mv conftest.h $ac_file 1849 fi 1850fi; done 1851 1852EOF 1853cat >> $CONFIG_STATUS <<EOF 1854 1855EOF 1856cat >> $CONFIG_STATUS <<\EOF 1857 1858exit 0 1859EOF 1860chmod +x $CONFIG_STATUS 1861rm -fr confdefs* $ac_clean_files 1862test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1863 1864