michael@34: Index: Configure michael@465: --- Configure.orig 2012-04-10 18:35:48.000000000 +0200 michael@465: +++ Configure 2012-08-03 12:18:36.290850960 +0200 michael@465: @@ -440,7 +440,7 @@ michael@34: fi # } michael@34: fi # } michael@34: LSOF_TGT="aix" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -594,7 +594,7 @@ michael@34: michael@34: rm -f dialects/aix/aix5/j2/j2_snapshot.h michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -632,7 +632,7 @@ michael@34: # This is AIX >= 5 on ia64. michael@34: michael@34: LSOF_TSTK64=1 michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -709,7 +709,7 @@ michael@34: fi # } michael@34: LSOF_TSTK64=1 michael@34: LSOF_TMP1=1 michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF -maix64" michael@465: @@ -756,7 +756,7 @@ michael@34: fi #} michael@34: LSOF_CFGF="$LSOF_CFGF -DAIXV=$LSOF_VERS" michael@34: LSOF_DIALECT_DIR=aix michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -2269,7 +2269,7 @@ michael@34: fi # } michael@34: fi # } michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` michael@465: @@ -2323,7 +2323,7 @@ michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF -Ae +DD32" michael@34: else michael@34: - echo $LSOF_CC | grep -q gcc michael@34: + $LSOF_CC --version | grep -q GCC michael@34: if test $? -ne 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF +DD32" michael@465: @@ -2407,7 +2407,7 @@ michael@34: echo "* NOTICE! Configuring for 64 bit HP-UX *" michael@34: echo "* *" michael@34: echo "*****************************************" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -2476,7 +2476,7 @@ michael@34: else michael@34: LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64" michael@34: LSOF_CINFO="${LSOF_CINFO}, 32 bit HP-UX" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -ne 0 # { michael@34: then michael@34: LSOF_CFGF="$LSOF_CFGF +DAportable" michael@465: @@ -3710,7 +3710,7 @@ michael@34: LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` michael@34: fi # } michael@34: fi # } michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@464: LSOF_CFGL="$LSOF_CFGL -w" michael@465: @@ -4355,6 +4355,9 @@ michael@34: LSOF_TSTBIGF=" " michael@34: LSOF_TSTLFLG="-lsocket -lnsl" michael@34: LSOF_VERS="100000" michael@34: + if [ ".`isainfo -k`" = .amd64 ]; then michael@34: + LSOF_CFGL="$LSOF_CFGL -lmp -lmd5 -lscf -ldoor -luutil" michael@34: + fi michael@34: ;; michael@464: 5.11*) michael@464: LSOF_TSTBIGF=" " michael@465: @@ -4446,7 +4449,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum prnodetype p=PR_GWINDOWS;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing prdata.h for PR_GWINDOWS, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@465: @@ -4471,7 +4474,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum prnodetype p=PR_LDT;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing prdata.h for PR_LDT, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@465: @@ -4505,7 +4508,7 @@ michael@34: echo $SOLARIS_KERNBITS | grep 64 > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: michael@465: @@ -4836,7 +4839,7 @@ michael@34: echo "main(){" >> ${LSOF_TMPC}.c michael@34: echo "enum vtype p=VSOCK;}" >> ${LSOF_TMPC}.c michael@34: echo "Testing vnode.h for VSOCK, using $LSOF_CC" michael@34: - echo $LSOF_CC | grep gcc > /dev/null michael@34: + $LSOF_CC --version | grep GCC > /dev/null michael@34: if test $? -eq 0 # { michael@34: then michael@34: $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 michael@465: @@ -5525,7 +5528,7 @@ michael@34: echo "$i" >> $LSOF_TSTCFLG michael@34: done # } michael@34: fi # } michael@34: -echo $LSOF_CC | grep gcc > /dev/null 2>&1 michael@34: +$LSOF_CC --version | grep GCC > /dev/null 2>&1 michael@34: if test $? -eq 0 # { michael@34: then michael@34: echo "-DLT_GCC" >> $LSOF_TSTCFLG michael@125: Index: dialects/freebsd/machine.h michael@465: --- dialects/freebsd/machine.h.orig 2010-07-29 18:04:31.000000000 +0200 michael@465: +++ dialects/freebsd/machine.h 2012-08-03 12:18:36.291289597 +0200 michael@125: @@ -441,6 +441,11 @@ michael@125: */ michael@125: michael@125: /* #define HASSECURITY 1 */ michael@125: +#if FREEBSDV>=6000 michael@125: +#define HASSECURITY 1 michael@125: +#define HAS_SI_PRIV 1 michael@125: +#endif /* FREEBSDV>=6000 */ michael@125: + michael@125: michael@125: michael@125: /* michael@464: Index: dialects/sun/machine.h michael@465: --- dialects/sun/machine.h.orig 2011-09-07 21:16:07.000000000 +0200 michael@465: +++ dialects/sun/machine.h 2012-08-03 12:18:36.291671855 +0200 michael@465: @@ -105,6 +105,7 @@ michael@464: #include michael@36: michael@464: # if solaris>=80000 michael@464: +#include michael@464: #include michael@464: #include michael@464: #define _KERNEL 1