XYZ File Manager
Current Path:
/usr/bin
usr
/
bin
/
📁
..
📄
7za
(49 B)
📄
[
(51.8 KB)
📄
aclocal
(35.52 KB)
📄
aclocal-1.16
(35.52 KB)
📄
addr2line
(27.74 KB)
📄
ar
(55.98 KB)
📄
arch
(31.66 KB)
📄
arpaname
(15.11 KB)
📄
as
(710.31 KB)
📄
aspell
(151.12 KB)
📄
autoconf
(14.42 KB)
📄
autoheader
(8.33 KB)
📄
autom4te
(31.43 KB)
📄
automake
(251.93 KB)
📄
automake-1.16
(251.93 KB)
📄
autoreconf
(20.57 KB)
📄
autoscan
(16.72 KB)
📄
autoupdate
(33.08 KB)
📄
awk
(698.17 KB)
📄
b2sum
(51.79 KB)
📄
base32
(35.69 KB)
📄
base64
(35.7 KB)
📄
basename
(35.67 KB)
📄
basenc
(48.02 KB)
📄
bash
(1.32 MB)
📄
bashbug-64
(6.91 KB)
📄
bunzip2
(39.62 KB)
📄
bzcat
(39.62 KB)
📄
bzcmp
(2.09 KB)
📄
bzdiff
(2.09 KB)
📄
bzgrep
(2.01 KB)
📄
bzip2
(39.62 KB)
📄
bzip2recover
(15.4 KB)
📄
bzless
(1.23 KB)
📄
bzmore
(1.23 KB)
📄
c++
(1.04 MB)
📄
c++filt
(27.18 KB)
📄
cagefs_enter.proxied
(1.27 KB)
📄
cal
(52.01 KB)
📄
captoinfo
(87.8 KB)
📄
cat
(35.66 KB)
📄
catchsegv
(3.21 KB)
📄
cc
(0 B)
📄
ccmake
(6.96 MB)
📄
chcon
(60.24 KB)
📄
chgrp
(56.19 KB)
📄
chmod
(56.16 KB)
📄
chown
(60.19 KB)
📄
chrt
(27.48 KB)
📄
cksum
(35.57 KB)
📄
clear
(15.16 KB)
📄
cloudlinux-awp-user
(1.78 KB)
📄
clwpos-user
(1.78 KB)
📄
cmake
(7.45 MB)
📄
cmp
(40.13 KB)
📄
col
(23.41 KB)
📄
colcrt
(15.38 KB)
📄
colrm
(15.36 KB)
📄
column
(35.52 KB)
📄
comm
(35.75 KB)
📄
cp
(149.24 KB)
📄
cpack
(7.35 MB)
📄
cpp
(1.04 MB)
📄
csplit
(108.88 KB)
📄
ctest
(8.31 MB)
📄
curl
(248.49 KB)
📄
cut
(47.8 KB)
📄
cyrusbdb2current
(1.58 MB)
📄
date
(104.05 KB)
📄
dbiprof
(6.06 KB)
📄
delv
(45.38 KB)
📄
df
(84.73 KB)
📄
diff
(194.7 KB)
📄
diff3
(52.3 KB)
📄
dig
(136.59 KB)
📄
dir
(137.65 KB)
📄
dircolors
(39.8 KB)
📄
dirname
(31.48 KB)
📄
dltest
(15.68 KB)
📄
dnstap-read
(23.19 KB)
📄
du
(149.44 KB)
📄
echo
(35.48 KB)
📄
ed
(52.51 KB)
📄
egrep
(32 B)
📄
enchant
(23.73 KB)
📄
enchant-lsmod
(15.8 KB)
📄
env
(44.23 KB)
📄
eps2eps
(643 B)
📄
eqn
(189.52 KB)
📄
ex
(1.38 MB)
📄
expand
(39.73 KB)
📄
expr
(108.6 KB)
📄
factor
(72.05 KB)
📄
false
(27.47 KB)
📄
fc-cache
(139 B)
📄
fc-cache-64
(23.17 KB)
📄
fc-cat
(19.16 KB)
📄
fc-conflist
(15.13 KB)
📄
fc-list
(15.13 KB)
📄
fc-match
(15.13 KB)
📄
fc-pattern
(15.14 KB)
📄
fc-query
(15.13 KB)
📄
fc-scan
(15.14 KB)
📄
fc-validate
(15.14 KB)
📄
fgrep
(32 B)
📄
file
(27.74 KB)
📄
find
(284.95 KB)
📄
flock
(23.56 KB)
📄
fmt
(39.77 KB)
📄
fold
(39.71 KB)
📄
free
(23.36 KB)
📄
funzip
(31.42 KB)
📄
g++
(1.04 MB)
📄
gawk
(698.17 KB)
📄
gcc-ar
(27.81 KB)
📄
gcc-nm
(27.8 KB)
📄
gcc-ranlib
(27.82 KB)
📄
gcov-dump
(283.74 KB)
📄
gcov-tool
(312.46 KB)
📄
gem
(542 B)
📄
gencat
(27.45 KB)
📄
geoiplookup
(15.86 KB)
📄
geoiplookup6
(15.81 KB)
📄
geqn
(189.52 KB)
📄
getconf
(35.23 KB)
📄
getent
(35.86 KB)
📄
getopt
(23.45 KB)
📄
ghostscript
(15.13 KB)
📄
gifdiff
(55.9 KB)
📄
gifsicle
(194.05 KB)
📄
git
(4.06 MB)
📄
git-receive-pack
(4.06 MB)
📄
git-shell
(770.68 KB)
📄
git-upload-archive
(4.06 MB)
📄
git-upload-pack
(4.06 MB)
📄
gm
(15.67 KB)
📄
gmake
(249.8 KB)
📄
gneqn
(916 B)
📄
gnroff
(3.21 KB)
📄
gpg
(1.07 MB)
📄
gpg-agent
(342.25 KB)
📄
gpg-error
(36.1 KB)
📄
gpgsplit
(27.49 KB)
📄
gpgv
(295.42 KB)
📄
gpic
(201.72 KB)
📄
gprof
(101.48 KB)
📄
grep
(154.49 KB)
📄
groff
(96.77 KB)
📄
grops
(167.26 KB)
📄
grotty
(122.2 KB)
📄
groups
(35.66 KB)
📄
gs
(15.13 KB)
📄
gsnd
(281 B)
📄
gsoelim
(0 B)
📄
gtar
(514.27 KB)
📄
gtbl
(130.86 KB)
📄
gtroff
(732.07 KB)
📄
gunzip
(2.29 KB)
📄
gzexe
(6.3 KB)
📄
gzip
(89.63 KB)
📄
hdu
(18.09 KB)
📄
head
(43.8 KB)
📄
hexdump
(51.59 KB)
📄
host
(108.57 KB)
📄
hostid
(31.66 KB)
📄
hostname
(23.84 KB)
📄
hunspell
(102.67 KB)
📄
iconv
(64.09 KB)
📄
id
(39.71 KB)
📄
idn
(35.8 KB)
📄
ifnames
(4.03 KB)
📄
infocmp
(63.69 KB)
📄
infotocap
(87.8 KB)
📄
install
(149.29 KB)
📄
ionice
(15.4 KB)
📄
ipcrm
(19.41 KB)
📄
ipcs
(39.52 KB)
📄
isosize
(15.34 KB)
📄
ispell
(992 B)
📄
isql
(40.01 KB)
📄
iusql
(31.95 KB)
📄
join
(51.9 KB)
📄
jpegoptim
(48.83 KB)
📄
kill
(31.47 KB)
📄
ld
(1.71 MB)
📄
ld.bfd
(1.71 MB)
📄
ldd
(5.32 KB)
📄
less
(197.9 KB)
📄
lessecho
(15.37 KB)
📄
lesskey
(24.8 KB)
📄
lesspipe.sh
(3.5 KB)
📄
link
(31.66 KB)
📄
ln
(60.16 KB)
📄
locale
(59.08 KB)
📄
localedef
(314.06 KB)
📄
logger
(36.16 KB)
📄
login
(43.62 KB)
📄
logname
(31.66 KB)
📄
look
(19.36 KB)
📄
ls
(137.64 KB)
📄
lto-dump
(26.58 MB)
📄
m4
(240.4 KB)
📄
make
(249.8 KB)
📄
make-dummy-cert
(614 B)
📄
mariadb
(5.12 MB)
📄
mariadb-access
(109.48 KB)
📄
mariadb-admin
(4.89 MB)
📄
mariadb-binlog
(5.16 MB)
📄
mariadb-check
(4.89 MB)
📄
mariadb-conv
(4.6 MB)
📄
mariadb-convert-table-format
(4.28 KB)
📄
mariadb-dump
(4.99 MB)
📄
mariadb-dumpslow
(8.19 KB)
📄
mariadb-embedded
(24.72 MB)
📄
mariadb-find-rows
(3.35 KB)
📄
mariadb-hotcopy
(34.67 KB)
📄
mariadb-import
(5 MB)
📄
mariadb-plugin
(4.58 MB)
📄
mariadb-secure-installation
(13.66 KB)
📄
mariadb-setpermission
(17.7 KB)
📄
mariadb-show
(4.88 MB)
📄
mariadb-slap
(4.89 MB)
📄
mariadb-tzinfo-to-sql
(4.57 MB)
📄
mariadb-waitpid
(4.56 MB)
📄
mc
(1.22 MB)
📄
mcdiff
(1.22 MB)
📄
mcedit
(1.22 MB)
📄
mcookie
(27.5 KB)
📄
mcview
(1.22 MB)
📄
md5sum
(39.64 KB)
📄
mesg
(15.33 KB)
📄
mkdir
(68.31 KB)
📄
mkfifo
(39.83 KB)
📄
mknod
(43.88 KB)
📄
mktemp
(39.8 KB)
📄
more
(43.63 KB)
📄
msmtp
(133.98 KB)
📄
msmtpd
(35.65 KB)
📄
msql2mysql
(1.42 KB)
📄
mv
(141.17 KB)
📄
my_print_defaults
(4.56 MB)
📄
mysql
(5.12 MB)
📄
mysql_config
(4.47 KB)
📄
mysql_find_rows
(3.35 KB)
📄
mysql_waitpid
(4.56 MB)
📄
mysqlaccess
(109.48 KB)
📄
mysqladmin
(4.89 MB)
📄
mysqlbinlog
(5.16 MB)
📄
mysqlcheck
(4.89 MB)
📄
mysqldump
(4.99 MB)
📄
mysqlimport
(5 MB)
📄
mysqlshow
(4.88 MB)
📄
mytop
(72.03 KB)
📄
namei
(23.41 KB)
📄
nano
(346.2 KB)
📄
neqn
(916 B)
📄
nice
(35.67 KB)
📄
nl
(100.71 KB)
📄
nm
(44.71 KB)
📄
nohup
(35.58 KB)
📄
nproc
(35.69 KB)
📄
nroff
(3.21 KB)
📄
nslookup
(112.52 KB)
📄
nsupdate
(71.8 KB)
📄
numfmt
(55.83 KB)
📄
objcopy
(185.37 KB)
📄
objdump
(413.09 KB)
📄
od
(64.06 KB)
📄
odbc_config
(15.7 KB)
📄
odbcinst
(23.9 KB)
📄
openssl
(1.01 MB)
📄
optipng
(92.02 KB)
📄
pango-list
(19.11 KB)
📄
pango-segmentation
(19.13 KB)
📄
pango-view
(60.17 KB)
📄
passwd
(1.26 KB)
📄
paste
(35.58 KB)
📄
patch
(195.02 KB)
📄
pathchk
(35.66 KB)
📄
pdf2dsc
(701 B)
📄
pdf2ps
(913 B)
📄
perldoc
(118 B)
📄
pgrep
(31.42 KB)
📄
php
(10.1 MB)
📄
php-cgi
(8.1 MB)
📄
phpize
(4.97 KB)
📄
pic
(201.72 KB)
📄
piconv
(8.08 KB)
📄
ping
(76.51 KB)
📄
pinky
(35.61 KB)
📄
pkill
(31.42 KB)
📄
pmap
(35.39 KB)
📄
pod2man
(14.68 KB)
📄
pod2text
(10.55 KB)
📄
pod2usage
(4.01 KB)
📄
post-grohtml
(199.76 KB)
📄
pr
(72.28 KB)
📄
pre-grohtml
(92.92 KB)
📄
precat
(5.53 KB)
📄
preunzip
(5.53 KB)
📄
prezip
(5.53 KB)
📄
prezip-bin
(15.69 KB)
📄
printenv
(31.47 KB)
📄
printf
(51.77 KB)
📄
ps
(141.15 KB)
📄
ps2ascii
(635 B)
📄
ps2epsi
(1.24 KB)
📄
ps2pdf
(276 B)
📄
ps2pdf12
(219 B)
📄
ps2pdf13
(219 B)
📄
ps2pdf14
(219 B)
📄
ps2pdfwr
(1.06 KB)
📄
ps2ps
(651 B)
📄
ps2ps2
(673 B)
📄
ptx
(129.03 KB)
📄
pwd
(35.7 KB)
📄
pwdx
(15.28 KB)
📄
pydoc
(78 B)
📄
pydoc3
(78 B)
📄
pydoc3.9
(78 B)
📄
python
(15.09 KB)
📄
python3
(15.09 KB)
📄
python3.9
(15.09 KB)
📄
ranlib
(56 KB)
📄
readelf
(667.28 KB)
📄
readlink
(39.69 KB)
📄
realpath
(39.77 KB)
📄
recode
(31.93 KB)
📄
red
(92 B)
📄
rename
(23.41 KB)
📄
renew-dummy-cert
(729 B)
📄
renice
(15.36 KB)
📄
replace
(4.54 MB)
📄
reset
(27.34 KB)
📄
restic
(28.4 MB)
📄
rev
(15.35 KB)
📄
rm
(60.21 KB)
📄
rmdir
(43.61 KB)
📄
rnano
(346.2 KB)
📄
rsync
(559.16 KB)
📄
rsync-ssl
(5.01 KB)
📄
ruby
(15.27 KB)
📄
run-with-aspell
(89 B)
📄
runcon
(35.65 KB)
📄
rvi
(1.38 MB)
📄
rview
(1.38 MB)
📄
rvim
(3.84 MB)
📄
scalar
(819.34 KB)
📄
scl
(39.55 KB)
📄
scl_enabled
(262 B)
📄
scl_source
(1.88 KB)
📄
scp
(133.06 KB)
📄
script
(51.75 KB)
📄
sdiff
(44.2 KB)
📄
sed
(114.01 KB)
📄
seq
(47.79 KB)
📄
setsid
(15.34 KB)
📄
setterm
(35.52 KB)
📄
sftp
(141.05 KB)
📄
sh
(1.32 MB)
📄
sha1sum
(39.64 KB)
📄
sha224sum
(39.64 KB)
📄
sha256sum
(39.64 KB)
📄
sha384sum
(39.64 KB)
📄
sha512sum
(39.64 KB)
📄
shred
(51.88 KB)
📄
shuf
(48.01 KB)
📄
size
(31.61 KB)
📄
skill
(31.4 KB)
📄
slabtop
(23.42 KB)
📄
sleep
(35.65 KB)
📄
slencheck
(15.71 KB)
📄
snice
(31.4 KB)
📄
soelim
(0 B)
📄
sort
(113.09 KB)
📄
spell
(125 B)
📄
split
(52.31 KB)
📄
sprof
(35.45 KB)
📄
sqlite3
(1.52 MB)
📄
ssh
(843.53 KB)
📄
ssh-add
(164.86 KB)
📄
ssh-agent
(281.02 KB)
📄
ssh-copy-id
(12.38 KB)
📄
ssh-keygen
(455.04 KB)
📄
ssh-keyscan
(197.43 KB)
📄
stat
(80.06 KB)
📄
stdbuf
(43.74 KB)
📄
strace
(2.08 MB)
📄
strings
(31.74 KB)
📄
strip
(185.36 KB)
📄
stty
(75.83 KB)
📄
sum
(35.59 KB)
📄
svn
(446.56 KB)
📄
svnadmin
(136.45 KB)
📄
svndumpfilter
(44.15 KB)
📄
svnfsfs
(44.03 KB)
📄
svnlook
(92.23 KB)
📄
svnrdump
(56.23 KB)
📄
svnserve
(112.91 KB)
📄
svnsync
(68.41 KB)
📄
svnversion
(15.72 KB)
📄
sync
(35.54 KB)
📄
tabs
(19.16 KB)
📄
tac
(104.6 KB)
📄
tail
(68.09 KB)
📄
tar
(514.27 KB)
📄
taskset
(23.41 KB)
📄
tbl
(130.86 KB)
📄
tclsh
(15.69 KB)
📄
tclsh8.6
(15.69 KB)
📄
tee
(35.69 KB)
📄
test
(43.79 KB)
📄
tic
(87.8 KB)
📄
timeout
(40.17 KB)
📄
tload
(19.34 KB)
📄
tmpwatch
(36.03 KB)
📄
toe
(23.23 KB)
📄
top
(132.27 KB)
📄
touch
(92.03 KB)
📄
tput
(27.25 KB)
📄
tr
(47.87 KB)
📄
tree
(85.45 KB)
📄
troff
(732.07 KB)
📄
true
(27.47 KB)
📄
truncate
(35.66 KB)
📄
tset
(27.34 KB)
📄
tsort
(47.79 KB)
📄
tty
(31.65 KB)
📄
tzselect
(14.99 KB)
📄
ul
(23.45 KB)
📄
uname
(31.66 KB)
📄
unexpand
(39.73 KB)
📄
uniq
(43.83 KB)
📄
unlink
(31.66 KB)
📄
unrar
(347.02 KB)
📄
unzip
(196.14 KB)
📄
unzipsfx
(87.89 KB)
📄
uptime
(15.29 KB)
📄
users
(35.68 KB)
📄
utmpdump
(23.4 KB)
📄
vdir
(137.65 KB)
📄
vi
(691 B)
📄
view
(150 B)
📄
vim
(3.84 MB)
📄
vimdiff
(3.84 MB)
📄
vimtutor
(2.07 KB)
📄
vmstat
(39.41 KB)
📄
watch
(27.87 KB)
📄
wc
(43.73 KB)
📄
wget
(521.41 KB)
📄
whereis
(32.03 KB)
📄
which
(27.89 KB)
📄
who
(51.77 KB)
📄
whoami
(31.66 KB)
📄
word-list-compress
(15.7 KB)
📄
x86_64-redhat-linux-c++
(1.04 MB)
📄
x86_64-redhat-linux-g++
(1.04 MB)
📄
x86_64-redhat-linux-gcc-11
(1.04 MB)
📄
xargs
(64.09 KB)
📄
xmlcatalog
(23.15 KB)
📄
xmllint
(80.55 KB)
📄
xmlwf
(39.63 KB)
📄
xsltproc
(31.23 KB)
📄
xxd
(19.31 KB)
📄
yes
(31.51 KB)
📄
zcat
(1.94 KB)
📄
zcmp
(1.64 KB)
📄
zdiff
(6.31 KB)
📄
zegrep
(33 B)
📄
zfgrep
(33 B)
📄
zforce
(2.04 KB)
📄
zgrep
(7.93 KB)
📄
zip
(221.09 KB)
📄
zipcloak
(75.7 KB)
📄
zipgrep
(2.89 KB)
📄
zipinfo
(196.14 KB)
📄
zipnote
(67.61 KB)
📄
zipsplit
(63.58 KB)
📄
zless
(2.16 KB)
📄
zmore
(1.8 KB)
📄
znew
(4.47 KB)
📄
zsoelim
(0 B)
Editing: autoreconf
#! /usr/bin/perl -w # -*- perl -*- # Generated from autoreconf.in; do not edit by hand. eval 'case $# in 0) exec /usr/bin/perl -S "$0";; *) exec /usr/bin/perl -S "$0" "$@";; esac' if 0; # autoreconf - install the GNU Build System in a directory tree # Copyright (C) 1994, 1999-2012 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Written by David J. MacKenzie. # Extended and rewritten in Perl by Akim Demaille. BEGIN { my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '/usr/share/autoconf'; unshift @INC, $pkgdatadir; # Override SHELL. On DJGPP SHELL may not be set to a shell # that can handle redirection and quote arguments correctly, # e.g.: COMMAND.COM. For DJGPP always use the shell that configure # has detected. $ENV{'SHELL'} = '/bin/sh' if ($^O eq 'dos'); } use Autom4te::ChannelDefs; use Autom4te::Channels; use Autom4te::Configure_ac; use Autom4te::FileUtils; use Autom4te::General; use Autom4te::XFile; # Do not use Cwd::chdir, since it might hang. use Cwd 'cwd'; use strict; ## ----------- ## ## Variables. ## ## ----------- ## # $HELP # ----- $help = "Usage: $0 [OPTION]... [DIRECTORY]... Run `autoconf' (and `autoheader', `aclocal', `automake', `autopoint' (formerly `gettextize'), and `libtoolize' where appropriate) repeatedly to remake the GNU Build System files in specified DIRECTORIES and their subdirectories (defaulting to `.'). By default, it only remakes those files that are older than their sources. If you install new versions of the GNU Build System, you can make `autoreconf' remake all of the files by giving it the `--force' option. Operation modes: -h, --help print this help, then exit -V, --version print version number, then exit -v, --verbose verbosely report processing -d, --debug don't remove temporary files -f, --force consider all files obsolete -i, --install copy missing auxiliary files --no-recursive don't rebuild sub-packages -s, --symlink with -i, install symbolic links instead of copies -m, --make when applicable, re-run ./configure && make -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] " . Autom4te::ChannelDefs::usage . " The environment variable \`WARNINGS\' is honored. Some subtools might support other warning types, using \`all' is encouraged. Library directories: -B, --prepend-include=DIR prepend directory DIR to search path -I, --include=DIR append directory DIR to search path The environment variables AUTOM4TE, AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL, AUTOPOINT, LIBTOOLIZE, M4, and MAKE are honored. Report bugs to <bug-autoconf\@gnu.org>. GNU Autoconf home page: <http://www.gnu.org/software/autoconf/>. General help using GNU software: <http://www.gnu.org/gethelp/>. "; # $VERSION # -------- $version = "autoreconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> 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. "; # Lib files. my $autoconf = $ENV{'AUTOCONF'} || '/usr/bin/autoconf'; my $autoheader = $ENV{'AUTOHEADER'} || '/usr/bin/autoheader'; my $autom4te = $ENV{'AUTOM4TE'} || '/usr/bin/autom4te'; my $automake = $ENV{'AUTOMAKE'} || 'automake'; my $aclocal = $ENV{'ACLOCAL'} || 'aclocal'; my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize'; my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint'; my $make = $ENV{'MAKE'} || 'make'; # --install -- as --add-missing in other tools. my $install = 0; # symlink -- when --install, use symlinks instead. my $symlink = 0; # Does aclocal support --force? my $aclocal_supports_force = 0; # Does aclocal support -Wfoo? my $aclocal_supports_warnings = 0; # Does automake support --force-missing? my $automake_supports_force_missing = 0; # Does automake support -Wfoo? my $automake_supports_warnings = 0; my @prepend_include; my @include; # List of command line warning requests. my @warning; # Rerun `./configure && make'? my $run_make = 0; # Recurse into subpackages my $recursive = 1; ## ---------- ## ## Routines. ## ## ---------- ## # parse_args () # ------------- # Process any command line arguments. sub parse_args () { my $srcdir; getopt ("W|warnings=s" => \@warning, 'I|include=s' => \@include, 'B|prepend-include=s' => \@prepend_include, 'i|install' => \$install, 's|symlink' => \$symlink, 'm|make' => \$run_make, 'recursive!' => \$recursive); # Split the warnings as a list of elements instead of a list of # lists. @warning = map { split /,/ } @warning; parse_WARNINGS; parse_warnings '--warnings', @warning; # Even if the user specified a configure.ac, trim to get the # directory, and look for configure.ac again. Because (i) the code # is simpler, and (ii) we are still able to diagnose simultaneous # presence of configure.ac and configure.in. @ARGV = map { /configure\.(ac|in)$/ ? dirname ($_) : $_ } @ARGV; push @ARGV, '.' unless @ARGV; if ($verbose && $debug) { for my $prog ($autoconf, $autoheader, $automake, $aclocal, $autopoint, $libtoolize) { xsystem ("$prog --version | sed 1q >&2"); print STDERR "\n"; } } my $aclocal_help = `$aclocal --help 2>/dev/null`; my $automake_help = `$automake --help 2>/dev/null`; $aclocal_supports_force = $aclocal_help =~ /--force/; $aclocal_supports_warnings = $aclocal_help =~ /--warnings/; $automake_supports_force_missing = $automake_help =~ /--force-missing/; $automake_supports_warnings = $automake_help =~ /--warnings/; # Dispatch autoreconf's option to the tools. # --include; $aclocal .= join (' -I ', '', map { shell_quote ($_) } @include); $autoconf .= join (' --include=', '', map { shell_quote ($_) } @include); $autoconf .= join (' --prepend-include=', '', map { shell_quote ($_) } @prepend_include); $autoheader .= join (' --include=', '', map { shell_quote ($_) } @include); $autoheader .= join (' --prepend-include=', '', map { shell_quote ($_) } @prepend_include); # --install and --symlink; if ($install) { $automake .= ' --add-missing'; $automake .= ' --copy' unless $symlink; $libtoolize .= ' --copy' unless $symlink; } # --force; if ($force) { $aclocal .= ' --force' if $aclocal_supports_force; $autoconf .= ' --force'; $autoheader .= ' --force'; $automake .= ' --force-missing' if $automake_supports_force_missing; $autopoint .= ' --force'; $libtoolize .= ' --force'; } else { # The implementation of --no-force is bogus in all implementations # of Automake up to 1.8, so we avoid it in these cases. (Automake # 1.8 is the first version where aclocal supports force, hence # the condition.) $automake .= ' --no-force' if $aclocal_supports_force; } # --verbose --verbose or --debug; if ($verbose > 1 || $debug) { $autoconf .= ' --verbose'; $autoheader .= ' --verbose'; $automake .= ' --verbose'; $aclocal .= ' --verbose'; } if ($debug) { $autoconf .= ' --debug'; $autoheader .= ' --debug'; $libtoolize .= ' --debug'; } # --warnings; if (@warning) { my $warn = ' --warnings=' . join (',', @warning); $autoconf .= $warn; $autoheader .= $warn; $automake .= $warn if $automake_supports_warnings; $aclocal .= $warn if $aclocal_supports_warnings; } } # &run_aclocal ($ACLOCAL, $FLAGS) # ------------------------------- # Update aclocal.m4 as lazily as possible, as aclocal pre-1.8 always # overwrites aclocal.m4, hence triggers autoconf, autoheader, automake # etc. uselessly. aclocal 1.8+ does not need this. sub run_aclocal ($$) { my ($aclocal, $flags) = @_; # aclocal 1.8+ does all this for free. It can be recognized by its # --force support. if ($aclocal_supports_force) { xsystem ("$aclocal $flags"); } else { xsystem ("$aclocal $flags --output=aclocal.m4t"); # aclocal may produce no output. if (-f 'aclocal.m4t') { update_file ('aclocal.m4t', 'aclocal.m4'); # Make sure that the local m4 files are older than # aclocal.m4. # # Why is not always the case? Because we already run # aclocal at first (before tracing), which, for instance, # can find Gettext's macros in .../share/aclocal, so we may # have had the right aclocal.m4 already. Then autopoint is # run, and installs locally these M4 files. Then # autoreconf, via update_file, sees it is the _same_ # aclocal.m4, and doesn't change its timestamp. But later, # Automake's Makefile expresses that aclocal.m4 depends on # these local files, which are newer, so it triggers aclocal # again. # # To make sure aclocal.m4 is no older, we change the # modification times of the local M4 files to be not newer # than it. # # First, where are the local files? my $aclocal_local_dir = '.'; if ($flags =~ /-I\s+(\S+)/) { $aclocal_local_dir = $1; } # All the local files newer than aclocal.m4 are to be # made not newer than it. my $aclocal_m4_mtime = mtime ('aclocal.m4'); for my $file (glob ("$aclocal_local_dir/*.m4"), 'acinclude.m4') { if ($aclocal_m4_mtime < mtime ($file)) { debug "aging $file to be not newer than aclocal.m4"; utime $aclocal_m4_mtime, $aclocal_m4_mtime, $file; } } } } } # &autoreconf_current_directory # ----------------------------- sub autoreconf_current_directory () { my $configure_ac = find_configure_ac; # ---------------------- # # Is it using Autoconf? # # ---------------------- # my $uses_autoconf; my $uses_gettext; if (-f $configure_ac) { my $configure_ac_file = new Autom4te::XFile "< $configure_ac"; while ($_ = $configure_ac_file->getline) { s/#.*//; s/dnl.*//; $uses_autoconf = 1 if /AC_INIT/; # See below for why we look for gettext here. $uses_gettext = 1 if /^AM_GNU_GETTEXT_VERSION/; } } if (!$uses_autoconf) { verb "$configure_ac: not using Autoconf"; return; } # ------------------- # # Running autopoint. # # ------------------- # # Gettext is a bit of a problem: its macros are not necessarily # visible to aclocal, so if we start with a completely striped down # package (think of a fresh CVS checkout), running `aclocal' first # will fail: the Gettext macros are missing. # # Therefore, we can't use the traces to decide if we use Gettext or # not. I guess that once Gettext move to 2.5x we will be able to, # but in the meanwhile forget it. # # We can only grep for AM_GNU_GETTEXT_VERSION in configure.ac. You # might think this approach is naive, and indeed it is, as it # prevents one to embed AM_GNU_GETTEXT_VERSION in another *.m4, but # anyway we don't limit the generality, since... that's what # autopoint does. Actually, it is even more restrictive, as it # greps for `^AM_GNU_GETTEXT_VERSION('. We did this above, while # scanning configure.ac. if (!$uses_gettext) { verb "$configure_ac: not using Gettext"; } elsif (!$install) { verb "$configure_ac: not running autopoint: --install not given"; } else { xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint"); } # ----------------- # # Running aclocal. # # ----------------- # # Run it first: it might discover new macros to add, e.g., # AC_PROG_LIBTOOL, which we will trace later to see if Libtool is # used. # # Always run it. Tracking its sources for up-to-dateness is too # complex and too error prone. The best we can do is avoiding # nuking the time stamp. my $uses_aclocal = 1; # Nevertheless, if aclocal.m4 exists and is not made by aclocal, # don't run aclocal. if (-f 'aclocal.m4') { my $aclocal_m4 = new Autom4te::XFile 'aclocal.m4'; $_ = $aclocal_m4->getline; $uses_aclocal = 0 unless defined ($_) && /generated.*by aclocal/; } # If there are flags for aclocal in Makefile.am, use them. my $aclocal_flags = ''; if ($uses_aclocal && -f 'Makefile.am') { my $makefile = new Autom4te::XFile 'Makefile.am'; while ($_ = $makefile->getline) { if (/^ACLOCAL_[A-Z_]*FLAGS\s*=\s*(.*)/) { $aclocal_flags = $1; last; } } } if (!$uses_aclocal) { verb "$configure_ac: not using aclocal"; } else { # Some file systems have sub-second time stamps, and if so we may # run into trouble later, after we rerun autoconf and set the # time stamps of input files to be no greater than aclocal.m4, # because the time-stamp-setting operation (utime) has a # resolution of only 1 second. Work around the problem by # ensuring that there is at least a one-second window before the # time stamp of aclocal.m4t in which no file time stamps can # fall. sleep 1; run_aclocal ($aclocal, $aclocal_flags); } # We might have to rerun aclocal if Libtool (or others) imports new # macros. my $rerun_aclocal = 0; # ------------------------------- # # See what tools will be needed. # # ------------------------------- # # Perform a single trace reading to avoid --force forcing a rerun # between two --trace, that's useless. If there is no AC_INIT, then # we are not interested: it looks like a Cygnus thingy. my $aux_dir; my $uses_gettext_via_traces; my $uses_libtool; my $uses_libltdl; my $uses_autoheader; my $uses_automake; my @subdir; verb "$configure_ac: tracing"; my $traces = new Autom4te::XFile ("$autoconf" . join (' ', map { ' --trace=' . $_ . ':\$n::\${::}%' } # If you change this list, update the # `Autoreconf-preselections' section of autom4te.in. 'AC_CONFIG_AUX_DIR', 'AC_CONFIG_HEADERS', 'AC_CONFIG_SUBDIRS', 'AC_INIT', 'AC_PROG_LIBTOOL', 'LT_INIT', 'LT_CONFIG_LTDL_DIR', 'AM_GNU_GETTEXT', 'AM_INIT_AUTOMAKE', ) . ' |'); while ($_ = $traces->getline) { chomp; my ($macro, @args) = split (/::/); $aux_dir = $args[0] if $macro eq "AC_CONFIG_AUX_DIR"; $uses_autoconf = 1 if $macro eq "AC_INIT"; $uses_gettext_via_traces = 1 if $macro eq "AM_GNU_GETTEXT"; $uses_libtool = 1 if $macro eq "AC_PROG_LIBTOOL" || $macro eq "LT_INIT"; $uses_libltdl = 1 if $macro eq "LT_CONFIG_LTDL_DIR"; $uses_autoheader = 1 if $macro eq "AC_CONFIG_HEADERS"; $uses_automake = 1 if $macro eq "AM_INIT_AUTOMAKE"; push @subdir, split (' ', $args[0]) if $macro eq "AC_CONFIG_SUBDIRS" && $recursive; } # The subdirs are *optional*, they may not exist. foreach (@subdir) { if (-d) { verb "$configure_ac: adding subdirectory $_ to autoreconf"; autoreconf ($_); } else { verb "$configure_ac: subdirectory $_ not present"; } } # Gettext consistency checks... error "$configure_ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION" if $uses_gettext_via_traces && ! $uses_gettext; error "$configure_ac: AM_GNU_GETTEXT_VERSION is used, but not AM_GNU_GETTEXT" if $uses_gettext && ! $uses_gettext_via_traces; # ---------------------------- # # Setting up the source tree. # # ---------------------------- # # libtoolize, automake --add-missing etc. will drop files in the # $AUX_DIR. But these tools fail to install these files if the # directory itself does not exist, which valid: just imagine a CVS # repository with hand written code only (there is not even a need # for a Makefile.am!). if (defined $aux_dir && ! -d $aux_dir) { verb "$configure_ac: creating directory $aux_dir"; mkdir $aux_dir, 0755 or error "cannot create $aux_dir: $!"; } # -------------------- # # Running libtoolize. # # -------------------- # if (!$uses_libtool) { verb "$configure_ac: not using Libtool"; } elsif ($install) { if ($uses_libltdl) { $libtoolize .= " --ltdl"; } xsystem_hint ("libtoolize is needed because this package uses Libtool", $libtoolize); $rerun_aclocal = 1; } else { verb "$configure_ac: not running libtoolize: --install not given"; } # ------------------- # # Rerunning aclocal. # # ------------------- # # If we re-installed Libtool or Gettext, the macros might have changed. # Automake also needs an up-to-date aclocal.m4. if ($rerun_aclocal) { if (!$uses_aclocal) { verb "$configure_ac: not using aclocal"; } else { run_aclocal ($aclocal, $aclocal_flags); } } # ------------------ # # Running autoconf. # # ------------------ # # Don't try to be smarter than `autoconf', which does its own up to # date checks. # # We prefer running autoconf before autoheader, because (i) the # latter runs the former, and (ii) autoconf is stricter than # autoheader. So all in all, autoconf should give better error # messages. xsystem ($autoconf); # -------------------- # # Running autoheader. # # -------------------- # # We now consider that if AC_CONFIG_HEADERS is used, then autoheader # is used too. # # Just as for autoconf, up to date ness is performed by the tool # itself. # # Run it before automake, since the latter checks the presence of # config.h.in when it sees an AC_CONFIG_HEADERS. if (!$uses_autoheader) { verb "$configure_ac: not using Autoheader"; } else { xsystem ($autoheader); } # ------------------ # # Running automake. # # ------------------ # if (!$uses_automake) { verb "$configure_ac: not using Automake"; } else { # We should always run automake, and let it decide whether it shall # update the file or not. In fact, the effect of `$force' is already # included in `$automake' via `--no-force'. xsystem ($automake); } # -------------- # # Running make. # # -------------- # if ($run_make) { if (!-f "config.status") { verb "no config.status: cannot re-make"; } else { xsystem ("./config.status --recheck"); xsystem ("./config.status"); if (!-f "Makefile") { verb "no Makefile: cannot re-make"; } else { xsystem ("$make"); } } } } # &autoreconf ($DIRECTORY) # ------------------------ # Reconf the $DIRECTORY. sub autoreconf ($) { my ($directory) = @_; my $cwd = cwd; # The format for this message is not free: taken from Emacs, itself # using GNU Make's format. verb "Entering directory `$directory'"; chdir $directory or error "cannot chdir to $directory: $!"; autoreconf_current_directory; # The format is not free: taken from Emacs, itself using GNU Make's # format. verb "Leaving directory `$directory'"; chdir $cwd or error "cannot chdir to $cwd: $!"; } ## ------ ## ## Main. ## ## ------ ## # When debugging, it is convenient that all the related temporary # files be at the same place. mktmpdir ('ar'); $ENV{'TMPDIR'} = $tmp; parse_args; # Autoreconf all the given configure.ac. Unless `--no-recursive' is passed, # AC_CONFIG_SUBDIRS will be traversed in &autoreconf_current_directory. $ENV{'AUTOM4TE'} = $autom4te; for my $directory (@ARGV) { require_configure_ac ($directory); autoreconf ($directory); } ### Setup "GNU" style for perl-mode and cperl-mode. ## Local Variables: ## perl-indent-level: 2 ## perl-continued-statement-offset: 2 ## perl-continued-brace-offset: 0 ## perl-brace-offset: 0 ## perl-brace-imaginary-offset: 0 ## perl-label-offset: -2 ## cperl-indent-level: 2 ## cperl-brace-offset: 0 ## cperl-continued-brace-offset: 0 ## cperl-label-offset: -2 ## cperl-extra-newline-before-brace: t ## cperl-merge-trailing-else: nil ## cperl-continued-statement-offset: 2 ## End:
Upload File
Create Folder