ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/autogen.sh
Revision: 1.2
Committed: 2004-04-13T22:12:27Z (20 years, 7 months ago) by gbeauche
Content type: application/x-sh
Branch: MAIN
Changes since 1.1: +8 -1 lines
Log Message:
Handle NO_CONFIGURE variable if we are only generating the configure script

File Contents

# User Rev Content
1 cebix 1.1 #! /bin/sh
2     # Run this to generate all the initial makefiles, etc.
3     # This was lifted from the Gimp, and adapted slightly by
4     # Christian Bauer.
5    
6     DIE=0
7    
8     PROG=SheepShaver
9    
10     (autoconf --version) < /dev/null > /dev/null 2>&1 || {
11     echo
12     echo "You must have autoconf installed to compile $PROG."
13     echo "Download the appropriate package for your distribution,"
14     echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
15     DIE=1
16     }
17    
18     if test "$DIE" -eq 1; then
19     exit 1
20     fi
21    
22     if test -z "$*"; then
23     echo "I am going to run ./configure with no arguments - if you wish "
24     echo "to pass any to it, please specify them on the $0 command line."
25     fi
26    
27     for dir in .
28     do
29     echo processing $dir
30     (cd $dir; \
31     aclocalinclude="$ACLOCAL_FLAGS"; \
32     aclocal $aclocalinclude; \
33     autoheader; autoconf)
34     done
35    
36 gbeauche 1.2 if [ x"$NO_CONFIGURE" = "x" ]; then
37     echo " + Running 'configure $@':"
38     if [ -z "$*" ]; then
39     echo " ** If you wish to pass arguments to ./configure, please"
40     echo " ** specify them on the command line."
41     fi
42     ./configure "$@"
43     fi