#! /bin/sh echo "autoconf stuff in transition, do not use! --peb/martin/karl 1feb08" exit 1 /bin/false # $Id$ # This "reautoconf" script found at the root of the TeX Live source tree # runs a hacked autoconf 2.13 in various directories and the # current autoconf (from PATH) in the rest. # Adapted from Peter Breitenlohner's original version. # # Copyright 2008 Karl Berry. # Copyright 2005 Olaf Weber. # Copyright 2004 Peter Breitenlohner. # # 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 2 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 library; if not, see . unset CDPATH [ -f ./texk/make/common.mk ] || { echo "$0: *** can't find ./texk/make/common.mk (from `pwd`)" >&2 exit 1 } # Remember the topdir. topdir=`pwd` # "acold" runs our hacked autoconf-2.13 with special includes. acold () { # $dir=current echo "$0: running our autoconf2.13 in \`$dir'" $topdir/texk/autoconf2.13 -m "$topdir/texk/etc/autoconf" } # acnew runs autoconf from PATH. acnew () { # $dir=current, $dir/$rdir->./texk/m4 with the KPSE macros. echo "$0: running $TL_AUTOCONF in \`$dir'" $TL_AUTOCONF --force || return } : ${TL_AUTOCONF=autoconf} echo "$0: new $TL_AUTOCONF = `$TL_AUTOCONF --version | sed 1q`" echo "$0: if you want to use a different autoconf, set TL_AUTOCONF." # Autoconf in . (the top level). dir=. rdir=texk/m4 acold # Autoconf in all other directories for dir in `find utils libs texk -name configure.in | sed 's,/configure.in$,,'`; do case $dir in */texi*) # texinfo and texi2html are automade ;; */ncurses) # ncurses has its own special configure ;; */icu*) # ICU needs new autoconf (cd $dir; acnew) ;; */libgnuw32)# only for windows ;; utils/*) # Skip everything in utils for now. ;; */curl) # Is automade. ;; texk) rdir=m4 (cd $dir; acold) ;; texk/*) rdir=`echo $dir | sed -e 's,^texk/,,' -e 's,[^/]*,..,g'`/m4 case $dir in */devnag|*/dvipdfmx|*/xdvipdfmx) (cd $dir; acnew);; *) (cd $dir; acold);; esac ;; *) rdir=`echo $dir | sed 's,[^/]*,..,g'`/texk/m4 case $dir in */t1utils|*/lcdf-typetools|*/curl|*/expat) (cd $dir; acnew) ;; *) (cd $dir; acold) ;; esac ;; esac done echo "$0: done."