what=`/bin/pwd|sed -e 's+.*/++'` case "$what" in mozilla) PATH=/software/mozilla_dev/bin:$PATH ;; libIDL-*) what=mozilla_dev ;; *) echo "strange working directory for a mozilla configure" >&2 exit 1 esac case "`uname -m`" in i?86) CFLAGS="$CFLAGS -m486" gcc -v 2>&1|grep egcs>/dev/null || CFLAGS="$CFLAGS -no-strength-reduce" ;; arm*) #OPTS="--disable-asm build=arm-linuxelf" # config.guess needs patching CFLAGS="-D__USE_GNU";; esac prefix=/.software/share/$what eprefix=/.software/arch/$what version=1.2 if [ -d /software/gimp_dev-$version ]; then OPTS="$OPTS --with-glib-prefix=/software/gimp_dev-$version" LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/software/gimp_dev-$version/lib LIBS=-L`pwd`/dist/lib export LD_LIBRARY_PATH export LIBS fi if [ -d /software/mozilla_dev ]; then OPTS="$OPTS --with-nspr=/software/mozilla_dev" LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/software/mozilla_dev/lib export LD_LIBRARY_PATH fi case "$LD_LIBRARY_PATH" in :*) LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH|cut -c2-` ;; esac gtkconfig=`/bin/showpath +wto gimp_dev-$version gimp standard current findfirst=gtk-config` gtkprefix=`$gtkconfig --prefix` grep -q netwinder config.sub || patch --verbose -u -t -N -p2< --- libc/scripts/config.sub Tue Oct 27 11:38:36 1998 +++ glibc/scripts/config.sub Tue Nov 3 16:20:40 1998 @@ -182,7 +182,7 @@ | sparc64-* | mips64-* | mipsel-* \\ | mips64el-* | mips64orion-* | mips64orionel-* \\ | mipstx39-* | mipstx39el-* \\ - | f301-*) + | f301-* | armv*-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -412,6 +412,10 @@ basic_machine=i486-ncr os=-sysv4 ;; + netwinder) + basic_machine=armv4l-ccc + os=-linux + ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos @@ -801,6 +805,9 @@ case \$basic_machine in *-acorn) os=-riscix1.2 + ;; + arm*-ccc) + os=-linux ;; arm*-semi) os=-aout EOF # Article from devel@netwinder.org says pthreads usage will cause core dump #--with-pthreads \ #--enable-pthreads \ # ./configure \ --prefix=$prefix \ --bindir=$prefix/bin \ --sysconfdir=$prefix/config \ --datadir=$prefix/data \ --with-sharedir=$prefix/data \ --with-gtk-prefix=$gtkprefix \ --with-pthreads \ --enable-pthreads \ --enable-editor \ --enable-dom \ --enable-ldap \ $OPTS #--enable-mail-compose \ #