diff -ruN dclib-0.3.7-orig/admin/cvs.sh dclib-0.3.7/admin/cvs.sh --- dclib-0.3.7-orig/admin/cvs.sh Wed Jan 5 10:34:15 2005 +++ dclib-0.3.7/admin/cvs.sh Mon Jan 16 14:52:01 2006 @@ -27,7 +27,7 @@ check_autotool_versions() { -AUTOCONF_VERSION=`$AUTOCONF --version | head -1` +AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1` case $AUTOCONF_VERSION in Autoconf*2.5* | autoconf*2.5* ) : ;; "" ) @@ -42,7 +42,7 @@ ;; esac -AUTOHEADER_VERSION=`$AUTOHEADER --version | head -1` +AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1` case $AUTOHEADER_VERSION in Autoconf*2.5* | autoheader*2.5* ) : ;; "" ) @@ -57,7 +57,7 @@ ;; esac -AUTOMAKE_STRING=`$AUTOMAKE --version | head -1` +AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1` case $AUTOMAKE_STRING in automake*1.5d* ) echo "*** YOU'RE USING $AUTOMAKE_STRING." @@ -242,10 +242,10 @@ echo "AC_OUTPUT" >> configure.in.new modulename= if test -f configure.in.in; then - if head -2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then + if head -n 2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then kde_use_qt_param=`cat configure.in.in | sed -n -e "s/#MIN_CONFIG(\(.*\))/\1/p"` fi - if head -2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then + if head -n 2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then line=`grep "^AM_INIT_AUTOMAKE(" configure.in.in` if test -n "$line"; then modulename=`echo $line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"` @@ -285,7 +285,7 @@ done rm -f configure.files touch configure.files -if test -f configure.in.in && head -2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then +if test -f configure.in.in && head -n 2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then echo $admindir/configure.in.min >> configure.files fi test -f configure.in.in && echo configure.in.in >> configure.files @@ -300,8 +300,8 @@ subdirs() { dirs= -compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -1` -compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -1` +compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1` +compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1` for i in `ls -1`; do if test -f $i/Makefile.am; then case " $compilefirst $compilelast " in @@ -318,11 +318,11 @@ done (for d in $dirs; do - list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -1` + list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1` for s in $list; do echo $s $d done - list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -1` + list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1` for s in $list; do echo $d $s done diff -ruN dclib-0.3.7-orig/admin/ltcf-c.sh dclib-0.3.7/admin/ltcf-c.sh --- dclib-0.3.7-orig/admin/ltcf-c.sh Tue Nov 12 14:40:13 2002 +++ dclib-0.3.7/admin/ltcf-c.sh Mon Jan 16 14:52:14 2006 @@ -151,7 +151,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; diff -ruN dclib-0.3.7-orig/admin/ltcf-gcj.sh dclib-0.3.7/admin/ltcf-gcj.sh --- dclib-0.3.7-orig/admin/ltcf-gcj.sh Tue Nov 12 14:40:13 2002 +++ dclib-0.3.7/admin/ltcf-gcj.sh Mon Jan 16 14:52:28 2006 @@ -154,7 +154,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; diff -ruN dclib-0.3.7-orig/configure.in dclib-0.3.7/configure.in --- dclib-0.3.7-orig/configure.in Thu Feb 17 03:02:58 2005 +++ dclib-0.3.7/configure.in Mon Jan 16 14:49:03 2006 @@ -172,6 +172,8 @@ AC_STRUCT_SA_LEN +AC_C_BIGENDIAN + dnl define datapath AC_MSG_CHECKING([for DCLib-datapath]) DCLIB_DATAPATH=`echo $prefix/share` diff -ruN dclib-0.3.7-orig/dclib/hash/tiger.cpp dclib-0.3.7/dclib/hash/tiger.cpp --- dclib-0.3.7-orig/dclib/hash/tiger.cpp Thu Aug 12 08:44:35 2004 +++ dclib-0.3.7/dclib/hash/tiger.cpp Mon Jan 16 14:49:03 2006 @@ -18,7 +18,7 @@ #ifdef WORDS_BIGENDIAN # define USE_BIG_ENDIAN 1 #else -# define USE_BIG_ENDIAN 0 +# define USE_BIG_ENDIAN 1 #endif /* The following macro denotes that an optimization */ diff -ruN dclib-0.3.7-orig/dclib/hash/tigertree.cpp dclib-0.3.7/dclib/hash/tigertree.cpp --- dclib-0.3.7-orig/dclib/hash/tigertree.cpp Thu Aug 12 08:44:35 2004 +++ dclib-0.3.7/dclib/hash/tigertree.cpp Mon Jan 16 14:49:03 2006 @@ -34,7 +34,7 @@ #ifdef WORDS_BIGENDIAN # define USE_BIG_ENDIAN 1 #else -# define USE_BIG_ENDIAN 0 +# define USE_BIG_ENDIAN 1 #endif void tt_endian(byte *s);