| 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-threads build with threads" |
| 16 |
ac_help="$ac_help |
| 17 |
--enable-shared build and link with shared libraries [--enable-shared]" |
| 18 |
ac_help="$ac_help |
| 19 |
--enable-64bit enable 64bit support (where applicable)" |
| 20 |
ac_help="$ac_help |
| 21 |
--enable-symbols build with debugging symbols [--disable-symbols]" |
| 22 |
|
| 23 |
# Initialize some variables set by options. |
| 24 |
# The variables have the same names as the options, with |
| 25 |
# dashes changed to underlines. |
| 26 |
build=NONE |
| 27 |
cache_file=./config.cache |
| 28 |
exec_prefix=NONE |
| 29 |
host=NONE |
| 30 |
no_create= |
| 31 |
nonopt=NONE |
| 32 |
no_recursion= |
| 33 |
prefix=NONE |
| 34 |
program_prefix=NONE |
| 35 |
program_suffix=NONE |
| 36 |
program_transform_name=s,x,x, |
| 37 |
silent= |
| 38 |
site= |
| 39 |
srcdir= |
| 40 |
target=NONE |
| 41 |
verbose= |
| 42 |
x_includes=NONE |
| 43 |
x_libraries=NONE |
| 44 |
bindir='${exec_prefix}/bin' |
| 45 |
sbindir='${exec_prefix}/sbin' |
| 46 |
libexecdir='${exec_prefix}/libexec' |
| 47 |
datadir='${prefix}/share' |
| 48 |
sysconfdir='${prefix}/etc' |
| 49 |
sharedstatedir='${prefix}/com' |
| 50 |
localstatedir='${prefix}/var' |
| 51 |
libdir='${exec_prefix}/lib' |
| 52 |
includedir='${prefix}/include' |
| 53 |
oldincludedir='/usr/include' |
| 54 |
infodir='${prefix}/info' |
| 55 |
mandir='${prefix}/man' |
| 56 |
|
| 57 |
# Initialize some other variables. |
| 58 |
subdirs= |
| 59 |
MFLAGS= MAKEFLAGS= |
| 60 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 61 |
# Maximum number of lines to put in a shell here document. |
| 62 |
ac_max_here_lines=12 |
| 63 |
|
| 64 |
ac_prev= |
| 65 |
for ac_option |
| 66 |
do |
| 67 |
|
| 68 |
# If the previous option needs an argument, assign it. |
| 69 |
if test -n "$ac_prev"; then |
| 70 |
eval "$ac_prev=\$ac_option" |
| 71 |
ac_prev= |
| 72 |
continue |
| 73 |
fi |
| 74 |
|
| 75 |
case "$ac_option" in |
| 76 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 77 |
*) ac_optarg= ;; |
| 78 |
esac |
| 79 |
|
| 80 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 81 |
|
| 82 |
case "$ac_option" in |
| 83 |
|
| 84 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 85 |
ac_prev=bindir ;; |
| 86 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 87 |
bindir="$ac_optarg" ;; |
| 88 |
|
| 89 |
-build | --build | --buil | --bui | --bu) |
| 90 |
ac_prev=build ;; |
| 91 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 92 |
build="$ac_optarg" ;; |
| 93 |
|
| 94 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 95 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 96 |
ac_prev=cache_file ;; |
| 97 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 98 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 99 |
cache_file="$ac_optarg" ;; |
| 100 |
|
| 101 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 102 |
ac_prev=datadir ;; |
| 103 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 104 |
| --da=*) |
| 105 |
datadir="$ac_optarg" ;; |
| 106 |
|
| 107 |
-disable-* | --disable-*) |
| 108 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 109 |
# Reject names that are not valid shell variable names. |
| 110 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 111 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 112 |
fi |
| 113 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 114 |
eval "enable_${ac_feature}=no" ;; |
| 115 |
|
| 116 |
-enable-* | --enable-*) |
| 117 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 118 |
# Reject names that are not valid shell variable names. |
| 119 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 120 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 121 |
fi |
| 122 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 123 |
case "$ac_option" in |
| 124 |
*=*) ;; |
| 125 |
*) ac_optarg=yes ;; |
| 126 |
esac |
| 127 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 128 |
|
| 129 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 130 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 131 |
| --exec | --exe | --ex) |
| 132 |
ac_prev=exec_prefix ;; |
| 133 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 134 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 135 |
| --exec=* | --exe=* | --ex=*) |
| 136 |
exec_prefix="$ac_optarg" ;; |
| 137 |
|
| 138 |
-gas | --gas | --ga | --g) |
| 139 |
# Obsolete; use --with-gas. |
| 140 |
with_gas=yes ;; |
| 141 |
|
| 142 |
-help | --help | --hel | --he) |
| 143 |
# Omit some internal or obsolete options to make the list less imposing. |
| 144 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 145 |
cat << EOF |
| 146 |
Usage: configure [options] [host] |
| 147 |
Options: [defaults in brackets after descriptions] |
| 148 |
Configuration: |
| 149 |
--cache-file=FILE cache test results in FILE |
| 150 |
--help print this message |
| 151 |
--no-create do not create output files |
| 152 |
--quiet, --silent do not print \`checking...' messages |
| 153 |
--version print the version of autoconf that created configure |
| 154 |
Directory and file names: |
| 155 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 156 |
[$ac_default_prefix] |
| 157 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 158 |
[same as prefix] |
| 159 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
| 160 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 161 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 162 |
--datadir=DIR read-only architecture-independent data in DIR |
| 163 |
[PREFIX/share] |
| 164 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 165 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 166 |
[PREFIX/com] |
| 167 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 168 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 169 |
--includedir=DIR C header files in DIR [PREFIX/include] |
| 170 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 171 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
| 172 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
| 173 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
| 174 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 175 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 176 |
--program-transform-name=PROGRAM |
| 177 |
run sed PROGRAM on installed program names |
| 178 |
EOF |
| 179 |
cat << EOF |
| 180 |
Host type: |
| 181 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
| 182 |
--host=HOST configure for HOST [guessed] |
| 183 |
--target=TARGET configure for TARGET [TARGET=HOST] |
| 184 |
Features and packages: |
| 185 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 186 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 187 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 188 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 189 |
--x-includes=DIR X include files are in DIR |
| 190 |
--x-libraries=DIR X library files are in DIR |
| 191 |
EOF |
| 192 |
if test -n "$ac_help"; then |
| 193 |
echo "--enable and --with options recognized:$ac_help" |
| 194 |
fi |
| 195 |
exit 0 ;; |
| 196 |
|
| 197 |
-host | --host | --hos | --ho) |
| 198 |
ac_prev=host ;; |
| 199 |
-host=* | --host=* | --hos=* | --ho=*) |
| 200 |
host="$ac_optarg" ;; |
| 201 |
|
| 202 |
-includedir | --includedir | --includedi | --included | --include \ |
| 203 |
| --includ | --inclu | --incl | --inc) |
| 204 |
ac_prev=includedir ;; |
| 205 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 206 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 207 |
includedir="$ac_optarg" ;; |
| 208 |
|
| 209 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 210 |
ac_prev=infodir ;; |
| 211 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 212 |
infodir="$ac_optarg" ;; |
| 213 |
|
| 214 |
-libdir | --libdir | --libdi | --libd) |
| 215 |
ac_prev=libdir ;; |
| 216 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 217 |
libdir="$ac_optarg" ;; |
| 218 |
|
| 219 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 220 |
| --libexe | --libex | --libe) |
| 221 |
ac_prev=libexecdir ;; |
| 222 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 223 |
| --libexe=* | --libex=* | --libe=*) |
| 224 |
libexecdir="$ac_optarg" ;; |
| 225 |
|
| 226 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 227 |
| --localstate | --localstat | --localsta | --localst \ |
| 228 |
| --locals | --local | --loca | --loc | --lo) |
| 229 |
ac_prev=localstatedir ;; |
| 230 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 231 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 232 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 233 |
localstatedir="$ac_optarg" ;; |
| 234 |
|
| 235 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 236 |
ac_prev=mandir ;; |
| 237 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 238 |
mandir="$ac_optarg" ;; |
| 239 |
|
| 240 |
-nfp | --nfp | --nf) |
| 241 |
# Obsolete; use --without-fp. |
| 242 |
with_fp=no ;; |
| 243 |
|
| 244 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 245 |
| --no-cr | --no-c) |
| 246 |
no_create=yes ;; |
| 247 |
|
| 248 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 249 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 250 |
no_recursion=yes ;; |
| 251 |
|
| 252 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 253 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 254 |
| --oldin | --oldi | --old | --ol | --o) |
| 255 |
ac_prev=oldincludedir ;; |
| 256 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 257 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 258 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 259 |
oldincludedir="$ac_optarg" ;; |
| 260 |
|
| 261 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 262 |
ac_prev=prefix ;; |
| 263 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 264 |
prefix="$ac_optarg" ;; |
| 265 |
|
| 266 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 267 |
| --program-pre | --program-pr | --program-p) |
| 268 |
ac_prev=program_prefix ;; |
| 269 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 270 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 271 |
program_prefix="$ac_optarg" ;; |
| 272 |
|
| 273 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 274 |
| --program-suf | --program-su | --program-s) |
| 275 |
ac_prev=program_suffix ;; |
| 276 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 277 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 278 |
program_suffix="$ac_optarg" ;; |
| 279 |
|
| 280 |
-program-transform-name | --program-transform-name \ |
| 281 |
| --program-transform-nam | --program-transform-na \ |
| 282 |
| --program-transform-n | --program-transform- \ |
| 283 |
| --program-transform | --program-transfor \ |
| 284 |
| --program-transfo | --program-transf \ |
| 285 |
| --program-trans | --program-tran \ |
| 286 |
| --progr-tra | --program-tr | --program-t) |
| 287 |
ac_prev=program_transform_name ;; |
| 288 |
-program-transform-name=* | --program-transform-name=* \ |
| 289 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 290 |
| --program-transform-n=* | --program-transform-=* \ |
| 291 |
| --program-transform=* | --program-transfor=* \ |
| 292 |
| --program-transfo=* | --program-transf=* \ |
| 293 |
| --program-trans=* | --program-tran=* \ |
| 294 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 295 |
program_transform_name="$ac_optarg" ;; |
| 296 |
|
| 297 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 298 |
| -silent | --silent | --silen | --sile | --sil) |
| 299 |
silent=yes ;; |
| 300 |
|
| 301 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 302 |
ac_prev=sbindir ;; |
| 303 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 304 |
| --sbi=* | --sb=*) |
| 305 |
sbindir="$ac_optarg" ;; |
| 306 |
|
| 307 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 308 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 309 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 310 |
| --sha | --sh) |
| 311 |
ac_prev=sharedstatedir ;; |
| 312 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 313 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 314 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 315 |
| --sha=* | --sh=*) |
| 316 |
sharedstatedir="$ac_optarg" ;; |
| 317 |
|
| 318 |
-site | --site | --sit) |
| 319 |
ac_prev=site ;; |
| 320 |
-site=* | --site=* | --sit=*) |
| 321 |
site="$ac_optarg" ;; |
| 322 |
|
| 323 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 324 |
ac_prev=srcdir ;; |
| 325 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 326 |
srcdir="$ac_optarg" ;; |
| 327 |
|
| 328 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 329 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 330 |
ac_prev=sysconfdir ;; |
| 331 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 332 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 333 |
sysconfdir="$ac_optarg" ;; |
| 334 |
|
| 335 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 336 |
ac_prev=target ;; |
| 337 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 338 |
target="$ac_optarg" ;; |
| 339 |
|
| 340 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 341 |
verbose=yes ;; |
| 342 |
|
| 343 |
-version | --version | --versio | --versi | --vers) |
| 344 |
echo "configure generated by autoconf version 2.13" |
| 345 |
exit 0 ;; |
| 346 |
|
| 347 |
-with-* | --with-*) |
| 348 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 349 |
# Reject names that are not valid shell variable names. |
| 350 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 351 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 352 |
fi |
| 353 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 354 |
case "$ac_option" in |
| 355 |
*=*) ;; |
| 356 |
*) ac_optarg=yes ;; |
| 357 |
esac |
| 358 |
eval "with_${ac_package}='$ac_optarg'" ;; |
| 359 |
|
| 360 |
-without-* | --without-*) |
| 361 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 362 |
# Reject names that are not valid shell variable names. |
| 363 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 364 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 365 |
fi |
| 366 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 367 |
eval "with_${ac_package}=no" ;; |
| 368 |
|
| 369 |
--x) |
| 370 |
# Obsolete; use --with-x. |
| 371 |
with_x=yes ;; |
| 372 |
|
| 373 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 374 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 375 |
ac_prev=x_includes ;; |
| 376 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 377 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 378 |
x_includes="$ac_optarg" ;; |
| 379 |
|
| 380 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 381 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 382 |
ac_prev=x_libraries ;; |
| 383 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 384 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 385 |
x_libraries="$ac_optarg" ;; |
| 386 |
|
| 387 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 388 |
;; |
| 389 |
|
| 390 |
*) |
| 391 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 392 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 393 |
fi |
| 394 |
if test "x$nonopt" != xNONE; then |
| 395 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 396 |
fi |
| 397 |
nonopt="$ac_option" |
| 398 |
;; |
| 399 |
|
| 400 |
esac |
| 401 |
done |
| 402 |
|
| 403 |
if test -n "$ac_prev"; then |
| 404 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 405 |
fi |
| 406 |
|
| 407 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 408 |
|
| 409 |
# File descriptor usage: |
| 410 |
# 0 standard input |
| 411 |
# 1 file creation |
| 412 |
# 2 errors and warnings |
| 413 |
# 3 some systems may open it to /dev/tty |
| 414 |
# 4 used on the Kubota Titan |
| 415 |
# 6 checking for... messages and results |
| 416 |
# 5 compiler messages saved in config.log |
| 417 |
if test "$silent" = yes; then |
| 418 |
exec 6>/dev/null |
| 419 |
else |
| 420 |
exec 6>&1 |
| 421 |
fi |
| 422 |
exec 5>./config.log |
| 423 |
|
| 424 |
echo "\ |
| 425 |
This file contains any messages produced by compilers while |
| 426 |
running configure, to aid debugging if configure makes a mistake. |
| 427 |
" 1>&5 |
| 428 |
|
| 429 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 430 |
# Also quote any args containing shell metacharacters. |
| 431 |
ac_configure_args= |
| 432 |
for ac_arg |
| 433 |
do |
| 434 |
case "$ac_arg" in |
| 435 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 436 |
| --no-cr | --no-c) ;; |
| 437 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 438 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 439 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 440 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 441 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 442 |
esac |
| 443 |
done |
| 444 |
|
| 445 |
# NLS nuisances. |
| 446 |
# Only set these to C if already set. These must not be set unconditionally |
| 447 |
# because not all systems understand e.g. LANG=C (notably SCO). |
| 448 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 449 |
# Non-C LC_CTYPE values break the ctype check. |
| 450 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 451 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 452 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 453 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 454 |
|
| 455 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 456 |
rm -rf conftest* confdefs.h |
| 457 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 458 |
echo > confdefs.h |
| 459 |
|
| 460 |
# A filename unique to this package, relative to the directory that |
| 461 |
# configure is in, which we can look for to find out if srcdir is correct. |
| 462 |
ac_unique_file=../generic/tcl.h |
| 463 |
|
| 464 |
# Find the source files, if location was not specified. |
| 465 |
if test -z "$srcdir"; then |
| 466 |
ac_srcdir_defaulted=yes |
| 467 |
# Try the directory containing this script, then its parent. |
| 468 |
ac_prog=$0 |
| 469 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 470 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 471 |
srcdir=$ac_confdir |
| 472 |
if test ! -r $srcdir/$ac_unique_file; then |
| 473 |
srcdir=.. |
| 474 |
fi |
| 475 |
else |
| 476 |
ac_srcdir_defaulted=no |
| 477 |
fi |
| 478 |
if test ! -r $srcdir/$ac_unique_file; then |
| 479 |
if test "$ac_srcdir_defaulted" = yes; then |
| 480 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 481 |
else |
| 482 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 483 |
fi |
| 484 |
fi |
| 485 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 486 |
|
| 487 |
# Prefer explicitly selected file to automatically selected ones. |
| 488 |
if test -z "$CONFIG_SITE"; then |
| 489 |
if test "x$prefix" != xNONE; then |
| 490 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 491 |
else |
| 492 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 493 |
fi |
| 494 |
fi |
| 495 |
for ac_site_file in $CONFIG_SITE; do |
| 496 |
if test -r "$ac_site_file"; then |
| 497 |
echo "loading site script $ac_site_file" |
| 498 |
. "$ac_site_file" |
| 499 |
fi |
| 500 |
done |
| 501 |
|
| 502 |
if test -r "$cache_file"; then |
| 503 |
echo "loading cache $cache_file" |
| 504 |
. $cache_file |
| 505 |
else |
| 506 |
echo "creating cache $cache_file" |
| 507 |
> $cache_file |
| 508 |
fi |
| 509 |
|
| 510 |
ac_ext=c |
| 511 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 512 |
ac_cpp='$CPP $CPPFLAGS' |
| 513 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 514 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 515 |
cross_compiling=$ac_cv_prog_cc_cross |
| 516 |
|
| 517 |
ac_exeext= |
| 518 |
ac_objext=o |
| 519 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 520 |
# Stardent Vistra SVR4 grep lacks -e, says [email protected]. |
| 521 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 522 |
ac_n= ac_c=' |
| 523 |
' ac_t=' ' |
| 524 |
else |
| 525 |
ac_n=-n ac_c= ac_t= |
| 526 |
fi |
| 527 |
else |
| 528 |
ac_n= ac_c='\c' ac_t= |
| 529 |
fi |
| 530 |
|
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
TCL_VERSION=8.4 |
| 535 |
TCL_MAJOR_VERSION=8 |
| 536 |
TCL_MINOR_VERSION=4 |
| 537 |
TCL_PATCH_LEVEL=".5" |
| 538 |
VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION |
| 539 |
|
| 540 |
TCL_DDE_VERSION=1.2 |
| 541 |
TCL_DDE_MAJOR_VERSION=1 |
| 542 |
TCL_DDE_MINOR_VERSION=2 |
| 543 |
DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION |
| 544 |
|
| 545 |
TCL_REG_VERSION=1.1 |
| 546 |
TCL_REG_MAJOR_VERSION=1 |
| 547 |
TCL_REG_MINOR_VERSION=1 |
| 548 |
REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION |
| 549 |
|
| 550 |
#------------------------------------------------------------------------ |
| 551 |
# Handle the --prefix=... option |
| 552 |
#------------------------------------------------------------------------ |
| 553 |
|
| 554 |
if test "${prefix}" = "NONE"; then |
| 555 |
prefix=/usr/local |
| 556 |
fi |
| 557 |
if test "${exec_prefix}" = "NONE"; then |
| 558 |
exec_prefix=$prefix |
| 559 |
fi |
| 560 |
# libdir must be a fully qualified path (not ${exec_prefix}/lib) |
| 561 |
eval libdir="$libdir" |
| 562 |
|
| 563 |
#------------------------------------------------------------------------ |
| 564 |
# Standard compiler checks |
| 565 |
#------------------------------------------------------------------------ |
| 566 |
|
| 567 |
# If the user did not set CFLAGS, set it now to keep |
| 568 |
# the AC_PROG_CC macro from adding "-g -O2". |
| 569 |
if test "${CFLAGS+set}" != "set" ; then |
| 570 |
CFLAGS="" |
| 571 |
fi |
| 572 |
|
| 573 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 574 |
set dummy gcc; ac_word=$2 |
| 575 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 576 |
echo "configure:577: checking for $ac_word" >&5 |
| 577 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 578 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 579 |
else |
| 580 |
if test -n "$CC"; then |
| 581 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 582 |
else |
| 583 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 584 |
ac_dummy="$PATH" |
| 585 |
for ac_dir in $ac_dummy; do |
| 586 |
test -z "$ac_dir" && ac_dir=. |
| 587 |
if test -f $ac_dir/$ac_word; then |
| 588 |
ac_cv_prog_CC="gcc" |
| 589 |
break |
| 590 |
fi |
| 591 |
done |
| 592 |
IFS="$ac_save_ifs" |
| 593 |
fi |
| 594 |
fi |
| 595 |
CC="$ac_cv_prog_CC" |
| 596 |
if test -n "$CC"; then |
| 597 |
echo "$ac_t""$CC" 1>&6 |
| 598 |
else |
| 599 |
echo "$ac_t""no" 1>&6 |
| 600 |
fi |
| 601 |
|
| 602 |
if test -z "$CC"; then |
| 603 |
# Extract the first word of "cc", so it can be a program name with args. |
| 604 |
set dummy cc; ac_word=$2 |
| 605 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 606 |
echo "configure:607: checking for $ac_word" >&5 |
| 607 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 608 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 609 |
else |
| 610 |
if test -n "$CC"; then |
| 611 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 612 |
else |
| 613 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 614 |
ac_prog_rejected=no |
| 615 |
ac_dummy="$PATH" |
| 616 |
for ac_dir in $ac_dummy; do |
| 617 |
test -z "$ac_dir" && ac_dir=. |
| 618 |
if test -f $ac_dir/$ac_word; then |
| 619 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 620 |
ac_prog_rejected=yes |
| 621 |
continue |
| 622 |
fi |
| 623 |
ac_cv_prog_CC="cc" |
| 624 |
break |
| 625 |
fi |
| 626 |
done |
| 627 |
IFS="$ac_save_ifs" |
| 628 |
if test $ac_prog_rejected = yes; then |
| 629 |
# We found a bogon in the path, so make sure we never use it. |
| 630 |
set dummy $ac_cv_prog_CC |
| 631 |
shift |
| 632 |
if test $# -gt 0; then |
| 633 |
# We chose a different compiler from the bogus one. |
| 634 |
# However, it has the same basename, so the bogon will be chosen |
| 635 |
# first if we set CC to just the basename; use the full file name. |
| 636 |
shift |
| 637 |
set dummy "$ac_dir/$ac_word" "$@" |
| 638 |
shift |
| 639 |
ac_cv_prog_CC="$@" |
| 640 |
fi |
| 641 |
fi |
| 642 |
fi |
| 643 |
fi |
| 644 |
CC="$ac_cv_prog_CC" |
| 645 |
if test -n "$CC"; then |
| 646 |
echo "$ac_t""$CC" 1>&6 |
| 647 |
else |
| 648 |
echo "$ac_t""no" 1>&6 |
| 649 |
fi |
| 650 |
|
| 651 |
if test -z "$CC"; then |
| 652 |
case "`uname -s`" in |
| 653 |
*win32* | *WIN32*) |
| 654 |
# Extract the first word of "cl", so it can be a program name with args. |
| 655 |
set dummy cl; ac_word=$2 |
| 656 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 657 |
echo "configure:658: checking for $ac_word" >&5 |
| 658 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 659 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 660 |
else |
| 661 |
if test -n "$CC"; then |
| 662 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 663 |
else |
| 664 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 665 |
ac_dummy="$PATH" |
| 666 |
for ac_dir in $ac_dummy; do |
| 667 |
test -z "$ac_dir" && ac_dir=. |
| 668 |
if test -f $ac_dir/$ac_word; then |
| 669 |
ac_cv_prog_CC="cl" |
| 670 |
break |
| 671 |
fi |
| 672 |
done |
| 673 |
IFS="$ac_save_ifs" |
| 674 |
fi |
| 675 |
fi |
| 676 |
CC="$ac_cv_prog_CC" |
| 677 |
if test -n "$CC"; then |
| 678 |
echo "$ac_t""$CC" 1>&6 |
| 679 |
else |
| 680 |
echo "$ac_t""no" 1>&6 |
| 681 |
fi |
| 682 |
;; |
| 683 |
esac |
| 684 |
fi |
| 685 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 686 |
fi |
| 687 |
|
| 688 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 689 |
echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 690 |
|
| 691 |
ac_ext=c |
| 692 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 693 |
ac_cpp='$CPP $CPPFLAGS' |
| 694 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 695 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 696 |
cross_compiling=$ac_cv_prog_cc_cross |
| 697 |
|
| 698 |
cat > conftest.$ac_ext << EOF |
| 699 |
|
| 700 |
#line 701 "configure" |
| 701 |
#include "confdefs.h" |
| 702 |
|
| 703 |
main(){return(0);} |
| 704 |
EOF |
| 705 |
if { (eval echo configure:706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 706 |
ac_cv_prog_cc_works=yes |
| 707 |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 708 |
if (./conftest; exit) 2>/dev/null; then |
| 709 |
ac_cv_prog_cc_cross=no |
| 710 |
else |
| 711 |
ac_cv_prog_cc_cross=yes |
| 712 |
fi |
| 713 |
else |
| 714 |
echo "configure: failed program was:" >&5 |
| 715 |
cat conftest.$ac_ext >&5 |
| 716 |
ac_cv_prog_cc_works=no |
| 717 |
fi |
| 718 |
rm -fr conftest* |
| 719 |
ac_ext=c |
| 720 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 721 |
ac_cpp='$CPP $CPPFLAGS' |
| 722 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 723 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 724 |
cross_compiling=$ac_cv_prog_cc_cross |
| 725 |
|
| 726 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 727 |
if test $ac_cv_prog_cc_works = no; then |
| 728 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 729 |
fi |
| 730 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 731 |
echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 732 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 733 |
cross_compiling=$ac_cv_prog_cc_cross |
| 734 |
|
| 735 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 736 |
echo "configure:737: checking whether we are using GNU C" >&5 |
| 737 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 738 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 739 |
else |
| 740 |
cat > conftest.c <<EOF |
| 741 |
#ifdef __GNUC__ |
| 742 |
yes; |
| 743 |
#endif |
| 744 |
EOF |
| 745 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 746 |
ac_cv_prog_gcc=yes |
| 747 |
else |
| 748 |
ac_cv_prog_gcc=no |
| 749 |
fi |
| 750 |
fi |
| 751 |
|
| 752 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 753 |
|
| 754 |
if test $ac_cv_prog_gcc = yes; then |
| 755 |
GCC=yes |
| 756 |
else |
| 757 |
GCC= |
| 758 |
fi |
| 759 |
|
| 760 |
ac_test_CFLAGS="${CFLAGS+set}" |
| 761 |
ac_save_CFLAGS="$CFLAGS" |
| 762 |
CFLAGS= |
| 763 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 764 |
echo "configure:765: checking whether ${CC-cc} accepts -g" >&5 |
| 765 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 766 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 767 |
else |
| 768 |
echo 'void f(){}' > conftest.c |
| 769 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 770 |
ac_cv_prog_cc_g=yes |
| 771 |
else |
| 772 |
ac_cv_prog_cc_g=no |
| 773 |
fi |
| 774 |
rm -f conftest* |
| 775 |
|
| 776 |
fi |
| 777 |
|
| 778 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 779 |
if test "$ac_test_CFLAGS" = set; then |
| 780 |
CFLAGS="$ac_save_CFLAGS" |
| 781 |
elif test $ac_cv_prog_cc_g = yes; then |
| 782 |
if test "$GCC" = yes; then |
| 783 |
CFLAGS="-g -O2" |
| 784 |
else |
| 785 |
CFLAGS="-g" |
| 786 |
fi |
| 787 |
else |
| 788 |
if test "$GCC" = yes; then |
| 789 |
CFLAGS="-O2" |
| 790 |
else |
| 791 |
CFLAGS= |
| 792 |
fi |
| 793 |
fi |
| 794 |
|
| 795 |
|
| 796 |
# To properly support cross-compilation, one would |
| 797 |
# need to use these tool checks instead of |
| 798 |
# the ones below and reconfigure with |
| 799 |
# autoconf 2.50. You can also just set |
| 800 |
# the CC, AR, RANLIB, and RC environment |
| 801 |
# variables if you want to cross compile. |
| 802 |
|
| 803 |
if test "${GCC}" = "yes" ; then |
| 804 |
# Extract the first word of "ar", so it can be a program name with args. |
| 805 |
set dummy ar; ac_word=$2 |
| 806 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 807 |
echo "configure:808: checking for $ac_word" >&5 |
| 808 |
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 809 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 810 |
else |
| 811 |
if test -n "$AR"; then |
| 812 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 813 |
else |
| 814 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 815 |
ac_dummy="$PATH" |
| 816 |
for ac_dir in $ac_dummy; do |
| 817 |
test -z "$ac_dir" && ac_dir=. |
| 818 |
if test -f $ac_dir/$ac_word; then |
| 819 |
ac_cv_prog_AR="ar" |
| 820 |
break |
| 821 |
fi |
| 822 |
done |
| 823 |
IFS="$ac_save_ifs" |
| 824 |
fi |
| 825 |
fi |
| 826 |
AR="$ac_cv_prog_AR" |
| 827 |
if test -n "$AR"; then |
| 828 |
echo "$ac_t""$AR" 1>&6 |
| 829 |
else |
| 830 |
echo "$ac_t""no" 1>&6 |
| 831 |
fi |
| 832 |
|
| 833 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 834 |
set dummy ranlib; ac_word=$2 |
| 835 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 836 |
echo "configure:837: checking for $ac_word" >&5 |
| 837 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 838 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 839 |
else |
| 840 |
if test -n "$RANLIB"; then |
| 841 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 842 |
else |
| 843 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 844 |
ac_dummy="$PATH" |
| 845 |
for ac_dir in $ac_dummy; do |
| 846 |
test -z "$ac_dir" && ac_dir=. |
| 847 |
if test -f $ac_dir/$ac_word; then |
| 848 |
ac_cv_prog_RANLIB="ranlib" |
| 849 |
break |
| 850 |
fi |
| 851 |
done |
| 852 |
IFS="$ac_save_ifs" |
| 853 |
fi |
| 854 |
fi |
| 855 |
RANLIB="$ac_cv_prog_RANLIB" |
| 856 |
if test -n "$RANLIB"; then |
| 857 |
echo "$ac_t""$RANLIB" 1>&6 |
| 858 |
else |
| 859 |
echo "$ac_t""no" 1>&6 |
| 860 |
fi |
| 861 |
|
| 862 |
# Extract the first word of "windres", so it can be a program name with args. |
| 863 |
set dummy windres; ac_word=$2 |
| 864 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 865 |
echo "configure:866: checking for $ac_word" >&5 |
| 866 |
if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then |
| 867 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 868 |
else |
| 869 |
if test -n "$RC"; then |
| 870 |
ac_cv_prog_RC="$RC" # Let the user override the test. |
| 871 |
else |
| 872 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 873 |
ac_dummy="$PATH" |
| 874 |
for ac_dir in $ac_dummy; do |
| 875 |
test -z "$ac_dir" && ac_dir=. |
| 876 |
if test -f $ac_dir/$ac_word; then |
| 877 |
ac_cv_prog_RC="windres" |
| 878 |
break |
| 879 |
fi |
| 880 |
done |
| 881 |
IFS="$ac_save_ifs" |
| 882 |
fi |
| 883 |
fi |
| 884 |
RC="$ac_cv_prog_RC" |
| 885 |
if test -n "$RC"; then |
| 886 |
echo "$ac_t""$RC" 1>&6 |
| 887 |
else |
| 888 |
echo "$ac_t""no" 1>&6 |
| 889 |
fi |
| 890 |
|
| 891 |
|
| 892 |
if test "${AR}" = "" ; then |
| 893 |
{ echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; } |
| 894 |
fi |
| 895 |
if test "${RANLIB}" = "" ; then |
| 896 |
{ echo "configure: error: Required archive index tool 'ranlib' not found on PATH." 1>&2; exit 1; } |
| 897 |
fi |
| 898 |
if test "${RC}" = "" ; then |
| 899 |
{ echo "configure: error: Required resource tool 'windres' not found on PATH." 1>&2; exit 1; } |
| 900 |
fi |
| 901 |
fi |
| 902 |
|
| 903 |
#-------------------------------------------------------------------- |
| 904 |
# Checks to see if the make progeam sets the $MAKE variable. |
| 905 |
#-------------------------------------------------------------------- |
| 906 |
|
| 907 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 908 |
echo "configure:909: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 909 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 910 |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 911 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 912 |
else |
| 913 |
cat > conftestmake <<\EOF |
| 914 |
all: |
| 915 |
@echo 'ac_maketemp="${MAKE}"' |
| 916 |
EOF |
| 917 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 918 |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 919 |
if test -n "$ac_maketemp"; then |
| 920 |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 921 |
else |
| 922 |
eval ac_cv_prog_make_${ac_make}_set=no |
| 923 |
fi |
| 924 |
rm -f conftestmake |
| 925 |
fi |
| 926 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 927 |
echo "$ac_t""yes" 1>&6 |
| 928 |
SET_MAKE= |
| 929 |
else |
| 930 |
echo "$ac_t""no" 1>&6 |
| 931 |
SET_MAKE="MAKE=${MAKE-make}" |
| 932 |
fi |
| 933 |
|
| 934 |
|
| 935 |
#-------------------------------------------------------------------- |
| 936 |
# Perform additinal compiler tests. |
| 937 |
#-------------------------------------------------------------------- |
| 938 |
|
| 939 |
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 940 |
echo "configure:941: checking for Cygwin environment" >&5 |
| 941 |
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 942 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 943 |
else |
| 944 |
cat > conftest.$ac_ext <<EOF |
| 945 |
#line 946 "configure" |
| 946 |
#include "confdefs.h" |
| 947 |
|
| 948 |
int main() { |
| 949 |
|
| 950 |
#ifndef __CYGWIN__ |
| 951 |
#define __CYGWIN__ __CYGWIN32__ |
| 952 |
#endif |
| 953 |
return __CYGWIN__; |
| 954 |
; return 0; } |
| 955 |
EOF |
| 956 |
if { (eval echo configure:957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 957 |
rm -rf conftest* |
| 958 |
ac_cv_cygwin=yes |
| 959 |
else |
| 960 |
echo "configure: failed program was:" >&5 |
| 961 |
cat conftest.$ac_ext >&5 |
| 962 |
rm -rf conftest* |
| 963 |
ac_cv_cygwin=no |
| 964 |
fi |
| 965 |
rm -f conftest* |
| 966 |
rm -f conftest* |
| 967 |
fi |
| 968 |
|
| 969 |
echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 970 |
CYGWIN= |
| 971 |
test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 972 |
|
| 973 |
if test "$ac_cv_cygwin" = "yes" ; then |
| 974 |
{ echo "configure: error: Compiling under Cygwin is not currently supported. |
| 975 |
A maintainer for the Cygwin port of Tcl/Tk is needed. See the README |
| 976 |
file for information about building with Mingw." 1>&2; exit 1; } |
| 977 |
fi |
| 978 |
|
| 979 |
|
| 980 |
echo $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6 |
| 981 |
echo "configure:982: checking for SEH support in compiler" >&5 |
| 982 |
if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then |
| 983 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 984 |
else |
| 985 |
if test "$cross_compiling" = yes; then |
| 986 |
tcl_cv_seh=no |
| 987 |
else |
| 988 |
cat > conftest.$ac_ext <<EOF |
| 989 |
#line 990 "configure" |
| 990 |
#include "confdefs.h" |
| 991 |
|
| 992 |
#define WIN32_LEAN_AND_MEAN |
| 993 |
#include <windows.h> |
| 994 |
#undef WIN32_LEAN_AND_MEAN |
| 995 |
|
| 996 |
int main(int argc, char** argv) { |
| 997 |
int a, b = 0; |
| 998 |
__try { |
| 999 |
a = 666 / b; |
| 1000 |
} |
| 1001 |
__except (EXCEPTION_EXECUTE_HANDLER) { |
| 1002 |
return 0; |
| 1003 |
} |
| 1004 |
return 1; |
| 1005 |
} |
| 1006 |
|
| 1007 |
EOF |
| 1008 |
if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1009 |
then |
| 1010 |
tcl_cv_seh=yes |
| 1011 |
else |
| 1012 |
echo "configure: failed program was:" >&5 |
| 1013 |
cat conftest.$ac_ext >&5 |
| 1014 |
rm -fr conftest* |
| 1015 |
tcl_cv_seh=no |
| 1016 |
fi |
| 1017 |
rm -fr conftest* |
| 1018 |
fi |
| 1019 |
|
| 1020 |
|
| 1021 |
fi |
| 1022 |
|
| 1023 |
echo "$ac_t""$tcl_cv_seh" 1>&6 |
| 1024 |
if test "$tcl_cv_seh" = "no" ; then |
| 1025 |
cat >> confdefs.h <<\EOF |
| 1026 |
#define HAVE_NO_SEH 1 |
| 1027 |
EOF |
| 1028 |
|
| 1029 |
fi |
| 1030 |
|
| 1031 |
# |
| 1032 |
# Check to see if the excpt.h include file provided contains the |
| 1033 |
# definition for EXCEPTION_DISPOSITION; if not, which is the case |
| 1034 |
# with Cygwin's version as of 2002-04-10, define it to be int, |
| 1035 |
# sufficient for getting the current code to work. |
| 1036 |
# |
| 1037 |
echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6 |
| 1038 |
echo "configure:1039: checking for EXCEPTION_DISPOSITION support in include files" >&5 |
| 1039 |
if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then |
| 1040 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1041 |
else |
| 1042 |
cat > conftest.$ac_ext <<EOF |
| 1043 |
#line 1044 "configure" |
| 1044 |
#include "confdefs.h" |
| 1045 |
|
| 1046 |
#define WIN32_LEAN_AND_MEAN |
| 1047 |
#include <windows.h> |
| 1048 |
#undef WIN32_LEAN_AND_MEAN |
| 1049 |
|
| 1050 |
int main() { |
| 1051 |
|
| 1052 |
EXCEPTION_DISPOSITION x; |
| 1053 |
|
| 1054 |
; return 0; } |
| 1055 |
EOF |
| 1056 |
if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1057 |
rm -rf conftest* |
| 1058 |
tcl_cv_eh_disposition=yes |
| 1059 |
else |
| 1060 |
echo "configure: failed program was:" >&5 |
| 1061 |
cat conftest.$ac_ext >&5 |
| 1062 |
rm -rf conftest* |
| 1063 |
tcl_cv_eh_disposition=no |
| 1064 |
fi |
| 1065 |
rm -f conftest* |
| 1066 |
|
| 1067 |
fi |
| 1068 |
|
| 1069 |
echo "$ac_t""$tcl_cv_eh_disposition" 1>&6 |
| 1070 |
if test "$tcl_cv_eh_disposition" = "no" ; then |
| 1071 |
cat >> confdefs.h <<\EOF |
| 1072 |
#define EXCEPTION_DISPOSITION int |
| 1073 |
EOF |
| 1074 |
|
| 1075 |
fi |
| 1076 |
|
| 1077 |
|
| 1078 |
# Check to see if the winsock2.h include file provided contains |
| 1079 |
# typedefs like LPFN_ACCEPT and friends. |
| 1080 |
# |
| 1081 |
echo $ac_n "checking for LPFN_ACCEPT support in winsock2.h""... $ac_c" 1>&6 |
| 1082 |
echo "configure:1083: checking for LPFN_ACCEPT support in winsock2.h" >&5 |
| 1083 |
if eval "test \"`echo '$''{'tcl_cv_lpfn_decls'+set}'`\" = set"; then |
| 1084 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1085 |
else |
| 1086 |
cat > conftest.$ac_ext <<EOF |
| 1087 |
#line 1088 "configure" |
| 1088 |
#include "confdefs.h" |
| 1089 |
|
| 1090 |
#define WIN32_LEAN_AND_MEAN |
| 1091 |
#include <windows.h> |
| 1092 |
#undef WIN32_LEAN_AND_MEAN |
| 1093 |
#include <winsock2.h> |
| 1094 |
|
| 1095 |
int main() { |
| 1096 |
|
| 1097 |
LPFN_ACCEPT accept; |
| 1098 |
|
| 1099 |
; return 0; } |
| 1100 |
EOF |
| 1101 |
if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1102 |
rm -rf conftest* |
| 1103 |
tcl_cv_lpfn_decls=yes |
| 1104 |
else |
| 1105 |
echo "configure: failed program was:" >&5 |
| 1106 |
cat conftest.$ac_ext >&5 |
| 1107 |
rm -rf conftest* |
| 1108 |
tcl_cv_lpfn_decls=no |
| 1109 |
fi |
| 1110 |
rm -f conftest* |
| 1111 |
|
| 1112 |
fi |
| 1113 |
|
| 1114 |
echo "$ac_t""$tcl_cv_lpfn_decls" 1>&6 |
| 1115 |
if test "$tcl_cv_lpfn_decls" = "no" ; then |
| 1116 |
cat >> confdefs.h <<\EOF |
| 1117 |
#define HAVE_NO_LPFN_DECLS 1 |
| 1118 |
EOF |
| 1119 |
|
| 1120 |
fi |
| 1121 |
|
| 1122 |
# Check to see if winnt.h defines CHAR, SHORT, and LONG |
| 1123 |
# even if VOID has already been #defined. The win32api |
| 1124 |
# used by mingw and cygwin is known to do this. |
| 1125 |
|
| 1126 |
echo $ac_n "checking for winnt.h that ignores VOID define""... $ac_c" 1>&6 |
| 1127 |
echo "configure:1128: checking for winnt.h that ignores VOID define" >&5 |
| 1128 |
if eval "test \"`echo '$''{'tcl_cv_winnt_ignore_void'+set}'`\" = set"; then |
| 1129 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1130 |
else |
| 1131 |
cat > conftest.$ac_ext <<EOF |
| 1132 |
#line 1133 "configure" |
| 1133 |
#include "confdefs.h" |
| 1134 |
|
| 1135 |
#define VOID void |
| 1136 |
#define WIN32_LEAN_AND_MEAN |
| 1137 |
#include <windows.h> |
| 1138 |
#undef WIN32_LEAN_AND_MEAN |
| 1139 |
|
| 1140 |
int main() { |
| 1141 |
|
| 1142 |
CHAR c; |
| 1143 |
SHORT s; |
| 1144 |
LONG l; |
| 1145 |
|
| 1146 |
; return 0; } |
| 1147 |
EOF |
| 1148 |
if { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1149 |
rm -rf conftest* |
| 1150 |
tcl_cv_winnt_ignore_void=yes |
| 1151 |
else |
| 1152 |
echo "configure: failed program was:" >&5 |
| 1153 |
cat conftest.$ac_ext >&5 |
| 1154 |
rm -rf conftest* |
| 1155 |
tcl_cv_winnt_ignore_void=no |
| 1156 |
fi |
| 1157 |
rm -f conftest* |
| 1158 |
|
| 1159 |
fi |
| 1160 |
|
| 1161 |
echo "$ac_t""$tcl_cv_winnt_ignore_void" 1>&6 |
| 1162 |
if test "$tcl_cv_winnt_ignore_void" = "yes" ; then |
| 1163 |
cat >> confdefs.h <<\EOF |
| 1164 |
#define HAVE_WINNT_IGNORE_VOID 1 |
| 1165 |
EOF |
| 1166 |
|
| 1167 |
fi |
| 1168 |
|
| 1169 |
# Check to see if malloc.h is missing the alloca function |
| 1170 |
# declaration. This is known to be a problem with Mingw. |
| 1171 |
# If we compiled without the function declaration, it |
| 1172 |
# would work but we would get a warning message from gcc. |
| 1173 |
# If we add the function declaration ourselves, it |
| 1174 |
# would not compile correctly because the _alloca |
| 1175 |
# function expects the argument to be passed in a |
| 1176 |
# register and not on the stack. Instead, we just |
| 1177 |
# call it from inline asm code. |
| 1178 |
|
| 1179 |
echo $ac_n "checking for alloca declaration in malloc.h""... $ac_c" 1>&6 |
| 1180 |
echo "configure:1181: checking for alloca declaration in malloc.h" >&5 |
| 1181 |
if eval "test \"`echo '$''{'tcl_cv_malloc_decl_alloca'+set}'`\" = set"; then |
| 1182 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1183 |
else |
| 1184 |
cat > conftest.$ac_ext <<EOF |
| 1185 |
#line 1186 "configure" |
| 1186 |
#include "confdefs.h" |
| 1187 |
|
| 1188 |
#include <malloc.h> |
| 1189 |
|
| 1190 |
int main() { |
| 1191 |
|
| 1192 |
size_t arg = 0; |
| 1193 |
void* ptr; |
| 1194 |
ptr = alloca; |
| 1195 |
ptr = alloca(arg); |
| 1196 |
|
| 1197 |
; return 0; } |
| 1198 |
EOF |
| 1199 |
if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1200 |
rm -rf conftest* |
| 1201 |
tcl_cv_malloc_decl_alloca=yes |
| 1202 |
else |
| 1203 |
echo "configure: failed program was:" >&5 |
| 1204 |
cat conftest.$ac_ext >&5 |
| 1205 |
rm -rf conftest* |
| 1206 |
tcl_cv_malloc_decl_alloca=no |
| 1207 |
fi |
| 1208 |
rm -f conftest* |
| 1209 |
|
| 1210 |
fi |
| 1211 |
|
| 1212 |
echo "$ac_t""$tcl_cv_malloc_decl_alloca" 1>&6 |
| 1213 |
if test "$tcl_cv_malloc_decl_alloca" = "no" && |
| 1214 |
test "${GCC}" = "yes" ; then |
| 1215 |
cat >> confdefs.h <<\EOF |
| 1216 |
#define HAVE_ALLOCA_GCC_INLINE 1 |
| 1217 |
EOF |
| 1218 |
|
| 1219 |
fi |
| 1220 |
|
| 1221 |
# See if the compiler supports casting to a union type. |
| 1222 |
# This is used to stop gcc from printing a compiler |
| 1223 |
# warning when initializing a union member. |
| 1224 |
|
| 1225 |
echo $ac_n "checking for cast to union support""... $ac_c" 1>&6 |
| 1226 |
echo "configure:1227: checking for cast to union support" >&5 |
| 1227 |
if eval "test \"`echo '$''{'tcl_cv_cast_to_union'+set}'`\" = set"; then |
| 1228 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1229 |
else |
| 1230 |
cat > conftest.$ac_ext <<EOF |
| 1231 |
#line 1232 "configure" |
| 1232 |
#include "confdefs.h" |
| 1233 |
|
| 1234 |
int main() { |
| 1235 |
|
| 1236 |
union foo { int i; double d; }; |
| 1237 |
union foo f = (union foo) (int) 0; |
| 1238 |
|
| 1239 |
; return 0; } |
| 1240 |
EOF |
| 1241 |
if { (eval echo configure:1242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1242 |
rm -rf conftest* |
| 1243 |
tcl_cv_cast_to_union=yes |
| 1244 |
else |
| 1245 |
echo "configure: failed program was:" >&5 |
| 1246 |
cat conftest.$ac_ext >&5 |
| 1247 |
rm -rf conftest* |
| 1248 |
tcl_cv_cast_to_union=no |
| 1249 |
fi |
| 1250 |
rm -f conftest* |
| 1251 |
|
| 1252 |
fi |
| 1253 |
|
| 1254 |
echo "$ac_t""$tcl_cv_cast_to_union" 1>&6 |
| 1255 |
if test "$tcl_cv_cast_to_union" = "yes"; then |
| 1256 |
cat >> confdefs.h <<\EOF |
| 1257 |
#define HAVE_CAST_TO_UNION 1 |
| 1258 |
EOF |
| 1259 |
|
| 1260 |
fi |
| 1261 |
|
| 1262 |
|
| 1263 |
#-------------------------------------------------------------------- |
| 1264 |
# Determines the correct binary file extension (.o, .obj, .exe etc.) |
| 1265 |
#-------------------------------------------------------------------- |
| 1266 |
|
| 1267 |
echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
| 1268 |
echo "configure:1269: checking for object suffix" >&5 |
| 1269 |
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
| 1270 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1271 |
else |
| 1272 |
rm -f conftest* |
| 1273 |
echo 'int i = 1;' > conftest.$ac_ext |
| 1274 |
if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1275 |
for ac_file in conftest.*; do |
| 1276 |
case $ac_file in |
| 1277 |
*.c) ;; |
| 1278 |
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; |
| 1279 |
esac |
| 1280 |
done |
| 1281 |
else |
| 1282 |
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
| 1283 |
fi |
| 1284 |
rm -f conftest* |
| 1285 |
fi |
| 1286 |
|
| 1287 |
echo "$ac_t""$ac_cv_objext" 1>&6 |
| 1288 |
OBJEXT=$ac_cv_objext |
| 1289 |
ac_objext=$ac_cv_objext |
| 1290 |
|
| 1291 |
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1292 |
echo "configure:1293: checking for mingw32 environment" >&5 |
| 1293 |
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1294 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1295 |
else |
| 1296 |
cat > conftest.$ac_ext <<EOF |
| 1297 |
#line 1298 "configure" |
| 1298 |
#include "confdefs.h" |
| 1299 |
|
| 1300 |
int main() { |
| 1301 |
return __MINGW32__; |
| 1302 |
; return 0; } |
| 1303 |
EOF |
| 1304 |
if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1305 |
rm -rf conftest* |
| 1306 |
ac_cv_mingw32=yes |
| 1307 |
else |
| 1308 |
echo "configure: failed program was:" >&5 |
| 1309 |
cat conftest.$ac_ext >&5 |
| 1310 |
rm -rf conftest* |
| 1311 |
ac_cv_mingw32=no |
| 1312 |
fi |
| 1313 |
rm -f conftest* |
| 1314 |
rm -f conftest* |
| 1315 |
fi |
| 1316 |
|
| 1317 |
echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1318 |
MINGW32= |
| 1319 |
test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1320 |
|
| 1321 |
|
| 1322 |
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 1323 |
echo "configure:1324: checking for executable suffix" >&5 |
| 1324 |
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1325 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1326 |
else |
| 1327 |
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1328 |
ac_cv_exeext=.exe |
| 1329 |
else |
| 1330 |
rm -f conftest* |
| 1331 |
echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1332 |
ac_cv_exeext= |
| 1333 |
if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 1334 |
for file in conftest.*; do |
| 1335 |
case $file in |
| 1336 |
*.c | *.o | *.obj) ;; |
| 1337 |
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1338 |
esac |
| 1339 |
done |
| 1340 |
else |
| 1341 |
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1342 |
fi |
| 1343 |
rm -f conftest* |
| 1344 |
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1345 |
fi |
| 1346 |
fi |
| 1347 |
|
| 1348 |
EXEEXT="" |
| 1349 |
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1350 |
echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1351 |
ac_exeext=$EXEEXT |
| 1352 |
|
| 1353 |
|
| 1354 |
#-------------------------------------------------------------------- |
| 1355 |
# Check whether --enable-threads or --disable-threads was given. |
| 1356 |
#-------------------------------------------------------------------- |
| 1357 |
|
| 1358 |
|
| 1359 |
echo $ac_n "checking for building with threads""... $ac_c" 1>&6 |
| 1360 |
echo "configure:1361: checking for building with threads" >&5 |
| 1361 |
# Check whether --enable-threads or --disable-threads was given. |
| 1362 |
if test "${enable_threads+set}" = set; then |
| 1363 |
enableval="$enable_threads" |
| 1364 |
tcl_ok=$enableval |
| 1365 |
else |
| 1366 |
tcl_ok=no |
| 1367 |
fi |
| 1368 |
|
| 1369 |
|
| 1370 |
if test "$tcl_ok" = "yes"; then |
| 1371 |
echo "$ac_t""yes" 1>&6 |
| 1372 |
TCL_THREADS=1 |
| 1373 |
cat >> confdefs.h <<\EOF |
| 1374 |
#define TCL_THREADS 1 |
| 1375 |
EOF |
| 1376 |
|
| 1377 |
# USE_THREAD_ALLOC tells us to try the special thread-based |
| 1378 |
# allocator that significantly reduces lock contention |
| 1379 |
cat >> confdefs.h <<\EOF |
| 1380 |
#define USE_THREAD_ALLOC 1 |
| 1381 |
EOF |
| 1382 |
|
| 1383 |
else |
| 1384 |
TCL_THREADS=0 |
| 1385 |
echo "$ac_t""no (default)" 1>&6 |
| 1386 |
fi |
| 1387 |
|
| 1388 |
|
| 1389 |
|
| 1390 |
#-------------------------------------------------------------------- |
| 1391 |
# The statements below define a collection of symbols related to |
| 1392 |
# building libtcl as a shared library instead of a static library. |
| 1393 |
#-------------------------------------------------------------------- |
| 1394 |
|
| 1395 |
|
| 1396 |
echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 |
| 1397 |
echo "configure:1398: checking how to build libraries" >&5 |
| 1398 |
# Check whether --enable-shared or --disable-shared was given. |
| 1399 |
if test "${enable_shared+set}" = set; then |
| 1400 |
enableval="$enable_shared" |
| 1401 |
tcl_ok=$enableval |
| 1402 |
else |
| 1403 |
tcl_ok=yes |
| 1404 |
fi |
| 1405 |
|
| 1406 |
|
| 1407 |
if test "${enable_shared+set}" = set; then |
| 1408 |
enableval="$enable_shared" |
| 1409 |
tcl_ok=$enableval |
| 1410 |
else |
| 1411 |
tcl_ok=yes |
| 1412 |
fi |
| 1413 |
|
| 1414 |
if test "$tcl_ok" = "yes" ; then |
| 1415 |
echo "$ac_t""shared" 1>&6 |
| 1416 |
SHARED_BUILD=1 |
| 1417 |
else |
| 1418 |
echo "$ac_t""static" 1>&6 |
| 1419 |
SHARED_BUILD=0 |
| 1420 |
cat >> confdefs.h <<\EOF |
| 1421 |
#define STATIC_BUILD 1 |
| 1422 |
EOF |
| 1423 |
|
| 1424 |
fi |
| 1425 |
|
| 1426 |
|
| 1427 |
#-------------------------------------------------------------------- |
| 1428 |
# The statements below define a collection of compile flags. This |
| 1429 |
# macro depends on the value of SHARED_BUILD, and should be called |
| 1430 |
# after SC_ENABLE_SHARED checks the configure switches. |
| 1431 |
#-------------------------------------------------------------------- |
| 1432 |
|
| 1433 |
|
| 1434 |
|
| 1435 |
# Step 0: Enable 64 bit support? |
| 1436 |
|
| 1437 |
echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6 |
| 1438 |
echo "configure:1439: checking if 64bit support is requested" >&5 |
| 1439 |
# Check whether --enable-64bit or --disable-64bit was given. |
| 1440 |
if test "${enable_64bit+set}" = set; then |
| 1441 |
enableval="$enable_64bit" |
| 1442 |
do64bit=$enableval |
| 1443 |
else |
| 1444 |
do64bit=no |
| 1445 |
fi |
| 1446 |
|
| 1447 |
echo "$ac_t""$do64bit" 1>&6 |
| 1448 |
|
| 1449 |
# Set some defaults (may get changed below) |
| 1450 |
EXTRA_CFLAGS="" |
| 1451 |
|
| 1452 |
# Extract the first word of "cygpath", so it can be a program name with args. |
| 1453 |
set dummy cygpath; ac_word=$2 |
| 1454 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1455 |
echo "configure:1456: checking for $ac_word" >&5 |
| 1456 |
if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then |
| 1457 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1458 |
else |
| 1459 |
if test -n "$CYGPATH"; then |
| 1460 |
ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. |
| 1461 |
else |
| 1462 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1463 |
ac_dummy="$PATH" |
| 1464 |
for ac_dir in $ac_dummy; do |
| 1465 |
test -z "$ac_dir" && ac_dir=. |
| 1466 |
if test -f $ac_dir/$ac_word; then |
| 1467 |
ac_cv_prog_CYGPATH="cygpath -w" |
| 1468 |
break |
| 1469 |
fi |
| 1470 |
done |
| 1471 |
IFS="$ac_save_ifs" |
| 1472 |
test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" |
| 1473 |
fi |
| 1474 |
fi |
| 1475 |
CYGPATH="$ac_cv_prog_CYGPATH" |
| 1476 |
if test -n "$CYGPATH"; then |
| 1477 |
echo "$ac_t""$CYGPATH" 1>&6 |
| 1478 |
else |
| 1479 |
echo "$ac_t""no" 1>&6 |
| 1480 |
fi |
| 1481 |
|
| 1482 |
|
| 1483 |
SHLIB_SUFFIX=".dll" |
| 1484 |
|
| 1485 |
# Check for a bug in gcc's windres that causes the |
| 1486 |
# compile to fail when a Windows native path is |
| 1487 |
# passed into windres. The mingw toolchain requires |
| 1488 |
# Windows native paths while Cygwin should work |
| 1489 |
# with both. Avoid the bug by passing a POSIX |
| 1490 |
# path when using the Cygwin toolchain. |
| 1491 |
|
| 1492 |
if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then |
| 1493 |
conftest=/tmp/conftest.rc |
| 1494 |
echo "STRINGTABLE BEGIN" > $conftest |
| 1495 |
echo "101 \"name\"" >> $conftest |
| 1496 |
echo "END" >> $conftest |
| 1497 |
|
| 1498 |
echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6 |
| 1499 |
echo "configure:1500: checking for Windows native path bug in windres" >&5 |
| 1500 |
cyg_conftest=`$CYGPATH $conftest` |
| 1501 |
if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
| 1502 |
echo "$ac_t""no" 1>&6 |
| 1503 |
else |
| 1504 |
echo "$ac_t""yes" 1>&6 |
| 1505 |
CYGPATH=echo |
| 1506 |
fi |
| 1507 |
conftest= |
| 1508 |
cyg_conftest= |
| 1509 |
fi |
| 1510 |
|
| 1511 |
if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then |
| 1512 |
DEPARG='"$<"' |
| 1513 |
else |
| 1514 |
DEPARG='"$(shell $(CYGPATH) $<)"' |
| 1515 |
fi |
| 1516 |
|
| 1517 |
# set various compiler flags depending on whether we are using gcc or cl |
| 1518 |
|
| 1519 |
echo $ac_n "checking compiler flags""... $ac_c" 1>&6 |
| 1520 |
echo "configure:1521: checking compiler flags" >&5 |
| 1521 |
if test "${GCC}" = "yes" ; then |
| 1522 |
if test "$do64bit" = "yes" ; then |
| 1523 |
echo "configure: warning: "64bit mode not supported with GCC on Windows"" 1>&2 |
| 1524 |
fi |
| 1525 |
SHLIB_LD="" |
| 1526 |
SHLIB_LD_LIBS="" |
| 1527 |
LIBS="" |
| 1528 |
LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32" |
| 1529 |
STLIB_LD='${AR} cr' |
| 1530 |
RC_OUT=-o |
| 1531 |
RC_TYPE= |
| 1532 |
RC_INCLUDE=--include |
| 1533 |
RC_DEFINE=--define |
| 1534 |
RES=res.o |
| 1535 |
MAKE_LIB="\${STLIB_LD} \$@" |
| 1536 |
POST_MAKE_LIB="\${RANLIB} \$@" |
| 1537 |
MAKE_EXE="\${CC} -o \$@" |
| 1538 |
LIBPREFIX="lib" |
| 1539 |
|
| 1540 |
#if test "$ac_cv_cygwin" = "yes"; then |
| 1541 |
# extra_cflags="-mno-cygwin" |
| 1542 |
# extra_ldflags="-mno-cygwin" |
| 1543 |
#else |
| 1544 |
# extra_cflags="" |
| 1545 |
# extra_ldflags="" |
| 1546 |
#fi |
| 1547 |
|
| 1548 |
if test "$ac_cv_cygwin" = "yes"; then |
| 1549 |
touch ac$$.c |
| 1550 |
if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then |
| 1551 |
case "$extra_cflags" in |
| 1552 |
*-mwin32*) ;; |
| 1553 |
*) extra_cflags="-mwin32 $extra_cflags" ;; |
| 1554 |
esac |
| 1555 |
case "$extra_ldflags" in |
| 1556 |
*-mwin32*) ;; |
| 1557 |
*) extra_ldflags="-mwin32 $extra_ldflags" ;; |
| 1558 |
esac |
| 1559 |
fi |
| 1560 |
rm -f ac$$.o ac$$.c |
| 1561 |
else |
| 1562 |
extra_cflags='' |
| 1563 |
extra_ldflags='' |
| 1564 |
fi |
| 1565 |
|
| 1566 |
if test "${SHARED_BUILD}" = "0" ; then |
| 1567 |
# static |
| 1568 |
echo "$ac_t""using static flags" 1>&6 |
| 1569 |
runtime= |
| 1570 |
MAKE_DLL="echo " |
| 1571 |
LIBSUFFIX="s\${DBGX}.a" |
| 1572 |
LIBFLAGSUFFIX="s\${DBGX}" |
| 1573 |
LIBRARIES="\${STATIC_LIBRARIES}" |
| 1574 |
EXESUFFIX="s\${DBGX}.exe" |
| 1575 |
else |
| 1576 |
# dynamic |
| 1577 |
echo "$ac_t""using shared flags" 1>&6 |
| 1578 |
|
| 1579 |
# ad-hoc check to see if CC supports -shared. |
| 1580 |
if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then |
| 1581 |
{ echo "configure: error: ${CC} does not support the -shared option. |
| 1582 |
You will need to upgrade to a newer version of the toolchain." 1>&2; exit 1; } |
| 1583 |
fi |
| 1584 |
|
| 1585 |
runtime= |
| 1586 |
# Link with gcc since ld does not link to default libs like |
| 1587 |
# -luser32 and -lmsvcrt by default. Make sure CFLAGS is |
| 1588 |
# included so -mno-cygwin passed the correct libs to the linker. |
| 1589 |
SHLIB_LD='${CC} -shared ${CFLAGS}' |
| 1590 |
SHLIB_LD_LIBS='${LIBS}' |
| 1591 |
# Add SHLIB_LD_LIBS to the Make rule, not here. |
| 1592 |
MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \ |
| 1593 |
-Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)" |
| 1594 |
|
| 1595 |
LIBSUFFIX="\${DBGX}.a" |
| 1596 |
LIBFLAGSUFFIX="\${DBGX}" |
| 1597 |
EXESUFFIX="\${DBGX}.exe" |
| 1598 |
LIBRARIES="\${SHARED_LIBRARIES}" |
| 1599 |
fi |
| 1600 |
# DLLSUFFIX is separate because it is the building block for |
| 1601 |
# users of tclConfig.sh that may build shared or static. |
| 1602 |
DLLSUFFIX="\${DBGX}.dll" |
| 1603 |
SHLIB_SUFFIX=.dll |
| 1604 |
|
| 1605 |
EXTRA_CFLAGS="${extra_cflags}" |
| 1606 |
|
| 1607 |
CFLAGS_DEBUG=-g |
| 1608 |
CFLAGS_OPTIMIZE=-O |
| 1609 |
CFLAGS_WARNING="-Wall -Wconversion" |
| 1610 |
LDFLAGS_DEBUG= |
| 1611 |
LDFLAGS_OPTIMIZE= |
| 1612 |
|
| 1613 |
# Specify the CC output file names based on the target name |
| 1614 |
CC_OBJNAME="-o \$@" |
| 1615 |
CC_EXENAME="-o \$@" |
| 1616 |
|
| 1617 |
# Specify linker flags depending on the type of app being |
| 1618 |
# built -- Console vs. Window. |
| 1619 |
# |
| 1620 |
# ORIGINAL COMMENT: |
| 1621 |
# We need to pass -e _WinMain@16 so that ld will use |
| 1622 |
# WinMain() instead of main() as the entry point. We can't |
| 1623 |
# use autoconf to check for this case since it would need |
| 1624 |
# to run an executable and that does not work when |
| 1625 |
# cross compiling. Remove this -e workaround once we |
| 1626 |
# require a gcc that does not have this bug. |
| 1627 |
# |
| 1628 |
# MK NOTE: Tk should use a different mechanism. This causes |
| 1629 |
# interesting problems, such as wish dying at startup. |
| 1630 |
#LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}" |
| 1631 |
LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}" |
| 1632 |
LDFLAGS_WINDOW="-mwindows ${extra_ldflags}" |
| 1633 |
else |
| 1634 |
if test "${SHARED_BUILD}" = "0" ; then |
| 1635 |
# static |
| 1636 |
echo "$ac_t""using static flags" 1>&6 |
| 1637 |
runtime=-MT |
| 1638 |
MAKE_DLL="echo " |
| 1639 |
LIBSUFFIX="s\${DBGX}.lib" |
| 1640 |
LIBFLAGSUFFIX="s\${DBGX}" |
| 1641 |
LIBRARIES="\${STATIC_LIBRARIES}" |
| 1642 |
EXESUFFIX="s\${DBGX}.exe" |
| 1643 |
SHLIB_LD_LIBS="" |
| 1644 |
else |
| 1645 |
# dynamic |
| 1646 |
echo "$ac_t""using shared flags" 1>&6 |
| 1647 |
runtime=-MD |
| 1648 |
# Add SHLIB_LD_LIBS to the Make rule, not here. |
| 1649 |
MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@" |
| 1650 |
LIBSUFFIX="\${DBGX}.lib" |
| 1651 |
LIBFLAGSUFFIX="\${DBGX}" |
| 1652 |
EXESUFFIX="\${DBGX}.exe" |
| 1653 |
LIBRARIES="\${SHARED_LIBRARIES}" |
| 1654 |
SHLIB_LD_LIBS='${LIBS}' |
| 1655 |
fi |
| 1656 |
# DLLSUFFIX is separate because it is the building block for |
| 1657 |
# users of tclConfig.sh that may build shared or static. |
| 1658 |
DLLSUFFIX="\${DBGX}.dll" |
| 1659 |
|
| 1660 |
# This is a 2-stage check to make sure we have the 64-bit SDK |
| 1661 |
# We have to know where the SDK is installed. |
| 1662 |
if test "$do64bit" = "yes" ; then |
| 1663 |
if test "x${MSSDK}x" = "xx" ; then |
| 1664 |
MSSDK="C:/Progra~1/Microsoft SDK" |
| 1665 |
fi |
| 1666 |
# In order to work in the tortured autoconf environment, |
| 1667 |
# we need to ensure that this path has no spaces |
| 1668 |
MSSDK=$(cygpath -w -s "$MSSDK" | sed -e 's!\\!/!g') |
| 1669 |
if test ! -d "${MSSDK}/bin/win64" ; then |
| 1670 |
echo "configure: warning: "could not find 64-bit SDK to enable 64bit mode"" 1>&2 |
| 1671 |
do64bit="no" |
| 1672 |
fi |
| 1673 |
fi |
| 1674 |
|
| 1675 |
if test "$do64bit" = "yes" ; then |
| 1676 |
# All this magic is necessary for the Win64 SDK RC1 - hobbs |
| 1677 |
CC="${MSSDK}/Bin/Win64/cl.exe \ |
| 1678 |
-I${MSSDK}/Include/prerelease \ |
| 1679 |
-I${MSSDK}/Include/Win64/crt \ |
| 1680 |
-I${MSSDK}/Include/Win64/crt/sys \ |
| 1681 |
-I${MSSDK}/Include" |
| 1682 |
RC="${MSSDK}/bin/rc.exe" |
| 1683 |
CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d" |
| 1684 |
CFLAGS_OPTIMIZE="-nologo -O2 -Gs ${runtime}" |
| 1685 |
lflags="-MACHINE:IA64 -LIBPATH:${MSSDK}/Lib/IA64 \ |
| 1686 |
-LIBPATH:${MSSDK}/Lib/Prerelease/IA64" |
| 1687 |
STLIB_LD="${MSSDK}/bin/win64/lib.exe -nologo ${lflags}" |
| 1688 |
LINKBIN="${MSSDK}/bin/win64/link.exe ${lflags}" |
| 1689 |
else |
| 1690 |
RC="rc" |
| 1691 |
CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d" |
| 1692 |
CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}" |
| 1693 |
STLIB_LD="lib -nologo" |
| 1694 |
LINKBIN="link -link50compat" |
| 1695 |
fi |
| 1696 |
|
| 1697 |
SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no" |
| 1698 |
LIBS="user32.lib advapi32.lib" |
| 1699 |
LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib" |
| 1700 |
RC_OUT=-fo |
| 1701 |
RC_TYPE=-r |
| 1702 |
RC_INCLUDE=-i |
| 1703 |
RC_DEFINE=-d |
| 1704 |
RES=res |
| 1705 |
MAKE_LIB="\${STLIB_LD} -out:\$@" |
| 1706 |
POST_MAKE_LIB= |
| 1707 |
MAKE_EXE="\${CC} -Fe\$@" |
| 1708 |
LIBPREFIX="" |
| 1709 |
|
| 1710 |
EXTRA_CFLAGS="-YX" |
| 1711 |
CFLAGS_WARNING="-W3" |
| 1712 |
LDFLAGS_DEBUG="-debug:full -debugtype:both" |
| 1713 |
LDFLAGS_OPTIMIZE="-release" |
| 1714 |
|
| 1715 |
# Specify the CC output file names based on the target name |
| 1716 |
CC_OBJNAME="-Fo\$@" |
| 1717 |
CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\"" |
| 1718 |
|
| 1719 |
# Specify linker flags depending on the type of app being |
| 1720 |
# built -- Console vs. Window. |
| 1721 |
LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" |
| 1722 |
LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" |
| 1723 |
fi |
| 1724 |
|
| 1725 |
# DL_LIBS is empty, but then we match the Unix version |
| 1726 |
|
| 1727 |
|
| 1728 |
|
| 1729 |
|
| 1730 |
|
| 1731 |
|
| 1732 |
#-------------------------------------------------------------------- |
| 1733 |
# Set the default compiler switches based on the --enable-symbols |
| 1734 |
# option. This macro depends on C flags, and should be called |
| 1735 |
# after SC_CONFIG_CFLAGS macro is called. |
| 1736 |
#-------------------------------------------------------------------- |
| 1737 |
|
| 1738 |
|
| 1739 |
echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 |
| 1740 |
echo "configure:1741: checking for build with symbols" >&5 |
| 1741 |
# Check whether --enable-symbols or --disable-symbols was given. |
| 1742 |
if test "${enable_symbols+set}" = set; then |
| 1743 |
enableval="$enable_symbols" |
| 1744 |
tcl_ok=$enableval |
| 1745 |
else |
| 1746 |
tcl_ok=no |
| 1747 |
fi |
| 1748 |
|
| 1749 |
# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
| 1750 |
if test "$tcl_ok" = "no"; then |
| 1751 |
CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
| 1752 |
LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
| 1753 |
DBGX="" |
| 1754 |
echo "$ac_t""no" 1>&6 |
| 1755 |
else |
| 1756 |
CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
| 1757 |
LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
| 1758 |
DBGX=g |
| 1759 |
if test "$tcl_ok" = "yes"; then |
| 1760 |
echo "$ac_t""yes (standard debugging)" 1>&6 |
| 1761 |
fi |
| 1762 |
fi |
| 1763 |
|
| 1764 |
|
| 1765 |
|
| 1766 |
if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
| 1767 |
cat >> confdefs.h <<\EOF |
| 1768 |
#define TCL_MEM_DEBUG 1 |
| 1769 |
EOF |
| 1770 |
|
| 1771 |
fi |
| 1772 |
|
| 1773 |
if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
| 1774 |
cat >> confdefs.h <<\EOF |
| 1775 |
#define TCL_COMPILE_DEBUG 1 |
| 1776 |
EOF |
| 1777 |
|
| 1778 |
cat >> confdefs.h <<\EOF |
| 1779 |
#define TCL_COMPILE_STATS 1 |
| 1780 |
EOF |
| 1781 |
|
| 1782 |
fi |
| 1783 |
|
| 1784 |
if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
| 1785 |
if test "$tcl_ok" = "all"; then |
| 1786 |
echo "$ac_t""enabled symbols mem compile debugging" 1>&6 |
| 1787 |
else |
| 1788 |
echo "$ac_t""enabled $tcl_ok debugging" 1>&6 |
| 1789 |
fi |
| 1790 |
fi |
| 1791 |
|
| 1792 |
|
| 1793 |
TCL_DBGX=${DBGX} |
| 1794 |
|
| 1795 |
#-------------------------------------------------------------------- |
| 1796 |
# man2tcl needs this so that it can use errno.h |
| 1797 |
#-------------------------------------------------------------------- |
| 1798 |
|
| 1799 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1800 |
echo "configure:1801: checking how to run the C preprocessor" >&5 |
| 1801 |
# On Suns, sometimes $CPP names a directory. |
| 1802 |
if test -n "$CPP" && test -d "$CPP"; then |
| 1803 |
CPP= |
| 1804 |
fi |
| 1805 |
if test -z "$CPP"; then |
| 1806 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1807 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1808 |
else |
| 1809 |
# This must be in double quotes, not single quotes, because CPP may get |
| 1810 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1811 |
CPP="${CC-cc} -E" |
| 1812 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 1813 |
# not just through cpp. |
| 1814 |
cat > conftest.$ac_ext <<EOF |
| 1815 |
#line 1816 "configure" |
| 1816 |
#include "confdefs.h" |
| 1817 |
#include <assert.h> |
| 1818 |
Syntax Error |
| 1819 |
EOF |
| 1820 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1821 |
{ (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1822 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1823 |
if test -z "$ac_err"; then |
| 1824 |
: |
| 1825 |
else |
| 1826 |
echo "$ac_err" >&5 |
| 1827 |
echo "configure: failed program was:" >&5 |
| 1828 |
cat conftest.$ac_ext >&5 |
| 1829 |
rm -rf conftest* |
| 1830 |
CPP="${CC-cc} -E -traditional-cpp" |
| 1831 |
cat > conftest.$ac_ext <<EOF |
| 1832 |
#line 1833 "configure" |
| 1833 |
#include "confdefs.h" |
| 1834 |
#include <assert.h> |
| 1835 |
Syntax Error |
| 1836 |
EOF |
| 1837 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1838 |
{ (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1839 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1840 |
if test -z "$ac_err"; then |
| 1841 |
: |
| 1842 |
else |
| 1843 |
echo "$ac_err" >&5 |
| 1844 |
echo "configure: failed program was:" >&5 |
| 1845 |
cat conftest.$ac_ext >&5 |
| 1846 |
rm -rf conftest* |
| 1847 |
CPP="${CC-cc} -nologo -E" |
| 1848 |
cat > conftest.$ac_ext <<EOF |
| 1849 |
#line 1850 "configure" |
| 1850 |
#include "confdefs.h" |
| 1851 |
#include <assert.h> |
| 1852 |
Syntax Error |
| 1853 |
EOF |
| 1854 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1855 |
{ (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1856 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1857 |
if test -z "$ac_err"; then |
| 1858 |
: |
| 1859 |
else |
| 1860 |
echo "$ac_err" >&5 |
| 1861 |
echo "configure: failed program was:" >&5 |
| 1862 |
cat conftest.$ac_ext >&5 |
| 1863 |
rm -rf conftest* |
| 1864 |
CPP=/lib/cpp |
| 1865 |
fi |
| 1866 |
rm -f conftest* |
| 1867 |
fi |
| 1868 |
rm -f conftest* |
| 1869 |
fi |
| 1870 |
rm -f conftest* |
| 1871 |
ac_cv_prog_CPP="$CPP" |
| 1872 |
fi |
| 1873 |
CPP="$ac_cv_prog_CPP" |
| 1874 |
else |
| 1875 |
ac_cv_prog_CPP="$CPP" |
| 1876 |
fi |
| 1877 |
echo "$ac_t""$CPP" 1>&6 |
| 1878 |
|
| 1879 |
ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'` |
| 1880 |
echo $ac_n "checking for errno.h""... $ac_c" 1>&6 |
| 1881 |
echo "configure:1882: checking for errno.h" >&5 |
| 1882 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1883 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1884 |
else |
| 1885 |
cat > conftest.$ac_ext <<EOF |
| 1886 |
#line 1887 "configure" |
| 1887 |
#include "confdefs.h" |
| 1888 |
#include <errno.h> |
| 1889 |
EOF |
| 1890 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1891 |
{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1892 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1893 |
if test -z "$ac_err"; then |
| 1894 |
rm -rf conftest* |
| 1895 |
eval "ac_cv_header_$ac_safe=yes" |
| 1896 |
else |
| 1897 |
echo "$ac_err" >&5 |
| 1898 |
echo "configure: failed program was:" >&5 |
| 1899 |
cat conftest.$ac_ext >&5 |
| 1900 |
rm -rf conftest* |
| 1901 |
eval "ac_cv_header_$ac_safe=no" |
| 1902 |
fi |
| 1903 |
rm -f conftest* |
| 1904 |
fi |
| 1905 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1906 |
echo "$ac_t""yes" 1>&6 |
| 1907 |
: |
| 1908 |
else |
| 1909 |
echo "$ac_t""no" 1>&6 |
| 1910 |
MAN2TCLFLAGS="-DNO_ERRNO_H" |
| 1911 |
fi |
| 1912 |
|
| 1913 |
|
| 1914 |
|
| 1915 |
#------------------------------------------------------------------------ |
| 1916 |
# tclConfig.sh refers to this by a different name |
| 1917 |
#------------------------------------------------------------------------ |
| 1918 |
|
| 1919 |
TCL_SHARED_BUILD=${SHARED_BUILD} |
| 1920 |
|
| 1921 |
#-------------------------------------------------------------------- |
| 1922 |
# Perform final evaluations of variables with possible substitutions. |
| 1923 |
#-------------------------------------------------------------------- |
| 1924 |
|
| 1925 |
TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}" |
| 1926 |
TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" |
| 1927 |
TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" |
| 1928 |
|
| 1929 |
eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\"" |
| 1930 |
|
| 1931 |
eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}" |
| 1932 |
|
| 1933 |
eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}" |
| 1934 |
# FIMXE: These variables decls are missing |
| 1935 |
#TCL_LIB_FLAG |
| 1936 |
#TCL_BUILD_LIB_SPEC |
| 1937 |
#TCL_LIB_SPEC |
| 1938 |
|
| 1939 |
eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\"" |
| 1940 |
eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\"" |
| 1941 |
eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\"" |
| 1942 |
eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\"" |
| 1943 |
eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\"" |
| 1944 |
eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\"" |
| 1945 |
|
| 1946 |
# Install time header dir can be set via --includedir |
| 1947 |
eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" |
| 1948 |
|
| 1949 |
|
| 1950 |
eval "DLLSUFFIX=${DLLSUFFIX}" |
| 1951 |
eval "LIBPREFIX=${LIBPREFIX}" |
| 1952 |
eval "LIBSUFFIX=${LIBSUFFIX}" |
| 1953 |
eval "EXESUFFIX=${EXESUFFIX}" |
| 1954 |
|
| 1955 |
CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX} |
| 1956 |
CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX} |
| 1957 |
CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX} |
| 1958 |
|
| 1959 |
#-------------------------------------------------------------------- |
| 1960 |
# Adjust the defines for how the resources are built depending |
| 1961 |
# on symbols and static vs. shared. |
| 1962 |
#-------------------------------------------------------------------- |
| 1963 |
|
| 1964 |
if test ${SHARED_BUILD} = 0 ; then |
| 1965 |
if test "${DBGX}" = "g"; then |
| 1966 |
RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG" |
| 1967 |
else |
| 1968 |
RC_DEFINES="${RC_DEFINE} STATIC_BUILD" |
| 1969 |
fi |
| 1970 |
else |
| 1971 |
if test "${DBGX}" = "g"; then |
| 1972 |
RC_DEFINES="${RC_DEFINE} DEBUG" |
| 1973 |
else |
| 1974 |
RC_DEFINES="" |
| 1975 |
fi |
| 1976 |
fi |
| 1977 |
|
| 1978 |
|
| 1979 |
|
| 1980 |
|
| 1981 |
|
| 1982 |
|
| 1983 |
|
| 1984 |
|
| 1985 |
|
| 1986 |
# empty on win |
| 1987 |
|
| 1988 |
|
| 1989 |
|
| 1990 |
|
| 1991 |
|
| 1992 |
|
| 1993 |
|
| 1994 |
|
| 1995 |
|
| 1996 |
|
| 1997 |
|
| 1998 |
|
| 1999 |
|
| 2000 |
|
| 2001 |
|
| 2002 |
|
| 2003 |
|
| 2004 |
# win/tcl.m4 doesn't set (CFLAGS) |
| 2005 |
|
| 2006 |
|
| 2007 |
|
| 2008 |
|
| 2009 |
|
| 2010 |
|
| 2011 |
|
| 2012 |
# win/tcl.m4 doesn't set (LDFLAGS) |
| 2013 |
|
| 2014 |
|
| 2015 |
|
| 2016 |
|
| 2017 |
|
| 2018 |
|
| 2019 |
|
| 2020 |
|
| 2021 |
|
| 2022 |
|
| 2023 |
|
| 2024 |
|
| 2025 |
|
| 2026 |
|
| 2027 |
|
| 2028 |
|
| 2029 |
|
| 2030 |
|
| 2031 |
|
| 2032 |
|
| 2033 |
|
| 2034 |
|
| 2035 |
|
| 2036 |
|
| 2037 |
|
| 2038 |
|
| 2039 |
|
| 2040 |
# empty on win, but needs sub'ing |
| 2041 |
|
| 2042 |
|
| 2043 |
|
| 2044 |
|
| 2045 |
|
| 2046 |
|
| 2047 |
|
| 2048 |
|
| 2049 |
|
| 2050 |
|
| 2051 |
# win only |
| 2052 |
|
| 2053 |
|
| 2054 |
|
| 2055 |
|
| 2056 |
|
| 2057 |
|
| 2058 |
|
| 2059 |
|
| 2060 |
|
| 2061 |
|
| 2062 |
|
| 2063 |
|
| 2064 |
|
| 2065 |
|
| 2066 |
|
| 2067 |
trap '' 1 2 15 |
| 2068 |
cat > confcache <<\EOF |
| 2069 |
# This file is a shell script that caches the results of configure |
| 2070 |
# tests run on this system so they can be shared between configure |
| 2071 |
# scripts and configure runs. It is not useful on other systems. |
| 2072 |
# If it contains results you don't want to keep, you may remove or edit it. |
| 2073 |
# |
| 2074 |
# By default, configure uses ./config.cache as the cache file, |
| 2075 |
# creating it if it does not exist already. You can give configure |
| 2076 |
# the --cache-file=FILE option to use a different cache file; that is |
| 2077 |
# what configure does when it calls configure scripts in |
| 2078 |
# subdirectories, so they share the cache. |
| 2079 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 2080 |
# config.status only pays attention to the cache file if you give it the |
| 2081 |
# --recheck option to rerun configure. |
| 2082 |
# |
| 2083 |
EOF |
| 2084 |
# The following way of writing the cache mishandles newlines in values, |
| 2085 |
# but we know of no workaround that is simple, portable, and efficient. |
| 2086 |
# So, don't put newlines in cache variables' values. |
| 2087 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 2088 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 2089 |
(set) 2>&1 | |
| 2090 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 2091 |
*ac_space=\ *) |
| 2092 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
| 2093 |
# turns \\\\ into \\, and sed turns \\ into \). |
| 2094 |
sed -n \ |
| 2095 |
-e "s/'/'\\\\''/g" \ |
| 2096 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 2097 |
;; |
| 2098 |
*) |
| 2099 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2100 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 2101 |
;; |
| 2102 |
esac >> confcache |
| 2103 |
if cmp -s $cache_file confcache; then |
| 2104 |
: |
| 2105 |
else |
| 2106 |
if test -w $cache_file; then |
| 2107 |
echo "updating cache $cache_file" |
| 2108 |
cat confcache > $cache_file |
| 2109 |
else |
| 2110 |
echo "not updating unwritable cache $cache_file" |
| 2111 |
fi |
| 2112 |
fi |
| 2113 |
rm -f confcache |
| 2114 |
|
| 2115 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 2116 |
|
| 2117 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2118 |
# Let make expand exec_prefix. |
| 2119 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2120 |
|
| 2121 |
# Any assignment to VPATH causes Sun make to only execute |
| 2122 |
# the first set of double-colon rules, so remove it if not needed. |
| 2123 |
# If there is a colon in the path, we need to keep it. |
| 2124 |
if test "x$srcdir" = x.; then |
| 2125 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2126 |
fi |
| 2127 |
|
| 2128 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 2129 |
|
| 2130 |
# Transform confdefs.h into DEFS. |
| 2131 |
# Protect against shell expansion while executing Makefile rules. |
| 2132 |
# Protect against Makefile macro expansion. |
| 2133 |
cat > conftest.defs <<\EOF |
| 2134 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 2135 |
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 2136 |
s%\[%\\&%g |
| 2137 |
s%\]%\\&%g |
| 2138 |
s%\$%$$%g |
| 2139 |
EOF |
| 2140 |
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 2141 |
rm -f conftest.defs |
| 2142 |
|
| 2143 |
|
| 2144 |
# Without the "./", some shells look in PATH for config.status. |
| 2145 |
: ${CONFIG_STATUS=./config.status} |
| 2146 |
|
| 2147 |
echo creating $CONFIG_STATUS |
| 2148 |
rm -f $CONFIG_STATUS |
| 2149 |
cat > $CONFIG_STATUS <<EOF |
| 2150 |
#! /bin/sh |
| 2151 |
# Generated automatically by configure. |
| 2152 |
# Run this file to recreate the current configuration. |
| 2153 |
# This directory was configured as follows, |
| 2154 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2155 |
# |
| 2156 |
# $0 $ac_configure_args |
| 2157 |
# |
| 2158 |
# Compiler output produced by configure, useful for debugging |
| 2159 |
# configure, is in ./config.log if it exists. |
| 2160 |
|
| 2161 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 2162 |
for ac_option |
| 2163 |
do |
| 2164 |
case "\$ac_option" in |
| 2165 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2166 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2167 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 2168 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 2169 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 2170 |
exit 0 ;; |
| 2171 |
-help | --help | --hel | --he | --h) |
| 2172 |
echo "\$ac_cs_usage"; exit 0 ;; |
| 2173 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
| 2174 |
esac |
| 2175 |
done |
| 2176 |
|
| 2177 |
ac_given_srcdir=$srcdir |
| 2178 |
|
| 2179 |
trap 'rm -fr `echo "Makefile tclConfig.sh tcl.hpj" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 2180 |
EOF |
| 2181 |
cat >> $CONFIG_STATUS <<EOF |
| 2182 |
|
| 2183 |
# Protect against being on the right side of a sed subst in config.status. |
| 2184 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 2185 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 2186 |
$ac_vpsub |
| 2187 |
$extrasub |
| 2188 |
s%@SHELL@%$SHELL%g |
| 2189 |
s%@CFLAGS@%$CFLAGS%g |
| 2190 |
s%@CPPFLAGS@%$CPPFLAGS%g |
| 2191 |
s%@CXXFLAGS@%$CXXFLAGS%g |
| 2192 |
s%@FFLAGS@%$FFLAGS%g |
| 2193 |
s%@DEFS@%$DEFS%g |
| 2194 |
s%@LDFLAGS@%$LDFLAGS%g |
| 2195 |
s%@LIBS@%$LIBS%g |
| 2196 |
s%@exec_prefix@%$exec_prefix%g |
| 2197 |
s%@prefix@%$prefix%g |
| 2198 |
s%@program_transform_name@%$program_transform_name%g |
| 2199 |
s%@bindir@%$bindir%g |
| 2200 |
s%@sbindir@%$sbindir%g |
| 2201 |
s%@libexecdir@%$libexecdir%g |
| 2202 |
s%@datadir@%$datadir%g |
| 2203 |
s%@sysconfdir@%$sysconfdir%g |
| 2204 |
s%@sharedstatedir@%$sharedstatedir%g |
| 2205 |
s%@localstatedir@%$localstatedir%g |
| 2206 |
s%@libdir@%$libdir%g |
| 2207 |
s%@includedir@%$includedir%g |
| 2208 |
s%@oldincludedir@%$oldincludedir%g |
| 2209 |
s%@infodir@%$infodir%g |
| 2210 |
s%@mandir@%$mandir%g |
| 2211 |
s%@CC@%$CC%g |
| 2212 |
s%@AR@%$AR%g |
| 2213 |
s%@RANLIB@%$RANLIB%g |
| 2214 |
s%@RC@%$RC%g |
| 2215 |
s%@SET_MAKE@%$SET_MAKE%g |
| 2216 |
s%@OBJEXT@%$OBJEXT%g |
| 2217 |
s%@EXEEXT@%$EXEEXT%g |
| 2218 |
s%@TCL_THREADS@%$TCL_THREADS%g |
| 2219 |
s%@CYGPATH@%$CYGPATH%g |
| 2220 |
s%@DL_LIBS@%$DL_LIBS%g |
| 2221 |
s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g |
| 2222 |
s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g |
| 2223 |
s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g |
| 2224 |
s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g |
| 2225 |
s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g |
| 2226 |
s%@CPP@%$CPP%g |
| 2227 |
s%@MAN2TCLFLAGS@%$MAN2TCLFLAGS%g |
| 2228 |
s%@TCL_VERSION@%$TCL_VERSION%g |
| 2229 |
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g |
| 2230 |
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g |
| 2231 |
s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g |
| 2232 |
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g |
| 2233 |
s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g |
| 2234 |
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
| 2235 |
s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g |
| 2236 |
s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g |
| 2237 |
s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g |
| 2238 |
s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g |
| 2239 |
s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g |
| 2240 |
s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g |
| 2241 |
s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g |
| 2242 |
s%@TCL_DLL_FILE@%$TCL_DLL_FILE%g |
| 2243 |
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g |
| 2244 |
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g |
| 2245 |
s%@TCL_DBGX@%$TCL_DBGX%g |
| 2246 |
s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g |
| 2247 |
s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g |
| 2248 |
s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g |
| 2249 |
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g |
| 2250 |
s%@DEPARG@%$DEPARG%g |
| 2251 |
s%@CC_OBJNAME@%$CC_OBJNAME%g |
| 2252 |
s%@CC_EXENAME@%$CC_EXENAME%g |
| 2253 |
s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g |
| 2254 |
s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g |
| 2255 |
s%@LDFLAGS_CONSOLE@%$LDFLAGS_CONSOLE%g |
| 2256 |
s%@LDFLAGS_WINDOW@%$LDFLAGS_WINDOW%g |
| 2257 |
s%@STLIB_LD@%$STLIB_LD%g |
| 2258 |
s%@SHLIB_LD@%$SHLIB_LD%g |
| 2259 |
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g |
| 2260 |
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g |
| 2261 |
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g |
| 2262 |
s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g |
| 2263 |
s%@LIBS_GUI@%$LIBS_GUI%g |
| 2264 |
s%@DLLSUFFIX@%$DLLSUFFIX%g |
| 2265 |
s%@LIBPREFIX@%$LIBPREFIX%g |
| 2266 |
s%@LIBSUFFIX@%$LIBSUFFIX%g |
| 2267 |
s%@EXESUFFIX@%$EXESUFFIX%g |
| 2268 |
s%@LIBRARIES@%$LIBRARIES%g |
| 2269 |
s%@MAKE_LIB@%$MAKE_LIB%g |
| 2270 |
s%@POST_MAKE_LIB@%$POST_MAKE_LIB%g |
| 2271 |
s%@MAKE_DLL@%$MAKE_DLL%g |
| 2272 |
s%@MAKE_EXE@%$MAKE_EXE%g |
| 2273 |
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g |
| 2274 |
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g |
| 2275 |
s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g |
| 2276 |
s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g |
| 2277 |
s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g |
| 2278 |
s%@LIBOBJS@%$LIBOBJS%g |
| 2279 |
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g |
| 2280 |
s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g |
| 2281 |
s%@TCL_DDE_VERSION@%$TCL_DDE_VERSION%g |
| 2282 |
s%@TCL_DDE_MAJOR_VERSION@%$TCL_DDE_MAJOR_VERSION%g |
| 2283 |
s%@TCL_DDE_MINOR_VERSION@%$TCL_DDE_MINOR_VERSION%g |
| 2284 |
s%@TCL_REG_VERSION@%$TCL_REG_VERSION%g |
| 2285 |
s%@TCL_REG_MAJOR_VERSION@%$TCL_REG_MAJOR_VERSION%g |
| 2286 |
s%@TCL_REG_MINOR_VERSION@%$TCL_REG_MINOR_VERSION%g |
| 2287 |
s%@RC_OUT@%$RC_OUT%g |
| 2288 |
s%@RC_TYPE@%$RC_TYPE%g |
| 2289 |
s%@RC_INCLUDE@%$RC_INCLUDE%g |
| 2290 |
s%@RC_DEFINE@%$RC_DEFINE%g |
| 2291 |
s%@RC_DEFINES@%$RC_DEFINES%g |
| 2292 |
s%@RES@%$RES%g |
| 2293 |
|
| 2294 |
CEOF |
| 2295 |
EOF |
| 2296 |
|
| 2297 |
cat >> $CONFIG_STATUS <<\EOF |
| 2298 |
|
| 2299 |
# Split the substitutions into bite-sized pieces for seds with |
| 2300 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 2301 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 2302 |
ac_file=1 # Number of current file. |
| 2303 |
ac_beg=1 # First line for current file. |
| 2304 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 2305 |
ac_more_lines=: |
| 2306 |
ac_sed_cmds="" |
| 2307 |
while $ac_more_lines; do |
| 2308 |
if test $ac_beg -gt 1; then |
| 2309 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2310 |
else |
| 2311 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2312 |
fi |
| 2313 |
if test ! -s conftest.s$ac_file; then |
| 2314 |
ac_more_lines=false |
| 2315 |
rm -f conftest.s$ac_file |
| 2316 |
else |
| 2317 |
if test -z "$ac_sed_cmds"; then |
| 2318 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
| 2319 |
else |
| 2320 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 2321 |
fi |
| 2322 |
ac_file=`expr $ac_file + 1` |
| 2323 |
ac_beg=$ac_end |
| 2324 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 2325 |
fi |
| 2326 |
done |
| 2327 |
if test -z "$ac_sed_cmds"; then |
| 2328 |
ac_sed_cmds=cat |
| 2329 |
fi |
| 2330 |
EOF |
| 2331 |
|
| 2332 |
cat >> $CONFIG_STATUS <<EOF |
| 2333 |
|
| 2334 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile tclConfig.sh tcl.hpj"} |
| 2335 |
EOF |
| 2336 |
cat >> $CONFIG_STATUS <<\EOF |
| 2337 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2338 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2339 |
case "$ac_file" in |
| 2340 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 2341 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2342 |
*) ac_file_in="${ac_file}.in" ;; |
| 2343 |
esac |
| 2344 |
|
| 2345 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 2346 |
|
| 2347 |
# Remove last slash and all that follows it. Not all systems have dirname. |
| 2348 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2349 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2350 |
# The file is in a subdirectory. |
| 2351 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2352 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2353 |
# A "../" for each directory in $ac_dir_suffix. |
| 2354 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2355 |
else |
| 2356 |
ac_dir_suffix= ac_dots= |
| 2357 |
fi |
| 2358 |
|
| 2359 |
case "$ac_given_srcdir" in |
| 2360 |
.) srcdir=. |
| 2361 |
if test -z "$ac_dots"; then top_srcdir=. |
| 2362 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2363 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2364 |
*) # Relative path. |
| 2365 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2366 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2367 |
esac |
| 2368 |
|
| 2369 |
|
| 2370 |
echo creating "$ac_file" |
| 2371 |
rm -f "$ac_file" |
| 2372 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2373 |
case "$ac_file" in |
| 2374 |
*Makefile*) ac_comsub="1i\\ |
| 2375 |
# $configure_input" ;; |
| 2376 |
*) ac_comsub= ;; |
| 2377 |
esac |
| 2378 |
|
| 2379 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2380 |
sed -e "$ac_comsub |
| 2381 |
s%@configure_input@%$configure_input%g |
| 2382 |
s%@srcdir@%$srcdir%g |
| 2383 |
s%@top_srcdir@%$top_srcdir%g |
| 2384 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 2385 |
fi; done |
| 2386 |
rm -f conftest.s* |
| 2387 |
|
| 2388 |
EOF |
| 2389 |
cat >> $CONFIG_STATUS <<EOF |
| 2390 |
|
| 2391 |
EOF |
| 2392 |
cat >> $CONFIG_STATUS <<\EOF |
| 2393 |
|
| 2394 |
exit 0 |
| 2395 |
EOF |
| 2396 |
chmod +x $CONFIG_STATUS |
| 2397 |
rm -fr confdefs* $ac_clean_files |
| 2398 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2399 |
|