$NetBSD: patch-ag,v 1.10 2008/01/04 21:37:07 sborrill Exp $ --- configure.orig 2007-02-05 23:01:54 +0000 +++ configure @@ -44,7 +44,7 @@ case "$cpu" in alpha) cpu="alpha" ;; - "Power Macintosh"|ppc|ppc64) + "Power Macintosh"|ppc|ppc64|powerpc) cpu="powerpc" ;; mips) @@ -136,6 +136,12 @@ if [ "$cpu" = "i386" -o "$cpu" = "x86_64 kqemu="yes" fi ;; +DragonFly) +bsd="yes" +oss="yes" +dragonfly="yes" +;; + NetBSD) bsd="yes" oss="yes" @@ -478,6 +484,16 @@ EOF fi fi +# Check for stack protector +cat > $TMPC < /dev/null ; then + stack_protector_present="yes" +else + stack_protector_present="no" +fi + # # Solaris specific configure tool chain decisions # @@ -848,6 +864,14 @@ if test "$mingw32" = "yes" ; then EOF if $cc -o $TMPE $TMPC 2> /dev/null ; then echo "#define HAVE_BYTESWAP_H 1" >> $config_h + else + cat > $TMPC << EOF +#include +int main(void) { return bswap_32(0); } +EOF + if $cc -o $TMPE $TMPC 2> /dev/null ; then + echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h + fi fi fi if test "$darwin" = "yes" ; then @@ -960,6 +984,10 @@ if [ "$bsd" = "yes" ] ; then echo "#define _BSD 1" >> $config_h fi +if [ "$stack_protector_present" = "yes" ] ; then + echo "STACK_PROTECTOR_PRESENT=yes" >> $config_mak +fi + echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h tools=