Edit

kc3-lang/automake/m4/auxdir.m4

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2005-01-09 14:46:22
    Hash : 391df12b
    Message : * m4/amversion.in, m4/as.m4, m4/auxdir.m4, m4/ccstdc.m4, m4/cond.m4, m4/depend.m4, m4/depout.m4, m4/dmalloc.m4, m4/gcj.m4, m4/header.m4, m4/init.m4, m4/install-sh.m4, m4/lead-dot.m4, m4/lex.m4, m4/lispdir.m4, m4/maintainer.m4, m4/make.m4, m4/minuso.m4, m4/missing.m4, m4/mkdirp.m4, m4/multi.m4, m4/obsol-gt.m4, m4/obsol-lt.m4, m4/obsolete.m4, m4/options.m4, m4/protos.m4, m4/python.m4, m4/regex.m4, m4/runlog.m4, m4/sanity.m4, m4/strip.m4, m4/tar.m4: Use the same all-permissive license that is used in aclocal.m4. Relicensing backed by RMS.

  • m4/auxdir.m4
  • # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    
    # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
    #
    # Of course, Automake must honor this variable whenever it calls a
    # tool from the auxiliary directory.  The problem is that $srcdir (and
    # therefore $ac_aux_dir as well) can be either absolute or relative,
    # depending on how configure is run.  This is pretty annoying, since
    # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    # source directory, any form will work fine, but in subdirectories a
    # relative path needs to be adjusted first.
    #
    # $ac_aux_dir/missing
    #    fails when called from a subdirectory if $ac_aux_dir is relative
    # $top_srcdir/$ac_aux_dir/missing
    #    fails if $ac_aux_dir is absolute,
    #    fails when called from a subdirectory in a VPATH build with
    #          a relative $ac_aux_dir
    #
    # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    # are both prefixed by $srcdir.  In an in-source build this is usually
    # harmless because $srcdir is `.', but things will broke when you
    # start a VPATH build or use an absolute $srcdir.
    #
    # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    # and then we would define $MISSING as
    #   MISSING="\${SHELL} $am_aux_dir/missing"
    # This will work as long as MISSING is not called from configure, because
    # unfortunately $(top_srcdir) has no meaning in configure.
    # However there are other variables, like CC, which are often used in
    # configure, and could therefore not use this "fixed" $ac_aux_dir.
    #
    # Another solution, used here, is to always expand $ac_aux_dir to an
    # absolute PATH.  The drawback is that using absolute paths prevent a
    # configured tree to be moved without reconfiguration.
    
    AC_DEFUN([AM_AUX_DIR_EXPAND],
    [dnl Rely on autoconf to set up CDPATH properly.
    AC_PREREQ([2.50])dnl
    # expand $ac_aux_dir to an absolute path
    am_aux_dir=`cd $ac_aux_dir && pwd`
    ])