Artifact 5756c6b431179e49852a607cc2ca01e5381da905:
- File tdomConfig.sh.in — part of check-in [08094ff26d] at 2005-09-12 22:07:17 on branch trunk — Improvement of the build system. Now works also with the tool combination cygwin/TEA/VC++. Thanks to Andreas Kupries for his patch. (user: rolf size: 1924)
0000: 23 0a 23 20 74 64 6f 6d 43 6f 6e 66 69 67 2e 73 #.# tdomConfig.s 0010: 68 20 2d 2d 0a 23 20 0a 23 20 54 68 69 73 20 73 h --.# .# This s 0020: 68 65 6c 6c 20 73 63 72 69 70 74 20 28 66 6f 72 hell script (for 0030: 20 42 6f 75 72 6e 65 20 73 68 20 61 6e 64 20 61 Bourne sh and a 0040: 6c 69 6b 65 29 20 69 73 20 67 65 6e 65 72 61 74 like) is generat 0050: 65 64 20 0a 23 20 61 75 74 6f 6d 61 74 69 63 61 ed .# automatica 0060: 6c 6c 79 20 62 79 20 74 44 4f 4d 20 63 6f 6e 66 lly by tDOM conf 0070: 69 67 75 72 65 20 73 63 72 69 70 74 2e 20 49 74 igure script. It 0080: 20 77 69 6c 6c 20 63 72 65 61 74 65 20 0a 23 20 will create .# 0090: 73 68 65 6c 6c 20 76 61 72 69 61 62 6c 65 73 20 shell variables 00a0: 66 6f 72 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 for some of the 00b0: 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6f 70 configuration op 00c0: 74 69 6f 6e 73 20 0a 23 20 64 69 73 63 6f 76 65 tions .# discove 00d0: 72 65 64 20 62 79 20 74 68 65 20 63 6f 6e 66 69 red by the confi 00e0: 67 75 72 65 2e 20 54 68 69 73 20 73 63 72 69 70 gure. This scrip 00f0: 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f t is intended to 0100: 20 62 65 0a 23 20 73 6f 75 72 63 65 64 20 62 79 be.# sourced by 0110: 20 74 68 65 20 63 6f 6e 66 69 67 75 72 65 20 73 the configure s 0120: 63 72 69 70 74 73 20 66 6f 72 20 74 44 4f 4d 20 cripts for tDOM 0130: 65 78 74 65 6e 73 69 6f 6e 73 20 73 6f 20 0a 23 extensions so .# 0140: 20 74 68 61 74 20 74 68 65 79 20 64 6f 6e 27 74 that they don't 0150: 20 68 61 76 65 20 74 6f 20 66 69 67 75 72 65 20 have to figure 0160: 74 68 69 73 20 61 6c 6c 20 6f 75 74 20 66 6f 72 this all out for 0170: 20 74 68 65 6d 73 65 6c 76 65 73 2e 0a 23 20 54 themselves..# T 0180: 68 69 73 20 66 69 6c 65 20 64 6f 65 73 20 6e 6f his file does no 0190: 74 20 64 75 70 6c 69 63 61 74 65 20 69 6e 66 6f t duplicate info 01a0: 72 6d 61 74 69 6f 6e 20 61 6c 72 65 61 64 79 20 rmation already 01b0: 70 72 6f 76 69 64 65 64 0a 23 20 62 79 20 74 63 provided.# by tc 01c0: 6c 43 6f 6e 66 69 67 2e 73 68 2c 20 73 6f 20 79 lConfig.sh, so y 01d0: 6f 75 20 6d 61 79 20 6e 65 65 64 20 74 6f 20 75 ou may need to u 01e0: 73 65 20 74 68 61 74 20 66 69 6c 65 20 69 6e 20 se that file in 01f0: 61 64 64 69 74 69 6f 6e 0a 23 20 74 6f 20 74 68 addition.# to th 0200: 69 73 20 6f 6e 65 2e 20 54 6f 20 62 65 20 61 62 is one. To be ab 0210: 6c 65 20 74 6f 20 6c 6f 63 61 74 65 20 74 68 69 le to locate thi 0220: 73 20 66 69 6c 65 20 65 61 73 69 6c 79 2c 20 65 s file easily, e 0230: 78 74 65 6e 73 69 6f 6e 73 0a 23 20 6d 69 67 68 xtensions.# migh 0240: 74 20 77 61 6e 74 20 74 6f 20 69 6e 63 6c 75 64 t want to includ 0250: 65 20 74 68 65 20 74 64 6f 6d 2e 6d 34 20 66 69 e the tdom.m4 fi 0260: 6c 65 20 69 6e 20 74 68 65 69 72 20 63 6f 6e 66 le in their conf 0270: 69 67 75 72 65 0a 23 20 73 63 72 69 70 74 73 20 igure.# scripts 0280: 61 6e 64 20 75 73 65 20 74 68 65 20 54 44 4f 4d and use the TDOM 0290: 5f 50 41 54 48 5f 43 4f 4e 46 49 47 20 61 6e 64 _PATH_CONFIG and 02a0: 20 54 44 4f 4d 5f 4c 4f 41 44 5f 43 4f 4e 46 49 TDOM_LOAD_CONFI 02b0: 47 2e 0a 23 0a 23 20 54 68 65 20 69 6e 66 6f 72 G..#.# The infor 02c0: 6d 61 74 69 6f 6e 20 69 6e 20 74 68 69 73 20 66 mation in this f 02d0: 69 6c 65 20 69 73 20 73 70 65 63 69 66 69 63 20 ile is specific 02e0: 74 6f 20 61 20 73 69 6e 67 6c 65 20 70 6c 61 74 to a single plat 02f0: 66 6f 72 6d 2e 0a 23 0a 0a 23 0a 23 20 74 44 4f form..#..#.# tDO 0300: 4d 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 M version number 0310: 0a 23 0a 54 44 4f 4d 5f 56 45 52 53 49 4f 4e 3d .#.TDOM_VERSION= 0320: 27 40 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f '@PACKAGE_VERSIO 0330: 4e 40 27 0a 0a 23 20 54 68 65 20 6e 61 6d 65 20 N@'..# The name 0340: 6f 66 20 74 68 65 20 54 44 4f 4d 20 6c 69 62 72 of the TDOM libr 0350: 61 72 79 20 28 6d 61 79 20 62 65 20 65 69 74 68 ary (may be eith 0360: 65 72 20 61 20 2e 61 20 66 69 6c 65 20 6f 72 20 er a .a file or 0370: 61 20 73 68 61 72 65 64 20 6c 69 62 72 61 72 79 a shared library 0380: 29 3a 0a 54 44 4f 4d 5f 4c 49 42 5f 46 49 4c 45 ):.TDOM_LIB_FILE 0390: 3d 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 40 0a =@PKG_LIB_FILE@. 03a0: 0a 23 0a 23 20 54 68 65 20 6e 61 6d 65 20 6f 66 .#.# The name of 03b0: 20 74 68 65 20 74 44 4f 4d 20 73 74 75 62 20 6c the tDOM stub l 03c0: 69 62 72 61 72 79 20 66 69 6c 65 0a 23 0a 54 44 ibrary file.#.TD 03d0: 4f 4d 5f 53 54 55 42 5f 4c 49 42 5f 46 49 4c 45 OM_STUB_LIB_FILE 03e0: 3d 40 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46 =@PKG_STUB_LIB_F 03f0: 49 4c 45 40 0a 0a 23 0a 23 20 53 74 72 69 6e 67 ILE@..#.# String 0400: 20 74 6f 20 70 61 73 73 20 74 6f 20 6c 69 6e 6b to pass to link 0410: 65 72 20 74 6f 20 70 69 63 6b 20 75 70 20 74 68 er to pick up th 0420: 65 20 74 44 4f 4d 20 6c 69 62 72 61 72 79 20 66 e tDOM library f 0430: 72 6f 6d 0a 23 20 69 74 73 20 62 75 69 6c 64 20 rom.# its build 0440: 64 69 72 65 63 74 6f 72 79 2e 0a 23 0a 54 44 4f directory..#.TDO 0450: 4d 5f 42 55 49 4c 44 5f 53 54 55 42 5f 4c 49 42 M_BUILD_STUB_LIB 0460: 5f 53 50 45 43 3d 27 40 50 4b 47 5f 42 55 49 4c _SPEC='@PKG_BUIL 0470: 44 5f 53 54 55 42 5f 4c 49 42 5f 53 50 45 43 40 D_STUB_LIB_SPEC@ 0480: 27 0a 0a 23 0a 23 20 53 74 72 69 6e 67 20 74 6f '..#.# String to 0490: 20 70 61 73 73 20 74 6f 20 6c 69 6e 6b 65 72 20 pass to linker 04a0: 74 6f 20 70 69 63 6b 20 75 70 20 74 68 65 20 74 to pick up the t 04b0: 44 4f 4d 20 6c 69 62 72 61 72 79 20 66 72 6f 6d DOM library from 04c0: 0a 23 20 69 74 73 20 69 6e 73 74 61 6c 6c 65 64 .# its installed 04d0: 20 64 69 72 65 63 74 6f 72 79 2e 0a 23 0a 54 44 directory..#.TD 04e0: 4f 4d 5f 53 54 55 42 5f 4c 49 42 5f 53 50 45 43 OM_STUB_LIB_SPEC 04f0: 3d 27 40 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f ='@PKG_STUB_LIB_ 0500: 53 50 45 43 40 27 0a 0a 23 20 53 74 72 69 6e 67 SPEC@'..# String 0510: 20 74 6f 20 70 61 73 73 20 74 6f 20 6c 69 6e 6b to pass to link 0520: 65 72 20 74 6f 20 70 69 63 6b 20 75 70 20 74 68 er to pick up th 0530: 65 20 54 44 4f 4d 20 73 74 75 62 20 6c 69 62 72 e TDOM stub libr 0540: 61 72 79 20 66 72 6f 6d 20 69 74 73 0a 23 20 62 ary from its.# b 0550: 75 69 6c 64 20 64 69 72 65 63 74 6f 72 79 2e 0a uild directory.. 0560: 23 0a 54 44 4f 4d 5f 42 55 49 4c 44 5f 53 54 55 #.TDOM_BUILD_STU 0570: 42 5f 4c 49 42 5f 50 41 54 48 3d 27 40 50 4b 47 B_LIB_PATH='@PKG 0580: 5f 42 55 49 4c 44 5f 53 54 55 42 5f 4c 49 42 5f _BUILD_STUB_LIB_ 0590: 50 41 54 48 40 27 0a 0a 23 20 53 74 72 69 6e 67 PATH@'..# String 05a0: 20 74 6f 20 70 61 73 73 20 74 6f 20 6c 69 6e 6b to pass to link 05b0: 65 72 20 74 6f 20 70 69 63 6b 20 75 70 20 74 68 er to pick up th 05c0: 65 20 54 44 4f 4d 20 73 74 75 62 20 6c 69 62 72 e TDOM stub libr 05d0: 61 72 79 20 66 72 6f 6d 20 69 74 73 0a 23 20 69 ary from its.# i 05e0: 6e 73 74 61 6c 6c 65 64 20 64 69 72 65 63 74 6f nstalled directo 05f0: 72 79 2e 0a 23 0a 54 44 4f 4d 5f 53 54 55 42 5f ry..#.TDOM_STUB_ 0600: 4c 49 42 5f 50 41 54 48 3d 27 40 50 4b 47 5f 53 LIB_PATH='@PKG_S 0610: 54 55 42 5f 4c 49 42 5f 50 41 54 48 40 27 0a 0a TUB_LIB_PATH@'.. 0620: 23 0a 23 20 4c 6f 63 61 74 69 6f 6e 20 6f 66 20 #.# Location of 0630: 74 68 65 20 74 6f 70 2d 6c 65 76 65 6c 20 73 6f the top-level so 0640: 75 72 63 65 20 64 69 72 65 63 74 6f 72 69 65 73 urce directories 0650: 20 66 72 6f 6d 20 77 68 69 63 68 20 74 44 4f 4d from which tDOM 0660: 0a 23 20 77 61 73 20 62 75 69 6c 74 2e 20 20 54 .# was built. T 0670: 68 69 73 20 69 73 20 74 68 65 20 64 69 72 65 63 his is the direc 0680: 74 6f 72 79 20 74 68 61 74 20 63 6f 6e 74 61 69 tory that contai 0690: 6e 73 20 67 65 6e 65 72 69 63 2c 20 75 6e 69 78 ns generic, unix 06a0: 2c 0a 23 20 77 69 6e 20 65 74 63 2e 20 49 66 20 ,.# win etc. If 06b0: 74 44 4f 4d 20 77 61 73 20 63 6f 6d 70 69 6c 65 tDOM was compile 06c0: 64 20 69 6e 20 61 20 64 69 66 66 65 72 65 6e 74 d in a different 06d0: 20 70 6c 61 63 65 20 74 68 61 6e 20 74 68 65 20 place than the 06e0: 0a 23 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e .# directory con 06f0: 74 61 69 6e 69 6e 67 20 74 68 65 20 73 6f 75 72 taining the sour 0700: 63 65 20 66 69 6c 65 73 2c 20 74 68 69 73 20 70 ce files, this p 0710: 6f 69 6e 74 73 20 74 6f 20 74 68 65 20 0a 23 20 oints to the .# 0720: 6c 6f 63 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 location of the 0730: 73 6f 75 72 63 65 73 2c 20 6e 6f 74 20 74 68 65 sources, not the 0740: 20 6c 6f 63 61 74 69 6f 6e 20 77 68 65 72 65 20 location where 0750: 74 44 4f 4d 20 77 61 73 20 63 6f 6d 70 69 6c 65 tDOM was compile 0760: 64 2e 0a 23 0a 54 44 4f 4d 5f 53 52 43 5f 44 49 d..#.TDOM_SRC_DI 0770: 52 3d 27 40 73 72 63 64 69 72 40 27 0a 0a 23 20 R='@srcdir@'..# 0780: 45 4f 46 0a EOF.