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