Hex Artifact Content

Artifact 5daba49e62dbe404114f97c6bc44a5b721bea764:


0000: 64 6e 6c 09 54 68 69 73 20 66 69 6c 65 20 69 73  dnl.This file is
0010: 20 61 6e 20 69 6e 70 75 74 20 66 69 6c 65 20 75   an input file u
0020: 73 65 64 20 62 79 20 74 68 65 20 47 4e 55 20 22  sed by the GNU "
0030: 61 75 74 6f 63 6f 6e 66 22 20 70 72 6f 67 72 61  autoconf" progra
0040: 6d 20 74 6f 0a 64 6e 6c 09 67 65 6e 65 72 61 74  m to.dnl.generat
0050: 65 20 74 68 65 20 66 69 6c 65 20 22 63 6f 6e 66  e the file "conf
0060: 69 67 75 72 65 22 2c 20 77 68 69 63 68 20 69 73  igure", which is
0070: 20 72 75 6e 20 64 75 72 69 6e 67 20 54 6b 20 69   run during Tk i
0080: 6e 73 74 61 6c 6c 61 74 69 6f 6e 0a 64 6e 6c 09  nstallation.dnl.
0090: 74 6f 20 63 6f 6e 66 69 67 75 72 65 20 74 68 65  to configure the
00a0: 20 73 79 73 74 65 6d 20 66 6f 72 20 74 68 65 20   system for the 
00b0: 6c 6f 63 61 6c 20 65 6e 76 69 72 6f 6e 6d 65 6e  local environmen
00c0: 74 2e 0a 41 43 5f 49 4e 49 54 28 74 6b 2e 68 29  t..AC_INIT(tk.h)
00d0: 0a 0a 23 20 40 28 23 29 20 24 49 64 3a 20 63 74  ..# @(#) $Id: ct
00e0: 6b 2e 73 68 61 72 2c 76 20 31 2e 35 30 20 31 39  k.shar,v 1.50 19
00f0: 39 36 2f 30 31 2f 31 35 20 31 34 3a 34 37 3a 31  96/01/15 14:47:1
0100: 36 20 61 6e 64 72 65 77 6d 20 45 78 70 20 61 6e  6 andrewm Exp an
0110: 64 72 65 77 6d 20 24 0a 0a 41 43 5f 41 52 47 5f  drewm $..AC_ARG_
0120: 57 49 54 48 28 6e 63 75 72 73 65 73 2c 0a 09 5b  WITH(ncurses,..[
0130: 20 20 2d 2d 77 69 74 68 2d 6e 63 75 72 73 65 73    --with-ncurses
0140: 20 20 20 75 73 65 20 6e 63 75 72 73 65 73 20 6c     use ncurses l
0150: 69 62 72 61 72 79 20 69 6e 73 74 65 61 64 20 6f  ibrary instead o
0160: 66 20 63 75 72 73 65 73 5d 2c 0a 09 2c 20 5b 77  f curses],.., [w
0170: 69 74 68 5f 6e 63 75 72 73 65 73 3d 6e 6f 5d 29  ith_ncurses=no])
0180: 0a 41 43 5f 41 52 47 5f 57 49 54 48 28 6c 69 62  .AC_ARG_WITH(lib
0190: 64 69 72 73 2c 0a 09 5b 20 20 2d 2d 77 69 74 68  dirs,..[  --with
01a0: 2d 6c 69 62 64 69 72 73 20 20 20 64 69 72 65 63  -libdirs   direc
01b0: 74 6f 72 69 65 73 20 74 6f 20 61 64 64 20 74 6f  tories to add to
01c0: 20 6c 69 62 72 61 72 79 20 73 65 61 72 63 68 20   library search 
01d0: 70 61 74 68 5d 29 0a 41 43 5f 41 52 47 5f 57 49  path]).AC_ARG_WI
01e0: 54 48 28 69 6e 63 64 69 72 73 2c 0a 09 5b 20 20  TH(incdirs,..[  
01f0: 2d 2d 77 69 74 68 2d 69 6e 63 64 69 72 73 20 20  --with-incdirs  
0200: 20 64 69 72 65 63 74 6f 72 69 65 73 20 74 6f 20   directories to 
0210: 61 64 64 20 74 6f 20 69 6e 63 6c 75 64 65 20 73  add to include s
0220: 65 61 72 63 68 20 70 61 74 68 5d 29 0a 0a 66 6f  earch path])..fo
0230: 72 20 6c 64 69 72 20 69 6e 20 24 77 69 74 68 5f  r ldir in $with_
0240: 6c 69 62 64 69 72 73 20 3b 64 6f 0a 20 20 20 20  libdirs ;do.    
0250: 4c 44 46 4c 41 47 53 3d 22 24 4c 44 46 4c 41 47  LDFLAGS="$LDFLAG
0260: 53 20 2d 4c 24 6c 64 69 72 22 0a 64 6f 6e 65 0a  S -L$ldir".done.
0270: 66 6f 72 20 69 64 69 72 20 69 6e 20 24 77 69 74  for idir in $wit
0280: 68 5f 69 6e 63 64 69 72 73 20 3b 64 6f 0a 20 20  h_incdirs ;do.  
0290: 20 20 43 50 50 46 4c 41 47 53 3d 22 24 43 50 50    CPPFLAGS="$CPP
02a0: 46 4c 41 47 53 20 2d 49 24 69 64 69 72 22 0a 64  FLAGS -I$idir".d
02b0: 6f 6e 65 0a 0a 41 43 5f 50 52 4f 47 5f 49 4e 53  one..AC_PROG_INS
02c0: 54 41 4c 4c 0a 41 43 5f 50 52 4f 47 5f 52 41 4e  TALL.AC_PROG_RAN
02d0: 4c 49 42 0a 41 43 5f 50 52 45 46 49 58 28 63 77  LIB.AC_PREFIX(cw
02e0: 69 73 68 29 0a 43 43 3d 24 7b 43 43 2d 63 63 7d  ish).CC=${CC-cc}
02f0: 0a 41 43 5f 53 55 42 53 54 28 43 43 29 0a 41 43  .AC_SUBST(CC).AC
0300: 5f 48 41 56 45 5f 48 45 41 44 45 52 53 28 75 6e  _HAVE_HEADERS(un
0310: 69 73 74 64 2e 68 20 6c 69 6d 69 74 73 2e 68 29  istd.h limits.h)
0320: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
0330: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0340: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0350: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0360: 2d 2d 2d 2d 2d 2d 2d 0a 23 09 49 6e 63 6c 75 64  -------.#.Includ
0370: 65 20 73 79 73 2f 73 65 6c 65 63 74 2e 68 20 69  e sys/select.h i
0380: 66 20 69 74 20 65 78 69 73 74 73 20 61 6e 64 20  f it exists and 
0390: 69 66 20 69 74 20 73 75 70 70 6c 69 65 73 20 74  if it supplies t
03a0: 68 69 6e 67 73 0a 23 09 74 68 61 74 20 61 70 70  hings.#.that app
03b0: 65 61 72 20 74 6f 20 62 65 20 75 73 65 66 75 6c  ear to be useful
03c0: 20 61 6e 64 20 61 72 65 6e 27 74 20 61 6c 72 65   and aren't alre
03d0: 61 64 79 20 69 6e 20 73 79 73 2f 74 79 70 65 73  ady in sys/types
03e0: 2e 68 2e 0a 23 09 54 68 69 73 20 61 70 70 65 61  .h..#.This appea
03f0: 72 73 20 74 6f 20 62 65 20 74 72 75 65 20 6f 6e  rs to be true on
0400: 6c 79 20 6f 6e 20 74 68 65 20 52 53 2f 36 30 30  ly on the RS/600
0410: 30 20 75 6e 64 65 72 20 41 49 58 2e 20 20 53 6f  0 under AIX.  So
0420: 6d 65 0a 23 09 73 79 73 74 65 6d 73 20 6c 69 6b  me.#.systems lik
0430: 65 20 4f 53 46 2f 31 20 68 61 76 65 20 61 20 73  e OSF/1 have a s
0440: 79 73 2f 73 65 6c 65 63 74 2e 68 20 74 68 61 74  ys/select.h that
0450: 27 73 20 6f 66 20 6e 6f 20 75 73 65 2c 20 61 6e  's of no use, an
0460: 64 0a 23 09 6f 74 68 65 72 20 73 79 73 74 65 6d  d.#.other system
0470: 73 20 6c 69 6b 65 20 53 43 4f 20 55 4e 49 58 20  s like SCO UNIX 
0480: 68 61 76 65 20 61 20 73 79 73 2f 73 65 6c 65 63  have a sys/selec
0490: 74 2e 68 20 74 68 61 74 27 73 0a 23 09 70 65 72  t.h that's.#.per
04a0: 6e 69 63 69 6f 75 73 2e 20 20 49 66 20 22 66 64  nicious.  If "fd
04b0: 5f 73 65 74 22 20 69 73 6e 27 74 20 64 65 66 69  _set" isn't defi
04c0: 6e 65 64 20 61 6e 79 77 68 65 72 65 20 74 68 65  ned anywhere the
04d0: 6e 20 73 65 74 20 61 0a 23 09 73 70 65 63 69 61  n set a.#.specia
04e0: 6c 20 66 6c 61 67 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  l flag..#-------
04f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0520: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41  -------------..A
0530: 43 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28 5b  C_MSG_CHECKING([
0540: 66 64 5f 73 65 74 20 61 6e 64 20 73 79 73 2f 73  fd_set and sys/s
0550: 65 6c 65 63 74 5d 29 0a 41 43 5f 54 52 59 5f 43  elect]).AC_TRY_C
0560: 4f 4d 50 49 4c 45 28 5b 23 69 6e 63 6c 75 64 65  OMPILE([#include
0570: 20 3c 73 79 73 2f 74 79 70 65 73 2e 68 3e 5d 2c   <sys/types.h>],
0580: 0a 09 5b 66 64 5f 73 65 74 20 72 65 61 64 4d 61  ..[fd_set readMa
0590: 73 6b 2c 20 77 72 69 74 65 4d 61 73 6b 3b 5d 2c  sk, writeMask;],
05a0: 20 74 6b 5f 6f 6b 3d 79 65 73 2c 20 74 6b 5f 6f   tk_ok=yes, tk_o
05b0: 6b 3d 6e 6f 29 0a 69 66 20 74 65 73 74 20 24 74  k=no).if test $t
05c0: 6b 5f 6f 6b 20 3d 20 6e 6f 3b 20 74 68 65 6e 0a  k_ok = no; then.
05d0: 20 20 20 20 41 43 5f 48 45 41 44 45 52 5f 45 47      AC_HEADER_EG
05e0: 52 45 50 28 66 64 5f 6d 61 73 6b 2c 20 73 79 73  REP(fd_mask, sys
05f0: 2f 73 65 6c 65 63 74 2e 68 2c 20 74 6b 5f 6f 6b  /select.h, tk_ok
0600: 3d 79 65 73 29 0a 20 20 20 20 69 66 20 74 65 73  =yes).    if tes
0610: 74 20 24 74 6b 5f 6f 6b 20 3d 20 79 65 73 3b 20  t $tk_ok = yes; 
0620: 74 68 65 6e 0a 09 41 43 5f 44 45 46 49 4e 45 28  then..AC_DEFINE(
0630: 48 41 56 45 5f 53 59 53 5f 53 45 4c 45 43 54 5f  HAVE_SYS_SELECT_
0640: 48 29 0a 20 20 20 20 66 69 0a 66 69 0a 41 43 5f  H).    fi.fi.AC_
0650: 4d 53 47 5f 52 45 53 55 4c 54 28 24 74 6b 5f 6f  MSG_RESULT($tk_o
0660: 6b 29 0a 69 66 20 74 65 73 74 20 24 74 6b 5f 6f  k).if test $tk_o
0670: 6b 20 3d 20 6e 6f 3b 20 74 68 65 6e 0a 20 20 20  k = no; then.   
0680: 20 41 43 5f 44 45 46 49 4e 45 28 4e 4f 5f 46 44   AC_DEFINE(NO_FD
0690: 5f 53 45 54 29 0a 66 69 0a 0a 23 2d 2d 2d 2d 2d  _SET).fi..#-----
06a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
06e0: 23 09 53 75 70 70 6c 79 20 61 20 73 75 62 73 74  #.Supply a subst
06f0: 69 74 75 74 65 20 66 6f 72 20 73 74 64 6c 69 62  itute for stdlib
0700: 2e 68 20 69 66 20 69 74 20 64 6f 65 73 6e 27 74  .h if it doesn't
0710: 20 64 65 66 69 6e 65 20 73 74 72 74 6f 6c 2c 0a   define strtol,.
0720: 23 09 73 74 72 74 6f 75 6c 2c 20 6f 72 20 73 74  #.strtoul, or st
0730: 72 74 6f 64 20 28 77 68 69 63 68 20 69 74 20 64  rtod (which it d
0740: 6f 65 73 6e 27 74 20 69 6e 20 73 6f 6d 65 20 76  oesn't in some v
0750: 65 72 73 69 6f 6e 73 20 6f 66 20 53 75 6e 4f 53  ersions of SunOS
0760: 29 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  )..#------------
0770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0780: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0790: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07a0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 4d 53 47  --------..AC_MSG
07b0: 5f 43 48 45 43 4b 49 4e 47 28 73 74 64 6c 69 62  _CHECKING(stdlib
07c0: 2e 68 29 0a 41 43 5f 48 45 41 44 45 52 5f 45 47  .h).AC_HEADER_EG
07d0: 52 45 50 28 73 74 72 74 6f 6c 2c 20 73 74 64 6c  REP(strtol, stdl
07e0: 69 62 2e 68 2c 20 74 6b 5f 6f 6b 3d 79 65 73 2c  ib.h, tk_ok=yes,
07f0: 20 74 6b 5f 6f 6b 3d 6e 6f 29 0a 41 43 5f 48 45   tk_ok=no).AC_HE
0800: 41 44 45 52 5f 45 47 52 45 50 28 73 74 72 74 6f  ADER_EGREP(strto
0810: 75 6c 2c 20 73 74 64 6c 69 62 2e 68 2c 20 2c 20  ul, stdlib.h, , 
0820: 74 6b 5f 6f 6b 3d 6e 6f 29 0a 41 43 5f 48 45 41  tk_ok=no).AC_HEA
0830: 44 45 52 5f 45 47 52 45 50 28 73 74 72 74 6f 64  DER_EGREP(strtod
0840: 2c 20 73 74 64 6c 69 62 2e 68 2c 20 2c 20 74 6b  , stdlib.h, , tk
0850: 5f 6f 6b 3d 6e 6f 29 0a 69 66 20 74 65 73 74 20  _ok=no).if test 
0860: 24 74 6b 5f 6f 6b 20 3d 20 6e 6f 3b 20 74 68 65  $tk_ok = no; the
0870: 6e 0a 20 20 20 20 41 43 5f 44 45 46 49 4e 45 28  n.    AC_DEFINE(
0880: 4e 4f 5f 53 54 44 4c 49 42 5f 48 29 0a 66 69 0a  NO_STDLIB_H).fi.
0890: 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 28 24 74  AC_MSG_RESULT($t
08a0: 6b 5f 6f 6b 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  k_ok)..#--------
08b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 43  ------------.#.C
08f0: 68 65 63 6b 20 66 6f 72 20 76 61 72 69 6f 75 73  heck for various
0900: 20 74 79 70 65 64 65 66 73 20 61 6e 64 20 70 72   typedefs and pr
0910: 6f 76 69 64 65 20 73 75 62 73 74 69 74 75 74 65  ovide substitute
0920: 73 20 69 66 0a 23 09 74 68 65 79 20 64 6f 6e 27  s if.#.they don'
0930: 74 20 65 78 69 73 74 2e 0a 23 2d 2d 2d 2d 2d 2d  t exist..#------
0940: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
0980: 41 43 5f 4d 4f 44 45 5f 54 0a 41 43 5f 50 49 44  AC_MODE_T.AC_PID
0990: 5f 54 0a 41 43 5f 53 49 5a 45 5f 54 0a 41 43 5f  _T.AC_SIZE_T.AC_
09a0: 55 49 44 5f 54 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  UID_T..#--------
09b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 4c  ------------.#.L
09f0: 6f 63 61 74 65 20 74 68 65 20 63 75 72 73 65 73  ocate the curses
0a00: 20 68 65 61 64 65 72 20 66 69 6c 65 73 20 61 6e   header files an
0a10: 64 20 74 68 65 20 63 75 72 73 65 73 20 6c 69 62  d the curses lib
0a20: 72 61 72 79 0a 23 09 61 72 63 68 69 76 65 2e 0a  rary.#.archive..
0a30: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
0a40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a70: 2d 2d 2d 2d 2d 0a 0a 67 6f 74 5f 69 74 3d 6e 6f  -----..got_it=no
0a80: 0a 69 66 20 74 65 73 74 20 24 77 69 74 68 5f 6e  .if test $with_n
0a90: 63 75 72 73 65 73 20 3d 20 79 65 73 3b 20 74 68  curses = yes; th
0aa0: 65 6e 0a 20 20 20 20 41 43 5f 43 48 45 43 4b 5f  en.    AC_CHECK_
0ab0: 4c 49 42 28 6e 63 75 72 73 65 73 2c 20 69 6e 69  LIB(ncurses, ini
0ac0: 74 73 63 72 2c 0a 09 20 20 20 20 5b 4c 49 42 53  tscr,..    [LIBS
0ad0: 3d 22 24 4c 49 42 53 20 2d 6c 6e 63 75 72 73 65  ="$LIBS -lncurse
0ae0: 73 22 3b 20 67 6f 74 5f 69 74 3d 79 65 73 5d 29  s"; got_it=yes])
0af0: 0a 65 6c 73 65 0a 20 20 20 20 41 43 5f 43 48 45  .else.    AC_CHE
0b00: 43 4b 5f 4c 49 42 28 63 75 72 73 65 73 2c 20 69  CK_LIB(curses, i
0b10: 6e 69 74 73 63 72 2c 0a 09 20 20 20 20 5b 4c 49  nitscr,..    [LI
0b20: 42 53 3d 22 24 4c 49 42 53 20 2d 6c 63 75 72 73  BS="$LIBS -lcurs
0b30: 65 73 22 3b 20 67 6f 74 5f 69 74 3d 79 65 73 5d  es"; got_it=yes]
0b40: 2c 0a 09 20 20 20 20 5b 75 6e 73 65 74 20 61 63  ,..    [unset ac
0b50: 5f 63 76 5f 6c 69 62 5f 63 75 72 73 65 73 0a 09  _cv_lib_curses..
0b60: 20 20 20 20 41 43 5f 43 48 45 43 4b 5f 4c 49 42      AC_CHECK_LIB
0b70: 28 63 75 72 73 65 73 2c 20 69 6e 69 74 73 63 72  (curses, initscr
0b80: 2c 0a 09 09 20 20 20 20 5b 4c 49 42 53 3d 22 24  ,...    [LIBS="$
0b90: 4c 49 42 53 20 2d 6c 63 75 72 73 65 73 20 2d 6c  LIBS -lcurses -l
0ba0: 74 65 72 6d 63 61 70 22 3b 20 67 6f 74 5f 69 74  termcap"; got_it
0bb0: 3d 79 65 73 5d 2c 0a 09 09 20 20 20 20 2c 0a 09  =yes],...    ,..
0bc0: 09 20 20 20 20 5b 2d 6c 74 65 72 6d 63 61 70 5d  .    [-ltermcap]
0bd0: 29 5d 20 29 0a 66 69 0a 69 66 20 74 65 73 74 20  )] ).fi.if test 
0be0: 24 67 6f 74 5f 69 74 20 3d 20 6e 6f 3b 20 74 68  $got_it = no; th
0bf0: 65 6e 0a 20 20 20 20 41 43 5f 4d 53 47 5f 57 41  en.    AC_MSG_WA
0c00: 52 4e 28 63 6f 75 6c 64 6e 27 74 20 66 69 6e 64  RN(couldn't find
0c10: 20 63 75 72 73 65 73 20 6c 69 62 72 61 72 79 20   curses library 
0c20: 61 72 63 68 69 76 65 29 0a 20 20 20 20 41 43 5f  archive).    AC_
0c30: 4d 53 47 5f 57 41 52 4e 28 77 69 6c 6c 20 6e 6f  MSG_WARN(will no
0c40: 74 20 62 65 20 61 62 6c 65 20 74 6f 20 70 72 6f  t be able to pro
0c50: 70 65 72 6c 79 20 64 65 74 65 72 6d 69 6e 65 20  perly determine 
0c60: 63 75 72 73 65 73 20 63 61 70 61 62 69 6c 69 74  curses capabilit
0c70: 69 65 73 29 0a 66 69 0a 0a 41 43 5f 4d 53 47 5f  ies).fi..AC_MSG_
0c80: 43 48 45 43 4b 49 4e 47 28 5b 63 75 72 73 65 73  CHECKING([curses
0c90: 20 68 65 61 64 65 72 20 66 69 6c 65 5d 29 0a 67   header file]).g
0ca0: 6f 74 5f 69 74 3d 6e 6f 0a 69 66 20 74 65 73 74  ot_it=no.if test
0cb0: 20 24 77 69 74 68 5f 6e 63 75 72 73 65 73 20 3d   $with_ncurses =
0cc0: 20 79 65 73 3b 20 74 68 65 6e 0a 20 20 20 20 41   yes; then.    A
0cd0: 43 5f 54 52 59 5f 43 50 50 28 5b 23 69 6e 63 6c  C_TRY_CPP([#incl
0ce0: 75 64 65 20 3c 6e 63 75 72 73 65 73 2e 68 3e 5d  ude <ncurses.h>]
0cf0: 2c 0a 09 20 20 20 20 5b 67 6f 74 5f 69 74 3d 6e  ,..    [got_it=n
0d00: 63 75 72 73 65 73 2e 68 3b 20 41 43 5f 44 45 46  curses.h; AC_DEF
0d10: 49 4e 45 28 55 53 45 5f 4e 43 55 52 53 45 53 5f  INE(USE_NCURSES_
0d20: 48 29 5d 29 0a 66 69 0a 69 66 20 74 65 73 74 20  H)]).fi.if test 
0d30: 24 67 6f 74 5f 69 74 20 3d 20 6e 6f 3b 20 74 68  $got_it = no; th
0d40: 65 6e 0a 20 20 20 20 41 43 5f 54 52 59 5f 43 50  en.    AC_TRY_CP
0d50: 50 28 5b 23 69 6e 63 6c 75 64 65 20 3c 63 75 72  P([#include <cur
0d60: 73 65 73 2e 68 3e 5d 2c 20 67 6f 74 5f 69 74 3d  ses.h>], got_it=
0d70: 63 75 72 73 65 73 2e 68 29 0a 66 69 0a 69 66 20  curses.h).fi.if 
0d80: 74 65 73 74 20 24 67 6f 74 5f 69 74 20 3d 20 6e  test $got_it = n
0d90: 6f 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f 4d  o; then.    AC_M
0da0: 53 47 5f 57 41 52 4e 28 63 6f 75 6c 64 6e 27 74  SG_WARN(couldn't
0db0: 20 66 69 6e 64 20 63 75 72 73 65 73 20 69 6e 63   find curses inc
0dc0: 6c 75 64 65 20 66 69 6c 65 29 0a 66 69 0a 41 43  lude file).fi.AC
0dd0: 5f 4d 53 47 5f 52 45 53 55 4c 54 28 24 67 6f 74  _MSG_RESULT($got
0de0: 5f 69 74 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  _it)..#---------
0df0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 43 68  -----------.#.Ch
0e30: 65 63 6b 20 74 68 65 20 63 75 72 73 65 73 20 6c  eck the curses l
0e40: 69 62 72 61 72 79 20 66 65 61 74 75 72 65 73 2e  ibrary features.
0e50: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0e60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e90: 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 48 41 56 45 5f  ------..AC_HAVE_
0ea0: 46 55 4e 43 53 28 63 75 72 73 5f 73 65 74 20 73  FUNCS(curs_set s
0eb0: 65 74 5f 74 65 72 6d 20 62 65 65 70 20 6b 65 79  et_term beep key
0ec0: 70 61 64 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  pad)..#---------
0ed0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ee0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ef0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 43 68  -----------.#.Ch
0f10: 65 63 6b 20 74 6f 20 73 65 65 20 77 68 65 74 68  eck to see wheth
0f20: 65 72 20 74 68 65 20 73 79 73 74 65 6d 20 73 75  er the system su
0f30: 70 70 6f 72 74 73 20 74 68 65 20 6d 61 74 68 65  pports the mathe
0f40: 72 72 20 66 75 6e 63 74 69 6f 6e 0a 23 09 61 6e  rr function.#.an
0f50: 64 20 69 74 73 20 61 73 73 6f 63 69 61 74 65 64  d its associated
0f60: 20 74 79 70 65 20 22 73 74 72 75 63 74 20 65 78   type "struct ex
0f70: 63 65 70 74 69 6f 6e 22 2e 0a 23 2d 2d 2d 2d 2d  ception"..#-----
0f80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
0fc0: 0a 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47  .AC_MSG_CHECKING
0fd0: 28 5b 6d 61 74 68 65 72 72 20 73 75 70 70 6f 72  ([matherr suppor
0fe0: 74 5d 29 0a 41 43 5f 54 52 59 5f 43 4f 4d 50 49  t]).AC_TRY_COMPI
0ff0: 4c 45 28 5b 23 69 6e 63 6c 75 64 65 20 3c 6d 61  LE([#include <ma
1000: 74 68 2e 68 3e 5d 2c 20 5b 0a 73 74 72 75 63 74  th.h>], [.struct
1010: 20 65 78 63 65 70 74 69 6f 6e 20 78 3b 0a 78 2e   exception x;.x.
1020: 74 79 70 65 20 3d 20 44 4f 4d 41 49 4e 3b 0a 78  type = DOMAIN;.x
1030: 2e 74 79 70 65 20 3d 20 53 49 4e 47 3b 0a 5d 2c  .type = SING;.],
1040: 20 74 6b 5f 6f 6b 3d 79 65 73 2c 20 74 6b 5f 6f   tk_ok=yes, tk_o
1050: 6b 3d 6e 6f 29 0a 41 43 5f 4d 53 47 5f 52 45 53  k=no).AC_MSG_RES
1060: 55 4c 54 28 24 74 6b 5f 6f 6b 29 0a 69 66 20 74  ULT($tk_ok).if t
1070: 65 73 74 20 24 74 6b 5f 6f 6b 20 3d 20 79 65 73  est $tk_ok = yes
1080: 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f 44 45  ; then.    AC_DE
1090: 46 49 4e 45 28 4e 45 45 44 5f 4d 41 54 48 45 52  FINE(NEED_MATHER
10a0: 52 29 0a 66 69 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  R).fi..#--------
10b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 46  ------------.#.F
10f0: 69 67 75 72 65 20 6f 75 74 20 68 6f 77 20 74 6f  igure out how to
1100: 20 66 69 6e 64 20 6f 75 74 20 77 68 65 74 68 65   find out whethe
1110: 72 20 61 20 46 49 4c 45 20 73 74 72 75 63 74 75  r a FILE structu
1120: 72 65 20 63 6f 6e 74 61 69 6e 73 0a 23 09 62 75  re contains.#.bu
1130: 66 66 65 72 65 64 20 72 65 61 64 61 62 6c 65 20  ffered readable 
1140: 64 61 74 61 2e 20 20 53 6f 6d 65 20 6b 6e 6f 77  data.  Some know
1150: 6e 20 6e 61 6d 65 73 20 66 6f 72 20 74 68 65 20  n names for the 
1160: 63 6f 75 6e 74 20 66 69 65 6c 64 3a 0a 23 09 09  count field:.#..
1170: 5f 63 6e 74 3a 09 09 4d 6f 73 74 20 55 4e 49 58  _cnt:..Most UNIX
1180: 20 73 79 73 74 65 6d 73 0a 23 09 09 5f 5f 63 6e   systems.#..__cn
1190: 74 3a 09 09 48 50 55 58 0a 23 09 09 5f 72 3a 09  t:..HPUX.#.._r:.
11a0: 09 42 53 44 0a 23 09 09 72 65 61 64 43 6f 75 6e  .BSD.#..readCoun
11b0: 74 3a 09 53 70 72 69 74 65 0a 23 09 4f 72 2c 20  t:.Sprite.#.Or, 
11c0: 69 6e 20 47 4e 55 20 6c 69 62 63 20 74 68 65 72  in GNU libc ther
11d0: 65 20 61 72 65 20 74 77 6f 20 66 69 65 6c 64 73  e are two fields
11e0: 2c 20 5f 67 70 74 72 20 61 6e 64 20 5f 65 67 70  , _gptr and _egp
11f0: 74 72 2c 20 77 68 69 63 68 0a 23 09 68 61 76 65  tr, which.#.have
1200: 20 74 6f 20 62 65 20 63 6f 6d 70 61 72 65 64 2e   to be compared.
1210: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
1220: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1230: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1240: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1250: 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 4d 53 47 5f 43  ------..AC_MSG_C
1260: 48 45 43 4b 49 4e 47 28 5b 63 6f 75 6e 74 20 66  HECKING([count f
1270: 69 65 6c 64 20 69 6e 20 46 49 4c 45 20 73 74 72  ield in FILE str
1280: 75 63 74 75 72 65 73 5d 29 0a 41 43 5f 54 52 59  uctures]).AC_TRY
1290: 5f 43 4f 4d 50 49 4c 45 28 5b 23 69 6e 63 6c 75  _COMPILE([#inclu
12a0: 64 65 20 3c 73 74 64 69 6f 2e 68 3e 5d 2c 0a 09  de <stdio.h>],..
12b0: 5b 46 49 4c 45 20 2a 66 20 3d 20 73 74 64 69 6e  [FILE *f = stdin
12c0: 3b 20 66 2d 3e 5f 63 6e 74 20 3d 20 30 3b 5d 2c  ; f->_cnt = 0;],
12d0: 20 66 63 6e 74 3d 22 5f 63 6e 74 22 2c 20 29 0a   fcnt="_cnt", ).
12e0: 69 66 20 74 65 73 74 20 22 24 66 63 6e 74 22 20  if test "$fcnt" 
12f0: 3d 20 22 22 3b 20 74 68 65 6e 0a 20 20 20 20 41  = ""; then.    A
1300: 43 5f 54 52 59 5f 43 4f 4d 50 49 4c 45 28 5b 23  C_TRY_COMPILE([#
1310: 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e 68  include <stdio.h
1320: 3e 5d 2c 0a 09 5b 46 49 4c 45 20 2a 66 20 3d 20  >],..[FILE *f = 
1330: 73 74 64 69 6e 3b 20 66 2d 3e 5f 5f 63 6e 74 20  stdin; f->__cnt 
1340: 3d 20 30 3b 5d 2c 20 66 63 6e 74 3d 22 5f 5f 63  = 0;], fcnt="__c
1350: 6e 74 22 2c 20 29 0a 66 69 0a 69 66 20 74 65 73  nt", ).fi.if tes
1360: 74 20 22 24 66 63 6e 74 22 20 3d 20 22 22 3b 20  t "$fcnt" = ""; 
1370: 74 68 65 6e 0a 20 20 20 20 41 43 5f 54 52 59 5f  then.    AC_TRY_
1380: 43 4f 4d 50 49 4c 45 28 5b 23 69 6e 63 6c 75 64  COMPILE([#includ
1390: 65 20 3c 73 74 64 69 6f 2e 68 3e 5d 2c 0a 09 5b  e <stdio.h>],..[
13a0: 46 49 4c 45 20 2a 66 20 3d 20 73 74 64 69 6e 3b  FILE *f = stdin;
13b0: 20 66 2d 3e 5f 72 20 3d 20 30 3b 5d 2c 20 66 63   f->_r = 0;], fc
13c0: 6e 74 3d 22 5f 72 22 2c 20 29 0a 66 69 0a 69 66  nt="_r", ).fi.if
13d0: 20 74 65 73 74 20 22 24 66 63 6e 74 22 20 3d 20   test "$fcnt" = 
13e0: 22 22 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f  ""; then.    AC_
13f0: 54 52 59 5f 43 4f 4d 50 49 4c 45 28 5b 23 69 6e  TRY_COMPILE([#in
1400: 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e 68 3e 5d  clude <stdio.h>]
1410: 2c 0a 09 5b 46 49 4c 45 20 2a 66 20 3d 20 73 74  ,..[FILE *f = st
1420: 64 69 6e 3b 20 66 2d 3e 72 65 61 64 43 6f 75 6e  din; f->readCoun
1430: 74 20 3d 20 30 3b 5d 2c 20 66 63 6e 74 3d 22 72  t = 0;], fcnt="r
1440: 65 61 64 43 6f 75 6e 74 22 2c 20 29 0a 66 69 0a  eadCount", ).fi.
1450: 69 66 20 74 65 73 74 20 22 24 66 63 6e 74 22 20  if test "$fcnt" 
1460: 21 3d 20 22 22 3b 20 74 68 65 6e 0a 20 20 20 20  != ""; then.    
1470: 41 43 5f 44 45 46 49 4e 45 5f 55 4e 51 55 4f 54  AC_DEFINE_UNQUOT
1480: 45 44 28 54 4b 5f 46 49 4c 45 5f 43 4f 55 4e 54  ED(TK_FILE_COUNT
1490: 2c 20 24 66 63 6e 74 29 0a 66 69 0a 69 66 20 74  , $fcnt).fi.if t
14a0: 65 73 74 20 22 24 66 63 6e 74 22 20 3d 20 22 22  est "$fcnt" = ""
14b0: 3b 20 74 68 65 6e 0a 20 20 20 20 41 43 5f 54 52  ; then.    AC_TR
14c0: 59 5f 43 4f 4d 50 49 4c 45 28 5b 23 69 6e 63 6c  Y_COMPILE([#incl
14d0: 75 64 65 20 3c 73 74 64 69 6f 2e 68 3e 5d 2c 0a  ude <stdio.h>],.
14e0: 09 5b 46 49 4c 45 20 2a 66 20 3d 20 73 74 64 69  .[FILE *f = stdi
14f0: 6e 3b 20 66 2d 3e 5f 67 70 74 72 20 3d 20 66 2d  n; f->_gptr = f-
1500: 3e 5f 65 67 70 74 72 3b 5d 2c 0a 09 74 6b 5f 6f  >_egptr;],..tk_o
1510: 6b 3d 79 65 73 2c 20 74 6b 5f 6f 6b 3d 6e 6f 29  k=yes, tk_ok=no)
1520: 0a 20 20 20 20 69 66 20 74 65 73 74 20 24 74 6b  .    if test $tk
1530: 5f 6f 6b 20 3d 20 79 65 73 3b 20 74 68 65 6e 0a  _ok = yes; then.
1540: 09 41 43 5f 44 45 46 49 4e 45 28 54 4b 5f 46 49  .AC_DEFINE(TK_FI
1550: 4c 45 5f 47 50 54 52 29 0a 09 66 63 6e 74 3d 22  LE_GPTR)..fcnt="
1560: 5f 67 70 74 72 2f 5f 65 67 70 74 72 22 0a 20 20  _gptr/_egptr".  
1570: 20 20 66 69 0a 66 69 0a 69 66 20 74 65 73 74 20    fi.fi.if test 
1580: 22 24 66 63 6e 74 22 20 3d 20 22 22 3b 20 74 68  "$fcnt" = ""; th
1590: 65 6e 0a 20 20 20 20 41 43 5f 54 52 59 5f 43 4f  en.    AC_TRY_CO
15a0: 4d 50 49 4c 45 28 5b 23 69 6e 63 6c 75 64 65 20  MPILE([#include 
15b0: 3c 73 74 64 69 6f 2e 68 3e 5d 2c 0a 09 5b 46 49  <stdio.h>],..[FI
15c0: 4c 45 20 2a 66 20 3d 20 73 74 64 69 6e 3b 20 66  LE *f = stdin; f
15d0: 2d 3e 5f 49 4f 5f 72 65 61 64 5f 70 74 72 20 3d  ->_IO_read_ptr =
15e0: 20 66 2d 3e 5f 49 4f 5f 72 65 61 64 5f 65 6e 64   f->_IO_read_end
15f0: 3b 5d 2c 0a 09 74 6b 5f 6f 6b 3d 79 65 73 2c 20  ;],..tk_ok=yes, 
1600: 74 6b 5f 6f 6b 3d 6e 6f 29 0a 20 20 20 20 69 66  tk_ok=no).    if
1610: 20 74 65 73 74 20 24 74 6b 5f 6f 6b 20 3d 20 79   test $tk_ok = y
1620: 65 73 3b 20 74 68 65 6e 0a 09 41 43 5f 44 45 46  es; then..AC_DEF
1630: 49 4e 45 28 54 4b 5f 46 49 4c 45 5f 52 45 41 44  INE(TK_FILE_READ
1640: 5f 50 54 52 29 0a 09 66 63 6e 74 3d 22 5f 49 4f  _PTR)..fcnt="_IO
1650: 5f 72 65 61 64 5f 70 74 72 2f 5f 49 4f 5f 72 65  _read_ptr/_IO_re
1660: 61 64 5f 65 6e 64 22 0a 20 20 20 20 66 69 0a 66  ad_end".    fi.f
1670: 69 0a 69 66 20 74 65 73 74 20 22 24 66 63 6e 74  i.if test "$fcnt
1680: 22 20 3d 20 22 22 3b 20 74 68 65 6e 0a 20 20 20  " = ""; then.   
1690: 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 28 5b   AC_MSG_RESULT([
16a0: 6e 6f 74 20 66 6f 75 6e 64 3b 20 6d 75 73 74 20  not found; must 
16b0: 73 75 70 70 6c 79 20 54 6b 52 65 61 64 44 61 74  supply TkReadDat
16c0: 61 50 65 6e 64 69 6e 67 20 70 72 6f 63 65 64 75  aPending procedu
16d0: 72 65 5d 29 0a 65 6c 73 65 0a 20 20 20 20 41 43  re]).else.    AC
16e0: 5f 4d 53 47 5f 52 45 53 55 4c 54 28 22 24 66 63  _MSG_RESULT("$fc
16f0: 6e 74 22 29 0a 66 69 0a 0a 23 2d 2d 2d 2d 2d 2d  nt").fi..#------
1700: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1710: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1720: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1730: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23  --------------.#
1740: 09 4f 6e 20 61 20 66 65 77 20 76 65 72 79 20 72  .On a few very r
1750: 61 72 65 20 73 79 73 74 65 6d 73 2c 20 61 6c 6c  are systems, all
1760: 20 6f 66 20 74 68 65 20 6c 69 62 6d 2e 61 20 73   of the libm.a s
1770: 74 75 66 66 20 69 73 0a 23 09 61 6c 72 65 61 64  tuff is.#.alread
1780: 79 20 69 6e 20 6c 69 62 63 2e 61 2e 20 20 53 65  y in libc.a.  Se
1790: 74 20 63 6f 6d 70 69 6c 65 72 20 66 6c 61 67 73  t compiler flags
17a0: 20 61 63 63 6f 72 64 69 6e 67 6c 79 2e 0a 23 09   accordingly..#.
17b0: 41 6c 73 6f 2c 20 4c 69 6e 75 78 20 72 65 71 75  Also, Linux requ
17c0: 69 72 65 73 20 74 68 65 20 22 69 65 65 65 22 20  ires the "ieee" 
17d0: 6c 69 62 72 61 72 79 20 66 6f 72 20 6d 61 74 68  library for math
17e0: 20 74 6f 0a 23 09 77 6f 72 6b 20 72 69 67 68 74   to.#.work right
17f0: 20 28 61 6e 64 20 69 74 20 6d 75 73 74 20 61 70   (and it must ap
1800: 70 65 61 72 20 62 65 66 6f 72 65 20 22 2d 6c 6d  pear before "-lm
1810: 22 29 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ")..#-----------
1820: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1830: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1840: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1850: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 43 48  ---------..AC_CH
1860: 45 43 4b 5f 46 55 4e 43 28 73 69 6e 2c 20 2c 20  ECK_FUNC(sin, , 
1870: 5b 4c 49 42 53 3d 22 2d 6c 6d 20 24 4c 49 42 53  [LIBS="-lm $LIBS
1880: 22 5d 29 0a 41 43 5f 43 48 45 43 4b 5f 4c 49 42  "]).AC_CHECK_LIB
1890: 28 69 65 65 65 2c 20 6d 61 69 6e 2c 20 5b 4c 49  (ieee, main, [LI
18a0: 42 53 3d 22 2d 6c 69 65 65 65 20 24 4c 49 42 53  BS="-lieee $LIBS
18b0: 22 5d 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  "])..#----------
18c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 41 70 70  ----------.#.App
1900: 61 72 65 6e 74 6c 79 20 53 43 4f 20 72 65 71 75  arently SCO requ
1910: 69 72 65 73 20 2d 6c 73 6f 63 6b 65 74 20 66 6f  ires -lsocket fo
1920: 72 20 74 68 65 20 67 65 74 74 69 6d 65 6f 66 64  r the gettimeofd
1930: 61 79 28 29 0a 23 09 66 75 6e 63 74 69 6f 6e 2e  ay().#.function.
1940: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
1950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1980: 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 43 48 45 43 4b  ------..AC_CHECK
1990: 5f 46 55 4e 43 28 67 65 74 74 69 6d 65 6f 66 64  _FUNC(gettimeofd
19a0: 61 79 2c 20 2c 20 5b 4c 49 42 53 3d 22 2d 6c 73  ay, , [LIBS="-ls
19b0: 6f 63 6b 65 74 20 24 4c 49 42 53 22 5d 29 0a 0a  ocket $LIBS"])..
19c0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
19d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
19f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a00: 2d 2d 2d 2d 2d 0a 23 09 49 66 20 74 68 69 73 20  -----.#.If this 
1a10: 73 79 73 74 65 6d 20 64 6f 65 73 6e 27 74 20 68  system doesn't h
1a20: 61 76 65 20 61 20 6d 65 6d 6d 6f 76 65 20 70 72  ave a memmove pr
1a30: 6f 63 65 64 75 72 65 2c 20 75 73 65 20 6d 65 6d  ocedure, use mem
1a40: 63 70 79 0a 23 09 69 6e 73 74 65 61 64 2e 0a 23  cpy.#.instead..#
1a50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a90: 2d 2d 2d 2d 0a 0a 41 43 5f 43 48 45 43 4b 5f 46  ----..AC_CHECK_F
1aa0: 55 4e 43 28 6d 65 6d 6d 6f 76 65 2c 20 2c 20 5b  UNC(memmove, , [
1ab0: 41 43 5f 44 45 46 49 4e 45 28 6d 65 6d 6d 6f 76  AC_DEFINE(memmov
1ac0: 65 2c 20 6d 65 6d 63 70 79 29 5d 29 0a 0a 23 2d  e, memcpy)])..#-
1ad0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ae0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1af0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b10: 2d 2d 2d 0a 23 09 46 69 67 75 72 65 20 6f 75 74  ---.#.Figure out
1b20: 20 77 68 65 74 68 65 72 20 22 63 68 61 72 22 20   whether "char" 
1b30: 69 73 20 75 6e 73 69 67 6e 65 64 2e 20 20 49 66  is unsigned.  If
1b40: 20 73 6f 2c 20 73 65 74 20 61 0a 23 09 23 64 65   so, set a.#.#de
1b50: 66 69 6e 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  fine..#---------
1b60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f  -----------..AC_
1ba0: 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28 74 79 70  MSG_CHECKING(typ
1bb0: 65 20 6f 66 20 22 63 68 61 72 22 29 0a 41 43 5f  e of "char").AC_
1bc0: 54 52 59 5f 52 55 4e 28 5b 0a 69 6e 74 20 6d 61  TRY_RUN([.int ma
1bd0: 69 6e 28 29 0a 7b 0a 20 20 20 20 63 68 61 72 20  in().{.    char 
1be0: 63 3b 0a 20 20 20 20 69 6e 74 20 69 3b 0a 20 20  c;.    int i;.  
1bf0: 20 20 63 20 3d 20 30 33 37 37 3b 0a 20 20 20 20    c = 0377;.    
1c00: 69 20 3d 20 63 3b 0a 20 20 20 20 69 66 20 28 69  i = c;.    if (i
1c10: 20 3d 3d 20 2d 31 29 20 7b 0a 09 65 78 69 74 28   == -1) {..exit(
1c20: 30 29 3b 0a 20 20 20 20 7d 0a 20 20 20 20 65 78  0);.    }.    ex
1c30: 69 74 28 31 29 3b 0a 7d 5d 2c 20 74 6b 5f 73 69  it(1);.}], tk_si
1c40: 67 6e 65 64 3d 31 2c 20 74 6b 5f 73 69 67 6e 65  gned=1, tk_signe
1c50: 64 3d 30 29 0a 69 66 20 74 65 73 74 20 24 74 6b  d=0).if test $tk
1c60: 5f 73 69 67 6e 65 64 20 3d 20 30 3b 20 74 68 65  _signed = 0; the
1c70: 6e 0a 20 20 20 20 41 43 5f 44 45 46 49 4e 45 28  n.    AC_DEFINE(
1c80: 43 48 41 52 5f 55 4e 53 49 47 4e 45 44 29 0a 20  CHAR_UNSIGNED). 
1c90: 20 20 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54     AC_MSG_RESULT
1ca0: 28 75 6e 73 69 67 6e 65 64 29 0a 65 6c 73 65 0a  (unsigned).else.
1cb0: 20 20 20 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c      AC_MSG_RESUL
1cc0: 54 28 73 69 67 6e 65 64 29 0a 66 69 0a 0a 23 2d  T(signed).fi..#-
1cd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ce0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1cf0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1d10: 2d 2d 2d 0a 23 09 53 47 49 20 73 79 73 74 65 6d  ---.#.SGI system
1d20: 73 20 64 6f 6e 27 74 20 75 73 65 20 74 68 65 20  s don't use the 
1d30: 42 53 44 20 66 6f 72 6d 20 6f 66 20 74 68 65 20  BSD form of the 
1d40: 67 65 74 74 69 6d 65 6f 66 64 61 79 20 66 75 6e  gettimeofday fun
1d50: 63 74 69 6f 6e 2c 0a 23 09 62 75 74 20 74 68 65  ction,.#.but the
1d60: 79 20 68 61 76 65 20 61 20 42 53 44 67 65 74 74  y have a BSDgett
1d70: 69 6d 65 6f 66 64 61 79 20 66 75 6e 63 74 69 6f  imeofday functio
1d80: 6e 20 74 68 61 74 20 63 61 6e 20 62 65 20 75 73  n that can be us
1d90: 65 64 20 69 6e 73 74 65 61 64 2e 0a 23 0a 23 09  ed instead..#.#.
1da0: 41 6c 73 6f 2c 20 63 68 65 63 6b 20 66 6f 72 20  Also, check for 
1db0: 74 68 65 20 65 78 69 73 74 65 6e 63 65 20 6f 66  the existence of
1dc0: 20 61 20 67 65 74 74 69 6d 65 6f 66 64 61 79 20   a gettimeofday 
1dd0: 64 65 63 6c 61 72 61 74 69 6f 6e 2c 0a 23 09 74  declaration,.#.t
1de0: 6f 20 74 6b 50 6f 72 74 2e 68 20 63 61 6e 20 64  o tkPort.h can d
1df0: 65 63 6c 61 72 65 20 69 74 20 69 66 20 69 74 20  eclare it if it 
1e00: 69 73 6e 27 74 20 61 6c 72 65 61 64 79 20 64 65  isn't already de
1e10: 63 6c 61 72 65 64 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  clared..#-------
1e20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1e50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41  -------------..A
1e60: 43 5f 43 48 45 43 4b 5f 46 55 4e 43 28 42 53 44  C_CHECK_FUNC(BSD
1e70: 67 65 74 74 69 6d 65 6f 66 64 61 79 2c 20 41 43  gettimeofday, AC
1e80: 5f 44 45 46 49 4e 45 28 48 41 56 45 5f 42 53 44  _DEFINE(HAVE_BSD
1e90: 47 45 54 54 49 4d 45 4f 46 44 41 59 29 29 0a 41  GETTIMEOFDAY)).A
1ea0: 43 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28 5b  C_MSG_CHECKING([
1eb0: 66 6f 72 20 67 65 74 74 69 6d 65 6f 66 64 61 79  for gettimeofday
1ec0: 20 64 65 63 6c 61 72 61 74 69 6f 6e 5d 29 0a 41   declaration]).A
1ed0: 43 5f 45 47 52 45 50 5f 48 45 41 44 45 52 28 67  C_EGREP_HEADER(g
1ee0: 65 74 74 69 6d 65 6f 66 64 61 79 2c 20 73 79 73  ettimeofday, sys
1ef0: 2f 74 69 6d 65 2e 68 2c 20 41 43 5f 4d 53 47 5f  /time.h, AC_MSG_
1f00: 52 45 53 55 4c 54 28 70 72 65 73 65 6e 74 29 2c  RESULT(present),
1f10: 20 5b 0a 20 20 20 20 41 43 5f 4d 53 47 5f 52 45   [.    AC_MSG_RE
1f20: 53 55 4c 54 28 6d 69 73 73 69 6e 67 29 0a 20 20  SULT(missing).  
1f30: 20 20 41 43 5f 44 45 46 49 4e 45 28 47 45 54 54    AC_DEFINE(GETT
1f40: 4f 44 5f 4e 4f 54 5f 44 45 43 4c 41 52 45 44 29  OD_NOT_DECLARED)
1f50: 0a 5d 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .])..#----------
1f60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 09 55 6e 64  ----------.#.Und
1fa0: 65 72 20 53 6f 6c 61 72 69 73 20 32 2e 34 2c 20  er Solaris 2.4, 
1fb0: 73 74 72 74 6f 64 20 72 65 74 75 72 6e 73 20 74  strtod returns t
1fc0: 68 65 20 77 72 6f 6e 67 20 76 61 6c 75 65 20 66  he wrong value f
1fd0: 6f 72 20 74 68 65 0a 23 09 74 65 72 6d 69 6e 61  or the.#.termina
1fe0: 74 69 6e 67 20 63 68 61 72 61 63 74 65 72 20 75  ting character u
1ff0: 6e 64 65 72 20 73 6f 6d 65 20 63 6f 6e 64 69 74  nder some condit
2000: 69 6f 6e 73 2e 20 20 43 68 65 63 6b 20 66 6f 72  ions.  Check for
2010: 20 74 68 69 73 0a 23 09 61 6e 64 20 69 66 20 74   this.#.and if t
2020: 68 65 20 70 72 6f 62 6c 65 6d 20 65 78 69 73 74  he problem exist
2030: 73 20 75 73 65 20 61 20 73 75 62 73 74 69 74 75  s use a substitu
2040: 74 65 20 70 72 6f 63 65 64 75 72 65 0a 23 09 22  te procedure.#."
2050: 66 69 78 73 74 72 74 6f 64 22 20 28 70 72 6f 76  fixstrtod" (prov
2060: 69 64 65 64 20 62 79 20 54 63 6c 29 20 74 68 61  ided by Tcl) tha
2070: 74 20 63 6f 72 72 65 63 74 73 20 74 68 65 20 65  t corrects the e
2080: 72 72 6f 72 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  rror..#---------
2090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
20a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
20b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
20c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f  -----------..AC_
20d0: 43 48 45 43 4b 5f 46 55 4e 43 28 73 74 72 74 6f  CHECK_FUNC(strto
20e0: 64 2c 20 74 6b 5f 73 74 72 74 6f 64 3d 31 2c 20  d, tk_strtod=1, 
20f0: 74 6b 5f 73 74 72 74 6f 64 3d 30 29 0a 69 66 20  tk_strtod=0).if 
2100: 74 65 73 74 20 22 24 74 6b 5f 73 74 72 74 6f 64  test "$tk_strtod
2110: 22 20 3d 20 31 3b 20 74 68 65 6e 0a 20 20 20 20  " = 1; then.    
2120: 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28  AC_MSG_CHECKING(
2130: 5b 66 6f 72 20 53 6f 6c 61 72 69 73 20 32 2e 34  [for Solaris 2.4
2140: 20 73 74 72 74 6f 64 20 62 75 67 5d 29 0a 20 20   strtod bug]).  
2150: 20 20 41 43 5f 54 52 59 5f 52 55 4e 28 5b 0a 09    AC_TRY_RUN([..
2160: 65 78 74 65 72 6e 20 64 6f 75 62 6c 65 20 73 74  extern double st
2170: 72 74 6f 64 28 29 3b 0a 09 69 6e 74 20 6d 61 69  rtod();..int mai
2180: 6e 28 29 0a 09 7b 0a 09 20 20 20 20 63 68 61 72  n()..{..    char
2190: 20 2a 73 74 72 69 6e 67 20 3d 20 22 4e 61 4e 22   *string = "NaN"
21a0: 3b 0a 09 20 20 20 20 63 68 61 72 20 2a 74 65 72  ;..    char *ter
21b0: 6d 3b 0a 09 20 20 20 20 73 74 72 74 6f 64 28 73  m;..    strtod(s
21c0: 74 72 69 6e 67 2c 20 26 74 65 72 6d 29 3b 0a 09  tring, &term);..
21d0: 20 20 20 20 69 66 20 28 28 74 65 72 6d 20 21 3d      if ((term !=
21e0: 20 73 74 72 69 6e 67 29 20 26 26 20 28 74 65 72   string) && (ter
21f0: 6d 5b 2d 31 5d 20 3d 3d 20 30 29 29 20 7b 0a 09  m[-1] == 0)) {..
2200: 09 65 78 69 74 28 31 29 3b 0a 09 20 20 20 20 7d  .exit(1);..    }
2210: 0a 09 20 20 20 20 65 78 69 74 28 30 29 3b 0a 09  ..    exit(0);..
2220: 7d 5d 2c 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c  }], AC_MSG_RESUL
2230: 54 28 6f 6b 29 2c 20 5b 0a 09 20 20 20 20 41 43  T(ok), [..    AC
2240: 5f 4d 53 47 5f 52 45 53 55 4c 54 28 62 75 67 67  _MSG_RESULT(bugg
2250: 79 29 0a 09 20 20 20 20 41 43 5f 44 45 46 49 4e  y)..    AC_DEFIN
2260: 45 28 73 74 72 74 6f 64 2c 20 66 69 78 73 74 72  E(strtod, fixstr
2270: 74 6f 64 29 0a 09 5d 29 0a 66 69 0a 0a 23 2d 2d  tod)..]).fi..#--
2280: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
22a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
22b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
22c0: 2d 2d 0a 23 09 4c 6f 63 61 74 65 20 74 68 65 20  --.#.Locate the 
22d0: 54 63 6c 20 68 65 61 64 65 72 20 66 69 6c 65 73  Tcl header files
22e0: 20 61 6e 64 20 74 68 65 20 54 63 6c 20 6c 69 62   and the Tcl lib
22f0: 72 61 72 79 0a 23 09 61 72 63 68 69 76 65 2e 0a  rary.#.archive..
2300: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
2310: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2320: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2330: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
2340: 2d 2d 2d 2d 2d 0a 0a 41 43 5f 44 45 46 49 4e 45  -----..AC_DEFINE
2350: 28 55 53 45 5f 54 43 4c 5f 53 54 55 42 53 2c 20  (USE_TCL_STUBS, 
2360: 5b 31 5d 29 0a 41 43 5f 43 48 45 43 4b 5f 4c 49  [1]).AC_CHECK_LI
2370: 42 28 74 63 6c 73 74 75 62 38 2e 35 2c 20 54 63  B(tclstub8.5, Tc
2380: 6c 5f 49 6e 69 74 53 74 75 62 73 2c 20 5b 4c 49  l_InitStubs, [LI
2390: 42 53 3d 22 2d 6c 74 63 6c 73 74 75 62 38 2e 35  BS="-ltclstub8.5
23a0: 20 24 4c 49 42 53 22 3b 20 67 6f 74 5f 69 74 3d   $LIBS"; got_it=
23b0: 79 65 73 5d 2c 0a 20 20 20 20 5b 41 43 5f 4d 53  yes],.    [AC_MS
23c0: 47 5f 57 41 52 4e 28 63 6f 75 6c 64 6e 27 74 20  G_WARN(couldn't 
23d0: 66 69 6e 64 20 74 63 6c 38 2e 30 20 6c 69 62 72  find tcl8.0 libr
23e0: 61 72 79 20 61 72 63 68 69 76 65 29 5d 20 29 0a  ary archive)] ).
23f0: 41 43 5f 54 52 59 5f 43 50 50 28 5b 23 69 6e 63  AC_TRY_CPP([#inc
2400: 6c 75 64 65 20 22 74 63 6c 2e 68 22 5d 2c 20 2c  lude "tcl.h"], ,
2410: 0a 20 20 20 20 5b 41 43 5f 4d 53 47 5f 57 41 52  .    [AC_MSG_WAR
2420: 4e 28 63 6f 75 6c 64 6e 27 74 20 66 69 6e 64 20  N(couldn't find 
2430: 74 63 6c 20 69 6e 63 6c 75 64 65 20 66 69 6c 65  tcl include file
2440: 29 5d 20 29 0a 0a 54 41 52 47 45 54 53 3d 27 6c  )] )..TARGETS='l
2450: 69 62 63 74 6b 2e 73 6f 27 0a 43 46 4c 41 47 53  ibctk.so'.CFLAGS
2460: 3d 22 24 7b 43 46 4c 41 47 53 7d 20 2d 66 50 49  ="${CFLAGS} -fPI
2470: 43 20 2d 44 50 49 43 22 0a 41 43 5f 53 55 42 53  C -DPIC".AC_SUBS
2480: 54 28 54 41 52 47 45 54 53 29 0a 0a 41 43 5f 4f  T(TARGETS)..AC_O
2490: 55 54 50 55 54 28 4d 61 6b 65 66 69 6c 65 29 0a  UTPUT(Makefile).