Hex Artifact Content

Artifact 278f27f1216b824bcb93e29aa62e6acfd77b2828:


0000: 64 6e 6c 20 55 73 61 67 65 3a 0a 64 6e 6c 20 20  dnl Usage:.dnl  
0010: 20 20 44 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46    DC_TEST_SHOBJF
0020: 4c 41 47 53 28 73 68 6f 62 6a 66 6c 61 67 73 2c  LAGS(shobjflags,
0030: 20 73 68 6f 62 6a 6c 64 66 6c 61 67 73 2c 20 61   shobjldflags, a
0040: 63 74 69 6f 6e 2d 69 66 2d 6e 6f 74 2d 66 6f 75  ction-if-not-fou
0050: 6e 64 29 0a 64 6e 6c 0a 41 43 5f 44 45 46 55 4e  nd).dnl.AC_DEFUN
0060: 28 44 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c  (DC_TEST_SHOBJFL
0070: 41 47 53 2c 20 5b 0a 20 20 41 43 5f 53 55 42 53  AGS, [.  AC_SUBS
0080: 54 28 53 48 4f 42 4a 46 4c 41 47 53 29 0a 20 20  T(SHOBJFLAGS).  
0090: 41 43 5f 53 55 42 53 54 28 53 48 4f 42 4a 4c 44  AC_SUBST(SHOBJLD
00a0: 46 4c 41 47 53 29 0a 0a 20 20 4f 4c 44 5f 4c 44  FLAGS)..  OLD_LD
00b0: 46 4c 41 47 53 3d 22 24 4c 44 46 4c 41 47 53 22  FLAGS="$LDFLAGS"
00c0: 0a 20 20 53 48 4f 42 4a 46 4c 41 47 53 3d 22 22  .  SHOBJFLAGS=""
00d0: 0a 0a 20 20 4c 44 46 4c 41 47 53 3d 22 24 4f 4c  ..  LDFLAGS="$OL
00e0: 44 5f 4c 44 46 4c 41 47 53 20 24 31 20 24 32 22  D_LDFLAGS $1 $2"
00f0: 0a 0a 20 20 41 43 5f 54 52 59 5f 4c 49 4e 4b 28  ..  AC_TRY_LINK(
0100: 5b 23 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f  [#include <stdio
0110: 2e 68 3e 0a 69 6e 74 20 75 6e 72 65 73 74 73 74  .h>.int unrestst
0120: 28 76 6f 69 64 29 3b 5d 2c 20 5b 20 70 72 69 6e  (void);], [ prin
0130: 74 66 28 22 6f 6b 61 79 5c 6e 22 29 3b 20 75 6e  tf("okay\n"); un
0140: 72 65 73 74 73 74 28 29 3b 20 72 65 74 75 72 6e  restst(); return
0150: 28 30 29 3b 20 5d 2c 20 5b 20 53 48 4f 42 4a 46  (0); ], [ SHOBJF
0160: 4c 41 47 53 3d 22 24 31 22 3b 20 53 48 4f 42 4a  LAGS="$1"; SHOBJ
0170: 4c 44 46 4c 41 47 53 3d 22 24 32 22 20 5d 2c 20  LDFLAGS="$2" ], 
0180: 5b 0a 20 20 20 20 4c 44 46 4c 41 47 53 3d 22 24  [.    LDFLAGS="$
0190: 4f 4c 44 5f 4c 44 46 4c 41 47 53 22 0a 20 20 20  OLD_LDFLAGS".   
01a0: 20 24 33 0a 20 20 5d 29 0a 0a 20 20 4c 44 46 4c   $3.  ])..  LDFL
01b0: 41 47 53 3d 22 24 4f 4c 44 5f 4c 44 46 4c 41 47  AGS="$OLD_LDFLAG
01c0: 53 22 0a 5d 29 0a 0a 41 43 5f 44 45 46 55 4e 28  S".])..AC_DEFUN(
01d0: 44 43 5f 47 45 54 5f 53 48 4f 42 4a 46 4c 41 47  DC_GET_SHOBJFLAG
01e0: 53 2c 20 5b 0a 20 20 41 43 5f 53 55 42 53 54 28  S, [.  AC_SUBST(
01f0: 53 48 4f 42 4a 46 4c 41 47 53 29 0a 20 20 41 43  SHOBJFLAGS).  AC
0200: 5f 53 55 42 53 54 28 53 48 4f 42 4a 4c 44 46 4c  _SUBST(SHOBJLDFL
0210: 41 47 53 29 0a 20 20 41 43 5f 53 55 42 53 54 28  AGS).  AC_SUBST(
0220: 44 45 46 41 55 4c 54 5f 54 41 52 47 45 54 29 0a  DEFAULT_TARGET).
0230: 0a 20 20 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49  .  AC_MSG_CHECKI
0240: 4e 47 28 68 6f 77 20 74 6f 20 63 72 65 61 74 65  NG(how to create
0250: 20 73 68 61 72 65 64 20 6f 62 6a 65 63 74 73 29   shared objects)
0260: 0a 0a 20 20 44 45 46 41 55 4c 54 5f 54 41 52 47  ..  DEFAULT_TARG
0270: 45 54 3d 73 68 61 72 65 64 0a 20 20 69 66 20 74  ET=shared.  if t
0280: 65 73 74 20 2d 7a 20 22 24 53 48 4f 42 4a 46 4c  est -z "$SHOBJFL
0290: 41 47 53 22 20 2d 61 20 2d 7a 20 22 24 53 48 4f  AGS" -a -z "$SHO
02a0: 42 4a 4c 44 46 4c 41 47 53 22 3b 20 74 68 65 6e  BJLDFLAGS"; then
02b0: 0a 20 20 20 20 44 43 5f 54 45 53 54 5f 53 48 4f  .    DC_TEST_SHO
02c0: 42 4a 46 4c 41 47 53 28 5b 2d 66 50 49 43 20 2d  BJFLAGS([-fPIC -
02d0: 44 50 49 43 5d 2c 20 5b 2d 73 68 61 72 65 64 20  DPIC], [-shared 
02e0: 2d 72 64 79 6e 61 6d 69 63 5d 2c 20 5b 0a 20 20  -rdynamic], [.  
02f0: 20 20 20 20 44 43 5f 54 45 53 54 5f 53 48 4f 42      DC_TEST_SHOB
0300: 4a 46 4c 41 47 53 28 5b 2d 66 50 49 43 20 2d 44  JFLAGS([-fPIC -D
0310: 50 49 43 5d 2c 20 5b 2d 73 68 61 72 65 64 5d 2c  PIC], [-shared],
0320: 20 5b 0a 09 44 43 5f 54 45 53 54 5f 53 48 4f 42   [..DC_TEST_SHOB
0330: 4a 46 4c 41 47 53 28 5b 2d 66 50 49 43 20 2d 44  JFLAGS([-fPIC -D
0340: 50 49 43 5d 2c 20 5b 2d 73 68 61 72 65 64 20 2d  PIC], [-shared -
0350: 72 64 79 6e 61 6d 69 63 20 2d 6d 69 6d 70 75 72  rdynamic -mimpur
0360: 65 2d 74 65 78 74 5d 2c 20 5b 0a 09 20 20 44 43  e-text], [..  DC
0370: 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c 41 47 53  _TEST_SHOBJFLAGS
0380: 28 5b 2d 66 50 49 43 20 2d 44 50 49 43 5d 2c 20  ([-fPIC -DPIC], 
0390: 5b 2d 73 68 61 72 65 64 20 2d 6d 69 6d 70 75 72  [-shared -mimpur
03a0: 65 2d 74 65 78 74 5d 2c 20 5b 0a 09 20 20 20 20  e-text], [..    
03b0: 44 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c 41  DC_TEST_SHOBJFLA
03c0: 47 53 28 5b 2d 66 50 49 43 20 2d 44 50 49 43 5d  GS([-fPIC -DPIC]
03d0: 2c 20 5b 2d 73 68 61 72 65 64 20 2d 72 64 79 6e  , [-shared -rdyn
03e0: 61 6d 69 63 20 2d 57 6c 2c 2d 47 2c 2d 7a 2c 74  amic -Wl,-G,-z,t
03f0: 65 78 74 6f 66 66 5d 2c 20 5b 0a 09 20 20 20 20  extoff], [..    
0400: 20 20 44 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46    DC_TEST_SHOBJF
0410: 4c 41 47 53 28 5b 2d 66 50 49 43 20 2d 44 50 49  LAGS([-fPIC -DPI
0420: 43 5d 2c 20 5b 2d 73 68 61 72 65 64 20 2d 57 6c  C], [-shared -Wl
0430: 2c 2d 47 2c 2d 7a 2c 74 65 78 74 6f 66 66 5d 2c  ,-G,-z,textoff],
0440: 20 5b 0a 09 09 44 43 5f 54 45 53 54 5f 53 48 4f   [...DC_TEST_SHO
0450: 42 4a 46 4c 41 47 53 28 5b 2d 66 50 49 43 20 2d  BJFLAGS([-fPIC -
0460: 44 50 49 43 5d 2c 20 5b 2d 73 68 61 72 65 64 20  DPIC], [-shared 
0470: 2d 64 79 6e 61 6d 69 63 6c 69 62 20 2d 66 6c 61  -dynamiclib -fla
0480: 74 5f 6e 61 6d 65 73 70 61 63 65 20 2d 75 6e 64  t_namespace -und
0490: 65 66 69 6e 65 64 20 73 75 70 70 72 65 73 73 20  efined suppress 
04a0: 2d 62 69 6e 64 5f 61 74 5f 6c 6f 61 64 5d 2c 20  -bind_at_load], 
04b0: 5b 0a 09 09 20 20 44 43 5f 54 45 53 54 5f 53 48  [...  DC_TEST_SH
04c0: 4f 42 4a 46 4c 41 47 53 28 5b 2d 66 50 49 43 20  OBJFLAGS([-fPIC 
04d0: 2d 44 50 49 43 5d 2c 20 5b 2d 64 79 6e 61 6d 69  -DPIC], [-dynami
04e0: 63 6c 69 62 20 2d 66 6c 61 74 5f 6e 61 6d 65 73  clib -flat_names
04f0: 70 61 63 65 20 2d 75 6e 64 65 66 69 6e 65 64 20  pace -undefined 
0500: 73 75 70 70 72 65 73 73 20 2d 62 69 6e 64 5f 61  suppress -bind_a
0510: 74 5f 6c 6f 61 64 5d 2c 20 5b 0a 09 09 20 20 20  t_load], [...   
0520: 20 44 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c   DC_TEST_SHOBJFL
0530: 41 47 53 28 5b 2d 66 50 49 43 20 2d 44 50 49 43  AGS([-fPIC -DPIC
0540: 5d 2c 20 5b 2d 57 6c 2c 2d 64 79 6e 61 6d 69 63  ], [-Wl,-dynamic
0550: 6c 69 62 20 2d 57 6c 2c 2d 66 6c 61 74 5f 6e 61  lib -Wl,-flat_na
0560: 6d 65 73 70 61 63 65 20 2d 57 6c 2c 2d 75 6e 64  mespace -Wl,-und
0570: 65 66 69 6e 65 64 2c 73 75 70 70 72 65 73 73 20  efined,suppress 
0580: 2d 57 6c 2c 2d 62 69 6e 64 5f 61 74 5f 6c 6f 61  -Wl,-bind_at_loa
0590: 64 5d 2c 20 5b 0a 09 09 20 20 20 20 20 20 44 43  d], [...      DC
05a0: 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c 41 47 53  _TEST_SHOBJFLAGS
05b0: 28 5b 2d 66 50 49 43 20 2d 44 50 49 43 5d 2c 20  ([-fPIC -DPIC], 
05c0: 5b 2d 64 79 6e 61 6d 69 63 6c 69 62 20 2d 66 6c  [-dynamiclib -fl
05d0: 61 74 5f 6e 61 6d 65 73 70 61 63 65 20 2d 75 6e  at_namespace -un
05e0: 64 65 66 69 6e 65 64 20 73 75 70 70 72 65 73 73  defined suppress
05f0: 5d 2c 20 5b 0a 09 09 20 20 20 20 20 20 20 20 44  ], [...        D
0600: 43 5f 54 45 53 54 5f 53 48 4f 42 4a 46 4c 41 47  C_TEST_SHOBJFLAG
0610: 53 28 5b 2d 66 50 49 43 20 2d 44 50 49 43 5d 2c  S([-fPIC -DPIC],
0620: 20 5b 2d 64 79 6e 61 6d 69 63 6c 69 62 5d 2c 20   [-dynamiclib], 
0630: 5b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  [.              
0640: 20 20 20 20 20 20 20 20 20 20 20 20 44 45 46 41              DEFA
0650: 55 4c 54 5f 54 41 52 47 45 54 3d 73 74 61 74 69  ULT_TARGET=stati
0660: 63 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  c.              
0670: 20 20 20 20 20 20 20 20 20 20 5d 29 0a 09 09 20            ])... 
0680: 20 20 20 20 20 5d 29 0a 09 09 20 20 20 20 5d 29       ])...    ])
0690: 0a 09 09 20 20 5d 29 0a 09 09 5d 29 0a 09 20 20  ...  ])...])..  
06a0: 20 20 20 20 5d 29 0a 09 20 20 20 20 5d 29 0a 09      ])..    ])..
06b0: 20 20 5d 29 0a 09 5d 29 0a 20 20 20 20 20 20 5d    ])..]).      ]
06c0: 29 0a 20 20 20 20 5d 29 0a 20 20 66 69 0a 0a 20  ).    ]).  fi.. 
06d0: 20 69 66 20 74 65 73 74 20 22 24 44 45 46 41 55   if test "$DEFAU
06e0: 4c 54 5f 54 41 52 47 45 54 22 20 3d 20 27 73 68  LT_TARGET" = 'sh
06f0: 61 72 65 64 27 20 3b 20 74 68 65 6e 0a 20 20 20  ared' ; then.   
0700: 20 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54 28 24   AC_MSG_RESULT($
0710: 53 48 4f 42 4a 4c 44 46 4c 41 47 53 20 24 53 48  SHOBJLDFLAGS $SH
0720: 4f 42 4a 46 4c 41 47 53 29 0a 20 20 65 6c 73 65  OBJFLAGS).  else
0730: 0a 20 20 20 20 41 43 5f 4d 53 47 5f 52 45 53 55  .    AC_MSG_RESU
0740: 4c 54 28 63 61 6e 74 20 2d 2d 20 72 65 73 75 6c  LT(cant -- resul
0750: 74 20 77 69 6c 6c 20 62 65 20 61 20 73 74 61 74  t will be a stat
0760: 69 63 20 61 72 63 68 69 76 65 29 0a 20 20 66 69  ic archive).  fi
0770: 0a 0a 20 20 44 43 5f 53 59 4e 43 5f 53 48 4c 49  ..  DC_SYNC_SHLI
0780: 42 4f 42 4a 53 0a 5d 29 0a 0a 41 43 5f 44 45 46  BOBJS.])..AC_DEF
0790: 55 4e 28 44 43 5f 53 59 4e 43 5f 53 48 4c 49 42  UN(DC_SYNC_SHLIB
07a0: 4f 42 4a 53 2c 20 5b 0a 20 20 41 43 5f 53 55 42  OBJS, [.  AC_SUB
07b0: 53 54 28 53 48 4c 49 42 4f 42 4a 53 29 0a 20 20  ST(SHLIBOBJS).  
07c0: 53 48 4c 49 42 4f 42 4a 53 3d 22 22 0a 20 20 66  SHLIBOBJS="".  f
07d0: 6f 72 20 6f 62 6a 20 69 6e 20 24 4c 49 42 40 26  or obj in $LIB@&
07e0: 74 40 4f 42 4a 53 3b 20 64 6f 0a 20 20 20 20 53  t@OBJS; do.    S
07f0: 48 4c 49 42 4f 42 4a 53 3d 22 24 53 48 4c 49 42  HLIBOBJS="$SHLIB
0800: 4f 42 4a 53 20 60 65 63 68 6f 20 24 6f 62 6a 20  OBJS `echo $obj 
0810: 7c 20 73 65 64 20 27 73 2f 5c 2e 6f 24 2f 5f 73  | sed 's/\.o$/_s
0820: 68 72 2e 6f 2f 67 27 60 22 0a 20 20 64 6f 6e 65  hr.o/g'`".  done
0830: 0a 5d 29 0a 0a 41 43 5f 44 45 46 55 4e 28 44 43  .])..AC_DEFUN(DC
0840: 5f 53 59 4e 43 5f 52 50 41 54 48 2c 20 5b 0a 20  _SYNC_RPATH, [. 
0850: 20 4f 4c 44 5f 4c 44 46 4c 41 47 53 3d 22 24 4c   OLD_LDFLAGS="$L
0860: 44 46 4c 41 47 53 22 0a 0a 20 20 66 6f 72 20 74  DFLAGS"..  for t
0870: 72 79 72 70 61 74 68 20 69 6e 20 22 2d 57 6c 2c  ryrpath in "-Wl,
0880: 2d 72 70 61 74 68 22 20 22 2d 57 6c 2c 2d 2d 72  -rpath" "-Wl,--r
0890: 70 61 74 68 22 20 22 2d 57 6c 2c 2d 52 22 3b 20  path" "-Wl,-R"; 
08a0: 64 6f 0a 20 20 20 20 4c 44 46 4c 41 47 53 3d 22  do.    LDFLAGS="
08b0: 24 4f 4c 44 5f 4c 44 46 4c 41 47 53 20 24 74 72  $OLD_LDFLAGS $tr
08c0: 79 72 70 61 74 68 20 2d 57 6c 2c 2f 74 6d 70 22  yrpath -Wl,/tmp"
08d0: 0a 20 20 20 20 41 43 5f 4c 49 4e 4b 5f 49 46 45  .    AC_LINK_IFE
08e0: 4c 53 45 28 41 43 5f 4c 41 4e 47 5f 50 52 4f 47  LSE(AC_LANG_PROG
08f0: 52 41 4d 28 5b 5d 2c 20 5b 20 72 65 74 75 72 6e  RAM([], [ return
0900: 28 30 29 3b 20 5d 29 2c 20 5b 0a 20 20 20 20 20  (0); ]), [.     
0910: 20 72 70 61 74 68 6c 64 66 6c 61 67 73 3d 22 24   rpathldflags="$
0920: 74 72 79 72 70 61 74 68 22 0a 20 20 20 20 20 20  tryrpath".      
0930: 62 72 65 61 6b 0a 20 20 20 20 5d 29 0a 20 20 64  break.    ]).  d
0940: 6f 6e 65 0a 20 20 75 6e 73 65 74 20 74 72 79 72  one.  unset tryr
0950: 70 61 74 68 0a 0a 20 20 4c 44 46 4c 41 47 53 3d  path..  LDFLAGS=
0960: 22 24 4f 4c 44 5f 4c 44 46 4c 41 47 53 22 0a 20  "$OLD_LDFLAGS". 
0970: 20 75 6e 73 65 74 20 4f 4c 44 5f 4c 44 46 4c 41   unset OLD_LDFLA
0980: 47 53 0a 0a 20 20 41 44 44 4c 44 46 4c 41 47 53  GS..  ADDLDFLAGS
0990: 3d 22 22 0a 20 20 66 6f 72 20 6f 70 74 20 69 6e  ="".  for opt in
09a0: 20 24 4c 44 46 4c 41 47 53 3b 20 64 6f 0a 20 20   $LDFLAGS; do.  
09b0: 20 20 69 66 20 65 63 68 6f 20 22 24 6f 70 74 22    if echo "$opt"
09c0: 20 7c 20 67 72 65 70 20 27 5e 2d 4c 27 20 3e 2f   | grep '^-L' >/
09d0: 64 65 76 2f 6e 75 6c 6c 3b 20 74 68 65 6e 0a 20  dev/null; then. 
09e0: 20 20 20 20 20 72 70 61 74 68 64 69 72 3d 60 65       rpathdir=`e
09f0: 63 68 6f 20 22 24 6f 70 74 22 20 7c 20 73 65 64  cho "$opt" | sed
0a00: 20 27 73 40 5e 2d 4c 20 2a 40 40 27 60 0a 20 20   's@^-L *@@'`.  
0a10: 20 20 20 20 41 44 44 4c 44 46 4c 41 47 53 3d 22      ADDLDFLAGS="
0a20: 24 41 44 44 4c 44 46 4c 41 47 53 20 24 72 70 61  $ADDLDFLAGS $rpa
0a30: 74 68 6c 64 66 6c 61 67 73 20 2d 57 6c 2c 24 72  thldflags -Wl,$r
0a40: 70 61 74 68 64 69 72 22 0a 20 20 20 20 66 69 0a  pathdir".    fi.
0a50: 20 20 64 6f 6e 65 0a 20 20 75 6e 73 65 74 20 6f    done.  unset o
0a60: 70 74 20 72 70 61 74 68 6c 64 66 6c 61 67 73 0a  pt rpathldflags.
0a70: 0a 20 20 4c 44 46 4c 41 47 53 3d 22 24 4c 44 46  .  LDFLAGS="$LDF
0a80: 4c 41 47 53 20 24 41 44 44 4c 44 46 4c 41 47 53  LAGS $ADDLDFLAGS
0a90: 22 0a 0a 20 20 75 6e 73 65 74 20 41 44 44 4c 44  "..  unset ADDLD
0aa0: 46 4c 41 47 53 0a 5d 29 0a 0a 41 43 5f 44 45 46  FLAGS.])..AC_DEF
0ab0: 55 4e 28 44 43 5f 43 48 4b 5f 4f 53 5f 49 4e 46  UN(DC_CHK_OS_INF
0ac0: 4f 2c 20 5b 0a 09 41 43 5f 43 41 4e 4f 4e 49 43  O, [..AC_CANONIC
0ad0: 41 4c 5f 48 4f 53 54 0a 09 41 43 5f 53 55 42 53  AL_HOST..AC_SUBS
0ae0: 54 28 53 48 4f 42 4a 45 58 54 29 0a 09 41 43 5f  T(SHOBJEXT)..AC_
0af0: 53 55 42 53 54 28 53 48 4f 42 4a 46 4c 41 47 53  SUBST(SHOBJFLAGS
0b00: 29 0a 09 41 43 5f 53 55 42 53 54 28 53 48 4f 42  )..AC_SUBST(SHOB
0b10: 4a 4c 44 46 4c 41 47 53 29 0a 09 41 43 5f 53 55  JLDFLAGS)..AC_SU
0b20: 42 53 54 28 43 46 4c 41 47 53 29 0a 09 41 43 5f  BST(CFLAGS)..AC_
0b30: 53 55 42 53 54 28 43 50 50 46 4c 41 47 53 29 0a  SUBST(CPPFLAGS).
0b40: 09 41 43 5f 53 55 42 53 54 28 41 52 45 58 54 29  .AC_SUBST(AREXT)
0b50: 0a 0a 09 41 43 5f 4d 53 47 5f 43 48 45 43 4b 49  ...AC_MSG_CHECKI
0b60: 4e 47 28 68 6f 73 74 20 6f 70 65 72 61 74 69 6e  NG(host operatin
0b70: 67 20 73 79 73 74 65 6d 29 0a 09 41 43 5f 4d 53  g system)..AC_MS
0b80: 47 5f 52 45 53 55 4c 54 28 24 68 6f 73 74 5f 6f  G_RESULT($host_o
0b90: 73 29 0a 0a 09 53 48 4f 42 4a 45 58 54 3d 22 73  s)...SHOBJEXT="s
0ba0: 6f 22 0a 09 41 52 45 58 54 3d 22 61 22 0a 0a 09  o"..AREXT="a"...
0bb0: 63 61 73 65 20 24 68 6f 73 74 5f 6f 73 20 69 6e  case $host_os in
0bc0: 0a 09 09 64 61 72 77 69 6e 2a 29 0a 09 09 09 53  ...darwin*)....S
0bd0: 48 4f 42 4a 45 58 54 3d 22 64 79 6c 69 62 22 0a  HOBJEXT="dylib".
0be0: 09 09 09 3b 3b 0a 09 09 68 70 75 78 2a 29 0a 09  ...;;...hpux*)..
0bf0: 09 09 53 48 4f 42 4a 45 58 54 3d 22 73 6c 22 0a  ..SHOBJEXT="sl".
0c00: 09 09 09 3b 3b 0a 09 09 6d 69 6e 67 77 33 32 7c  ...;;...mingw32|
0c10: 6d 69 6e 67 77 33 32 6d 73 76 63 2a 29 0a 09 09  mingw32msvc*)...
0c20: 09 53 48 4f 42 4a 45 58 54 3d 22 64 6c 6c 22 0a  .SHOBJEXT="dll".
0c30: 09 09 09 53 48 4f 42 4a 46 4c 41 47 53 3d 22 2d  ...SHOBJFLAGS="-
0c40: 44 50 49 43 22 0a 09 09 09 43 46 4c 41 47 53 3d  DPIC"....CFLAGS=
0c50: 22 24 43 46 4c 41 47 53 20 2d 6d 6d 73 2d 62 69  "$CFLAGS -mms-bi
0c60: 74 66 69 65 6c 64 73 22 0a 09 09 09 43 50 50 46  tfields"....CPPF
0c70: 4c 41 47 53 3d 22 24 43 50 50 46 4c 41 47 53 20  LAGS="$CPPFLAGS 
0c80: 2d 6d 6d 73 2d 62 69 74 66 69 65 6c 64 73 22 0a  -mms-bitfields".
0c90: 09 09 09 53 48 4f 42 4a 4c 44 46 4c 41 47 53 3d  ...SHOBJLDFLAGS=
0ca0: 27 2d 73 68 61 72 65 64 20 2d 57 6c 2c 2d 2d 64  '-shared -Wl,--d
0cb0: 6c 6c 20 2d 57 6c 2c 2d 2d 65 6e 61 62 6c 65 2d  ll -Wl,--enable-
0cc0: 61 75 74 6f 2d 69 6d 61 67 65 2d 62 61 73 65 20  auto-image-base 
0cd0: 2d 57 6c 2c 2d 2d 6f 75 74 70 75 74 2d 64 65 66  -Wl,--output-def
0ce0: 2c 24 5b 40 5d 2e 64 65 66 2c 2d 2d 6f 75 74 2d  ,$[@].def,--out-
0cf0: 69 6d 70 6c 69 62 2c 24 5b 40 5d 2e 61 27 0a 09  implib,$[@].a'..
0d00: 09 09 3b 3b 0a 09 09 63 79 67 77 69 6e 2a 29 0a  ..;;...cygwin*).
0d10: 09 09 09 53 48 4f 42 4a 45 58 54 3d 22 64 6c 6c  ...SHOBJEXT="dll
0d20: 22 0a 09 09 09 53 48 4f 42 4a 46 4c 41 47 53 3d  "....SHOBJFLAGS=
0d30: 22 2d 66 50 49 43 20 2d 44 50 49 43 22 0a 09 09  "-fPIC -DPIC"...
0d40: 09 43 46 4c 41 47 53 3d 22 24 43 46 4c 41 47 53  .CFLAGS="$CFLAGS
0d50: 20 2d 6d 6d 73 2d 62 69 74 66 69 65 6c 64 73 22   -mms-bitfields"
0d60: 0a 09 09 09 43 50 50 46 4c 41 47 53 3d 22 24 43  ....CPPFLAGS="$C
0d70: 50 50 46 4c 41 47 53 20 2d 6d 6d 73 2d 62 69 74  PPFLAGS -mms-bit
0d80: 66 69 65 6c 64 73 22 0a 09 09 09 53 48 4f 42 4a  fields"....SHOBJ
0d90: 4c 44 46 4c 41 47 53 3d 27 2d 73 68 61 72 65 64  LDFLAGS='-shared
0da0: 20 2d 57 6c 2c 2d 2d 65 6e 61 62 6c 65 2d 61 75   -Wl,--enable-au
0db0: 74 6f 2d 69 6d 61 67 65 2d 62 61 73 65 20 2d 57  to-image-base -W
0dc0: 6c 2c 2d 2d 6f 75 74 70 75 74 2d 64 65 66 2c 24  l,--output-def,$
0dd0: 5b 40 5d 2e 64 65 66 2c 2d 2d 6f 75 74 2d 69 6d  [@].def,--out-im
0de0: 70 6c 69 62 2c 24 5b 40 5d 2e 61 27 0a 09 09 09  plib,$[@].a'....
0df0: 3b 3b 0a 09 65 73 61 63 0a 5d 29 0a              ;;..esac.]).