From: Ben Elliston Date: Mon, 20 Sep 1999 12:39:46 +0000 (+0000) Subject: 1999-09-20 Ben Elliston X-Git-Tag: trunk-pre-merge-trunk-into-experimental-1999-10-01~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af17bffbefa16868649ed8ccf604abe060f2a6b;p=thirdparty%2Fautoconf.git 1999-09-20 Ben Elliston * autoheader.sh: Bourne shell compatibility fix. From Pavel Roskin . --- diff --git a/ChangeLog b/ChangeLog index 88e31597..c9decd45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-09-20 Ben Elliston + + * autoheader.sh: Bourne shell compatibility fix. From Pavel Roskin + . + 1999-09-17 Ben Elliston * config.guess: Detect QNX version 4. diff --git a/autoheader.in b/autoheader.in index ebfb93c7..f4cc22a6 100644 --- a/autoheader.in +++ b/autoheader.in @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo " diff --git a/autoheader.sh b/autoheader.sh index ebfb93c7..f4cc22a6 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo " diff --git a/bin/autoheader.in b/bin/autoheader.in index ebfb93c7..f4cc22a6 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo "