Trivial simplification.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Jul 2006 19:38:53 +0000 (19:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Jul 2006 19:38:53 +0000 (19:38 +0000)
m4/ChangeLog
m4/stdint.m4

index 5ca96cb..1cbc0f6 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-25  Bruno Haible  <bruno@clisp.org>
+
+       * stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of complex
+       commands.
+
 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
index fa073cd..73bb0eb 100644 (file)
@@ -1,4 +1,4 @@
-# stdint.m4 serial 15
+# stdint.m4 serial 16
 dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -296,7 +296,8 @@ AC_DEFUN([gl_INTEGER_TYPE_SUFFIX],
              extern $gltype foo;
              extern $gltype1 foo;])],
           [eval gl_cv_type_${gltype}_suffix=\$glsuf])
-        eval test \"\$gl_cv_type_${gltype}_suffix\" != no && break
+        eval result=\$gl_cv_type_${gltype}_suffix
+        test "$result" != no && break
        done])
     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
     eval result=\$gl_cv_type_${gltype}_suffix