[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoconf 2.64 + shtool => incorrect ac_install_sh

From: dmitry grebeniuk
Subject: autoconf 2.64 + shtool => incorrect ac_install_sh
Date: Fri, 11 Dec 2009 09:48:15 +0200


  It seems that autoconf 2.64 has broken "ac_install_sh" generation
when configure script needs to use shtool as install script.
That's the corresponding diff part, found at
http://osdir.com/ml/automake-commit-gnu/2009-09/msg00000.html :

- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
+ for ac_t in install-sh install.sh shtool; do
+ if test -f "$ac_dir/$ac_t"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/$ac_t -c"
+ break 2
+ fi
+ done

  When "shtool" is found, ac_install_sh="$ac_aux_dir/shtool -c", but
it should be "$ac_aux_dir/shtool install -c".

  How to check this in practice:

$ uname -a
Linux oldub 2.6.31-16-generic #52-Ubuntu SMP Thu Dec 3 22:00:22 UTC
2009 i686 GNU/Linux

$ autoconf --version
autoconf (GNU Autoconf) 2.64
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

$ cat conf.in

$ cat file.in

$ ls -lab shtool
-rwxr-xr-x 1 gds gds 0 2009-12-11 09:34 shtool

$ autoconf conf.in > conf && chmod a+x conf && ./conf
conf: creating ./config.status
config.status: creating file

$ cat file
"./shtool -c"


  Of course, real shtool script doesn't install anything without
"install" argument:

$ cnf_aux/shtool -c somefile /tmp/
cnf_aux/shtool:Error: unknown option `-c'
cnf_aux/shtool:Hint:  run `cnf_aux/shtool -h' for usage


reply via email to

[Prev in Thread] Current Thread [Next in Thread]