Changeset 142
- Timestamp:
- 07/01/04 16:57:56 (9 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 1 added
- 1 modified
-
README.openwrt (added)
-
autogen.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/autogen.sh
r11 r142 1 1 #!/bin/sh 2 2 # Run this to generate all the initial makefiles, etc. 3 # 4 # $Header$ 5 6 if [ -r Makefile ] 7 then 8 echo "Doing distclean" 9 make distclean 10 fi 11 12 if [ "X$1" != "X" ] 13 then 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 29 else 30 OLDCC=${CC} 31 OLDRANLIB=${RANLIB} 32 OLDAR=${AR} 33 POSTCONF= 34 fi 3 35 4 36 echo "Running mkdir -p config" 5 37 mkdir -p config 38 6 39 if [ "X"`uname` = "XDarwin" ] 7 40 then … … 12 45 libtoolize --force 13 46 fi 47 14 48 echo "Running aclocal" 15 49 aclocal … … 20 54 echo "Running autoconf" 21 55 autoconf 22 echo "Running ./configure --enable-maintainer-mode $conf_flags $@" 23 ./configure --enable-maintainer-mode $conf_flags "$@" 56 echo "Running ./configure ${POSTCONF} --enable-maintainer-mode $conf_flags $@" 57 ./configure ${POSTCONF} --enable-maintainer-mode $conf_flags "$@" 58 59 CC=${OLDCC} 60 RANLIB=${OLDRANLIB} 61 AR=${OLDAR} 62 63 export CC 64 export RANLIB 65 export AR
