Hex Artifact Content

Artifact 253ee75c468486fb0e4c8810596d909d457514da:


0000: 41 43 5f 44 45 46 55 4e 28 44 43 5f 50 43 53 43  AC_DEFUN(DC_PCSC
0010: 5f 48 45 41 44 45 52 53 2c 20 5b 0a 09 53 41 56  _HEADERS, [..SAV
0020: 45 5f 43 46 4c 41 47 53 3d 22 24 7b 43 46 4c 41  E_CFLAGS="${CFLA
0030: 47 53 7d 22 0a 09 53 41 56 45 5f 43 50 50 46 4c  GS}"..SAVE_CPPFL
0040: 41 47 53 3d 22 24 7b 43 50 50 46 4c 41 47 53 7d  AGS="${CPPFLAGS}
0050: 22 0a 09 41 44 44 5f 43 46 4c 41 47 53 3d 22 22  "..ADD_CFLAGS=""
0060: 0a 09 41 44 44 5f 43 50 50 46 4c 41 47 53 3d 22  ..ADD_CPPFLAGS="
0070: 22 0a 0a 09 66 6f 72 20 68 65 61 64 65 72 70 61  "...for headerpa
0080: 74 68 20 69 6e 20 2f 75 73 72 2f 69 6e 63 6c 75  th in /usr/inclu
0090: 64 65 20 2f 75 73 72 2f 6c 6f 63 61 6c 2f 69 6e  de /usr/local/in
00a0: 63 6c 75 64 65 20 2f 75 73 72 2f 63 61 63 2f 69  clude /usr/cac/i
00b0: 6e 63 6c 75 64 65 3b 20 64 6f 0a 09 09 66 6f 72  nclude; do...for
00c0: 20 73 75 62 64 69 72 20 69 6e 20 73 6d 61 72 74   subdir in smart
00d0: 63 61 72 64 20 50 43 53 43 20 70 63 73 63 20 70  card PCSC pcsc p
00e0: 63 73 63 6c 69 74 65 20 22 22 3b 20 64 6f 0a 09  csclite ""; do..
00f0: 09 09 68 65 61 64 65 72 64 69 72 3d 22 24 7b 68  ..headerdir="${h
0100: 65 61 64 65 72 70 61 74 68 7d 2f 24 7b 73 75 62  eaderpath}/${sub
0110: 64 69 72 7d 22 0a 09 09 09 43 46 4c 41 47 53 3d  dir}"....CFLAGS=
0120: 22 24 7b 53 41 56 45 5f 43 46 4c 41 47 53 7d 20  "${SAVE_CFLAGS} 
0130: 2d 49 24 7b 68 65 61 64 65 72 64 69 72 7d 22 0a  -I${headerdir}".
0140: 09 09 09 43 50 50 46 4c 41 47 53 3d 22 24 7b 53  ...CPPFLAGS="${S
0150: 41 56 45 5f 43 50 50 46 4c 41 47 53 7d 20 2d 49  AVE_CPPFLAGS} -I
0160: 24 7b 68 65 61 64 65 72 64 69 72 7d 22 0a 0a 09  ${headerdir}"...
0170: 09 09 75 6e 73 65 74 20 61 63 5f 63 76 5f 68 65  ..unset ac_cv_he
0180: 61 64 65 72 5f 70 63 73 63 6c 69 74 65 5f 68 0a  ader_pcsclite_h.
0190: 0a 09 09 09 41 43 5f 43 48 45 43 4b 5f 48 45 41  ....AC_CHECK_HEA
01a0: 44 45 52 28 70 63 73 63 6c 69 74 65 2e 68 2c 20  DER(pcsclite.h, 
01b0: 5b 0a 09 09 09 09 41 43 5f 44 45 46 49 4e 45 28  [.....AC_DEFINE(
01c0: 48 41 56 45 5f 50 43 53 43 4c 49 54 45 5f 48 2c  HAVE_PCSCLITE_H,
01d0: 20 5b 31 5d 2c 20 5b 44 65 66 69 6e 65 20 69 66   [1], [Define if
01e0: 20 79 6f 75 20 68 61 76 65 20 74 68 65 20 50 43   you have the PC
01f0: 53 43 2d 4c 69 74 65 20 68 65 61 64 65 72 20 66  SC-Lite header f
0200: 69 6c 65 20 28 79 6f 75 20 73 68 6f 75 6c 64 29  ile (you should)
0210: 5d 29 0a 0a 09 09 09 09 41 44 44 5f 43 46 4c 41  ])......ADD_CFLA
0220: 47 53 3d 22 20 2d 49 24 7b 68 65 61 64 65 72 64  GS=" -I${headerd
0230: 69 72 7d 22 0a 09 09 09 09 41 44 44 5f 43 50 50  ir}".....ADD_CPP
0240: 46 4c 41 47 53 3d 22 20 2d 49 24 7b 68 65 61 64  FLAGS=" -I${head
0250: 65 72 64 69 72 7d 22 0a 0a 09 09 09 09 62 72 65  erdir}"......bre
0260: 61 6b 0a 09 09 09 5d 29 0a 09 09 64 6f 6e 65 0a  ak....])...done.
0270: 0a 09 09 69 66 20 74 65 73 74 20 2d 6e 20 22 24  ...if test -n "$
0280: 7b 41 44 44 5f 43 46 4c 41 47 53 7d 22 20 2d 6f  {ADD_CFLAGS}" -o
0290: 20 2d 6e 20 22 24 7b 41 44 44 5f 43 50 50 46 4c   -n "${ADD_CPPFL
02a0: 41 47 53 7d 22 3b 20 74 68 65 6e 0a 09 09 09 62  AGS}"; then....b
02b0: 72 65 61 6b 0a 09 09 66 69 0a 09 64 6f 6e 65 0a  reak...fi..done.
02c0: 0a 09 43 46 4c 41 47 53 3d 22 24 7b 53 41 56 45  ..CFLAGS="${SAVE
02d0: 5f 43 46 4c 41 47 53 7d 24 7b 41 44 44 5f 43 46  _CFLAGS}${ADD_CF
02e0: 4c 41 47 53 7d 22 0a 09 43 50 50 46 4c 41 47 53  LAGS}"..CPPFLAGS
02f0: 3d 22 24 7b 53 41 56 45 5f 43 50 50 46 4c 41 47  ="${SAVE_CPPFLAG
0300: 53 7d 24 7b 41 44 44 5f 43 50 50 46 4c 41 47 53  S}${ADD_CPPFLAGS
0310: 7d 22 0a 5d 29 0a                                }".]).