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