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