Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (22 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/m4/ltoptions.m4

    r5495 r5496  
    11# Helper functions for option handling.                    -*- Autoconf -*-
    22#
    3 #   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
    4 #   Foundation, Inc.
     3#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     4#   Inc.
    55#   Written by Gary V. Vaughan, 2004
    66#
     
    99# modifications, as long as this notice is preserved.
    1010
    11 # serial 8 ltoptions.m4
     11# serial 7 ltoptions.m4
    1212
    1313# This is to help aclocal find these macros, as it can't see m4_define.
     
    3030m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
    3131        _LT_MANGLE_DEFUN([$1], [$2]),
    32     [m4_warning([Unknown $1 option '$2'])])[]dnl
     32    [m4_warning([Unknown $1 option `$2'])])[]dnl
    3333])
    3434
     
    7676  dnl If no reference was made to various pairs of opposing options, then
    7777  dnl we run the default mode handler for the pair.  For example, if neither
    78   dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
     78  dnl `shared' nor `disable-shared' was passed, we enable building of shared
    7979  dnl archives by default:
    8080  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
     
    8282  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
    8383  _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])])
     84                   [_LT_ENABLE_FAST_INSTALL])
    8785  ])
    8886])# _LT_SET_OPTIONS
     
    115113AC_DIAGNOSE([obsolete],
    116114[$0: Remove this warning and the call to _LT_SET_OPTION when you
    117 put the 'dlopen' option into LT_INIT's first parameter.])
     115put the `dlopen' option into LT_INIT's first parameter.])
    118116])
    119117
     
    151149AC_DIAGNOSE([obsolete],
    152150[$0: Remove this warning and the call to _LT_SET_OPTION when you
    153 put the 'win32-dll' option into LT_INIT's first parameter.])
     151put the `win32-dll' option into LT_INIT's first parameter.])
    154152])
    155153
     
    160158# _LT_ENABLE_SHARED([DEFAULT])
    161159# ----------------------------
    162 # implement the --enable-shared flag, and supports the 'shared' and
    163 # 'disable-shared' LT_INIT options.
    164 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
     160# implement the --enable-shared flag, and supports the `shared' and
     161# `disable-shared' LT_INIT options.
     162# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    165163m4_define([_LT_ENABLE_SHARED],
    166164[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
     
    175173      enable_shared=no
    176174      # Look at the argument we got.  We use all the common list separators.
    177       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
     175      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    178176      for pkg in $enableval; do
    179         IFS=$lt_save_ifs
     177        IFS="$lt_save_ifs"
    180178        if test "X$pkg" = "X$p"; then
    181179          enable_shared=yes
    182180        fi
    183181      done
    184       IFS=$lt_save_ifs
     182      IFS="$lt_save_ifs"
    185183      ;;
    186184    esac],
     
    214212# _LT_ENABLE_STATIC([DEFAULT])
    215213# ----------------------------
    216 # implement the --enable-static flag, and support the 'static' and
    217 # 'disable-static' LT_INIT options.
    218 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
     214# implement the --enable-static flag, and support the `static' and
     215# `disable-static' LT_INIT options.
     216# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    219217m4_define([_LT_ENABLE_STATIC],
    220218[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
     
    229227     enable_static=no
    230228      # Look at the argument we got.  We use all the common list separators.
    231       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
     229      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    232230      for pkg in $enableval; do
    233         IFS=$lt_save_ifs
     231        IFS="$lt_save_ifs"
    234232        if test "X$pkg" = "X$p"; then
    235233          enable_static=yes
    236234        fi
    237235      done
    238       IFS=$lt_save_ifs
     236      IFS="$lt_save_ifs"
    239237      ;;
    240238    esac],
     
    268266# _LT_ENABLE_FAST_INSTALL([DEFAULT])
    269267# ----------------------------------
    270 # implement the --enable-fast-install flag, and support the 'fast-install'
    271 # and 'disable-fast-install' LT_INIT options.
    272 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
     268# implement the --enable-fast-install flag, and support the `fast-install'
     269# and `disable-fast-install' LT_INIT options.
     270# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    273271m4_define([_LT_ENABLE_FAST_INSTALL],
    274272[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
     
    283281      enable_fast_install=no
    284282      # Look at the argument we got.  We use all the common list separators.
    285       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
     283      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    286284      for pkg in $enableval; do
    287         IFS=$lt_save_ifs
     285        IFS="$lt_save_ifs"
    288286        if test "X$pkg" = "X$p"; then
    289287          enable_fast_install=yes
    290288        fi
    291289      done
    292       IFS=$lt_save_ifs
     290      IFS="$lt_save_ifs"
    293291      ;;
    294292    esac],
     
    307305AC_DIAGNOSE([obsolete],
    308306[$0: Remove this warning and the call to _LT_SET_OPTION when you put
    309 the 'fast-install' option into LT_INIT's first parameter.])
     307the `fast-install' option into LT_INIT's first parameter.])
    310308])
    311309
     
    314312AC_DIAGNOSE([obsolete],
    315313[$0: Remove this warning and the call to _LT_SET_OPTION when you put
    316 the 'disable-fast-install' option into LT_INIT's first parameter.])
     314the `disable-fast-install' option into LT_INIT's first parameter.])
    317315])
    318316
     
    322320
    323321
    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 
    377322# _LT_WITH_PIC([MODE])
    378323# --------------------
    379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
     324# implement the --with-pic flag, and support the `pic-only' and `no-pic'
    380325# LT_INIT options.
    381 # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
     326# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
    382327m4_define([_LT_WITH_PIC],
    383328[AC_ARG_WITH([pic],
     
    390335      pic_mode=default
    391336      # Look at the argument we got.  We use all the common list separators.
    392       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
     337      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    393338      for lt_pkg in $withval; do
    394         IFS=$lt_save_ifs
     339        IFS="$lt_save_ifs"
    395340        if test "X$lt_pkg" = "X$lt_p"; then
    396341          pic_mode=yes
    397342        fi
    398343      done
    399       IFS=$lt_save_ifs
     344      IFS="$lt_save_ifs"
    400345      ;;
    401346    esac],
    402     [pic_mode=m4_default([$1], [default])])
     347    [pic_mode=default])
     348
     349test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
    403350
    404351_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
     
    413360AC_DIAGNOSE([obsolete],
    414361[$0: Remove this warning and the call to _LT_SET_OPTION when you
    415 put the 'pic-only' option into LT_INIT's first parameter.])
     362put the `pic-only' option into LT_INIT's first parameter.])
    416363])
    417364
Note: See TracChangeset for help on using the changeset viewer.