Hello Kazuhiro,

* Kazuhiro NISHIYAMA wrote on Thu, Aug 06, 2009 at 08:02:01PM CEST:
> Package: autoconf
> Version: 2.64-1

> I built ruby (www.ruby-lang.org) with autoconf 2.64-1,
> and I found strange directory '"$as_dir"' found in build directory.

> Ruby's configure.in includes $as_mkdir_p,
> it makes '"$as_dir"' directory.

> % cat configure.in
> AC_INIT()
> if $as_mkdir_p; then
>   MAKEDIRS='mkdir -p'
> else
>   MAKEDIRS='install -d'
> fi
> % autoconf
> % ./configure
> % \ls
> "$as_dir"  autom4te.cache  config.log  configure  configure.in

That is a bug in Ruby then.  $as_mkdir_p is not a documented Autoconf
API, and you are not supposed to use it directly, and its usage may
change.  However, the AS_MKDIR_P macro is documented.  You can use that:
  AC_INIT
  AS_MKDIR_P([some/directory])

For use in generated files, use can instead use @mkdi...@.  See the
manual for more information.

Cheers,
Ralf



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to