]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - autogen.sh
2 # $Id: autogen.sh,v 1.18 2008/01/29 18:36:20 chrfranke Exp $
4 # Generate ./configure from config.in and Makefile.in from Makefile.am.
5 # This also adds files like missing,depcomp,install-sh to the source
6 # directory. To update these files at a later date use:
11 test -x /usr
/bin
/uname
&& /usr
/bin
/uname |
grep -i CYGWIN
>/dev
/null
&&
13 # Enable strict case checking
14 # (to avoid e.g. "DIST_COMMON = ... ChangeLog ..." in Makefile.in)
15 export CYGWIN
="${CYGWIN}${CYGWIN:+ }check_case:strict"
17 # Check for Unix text file type
19 test "`wc -c < dostest.tmp`" -eq 1 ||
20 echo "Warning: DOS text file type set, 'make dist' and related targets will not work."
26 cmd
=$1 ; TMP
=$IFS ; IFS
=: ; set $PATH
29 if [ -x "$dir/$cmd" ]; then
39 test -x "$AUTOMAKE" || AUTOMAKE
=`typep automake-1.10` || AUTOMAKE
=`typep automake-1.9` ||
40 AUTOMAKE
=`typep automake-1.8` || AUTOMAKE
=`typep automake-1.7` || AUTOMAKE
=`typep automake17` ||
43 echo "You must have at least GNU Automake 1.7 (up to 1.9.x) installed"
44 echo "in order to bootstrap smartmontools from CVS. Download the"
45 echo "appropriate package for your distribution, or the source tarball"
46 echo "from ftp://ftp.gnu.org/gnu/automake/ ."
48 echo "Also note that support for new Automake series (anything newer"
49 echo "than 1.9.x) is only added after extensive tests. If you live in"
50 echo "the bleeding edge, you should know what you're doing, mainly how"
51 echo "to test it before the developers. Be patient."
55 test -x "$ACLOCAL" || ACLOCAL
="aclocal`echo "$AUTOMAKE" | sed 's/.*automake//'`" && ACLOCAL
=`typep "$ACLOCAL"` ||
58 echo "autogen.sh found automake-1.7, automake-1.8, or automake-1.9 in"
59 echo "your PATH, but not the respective aclocal-1.7, aclocal-1.8, or"
60 echo "aclocal-1.9. Your installation of GNU Automake is broken or"
65 # Warn if Automake version is unknown
68 *automake-1.
[78]|
*automake17
)
71 ver
="`$AUTOMAKE --version | sed -n '1s,^.*\([12]\.[.0-9]*[-pl0-9]*\).*$,\1,p'`"
74 1.
[78]*|
1.9.
[1-6]|
1.10) ver
= ;;
80 echo "Note: GNU Automake version ${ver} was not tested by the developers."
81 echo "Please report success/failure to the smartmontools-support mailing list."
84 set -e # stops on error status
88 ${AUTOMAKE} --add-missing --copy --foreign