Ignore:
Timestamp:
Mar 29, 2014, 3:44:08 PM (6 years ago)
Author:
cal@…
Message:

base: bundle TclX extension to support signal handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r117754 r118297  
    9797])
    9898
    99 dnl Configure a project contained in a .tar.gz (or .tgz) tarball, extracting it
    100 dnl previously, if necessary. Different from AC_CONFIG_SUBDIRS (on which this
    101 dnl macro is based), you can pass parameters to the sub-configure script.
     99dnl Configure a project contained in a .tar.gz, .tgz or .tar.bz2 tarball,
     100dnl extracting it previously, if necessary. Different from AC_CONFIG_SUBDIRS
     101dnl (on which this macro is based), you can pass parameters to the
     102dnl sub-configure script.
    102103dnl
    103104dnl Parameters:
     
    117118                AS_MKDIR_P(["$mp_tarball_vendordir"])
    118119                AC_MSG_NOTICE([=== extracting $mp_tarball])
    119                 (cd "$mp_tarball_vendordir"; gzip -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
     120                mp_tarball_extract_cmd=
     121                case "$mp_tarball" in
     122                        *.tar.gz | *.tgz)
     123                                mp_tarball_extract_cmd="gzip"
     124                                ;;
     125                        *.tar.bz2 | *.tbz2)
     126                                mp_tarball_extract_cmd="bzip2"
     127                                ;;
     128                        *)
     129                                AC_MSG_ERROR([Don't know how to extract tarball $mp_tarball])
     130                                ;;
     131                esac
     132                (cd "$mp_tarball_vendordir"; "$mp_tarball_extract_cmd" -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
    120133        fi
    121134        if ! test -d "$ac_dir"; then
Note: See TracChangeset for help on using the changeset viewer.