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