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