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: --with-tcl=DIR use Tcl $DEF_VER binaries from DIR" 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=man2tcl.c 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: # RCS: @(#) $Id: configure,v 1.2 2001/10/04 20:18:09 hobbs Exp $ sl@0: sl@0: # Recover information that Tcl computed with its configure script. sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # See if there was a command-line option for where Tcl is; if sl@0: # not, assume that its top-level directory is a sibling of ours. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: DEF_VER=8.4 sl@0: sl@0: # Check whether --with-tcl or --without-tcl was given. sl@0: if test "${with_tcl+set}" = set; then sl@0: withval="$with_tcl" sl@0: TCL_BIN_DIR=$withval sl@0: else sl@0: TCL_BIN_DIR=`cd ../../tcl$DEF_VER$TCL_PATCH_LEVEL/unix; pwd` sl@0: fi sl@0: sl@0: if test ! -d $TCL_BIN_DIR; then sl@0: { echo "configure: error: Tcl directory $TCL_BIN_DIR doesn't exist" 1>&2; exit 1; } sl@0: fi sl@0: if test ! -f $TCL_BIN_DIR/tclConfig.sh; then sl@0: { echo "configure: error: There's no tclConfig.sh in $TCL_BIN_DIR; perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; } sl@0: fi sl@0: sl@0: . $TCL_BIN_DIR/tclConfig.sh sl@0: sl@0: TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION sl@0: sl@0: CC=$TCL_CC 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 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%@TCL_WIN_VERSION@%$TCL_WIN_VERSION%g sl@0: s%@CC@%$CC%g sl@0: s%@TCL_VERSION@%$TCL_VERSION%g sl@0: s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g sl@0: s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g sl@0: s%@TCL_BIN_DIR@%$TCL_BIN_DIR%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: