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