Artifact 4d0c0e3f4243ef3943893bb6aa771d7a8fd725cc:
- File
configure.ac
— part of check-in
[40726d3b6c]
at
2010-05-11 16:49:46
on branch trunk
— Removed unused variables
Began work towards talking to the smartcard through PC/SC
Began work on a GSC-IS v2.1 SPM implementation (user: rkeene, size: 1645) [annotate] [blame] [check-ins using]
0000: 41 43 5f 49 4e 49 54 28 63 61 63 6b 65 79 2c 20 AC_INIT(cackey, 0010: 30 2e 30 2e 31 29 20 0a 41 43 5f 43 4f 4e 46 49 0.0.1) .AC_CONFI 0020: 47 5f 48 45 41 44 45 52 53 28 63 6f 6e 66 69 67 G_HEADERS(config 0030: 2e 68 29 0a 0a 64 6e 6c 20 4c 6f 63 61 74 65 20 .h)..dnl Locate 0040: 73 74 61 6e 64 61 72 64 20 74 6f 6f 6c 73 0a 41 standard tools.A 0050: 43 5f 50 52 4f 47 5f 43 43 0a 41 43 5f 50 52 4f C_PROG_CC.AC_PRO 0060: 47 5f 4d 41 4b 45 5f 53 45 54 0a 41 43 5f 50 52 G_MAKE_SET.AC_PR 0070: 4f 47 5f 49 4e 53 54 41 4c 4c 0a 41 43 5f 41 49 OG_INSTALL.AC_AI 0080: 58 0a 0a 64 6e 6c 20 44 65 74 65 72 6d 69 6e 65 X..dnl Determine 0090: 20 74 68 69 73 20 70 6c 61 74 66 6f 72 6d 0a 44 this platform.D 00a0: 43 5f 43 48 4b 5f 4f 53 5f 49 4e 46 4f 0a 0a 64 C_CHK_OS_INFO..d 00b0: 6e 6c 20 44 65 74 65 72 6d 69 6e 65 20 68 6f 77 nl Determine how 00c0: 20 74 6f 20 63 72 65 61 74 65 20 73 68 61 72 65 to create share 00d0: 64 20 6f 62 6a 65 63 74 73 20 6f 6e 20 74 68 69 d objects on thi 00e0: 73 20 70 6c 61 74 66 6f 72 6d 0a 44 43 5f 47 45 s platform.DC_GE 00f0: 54 5f 53 48 4f 42 4a 46 4c 41 47 53 0a 0a 41 43 T_SHOBJFLAGS..AC 0100: 58 5f 50 54 48 52 45 41 44 28 2c 20 5b 0a 09 41 X_PTHREAD(, [..A 0110: 43 5f 57 41 52 4e 28 5b 43 61 6e 27 74 20 66 69 C_WARN([Can't fi 0120: 67 75 72 65 20 6f 75 74 20 68 6f 77 20 74 6f 20 gure out how to 0130: 63 6f 6d 70 69 6c 65 20 77 69 74 68 20 70 74 68 compile with pth 0140: 72 65 61 64 73 20 73 75 70 70 6f 72 74 2c 20 72 reads support, r 0150: 75 6e 2d 74 69 6d 65 20 77 69 6c 6c 20 6c 69 6b un-time will lik 0160: 65 6c 79 20 66 61 69 6c 2e 5d 29 0a 5d 29 0a 0a ely fail.]).]).. 0170: 64 6e 6c 20 44 65 74 65 72 6d 69 6e 65 20 68 6f dnl Determine ho 0180: 77 20 74 6f 20 63 72 65 61 74 65 20 73 74 61 74 w to create stat 0190: 69 63 20 61 72 63 68 69 76 65 73 20 6f 6e 20 74 ic archives on t 01a0: 68 69 73 20 70 6c 61 74 66 6f 72 6d 0a 41 43 5f his platform.AC_ 01b0: 43 48 45 43 4b 5f 54 4f 4f 4c 28 41 52 2c 20 61 CHECK_TOOL(AR, a 01c0: 72 29 0a 41 43 5f 43 48 45 43 4b 5f 54 4f 4f 4c r).AC_CHECK_TOOL 01d0: 28 52 41 4e 4c 49 42 2c 20 72 61 6e 6c 69 62 29 (RANLIB, ranlib) 01e0: 0a 0a 64 6e 6c 20 43 68 65 63 6b 20 66 6f 72 20 ..dnl Check for 01f0: 61 6c 6c 20 72 65 71 75 69 72 65 64 20 68 65 61 all required hea 0200: 64 65 72 73 0a 41 43 5f 43 48 45 43 4b 5f 48 45 ders.AC_CHECK_HE 0210: 41 44 45 52 53 28 61 72 70 61 2f 69 6e 65 74 2e ADERS(arpa/inet. 0220: 68 20 69 6e 74 74 79 70 65 73 2e 68 20 73 74 64 h inttypes.h std 0230: 61 72 67 2e 68 20 73 74 64 69 6e 74 2e 68 20 73 arg.h stdint.h s 0240: 74 64 69 6f 2e 68 20 73 74 64 6c 69 62 2e 68 20 tdio.h stdlib.h 0250: 73 74 72 69 6e 67 2e 68 20 73 79 73 2f 73 6f 63 string.h sys/soc 0260: 6b 65 74 2e 68 20 73 79 73 2f 74 79 70 65 73 2e ket.h sys/types. 0270: 68 20 73 79 73 2f 75 6e 2e 68 20 75 6e 69 73 74 h sys/un.h unist 0280: 64 2e 68 20 70 74 68 72 65 61 64 2e 68 2c 2c 5b d.h pthread.h,,[ 0290: 0a 09 41 43 5f 57 41 52 4e 28 5b 52 65 71 75 69 ..AC_WARN([Requi 02a0: 72 65 64 20 68 65 61 64 65 72 20 6d 69 73 73 69 red header missi 02b0: 6e 67 2c 20 63 6f 6d 70 69 6c 61 74 69 6f 6e 20 ng, compilation 02c0: 77 69 6c 6c 20 6c 69 6b 65 6c 79 20 66 61 69 6c will likely fail 02d0: 2e 5d 29 0a 5d 2c 20 5b 0a 23 69 66 64 65 66 20 .]).], [.#ifdef 02e0: 48 41 56 45 5f 41 52 50 41 5f 49 4e 45 54 5f 48 HAVE_ARPA_INET_H 02f0: 0a 23 20 20 69 6e 63 6c 75 64 65 20 3c 61 72 70 .# include <arp 0300: 61 2f 69 6e 65 74 2e 68 3e 0a 23 65 6e 64 69 66 a/inet.h>.#endif 0310: 0a 23 69 66 64 65 66 20 48 41 56 45 5f 49 4e 54 .#ifdef HAVE_INT 0320: 54 59 50 45 53 5f 48 0a 23 20 20 69 6e 63 6c 75 TYPES_H.# inclu 0330: 64 65 20 3c 69 6e 74 74 79 70 65 73 2e 68 3e 0a de <inttypes.h>. 0340: 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 48 41 #endif.#ifdef HA 0350: 56 45 5f 53 54 44 41 52 47 5f 48 0a 23 20 20 69 VE_STDARG_H.# i 0360: 6e 63 6c 75 64 65 20 3c 73 74 64 61 72 67 2e 68 nclude <stdarg.h 0370: 3e 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 >.#endif.#ifdef 0380: 48 41 56 45 5f 53 54 44 49 4e 54 5f 48 0a 23 20 HAVE_STDINT_H.# 0390: 20 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6e 74 include <stdint 03a0: 2e 68 3e 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 .h>.#endif.#ifde 03b0: 66 20 48 41 56 45 5f 53 54 44 49 4f 5f 48 0a 23 f HAVE_STDIO_H.# 03c0: 20 20 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f include <stdio 03d0: 2e 68 3e 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 .h>.#endif.#ifde 03e0: 66 20 48 41 56 45 5f 53 54 44 4c 49 42 5f 48 0a f HAVE_STDLIB_H. 03f0: 23 20 20 69 6e 63 6c 75 64 65 20 3c 73 74 64 6c # include <stdl 0400: 69 62 2e 68 3e 0a 23 65 6e 64 69 66 0a 23 69 66 ib.h>.#endif.#if 0410: 64 65 66 20 48 41 56 45 5f 53 54 52 49 4e 47 5f def HAVE_STRING_ 0420: 48 0a 23 20 20 69 6e 63 6c 75 64 65 20 3c 73 74 H.# include <st 0430: 72 69 6e 67 2e 68 3e 0a 23 65 6e 64 69 66 0a 23 ring.h>.#endif.# 0440: 69 66 64 65 66 20 48 41 56 45 5f 53 59 53 5f 53 ifdef HAVE_SYS_S 0450: 4f 43 4b 45 54 5f 48 0a 23 20 20 69 6e 63 6c 75 OCKET_H.# inclu 0460: 64 65 20 3c 73 79 73 2f 73 6f 63 6b 65 74 2e 68 de <sys/socket.h 0470: 3e 0a 23 65 6e 64 69 66 0a 23 69 66 64 65 66 20 >.#endif.#ifdef 0480: 48 41 56 45 5f 53 59 53 5f 54 59 50 45 53 5f 48 HAVE_SYS_TYPES_H 0490: 0a 23 20 20 69 6e 63 6c 75 64 65 20 3c 73 79 73 .# include <sys 04a0: 2f 74 79 70 65 73 2e 68 3e 0a 23 65 6e 64 69 66 /types.h>.#endif 04b0: 0a 23 69 66 64 65 66 20 48 41 56 45 5f 53 59 53 .#ifdef HAVE_SYS 04c0: 5f 55 4e 5f 48 0a 23 20 20 69 6e 63 6c 75 64 65 _UN_H.# include 04d0: 20 3c 73 79 73 2f 75 6e 2e 68 3e 0a 23 65 6e 64 <sys/un.h>.#end 04e0: 69 66 0a 23 69 66 64 65 66 20 48 41 56 45 5f 55 if.#ifdef HAVE_U 04f0: 4e 49 53 54 44 5f 48 0a 23 20 20 69 6e 63 6c 75 NISTD_H.# inclu 0500: 64 65 20 3c 75 6e 69 73 74 64 2e 68 3e 0a 23 65 de <unistd.h>.#e 0510: 6e 64 69 66 0a 23 69 66 64 65 66 20 48 41 56 45 ndif.#ifdef HAVE 0520: 5f 50 54 48 52 45 41 44 5f 48 0a 23 20 20 69 6e _PTHREAD_H.# in 0530: 63 6c 75 64 65 20 3c 70 74 68 72 65 61 64 2e 68 clude <pthread.h 0540: 3e 0a 23 65 6e 64 69 66 0a 5d 29 0a 0a 64 6e 6c >.#endif.])..dnl 0550: 20 43 68 65 63 6b 20 66 6f 72 20 50 43 2f 53 43 Check for PC/SC 0560: 20 68 65 61 64 65 72 73 20 61 6e 64 20 6c 69 62 headers and lib 0570: 72 61 72 69 65 73 0a 44 43 5f 50 43 53 43 0a 0a raries.DC_PCSC.. 0580: 64 6e 6c 20 55 70 61 74 65 20 4c 44 46 4c 41 47 dnl Upate LDFLAG 0590: 53 20 74 6f 20 69 6e 63 6c 75 64 65 20 73 65 74 S to include set 05a0: 74 69 6e 67 20 74 68 65 20 72 75 6e 2d 74 69 6d ting the run-tim 05b0: 65 20 6c 69 6e 6b 65 72 20 70 61 74 68 20 74 6f e linker path to 05c0: 20 74 68 65 20 73 61 6d 65 20 61 73 20 6f 75 72 the same as our 05d0: 20 63 6f 6d 70 69 6c 65 2d 74 69 6d 65 20 6c 69 compile-time li 05e0: 6e 6b 65 72 0a 44 43 5f 53 59 4e 43 5f 52 50 41 nker.DC_SYNC_RPA 05f0: 54 48 0a 0a 64 6e 6c 20 49 66 20 77 65 20 75 70 TH..dnl If we up 0600: 64 61 74 65 64 20 4c 49 42 4f 42 4a 53 2c 20 75 dated LIBOBJS, u 0610: 70 64 61 74 65 20 53 48 4c 49 42 4f 42 4a 53 20 pdate SHLIBOBJS 0620: 2d 2d 20 6d 75 73 74 20 62 65 20 6c 61 73 74 2e -- must be last. 0630: 0a 44 43 5f 53 59 4e 43 5f 53 48 4c 49 42 4f 42 .DC_SYNC_SHLIBOB 0640: 4a 53 0a 0a 64 6e 6c 20 50 72 6f 64 75 63 65 20 JS..dnl Produce 0650: 4d 61 6b 65 66 69 6c 65 0a 41 43 5f 4f 55 54 50 Makefile.AC_OUTP 0660: 55 54 28 4d 61 6b 65 66 69 6c 65 29 0a UT(Makefile).