sl@0: #! /bin/sh sl@0: sl@0: # Guess values for system-dependent variables and create Makefiles. sl@0: # Generated automatically using autoconf version 2.13 sl@0: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. sl@0: # sl@0: # This configure script is free software; the Free Software Foundation sl@0: # gives unlimited permission to copy, distribute and modify it. sl@0: sl@0: # Defaults: sl@0: ac_help= sl@0: ac_default_prefix=/usr/local sl@0: # Any additions from configure.in: sl@0: ac_help="$ac_help sl@0: --enable-threads build with threads" sl@0: ac_help="$ac_help sl@0: --enable-shared build and link with shared libraries [--enable-shared]" sl@0: ac_help="$ac_help sl@0: --enable-64bit enable 64bit support (where applicable = amd64|ia64)" sl@0: ac_help="$ac_help sl@0: --enable-symbols build with debugging symbols [--disable-symbols]" sl@0: sl@0: # Initialize some variables set by options. sl@0: # The variables have the same names as the options, with sl@0: # dashes changed to underlines. sl@0: build=NONE sl@0: cache_file=./config.cache sl@0: exec_prefix=NONE sl@0: host=NONE sl@0: no_create= sl@0: nonopt=NONE sl@0: no_recursion= sl@0: prefix=NONE sl@0: program_prefix=NONE sl@0: program_suffix=NONE sl@0: program_transform_name=s,x,x, sl@0: silent= sl@0: site= sl@0: srcdir= sl@0: target=NONE sl@0: verbose= sl@0: x_includes=NONE sl@0: x_libraries=NONE sl@0: bindir='${exec_prefix}/bin' sl@0: sbindir='${exec_prefix}/sbin' sl@0: libexecdir='${exec_prefix}/libexec' sl@0: datadir='${prefix}/share' sl@0: sysconfdir='${prefix}/etc' sl@0: sharedstatedir='${prefix}/com' sl@0: localstatedir='${prefix}/var' sl@0: libdir='${exec_prefix}/lib' sl@0: includedir='${prefix}/include' sl@0: oldincludedir='/usr/include' sl@0: infodir='${prefix}/info' sl@0: mandir='${prefix}/man' sl@0: sl@0: # Initialize some other variables. sl@0: subdirs= sl@0: MFLAGS= MAKEFLAGS= sl@0: SHELL=${CONFIG_SHELL-/bin/sh} sl@0: # Maximum number of lines to put in a shell here document. sl@0: ac_max_here_lines=12 sl@0: sl@0: ac_prev= sl@0: for ac_option sl@0: do sl@0: sl@0: # If the previous option needs an argument, assign it. sl@0: if test -n "$ac_prev"; then sl@0: eval "$ac_prev=\$ac_option" sl@0: ac_prev= sl@0: continue sl@0: fi sl@0: sl@0: case "$ac_option" in sl@0: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; sl@0: *) ac_optarg= ;; sl@0: esac sl@0: sl@0: # Accept the important Cygnus configure options, so we can diagnose typos. sl@0: sl@0: case "$ac_option" in sl@0: sl@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) sl@0: ac_prev=bindir ;; sl@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) sl@0: bindir="$ac_optarg" ;; sl@0: sl@0: -build | --build | --buil | --bui | --bu) sl@0: ac_prev=build ;; sl@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) sl@0: build="$ac_optarg" ;; sl@0: sl@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ sl@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) sl@0: ac_prev=cache_file ;; sl@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ sl@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) sl@0: cache_file="$ac_optarg" ;; sl@0: sl@0: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) sl@0: ac_prev=datadir ;; sl@0: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ sl@0: | --da=*) sl@0: datadir="$ac_optarg" ;; sl@0: sl@0: -disable-* | --disable-*) sl@0: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` sl@0: # Reject names that are not valid shell variable names. sl@0: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then sl@0: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } sl@0: fi sl@0: ac_feature=`echo $ac_feature| sed 's/-/_/g'` sl@0: eval "enable_${ac_feature}=no" ;; sl@0: sl@0: -enable-* | --enable-*) sl@0: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` sl@0: # Reject names that are not valid shell variable names. sl@0: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then sl@0: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } sl@0: fi sl@0: ac_feature=`echo $ac_feature| sed 's/-/_/g'` sl@0: case "$ac_option" in sl@0: *=*) ;; sl@0: *) ac_optarg=yes ;; sl@0: esac sl@0: eval "enable_${ac_feature}='$ac_optarg'" ;; sl@0: sl@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ sl@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ sl@0: | --exec | --exe | --ex) sl@0: ac_prev=exec_prefix ;; sl@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ sl@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ sl@0: | --exec=* | --exe=* | --ex=*) sl@0: exec_prefix="$ac_optarg" ;; sl@0: sl@0: -gas | --gas | --ga | --g) sl@0: # Obsolete; use --with-gas. sl@0: with_gas=yes ;; sl@0: sl@0: -help | --help | --hel | --he) sl@0: # Omit some internal or obsolete options to make the list less imposing. sl@0: # This message is too long to be a string in the A/UX 3.1 sh. sl@0: cat << EOF sl@0: Usage: configure [options] [host] sl@0: Options: [defaults in brackets after descriptions] sl@0: Configuration: sl@0: --cache-file=FILE cache test results in FILE sl@0: --help print this message sl@0: --no-create do not create output files sl@0: --quiet, --silent do not print \`checking...' messages sl@0: --version print the version of autoconf that created configure sl@0: Directory and file names: sl@0: --prefix=PREFIX install architecture-independent files in PREFIX sl@0: [$ac_default_prefix] sl@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX sl@0: [same as prefix] sl@0: --bindir=DIR user executables in DIR [EPREFIX/bin] sl@0: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] sl@0: --libexecdir=DIR program executables in DIR [EPREFIX/libexec] sl@0: --datadir=DIR read-only architecture-independent data in DIR sl@0: [PREFIX/share] sl@0: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] sl@0: --sharedstatedir=DIR modifiable architecture-independent data in DIR sl@0: [PREFIX/com] sl@0: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] sl@0: --libdir=DIR object code libraries in DIR [EPREFIX/lib] sl@0: --includedir=DIR C header files in DIR [PREFIX/include] sl@0: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] sl@0: --infodir=DIR info documentation in DIR [PREFIX/info] sl@0: --mandir=DIR man documentation in DIR [PREFIX/man] sl@0: --srcdir=DIR find the sources in DIR [configure dir or ..] sl@0: --program-prefix=PREFIX prepend PREFIX to installed program names sl@0: --program-suffix=SUFFIX append SUFFIX to installed program names sl@0: --program-transform-name=PROGRAM sl@0: run sed PROGRAM on installed program names sl@0: EOF sl@0: cat << EOF sl@0: Host type: sl@0: --build=BUILD configure for building on BUILD [BUILD=HOST] sl@0: --host=HOST configure for HOST [guessed] sl@0: --target=TARGET configure for TARGET [TARGET=HOST] sl@0: Features and packages: sl@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) sl@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] sl@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] sl@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) sl@0: --x-includes=DIR X include files are in DIR sl@0: --x-libraries=DIR X library files are in DIR sl@0: EOF sl@0: if test -n "$ac_help"; then sl@0: echo "--enable and --with options recognized:$ac_help" sl@0: fi sl@0: exit 0 ;; sl@0: sl@0: -host | --host | --hos | --ho) sl@0: ac_prev=host ;; sl@0: -host=* | --host=* | --hos=* | --ho=*) sl@0: host="$ac_optarg" ;; sl@0: sl@0: -includedir | --includedir | --includedi | --included | --include \ sl@0: | --includ | --inclu | --incl | --inc) sl@0: ac_prev=includedir ;; sl@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ sl@0: | --includ=* | --inclu=* | --incl=* | --inc=*) sl@0: includedir="$ac_optarg" ;; sl@0: sl@0: -infodir | --infodir | --infodi | --infod | --info | --inf) sl@0: ac_prev=infodir ;; sl@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) sl@0: infodir="$ac_optarg" ;; sl@0: sl@0: -libdir | --libdir | --libdi | --libd) sl@0: ac_prev=libdir ;; sl@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) sl@0: libdir="$ac_optarg" ;; sl@0: sl@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ sl@0: | --libexe | --libex | --libe) sl@0: ac_prev=libexecdir ;; sl@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ sl@0: | --libexe=* | --libex=* | --libe=*) sl@0: libexecdir="$ac_optarg" ;; sl@0: sl@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ sl@0: | --localstate | --localstat | --localsta | --localst \ sl@0: | --locals | --local | --loca | --loc | --lo) sl@0: ac_prev=localstatedir ;; sl@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ sl@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ sl@0: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) sl@0: localstatedir="$ac_optarg" ;; sl@0: sl@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) sl@0: ac_prev=mandir ;; sl@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) sl@0: mandir="$ac_optarg" ;; sl@0: sl@0: -nfp | --nfp | --nf) sl@0: # Obsolete; use --without-fp. sl@0: with_fp=no ;; sl@0: sl@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ sl@0: | --no-cr | --no-c) sl@0: no_create=yes ;; sl@0: sl@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ sl@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) sl@0: no_recursion=yes ;; sl@0: sl@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ sl@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ sl@0: | --oldin | --oldi | --old | --ol | --o) sl@0: ac_prev=oldincludedir ;; sl@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ sl@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ sl@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) sl@0: oldincludedir="$ac_optarg" ;; sl@0: sl@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) sl@0: ac_prev=prefix ;; sl@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) sl@0: prefix="$ac_optarg" ;; sl@0: sl@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ sl@0: | --program-pre | --program-pr | --program-p) sl@0: ac_prev=program_prefix ;; sl@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ sl@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) sl@0: program_prefix="$ac_optarg" ;; sl@0: sl@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ sl@0: | --program-suf | --program-su | --program-s) sl@0: ac_prev=program_suffix ;; sl@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ sl@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) sl@0: program_suffix="$ac_optarg" ;; sl@0: sl@0: -program-transform-name | --program-transform-name \ sl@0: | --program-transform-nam | --program-transform-na \ sl@0: | --program-transform-n | --program-transform- \ sl@0: | --program-transform | --program-transfor \ sl@0: | --program-transfo | --program-transf \ sl@0: | --program-trans | --program-tran \ sl@0: | --progr-tra | --program-tr | --program-t) sl@0: ac_prev=program_transform_name ;; sl@0: -program-transform-name=* | --program-transform-name=* \ sl@0: | --program-transform-nam=* | --program-transform-na=* \ sl@0: | --program-transform-n=* | --program-transform-=* \ sl@0: | --program-transform=* | --program-transfor=* \ sl@0: | --program-transfo=* | --program-transf=* \ sl@0: | --program-trans=* | --program-tran=* \ sl@0: | --progr-tra=* | --program-tr=* | --program-t=*) sl@0: program_transform_name="$ac_optarg" ;; sl@0: sl@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ sl@0: | -silent | --silent | --silen | --sile | --sil) sl@0: silent=yes ;; sl@0: sl@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) sl@0: ac_prev=sbindir ;; sl@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ sl@0: | --sbi=* | --sb=*) sl@0: sbindir="$ac_optarg" ;; sl@0: sl@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ sl@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ sl@0: | --sharedst | --shareds | --shared | --share | --shar \ sl@0: | --sha | --sh) sl@0: ac_prev=sharedstatedir ;; sl@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ sl@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ sl@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ sl@0: | --sha=* | --sh=*) sl@0: sharedstatedir="$ac_optarg" ;; sl@0: sl@0: -site | --site | --sit) sl@0: ac_prev=site ;; sl@0: -site=* | --site=* | --sit=*) sl@0: site="$ac_optarg" ;; sl@0: sl@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) sl@0: ac_prev=srcdir ;; sl@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) sl@0: srcdir="$ac_optarg" ;; sl@0: sl@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ sl@0: | --syscon | --sysco | --sysc | --sys | --sy) sl@0: ac_prev=sysconfdir ;; sl@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ sl@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sl@0: sysconfdir="$ac_optarg" ;; sl@0: sl@0: -target | --target | --targe | --targ | --tar | --ta | --t) sl@0: ac_prev=target ;; sl@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) sl@0: target="$ac_optarg" ;; sl@0: sl@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) sl@0: verbose=yes ;; sl@0: sl@0: -version | --version | --versio | --versi | --vers) sl@0: echo "configure generated by autoconf version 2.13" sl@0: exit 0 ;; sl@0: sl@0: -with-* | --with-*) sl@0: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` sl@0: # Reject names that are not valid shell variable names. sl@0: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then sl@0: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } sl@0: fi sl@0: ac_package=`echo $ac_package| sed 's/-/_/g'` sl@0: case "$ac_option" in sl@0: *=*) ;; sl@0: *) ac_optarg=yes ;; sl@0: esac sl@0: eval "with_${ac_package}='$ac_optarg'" ;; sl@0: sl@0: -without-* | --without-*) sl@0: ac_package=`echo $ac_option|sed -e 's/-*without-//'` sl@0: # Reject names that are not valid shell variable names. sl@0: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then sl@0: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } sl@0: fi sl@0: ac_package=`echo $ac_package| sed 's/-/_/g'` sl@0: eval "with_${ac_package}=no" ;; sl@0: sl@0: --x) sl@0: # Obsolete; use --with-x. sl@0: with_x=yes ;; sl@0: sl@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ sl@0: | --x-incl | --x-inc | --x-in | --x-i) sl@0: ac_prev=x_includes ;; sl@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ sl@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) sl@0: x_includes="$ac_optarg" ;; sl@0: sl@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ sl@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) sl@0: ac_prev=x_libraries ;; sl@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ sl@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) sl@0: x_libraries="$ac_optarg" ;; sl@0: sl@0: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } sl@0: ;; sl@0: sl@0: *) sl@0: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then sl@0: echo "configure: warning: $ac_option: invalid host type" 1>&2 sl@0: fi sl@0: if test "x$nonopt" != xNONE; then sl@0: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } sl@0: fi sl@0: nonopt="$ac_option" sl@0: ;; sl@0: sl@0: esac sl@0: done sl@0: sl@0: if test -n "$ac_prev"; then sl@0: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } sl@0: fi sl@0: sl@0: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 sl@0: sl@0: # File descriptor usage: sl@0: # 0 standard input sl@0: # 1 file creation sl@0: # 2 errors and warnings sl@0: # 3 some systems may open it to /dev/tty sl@0: # 4 used on the Kubota Titan sl@0: # 6 checking for... messages and results sl@0: # 5 compiler messages saved in config.log sl@0: if test "$silent" = yes; then sl@0: exec 6>/dev/null sl@0: else sl@0: exec 6>&1 sl@0: fi sl@0: exec 5>./config.log sl@0: sl@0: echo "\ sl@0: This file contains any messages produced by compilers while sl@0: running configure, to aid debugging if configure makes a mistake. sl@0: " 1>&5 sl@0: sl@0: # Strip out --no-create and --no-recursion so they do not pile up. sl@0: # Also quote any args containing shell metacharacters. sl@0: ac_configure_args= sl@0: for ac_arg sl@0: do sl@0: case "$ac_arg" in sl@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ sl@0: | --no-cr | --no-c) ;; sl@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ sl@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; sl@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) sl@0: ac_configure_args="$ac_configure_args '$ac_arg'" ;; sl@0: *) ac_configure_args="$ac_configure_args $ac_arg" ;; sl@0: esac sl@0: done sl@0: sl@0: # NLS nuisances. sl@0: # Only set these to C if already set. These must not be set unconditionally sl@0: # because not all systems understand e.g. LANG=C (notably SCO). sl@0: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! sl@0: # Non-C LC_CTYPE values break the ctype check. sl@0: if test "${LANG+set}" = set; then LANG=C; export LANG; fi sl@0: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi sl@0: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi sl@0: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi sl@0: sl@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. sl@0: rm -rf conftest* confdefs.h sl@0: # AIX cpp loses on an empty file, so make sure it contains at least a newline. sl@0: echo > confdefs.h sl@0: sl@0: # A filename unique to this package, relative to the directory that sl@0: # configure is in, which we can look for to find out if srcdir is correct. sl@0: ac_unique_file=../generic/tcl.h sl@0: sl@0: # Find the source files, if location was not specified. sl@0: if test -z "$srcdir"; then sl@0: ac_srcdir_defaulted=yes sl@0: # Try the directory containing this script, then its parent. sl@0: ac_prog=$0 sl@0: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` sl@0: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. sl@0: srcdir=$ac_confdir sl@0: if test ! -r $srcdir/$ac_unique_file; then sl@0: srcdir=.. sl@0: fi sl@0: else sl@0: ac_srcdir_defaulted=no sl@0: fi sl@0: if test ! -r $srcdir/$ac_unique_file; then sl@0: if test "$ac_srcdir_defaulted" = yes; then sl@0: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } sl@0: else sl@0: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } sl@0: fi sl@0: fi sl@0: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` sl@0: sl@0: # Prefer explicitly selected file to automatically selected ones. sl@0: if test -z "$CONFIG_SITE"; then sl@0: if test "x$prefix" != xNONE; then sl@0: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" sl@0: else sl@0: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" sl@0: fi sl@0: fi sl@0: for ac_site_file in $CONFIG_SITE; do sl@0: if test -r "$ac_site_file"; then sl@0: echo "loading site script $ac_site_file" sl@0: . "$ac_site_file" sl@0: fi sl@0: done sl@0: sl@0: if test -r "$cache_file"; then sl@0: echo "loading cache $cache_file" sl@0: . $cache_file sl@0: else sl@0: echo "creating cache $cache_file" sl@0: > $cache_file sl@0: fi sl@0: sl@0: ac_ext=c sl@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. sl@0: ac_cpp='$CPP $CPPFLAGS' sl@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' sl@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' sl@0: cross_compiling=$ac_cv_prog_cc_cross sl@0: sl@0: ac_exeext= sl@0: ac_objext=o sl@0: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then sl@0: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. sl@0: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then sl@0: ac_n= ac_c=' sl@0: ' ac_t=' ' sl@0: else sl@0: ac_n=-n ac_c= ac_t= sl@0: fi sl@0: else sl@0: ac_n= ac_c='\c' ac_t= sl@0: fi sl@0: sl@0: sl@0: sl@0: sl@0: TCL_VERSION=8.4 sl@0: TCL_MAJOR_VERSION=8 sl@0: TCL_MINOR_VERSION=4 sl@0: TCL_PATCH_LEVEL=".15" sl@0: VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION sl@0: sl@0: TCL_DDE_VERSION=1.2 sl@0: TCL_DDE_MAJOR_VERSION=1 sl@0: TCL_DDE_MINOR_VERSION=2 sl@0: DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION sl@0: sl@0: TCL_REG_VERSION=1.1 sl@0: TCL_REG_MAJOR_VERSION=1 sl@0: TCL_REG_MINOR_VERSION=1 sl@0: REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION sl@0: sl@0: #------------------------------------------------------------------------ sl@0: # Handle the --prefix=... option sl@0: #------------------------------------------------------------------------ sl@0: sl@0: if test "${prefix}" = "NONE"; then sl@0: prefix=/usr/local sl@0: fi sl@0: if test "${exec_prefix}" = "NONE"; then sl@0: exec_prefix=$prefix sl@0: fi sl@0: # libdir must be a fully qualified path (not ${exec_prefix}/lib) sl@0: eval libdir="$libdir" sl@0: sl@0: #------------------------------------------------------------------------ sl@0: # Standard compiler checks sl@0: #------------------------------------------------------------------------ sl@0: sl@0: # If the user did not set CFLAGS, set it now to keep sl@0: # the AC_PROG_CC macro from adding "-g -O2". sl@0: if test "${CFLAGS+set}" != "set" ; then sl@0: CFLAGS="" sl@0: fi sl@0: sl@0: # Extract the first word of "gcc", so it can be a program name with args. sl@0: set dummy gcc; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:577: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$CC"; then sl@0: ac_cv_prog_CC="$CC" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_CC="gcc" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: fi sl@0: fi sl@0: CC="$ac_cv_prog_CC" sl@0: if test -n "$CC"; then sl@0: echo "$ac_t""$CC" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: if test -z "$CC"; then sl@0: # Extract the first word of "cc", so it can be a program name with args. sl@0: set dummy cc; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:607: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$CC"; then sl@0: ac_cv_prog_CC="$CC" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_prog_rejected=no sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then sl@0: ac_prog_rejected=yes sl@0: continue sl@0: fi sl@0: ac_cv_prog_CC="cc" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: if test $ac_prog_rejected = yes; then sl@0: # We found a bogon in the path, so make sure we never use it. sl@0: set dummy $ac_cv_prog_CC sl@0: shift sl@0: if test $# -gt 0; then sl@0: # We chose a different compiler from the bogus one. sl@0: # However, it has the same basename, so the bogon will be chosen sl@0: # first if we set CC to just the basename; use the full file name. sl@0: shift sl@0: set dummy "$ac_dir/$ac_word" "$@" sl@0: shift sl@0: ac_cv_prog_CC="$@" sl@0: fi sl@0: fi sl@0: fi sl@0: fi sl@0: CC="$ac_cv_prog_CC" sl@0: if test -n "$CC"; then sl@0: echo "$ac_t""$CC" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: if test -z "$CC"; then sl@0: case "`uname -s`" in sl@0: *win32* | *WIN32*) sl@0: # Extract the first word of "cl", so it can be a program name with args. sl@0: set dummy cl; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:658: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$CC"; then sl@0: ac_cv_prog_CC="$CC" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_CC="cl" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: fi sl@0: fi sl@0: CC="$ac_cv_prog_CC" sl@0: if test -n "$CC"; then sl@0: echo "$ac_t""$CC" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: ;; sl@0: esac sl@0: fi sl@0: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } sl@0: fi sl@0: sl@0: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 sl@0: echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 sl@0: sl@0: ac_ext=c sl@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. sl@0: ac_cpp='$CPP $CPPFLAGS' sl@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' sl@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' sl@0: cross_compiling=$ac_cv_prog_cc_cross sl@0: sl@0: cat > conftest.$ac_ext << EOF sl@0: sl@0: #line 701 "configure" sl@0: #include "confdefs.h" sl@0: sl@0: main(){return(0);} sl@0: EOF sl@0: if { (eval echo configure:706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then sl@0: ac_cv_prog_cc_works=yes sl@0: # If we can't run a trivial program, we are probably using a cross compiler. sl@0: if (./conftest; exit) 2>/dev/null; then sl@0: ac_cv_prog_cc_cross=no sl@0: else sl@0: ac_cv_prog_cc_cross=yes sl@0: fi sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: ac_cv_prog_cc_works=no sl@0: fi sl@0: rm -fr conftest* sl@0: ac_ext=c sl@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. sl@0: ac_cpp='$CPP $CPPFLAGS' sl@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' sl@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' sl@0: cross_compiling=$ac_cv_prog_cc_cross sl@0: sl@0: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 sl@0: if test $ac_cv_prog_cc_works = no; then sl@0: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } sl@0: fi sl@0: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 sl@0: echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 sl@0: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 sl@0: cross_compiling=$ac_cv_prog_cc_cross sl@0: sl@0: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 sl@0: echo "configure:737: checking whether we are using GNU C" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then sl@0: ac_cv_prog_gcc=yes sl@0: else sl@0: ac_cv_prog_gcc=no sl@0: fi sl@0: fi sl@0: sl@0: echo "$ac_t""$ac_cv_prog_gcc" 1>&6 sl@0: sl@0: if test $ac_cv_prog_gcc = yes; then sl@0: GCC=yes sl@0: else sl@0: GCC= sl@0: fi sl@0: sl@0: ac_test_CFLAGS="${CFLAGS+set}" sl@0: ac_save_CFLAGS="$CFLAGS" sl@0: CFLAGS= sl@0: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 sl@0: echo "configure:765: checking whether ${CC-cc} accepts -g" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: echo 'void f(){}' > conftest.c sl@0: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then sl@0: ac_cv_prog_cc_g=yes sl@0: else sl@0: ac_cv_prog_cc_g=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 sl@0: if test "$ac_test_CFLAGS" = set; then sl@0: CFLAGS="$ac_save_CFLAGS" sl@0: elif test $ac_cv_prog_cc_g = yes; then sl@0: if test "$GCC" = yes; then sl@0: CFLAGS="-g -O2" sl@0: else sl@0: CFLAGS="-g" sl@0: fi sl@0: else sl@0: if test "$GCC" = yes; then sl@0: CFLAGS="-O2" sl@0: else sl@0: CFLAGS= sl@0: fi sl@0: fi sl@0: sl@0: sl@0: # To properly support cross-compilation, one would sl@0: # need to use these tool checks instead of sl@0: # the ones below and reconfigure with sl@0: # autoconf 2.50. You can also just set sl@0: # the CC, AR, RANLIB, and RC environment sl@0: # variables if you want to cross compile. sl@0: sl@0: if test "${GCC}" = "yes" ; then sl@0: # Extract the first word of "ar", so it can be a program name with args. sl@0: set dummy ar; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:808: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$AR"; then sl@0: ac_cv_prog_AR="$AR" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_AR="ar" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: fi sl@0: fi sl@0: AR="$ac_cv_prog_AR" sl@0: if test -n "$AR"; then sl@0: echo "$ac_t""$AR" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: # Extract the first word of "ranlib", so it can be a program name with args. sl@0: set dummy ranlib; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:837: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$RANLIB"; then sl@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_RANLIB="ranlib" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: fi sl@0: fi sl@0: RANLIB="$ac_cv_prog_RANLIB" sl@0: if test -n "$RANLIB"; then sl@0: echo "$ac_t""$RANLIB" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: # Extract the first word of "windres", so it can be a program name with args. sl@0: set dummy windres; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:866: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$RC"; then sl@0: ac_cv_prog_RC="$RC" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_RC="windres" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: fi sl@0: fi sl@0: RC="$ac_cv_prog_RC" sl@0: if test -n "$RC"; then sl@0: echo "$ac_t""$RC" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: sl@0: if test "${AR}" = "" ; then sl@0: { echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; } sl@0: fi sl@0: if test "${RANLIB}" = "" ; then sl@0: { echo "configure: error: Required archive index tool 'ranlib' not found on PATH." 1>&2; exit 1; } sl@0: fi sl@0: if test "${RC}" = "" ; then sl@0: { echo "configure: error: Required resource tool 'windres' not found on PATH." 1>&2; exit 1; } sl@0: fi sl@0: fi sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Checks to see if the make progeam sets the $MAKE variable. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 sl@0: echo "configure:909: checking whether ${MAKE-make} sets \${MAKE}" >&5 sl@0: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` sl@0: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftestmake <<\EOF sl@0: all: sl@0: @echo 'ac_maketemp="${MAKE}"' sl@0: EOF sl@0: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. sl@0: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` sl@0: if test -n "$ac_maketemp"; then sl@0: eval ac_cv_prog_make_${ac_make}_set=yes sl@0: else sl@0: eval ac_cv_prog_make_${ac_make}_set=no sl@0: fi sl@0: rm -f conftestmake sl@0: fi sl@0: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then sl@0: echo "$ac_t""yes" 1>&6 sl@0: SET_MAKE= sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: SET_MAKE="MAKE=${MAKE-make}" sl@0: fi sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Perform additinal compiler tests. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 sl@0: echo "configure:941: checking for Cygwin environment" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: ac_cv_cygwin=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: ac_cv_cygwin=no sl@0: fi sl@0: rm -f conftest* sl@0: rm -f conftest* sl@0: fi sl@0: sl@0: echo "$ac_t""$ac_cv_cygwin" 1>&6 sl@0: CYGWIN= sl@0: test "$ac_cv_cygwin" = yes && CYGWIN=yes sl@0: sl@0: if test "$ac_cv_cygwin" = "yes" ; then sl@0: { echo "configure: error: Compiling under Cygwin is not currently supported. sl@0: A maintainer for the Cygwin port of Tcl/Tk is needed. See the README sl@0: file for information about building with Mingw." 1>&2; exit 1; } sl@0: fi sl@0: sl@0: sl@0: echo $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6 sl@0: echo "configure:982: checking for SEH support in compiler" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test "$cross_compiling" = yes; then sl@0: tcl_cv_seh=no sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: #undef WIN32_LEAN_AND_MEAN sl@0: sl@0: int main(int argc, char** argv) { sl@0: int a, b = 0; sl@0: __try { sl@0: a = 666 / b; sl@0: } sl@0: __except (EXCEPTION_EXECUTE_HANDLER) { sl@0: return 0; sl@0: } sl@0: return 1; sl@0: } sl@0: sl@0: EOF sl@0: if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null sl@0: then sl@0: tcl_cv_seh=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -fr conftest* sl@0: tcl_cv_seh=no sl@0: fi sl@0: rm -fr conftest* sl@0: fi sl@0: sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_seh" 1>&6 sl@0: if test "$tcl_cv_seh" = "no" ; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define HAVE_NO_SEH 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: # sl@0: # Check to see if the excpt.h include file provided contains the sl@0: # definition for EXCEPTION_DISPOSITION; if not, which is the case sl@0: # with Cygwin's version as of 2002-04-10, define it to be int, sl@0: # sufficient for getting the current code to work. sl@0: # sl@0: echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6 sl@0: echo "configure:1039: checking for EXCEPTION_DISPOSITION support in include files" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: #undef WIN32_LEAN_AND_MEAN sl@0: sl@0: int main() { sl@0: sl@0: EXCEPTION_DISPOSITION x; sl@0: sl@0: ; return 0; } sl@0: EOF sl@0: if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: tcl_cv_eh_disposition=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: tcl_cv_eh_disposition=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_eh_disposition" 1>&6 sl@0: if test "$tcl_cv_eh_disposition" = "no" ; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define EXCEPTION_DISPOSITION int sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: sl@0: # Check to see if the winsock2.h include file provided contains sl@0: # typedefs like LPFN_ACCEPT and friends. sl@0: # sl@0: echo $ac_n "checking for LPFN_ACCEPT support in winsock2.h""... $ac_c" 1>&6 sl@0: echo "configure:1083: checking for LPFN_ACCEPT support in winsock2.h" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_lpfn_decls'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: #undef WIN32_LEAN_AND_MEAN sl@0: #include sl@0: sl@0: int main() { sl@0: sl@0: LPFN_ACCEPT accept; sl@0: sl@0: ; return 0; } sl@0: EOF sl@0: if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: tcl_cv_lpfn_decls=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: tcl_cv_lpfn_decls=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_lpfn_decls" 1>&6 sl@0: if test "$tcl_cv_lpfn_decls" = "no" ; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define HAVE_NO_LPFN_DECLS 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: # Check to see if winnt.h defines CHAR, SHORT, and LONG sl@0: # even if VOID has already been #defined. The win32api sl@0: # used by mingw and cygwin is known to do this. sl@0: sl@0: echo $ac_n "checking for winnt.h that ignores VOID define""... $ac_c" 1>&6 sl@0: echo "configure:1128: checking for winnt.h that ignores VOID define" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_winnt_ignore_void'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: #undef WIN32_LEAN_AND_MEAN sl@0: sl@0: int main() { sl@0: sl@0: CHAR c; sl@0: SHORT s; sl@0: LONG l; sl@0: sl@0: ; return 0; } sl@0: EOF sl@0: if { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: tcl_cv_winnt_ignore_void=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: tcl_cv_winnt_ignore_void=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_winnt_ignore_void" 1>&6 sl@0: if test "$tcl_cv_winnt_ignore_void" = "yes" ; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define HAVE_WINNT_IGNORE_VOID 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: # Check to see if malloc.h is missing the alloca function sl@0: # declaration. This is known to be a problem with Mingw. sl@0: # If we compiled without the function declaration, it sl@0: # would work but we would get a warning message from gcc. sl@0: # If we add the function declaration ourselves, it sl@0: # would not compile correctly because the _alloca sl@0: # function expects the argument to be passed in a sl@0: # register and not on the stack. Instead, we just sl@0: # call it from inline asm code. sl@0: sl@0: echo $ac_n "checking for alloca declaration in malloc.h""... $ac_c" 1>&6 sl@0: echo "configure:1181: checking for alloca declaration in malloc.h" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_malloc_decl_alloca'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: sl@0: int main() { sl@0: sl@0: size_t arg = 0; sl@0: void* ptr; sl@0: ptr = alloca; sl@0: ptr = alloca(arg); sl@0: sl@0: ; return 0; } sl@0: EOF sl@0: if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: tcl_cv_malloc_decl_alloca=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: tcl_cv_malloc_decl_alloca=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_malloc_decl_alloca" 1>&6 sl@0: if test "$tcl_cv_malloc_decl_alloca" = "no" && sl@0: test "${GCC}" = "yes" ; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define HAVE_ALLOCA_GCC_INLINE 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: # See if the compiler supports casting to a union type. sl@0: # This is used to stop gcc from printing a compiler sl@0: # warning when initializing a union member. sl@0: sl@0: echo $ac_n "checking for cast to union support""... $ac_c" 1>&6 sl@0: echo "configure:1227: checking for cast to union support" >&5 sl@0: if eval "test \"`echo '$''{'tcl_cv_cast_to_union'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: tcl_cv_cast_to_union=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: tcl_cv_cast_to_union=no sl@0: fi sl@0: rm -f conftest* sl@0: sl@0: fi sl@0: sl@0: echo "$ac_t""$tcl_cv_cast_to_union" 1>&6 sl@0: if test "$tcl_cv_cast_to_union" = "yes"; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define HAVE_CAST_TO_UNION 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Determines the correct binary file extension (.o, .obj, .exe etc.) sl@0: #-------------------------------------------------------------------- sl@0: sl@0: echo $ac_n "checking for object suffix""... $ac_c" 1>&6 sl@0: echo "configure:1269: checking for object suffix" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: rm -f conftest* sl@0: echo 'int i = 1;' > conftest.$ac_ext sl@0: if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then sl@0: for ac_file in conftest.*; do sl@0: case $ac_file in sl@0: *.c) ;; sl@0: *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; sl@0: esac sl@0: done sl@0: else sl@0: { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } sl@0: fi sl@0: rm -f conftest* sl@0: fi sl@0: sl@0: echo "$ac_t""$ac_cv_objext" 1>&6 sl@0: OBJEXT=$ac_cv_objext sl@0: ac_objext=$ac_cv_objext sl@0: sl@0: echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 sl@0: echo "configure:1293: checking for mingw32 environment" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then sl@0: rm -rf conftest* sl@0: ac_cv_mingw32=yes sl@0: else sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: ac_cv_mingw32=no sl@0: fi sl@0: rm -f conftest* sl@0: rm -f conftest* sl@0: fi sl@0: sl@0: echo "$ac_t""$ac_cv_mingw32" 1>&6 sl@0: MINGW32= sl@0: test "$ac_cv_mingw32" = yes && MINGW32=yes sl@0: sl@0: sl@0: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 sl@0: echo "configure:1324: checking for executable suffix" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test "$CYGWIN" = yes || test "$MINGW32" = yes; then sl@0: ac_cv_exeext=.exe sl@0: else sl@0: rm -f conftest* sl@0: echo 'int main () { return 0; }' > conftest.$ac_ext sl@0: ac_cv_exeext= sl@0: if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then sl@0: for file in conftest.*; do sl@0: case $file in sl@0: *.c | *.o | *.obj) ;; sl@0: *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; sl@0: esac sl@0: done sl@0: else sl@0: { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } sl@0: fi sl@0: rm -f conftest* sl@0: test x"${ac_cv_exeext}" = x && ac_cv_exeext=no sl@0: fi sl@0: fi sl@0: sl@0: EXEEXT="" sl@0: test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} sl@0: echo "$ac_t""${ac_cv_exeext}" 1>&6 sl@0: ac_exeext=$EXEEXT sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Check whether --enable-threads or --disable-threads was given. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: sl@0: echo $ac_n "checking for building with threads""... $ac_c" 1>&6 sl@0: echo "configure:1361: checking for building with threads" >&5 sl@0: # Check whether --enable-threads or --disable-threads was given. sl@0: if test "${enable_threads+set}" = set; then sl@0: enableval="$enable_threads" sl@0: tcl_ok=$enableval sl@0: else sl@0: tcl_ok=no sl@0: fi sl@0: sl@0: sl@0: if test "$tcl_ok" = "yes"; then sl@0: echo "$ac_t""yes" 1>&6 sl@0: TCL_THREADS=1 sl@0: cat >> confdefs.h <<\EOF sl@0: #define TCL_THREADS 1 sl@0: EOF sl@0: sl@0: # USE_THREAD_ALLOC tells us to try the special thread-based sl@0: # allocator that significantly reduces lock contention sl@0: cat >> confdefs.h <<\EOF sl@0: #define USE_THREAD_ALLOC 1 sl@0: EOF sl@0: sl@0: else sl@0: TCL_THREADS=0 sl@0: echo "$ac_t""no (default)" 1>&6 sl@0: fi sl@0: sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # The statements below define a collection of symbols related to sl@0: # building libtcl as a shared library instead of a static library. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: sl@0: echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 sl@0: echo "configure:1398: checking how to build libraries" >&5 sl@0: # Check whether --enable-shared or --disable-shared was given. sl@0: if test "${enable_shared+set}" = set; then sl@0: enableval="$enable_shared" sl@0: tcl_ok=$enableval sl@0: else sl@0: tcl_ok=yes sl@0: fi sl@0: sl@0: sl@0: if test "${enable_shared+set}" = set; then sl@0: enableval="$enable_shared" sl@0: tcl_ok=$enableval sl@0: else sl@0: tcl_ok=yes sl@0: fi sl@0: sl@0: if test "$tcl_ok" = "yes" ; then sl@0: echo "$ac_t""shared" 1>&6 sl@0: SHARED_BUILD=1 sl@0: else sl@0: echo "$ac_t""static" 1>&6 sl@0: SHARED_BUILD=0 sl@0: cat >> confdefs.h <<\EOF sl@0: #define STATIC_BUILD 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # The statements below define a collection of compile flags. This sl@0: # macro depends on the value of SHARED_BUILD, and should be called sl@0: # after SC_ENABLE_SHARED checks the configure switches. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: sl@0: sl@0: # Step 0: Enable 64 bit support? sl@0: sl@0: echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6 sl@0: echo "configure:1439: checking if 64bit support is requested" >&5 sl@0: # Check whether --enable-64bit or --disable-64bit was given. sl@0: if test "${enable_64bit+set}" = set; then sl@0: enableval="$enable_64bit" sl@0: do64bit=$enableval sl@0: else sl@0: do64bit=no sl@0: fi sl@0: sl@0: echo "$ac_t""$do64bit" 1>&6 sl@0: sl@0: # Set some defaults (may get changed below) sl@0: EXTRA_CFLAGS="" sl@0: sl@0: # Extract the first word of "cygpath", so it can be a program name with args. sl@0: set dummy cygpath; ac_word=$2 sl@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 sl@0: echo "configure:1456: checking for $ac_word" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: if test -n "$CYGPATH"; then sl@0: ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. sl@0: else sl@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" sl@0: ac_dummy="$PATH" sl@0: for ac_dir in $ac_dummy; do sl@0: test -z "$ac_dir" && ac_dir=. sl@0: if test -f $ac_dir/$ac_word; then sl@0: ac_cv_prog_CYGPATH="cygpath -w" sl@0: break sl@0: fi sl@0: done sl@0: IFS="$ac_save_ifs" sl@0: test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" sl@0: fi sl@0: fi sl@0: CYGPATH="$ac_cv_prog_CYGPATH" sl@0: if test -n "$CYGPATH"; then sl@0: echo "$ac_t""$CYGPATH" 1>&6 sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: fi sl@0: sl@0: sl@0: SHLIB_SUFFIX=".dll" sl@0: sl@0: # MACHINE is IX86 for LINK, but this is used by the manifest, sl@0: # which requires x86|amd64|ia64. sl@0: MACHINE="X86" sl@0: sl@0: # Check for a bug in gcc's windres that causes the sl@0: # compile to fail when a Windows native path is sl@0: # passed into windres. The mingw toolchain requires sl@0: # Windows native paths while Cygwin should work sl@0: # with both. Avoid the bug by passing a POSIX sl@0: # path when using the Cygwin toolchain. sl@0: sl@0: if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then sl@0: conftest=/tmp/conftest.rc sl@0: echo "STRINGTABLE BEGIN" > $conftest sl@0: echo "101 \"name\"" >> $conftest sl@0: echo "END" >> $conftest sl@0: sl@0: echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6 sl@0: echo "configure:1504: checking for Windows native path bug in windres" >&5 sl@0: cyg_conftest=`$CYGPATH $conftest` sl@0: if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then sl@0: echo "$ac_t""no" 1>&6 sl@0: else sl@0: echo "$ac_t""yes" 1>&6 sl@0: CYGPATH=echo sl@0: fi sl@0: conftest= sl@0: cyg_conftest= sl@0: fi sl@0: sl@0: if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then sl@0: DEPARG='"$<"' sl@0: else sl@0: DEPARG='"$(shell $(CYGPATH) $<)"' sl@0: fi sl@0: sl@0: # set various compiler flags depending on whether we are using gcc or cl sl@0: sl@0: echo $ac_n "checking compiler flags""... $ac_c" 1>&6 sl@0: echo "configure:1525: checking compiler flags" >&5 sl@0: if test "${GCC}" = "yes" ; then sl@0: if test "$do64bit" != "no" ; then sl@0: echo "configure: warning: "64bit mode not supported with GCC on Windows"" 1>&2 sl@0: fi sl@0: SHLIB_LD="" sl@0: SHLIB_LD_LIBS="" sl@0: LIBS="" sl@0: LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32" sl@0: STLIB_LD='${AR} cr' sl@0: RC_OUT=-o sl@0: RC_TYPE= sl@0: RC_INCLUDE=--include sl@0: RC_DEFINE=--define sl@0: RES=res.o sl@0: MAKE_LIB="\${STLIB_LD} \$@" sl@0: POST_MAKE_LIB="\${RANLIB} \$@" sl@0: MAKE_EXE="\${CC} -o \$@" sl@0: LIBPREFIX="lib" sl@0: sl@0: #if test "$ac_cv_cygwin" = "yes"; then sl@0: # extra_cflags="-mno-cygwin" sl@0: # extra_ldflags="-mno-cygwin" sl@0: #else sl@0: # extra_cflags="" sl@0: # extra_ldflags="" sl@0: #fi sl@0: sl@0: if test "$ac_cv_cygwin" = "yes"; then sl@0: touch ac$$.c sl@0: if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then sl@0: case "$extra_cflags" in sl@0: *-mwin32*) ;; sl@0: *) extra_cflags="-mwin32 $extra_cflags" ;; sl@0: esac sl@0: case "$extra_ldflags" in sl@0: *-mwin32*) ;; sl@0: *) extra_ldflags="-mwin32 $extra_ldflags" ;; sl@0: esac sl@0: fi sl@0: rm -f ac$$.o ac$$.c sl@0: else sl@0: extra_cflags='' sl@0: extra_ldflags='' sl@0: fi sl@0: sl@0: if test "${SHARED_BUILD}" = "0" ; then sl@0: # static sl@0: echo "$ac_t""using static flags" 1>&6 sl@0: runtime= sl@0: MAKE_DLL="echo " sl@0: LIBSUFFIX="s\${DBGX}.a" sl@0: LIBFLAGSUFFIX="s\${DBGX}" sl@0: LIBRARIES="\${STATIC_LIBRARIES}" sl@0: EXESUFFIX="s\${DBGX}.exe" sl@0: else sl@0: # dynamic sl@0: echo "$ac_t""using shared flags" 1>&6 sl@0: sl@0: # ad-hoc check to see if CC supports -shared. sl@0: if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then sl@0: { echo "configure: error: ${CC} does not support the -shared option. sl@0: You will need to upgrade to a newer version of the toolchain." 1>&2; exit 1; } sl@0: fi sl@0: sl@0: runtime= sl@0: # Link with gcc since ld does not link to default libs like sl@0: # -luser32 and -lmsvcrt by default. Make sure CFLAGS is sl@0: # included so -mno-cygwin passed the correct libs to the linker. sl@0: SHLIB_LD='${CC} -shared ${CFLAGS}' sl@0: SHLIB_LD_LIBS='${LIBS}' sl@0: # Add SHLIB_LD_LIBS to the Make rule, not here. sl@0: MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \ sl@0: -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)" sl@0: sl@0: LIBSUFFIX="\${DBGX}.a" sl@0: LIBFLAGSUFFIX="\${DBGX}" sl@0: EXESUFFIX="\${DBGX}.exe" sl@0: LIBRARIES="\${SHARED_LIBRARIES}" sl@0: fi sl@0: # DLLSUFFIX is separate because it is the building block for sl@0: # users of tclConfig.sh that may build shared or static. sl@0: DLLSUFFIX="\${DBGX}.dll" sl@0: SHLIB_SUFFIX=.dll sl@0: sl@0: EXTRA_CFLAGS="${extra_cflags}" sl@0: sl@0: CFLAGS_DEBUG=-g sl@0: CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" sl@0: CFLAGS_WARNING="-Wall -Wconversion" sl@0: LDFLAGS_DEBUG= sl@0: LDFLAGS_OPTIMIZE= sl@0: sl@0: # Specify the CC output file names based on the target name sl@0: CC_OBJNAME="-o \$@" sl@0: CC_EXENAME="-o \$@" sl@0: sl@0: # Specify linker flags depending on the type of app being sl@0: # built -- Console vs. Window. sl@0: # sl@0: # ORIGINAL COMMENT: sl@0: # We need to pass -e _WinMain@16 so that ld will use sl@0: # WinMain() instead of main() as the entry point. We can't sl@0: # use autoconf to check for this case since it would need sl@0: # to run an executable and that does not work when sl@0: # cross compiling. Remove this -e workaround once we sl@0: # require a gcc that does not have this bug. sl@0: # sl@0: # MK NOTE: Tk should use a different mechanism. This causes sl@0: # interesting problems, such as wish dying at startup. sl@0: #LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}" sl@0: LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}" sl@0: LDFLAGS_WINDOW="-mwindows ${extra_ldflags}" sl@0: else sl@0: if test "${SHARED_BUILD}" = "0" ; then sl@0: # static sl@0: echo "$ac_t""using static flags" 1>&6 sl@0: runtime=-MT sl@0: MAKE_DLL="echo " sl@0: LIBSUFFIX="s\${DBGX}.lib" sl@0: LIBFLAGSUFFIX="s\${DBGX}" sl@0: LIBRARIES="\${STATIC_LIBRARIES}" sl@0: EXESUFFIX="s\${DBGX}.exe" sl@0: SHLIB_LD_LIBS="" sl@0: else sl@0: # dynamic sl@0: echo "$ac_t""using shared flags" 1>&6 sl@0: runtime=-MD sl@0: # Add SHLIB_LD_LIBS to the Make rule, not here. sl@0: MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@" sl@0: LIBSUFFIX="\${DBGX}.lib" sl@0: LIBFLAGSUFFIX="\${DBGX}" sl@0: EXESUFFIX="\${DBGX}.exe" sl@0: LIBRARIES="\${SHARED_LIBRARIES}" sl@0: SHLIB_LD_LIBS='${LIBS}' sl@0: fi sl@0: # DLLSUFFIX is separate because it is the building block for sl@0: # users of tclConfig.sh that may build shared or static. sl@0: DLLSUFFIX="\${DBGX}.dll" sl@0: sl@0: # This is a 2-stage check to make sure we have the 64-bit SDK sl@0: # We have to know where the SDK is installed. sl@0: # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs sl@0: if test "$do64bit" != "no" ; then sl@0: if test "x${MSSDK}x" = "xx" ; then sl@0: MSSDK="C:/Progra~1/Microsoft Platform SDK" sl@0: fi sl@0: MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` sl@0: PATH64="" sl@0: case "$do64bit" in sl@0: amd64|x64|yes) sl@0: MACHINE="AMD64" ; # default to AMD64 64-bit build sl@0: PATH64="${MSSDK}/Bin/Win64/x86/AMD64" sl@0: ;; sl@0: ia64) sl@0: MACHINE="IA64" sl@0: PATH64="${MSSDK}/Bin/Win64" sl@0: ;; sl@0: esac sl@0: if test ! -d "${PATH64}" ; then sl@0: echo "configure: warning: Could not find 64-bit $MACHINE SDK to enable 64bit mode" 1>&2 sl@0: echo "configure: warning: Ensure latest Platform SDK is installed" 1>&2 sl@0: do64bit="no" sl@0: else sl@0: echo "$ac_t"" Using 64-bit $MACHINE mode" 1>&6 sl@0: fi sl@0: fi sl@0: sl@0: if test "$do64bit" != "no" ; then sl@0: # The space-based-path will work for the Makefile, but will sl@0: # not work if AC_TRY_COMPILE is called. sl@0: CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \ sl@0: -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" sl@0: RC="\"${MSSDK}/bin/rc.exe\"" sl@0: CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d" sl@0: # Do not use -O2 for Win64 - this has proved buggy in code gen. sl@0: CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}" sl@0: lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" sl@0: LINKBIN="\"${PATH64}/link.exe\"" sl@0: # Avoid 'unresolved external symbol __security_cookie' errors. sl@0: # c.f. http://support.microsoft.com/?id=894573 sl@0: LIBS="user32.lib advapi32.lib bufferoverflowU.lib" sl@0: else sl@0: RC="rc" sl@0: # -Od - no optimization sl@0: # -WX - warnings as errors sl@0: CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d" sl@0: # -O2 - create fast code (/Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy) sl@0: CFLAGS_OPTIMIZE="-nologo -O2 ${runtime}" sl@0: lflags="-nologo" sl@0: LINKBIN="link" sl@0: LIBS="user32.lib advapi32.lib" sl@0: fi sl@0: sl@0: LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib" sl@0: SHLIB_LD="${LINKBIN} -dll -incremental:no ${lflags}" sl@0: # link -lib only works when -lib is the first arg sl@0: STLIB_LD="${LINKBIN} -lib ${lflags}" sl@0: RC_OUT=-fo sl@0: RC_TYPE=-r sl@0: RC_INCLUDE=-i sl@0: RC_DEFINE=-d sl@0: RES=res sl@0: MAKE_LIB="\${STLIB_LD} -out:\$@" sl@0: POST_MAKE_LIB= sl@0: MAKE_EXE="\${CC} -Fe\$@" sl@0: LIBPREFIX="" sl@0: sl@0: EXTRA_CFLAGS="" sl@0: CFLAGS_WARNING="-W3" sl@0: LDFLAGS_DEBUG="-debug:full" sl@0: LDFLAGS_OPTIMIZE="-release" sl@0: sl@0: # Specify the CC output file names based on the target name sl@0: CC_OBJNAME="-Fo\$@" sl@0: CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\"" sl@0: sl@0: # Specify linker flags depending on the type of app being sl@0: # built -- Console vs. Window. sl@0: LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" sl@0: LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" sl@0: fi sl@0: sl@0: # DL_LIBS is empty, but then we match the Unix version sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Set the default compiler switches based on the --enable-symbols sl@0: # option. This macro depends on C flags, and should be called sl@0: # after SC_CONFIG_CFLAGS macro is called. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: sl@0: echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 sl@0: echo "configure:1763: checking for build with symbols" >&5 sl@0: # Check whether --enable-symbols or --disable-symbols was given. sl@0: if test "${enable_symbols+set}" = set; then sl@0: enableval="$enable_symbols" sl@0: tcl_ok=$enableval sl@0: else sl@0: tcl_ok=no sl@0: fi sl@0: sl@0: # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. sl@0: if test "$tcl_ok" = "no"; then sl@0: CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' sl@0: LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' sl@0: DBGX="" sl@0: echo "$ac_t""no" 1>&6 sl@0: else sl@0: CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' sl@0: LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' sl@0: DBGX=g sl@0: if test "$tcl_ok" = "yes"; then sl@0: echo "$ac_t""yes (standard debugging)" 1>&6 sl@0: fi sl@0: fi sl@0: sl@0: sl@0: sl@0: if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define TCL_MEM_DEBUG 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then sl@0: cat >> confdefs.h <<\EOF sl@0: #define TCL_COMPILE_DEBUG 1 sl@0: EOF sl@0: sl@0: cat >> confdefs.h <<\EOF sl@0: #define TCL_COMPILE_STATS 1 sl@0: EOF sl@0: sl@0: fi sl@0: sl@0: if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then sl@0: if test "$tcl_ok" = "all"; then sl@0: echo "$ac_t""enabled symbols mem compile debugging" 1>&6 sl@0: else sl@0: echo "$ac_t""enabled $tcl_ok debugging" 1>&6 sl@0: fi sl@0: fi sl@0: sl@0: sl@0: TCL_DBGX=${DBGX} sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # man2tcl needs this so that it can use errno.h sl@0: #-------------------------------------------------------------------- sl@0: sl@0: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 sl@0: echo "configure:1823: checking how to run the C preprocessor" >&5 sl@0: # On Suns, sometimes $CPP names a directory. sl@0: if test -n "$CPP" && test -d "$CPP"; then sl@0: CPP= sl@0: fi sl@0: if test -z "$CPP"; then sl@0: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: # This must be in double quotes, not single quotes, because CPP may get sl@0: # substituted into the Makefile and "${CC-cc}" will confuse make. sl@0: CPP="${CC-cc} -E" sl@0: # On the NeXT, cc -E runs the code through the compiler's parser, sl@0: # not just through cpp. sl@0: cat > conftest.$ac_ext < sl@0: Syntax Error sl@0: EOF sl@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" sl@0: { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } sl@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` sl@0: if test -z "$ac_err"; then sl@0: : sl@0: else sl@0: echo "$ac_err" >&5 sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: CPP="${CC-cc} -E -traditional-cpp" sl@0: cat > conftest.$ac_ext < sl@0: Syntax Error sl@0: EOF sl@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" sl@0: { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } sl@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` sl@0: if test -z "$ac_err"; then sl@0: : sl@0: else sl@0: echo "$ac_err" >&5 sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: CPP="${CC-cc} -nologo -E" sl@0: cat > conftest.$ac_ext < sl@0: Syntax Error sl@0: EOF sl@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" sl@0: { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } sl@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` sl@0: if test -z "$ac_err"; then sl@0: : sl@0: else sl@0: echo "$ac_err" >&5 sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: CPP=/lib/cpp sl@0: fi sl@0: rm -f conftest* sl@0: fi sl@0: rm -f conftest* sl@0: fi sl@0: rm -f conftest* sl@0: ac_cv_prog_CPP="$CPP" sl@0: fi sl@0: CPP="$ac_cv_prog_CPP" sl@0: else sl@0: ac_cv_prog_CPP="$CPP" sl@0: fi sl@0: echo "$ac_t""$CPP" 1>&6 sl@0: sl@0: ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'` sl@0: echo $ac_n "checking for errno.h""... $ac_c" 1>&6 sl@0: echo "configure:1904: checking for errno.h" >&5 sl@0: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then sl@0: echo $ac_n "(cached) $ac_c" 1>&6 sl@0: else sl@0: cat > conftest.$ac_ext < sl@0: EOF sl@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" sl@0: { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } sl@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` sl@0: if test -z "$ac_err"; then sl@0: rm -rf conftest* sl@0: eval "ac_cv_header_$ac_safe=yes" sl@0: else sl@0: echo "$ac_err" >&5 sl@0: echo "configure: failed program was:" >&5 sl@0: cat conftest.$ac_ext >&5 sl@0: rm -rf conftest* sl@0: eval "ac_cv_header_$ac_safe=no" sl@0: fi sl@0: rm -f conftest* sl@0: fi sl@0: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then sl@0: echo "$ac_t""yes" 1>&6 sl@0: : sl@0: else sl@0: echo "$ac_t""no" 1>&6 sl@0: MAN2TCLFLAGS="-DNO_ERRNO_H" sl@0: fi sl@0: sl@0: sl@0: sl@0: #------------------------------------------------------------------------ sl@0: # tclConfig.sh refers to this by a different name sl@0: #------------------------------------------------------------------------ sl@0: sl@0: TCL_SHARED_BUILD=${SHARED_BUILD} sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Perform final evaluations of variables with possible substitutions. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}" sl@0: TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" sl@0: TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" sl@0: sl@0: eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\"" sl@0: sl@0: eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}" sl@0: sl@0: eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}" sl@0: sl@0: eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\"" sl@0: eval "TCL_BUILD_LIB_SPEC=\"-L`pwd` ${TCL_LIB_FLAG}\"" sl@0: eval "TCL_LIB_SPEC=\"-L${libdir} ${TCL_LIB_FLAG}\"" sl@0: sl@0: eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\"" sl@0: eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\"" sl@0: eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\"" sl@0: eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\"" sl@0: eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\"" sl@0: eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\"" sl@0: sl@0: # Install time header dir can be set via --includedir sl@0: eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" sl@0: sl@0: sl@0: eval "DLLSUFFIX=${DLLSUFFIX}" sl@0: eval "LIBPREFIX=${LIBPREFIX}" sl@0: eval "LIBSUFFIX=${LIBSUFFIX}" sl@0: eval "EXESUFFIX=${EXESUFFIX}" sl@0: sl@0: CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX} sl@0: CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX} sl@0: CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX} sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # Adjust the defines for how the resources are built depending sl@0: # on symbols and static vs. shared. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: if test ${SHARED_BUILD} = 0 ; then sl@0: if test "${DBGX}" = "g"; then sl@0: RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG" sl@0: else sl@0: RC_DEFINES="${RC_DEFINE} STATIC_BUILD" sl@0: fi sl@0: else sl@0: if test "${DBGX}" = "g"; then sl@0: RC_DEFINES="${RC_DEFINE} DEBUG" sl@0: else sl@0: RC_DEFINES="" sl@0: fi sl@0: fi sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # The statements below define the symbol TCL_PACKAGE_PATH, which sl@0: # gives a list of directories that may contain packages. The list sl@0: # consists of one directory for machine-dependent binaries and sl@0: # another for platform-independent scripts. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: if test "$prefix" != "$exec_prefix"; then sl@0: TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" sl@0: else sl@0: TCL_PACKAGE_PATH="${prefix}/lib" sl@0: fi sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: # empty on win sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: # win/tcl.m4 doesn't set (CFLAGS) sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: # win/tcl.m4 doesn't set (LDFLAGS) sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: # empty on win, but needs sub'ing sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: # win only sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: trap '' 1 2 15 sl@0: cat > confcache <<\EOF sl@0: # This file is a shell script that caches the results of configure sl@0: # tests run on this system so they can be shared between configure sl@0: # scripts and configure runs. It is not useful on other systems. sl@0: # If it contains results you don't want to keep, you may remove or edit it. sl@0: # sl@0: # By default, configure uses ./config.cache as the cache file, sl@0: # creating it if it does not exist already. You can give configure sl@0: # the --cache-file=FILE option to use a different cache file; that is sl@0: # what configure does when it calls configure scripts in sl@0: # subdirectories, so they share the cache. sl@0: # Giving --cache-file=/dev/null disables caching, for debugging configure. sl@0: # config.status only pays attention to the cache file if you give it the sl@0: # --recheck option to rerun configure. sl@0: # sl@0: EOF sl@0: # The following way of writing the cache mishandles newlines in values, sl@0: # but we know of no workaround that is simple, portable, and efficient. sl@0: # So, don't put newlines in cache variables' values. sl@0: # Ultrix sh set writes to stderr and can't be redirected directly, sl@0: # and sets the high bit in the cache file unless we assign to the vars. sl@0: (set) 2>&1 | sl@0: case `(ac_space=' '; set | grep ac_space) 2>&1` in sl@0: *ac_space=\ *) sl@0: # `set' does not quote correctly, so add quotes (double-quote substitution sl@0: # turns \\\\ into \\, and sed turns \\ into \). sl@0: sed -n \ sl@0: -e "s/'/'\\\\''/g" \ sl@0: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" sl@0: ;; sl@0: *) sl@0: # `set' quotes correctly as required by POSIX, so do not add quotes. sl@0: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' sl@0: ;; sl@0: esac >> confcache sl@0: if cmp -s $cache_file confcache; then sl@0: : sl@0: else sl@0: if test -w $cache_file; then sl@0: echo "updating cache $cache_file" sl@0: cat confcache > $cache_file sl@0: else sl@0: echo "not updating unwritable cache $cache_file" sl@0: fi sl@0: fi sl@0: rm -f confcache sl@0: sl@0: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 sl@0: sl@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix sl@0: # Let make expand exec_prefix. sl@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' sl@0: sl@0: # Any assignment to VPATH causes Sun make to only execute sl@0: # the first set of double-colon rules, so remove it if not needed. sl@0: # If there is a colon in the path, we need to keep it. sl@0: if test "x$srcdir" = x.; then sl@0: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' sl@0: fi sl@0: sl@0: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 sl@0: sl@0: # Transform confdefs.h into DEFS. sl@0: # Protect against shell expansion while executing Makefile rules. sl@0: # Protect against Makefile macro expansion. sl@0: cat > conftest.defs <<\EOF sl@0: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g sl@0: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g sl@0: s%\[%\\&%g sl@0: s%\]%\\&%g sl@0: s%\$%$$%g sl@0: EOF sl@0: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` sl@0: rm -f conftest.defs sl@0: sl@0: sl@0: # Without the "./", some shells look in PATH for config.status. sl@0: : ${CONFIG_STATUS=./config.status} sl@0: sl@0: echo creating $CONFIG_STATUS sl@0: rm -f $CONFIG_STATUS sl@0: cat > $CONFIG_STATUS </dev/null | sed 1q`: sl@0: # sl@0: # $0 $ac_configure_args sl@0: # sl@0: # Compiler output produced by configure, useful for debugging sl@0: # configure, is in ./config.log if it exists. sl@0: sl@0: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" sl@0: for ac_option sl@0: do sl@0: case "\$ac_option" in sl@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) sl@0: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" sl@0: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; sl@0: -version | --version | --versio | --versi | --vers | --ver | --ve | --v) sl@0: echo "$CONFIG_STATUS generated by autoconf version 2.13" sl@0: exit 0 ;; sl@0: -help | --help | --hel | --he | --h) sl@0: echo "\$ac_cs_usage"; exit 0 ;; sl@0: *) echo "\$ac_cs_usage"; exit 1 ;; sl@0: esac sl@0: done sl@0: sl@0: ac_given_srcdir=$srcdir sl@0: sl@0: trap 'rm -fr `echo "Makefile tclConfig.sh tcl.hpj" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 sl@0: EOF sl@0: cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF sl@0: $ac_vpsub sl@0: $extrasub sl@0: s%@SHELL@%$SHELL%g sl@0: s%@CFLAGS@%$CFLAGS%g sl@0: s%@CPPFLAGS@%$CPPFLAGS%g sl@0: s%@CXXFLAGS@%$CXXFLAGS%g sl@0: s%@FFLAGS@%$FFLAGS%g sl@0: s%@DEFS@%$DEFS%g sl@0: s%@LDFLAGS@%$LDFLAGS%g sl@0: s%@LIBS@%$LIBS%g sl@0: s%@exec_prefix@%$exec_prefix%g sl@0: s%@prefix@%$prefix%g sl@0: s%@program_transform_name@%$program_transform_name%g sl@0: s%@bindir@%$bindir%g sl@0: s%@sbindir@%$sbindir%g sl@0: s%@libexecdir@%$libexecdir%g sl@0: s%@datadir@%$datadir%g sl@0: s%@sysconfdir@%$sysconfdir%g sl@0: s%@sharedstatedir@%$sharedstatedir%g sl@0: s%@localstatedir@%$localstatedir%g sl@0: s%@libdir@%$libdir%g sl@0: s%@includedir@%$includedir%g sl@0: s%@oldincludedir@%$oldincludedir%g sl@0: s%@infodir@%$infodir%g sl@0: s%@mandir@%$mandir%g sl@0: s%@CC@%$CC%g sl@0: s%@AR@%$AR%g sl@0: s%@RANLIB@%$RANLIB%g sl@0: s%@RC@%$RC%g sl@0: s%@SET_MAKE@%$SET_MAKE%g sl@0: s%@OBJEXT@%$OBJEXT%g sl@0: s%@EXEEXT@%$EXEEXT%g sl@0: s%@TCL_THREADS@%$TCL_THREADS%g sl@0: s%@CYGPATH@%$CYGPATH%g sl@0: s%@DL_LIBS@%$DL_LIBS%g sl@0: s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g sl@0: s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g sl@0: s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g sl@0: s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g sl@0: s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g sl@0: s%@CPP@%$CPP%g sl@0: s%@MAN2TCLFLAGS@%$MAN2TCLFLAGS%g sl@0: s%@TCL_VERSION@%$TCL_VERSION%g sl@0: s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g sl@0: s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g sl@0: s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g sl@0: s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g sl@0: s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g sl@0: s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g sl@0: s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g sl@0: s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g sl@0: s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g sl@0: s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g sl@0: s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g sl@0: s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g sl@0: s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g sl@0: s%@TCL_DLL_FILE@%$TCL_DLL_FILE%g sl@0: s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g sl@0: s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g sl@0: s%@TCL_DBGX@%$TCL_DBGX%g sl@0: s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g sl@0: s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g sl@0: s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g sl@0: s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g sl@0: s%@DEPARG@%$DEPARG%g sl@0: s%@CC_OBJNAME@%$CC_OBJNAME%g sl@0: s%@CC_EXENAME@%$CC_EXENAME%g sl@0: s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g sl@0: s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g sl@0: s%@LDFLAGS_CONSOLE@%$LDFLAGS_CONSOLE%g sl@0: s%@LDFLAGS_WINDOW@%$LDFLAGS_WINDOW%g sl@0: s%@STLIB_LD@%$STLIB_LD%g sl@0: s%@SHLIB_LD@%$SHLIB_LD%g sl@0: s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g sl@0: s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g sl@0: s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g sl@0: s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g sl@0: s%@LIBS_GUI@%$LIBS_GUI%g sl@0: s%@DLLSUFFIX@%$DLLSUFFIX%g sl@0: s%@LIBPREFIX@%$LIBPREFIX%g sl@0: s%@LIBSUFFIX@%$LIBSUFFIX%g sl@0: s%@EXESUFFIX@%$EXESUFFIX%g sl@0: s%@LIBRARIES@%$LIBRARIES%g sl@0: s%@MAKE_LIB@%$MAKE_LIB%g sl@0: s%@POST_MAKE_LIB@%$POST_MAKE_LIB%g sl@0: s%@MAKE_DLL@%$MAKE_DLL%g sl@0: s%@MAKE_EXE@%$MAKE_EXE%g sl@0: s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g sl@0: s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g sl@0: s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g sl@0: s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g sl@0: s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g sl@0: s%@LIBOBJS@%$LIBOBJS%g sl@0: s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g sl@0: s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g sl@0: s%@TCL_DDE_VERSION@%$TCL_DDE_VERSION%g sl@0: s%@TCL_DDE_MAJOR_VERSION@%$TCL_DDE_MAJOR_VERSION%g sl@0: s%@TCL_DDE_MINOR_VERSION@%$TCL_DDE_MINOR_VERSION%g sl@0: s%@TCL_REG_VERSION@%$TCL_REG_VERSION%g sl@0: s%@TCL_REG_MAJOR_VERSION@%$TCL_REG_MAJOR_VERSION%g sl@0: s%@TCL_REG_MINOR_VERSION@%$TCL_REG_MINOR_VERSION%g sl@0: s%@RC_OUT@%$RC_OUT%g sl@0: s%@RC_TYPE@%$RC_TYPE%g sl@0: s%@RC_INCLUDE@%$RC_INCLUDE%g sl@0: s%@RC_DEFINE@%$RC_DEFINE%g sl@0: s%@RC_DEFINES@%$RC_DEFINES%g sl@0: s%@RES@%$RES%g sl@0: sl@0: CEOF sl@0: EOF sl@0: sl@0: cat >> $CONFIG_STATUS <<\EOF sl@0: sl@0: # Split the substitutions into bite-sized pieces for seds with sl@0: # small command number limits, like on Digital OSF/1 and HP-UX. sl@0: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. sl@0: ac_file=1 # Number of current file. sl@0: ac_beg=1 # First line for current file. sl@0: ac_end=$ac_max_sed_cmds # Line after last line for current file. sl@0: ac_more_lines=: sl@0: ac_sed_cmds="" sl@0: while $ac_more_lines; do sl@0: if test $ac_beg -gt 1; then sl@0: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file sl@0: else sl@0: sed "${ac_end}q" conftest.subs > conftest.s$ac_file sl@0: fi sl@0: if test ! -s conftest.s$ac_file; then sl@0: ac_more_lines=false sl@0: rm -f conftest.s$ac_file sl@0: else sl@0: if test -z "$ac_sed_cmds"; then sl@0: ac_sed_cmds="sed -f conftest.s$ac_file" sl@0: else sl@0: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" sl@0: fi sl@0: ac_file=`expr $ac_file + 1` sl@0: ac_beg=$ac_end sl@0: ac_end=`expr $ac_end + $ac_max_sed_cmds` sl@0: fi sl@0: done sl@0: if test -z "$ac_sed_cmds"; then sl@0: ac_sed_cmds=cat sl@0: fi sl@0: EOF sl@0: sl@0: cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF sl@0: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then sl@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". sl@0: case "$ac_file" in sl@0: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` sl@0: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; sl@0: *) ac_file_in="${ac_file}.in" ;; sl@0: esac sl@0: sl@0: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. sl@0: sl@0: # Remove last slash and all that follows it. Not all systems have dirname. sl@0: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` sl@0: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then sl@0: # The file is in a subdirectory. sl@0: test ! -d "$ac_dir" && mkdir "$ac_dir" sl@0: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" sl@0: # A "../" for each directory in $ac_dir_suffix. sl@0: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` sl@0: else sl@0: ac_dir_suffix= ac_dots= sl@0: fi sl@0: sl@0: case "$ac_given_srcdir" in sl@0: .) srcdir=. sl@0: if test -z "$ac_dots"; then top_srcdir=. sl@0: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; sl@0: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; sl@0: *) # Relative path. sl@0: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" sl@0: top_srcdir="$ac_dots$ac_given_srcdir" ;; sl@0: esac sl@0: sl@0: sl@0: echo creating "$ac_file" sl@0: rm -f "$ac_file" sl@0: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." sl@0: case "$ac_file" in sl@0: *Makefile*) ac_comsub="1i\\ sl@0: # $configure_input" ;; sl@0: *) ac_comsub= ;; sl@0: esac sl@0: sl@0: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sl@0: sed -e "$ac_comsub sl@0: s%@configure_input@%$configure_input%g sl@0: s%@srcdir@%$srcdir%g sl@0: s%@top_srcdir@%$top_srcdir%g sl@0: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file sl@0: fi; done sl@0: rm -f conftest.s* sl@0: sl@0: EOF sl@0: cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF sl@0: sl@0: exit 0 sl@0: EOF sl@0: chmod +x $CONFIG_STATUS sl@0: rm -fr confdefs* $ac_clean_files sl@0: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 sl@0: