2 diff -ru rpm-5.1.9_vanilla/xz/configure rpm-5.1.9_short-circuit-c99/xz/configure
3 --- rpm-5.1.9_vanilla/xz/configure 2009-04-18 16:47:23.000000000 +0000
4 +++ rpm-5.1.9_short-circuit-c99/xz/configure 2009-08-04 08:25:59.000000000 +0000
5 @@ -4970,214 +4970,7 @@
10 - { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
11 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12 -if test "${ac_cv_prog_cc_c99+set}" = set; then
13 - $as_echo_n "(cached) " >&6
15 - ac_cv_prog_cc_c99=no
17 -cat >conftest.$ac_ext <<_ACEOF
20 -cat confdefs.h >>conftest.$ac_ext
21 -cat >>conftest.$ac_ext <<_ACEOF
22 -/* end confdefs.h. */
29 -// Check varargs macros. These examples are taken from C99 6.10.3.5.
30 -#define debug(...) fprintf (stderr, __VA_ARGS__)
31 -#define showlist(...) puts (#__VA_ARGS__)
32 -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
34 -test_varargs_macros (void)
39 - debug ("X = %d\n", x);
40 - showlist (The first, second, and third items.);
41 - report (x>y, "x is %d but y is %d", x, y);
44 -// Check long long types.
45 -#define BIG64 18446744073709551615ull
46 -#define BIG32 4294967295ul
47 -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
49 - your preprocessor is broken;
53 - your preprocessor is broken;
55 -static long long int bignum = -9223372036854775807LL;
56 -static unsigned long long int ubignum = BIG64;
58 -struct incomplete_array
66 - const wchar_t *name;
70 -typedef const char *ccp;
73 -test_restrict (ccp restrict text)
75 - // See if C++-style comments work.
76 - // Iterate through items via the restricted pointer.
77 - // Also check for declarations in for loops.
78 - for (unsigned int i = 0; *(text+i) != '\0'; ++i)
83 -// Check varargs and va_copy.
85 -test_varargs (const char *format, ...)
88 - va_start (args, format);
90 - va_copy (args_copy, args);
100 - case 's': // string
101 - str = va_arg (args_copy, const char *);
104 - number = va_arg (args_copy, int);
107 - fnumber = va_arg (args_copy, double);
113 - va_end (args_copy);
122 - _Bool success = false;
125 - if (test_restrict ("String literal") == 0)
127 - char *restrict newvar = "Another string";
130 - test_varargs ("s, d' f .", "string", 65, 34.234);
131 - test_varargs_macros ();
133 - // Check flexible array members.
134 - struct incomplete_array *ia =
135 - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
137 - for (int i = 0; i < ia->datasize; ++i)
138 - ia->data[i] = i * 1.234;
140 - // Check named initializers.
141 - struct named_init ni = {
143 - .name = L"Test wide string",
144 - .average = 543.34343,
149 - int dynamic_array[ni.number];
150 - dynamic_array[ni.number - 1] = 543;
152 - // work around unused variable warnings
153 - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
154 - || dynamic_array[ni.number - 1] != 543);
160 -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
162 - CC="$ac_save_CC $ac_arg"
163 - rm -f conftest.$ac_objext
164 -if { (ac_try="$ac_compile"
166 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
167 - *) ac_try_echo=$ac_try;;
169 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
170 -$as_echo "$ac_try_echo") >&5
171 - (eval "$ac_compile") 2>conftest.er1
173 - grep -v '^ *+' conftest.er1 >conftest.err
175 - cat conftest.err >&5
176 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
177 - (exit $ac_status); } && {
178 - test -z "$ac_c_werror_flag" ||
179 - test ! -s conftest.err
180 - } && test -s conftest.$ac_objext; then
181 - ac_cv_prog_cc_c99=$ac_arg
183 - $as_echo "$as_me: failed program was:" >&5
184 -sed 's/^/| /' conftest.$ac_ext >&5
189 -rm -f core conftest.err conftest.$ac_objext
190 - test "x$ac_cv_prog_cc_c99" != "xno" && break
192 -rm -f conftest.$ac_ext
197 -case "x$ac_cv_prog_cc_c99" in
199 - { $as_echo "$as_me:$LINENO: result: none needed" >&5
200 -$as_echo "none needed" >&6; } ;;
202 - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
203 -$as_echo "unsupported" >&6; } ;;
205 - CC="$CC $ac_cv_prog_cc_c99"
206 - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
207 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
212 -if test x$ac_cv_prog_cc_c99 = xno ; then
213 - { { $as_echo "$as_me:$LINENO: error: No C99 compiler was found." >&5
214 -$as_echo "$as_me: error: No C99 compiler was found." >&2;}
215 - { (exit 1); exit 1; }; }
219 if test "x$CC" != xcc; then
220 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
221 diff -ru rpm-5.1.9_vanilla/xz/configure.ac rpm-5.1.9_short-circuit-c99/xz/configure.ac
222 --- rpm-5.1.9_vanilla/xz/configure.ac 2009-02-16 17:07:46.000000000 +0000
223 +++ rpm-5.1.9_short-circuit-c99/xz/configure.ac 2009-08-04 08:25:28.000000000 +0000
225 AM_INIT_AUTOMAKE([1.10 foreign tar-v7 filename-length-max=99])
229 -if test x$ac_cv_prog_cc_c99 = xno ; then
230 - AC_MSG_ERROR([No C99 compiler was found.])