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