Ignore:
Timestamp:
Feb 6, 2015, 7:07:22 AM (4 years ago)
Author:
Peter
Message:

update to autoconf-archive-2015-02-04. Note that m4/ax_append_flag.m4 is patched to make the case pattern work as expected/before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_append_flag.m4

    r2724 r3367  
    5050#   exception to the GPL to apply to your modified version as well.
    5151
    52 #serial 2
     52#serial 4
    5353
    5454AC_DEFUN([AX_APPEND_FLAG],
    55 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
    56 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl
    57 AS_VAR_SET_IF(FLAGS,
    58   [case " AS_VAR_GET(FLAGS) " in
    59     *" $1 "*)
    60       AC_RUN_LOG([: FLAGS already contains $1])
    61       ;;
    62     *)
    63       AC_RUN_LOG([: FLAGS="$FLAGS $1"])
    64       AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"])
    65       ;;
    66    esac],
    67   [AS_VAR_SET(FLAGS,["$1"])])
     55[dnl
     56AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF
     57AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])
     58AS_VAR_SET_IF(FLAGS,[
     59# there is a bug in official version (serial 4) so we patch it as below
     60  AS_CASE([" AS_VAR_GET(FLAGS) "],
     61    [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])],
     62dnl  AS_CASE([AS_VAR_GET(FLAGS)],
     63dnl    ["* $1 *|*$1"],[AC_RUN_LOG([: FLAGS already contains $1])],
     64    [
     65     AS_VAR_APPEND(FLAGS," $1")
     66     AC_RUN_LOG([: FLAGS="$FLAGS"])
     67    ])
     68  ],
     69  [
     70  AS_VAR_SET(FLAGS,[$1])
     71  AC_RUN_LOG([: FLAGS="$FLAGS"])
     72  ])
    6873AS_VAR_POPDEF([FLAGS])dnl
    6974])dnl AX_APPEND_FLAG
Note: See TracChangeset for help on using the changeset viewer.