ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/m4/ltoptions.m4
(Generate patch)

Comparing ircd-hybrid/trunk/m4/ltoptions.m4 (file contents):
Revision 4960 by michael, Thu Oct 30 19:33:19 2014 UTC vs.
Revision 4961 by michael, Sun Nov 30 18:09:49 2014 UTC

# Line 82 | Line 82 | m4_if([$1],[LT_INIT],[
82    _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83    _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
84                     [_LT_ENABLE_FAST_INSTALL])
85 +  _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
86 +                   [_LT_WITH_AIX_SONAME([aix])])
87    ])
88   ])# _LT_SET_OPTIONS
89  
# Line 319 | Line 321 | dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [
321   dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
322  
323  
324 + # _LT_WITH_AIX_SONAME([DEFAULT])
325 + # ----------------------------------
326 + # implement the --with-aix-soname flag, and support the `aix-soname=aix'
327 + # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
328 + # is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
329 + m4_define([_LT_WITH_AIX_SONAME],
330 + [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
331 + shared_archive_member_spec=
332 + case $host,$enable_shared in
333 + power*-*-aix[[5-9]]*,yes)
334 +  AC_MSG_CHECKING([which variant of shared library versioning to provide])
335 +  AC_ARG_WITH([aix-soname],
336 +    [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
337 +      [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
338 +    [case $withval in
339 +    aix|svr4|both)
340 +      ;;
341 +    *)
342 +      AC_MSG_ERROR([Unknown argument to --with-aix-soname])
343 +      ;;
344 +    esac
345 +    lt_cv_with_aix_soname=$with_aix_soname],
346 +    [AC_CACHE_VAL([lt_cv_with_aix_soname],
347 +      [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
348 +    with_aix_soname=$lt_cv_with_aix_soname])
349 +  AC_MSG_RESULT([$with_aix_soname])
350 +  if test aix != "$with_aix_soname"; then
351 +    # For the AIX way of multilib, we name the shared archive member
352 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
353 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
354 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
355 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
356 +    if test 64 = "${OBJECT_MODE-32}"; then
357 +      shared_archive_member_spec=shr_64
358 +    else
359 +      shared_archive_member_spec=shr
360 +    fi
361 +  fi
362 +  ;;
363 + *)
364 +  with_aix_soname=aix
365 +  ;;
366 + esac
367 +
368 + _LT_DECL([], [shared_archive_member_spec], [0],
369 +    [Shared archive member basename, for filename based shared library versioning on AIX])dnl
370 + ])# _LT_WITH_AIX_SONAME
371 +
372 + LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
373 + LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
374 + LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
375 +
376 +
377   # _LT_WITH_PIC([MODE])
378   # --------------------
379   # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)