home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / BLT / _BLT.TAR / usr / lib / blt / applications / extloader / configure < prev    next >
Encoding:
Text File  |  1994-04-22  |  30.2 KB  |  1,212 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf.
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  21. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  22. # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  23. # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  24.  
  25. for arg
  26. do
  27.   # Handle --exec-prefix with a space before the argument.
  28.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  29.   # Handle --host with a space before the argument.
  30.   elif test x$next_host = xyes; then next_host=
  31.   # Handle --prefix with a space before the argument.
  32.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  33.   # Handle --srcdir with a space before the argument.
  34.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  35.   else
  36.     case $arg in
  37.      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  38.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  39.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  40.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  41.     next_exec_prefix=yes ;;
  42.  
  43.      -gas | --gas | --ga | --g) ;;
  44.  
  45.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  46.      -host | --host | --hos | --ho | --h)
  47.     next_host=yes ;;
  48.  
  49.      -nfp | --nfp | --nf) ;;
  50.  
  51.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  52.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  53.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  54.     next_prefix=yes ;;
  55.  
  56.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  57.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  58.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  59.     next_srcdir=yes ;;
  60.  
  61.      -with-* | --with-*)
  62.        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  63.        # Reject names that aren't valid shell variable names.
  64.        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  65.          echo "configure: $package: invalid package name" >&2; exit 1
  66.        fi
  67.        package=`echo $package| sed 's/-/_/g'`
  68.        case "$arg" in
  69.          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  70.          *) val=1 ;;
  71.        esac
  72.        eval "with_$package='$val'" ;;
  73.  
  74.      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  75.        verbose=yes ;;
  76.  
  77.      *) ;;
  78.     esac
  79.   fi
  80. done
  81.  
  82. trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  83. trap 'rm -f confdefs*' 0
  84.  
  85. # NLS nuisances.
  86. # These must not be set unconditionally because not all systems understand
  87. # e.g. LANG=C (notably SCO).
  88. if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  89. if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  90.  
  91. rm -f conftest* confdefs.h
  92. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  93. echo > confdefs.h
  94. compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  95.  
  96. # A filename unique to this package, relative to the directory that
  97. # configure is in, which we can look for to find out if srcdir is correct.
  98. unique_file=ext.c
  99.  
  100. # Find the source files, if location was not specified.
  101. if test -z "$srcdir"; then
  102.   srcdirdefaulted=yes
  103.   # Try the directory containing this script, then `..'.
  104.   prog=$0
  105.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  106.   test "X$confdir" = "X$prog" && confdir=.
  107.   srcdir=$confdir
  108.   if test ! -r $srcdir/$unique_file; then
  109.     srcdir=..
  110.   fi
  111. fi
  112. if test ! -r $srcdir/$unique_file; then
  113.   if test x$srcdirdefaulted = xyes; then
  114.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  115.   else
  116.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  117.   fi
  118.   exit 1
  119. fi
  120. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  121. # But we can't avoid them for `..', to make subdirectories work.
  122. case $srcdir in
  123.   .|/*|~*) ;;
  124.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  125. esac
  126.  
  127.  
  128. # Save the original args to write them into config.status later.
  129. configure_args="$*"
  130.  
  131.  
  132. # -----------------------------------------------------------------------
  133. #
  134. #     C compiler and debugging flags
  135. #
  136. # -----------------------------------------------------------------------
  137. # check whether --with-gcc was given
  138. withval="$with_gcc"
  139. if test -n "$withval"; then
  140.   CC=gcc
  141. fi
  142.  
  143. # check whether --with-acc was given
  144. withval="$with_acc"
  145. if test -n "$withval"; then
  146.   CC=acc
  147. fi
  148.  
  149. # check whether --with-lcc was given
  150. withval="$with_lcc"
  151. if test -n "$withval"; then
  152.   CC=lcc
  153. fi
  154.  
  155. # check whether --with-cc was given
  156. withval="$with_cc"
  157. if test -n "$withval"; then
  158.   CC=cc
  159. fi
  160.  
  161. if test -z "$CC" ; then 
  162.     CC=cc
  163. fi
  164.  
  165.  
  166.  
  167. echo checking how to run the C preprocessor
  168. if test -z "$CPP"; then
  169.   # This must be in double quotes, not single quotes, because CPP may get
  170.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  171.   # make.  It must be expanded now.
  172.   CPP="${CC-cc} -E"
  173.   cat > conftest.c <<EOF
  174. #include "confdefs.h"
  175. #include <stdio.h>
  176. Syntax Error
  177. EOF
  178. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  179. if test -z "$err"; then
  180.   :
  181. else
  182.   rm -rf conftest*
  183.   CPP=/lib/cpp
  184. fi
  185. rm -f conftest*
  186. fi
  187. test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  188.  
  189. echo checking for ANSI C header files
  190. cat > conftest.c <<EOF
  191. #include "confdefs.h"
  192. #include <stdlib.h>
  193. #include <stdarg.h>
  194. #include <string.h>
  195. #include <float.h>
  196. EOF
  197. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  198. if test -z "$err"; then
  199.   rm -rf conftest*
  200.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  201. echo '#include "confdefs.h"
  202. #include <string.h>' > conftest.c
  203. eval "$CPP conftest.c > conftest.out 2>&1"
  204. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  205.   rm -rf conftest*
  206.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  207. cat > conftest.c <<EOF
  208. #include "confdefs.h"
  209. #include <ctype.h>
  210. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  211. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  212. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  213. int main () { int i; for (i = 0; i < 256; i++)
  214. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  215. exit (0); }
  216.  
  217. EOF
  218. eval $compile
  219. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  220.   
  221. {
  222. test -n "$verbose" && \
  223. echo "    defining STDC_HEADERS"
  224. echo "#define" STDC_HEADERS 1 >> confdefs.h
  225. DEFS="$DEFS -DSTDC_HEADERS=1"
  226. SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  227. \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  228. \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  229. "
  230. }
  231.  
  232.  
  233. fi
  234. rm -fr conftest*
  235.  
  236. fi
  237. rm -f conftest*
  238.  
  239.  
  240. fi
  241. rm -f conftest*
  242.  
  243. for hdr in stdlib.h string.h errno.h
  244. do
  245. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  246. echo checking for ${hdr}
  247. cat > conftest.c <<EOF
  248. #include "confdefs.h"
  249. #include <${hdr}>
  250. EOF
  251. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  252. if test -z "$err"; then
  253.   rm -rf conftest*
  254.   
  255. {
  256. test -n "$verbose" && \
  257. echo "    defining ${trhdr}"
  258. echo "#define" ${trhdr} 1 >> confdefs.h
  259. DEFS="$DEFS -D${trhdr}=1"
  260. SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  261. \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  262. \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  263. "
  264. }
  265.  
  266.  
  267. fi
  268. rm -f conftest*
  269. done
  270.  
  271. for hdr in dl.h dlfcn.h
  272. do
  273. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  274. echo checking for ${hdr}
  275. cat > conftest.c <<EOF
  276. #include "confdefs.h"
  277. #include <${hdr}>
  278. EOF
  279. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  280. if test -z "$err"; then
  281.   rm -rf conftest*
  282.   
  283. {
  284. test -n "$verbose" && \
  285. echo "    defining ${trhdr}"
  286. echo "#define" ${trhdr} 1 >> confdefs.h
  287. DEFS="$DEFS -D${trhdr}=1"
  288. SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  289. \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  290. \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  291. "
  292. }
  293.  
  294.  
  295. fi
  296. rm -f conftest*
  297. done
  298.  
  299.  
  300. CDEBUGFLAGS="-O"
  301. # check whether --with-debug was given
  302. withval="$with_debug"
  303. if test -n "$withval"; then
  304.   CDEBUGFLAGS=-g
  305. fi
  306.  
  307. if test "$CC" = "gcc" ; then
  308.   CDEBUGFLAGS="$CDEBUGFLAGS -fwritable-strings"
  309. fi
  310.  
  311.  
  312. # -----------------------------------------------------------------------
  313. #
  314. #     Set prefix variable if one wasn't provided
  315. #
  316. # -----------------------------------------------------------------------
  317. if test -z "$prefix" ; then
  318.     prefix=/usr/local/blt
  319. fi
  320.  
  321.  
  322. # -----------------------------------------------------------------------
  323. #
  324. #     Set PWD variable if vendor's /bin/sh doesn't
  325. #
  326. # -----------------------------------------------------------------------
  327. if test -z "$PWD" ; then
  328.     PWD=`pwd`
  329. fi
  330.  
  331. TOP1=$PWD/../../..
  332. TOP2=$PWD/../../../..
  333.  
  334. # -----------------------------------------------------------------------
  335. #
  336. #     Check for existence of ranlib and install programs
  337. #
  338. # -----------------------------------------------------------------------
  339. # Make sure to not get the incompatible SysV /etc/install and
  340. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  341. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  342. # or the AFS install, which mishandles nonexistent args, or
  343. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  344. # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  345. # anyway.  Sigh.
  346. if test "z${INSTALL}" = "z" ; then
  347.   echo checking for install
  348.   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  349.   for dir in $PATH; do
  350.     test -z "$dir" && dir=.
  351.     case $dir in
  352.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  353.     *)
  354.       if test -f $dir/installbsd; then
  355.     INSTALL="$dir/installbsd -c" # OSF1
  356.     INSTALL_PROGRAM='$(INSTALL)'
  357.     INSTALL_DATA='$(INSTALL) -m 644'
  358.     break
  359.       fi
  360.       if test -f $dir/install; then
  361.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  362.       : # AIX
  363.     else
  364.       INSTALL="$dir/install -c"
  365.       INSTALL_PROGRAM='$(INSTALL)'
  366.       INSTALL_DATA='$(INSTALL) -m 644'
  367.       break
  368.     fi
  369.       fi
  370.       ;;
  371.     esac
  372.   done
  373.   IFS="$saveifs"
  374. fi
  375. INSTALL=${INSTALL-cp}
  376. test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  377. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  378. test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  379. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  380. test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  381.  
  382. echo checking how to run the C preprocessor
  383. if test -z "$CPP"; then
  384.   # This must be in double quotes, not single quotes, because CPP may get
  385.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  386.   # make.  It must be expanded now.
  387.   CPP="${CC-cc} -E"
  388.   cat > conftest.c <<EOF
  389. #include "confdefs.h"
  390. #include <stdio.h>
  391. Syntax Error
  392. EOF
  393. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  394. if test -z "$err"; then
  395.   :
  396. else
  397.   rm -rf conftest*
  398.   CPP=/lib/cpp
  399. fi
  400. rm -f conftest*
  401. fi
  402. test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  403.  
  404.     
  405. # -----------------------------------------------------------------------
  406. #     Run xmkmf to check for location of X libraries and includes.
  407. #    Fill in some default values if we still can't find anything.
  408. # -----------------------------------------------------------------------
  409. # If we find X, set shell vars x_includes and x_libraries to the paths.
  410. no_x=true
  411. echo checking for X include and library files with xmkmf
  412. rm -fr conftestdir
  413. if mkdir conftestdir; then
  414.   cd conftestdir
  415.   cat > Imakefile <<\EOF
  416. acfindx:
  417.     @echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
  418. EOF
  419.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  420.     no_x=
  421.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  422.     eval `make acfindx | grep -v make`
  423.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  424.     if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
  425.       im_usrlibdir=$im_libdir
  426.     fi
  427.     case "$im_incroot" in
  428.     /usr/include) ;;
  429.     *) x_includes="$im_incroot" ;;
  430.     esac
  431.     case "$im_usrlibdir" in
  432.     /usr/lib | /lib) ;;
  433.     *) x_libraries="$im_usrlibdir" ;;
  434.     esac
  435.   fi
  436.   cd ..
  437.   rm -fr conftestdir
  438. fi
  439.  
  440. if test -z "$im_usrlibdir"; then
  441. echo checking for X include and library files directly
  442. cat > conftest.c <<EOF
  443. #include "confdefs.h"
  444. #include <X11/Intrinsic.h>
  445. EOF
  446. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  447. if test -z "$err"; then
  448.   rm -rf conftest*
  449.   no_x=
  450.  
  451. else
  452.   rm -rf conftest*
  453.   for dir in \
  454.     /usr/local/include \
  455.     /usr/unsupported/include \
  456.     /usr/x386/include \
  457.     /usr/local/x11r5/include \
  458.     /usr/include/X11R5 \
  459.     /usr/include/X11R4 \
  460.     /usr/X11R5/include \
  461.     /usr/X11/include \
  462.     /usr/openwin/include \
  463.     /usr/openwin/share/include \
  464.     /usr/lpp/Xamples/include \
  465.     ; \
  466.   do
  467.     if test -r $dir/X11/Intrinsic.h; then
  468.       x_includes=$dir; no_x=
  469.       break
  470.     fi
  471.   done
  472. fi
  473. rm -f conftest*
  474.  
  475. # Check for the libraries.  First see if replacing the `include' by
  476. # `lib' works.
  477. LIBS_save="${LIBS}"
  478. LIBS="${LIBS} -lXt"
  479. have_lib=""
  480. echo checking for -lXt
  481. cat > conftest.c <<EOF
  482. #include "confdefs.h"
  483.  
  484. int main() { exit(0); }
  485. int t() { main(); }
  486. EOF
  487. if eval $compile; then
  488.   rm -rf conftest*
  489.   have_lib="1"
  490.  
  491. fi
  492. rm -f conftest*
  493. LIBS="${LIBS_save}"
  494. if test -n "${have_lib}"; then
  495.    :; no_x=
  496. else
  497.    :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  498.   /usr/local/lib \
  499.   /usr/unsupported/lib \
  500.   /usr/x386/lib \
  501.   /usr/local/x11r5/lib \
  502.   /usr/lib/X11 \
  503.   /usr/lib/X11R4 \
  504.   /usr/X11R5/lib \
  505.   /usr/X11/lib \
  506.   /usr/openwin/lib \
  507.   /usr/lpp/Xamples/lib \
  508.   ; \
  509. do
  510.   for extension in a so sl; do
  511.     if test -r $dir/libXt.$extension; then
  512.       x_libraries=$dir; no_x=
  513.       break 2
  514.     fi
  515.   done
  516. done
  517. fi
  518.  
  519. fi
  520. if test -n "$verbose"; then
  521.   test -n "$x_includes" && echo "    found X11 headers in $x_includes"
  522.   test -n "$x_libraries" && echo "    found X11 libraries in $x_libraries"
  523. fi
  524.  
  525. XINCDIR="$x_includes"
  526. if test -z "$XINCDIR" ; then
  527.     cat > conftest.c <<EOF
  528. #include "confdefs.h"
  529. #include <X11/Intrinsic.h>
  530. EOF
  531. err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  532. if test -z "$err"; then
  533.   rm -rf conftest*
  534.    XINCDIR="default" 
  535.  
  536. else
  537.   rm -rf conftest*
  538.   
  539.     places="/usr/X11/include \
  540.     /usr/X386/include \
  541.     /usr/X11R5/include \
  542.     /usr/local/X11R5/include \
  543.     /usr/include/X11R5 \
  544.     /usr/openwin/include \
  545.     /usr/local/X11R4/include \
  546.     /usr/include/X11R4 \
  547.     /usr/local/include \
  548.     /usr/unsupported/include \
  549.     /usr/include"
  550.     for dir in $places; do
  551.     if test -r $dir/X11/Intrinsic.h; then
  552.         XINCDIR=$dir
  553.         break
  554.     fi
  555.     done
  556.     if test -z "$XINCDIR" ; then
  557.         echo "Warning:  couldn't find any X11 include files."
  558.         XINCDIR="default"
  559.     fi 
  560. fi
  561. rm -f conftest*
  562. fi
  563. if test "$XINCDIR" = "/usr/include" ; then
  564.     XINCDIR="default"
  565. fi
  566.  
  567. XLIBDIR="$x_libraries"
  568. if test -z "$XLIBDIR" ; then
  569.     LIBS_save="${LIBS}"
  570. LIBS="${LIBS} -lX11"
  571. have_lib=""
  572. echo checking for -lX11
  573. cat > conftest.c <<EOF
  574. #include "confdefs.h"
  575.  
  576. int main() { exit(0); }
  577. int t() { main(); }
  578. EOF
  579. if eval $compile; then
  580.   rm -rf conftest*
  581.   have_lib="1"
  582.  
  583. fi
  584. rm -f conftest*
  585. LIBS="${LIBS_save}"
  586. if test -n "${have_lib}"; then
  587.    :;  XLIBDIR="default" 
  588. else
  589.    :; 
  590.     places="/usr/X11/lib \
  591.         /usr/X386/lib \
  592.         /usr/X11R5/lib \
  593.         /usr/local/X11R5/lib \
  594.         /usr/lib/X11R5 \
  595.         /usr/openwin/lib \
  596.         /usr/local/X11R4/lib \
  597.         /usr/lib/X11R4 \ 
  598.         /usr/local/lib \
  599.         /usr/unsupported/lib \
  600.         /usr/lib \
  601.         /lib"
  602.     for dir in $places; do
  603.         if test -r $dir/libX11.a; then
  604.             XLIBDIR=$dir
  605.             break
  606.         fi
  607.     done
  608.     if test -z "$XLIBDIR" ; then
  609.     echo "Warning:  couldn't find the X11 library archive. "
  610.     XLIBDIR="default"
  611.     fi 
  612. fi
  613.  
  614. fi
  615. if test "$XLIBDIR" = "/usr/lib" ; then
  616.     XLIBDIR="default"
  617. fi
  618.  
  619. XINCSW=""
  620. if test "$XINCDIR" != "default" ; then
  621.     XINCSW="-I$XINCDIR"
  622. fi
  623.  
  624. XLIBSW=""
  625. if test "$XLIBDIR" != "default" ; then
  626.     XLIBSW="-L$XLIBDIR"
  627. fi
  628.  
  629.  
  630.  
  631. # -----------------------------------------------------------------------
  632. #
  633. #     Make some guesses where the Tcl/Tk include files and 
  634. #    libraries are.  I'm not crazy about doing it this way.  
  635. #    It might be better to specify some command-line options
  636. #    when invoking configure.
  637. #
  638. #     Look first in the Tcl/Tk distributions and then move on 
  639. #    to the standard include file/library locations.  If it's 
  640. #    still not found then query for it.
  641. #
  642. # -----------------------------------------------------------------------
  643.  
  644. # -----------------------------------------------------------------------
  645. #    tcl.h
  646. # -----------------------------------------------------------------------
  647. echo "checking for tcl.h"
  648. TCLINCDIR=""
  649. places="$TOP1/tcl7.3 \
  650.     $TOP1/tcl7.2 \
  651.     $TOP1/tcl7.1 \
  652.     $TOP1/tcl7.0 \
  653.     $TOP1/tcl7.0b3 \
  654.     $TOP2/tcl7.3 \
  655.     $TOP2/tcl7.2 \
  656.     $TOP2/tcl7.1 \
  657.     $TOP2/tcl7.0 \
  658.     $TOP2/tcl7.0b3 \
  659.     $prefix/include \
  660.     $XINCDIR/tk \
  661.     $XINCDIR \
  662.     /usr/local/include \
  663.     /opt/cellar/tcl/tcl7.3/include \
  664.     /usr/include"
  665. for dir in $places; do
  666.     if test -r $dir/tcl.h ; then
  667.         TCLINCDIR=$dir
  668.         break
  669.     fi
  670. done
  671. while test -z "$TCLINCDIR" ; do
  672.     echo "What directory contains tcl.h (absolute path) ?"
  673.     read TCLINCDIR
  674. done
  675. if test "$TCLINCDIR" = "/usr/include" ; then
  676.     TCLINCDIR= "default"
  677. fi
  678.  
  679. TCLINCSW=""
  680. if test "$TCLINCDIR" != "default" ; then
  681.     TCLINCSW="-I$TCLINCDIR"
  682. fi
  683.  
  684.  
  685. # -----------------------------------------------------------------------
  686. #    libtcl.a
  687. # -----------------------------------------------------------------------
  688. echo "checking for libtcl.a"
  689. TCLLIBDIR=""
  690. places="$TOP1/tcl7.3 \
  691.     $TOP1/tcl7.2 \
  692.     $TOP1/tcl7.1 \
  693.     $TOP1/tcl7.0 \
  694.     $TOP1/tcl7.0b3 \
  695.     $TOP2/tcl7.3 \
  696.     $TOP2/tcl7.2 \
  697.     $TOP2/tcl7.1 \
  698.     $TOP2/tcl7.0 \
  699.     $TOP2/tcl7.0b3 \
  700.     $prefix/lib \
  701.     /opt/cellar/tcl/tcl7.3/lib \
  702.     $XLIBDIR \
  703.     /usr/local/lib \
  704.     /usr/lib"
  705. for dir in $places; do
  706.     if test -r $dir/libtcl.a ; then
  707.         TCLLIBDIR=$dir
  708.         break
  709.     fi
  710. done
  711. while test -z "$TCLLIBDIR" ; do
  712.     echo "What directory contains libtcl.a ?"
  713.     read TCLLIBDIR
  714. done
  715. if test "$TCLLIBDIR" = "/usr/lib" ; then
  716.     TCLLIBDIR= "default"
  717. fi
  718.  
  719. TCLLIBSW=""
  720. if test "$TCLLIBDIR" != "default" ; then
  721.     TCLLIBSW="-L$TCLLIBDIR"
  722. fi
  723.  
  724.  
  725.  
  726. # -----------------------------------------------------------------------
  727. #     tk.h
  728. # -----------------------------------------------------------------------
  729. echo "checking for tk.h"
  730. TKINCDIR=""
  731. places="$TOP1/tk3.6 \
  732.     $TOP1/tk3.5 \
  733.     $TOP1/tk3.4 \
  734.     $TOP1/tk3.3 \
  735.     $TOP1/tk3.3b3 \
  736.     $TOP2/tk3.6 \
  737.     $TOP2/tk3.5 \
  738.     $TOP2/tk3.4 \
  739.     $TOP2/tk3.3 \
  740.     $TOP2/tk3.3b3 \
  741.     $XINCDIR/tk \
  742.     $XINCDIR \
  743.     $prefix/include \
  744.     /opt/cellar/tk/tk3.6/include \
  745.     /usr/local/include \
  746.     /usr/include"
  747. for dir in $places; do
  748.     if test -r $dir/tk.h ; then
  749.         TKINCDIR=$dir
  750.         break
  751.     fi
  752. done
  753. while test -z "$TKINCDIR" ; do
  754.     echo "What directory contains tk.h (absolute path) ?"
  755.     read TKINCDIR
  756. done
  757. if test "$TKINCDIR" = "/usr/include" ; then
  758.     TKINCDIR="default"
  759. fi
  760.  
  761. TKINCSW=""
  762. if test "$TKINCDIR" != "default" ; then
  763.     TKINCSW="-I$TKINCDIR"
  764. fi
  765.  
  766.  
  767. # -----------------------------------------------------------------------
  768. #     libtk.a
  769. # -----------------------------------------------------------------------
  770. echo "checking for libtk.a"
  771. TKLIBDIR=""
  772. places="$TOP1/tk3.6 \
  773.     $TOP1/tk3.5 \
  774.     $TOP1/tk3.4 \
  775.     $TOP1/tk3.3 \
  776.     $TOP1/tk3.3b3 \
  777.     $TOP2/tk3.6 \
  778.     $TOP2/tk3.5 \
  779.     $TOP2/tk3.4 \
  780.     $TOP2/tk3.3 \
  781.     $TOP2/tk3.3b3 \
  782.     $prefix/lib \
  783.     /opt/cellar/tk/tk3.6/lib \
  784.     $XLIBDIR \
  785.     /usr/local/lib \
  786.     /usr/lib"
  787. for dir in $places; do
  788.     if test -r $dir/libtk.a ; then
  789.         TKLIBDIR=$dir
  790.         break
  791.     fi
  792. done
  793. while test -z "$TKLIBDIR" ; do
  794.     echo "What directory contains libtk.a ?"
  795.     read TKLIBDIR
  796. done
  797. if test "$TKLIBDIR" = "/usr/lib" ; then
  798.     TKLIBDIR="default"
  799. fi
  800.  
  801. TKLIBSW=""
  802. if test "$TKLIBDIR" != "default" ; then
  803.     TKLIBSW="-L$TKLIBDIR"
  804. fi
  805.  
  806.  
  807.  
  808.  
  809. #--------------------------------------------------------------------
  810. #    Check for the existence of various libraries.  The order here
  811. #    is important, so that then end up in the right order in the
  812. #    command line generated by Make.
  813. #--------------------------------------------------------------------
  814. LIBS_save="${LIBS}"
  815. LIBS="${LIBS} -lXbsd"
  816. have_lib=""
  817. echo checking for -lXbsd
  818. cat > conftest.c <<EOF
  819. #include "confdefs.h"
  820.  
  821. int main() { exit(0); }
  822. int t() { main(); }
  823. EOF
  824. if eval $compile; then
  825.   rm -rf conftest*
  826.   have_lib="1"
  827.  
  828. fi
  829. rm -f conftest*
  830. LIBS="${LIBS_save}"
  831. if test -n "${have_lib}"; then
  832.    :; LIBS="$LIBS -lXbsd"
  833. else
  834.    :; 
  835. fi
  836.  
  837. LIBS_save="${LIBS}"
  838. LIBS="${LIBS} -lsocket"
  839. have_lib=""
  840. echo checking for -lsocket
  841. cat > conftest.c <<EOF
  842. #include "confdefs.h"
  843.  
  844. int main() { exit(0); }
  845. int t() { main(); }
  846. EOF
  847. if eval $compile; then
  848.   rm -rf conftest*
  849.   have_lib="1"
  850.  
  851. fi
  852. rm -f conftest*
  853. LIBS="${LIBS_save}"
  854. if test -n "${have_lib}"; then
  855.    :; LIBS="$LIBS -lsocket"
  856. else
  857.    :; 
  858. fi
  859.  
  860. LIBS_save="${LIBS}"
  861. LIBS="${LIBS} -lnsl"
  862. have_lib=""
  863. echo checking for -lnsl
  864. cat > conftest.c <<EOF
  865. #include "confdefs.h"
  866.  
  867. int main() { exit(0); }
  868. int t() { main(); }
  869. EOF
  870. if eval $compile; then
  871.   rm -rf conftest*
  872.   have_lib="1"
  873.  
  874. fi
  875. rm -f conftest*
  876. LIBS="${LIBS_save}"
  877. if test -n "${have_lib}"; then
  878.    :; LIBS="$LIBS -lnsl"
  879. else
  880.    :; 
  881. fi
  882.  
  883. LIBS_save="${LIBS}"
  884. LIBS="${LIBS} -lm"
  885. have_lib=""
  886. echo checking for -lm
  887. cat > conftest.c <<EOF
  888. #include "confdefs.h"
  889.  
  890. int main() { exit(0); }
  891. int t() { main(); }
  892. EOF
  893. if eval $compile; then
  894.   rm -rf conftest*
  895.   have_lib="1"
  896.  
  897. fi
  898. rm -f conftest*
  899. LIBS="${LIBS_save}"
  900. if test -n "${have_lib}"; then
  901.    :; LIBS="$LIBS -lm"
  902. else
  903.    :; 
  904. fi
  905.  
  906.  
  907. #--------------------------------------------------------------------
  908. #       Set flags to generate shared libraries for systems that we 
  909. #       know about.
  910. #--------------------------------------------------------------------
  911. echo "checking how to use shared libraries"
  912. SHLIB_CCFLAGS=""
  913. SHLIB_LDFLAGS=""
  914. SHLIB_LOADER=""
  915. SHLIB_SUFFIX=""
  916. if test -z "$uname_found"; then
  917.   # Extract the first word of `uname', so it can be a program name with args.
  918.   set dummy uname; word=$2
  919.   echo checking for $word
  920.   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  921.   for dir in $PATH; do
  922.     test -z "$dir" && dir=.
  923.     if test -f $dir/$word; then
  924.       uname_found="1"
  925.       break
  926.     fi
  927.   done
  928.   IFS="$saveifs"
  929. fi
  930. test -z "$uname_found" && uname_found="0"
  931. test -n "$uname_found" && test -n "$verbose" && echo "    setting uname_found to $uname_found"
  932.  
  933. if test $uname_found -eq 1 ; then
  934.     system=`uname -s`-`uname -r`
  935.     case $system in 
  936.       SunOS-4*) 
  937.         LIBS="$LIBS -ldl"
  938.         ;;
  939.       HP-UX-*.09.*)
  940.         LIBS="$LIBS -lshl"
  941.         ;;
  942.       SunOS-5*)
  943.         SHLIB_LDFLAGS='-R $(XLIBDIR):$(TKLIBDIR):$(TCLLIBDIR)'
  944.         LIBS="$LIBS -ldl"
  945.         ;;
  946.       OSF-1.*)
  947.         LIBS="$LIBS -ldl"
  948.     ;;
  949.       ISIX-5*)
  950.         LIBS="$LIBS -ldl"
  951.         ;;
  952.       *)
  953.     echo "Don't know how to use shared libraries for $system"
  954.     ;;
  955.     esac
  956. fi
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964. #--------------------------------------------------------------------
  965. #    Propagate prefix argument as installation directory.
  966. #--------------------------------------------------------------------
  967. DESTDIR="$prefix"
  968. BINDIR="$DESTDIR/bin"
  969. MANDIR="$DESTDIR/man"
  970.  
  971.  
  972.  
  973.  
  974.  
  975. # Set default prefixes.
  976. if test -n "$prefix"; then
  977.   test -z "$exec_prefix" && exec_prefix='${prefix}'
  978.   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  979. fi
  980. if test -n "$exec_prefix"; then
  981.   prsub="$prsub
  982. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  983. fi
  984. # Quote sed substitution magic chars in DEFS.
  985. cat >conftest.def <<EOF
  986. $DEFS
  987. EOF
  988. escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  989. DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  990. rm -f conftest.def
  991. # Substitute for predefined variables.
  992.  
  993. trap 'rm -f config.status; exit 1' 1 3 15
  994. echo creating config.status
  995. rm -f config.status
  996. cat > config.status <<EOF
  997. #!/bin/sh
  998. # Generated automatically by configure.
  999. # Run this file to recreate the current configuration.
  1000. # This directory was configured as follows,
  1001. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1002. #
  1003. # $0 $configure_args
  1004.  
  1005. for arg
  1006. do
  1007.   case "\$arg" in
  1008.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1009.     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  1010.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  1011.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  1012.   esac
  1013. done
  1014.  
  1015. trap 'rm -fr Makefile extConfig.h conftest*; exit 1' 1 3 15
  1016. CC='$CC'
  1017. CPP='$CPP'
  1018. CDEBUGFLAGS='$CDEBUGFLAGS'
  1019. prefix='$prefix'
  1020. INSTALL='$INSTALL'
  1021. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1022. INSTALL_DATA='$INSTALL_DATA'
  1023. XINCSW='$XINCSW'
  1024. XLIBSW='$XLIBSW'
  1025. XLIBDIR='$XLIBDIR'
  1026. TCLINCSW='$TCLINCSW'
  1027. TCLLIBSW='$TCLLIBSW'
  1028. TCLLIBDIR='$TCLLIBDIR'
  1029. TKINCSW='$TKINCSW'
  1030. TKLIBSW='$TKLIBSW'
  1031. TKLIBDIR='$TKLIBDIR'
  1032. uname_found='$uname_found'
  1033. SHLIB_CCFLAGS='$SHLIB_CCFLAGS'
  1034. SHLIB_LDFLAGS='$SHLIB_LDFLAGS'
  1035. SHLIB_LOADER='$SHLIB_LOADER'
  1036. SHLIB_SUFFIX='$SHLIB_SUFFIX'
  1037. LIBS='$LIBS'
  1038. DESTDIR='$DESTDIR'
  1039. BINDIR='$BINDIR'
  1040. MANDIR='$MANDIR'
  1041. srcdir='$srcdir'
  1042. prefix='$prefix'
  1043. exec_prefix='$exec_prefix'
  1044. prsub='$prsub'
  1045. extrasub='$extrasub'
  1046. EOF
  1047. cat >> config.status <<\EOF
  1048.  
  1049. top_srcdir=$srcdir
  1050.  
  1051. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1052. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  1053.   srcdir=$top_srcdir
  1054.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1055.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  1056.   if test "$dir" != "$file"; then
  1057.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  1058.     test ! -d $dir && mkdir $dir
  1059.   fi
  1060.   echo creating $file
  1061.   rm -f $file
  1062.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  1063.   sed -e "
  1064. $prsub
  1065. $extrasub
  1066. s%@CC@%$CC%g
  1067. s%@CPP@%$CPP%g
  1068. s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
  1069. s%@prefix@%$prefix%g
  1070. s%@INSTALL@%$INSTALL%g
  1071. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1072. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1073. s%@XINCSW@%$XINCSW%g
  1074. s%@XLIBSW@%$XLIBSW%g
  1075. s%@XLIBDIR@%$XLIBDIR%g
  1076. s%@TCLINCSW@%$TCLINCSW%g
  1077. s%@TCLLIBSW@%$TCLLIBSW%g
  1078. s%@TCLLIBDIR@%$TCLLIBDIR%g
  1079. s%@TKINCSW@%$TKINCSW%g
  1080. s%@TKLIBSW@%$TKLIBSW%g
  1081. s%@TKLIBDIR@%$TKLIBDIR%g
  1082. s%@uname_found@%$uname_found%g
  1083. s%@SHLIB_CCFLAGS@%$SHLIB_CCFLAGS%g
  1084. s%@SHLIB_LDFLAGS@%$SHLIB_LDFLAGS%g
  1085. s%@SHLIB_LOADER@%$SHLIB_LOADER%g
  1086. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  1087. s%@LIBS@%$LIBS%g
  1088. s%@DESTDIR@%$DESTDIR%g
  1089. s%@BINDIR@%$BINDIR%g
  1090. s%@MANDIR@%$MANDIR%g
  1091. s%@srcdir@%$srcdir%g
  1092. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  1093. fi; done
  1094.  
  1095. CONFIG_HEADERS=${CONFIG_HEADERS-"extConfig.h"}
  1096. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  1097. echo creating $file
  1098.  
  1099. # These sed commands are put into SEDDEFS when defining a macro.
  1100. # They are broken into pieces to make the sed script easier to manage.
  1101. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  1102. # is the cpp macro being defined and VALUE is the value it is being given.
  1103. # Each defining turns into a single global substitution command.
  1104. #
  1105. # SEDd sets the value in "#define NAME VALUE" lines.
  1106. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1107. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  1108. SEDdC='\3'
  1109. SEDdD='@g'
  1110. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1111. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1112. SEDuB='\([     ]\)@\1#\2define\3'
  1113. SEDuC=' '
  1114. SEDuD='\4@g'
  1115. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1116. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1117. SEDeB='$@\1#\2define\3'
  1118. SEDeC=' '
  1119. SEDeD='@g'
  1120. rm -f conftest.sed
  1121. EOF
  1122. # Turn off quoting long enough to insert the sed commands.
  1123. rm -f conftest.sh
  1124. cat > conftest.sh <<EOF
  1125. $SEDDEFS
  1126. EOF
  1127.  
  1128. # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  1129. # on the size of here documents.
  1130.  
  1131. # Maximum number of lines to put in a single here document.
  1132. maxshlines=9
  1133.  
  1134. while :
  1135. do
  1136.   # wc gives bogus results for an empty file on some systems.
  1137.   lines=`grep -c . conftest.sh`
  1138.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  1139.   rm -f conftest.s1 conftest.s2
  1140.   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  1141.   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  1142.   # Write a limited-size here document to append to conftest.sed.
  1143.   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  1144.   cat conftest.s1 >> config.status
  1145.   echo 'CONFEOF' >> config.status
  1146.   rm -f conftest.s1 conftest.sh
  1147.   mv conftest.s2 conftest.sh
  1148. done
  1149. rm -f conftest.sh
  1150.  
  1151. # Now back to your regularly scheduled config.status.
  1152. cat >> config.status <<\EOF
  1153. # This sed command replaces #undef's with comments.  This is necessary, for
  1154. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1155. # on some systems where configure will not decide to define it in
  1156. # extConfig.h.
  1157. cat >> conftest.sed <<\CONFEOF
  1158. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  1159. CONFEOF
  1160. rm -f conftest.h
  1161. # Break up the sed commands because old seds have small limits.
  1162. maxsedlines=20
  1163. cp $top_srcdir/$file.in conftest.h1
  1164. while :
  1165. do
  1166.   lines=`grep -c . conftest.sed`
  1167.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  1168.   rm -f conftest.s1 conftest.s2 conftest.h2
  1169.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  1170.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  1171.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  1172.   rm -f conftest.s1 conftest.h1 conftest.sed
  1173.   mv conftest.h2 conftest.h1
  1174.   mv conftest.s2 conftest.sed
  1175. done
  1176. rm -f conftest.sed conftest.h
  1177. echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  1178. cat conftest.h1 >> conftest.h
  1179. rm -f conftest.h1
  1180. if cmp -s $file conftest.h 2>/dev/null; then
  1181.   # The file exists and we would not be changing it.
  1182.   echo "$file is unchanged"
  1183.   rm -f conftest.h
  1184. else
  1185.   rm -f $file
  1186.   mv conftest.h $file
  1187. fi
  1188. fi; done
  1189.  
  1190.  
  1191.  
  1192. exit 0
  1193. EOF
  1194. chmod +x config.status
  1195. ${CONFIG_SHELL-/bin/sh} config.status
  1196.  
  1197.  
  1198. #--------------------------------------------------------------------
  1199. #       Print out some of the more important settings
  1200. #--------------------------------------------------------------------
  1201. echo "
  1202. Configuration results (edit config.status to change):
  1203.  
  1204. directory containing \"tcl.h\"      => $TCLINCDIR
  1205. directory containing \"tk.h\"       => $TKINCDIR
  1206. directory containing \"X11/Xlib.h\" => $XINCDIR
  1207. directory containing \"libtcl.a\"   => $TCLLIBDIR
  1208. directory containing \"libtk.a\"    => $TKLIBDIR
  1209. directory containing \"libX11.a\"   => $XLIBDIR
  1210. directory to install \"wish\"       => $BINDIR
  1211. "
  1212.