some echos interpret \n's and some don't. Deal with accordingly.

* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.

-Yosh
This commit is contained in:
Manish Singh 1999-01-04 23:37:40 +00:00
parent 250d1a07bb
commit 6927b5b477
9 changed files with 48 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -1,3 +1,8 @@
Mon Jan 4 15:35:29 PST 1999 Manish Singh <yosh@gimp.org>
* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.
Mon Jan 4 20:58:50 1999 Tim Janik <timj@gtk.org>
* gscanner.c: eliminated extraneous "register" qualifiers in variable

View File

@ -84,6 +84,11 @@ dnl GLIB_SYSDEFS (INCLUDES, DEFS_LIST, OFILE [, PREFIX])
AC_DEFUN(GLIB_SYSDEFS,
[glib_sysdefso="translit($3, [-_a-zA-Z0-9 *], [-_a-zA-Z0-9])"
glib_sysdef_msg=`echo $2 | sed 's/:[[^ ]]*//g'`
if test "x`(echo '\n') 2>/dev/null`" != 'x\n'; then
glib_nl='\\n'
else
glib_nl='\n'
fi
AC_MSG_CHECKING(system definitions for $glib_sysdef_msg)
cat >confrun.c <<_______EOF
#include <stdio.h>
@ -96,12 +101,12 @@ for glib_sysdef_input in $2 ; do
glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([[^:]]*\):.*$/\1/'`
glib_default=`echo $glib_sysdef_input | sed 's/^[[^:]]*:\(.*\)$/\1/'`
echo "#ifdef $glib_sysdef" >>confrun.c
echo " fprintf (f, \"#define GLIB_SYSDEF_%s %s%d\\n\", \"$glib_sysdef\", \"$4\", $glib_sysdef);" >>confrun.c
echo " fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"$4\", $glib_sysdef);" >>confrun.c
echo "#else" >>confrun.c
if test $glib_sysdef != $glib_default; then
echo " fprintf (f, \"#define GLIB_SYSDEF_%s %s%d\\n\", \"$glib_sysdef\", \"$4\", $glib_default);" >>confrun.c
echo " fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"$4\", $glib_default);" >>confrun.c
else
echo " fprintf (f, \"#define GLIB_SYSDEF_%s\\n\", \"$glib_sysdef\");" >>confrun.c
echo " fprintf (f, \"#define GLIB_SYSDEF_%s${glib_nl}\", \"$glib_sysdef\");" >>confrun.c
fi
echo "#endif" >>confrun.c
done