Changeset 142

Show
Ignore:
Timestamp:
07/01/04 16:57:56 (9 years ago)
Author:
alexcv
Message:

Added the seed of the WRT54G specific installation system/notes

Location:
trunk/wifidog
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/autogen.sh

    r11 r142  
    11#!/bin/sh 
    22# Run this to generate all the initial makefiles, etc. 
     3# 
     4# $Header$ 
     5 
     6if [ -r Makefile ] 
     7then 
     8        echo "Doing distclean" 
     9        make distclean 
     10fi 
     11 
     12if [ "X$1" != "X" ] 
     13then 
     14        BUILDROOT=`echo "$1" | sed 's/^[^=]*[=]//'` 
     15 
     16        OLDCC=${CC} 
     17        OLDRANLIB=${RANLIB} 
     18        OLDAR=${AR} 
     19 
     20        CC=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc 
     21        RANLIB=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ranlib 
     22        AR=${BUILDROOT}/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ar 
     23 
     24        POSTCONF=--host=mipsel 
     25 
     26        export CC 
     27        export RANLIB 
     28        export AR 
     29else 
     30        OLDCC=${CC} 
     31        OLDRANLIB=${RANLIB} 
     32        OLDAR=${AR} 
     33        POSTCONF= 
     34fi 
    335 
    436echo "Running mkdir -p config" 
    537mkdir -p config 
     38 
    639if [ "X"`uname` = "XDarwin" ] 
    740then 
     
    1245        libtoolize --force 
    1346fi 
     47 
    1448echo "Running aclocal" 
    1549aclocal 
     
    2054echo "Running autoconf" 
    2155autoconf 
    22 echo "Running ./configure --enable-maintainer-mode  $conf_flags $@" 
    23 ./configure --enable-maintainer-mode $conf_flags "$@" 
     56echo "Running ./configure ${POSTCONF} --enable-maintainer-mode  $conf_flags $@" 
     57./configure ${POSTCONF} --enable-maintainer-mode $conf_flags "$@" 
     58 
     59CC=${OLDCC} 
     60RANLIB=${OLDRANLIB} 
     61AR=${OLDAR} 
     62 
     63export CC 
     64export RANLIB 
     65export AR