diff --git a/BuildGNU.sh b/BuildGNU.sh index 73e6c56..29623e9 100644 --- a/BuildGNU.sh +++ b/BuildGNU.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $MirBSD: BuildGNU.sh,v 1.7 2004/04/07 18:43:41 tg Exp $ +# $MirBSD: BuildGNU.sh,v 1.8 2004/04/17 00:37:07 tg Exp $ #- # Copyright (c) 2004 # Thorsten "mirabile" Glaser @@ -18,7 +18,7 @@ # ly, but not by a developer's malice intent, even if advised of the # possibility of such damage. #- -# Build the mirbsdksh on GNU operating systems (and more?) +# Build the mirbsdksh on GNU and other operating systems. # Note: on some systems, you must run it with a pre-existing bash or # korn shell, because the Bourne seems to choke on the if sta- # tement below for some unknown reason. @@ -42,8 +42,11 @@ if [ -e strlcpy.c -a -e strlcat.c ]; then $CC $CFLAGS $CPPFLAGS $LDFLAGS -o ksh *.c echo "Finalizing..." tbl ksh.cat1 + cp ksh ksh.unstripped strip -R .note -R .comment -R .rel.dyn -R .sbss \ - --strip-unneeded --strip-all ksh + --strip-unneeded --strip-all ksh \ + || strip ksh || mv ksh.unstripped ksh + rm -f ksh.unstripped size ksh echo "done." else diff --git a/configure b/configure index 4d64b6b..62b9aba 100644 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# $MirBSD: configure,v 1.5 2004/04/07 17:22:48 tg Exp $ +# $MirBSD: configure,v 1.6 2004/04/17 00:37:08 tg Exp $ # # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13.20020210 @@ -210,14 +210,14 @@ cat <&6 else echo 'int main(){ return 0; }' > conftest.c -if test -z "`${CC-cc} -g conftest.c 2>&1`"; then +if test -z "$(${CC-cc} -g conftest.c 2>&1)"; then ac_cv_prog_gcc_g=yes else ac_cv_prog_gcc_g=no @@ -992,7 +992,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 fi if test X"$GCC" = Xyes && test -f $srcdir/Warn-flags; then - CFLAGS="${CFLAGS+$CFLAGS }`cat $srcdir/Warn-flags`" + CFLAGS="${CFLAGS+$CFLAGS }$(cat $srcdir/Warn-flags)" fi LDSTATIC=${LDSTATIC-} @@ -1391,7 +1391,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +ac_safe=$(echo "$ac_hdr" | sed 'y%./+-%__p_%') echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 echo "configure:1402: checking for $ac_hdr that defines DIR" >&5 if eval "test \"$(echo '$''{'ac_cv_header_dirent_$ac_safe'+set}')\" = set"; then @@ -1417,9 +1417,9 @@ else fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then +if eval "test \"$(echo '$ac_cv_header_dirent_'$ac_safe)\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + ac_tr_hdr=HAVE_$(echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%') cat >> confdefs.h <&1 | - case $((ac_space=' '; set | grep ac_space) 2>&1) in + case $(ac_space=' '; set | grep ac_space 2>&1) in *ac_space=\ *) # 'set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). @@ -4099,12 +4099,13 @@ DEFS=-DHAVE_CONFIG_H echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS +HOSTNAME="$(hostname 2>/dev/null)" || HOSTNAME="$(uname -n 2>/dev/null)" cat > $CONFIG_STATUS </dev/null | sed 1q): +# on host $(echo "$HOSTNAME" | sed 1q): # # $0 $ac_configure_args #