[gq-commit] gq configure.in,1.47,1.48
Status: Beta
Brought to you by:
sur5r
|
From: <sta...@us...> - 2003-10-09 05:55:59
|
Update of /cvsroot/gqclient/gq
In directory sc8-pr-cvs1:/tmp/cvs-serv10676
Modified Files:
configure.in
Log Message:
* check if g_string_sprintf allows for argument reordering
(results actually not used, but it might give a hint once
support for this appears)
Index: configure.in
===================================================================
RCS file: /cvsroot/gqclient/gq/configure.in,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** configure.in 5 Oct 2003 13:57:19 -0000 1.47
--- configure.in 9 Oct 2003 05:55:55 -0000 1.48
***************
*** 562,570 ****
fi
! AC_CACHE_CHECK([if snprinf follow the C99 standard], gq_cv_c99_snprintf,
[
AC_TRY_RUN([
--- 562,593 ----
fi
+ PRINTF=g_string_sprintf
+ AC_CACHE_CHECK([reorderable $PRINTF arguments], gq_cv_${PRINTF}_reordering,
+ [
+ AC_TRY_RUN([
+ #include <stdio.h>
+ #include <string.h> #include <glib.h>
+ int main(int argc, char **argv) {
+ char buf[80];
+ GString *str = g_string_new("");
+ $PRINTF(str, "%2\$d %1\$d", 1, 2);
+ if (strcmp(str->str, "2 1") == 0)
+ return 0;
+ return 1;
+ }
+ ],
+ eval "gq_cv_${PRINTF}_reordering=yes",
+ eval "gq_cv_${PRINTF}_reordering=no",
+ eval "gq_cv_${PRINTF}_reordering=no"
+ )
+ ]
+ )
!
!
! AC_CACHE_CHECK([if snprintf follows the C99 standard], gq_cv_c99_snprintf,
[
AC_TRY_RUN([
|