/ Hex Artifact Content
Login

Artifact 2893b823ecc86cea13739f6c8109a41392254d1db08235c5615e0af5722c8578:


0000: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0010: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0020: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0030: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0040: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53 75 70 70  ---------.# Supp
0050: 6f 72 74 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69  orts the followi
0060: 6e 67 20 6e 6f 6e 2d 73 74 61 6e 64 61 72 64 20  ng non-standard 
0070: 73 77 69 74 63 68 65 73 2e 0a 23 0a 23 20 20 20  switches..#.#   
0080: 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61 64 73  --enable-threads
0090: 61 66 65 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65  afe.#   --enable
00a0: 2d 72 65 61 64 6c 69 6e 65 0a 23 20 20 20 2d 2d  -readline.#   --
00b0: 65 6e 61 62 6c 65 2d 65 64 69 74 6c 69 6e 65 0a  enable-editline.
00c0: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 73 74 61  #   --enable-sta
00d0: 74 69 63 2d 73 68 65 6c 6c 0a 23 20 20 20 2d 2d  tic-shell.#   --
00e0: 65 6e 61 62 6c 65 2d 64 79 6e 61 6d 69 63 2d 65  enable-dynamic-e
00f0: 78 74 65 6e 73 69 6f 6e 73 0a 23 0a 0a 41 43 5f  xtensions.#..AC_
0100: 50 52 45 52 45 51 28 32 2e 36 31 29 0a 41 43 5f  PREREQ(2.61).AC_
0110: 49 4e 49 54 28 73 71 6c 69 74 65 2c 20 2d 2d 53  INIT(sqlite, --S
0120: 51 4c 49 54 45 2d 56 45 52 53 49 4f 4e 2d 2d 2c  QLITE-VERSION--,
0130: 20 68 74 74 70 3a 2f 2f 77 77 77 2e 73 71 6c 69   http://www.sqli
0140: 74 65 2e 6f 72 67 29 0a 41 43 5f 43 4f 4e 46 49  te.org).AC_CONFI
0150: 47 5f 53 52 43 44 49 52 28 5b 73 71 6c 69 74 65  G_SRCDIR([sqlite
0160: 33 2e 63 5d 29 0a 0a 23 20 55 73 65 20 61 75 74  3.c])..# Use aut
0170: 6f 6d 61 6b 65 2e 0a 41 4d 5f 49 4e 49 54 5f 41  omake..AM_INIT_A
0180: 55 54 4f 4d 41 4b 45 28 5b 66 6f 72 65 69 67 6e  UTOMAKE([foreign
0190: 5d 29 0a 0a 41 43 5f 53 59 53 5f 4c 41 52 47 45  ])..AC_SYS_LARGE
01a0: 46 49 4c 45 0a 0a 23 20 43 68 65 63 6b 20 66 6f  FILE..# Check fo
01b0: 72 20 72 65 71 75 69 72 65 64 20 70 72 6f 67 72  r required progr
01c0: 61 6d 73 2e 0a 41 43 5f 50 52 4f 47 5f 43 43 0a  ams..AC_PROG_CC.
01d0: 41 43 5f 50 52 4f 47 5f 4c 49 42 54 4f 4f 4c 0a  AC_PROG_LIBTOOL.
01e0: 41 43 5f 50 52 4f 47 5f 4d 4b 44 49 52 5f 50 0a  AC_PROG_MKDIR_P.
01f0: 0a 23 20 43 68 65 63 6b 20 66 6f 72 20 6c 69 62  .# Check for lib
0200: 72 61 72 79 20 66 75 6e 63 74 69 6f 6e 73 20 74  rary functions t
0210: 68 61 74 20 53 51 4c 69 74 65 20 63 61 6e 20 6f  hat SQLite can o
0220: 70 74 69 6f 6e 61 6c 6c 79 20 75 73 65 2e 0a 41  ptionally use..A
0230: 43 5f 43 48 45 43 4b 5f 46 55 4e 43 53 28 5b 66  C_CHECK_FUNCS([f
0240: 64 61 74 61 73 79 6e 63 20 75 73 6c 65 65 70 20  datasync usleep 
0250: 66 75 6c 6c 66 73 79 6e 63 20 6c 6f 63 61 6c 74  fullfsync localt
0260: 69 6d 65 5f 72 20 67 6d 74 69 6d 65 5f 72 5d 29  ime_r gmtime_r])
0270: 0a 41 43 5f 46 55 4e 43 5f 53 54 52 45 52 52 4f  .AC_FUNC_STRERRO
0280: 52 5f 52 0a 0a 41 43 5f 43 4f 4e 46 49 47 5f 46  R_R..AC_CONFIG_F
0290: 49 4c 45 53 28 5b 4d 61 6b 65 66 69 6c 65 20 73  ILES([Makefile s
02a0: 71 6c 69 74 65 33 2e 70 63 5d 29 0a 41 43 5f 53  qlite3.pc]).AC_S
02b0: 55 42 53 54 28 42 55 49 4c 44 5f 43 46 4c 41 47  UBST(BUILD_CFLAG
02c0: 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  S)..#-----------
02d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0300: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23  --------------.#
0310: 20 54 77 6f 20 6f 70 74 69 6f 6e 73 20 74 6f 20   Two options to 
0320: 65 6e 61 62 6c 65 20 72 65 61 64 6c 69 6e 65 20  enable readline 
0330: 63 6f 6d 70 61 74 69 62 6c 65 20 6c 69 62 72 61  compatible libra
0340: 72 69 65 73 3a 20 0a 23 0a 23 20 20 20 2d 2d 65  ries: .#.#   --e
0350: 6e 61 62 6c 65 2d 65 64 69 74 6c 69 6e 65 0a 23  nable-editline.#
0360: 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 72 65 61 64     --enable-read
0370: 6c 69 6e 65 0a 23 0a 23 20 42 6f 74 68 20 61 72  line.#.# Both ar
0380: 65 20 65 6e 61 62 6c 65 64 20 62 79 20 64 65 66  e enabled by def
0390: 61 75 6c 74 2e 20 49 66 2c 20 61 66 74 65 72 20  ault. If, after 
03a0: 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 70 72 6f  command line pro
03b0: 63 65 73 73 69 6e 67 20 62 6f 74 68 20 61 72 65  cessing both are
03c0: 0a 23 20 73 74 69 6c 6c 20 65 6e 61 62 6c 65 64  .# still enabled
03d0: 2c 20 74 68 65 20 73 63 72 69 70 74 20 73 65 61  , the script sea
03e0: 72 63 68 65 73 20 66 6f 72 20 65 64 69 74 6c 69  rches for editli
03f0: 6e 65 20 66 69 72 73 74 20 61 6e 64 20 61 75 74  ne first and aut
0400: 6f 6d 61 74 69 63 61 6c 6c 79 0a 23 20 64 69 73  omatically.# dis
0410: 61 62 6c 65 73 20 72 65 61 64 6c 69 6e 65 20 69  ables readline i
0420: 66 20 69 74 20 69 73 20 66 6f 75 6e 64 2e 20 53  f it is found. S
0430: 6f 2c 20 74 6f 20 75 73 65 20 72 65 61 64 6c 69  o, to use readli
0440: 6e 65 20 65 78 70 6c 69 63 69 74 6c 79 2c 20 74  ne explicitly, t
0450: 68 65 0a 23 20 75 73 65 72 20 6d 75 73 74 20 70  he.# user must p
0460: 61 73 73 20 22 2d 2d 64 69 73 61 62 6c 65 2d 65  ass "--disable-e
0470: 64 69 74 6c 69 6e 65 22 2e 20 54 6f 20 64 69 73  ditline". To dis
0480: 61 62 6c 65 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e  able command lin
0490: 65 20 65 64 69 74 69 6e 67 0a 23 20 73 75 70 70  e editing.# supp
04a0: 6f 72 74 20 61 6c 74 6f 67 65 74 68 65 72 2c 20  ort altogether, 
04b0: 22 2d 2d 64 69 73 61 62 6c 65 2d 65 64 69 74 6c  "--disable-editl
04c0: 69 6e 65 20 2d 2d 64 69 73 61 62 6c 65 2d 72 65  ine --disable-re
04d0: 61 64 6c 69 6e 65 22 2e 0a 23 0a 23 20 57 68 65  adline"..#.# Whe
04e0: 6e 20 73 65 61 72 63 68 69 6e 67 20 66 6f 72 20  n searching for 
04f0: 65 69 74 68 65 72 20 6c 69 62 72 61 72 79 2c 20  either library, 
0500: 63 68 65 63 6b 20 66 6f 72 20 68 65 61 64 65 72  check for header
0510: 73 20 62 65 66 6f 72 65 20 6c 69 62 72 61 72 69  s before librari
0520: 65 73 20 0a 23 20 61 73 20 73 6f 6d 65 20 64 69  es .# as some di
0530: 73 74 72 6f 73 20 73 75 70 70 6c 79 20 70 61 63  stros supply pac
0540: 6b 61 67 65 73 20 74 68 61 74 20 63 6f 6e 74 61  kages that conta
0550: 69 6e 20 6c 69 62 72 61 72 69 65 73 20 62 75 74  in libraries but
0560: 20 6e 6f 74 20 68 65 61 64 65 72 0a 23 20 66 69   not header.# fi
0570: 6c 65 73 2c 20 77 68 69 63 68 20 63 6f 6d 65 20  les, which come 
0580: 61 73 20 61 20 73 65 70 61 72 61 74 65 20 64 65  as a separate de
0590: 76 65 6c 6f 70 6d 65 6e 74 20 70 61 63 6b 61 67  velopment packag
05a0: 65 2e 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42  e..#.AC_ARG_ENAB
05b0: 4c 45 28 65 64 69 74 6c 69 6e 65 2c 20 5b 41 53  LE(editline, [AS
05c0: 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28 5b 2d 2d  _HELP_STRING([--
05d0: 65 6e 61 62 6c 65 2d 65 64 69 74 6c 69 6e 65 5d  enable-editline]
05e0: 2c 5b 75 73 65 20 42 53 44 20 6c 69 62 65 64 69  ,[use BSD libedi
05f0: 74 5d 29 5d 29 0a 41 43 5f 41 52 47 5f 45 4e 41  t])]).AC_ARG_ENA
0600: 42 4c 45 28 72 65 61 64 6c 69 6e 65 2c 20 5b 41  BLE(readline, [A
0610: 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28 5b 2d  S_HELP_STRING([-
0620: 2d 65 6e 61 62 6c 65 2d 72 65 61 64 6c 69 6e 65  -enable-readline
0630: 5d 2c 5b 75 73 65 20 72 65 61 64 6c 69 6e 65 5d  ],[use readline]
0640: 29 5d 29 0a 0a 41 53 5f 49 46 28 5b 20 74 65 73  )])..AS_IF([ tes
0650: 74 20 78 22 24 65 6e 61 62 6c 65 5f 65 64 69 74  t x"$enable_edit
0660: 6c 69 6e 65 22 20 21 3d 20 78 6e 6f 20 5d 2c 5b  line" != xno ],[
0670: 0a 20 20 41 43 5f 43 48 45 43 4b 5f 48 45 41 44  .  AC_CHECK_HEAD
0680: 45 52 53 28 5b 65 64 69 74 6c 69 6e 65 2f 72 65  ERS([editline/re
0690: 61 64 6c 69 6e 65 2e 68 5d 2c 5b 0a 20 20 20 20  adline.h],[.    
06a0: 73 4c 49 42 53 3d 24 4c 49 42 53 0a 20 20 20 20  sLIBS=$LIBS.    
06b0: 4c 49 42 53 3d 22 22 0a 20 20 20 20 41 43 5f 53  LIBS="".    AC_S
06c0: 45 41 52 43 48 5f 4c 49 42 53 28 5b 72 65 61 64  EARCH_LIBS([read
06d0: 6c 69 6e 65 5d 2c 5b 65 64 69 74 5d 2c 5b 0a 20  line],[edit],[. 
06e0: 20 20 20 20 20 41 43 5f 44 45 46 49 4e 45 28 5b       AC_DEFINE([
06f0: 48 41 56 45 5f 45 44 49 54 4c 49 4e 45 5d 2c 31  HAVE_EDITLINE],1
0700: 2c 44 65 66 69 6e 65 20 74 6f 20 75 73 65 20 42  ,Define to use B
0710: 53 44 20 65 64 69 74 6c 69 6e 65 29 0a 20 20 20  SD editline).   
0720: 20 20 20 52 45 41 44 4c 49 4e 45 5f 4c 49 42 53     READLINE_LIBS
0730: 3d 22 24 4c 49 42 53 20 2d 6c 74 69 6e 66 6f 22  ="$LIBS -ltinfo"
0740: 0a 20 20 20 20 20 20 65 6e 61 62 6c 65 5f 72 65  .      enable_re
0750: 61 64 6c 69 6e 65 3d 6e 6f 0a 20 20 20 20 5d 2c  adline=no.    ],
0760: 5b 5d 2c 5b 2d 6c 74 69 6e 66 6f 5d 29 0a 20 20  [],[-ltinfo]).  
0770: 20 20 41 53 5f 55 4e 53 45 54 28 61 63 5f 63 76    AS_UNSET(ac_cv
0780: 5f 73 65 61 72 63 68 5f 72 65 61 64 6c 69 6e 65  _search_readline
0790: 29 0a 20 20 20 20 4c 49 42 53 3d 24 73 4c 49 42  ).    LIBS=$sLIB
07a0: 53 0a 20 20 5d 29 0a 5d 29 0a 0a 41 53 5f 49 46  S.  ]).])..AS_IF
07b0: 28 5b 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c  ([ test x"$enabl
07c0: 65 5f 72 65 61 64 6c 69 6e 65 22 20 21 3d 20 78  e_readline" != x
07d0: 6e 6f 20 5d 2c 5b 0a 20 20 41 43 5f 43 48 45 43  no ],[.  AC_CHEC
07e0: 4b 5f 48 45 41 44 45 52 53 28 5b 72 65 61 64 6c  K_HEADERS([readl
07f0: 69 6e 65 2f 72 65 61 64 6c 69 6e 65 2e 68 5d 2c  ine/readline.h],
0800: 5b 0a 20 20 20 20 73 4c 49 42 53 3d 24 4c 49 42  [.    sLIBS=$LIB
0810: 53 0a 20 20 20 20 4c 49 42 53 3d 22 22 0a 20 20  S.    LIBS="".  
0820: 20 20 41 43 5f 53 45 41 52 43 48 5f 4c 49 42 53    AC_SEARCH_LIBS
0830: 28 74 67 65 74 65 6e 74 2c 20 74 65 72 6d 63 61  (tgetent, termca
0840: 70 20 63 75 72 73 65 73 20 6e 63 75 72 73 65 73  p curses ncurses
0850: 20 6e 63 75 72 73 65 73 77 2c 20 5b 5d 2c 20 5b   ncursesw, [], [
0860: 5d 29 0a 20 20 20 20 41 43 5f 53 45 41 52 43 48  ]).    AC_SEARCH
0870: 5f 4c 49 42 53 28 72 65 61 64 6c 69 6e 65 2c 5b  _LIBS(readline,[
0880: 72 65 61 64 6c 69 6e 65 20 65 64 69 74 5d 2c 20  readline edit], 
0890: 5b 0a 20 20 20 20 20 20 41 43 5f 44 45 46 49 4e  [.      AC_DEFIN
08a0: 45 28 5b 48 41 56 45 5f 52 45 41 44 4c 49 4e 45  E([HAVE_READLINE
08b0: 5d 2c 31 2c 44 65 66 69 6e 65 20 74 6f 20 75 73  ],1,Define to us
08c0: 65 20 72 65 61 64 6c 69 6e 65 20 6f 72 20 77 72  e readline or wr
08d0: 61 70 70 65 72 29 0a 20 20 20 20 20 20 52 45 41  apper).      REA
08e0: 44 4c 49 4e 45 5f 4c 49 42 53 3d 24 4c 49 42 53  DLINE_LIBS=$LIBS
08f0: 0a 20 20 20 20 5d 29 0a 20 20 20 20 4c 49 42 53  .    ]).    LIBS
0900: 3d 24 73 4c 49 42 53 0a 20 20 5d 29 0a 5d 29 0a  =$sLIBS.  ]).]).
0910: 0a 41 43 5f 53 55 42 53 54 28 52 45 41 44 4c 49  .AC_SUBST(READLI
0920: 4e 45 5f 4c 49 42 53 29 0a 23 2d 2d 2d 2d 2d 2d  NE_LIBS).#------
0930: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  -..#------------
0980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0990: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 20 20  -----------.#   
09c0: 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61 64 73  --enable-threads
09d0: 61 66 65 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41  afe.#.AC_ARG_ENA
09e0: 42 4c 45 28 74 68 72 65 61 64 73 61 66 65 2c 20  BLE(threadsafe, 
09f0: 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28  [AS_HELP_STRING(
0a00: 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 74 68 72  .  [--enable-thr
0a10: 65 61 64 73 61 66 65 5d 2c 20 5b 62 75 69 6c 64  eadsafe], [build
0a20: 20 61 20 74 68 72 65 61 64 2d 73 61 66 65 20 6c   a thread-safe l
0a30: 69 62 72 61 72 79 20 5b 64 65 66 61 75 6c 74 3d  ibrary [default=
0a40: 79 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20  yes]])], .  [], 
0a50: 5b 65 6e 61 62 6c 65 5f 74 68 72 65 61 64 73 61  [enable_threadsa
0a60: 66 65 3d 79 65 73 5d 29 0a 54 48 52 45 41 44 53  fe=yes]).THREADS
0a70: 41 46 45 5f 46 4c 41 47 53 3d 2d 44 53 51 4c 49  AFE_FLAGS=-DSQLI
0a80: 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 0a  TE_THREADSAFE=0.
0a90: 69 66 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c  if test x"$enabl
0aa0: 65 5f 74 68 72 65 61 64 73 61 66 65 22 20 21 3d  e_threadsafe" !=
0ab0: 20 22 78 6e 6f 22 3b 20 74 68 65 6e 0a 20 20 54   "xno"; then.  T
0ac0: 48 52 45 41 44 53 41 46 45 5f 46 4c 41 47 53 3d  HREADSAFE_FLAGS=
0ad0: 22 2d 44 5f 52 45 45 4e 54 52 41 4e 54 3d 31 20  "-D_REENTRANT=1 
0ae0: 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53  -DSQLITE_THREADS
0af0: 41 46 45 3d 31 22 0a 20 20 41 43 5f 53 45 41 52  AFE=1".  AC_SEAR
0b00: 43 48 5f 4c 49 42 53 28 70 74 68 72 65 61 64 5f  CH_LIBS(pthread_
0b10: 63 72 65 61 74 65 2c 20 70 74 68 72 65 61 64 29  create, pthread)
0b20: 0a 20 20 41 43 5f 53 45 41 52 43 48 5f 4c 49 42  .  AC_SEARCH_LIB
0b30: 53 28 70 74 68 72 65 61 64 5f 6d 75 74 65 78 61  S(pthread_mutexa
0b40: 74 74 72 5f 69 6e 69 74 2c 20 70 74 68 72 65 61  ttr_init, pthrea
0b50: 64 29 0a 66 69 0a 41 43 5f 53 55 42 53 54 28 54  d).fi.AC_SUBST(T
0b60: 48 52 45 41 44 53 41 46 45 5f 46 4c 41 47 53 29  HREADSAFE_FLAGS)
0b70: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0b80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ba0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d  ---------..#----
0bc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0be0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bf0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c00: 2d 2d 2d 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65  ---.#   --enable
0c10: 2d 64 79 6e 61 6d 69 63 2d 65 78 74 65 6e 73 69  -dynamic-extensi
0c20: 6f 6e 73 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41  ons.#.AC_ARG_ENA
0c30: 42 4c 45 28 64 79 6e 61 6d 69 63 2d 65 78 74 65  BLE(dynamic-exte
0c40: 6e 73 69 6f 6e 73 2c 20 5b 41 53 5f 48 45 4c 50  nsions, [AS_HELP
0c50: 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e  _STRING(.  [--en
0c60: 61 62 6c 65 2d 64 79 6e 61 6d 69 63 2d 65 78 74  able-dynamic-ext
0c70: 65 6e 73 69 6f 6e 73 5d 2c 20 5b 73 75 70 70 6f  ensions], [suppo
0c80: 72 74 20 6c 6f 61 64 61 62 6c 65 20 65 78 74 65  rt loadable exte
0c90: 6e 73 69 6f 6e 73 20 5b 64 65 66 61 75 6c 74 3d  nsions [default=
0ca0: 79 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20  yes]])], .  [], 
0cb0: 5b 65 6e 61 62 6c 65 5f 64 79 6e 61 6d 69 63 5f  [enable_dynamic_
0cc0: 65 78 74 65 6e 73 69 6f 6e 73 3d 79 65 73 5d 29  extensions=yes])
0cd0: 0a 69 66 20 74 65 73 74 20 78 22 24 65 6e 61 62  .if test x"$enab
0ce0: 6c 65 5f 64 79 6e 61 6d 69 63 5f 65 78 74 65 6e  le_dynamic_exten
0cf0: 73 69 6f 6e 73 22 20 21 3d 20 22 78 6e 6f 22 3b  sions" != "xno";
0d00: 20 74 68 65 6e 0a 20 20 41 43 5f 53 45 41 52 43   then.  AC_SEARC
0d10: 48 5f 4c 49 42 53 28 64 6c 6f 70 65 6e 2c 20 64  H_LIBS(dlopen, d
0d20: 6c 29 0a 65 6c 73 65 0a 20 20 44 59 4e 41 4d 49  l).else.  DYNAMI
0d30: 43 5f 45 58 54 45 4e 53 49 4f 4e 5f 46 4c 41 47  C_EXTENSION_FLAG
0d40: 53 3d 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f  S=-DSQLITE_OMIT_
0d50: 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 3d 31  LOAD_EXTENSION=1
0d60: 0a 66 69 0a 41 43 5f 4d 53 47 5f 43 48 45 43 4b  .fi.AC_MSG_CHECK
0d70: 49 4e 47 28 5b 66 6f 72 20 77 68 65 74 68 65 72  ING([for whether
0d80: 20 74 6f 20 73 75 70 70 6f 72 74 20 64 79 6e 61   to support dyna
0d90: 6d 69 63 20 65 78 74 65 6e 73 69 6f 6e 73 5d 29  mic extensions])
0da0: 0a 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 28 24  .AC_MSG_RESULT($
0db0: 65 6e 61 62 6c 65 5f 64 79 6e 61 6d 69 63 5f 65  enable_dynamic_e
0dc0: 78 74 65 6e 73 69 6f 6e 73 29 0a 41 43 5f 53 55  xtensions).AC_SU
0dd0: 42 53 54 28 44 59 4e 41 4d 49 43 5f 45 58 54 45  BST(DYNAMIC_EXTE
0de0: 4e 53 49 4f 4e 5f 46 4c 41 47 53 29 0a 23 2d 2d  NSION_FLAGS).#--
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 2d 2d 2d 2d 2d  ----------------
0e30: 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  -----..#--------
0e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e50: 2d 2d 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 0a  ---------------.
0e80: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 66 74 73  #   --enable-fts
0e90: 35 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c  5.#.AC_ARG_ENABL
0ea0: 45 28 66 74 73 35 2c 20 5b 41 53 5f 48 45 4c 50  E(fts5, [AS_HELP
0eb0: 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e  _STRING(.  [--en
0ec0: 61 62 6c 65 2d 66 74 73 35 5d 2c 20 5b 69 6e 63  able-fts5], [inc
0ed0: 6c 75 64 65 20 66 74 73 35 20 73 75 70 70 6f 72  lude fts5 suppor
0ee0: 74 20 5b 64 65 66 61 75 6c 74 3d 6e 6f 5d 5d 29  t [default=no]])
0ef0: 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e 61 62 6c  ], .  [], [enabl
0f00: 65 5f 66 74 73 35 3d 6e 6f 5d 29 0a 69 66 20 74  e_fts5=no]).if t
0f10: 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f 66 74  est x"$enable_ft
0f20: 73 35 22 20 3d 20 22 78 79 65 73 22 3b 20 74 68  s5" = "xyes"; th
0f30: 65 6e 0a 20 20 41 43 5f 53 45 41 52 43 48 5f 4c  en.  AC_SEARCH_L
0f40: 49 42 53 28 6c 6f 67 2c 20 6d 29 0a 20 20 46 54  IBS(log, m).  FT
0f50: 53 35 5f 46 4c 41 47 53 3d 2d 44 53 51 4c 49 54  S5_FLAGS=-DSQLIT
0f60: 45 5f 45 4e 41 42 4c 45 5f 46 54 53 35 0a 66 69  E_ENABLE_FTS5.fi
0f70: 0a 41 43 5f 53 55 42 53 54 28 46 54 53 35 5f 46  .AC_SUBST(FTS5_F
0f80: 4c 41 47 53 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  LAGS).#---------
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 2d  ----------------
0fc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
0fd0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
0fe0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ff0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1000: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1010: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 20 20 2d 2d 65  --------.#   --e
1020: 6e 61 62 6c 65 2d 6a 73 6f 6e 31 0a 23 0a 41 43  nable-json1.#.AC
1030: 5f 41 52 47 5f 45 4e 41 42 4c 45 28 6a 73 6f 6e  _ARG_ENABLE(json
1040: 31 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49  1, [AS_HELP_STRI
1050: 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d  NG(.  [--enable-
1060: 6a 73 6f 6e 31 5d 2c 20 5b 69 6e 63 6c 75 64 65  json1], [include
1070: 20 6a 73 6f 6e 31 20 73 75 70 70 6f 72 74 20 5b   json1 support [
1080: 64 65 66 61 75 6c 74 3d 6e 6f 5d 5d 29 5d 2c 20  default=no]])], 
1090: 0a 20 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 6a  .  [], [enable_j
10a0: 73 6f 6e 31 3d 6e 6f 5d 29 0a 69 66 20 74 65 73  son1=no]).if tes
10b0: 74 20 78 22 24 65 6e 61 62 6c 65 5f 6a 73 6f 6e  t x"$enable_json
10c0: 31 22 20 3d 20 22 78 79 65 73 22 3b 20 74 68 65  1" = "xyes"; the
10d0: 6e 0a 20 20 4a 53 4f 4e 31 5f 46 4c 41 47 53 3d  n.  JSON1_FLAGS=
10e0: 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f  -DSQLITE_ENABLE_
10f0: 4a 53 4f 4e 31 0a 66 69 0a 41 43 5f 53 55 42 53  JSON1.fi.AC_SUBS
1100: 54 28 4a 53 4f 4e 31 5f 46 4c 41 47 53 29 0a 23  T(JSON1_FLAGS).#
1110: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1150: 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d  -------..#------
1160: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1170: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1180: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1190: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
11a0: 2d 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 73  -.#   --enable-s
11b0: 65 73 73 69 6f 6e 0a 23 0a 41 43 5f 41 52 47 5f  ession.#.AC_ARG_
11c0: 45 4e 41 42 4c 45 28 73 65 73 73 69 6f 6e 2c 20  ENABLE(session, 
11d0: 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28  [AS_HELP_STRING(
11e0: 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 73 65 73  .  [--enable-ses
11f0: 73 69 6f 6e 5d 2c 20 5b 65 6e 61 62 6c 65 20 74  sion], [enable t
1200: 68 65 20 73 65 73 73 69 6f 6e 20 65 78 74 65 6e  he session exten
1210: 73 69 6f 6e 20 5b 64 65 66 61 75 6c 74 3d 6e 6f  sion [default=no
1220: 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e  ]])], .  [], [en
1230: 61 62 6c 65 5f 73 65 73 73 69 6f 6e 3d 6e 6f 5d  able_session=no]
1240: 29 0a 69 66 20 74 65 73 74 20 78 22 24 65 6e 61  ).if test x"$ena
1250: 62 6c 65 5f 73 65 73 73 69 6f 6e 22 20 3d 20 22  ble_session" = "
1260: 78 79 65 73 22 3b 20 74 68 65 6e 0a 20 20 53 45  xyes"; then.  SE
1270: 53 53 49 4f 4e 5f 46 4c 41 47 53 3d 22 2d 44 53  SSION_FLAGS="-DS
1280: 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 53 45 53  QLITE_ENABLE_SES
1290: 53 49 4f 4e 20 2d 44 53 51 4c 49 54 45 5f 45 4e  SION -DSQLITE_EN
12a0: 41 42 4c 45 5f 50 52 45 55 50 44 41 54 45 5f 48  ABLE_PREUPDATE_H
12b0: 4f 4f 4b 22 0a 66 69 0a 41 43 5f 53 55 42 53 54  OOK".fi.AC_SUBST
12c0: 28 53 45 53 53 49 4f 4e 5f 46 4c 41 47 53 29 0a  (SESSION_FLAGS).
12d0: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
12e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1300: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1310: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d  --------..#-----
1320: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1330: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1340: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1350: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1360: 2d 2d 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d  --.#   --enable-
1370: 73 74 61 74 69 63 2d 73 68 65 6c 6c 0a 23 0a 41  static-shell.#.A
1380: 43 5f 41 52 47 5f 45 4e 41 42 4c 45 28 73 74 61  C_ARG_ENABLE(sta
1390: 74 69 63 2d 73 68 65 6c 6c 2c 20 5b 41 53 5f 48  tic-shell, [AS_H
13a0: 45 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d  ELP_STRING(.  [-
13b0: 2d 65 6e 61 62 6c 65 2d 73 74 61 74 69 63 2d 73  -enable-static-s
13c0: 68 65 6c 6c 5d 2c 20 0a 20 20 5b 73 74 61 74 69  hell], .  [stati
13d0: 63 61 6c 6c 79 20 6c 69 6e 6b 20 6c 69 62 73 71  cally link libsq
13e0: 6c 69 74 65 33 20 69 6e 74 6f 20 73 68 65 6c 6c  lite3 into shell
13f0: 20 74 6f 6f 6c 20 5b 64 65 66 61 75 6c 74 3d 79   tool [default=y
1400: 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b  es]])], .  [], [
1410: 65 6e 61 62 6c 65 5f 73 74 61 74 69 63 5f 73 68  enable_static_sh
1420: 65 6c 6c 3d 79 65 73 5d 29 0a 69 66 20 74 65 73  ell=yes]).if tes
1430: 74 20 78 22 24 65 6e 61 62 6c 65 5f 73 74 61 74  t x"$enable_stat
1440: 69 63 5f 73 68 65 6c 6c 22 20 3d 20 22 78 79 65  ic_shell" = "xye
1450: 73 22 3b 20 74 68 65 6e 0a 20 20 45 58 54 52 41  s"; then.  EXTRA
1460: 5f 53 48 45 4c 4c 5f 4f 42 4a 3d 73 71 6c 69 74  _SHELL_OBJ=sqlit
1470: 65 33 2d 73 71 6c 69 74 65 33 2e 24 4f 42 4a 45  e3-sqlite3.$OBJE
1480: 58 54 0a 65 6c 73 65 0a 20 20 45 58 54 52 41 5f  XT.else.  EXTRA_
1490: 53 48 45 4c 4c 5f 4f 42 4a 3d 6c 69 62 73 71 6c  SHELL_OBJ=libsql
14a0: 69 74 65 33 2e 6c 61 0a 66 69 0a 41 43 5f 53 55  ite3.la.fi.AC_SU
14b0: 42 53 54 28 45 58 54 52 41 5f 53 48 45 4c 4c 5f  BST(EXTRA_SHELL_
14c0: 4f 42 4a 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  OBJ).#----------
14d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41  -------------..A
1510: 43 5f 43 48 45 43 4b 5f 46 55 4e 43 53 28 70 6f  C_CHECK_FUNCS(po
1520: 73 69 78 5f 66 61 6c 6c 6f 63 61 74 65 29 0a 0a  six_fallocate)..
1530: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
1540: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1550: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1560: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1570: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 55 50 44 41 54  --------.# UPDAT
1580: 45 3a 20 4d 61 79 62 65 20 69 74 27 73 20 62 65  E: Maybe it's be
1590: 74 74 65 72 20 69 66 20 75 73 65 72 73 20 6a 75  tter if users ju
15a0: 73 74 20 73 65 74 20 43 46 4c 41 47 53 20 62 65  st set CFLAGS be
15b0: 66 6f 72 65 20 69 6e 76 6f 6b 69 6e 67 0a 23 20  fore invoking.# 
15c0: 63 6f 6e 66 69 67 75 72 65 2e 20 54 68 69 73 20  configure. This 
15d0: 6f 70 74 69 6f 6e 20 64 6f 65 73 6e 27 74 20 72  option doesn't r
15e0: 65 61 6c 6c 79 20 61 64 64 20 6d 75 63 68 2e 2e  eally add much..
15f0: 2e 0a 23 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65  ..#.#   --enable
1600: 2d 74 65 6d 70 73 74 6f 72 65 0a 23 0a 23 20 41  -tempstore.#.# A
1610: 43 5f 41 52 47 5f 45 4e 41 42 4c 45 28 74 65 6d  C_ARG_ENABLE(tem
1620: 70 73 74 6f 72 65 2c 20 5b 41 53 5f 48 45 4c 50  pstore, [AS_HELP
1630: 5f 53 54 52 49 4e 47 28 0a 23 20 20 20 5b 2d 2d  _STRING(.#   [--
1640: 65 6e 61 62 6c 65 2d 74 65 6d 70 73 74 6f 72 65  enable-tempstore
1650: 5d 2c 20 0a 23 20 20 20 5b 69 6e 2d 6d 65 6d 6f  ], .#   [in-memo
1660: 72 79 20 74 65 6d 70 6f 72 61 72 79 20 74 61 62  ry temporary tab
1670: 6c 65 73 20 28 6e 65 76 65 72 2c 20 6e 6f 2c 20  les (never, no, 
1680: 79 65 73 2c 20 61 6c 77 61 79 73 29 20 5b 64 65  yes, always) [de
1690: 66 61 75 6c 74 3d 6e 6f 5d 5d 29 5d 2c 20 0a 23  fault=no]])], .#
16a0: 20 20 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 74     [], [enable_t
16b0: 65 6d 70 73 74 6f 72 65 3d 6e 6f 5d 29 0a 23 20  empstore=no]).# 
16c0: 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28  AC_MSG_CHECKING(
16d0: 5b 66 6f 72 20 77 68 65 74 68 65 72 20 6f 72 20  [for whether or 
16e0: 6e 6f 74 20 74 6f 20 73 74 6f 72 65 20 74 65 6d  not to store tem
16f0: 70 20 74 61 62 6c 65 73 20 69 6e 2d 6d 65 6d 6f  p tables in-memo
1700: 72 79 5d 29 0a 23 20 63 61 73 65 20 22 24 65 6e  ry]).# case "$en
1710: 61 62 6c 65 5f 74 65 6d 70 73 74 6f 72 65 22 20  able_tempstore" 
1720: 69 6e 0a 23 20 20 20 6e 65 76 65 72 20 29 20 20  in.#   never )  
1730: 54 45 4d 50 5f 53 54 4f 52 45 3d 30 20 3b 3b 0a  TEMP_STORE=0 ;;.
1740: 23 20 20 20 6e 6f 20 29 20 20 20 20 20 54 45 4d  #   no )     TEM
1750: 50 5f 53 54 4f 52 45 3d 31 20 3b 3b 0a 23 20 20  P_STORE=1 ;;.#  
1760: 20 61 6c 77 61 79 73 20 29 20 54 45 4d 50 5f 53   always ) TEMP_S
1770: 54 4f 52 45 3d 33 20 3b 3b 0a 23 20 20 20 79 65  TORE=3 ;;.#   ye
1780: 73 20 29 20 20 20 20 54 45 4d 50 5f 53 54 4f 52  s )    TEMP_STOR
1790: 45 3d 33 20 3b 3b 0a 23 20 20 20 2a 20 29 0a 23  E=3 ;;.#   * ).#
17a0: 20 20 20 20 20 54 45 4d 50 5f 53 54 4f 52 45 3d       TEMP_STORE=
17b0: 31 0a 23 20 20 20 20 20 65 6e 61 62 6c 65 5f 74  1.#     enable_t
17c0: 65 6d 70 73 74 6f 72 65 3d 79 65 73 0a 23 20 20  empstore=yes.#  
17d0: 20 3b 3b 0a 23 20 65 73 61 63 0a 23 20 41 43 5f   ;;.# esac.# AC_
17e0: 4d 53 47 5f 52 45 53 55 4c 54 28 24 65 6e 61 62  MSG_RESULT($enab
17f0: 6c 65 5f 74 65 6d 70 73 74 6f 72 65 29 0a 23 20  le_tempstore).# 
1800: 41 43 5f 53 55 42 53 54 28 54 45 4d 50 5f 53 54  AC_SUBST(TEMP_ST
1810: 4f 52 45 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ORE).#----------
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 2d 2d 2d 2d 0a 0a 41  -------------..A
1860: 43 5f 4f 55 54 50 55 54 0a                       C_OUTPUT.