Artifact 1f754d4d41eb9b62225829e7f1582592ab0a156a:
- File
kitdll/buildsrc/kitdll-0.0/configure.ac
— part of check-in
[e98c176999]
at
2010-10-01 20:20:09
on branch trunk
— Updated to mount vfs::zip VFS from DLL into /.KITDLL_USER
Updated to mount vfs::zip VFS from application into /.KITDLL_APP
Minor cleanup and added comments (user: rkeene, size: 1177) [annotate] [blame] [check-ins using]
0000: 64 6e 6c 20 57 68 61 74 20 61 72 65 20 77 65 20 dnl What are we 0010: 72 75 6e 6e 69 6e 67 0a 41 43 5f 49 4e 49 54 28 running.AC_INIT( 0020: 6b 69 74 64 6c 6c 2c 20 30 2e 30 29 0a 0a 64 6e kitdll, 0.0)..dn 0030: 6c 20 43 68 65 63 6b 73 20 66 6f 72 20 70 72 6f l Checks for pro 0040: 67 72 61 6d 73 2e 0a 41 43 5f 50 52 4f 47 5f 43 grams..AC_PROG_C 0050: 43 0a 41 43 5f 50 52 4f 47 5f 4d 41 4b 45 5f 53 C.AC_PROG_MAKE_S 0060: 45 54 0a 41 43 5f 50 52 4f 47 5f 49 4e 53 54 41 ET.AC_PROG_INSTA 0070: 4c 4c 0a 41 43 5f 41 49 58 0a 41 43 5f 47 4e 55 LL.AC_AIX.AC_GNU 0080: 5f 53 4f 55 52 43 45 0a 0a 64 6e 6c 20 44 65 74 _SOURCE..dnl Det 0090: 65 72 6d 69 6e 65 20 73 79 73 74 65 6d 20 69 6e ermine system in 00a0: 66 6f 72 6d 61 74 69 6f 6e 0a 44 43 5f 43 48 4b formation.DC_CHK 00b0: 5f 4f 53 5f 49 4e 46 4f 0a 0a 64 6e 6c 20 46 69 _OS_INFO..dnl Fi 00c0: 6e 64 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 nd the appropria 00d0: 74 65 20 6c 69 62 72 61 72 69 65 73 20 74 6f 20 te libraries to 00e0: 6c 69 6e 6b 20 74 6f 0a 41 43 5f 53 45 41 52 43 link to.AC_SEARC 00f0: 48 5f 4c 49 42 53 28 61 63 6f 73 2c 20 6d 2c 2c H_LIBS(acos, m,, 0100: 20 5b 20 41 43 5f 4d 53 47 5f 57 41 52 4e 28 5b [ AC_MSG_WARN([ 0110: 43 6f 75 6c 64 6e 27 74 20 66 69 6e 64 20 61 63 Couldn't find ac 0120: 6f 73 20 28 6e 6f 72 6d 61 6c 6c 79 20 69 6e 20 os (normally in 0130: 6c 69 62 6d 29 21 5d 29 20 5d 29 0a 41 43 5f 53 libm)!]) ]).AC_S 0140: 45 41 52 43 48 5f 4c 49 42 53 28 64 6c 73 79 6d EARCH_LIBS(dlsym 0150: 2c 20 64 6c 2c 2c 20 5b 20 41 43 5f 4d 53 47 5f , dl,, [ AC_MSG_ 0160: 57 41 52 4e 28 5b 43 6f 75 6c 64 6e 27 74 20 66 WARN([Couldn't f 0170: 69 6e 64 20 64 6c 73 79 6d 20 28 6e 6f 72 6d 61 ind dlsym (norma 0180: 6c 6c 79 20 69 6e 20 6c 69 62 64 6c 29 21 5d 29 lly in libdl)!]) 0190: 20 5d 29 0a 0a 64 6e 6c 20 44 65 74 65 72 6d 69 ])..dnl Determi 01a0: 6e 65 20 68 6f 77 20 74 6f 20 63 72 65 61 74 65 ne how to create 01b0: 20 61 20 73 68 61 72 65 64 20 6f 62 6a 65 63 74 a shared object 01c0: 0a 44 43 5f 47 45 54 5f 53 48 4f 42 4a 46 4c 41 .DC_GET_SHOBJFLA 01d0: 47 53 0a 0a 64 6e 6c 20 46 69 6e 64 20 74 68 65 GS..dnl Find the 01e0: 20 61 70 70 72 6f 70 72 69 61 74 65 20 54 63 6c appropriate Tcl 01f0: 20 68 65 61 64 65 72 73 20 61 6e 64 20 6c 69 62 headers and lib 0200: 72 61 72 69 65 73 0a 44 43 5f 44 4f 5f 54 43 4c raries.DC_DO_TCL 0210: 0a 0a 64 6e 6c 20 43 68 65 63 6b 20 66 6f 72 20 ..dnl Check for 0220: 54 63 6c 20 66 65 61 74 75 72 65 73 0a 53 41 56 Tcl features.SAV 0230: 45 5f 4c 49 42 53 3d 22 24 7b 4c 49 42 53 7d 22 E_LIBS="${LIBS}" 0240: 0a 4c 49 42 53 3d 22 24 7b 41 52 43 48 53 7d 20 .LIBS="${ARCHS} 0250: 24 7b 4c 49 42 53 7d 22 0a 64 6e 6c 20 43 68 65 ${LIBS}".dnl Che 0260: 63 6b 20 66 6f 72 20 74 68 65 20 61 62 69 6c 69 ck for the abili 0270: 74 79 20 74 6f 20 67 65 74 20 74 68 65 20 63 75 ty to get the cu 0280: 72 72 65 6e 74 20 73 79 73 74 65 6d 20 65 6e 63 rrent system enc 0290: 6f 64 69 6e 67 0a 41 43 5f 43 48 45 43 4b 5f 46 oding.AC_CHECK_F 02a0: 55 4e 43 53 28 54 63 6c 5f 47 65 74 45 6e 63 6f UNCS(Tcl_GetEnco 02b0: 64 69 6e 67 4e 61 6d 65 46 72 6f 6d 45 6e 76 69 dingNameFromEnvi 02c0: 72 6f 6e 6d 65 6e 74 20 54 63 6c 5f 53 65 74 53 ronment Tcl_SetS 02d0: 79 73 74 65 6d 45 6e 63 6f 64 69 6e 67 29 0a 4c ystemEncoding).L 02e0: 49 42 53 3d 22 24 7b 53 41 56 45 5f 4c 49 42 53 IBS="${SAVE_LIBS 02f0: 7d 22 0a 0a 64 6e 6c 20 46 69 6e 64 20 72 65 71 }"..dnl Find req 0300: 75 69 72 65 64 20 6c 69 62 73 0a 44 43 5f 46 49 uired libs.DC_FI 0310: 4e 44 5f 54 43 4c 4b 49 54 5f 4c 49 42 53 0a 0a ND_TCLKIT_LIBS.. 0320: 64 6e 6c 20 46 69 6e 64 20 65 78 74 72 61 20 6f dnl Find extra o 0330: 62 6a 65 63 74 73 20 77 65 20 6e 65 65 64 20 74 bjects we need t 0340: 6f 20 6c 69 6e 6b 20 61 73 20 61 20 70 61 72 74 o link as a part 0350: 20 6f 66 20 22 6c 69 62 74 63 6c 6b 69 74 22 0a of "libtclkit". 0360: 41 43 5f 53 55 42 53 54 28 45 58 54 52 41 5f 4f AC_SUBST(EXTRA_O 0370: 42 4a 53 29 0a 0a 64 6e 6c 20 43 68 65 63 6b 20 BJS)..dnl Check 0380: 66 6f 72 20 6f 70 74 69 6f 6e 61 6c 20 68 65 61 for optional hea 0390: 64 65 72 73 0a 41 43 5f 48 45 41 44 45 52 5f 53 ders.AC_HEADER_S 03a0: 54 44 43 0a 41 43 5f 43 48 45 43 4b 5f 48 45 41 TDC.AC_CHECK_HEA 03b0: 44 45 52 53 28 75 6e 69 73 74 64 2e 68 20 73 74 DERS(unistd.h st 03c0: 72 69 6e 67 2e 68 20 73 74 72 69 6e 67 73 2e 68 ring.h strings.h 03d0: 29 0a 0a 64 6e 6c 20 43 68 65 63 6b 20 66 6f 72 )..dnl Check for 03e0: 20 6f 70 74 69 6f 6e 61 6c 20 73 79 73 74 65 6d optional system 03f0: 20 63 61 6c 6c 73 0a 41 43 5f 43 48 45 43 4b 5f calls.AC_CHECK_ 0400: 46 55 4e 43 53 28 72 65 61 64 6c 69 6e 6b 29 0a FUNCS(readlink). 0410: 0a 64 6e 6c 20 43 68 65 63 6b 20 66 6f 72 20 61 .dnl Check for a 0420: 63 63 65 70 74 61 62 6c 65 20 64 6c 61 64 64 72 cceptable dladdr 0430: 20 73 6f 20 77 65 20 63 61 6e 20 66 69 6e 64 20 so we can find 0440: 6f 75 72 73 65 6c 76 65 73 20 6f 6e 20 55 4e 49 ourselves on UNI 0450: 58 0a 44 43 5f 43 48 45 43 4b 5f 46 4f 52 5f 41 X.DC_CHECK_FOR_A 0460: 43 43 45 50 54 41 42 4c 45 5f 44 4c 41 44 44 52 CCEPTABLE_DLADDR 0470: 0a 0a 64 6e 6c 20 50 72 6f 64 75 63 65 20 6f 75 ..dnl Produce ou 0480: 74 70 75 74 0a 41 43 5f 4f 55 54 50 55 54 28 4d tput.AC_OUTPUT(M 0490: 61 6b 65 66 69 6c 65 29 0a akefile).