source: rtems/autogen @ e619c28

4.104.114.84.95
Last change on this file since e619c28 was e619c28, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 19, 1999 at 10:01:26 PM

Towards automake IX patch from Ralf Corsepius <corsepiu@…>:

This is the next step towards automake:

  • Two scripts for the toplevel directory: a) "autogen" (Idea borrowed from libtool and gnome) A helper script to recursively regenerate autoconf/automake/aclocal generated files (Still not perfect but sufficient). b) "missing" (from automake-cvs archive). This file normally is automatically generated by automake, but we have to manually add it until we add automake support to the toplevel configure script.

"chmod 755 missing autogen" after applying the patch.

  • Changing the toplevel installation directory [ I can hear you falling off the chair ;-] Until now rtems installed itself to $(prefix)/rtems. This is in contradiction to automake and GNU/FSF/Cygnus conventions. With this patch applied, rtems installs into $(prefix). To achieve the old behaviour simply configure with --prefix=<install-dir>/rtems instead of --prefix=<install-dir>

This is a widely visible change and I can understand if you don't
like it at the present point. It enables us to use automake's
default installation paths instead of having to set up installation
paths manually. At the moment this doesn't help much, but in the not
so far future this would enable us to mix cpu-only dependent libraries
into the host's cross-compiler library and header files into
newlib's include directories, tools into the toolchain directories etc.

I would recommend to change the main installation directory, however it's
up to you to draw the final design decision.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1#!/bin/sh
2
3# $Id$
4
5# helps bootstrapping, when checked out from CVS
6# requires GNU autoconf and GNU automake
7
8# this is not meant to be exported outside the source tree
9
10# NOTE: Inspired by libtool's autogen script
11
12# to be run from the toplevel directory of RTEMS'
13# source tree
14
15progname=`basename $0`
16am_verbose="";
17quiet="false"
18
19usage()
20{
21  echo "${progname} [-v|-q]"
22  exit 1;
23}
24
25while test $# -gt 0; do
26case $1 in
27-q|--qu|--qui|--quie|--quiet)
28  quiet="true";
29  shift;;
30-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
31  verbose="-v";
32  shift;;
33-*) echo "unknown option $1" ;
34  usage ;;
35*) echo "invalid parameter $1" ;
36  usage ;;
37esac
38done
39
40if test ! -d aclocal; then
41  echo "${progname}"
42  echo "        Please change directory to RTEMS's toplevel directory"
43  exit 1;
44fi
45
46pwd=`pwd`;
47confs=`find $pwd -name configure.in`
48
49aclocal_dir=$pwd/aclocal
50for i in $confs; do
51dir=`dirname $i`;
52( test "$quiet" = "true" || echo "$dir";
53  cd $dir;
54  aclocal -I $aclocal_dir;
55  autoconf;
56  test -f Makefile.am && automake $verbose ;
57)
58done
59
Note: See TracBrowser for help on using the repository browser.